diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-05-15 11:42:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 11:42:05 +0200 |
commit | d168fff7a9aedb19db05a95a3264e548748126c1 (patch) | |
tree | 2dbfbe6ae421a463ce47ad73b12d29ac6b89eedd /web | |
parent | ef204e45b04e1526eec17ae1e413a3b60404ab61 (diff) | |
parent | 60c522899bcfd3aef1a486922e0a9aeb549c0fc8 (diff) | |
download | wallabag-d168fff7a9aedb19db05a95a3264e548748126c1.tar.gz wallabag-d168fff7a9aedb19db05a95a3264e548748126c1.tar.zst wallabag-d168fff7a9aedb19db05a95a3264e548748126c1.zip |
Merge pull request #3120 from aaa2000/fix-delete-annotation-user
Fix delete annotation when username is defined
Diffstat (limited to 'web')
-rw-r--r-- | web/bundles/wallabagcore/baggy.js | 2 | ||||
-rw-r--r-- | web/bundles/wallabagcore/material.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/bundles/wallabagcore/baggy.js b/web/bundles/wallabagcore/baggy.js index c17062ea..0a483cb4 100644 --- a/web/bundles/wallabagcore/baggy.js +++ b/web/bundles/wallabagcore/baggy.js | |||
@@ -1 +1 @@ | |||
!function(e){function __webpack_require__(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}var t={};__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="/bundles/wallabagcore/",__webpack_require__(__webpack_require__.s=50)}([function(e,t,n){var r,o;!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){function isArrayLike(e){var t=!!e&&"length"in e&&e.length,n=m.type(e);return"function"!==n&&!m.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function winnow(e,t,n){if(m.isFunction(t))return m.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return m.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(C.test(t))return m.filter(t,e,n);t=m.filter(t,e)}return m.grep(e,function(e){return f.call(t,e)>-1!==n})}function sibling(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function createOptions(e){var t={};return m.each(e.match(A)||[],function(e,n){t[n]=!0}),t}function completed(){s.removeEventListener("DOMContentLoaded",completed),n.removeEventListener("load",completed),m.ready()}function Data(){this.expando=m.expando+Data.uid++}function dataAttr(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(R,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:M.test(n)?m.parseJSON(n):n)}catch(e){}L.set(e,t,n)}else n=void 0;return n}function adjustCSS(e,t,n,r){var o,i=1,a=20,s=r?function(){return r.cur()}:function(){return m.css(e,t,"")},u=s(),l=n&&n[3]||(m.cssNumber[t]?"":"px"),c=(m.cssNumber[t]||"px"!==l&&+u)&&F.exec(m.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{i=i||".5",c/=i,m.style(e,t,c+l)}while(i!==(i=s()/u)&&1!==i&&--a)}return n&&(c=+c||+u||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=o)),o}function getAll(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&m.nodeName(e,t)?m.merge([e],n):n}function setGlobalEval(e,t){for(var n=0,r=e.length;n<r;n++)O.set(e[n],"globalEval",!t||O.get(t[n],"globalEval"))}function buildFragment(e,t,n,r,o){for(var i,a,s,u,l,c,f=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((i=e[h])||0===i)if("object"===m.type(i))m.merge(d,i.nodeType?[i]:i);else if(U.test(i)){for(a=a||f.appendChild(t.createElement("div")),s=(z.exec(i)||["",""])[1].toLowerCase(),u=W[s]||W._default,a.innerHTML=u[1]+m.htmlPrefilter(i)+u[2],c=u[0];c--;)a=a.lastChild;m.merge(d,a.childNodes),a=f.firstChild,a.textContent=""}else d.push(t.createTextNode(i));for(f.textContent="",h=0;i=d[h++];)if(r&&m.inArray(i,r)>-1)o&&o.push(i);else if(l=m.contains(i.ownerDocument,i),a=getAll(f.appendChild(i),"script"),l&&setGlobalEval(a),n)for(c=0;i=a[c++];)I.test(i.type||"")&&n.push(i);return f}function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return s.activeElement}catch(e){}}function on(e,t,n,r,o,i){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)on(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=returnFalse;else if(!o)return e;return 1===i&&(a=o,o=function(e){return m().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=m.guid++)),e.each(function(){m.event.add(this,t,o,r,n)})}function manipulationTarget(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function disableScript(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function restoreScript(e){var t=G.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function cloneCopyEvent(e,t){var n,r,o,i,a,s,u,l;if(1===t.nodeType){if(O.hasData(e)&&(i=O.access(e),a=O.set(t,i),l=i.events)){delete a.handle,a.events={};for(o in l)for(n=0,r=l[o].length;n<r;n++)m.event.add(t,o,l[o][n])}L.hasData(e)&&(s=L.access(e),u=m.extend({},s),L.set(t,u))}}function fixInput(e,t){var n=t.nodeName.toLowerCase();"input"===n&&B.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function domManip(e,t,n,r){t=l.apply([],t);var o,i,a,s,u,c,f=0,d=e.length,h=d-1,p=t[0],v=m.isFunction(p);if(v||d>1&&"string"==typeof p&&!g.checkClone&&K.test(p))return e.each(function(o){var i=e.eq(o);v&&(t[0]=p.call(this,o,i.html())),domManip(i,t,n,r)});if(d&&(o=buildFragment(t,e[0].ownerDocument,!1,e,r),i=o.firstChild,1===o.childNodes.length&&(o=i),i||r)){for(a=m.map(getAll(o,"script"),disableScript),s=a.length;f<d;f++)u=o,f!==h&&(u=m.clone(u,!0,!0),s&&m.merge(a,getAll(u,"script"))),n.call(e[f],u,f);if(s)for(c=a[a.length-1].ownerDocument,m.map(a,restoreScript),f=0;f<s;f++)u=a[f],I.test(u.type||"")&&!O.access(u,"globalEval")&&m.contains(c,u)&&(u.src?m._evalUrl&&m._evalUrl(u.src):m.globalEval(u.textContent.replace(Q,"")))}return e}function remove(e,t,n){for(var r,o=t?m.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||m.cleanData(getAll(r)),r.parentNode&&(n&&m.contains(r.ownerDocument,r)&&setGlobalEval(getAll(r,"script")),r.parentNode.removeChild(r));return e}function actualDisplay(e,t){var n=m(t.createElement(e)).appendTo(t.body),r=m.css(n[0],"display");return n.detach(),r}function defaultDisplay(e){var t=s,n=Z[e];return n||(n=actualDisplay(e,t),"none"!==n&&n||(J=(J||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=J[0].contentDocument,t.write(),t.close(),n=actualDisplay(e,t),J.detach()),Z[e]=n),n}function curCSS(e,t,n){var r,o,i,a,s=e.style;return n=n||ne(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||m.contains(e.ownerDocument,e)||(a=m.style(e,t)),n&&!g.pixelMarginRight()&&te.test(a)&&ee.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i),void 0!==a?a+"":a}function addGetHookIf(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function vendorPropName(e){if(e in le)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ue.length;n--;)if((e=ue[n]+t)in le)return e}function setPositiveNumber(e,t,n){var r=F.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function augmentWidthOrHeight(e,t,n,r,o){for(var i=n===(r?"border":"content")?4:"width"===t?1:0,a=0;i<4;i+=2)"margin"===n&&(a+=m.css(e,n+H[i],!0,o)),r?("content"===n&&(a-=m.css(e,"padding"+H[i],!0,o)),"margin"!==n&&(a-=m.css(e,"border"+H[i]+"Width",!0,o))):(a+=m.css(e,"padding"+H[i],!0,o),"padding"!==n&&(a+=m.css(e,"border"+H[i]+"Width",!0,o)));return a}function getWidthOrHeight(e,t,n){var r=!0,o="width"===t?e.offsetWidth:e.offsetHeight,i=ne(e),a="border-box"===m.css(e,"boxSizing",!1,i);if(o<=0||null==o){if(o=curCSS(e,t,i),(o<0||null==o)&&(o=e.style[t]),te.test(o))return o;r=a&&(g.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+augmentWidthOrHeight(e,t,n||(a?"border":"content"),r,i)+"px"}function showHide(e,t){for(var n,r,o,i=[],a=0,s=e.length;a<s;a++)r=e[a],r.style&&(i[a]=O.get(r,"olddisplay"),n=r.style.display,t?(i[a]||"none"!==n||(r.style.display=""),""===r.style.display&&q(r)&&(i[a]=O.access(r,"olddisplay",defaultDisplay(r.nodeName)))):(o=q(r),"none"===n&&o||O.set(r,"olddisplay",o?n:m.css(r,"display"))));for(a=0;a<s;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?i[a]||"":"none"));return e}function Tween(e,t,n,r,o){return new Tween.prototype.init(e,t,n,r,o)}function createFxNow(){return n.setTimeout(function(){ce=void 0}),ce=m.now()}function genFx(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)n=H[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function createTween(e,t,n){for(var r,o=(Animation.tweeners[t]||[]).concat(Animation.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function defaultPrefilter(e,t,n){var r,o,i,a,s,u,l,c=this,f={},d=e.style,h=e.nodeType&&q(e),p=O.get(e,"fxshow");n.queue||(s=m._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,m.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=m.css(e,"display"),"inline"===("none"===l?O.get(e,"olddisplay")||defaultDisplay(e.nodeName):l)&&"none"===m.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(o=t[r],de.exec(o)){if(delete t[r],i=i||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!p||void 0===p[r])continue;h=!0}f[r]=p&&p[r]||m.style(e,r)}else l=void 0;if(m.isEmptyObject(f))"inline"===("none"===l?defaultDisplay(e.nodeName):l)&&(d.display=l);else{p?"hidden"in p&&(h=p.hidden):p=O.access(e,"fxshow",{}),i&&(p.hidden=!h),h?m(e).show():c.done(function(){m(e).hide()}),c.done(function(){var t;O.remove(e,"fxshow");for(t in f)m.style(e,t,f[t])});for(r in f)a=createTween(h?p[r]:0,r,c),r in p||(p[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function propFilter(e,t){var n,r,o,i,a;for(n in e)if(r=m.camelCase(n),o=t[r],i=e[n],m.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=m.cssHooks[r])&&"expand"in a){i=a.expand(i),delete e[r];for(n in i)n in e||(e[n]=i[n],t[n]=o)}else t[r]=o}function Animation(e,t,n){var r,o,i=0,a=Animation.prefilters.length,s=m.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var t=ce||createFxNow(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,i=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(i);return s.notifyWith(e,[l,i,n]),i<1&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:m.extend({},t),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},n),originalProperties:t,originalOptions:n,startTime:ce||createFxNow(),duration:n.duration,tweens:[],createTween:function(t,n){var r=m.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(propFilter(c,l.opts.specialEasing);i<a;i++)if(r=Animation.prefilters[i].call(l,e,c,l.opts))return m.isFunction(r.stop)&&(m._queueHooks(l.elem,l.opts.queue).stop=m.proxy(r.stop,r)),r;return m.map(c,createTween,l),m.isFunction(l.opts.start)&&l.opts.start.call(e,l),m.fx.timer(m.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function getClass(e){return e.getAttribute&&e.getAttribute("class")||""}function addToPrefiltersOrTransports(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(A)||[];if(m.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function inspectPrefiltersOrTransports(e,t,n,r){function inspect(a){var s;return o[a]=!0,m.each(e[a]||[],function(e,a){var u=a(t,n,r);return"string"!=typeof u||i||o[u]?i?!(s=u):void 0:(t.dataTypes.unshift(u),inspect(u),!1)}),s}var o={},i=e===Se;return inspect(t.dataTypes[0])||!o["*"]&&inspect("*")}function ajaxExtend(e,t){var n,r,o=m.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&m.extend(!0,e,r),e}function ajaxHandleResponses(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}function ajaxConvert(e,t,n,r){var o,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=l[u+" "+i]||l["* "+i]))for(o in l)if(s=o.split(" "),s[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[o]:!0!==l[o]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}function buildParams(e,t,n,r){var o;if(m.isArray(t))m.each(t,function(t,o){n||De.test(e)?r(e,o):buildParams(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==m.type(t))r(e,t);else for(o in t)buildParams(e+"["+o+"]",t[o],n,r)}function getWindow(e){return m.isWindow(e)?e:9===e.nodeType&&e.defaultView}var a=[],s=n.document,u=a.slice,l=a.concat,c=a.push,f=a.indexOf,d={},h=d.toString,p=d.hasOwnProperty,g={},m=function(e,t){return new m.fn.init(e,t)},v=function(e,t){return t.toUpperCase()};m.fn=m.prototype={jquery:"2.2.4",constructor:m,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},m.extend=m.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],r=e[t],a!==r&&(l&&r&&(m.isPlainObject(r)||(o=m.isArray(r)))?(o?(o=!1,i=n&&m.isArray(n)?n:[]):i=n&&m.isPlainObject(n)?n:{},a[t]=m.extend(l,i,r)):void 0!==r&&(a[t]=r));return a},m.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===m.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!m.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==m.type(e)||e.nodeType||m.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=m.trim(e))&&(1===e.indexOf("use strict")?(t=s.createElement("script"),t.text=e,s.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(isArrayLike(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(isArrayLike(Object(e))?m.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:f.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(isArrayLike(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return l.apply([],a)},guid:1,proxy:function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),m.isFunction(e))return r=u.call(arguments,2),o=function(){return e.apply(t||this,r.concat(u.call(arguments)))},o.guid=e.guid=e.guid||m.guid++,o},now:Date.now,support:g}),"function"==typeof Symbol&&(m.fn[Symbol.iterator]=a[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var y=function(e){function Sizzle(e,t,r,o){var i,s,l,c,f,p,v,y,T=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!o&&((t?t.ownerDocument||t:x)!==h&&d(t),t=t||h,g)){if(11!==C&&(p=J.exec(e)))if(i=p[1]){if(9===C){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(T&&(l=T.getElementById(i))&&w(t,l)&&l.id===i)return r.push(l),r}else{if(p[2])return L.apply(r,t.getElementsByTagName(e)),r;if((i=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))){if(1!==C)T=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=b),v=a(e),s=v.length,f=V.test(c)?"#"+c:"[id='"+c+"']";s--;)v[s]=f+" "+toSelector(v[s]);y=v.join(","),T=Z.test(e)&&testContext(t.parentNode)||t}if(y)try{return L.apply(r,T.querySelectorAll(y)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(I,"$1"),t,r,o)}function createCache(){function cache(t,n){return e.push(t+" ")>r.cacheLength&&delete cache[e.shift()],cache[t+" "]=n}var e=[];return cache}function markFunction(e){return e[b]=!0,e}function assert(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function addHandle(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function siblingCheck(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function createPositionalPseudo(e){return markFunction(function(t){return t=+t,markFunction(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function testContext(e){return e&&void 0!==e.getElementsByTagName&&e}function setFilters(){}function toSelector(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function addCombinator(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var s,u,l,c=[T,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if(l=t[b]||(t[b]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(s=u[r])&&s[0]===T&&s[1]===i)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function elementMatcher(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function multipleContexts(e,t,n){for(var r=0,o=t.length;r<o;r++)Sizzle(e,t[r],n);return n}function condense(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(s)));return a}function setMatcher(e,t,n,r,o,i){return r&&!r[b]&&(r=setMatcher(r)),o&&!o[b]&&(o=setMatcher(o,i)),markFunction(function(i,a,s,u){var l,c,f,d=[],h=[],p=a.length,g=i||multipleContexts(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?g:condense(g,d,e,s,u),v=n?o||(i?e:p||r)?[]:a:m;if(n&&n(m,v,s,u),r)for(l=condense(v,h),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[h[c]]=!(m[h[c]]=f));if(i){if(o||e){if(o){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(m[c]=f);o(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&(l=o?R(i,f):d[c])>-1&&(i[l]=!(a[l]=f))}}else v=condense(v===a?v.splice(p,v.length):v),o?o(null,a,v,u):L.apply(a,v)})}function matcherFromTokens(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=addCombinator(function(e){return e===t},s,!0),f=addCombinator(function(e){return R(t,e)>-1},s,!0),d=[function(e,n,r){var o=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,o}];u<i;u++)if(n=r.relative[e[u].type])d=[addCombinator(elementMatcher(d),n)];else{if(n=r.filter[e[u].type].apply(null,e[u].matches),n[b]){for(o=++u;o<i&&!r.relative[e[o].type];o++);return setMatcher(u>1&&elementMatcher(d),u>1&&toSelector(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(I,"$1"),n,u<o&&matcherFromTokens(e.slice(u,o)),o<i&&matcherFromTokens(e=e.slice(o)),o<i&&toSelector(e))}d.push(n)}return elementMatcher(d)}function matcherFromGroupMatchers(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,u,c){var f,p,m,v=0,y="0",w=i&&[],b=[],x=l,C=i||o&&r.find.TAG("*",c),_=T+=null==x?1:Math.random()||.1,E=C.length;for(c&&(l=a===h||a||c);y!==E&&null!=(f=C[y]);y++){if(o&&f){for(p=0,a||f.ownerDocument===h||(d(f),s=!g);m=e[p++];)if(m(f,a||h,s)){u.push(f);break}c&&(T=_)}n&&((f=!m&&f)&&v--,i&&w.push(f))}if(v+=y,n&&y!==v){for(p=0;m=t[p++];)m(w,b,a,s);if(i){if(v>0)for(;y--;)w[y]||b[y]||(b[y]=P.call(u));b=condense(b)}L.apply(u,b),c&&!i&&b.length>0&&v+t.length>1&&Sizzle.uniqueSort(u)}return c&&(T=_,l=x),w};return n?markFunction(i):i}var t,n,r,o,i,a,s,u,l,c,f,d,h,p,g,m,v,y,w,b="sizzle"+1*new Date,x=e.document,T=0,C=0,_=createCache(),E=createCache(),k=createCache(),S=function(e,t){return e===t&&(f=!0),0},A=1<<31,N={}.hasOwnProperty,D=[],P=D.pop,O=D.push,L=D.push,M=D.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",q="\\["+F+"*("+H+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+F+"*\\]",B=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",z=new RegExp(F+"+","g"),I=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),W=new RegExp("^"+F+"*,"+F+"*"),U=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),$=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),X=new RegExp(B),V=new RegExp("^"+H+"$"),Y={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){d()};try{L.apply(D=M.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(e){L={apply:D.length?function(e,t){O.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}n=Sizzle.support={},i=Sizzle.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=Sizzle.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:x;return a!==h&&9===a.nodeType&&a.documentElement?(h=a,p=h.documentElement,g=!i(h),(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=assert(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=assert(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(h.getElementsByClassName),n.getById=assert(function(e){return p.appendChild(e).id=b,!h.getElementsByName||!h.getElementsByName(b).length}),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Q.test(h.querySelectorAll))&&(assert(function(e){p.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),assert(function(e){var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Q.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&assert(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",B)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(p.compareDocumentPosition),w=t||Q.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===h||e.ownerDocument===x&&w(x,e)?-1:t===h||t.ownerDocument===x&&w(x,t)?1:c?R(c,e)-R(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===h?-1:t===h?1:o?-1:i?1:c?R(c,e)-R(c,t):0;if(o===i)return siblingCheck(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?siblingCheck(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0},h):h},Sizzle.matches=function(e,t){return Sizzle(e,null,null,t)},Sizzle.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&d(e),t=t.replace($,"='$1']"),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return Sizzle(t,h,null,[e]).length>0},Sizzle.contains=function(e,t){return(e.ownerDocument||e)!==h&&d(e),w(e,t)},Sizzle.attr=function(e,t){(e.ownerDocument||e)!==h&&d(e);var o=r.attrHandle[t.toLowerCase()],i=o&&N.call(r.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},Sizzle.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Sizzle.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return c=null,e},o=Sizzle.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},r=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Sizzle.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Sizzle.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=Sizzle.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,h,p,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,w=!1;if(m){if(i){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(d=m,f=d[b]||(d[b]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],h=l[0]===T&&l[1],w=h&&l[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(w=h=0)||p.pop();)if(1===d.nodeType&&++w&&d===t){c[e]=[T,h,w];break}}else if(y&&(d=t,f=d[b]||(d[b]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],h=l[0]===T&&l[1],w=h),!1===w)for(;(d=++h&&d&&d[g]||(w=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++w||(y&&(f=d[b]||(d[b]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[T,w]),d!==t)););return(w-=o)===r||w%r==0&&w/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||Sizzle.error("unsupported pseudo: "+e);return o[b]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?markFunction(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)r=R(e,i[a]),e[r]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:markFunction(function(e){var t=[],n=[],r=s(e.replace(I,"$1"));return r[b]?markFunction(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:markFunction(function(e){return function(t){return Sizzle(e,t).length>0}}),contains:markFunction(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:markFunction(function(e){return V.test(e||"")||Sizzle.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(e,t){return[t-1]}),eq:createPositionalPseudo(function(e,t,n){return[n<0?n+t:n]}),even:createPositionalPseudo(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:createPositionalPseudo(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:createPositionalPseudo(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:createPositionalPseudo(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(t);return setFilters.prototype=r.filters=r.pseudos,r.setFilters=new setFilters,a=Sizzle.tokenize=function(e,t){var n,o,i,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){n&&!(o=W.exec(s))||(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),n=!1,(o=U.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(I," ")}),s=s.slice(n.length));for(a in r.filter)!(o=Y[a].exec(s))||l[a]&&!(o=l[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?Sizzle.error(e):E(e,u).slice(0)},s=Sizzle.compile=function(e,t){var n,r=[],o=[],i=k[e+" "];if(!i){for(t||(t=a(e)),n=t.length;n--;)i=matcherFromTokens(t[n]),i[b]?r.push(i):o.push(i);i=k(e,matcherFromGroupMatchers(o,r)),i.selector=e}return i},u=Sizzle.select=function(e,t,o,i){var u,l,c,f,d,h="function"==typeof e&&e,p=!i&&a(e=h.selector||e);if(o=o||[],1===p.length){if(l=p[0]=p[0].slice(0),l.length>2&&"ID"===(c=l[0]).type&&n.getById&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return o;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(u=Y.needsContext.test(e)?0:l.length;u--&&(c=l[u],!r.relative[f=c.type]);)if((d=r.find[f])&&(i=d(c.matches[0].replace(te,ne),Z.test(l[0].type)&&testContext(t.parentNode)||t))){if(l.splice(u,1),!(e=i.length&&toSelector(l)))return L.apply(o,i),o;break}}return(h||s(e,p))(i,t,!g,o,!t||Z.test(e)&&testContext(t.parentNode)||t),o},n.sortStable=b.split("").sort(S).join("")===b,n.detectDuplicates=!!f,d(),n.sortDetached=assert(function(e){return 1&e.compareDocumentPosition(h.createElement("div"))}),assert(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||addHandle("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&assert(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||addHandle("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),assert(function(e){return null==e.getAttribute("disabled")})||addHandle(j,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),Sizzle}(n);m.find=y,m.expr=y.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=y.uniqueSort,m.text=y.getText,m.isXMLDoc=y.isXML,m.contains=y.contains;var w=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&m(e).is(n))break;r.push(e)}return r},b=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},x=m.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,n=this.length,r=[],o=this;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t<n;t++)if(m.contains(o[t],this))return!0}));for(t=0;t<n;t++)m.find(e,o[t],r);return r=this.pushStack(n>1?m.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(winnow(this,e||[],!1))},not:function(e){return this.pushStack(winnow(this,e||[],!0))},is:function(e){return!!winnow(this,"string"==typeof e&&x.test(e)?m(e):e||[],!1).length}});var _,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||_,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:E.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),T.test(r[1])&&m.isPlainObject(t))for(r in t)m.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return o=s.getElementById(r[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=s,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),m.makeArray(e,this))}).prototype=m.fn,_=m(s);var k=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(m.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,o=this.length,i=[],a=x.test(e)||"string"!=typeof e?m(e,t||this.context):0;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?m.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?f.call(m(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return w(e,"parentNode")},parentsUntil:function(e,t,n){return w(e,"parentNode",n)},next:function(e){return sibling(e,"nextSibling")},prev:function(e){return sibling(e,"previousSibling")},nextAll:function(e){return w(e,"nextSibling")},prevAll:function(e){return w(e,"previousSibling")},nextUntil:function(e,t,n){return w(e,"nextSibling",n)},prevUntil:function(e,t,n){return w(e,"previousSibling",n)},siblings:function(e){return b((e.parentNode||{}).firstChild,e)},children:function(e){return b(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(n,r){var o=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=m.filter(r,o)),this.length>1&&(S[e]||m.uniqueSort(o),k.test(e)&&o.reverse()),this.pushStack(o)}});var A=/\S+/g;m.Callbacks=function(e){e="string"==typeof e?createOptions(e):m.extend({},e);var t,n,r,o,i=[],a=[],s=-1,u=function(){for(o=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},l={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function add(t){m.each(t,function(t,n){m.isFunction(n)?e.unique&&l.has(n)||i.push(n):n&&n.length&&"string"!==m.type(n)&&add(n)})}(arguments),n&&!t&&u()),this},remove:function(){return m.each(arguments,function(e,t){for(var n;(n=m.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?m.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred(function(n){m.each(t,function(t,i){var a=m.isFunction(e[t])&&e[t];o[i[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?m.extend(e,r):r}},o={};return r.pipe=r.then,m.each(t,function(e,i){var a=i[2],s=i[3];r[i[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),o[i[0]]=function(){return o[i[0]+"With"](this===o?r:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,r,o=0,i=u.call(arguments),a=i.length,s=1!==a||e&&m.isFunction(e.promise)?a:0,l=1===s?e:m.Deferred(),c=function(e,n,r){return function(o){n[e]=this,r[e]=arguments.length>1?u.call(arguments):o,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);o<a;o++)i[o]&&m.isFunction(i[o].promise)?i[o].promise().progress(c(o,n,t)).done(c(o,r,i)).fail(l.reject):--s;return s||l.resolveWith(r,i),l.promise()}});var N;m.fn.ready=function(e){return m.ready.promise().done(e),this},m.extend({isReady:!1,readyWait:1,holdReady:function(e){e?m.readyWait++:m.ready(!0)},ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||(N.resolveWith(s,[m]),m.fn.triggerHandler&&(m(s).triggerHandler("ready"),m(s).off("ready"))))}}),m.ready.promise=function(e){return N||(N=m.Deferred(),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(m.ready):(s.addEventListener("DOMContentLoaded",completed),n.addEventListener("load",completed))),N.promise(e)},m.ready.promise();var D=function(e,t,n,r,o,i,a){var s=0,u=e.length,l=null==n;if("object"===m.type(n)){o=!0;for(s in n)D(e,t,s,n[s],!0,i,a)}else if(void 0!==r&&(o=!0,m.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(m(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:l?t.call(e):u?t(e[0],n):i},P=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};Data.uid=1,Data.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!P(e))return{};var t=e[this.expando];return t||(t={},P(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[t]=n;else for(r in t)o[r]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,m.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,o,i=e[this.expando];if(void 0!==i){if(void 0===t)this.register(e);else{m.isArray(t)?r=t.concat(t.map(m.camelCase)):(o=m.camelCase(t),t in i?r=[t,o]:(r=o,r=r in i?[r]:r.match(A)||[])),n=r.length;for(;n--;)delete i[r[n]]}(void 0===t||m.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!m.isEmptyObject(t)}};var O=new Data,L=new Data,M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/[A-Z]/g;m.extend({hasData:function(e){return L.hasData(e)||O.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return O.access(e,t,n)},_removeData:function(e,t){O.remove(e,t)}}),m.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=L.get(i),1===i.nodeType&&!O.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=m.camelCase(r.slice(5)),dataAttr(i,r,o[r])));O.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){L.set(this,e)}):D(this,function(t){var n,r;if(i&&void 0===t){if(void 0!==(n=L.get(i,e)||L.get(i,e.replace(R,"-$&").toLowerCase())))return n;if(r=m.camelCase(e),void 0!==(n=L.get(i,r)))return n;if(void 0!==(n=dataAttr(i,r,void 0)))return n}else r=m.camelCase(e),this.each(function(){var n=L.get(this,r);L.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}}),m.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=O.get(e,t),n&&(!r||m.isArray(n)?r=O.access(e,t,m.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,o=n.shift(),i=m._queueHooks(e,t),a=function(){m.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,a,i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return O.get(e,n)||O.access(e,n,{empty:m.Callbacks("once memory").add(function(){O.remove(e,[t+"queue",n])})})}}),m.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?m.queue(this[0],e):void 0===t?this:this.each(function(){var n=m.queue(this,e,t);m._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&m.dequeue(this,e)})},dequeue:function(e){return this.each(function(){m.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=m.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=O.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var j=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,F=new RegExp("^(?:([+-])=|)("+j+")([a-z%]*)$","i"),H=["Top","Right","Bottom","Left"],q=function(e,t){return e=t||e,"none"===m.css(e,"display")||!m.contains(e.ownerDocument,e)},B=/^(?:checkbox|radio)$/i,z=/<([\w:-]+)/,I=/^$|\/(?:java|ecma)script/i,W={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};W.optgroup=W.option,W.tbody=W.tfoot=W.colgroup=W.caption=W.thead,W.th=W.td;var U=/<|&#?\w+;/;!function(){var e=s.createDocumentFragment(),t=e.appendChild(s.createElement("div")),n=s.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),g.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var $=/^key/,X=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,V=/^([^.]*)(?:\.(.+)|)/;m.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,l,c,f,d,h,p,g,v=O.get(e);if(v)for(n.handler&&(i=n,n=i.handler,o=i.selector),n.guid||(n.guid=m.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(A)||[""],l=t.length;l--;)s=V.exec(t[l])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h&&(f=m.event.special[h]||{},h=(o?f.delegateType:f.bindType)||h,f=m.event.special[h]||{},c=m.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&m.expr.match.needsContext.test(o),namespace:p.join(".")},i),(d=u[h])||(d=u[h]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,c):d.push(c),m.event.global[h]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,l,c,f,d,h,p,g,v=O.hasData(e)&&O.get(e);if(v&&(u=v.events)){for(t=(t||"").match(A)||[""],l=t.length;l--;)if(s=V.exec(t[l])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h){for(f=m.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=u[h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=d.length;i--;)c=d[i],!o&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(i,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,v.handle)||m.removeEvent(e,h,v.handle),delete u[h])}else for(h in u)m.event.remove(e,h+t[l],n,r,!0);m.isEmptyObject(u)&&O.remove(e,"handle events")}},dispatch:function(e){e=m.event.fix(e);var t,n,r,o,i,a=[],s=u.call(arguments),l=(O.get(this,"events")||{})[e.type]||[],c=m.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=m.event.handlers.call(this,e,l),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(i.namespace)||(e.handleObj=i,e.data=i.data,void 0!==(r=((m.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,o,i,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)i=t[n],o=i.selector+" ",void 0===r[o]&&(r[o]=i.needsContext?m(o,this).index(u)>-1:m.find(o,this,null,[u]).length),r[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail 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 offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,o,i=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||s,r=n.documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[m.expando])return e;var t,n,r,o=e.type,i=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=X.test(o)?this.mouseHooks:$.test(o)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new m.Event(i),t=r.length;t--;)n=r[t],e[n]=i[n];return e.target||(e.target=s),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&m.nodeName(this,"input"))return this.click(),!1},_default:function(e){return m.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},m.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},m.Event=function(e,t){if(!(this instanceof m.Event))return new m.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?returnTrue:returnFalse):this.type=e,t&&m.extend(this,t),this.timeStamp=e&&e.timeStamp||m.now(),this[m.expando]=!0},m.Event.prototype={constructor:m.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){m.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||m.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),m.fn.extend({on:function(e,t,n,r){return on(this,e,t,n,r)},one:function(e,t,n,r){return on(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,m(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=returnFalse),this.each(function(){m.event.remove(this,e,n,t)})}});var Y=/<script|<style|<link/i,K=/checked\s*(?:[^=]|=\s*.checked.)/i,G=/^true\/(.*)/,Q=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;m.extend({htmlPrefilter:function(e){return e.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=m.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(a=getAll(s),i=getAll(e),r=0,o=i.length;r<o;r++)fixInput(i[r],a[r]);if(t)if(n)for(i=i||getAll(e),a=a||getAll(s),r=0,o=i.length;r<o;r++)cloneCopyEvent(i[r],a[r]);else cloneCopyEvent(e,s);return a=getAll(s,"script"),a.length>0&&setGlobalEval(a,!u&&getAll(e,"script")),s},cleanData:function(e){for(var t,n,r,o=m.event.special,i=0;void 0!==(n=e[i]);i++)if(P(n)){if(t=n[O.expando]){if(t.events)for(r in t.events)o[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);n[O.expando]=void 0}n[L.expando]&&(n[L.expando]=void 0)}}}),m.fn.extend({domManip:domManip,detach:function(e){return remove(this,e,!0)},remove:function(e){return remove(this,e)},text:function(e){return D(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return domManip(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){manipulationTarget(this,e).appendChild(e)}})},prepend:function(){return domManip(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=manipulationTarget(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return domManip(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return domManip(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(getAll(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return D(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Y.test(e)&&!W[(z.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(m.cleanData(getAll(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return domManip(this,arguments,function(t){var n=this.parentNode;m.inArray(this,e)<0&&(m.cleanData(getAll(this)),n&&n.replaceChild(t,this))},e)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){m.fn[e]=function(e){for(var n,r=[],o=m(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),m(o[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var J,Z={HTML:"block",BODY:"block"},ee=/^margin/,te=new RegExp("^("+j+")(?!px)[a-z%]+$","i"),ne=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},re=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];o=n.apply(e,r||[]);for(i in t)e.style[i]=a[i];return o},oe=s.documentElement;!function(){function computeStyleTests(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",oe.appendChild(i);var s=n.getComputedStyle(a);e="1%"!==s.top,o="2px"===s.marginLeft,t="4px"===s.width,a.style.marginRight="50%",r="4px"===s.marginRight,oe.removeChild(i)}var e,t,r,o,i=s.createElement("div"),a=s.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===a.style.backgroundClip,i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",i.appendChild(a),m.extend(g,{pixelPosition:function(){return computeStyleTests(),e},boxSizingReliable:function(){return null==t&&computeStyleTests(),t},pixelMarginRight:function(){return null==t&&computeStyleTests(),r},reliableMarginLeft:function(){return null==t&&computeStyleTests(),o},reliableMarginRight:function(){var e,t=a.appendChild(s.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",oe.appendChild(i),e=!parseFloat(n.getComputedStyle(t).marginRight),oe.removeChild(i),a.removeChild(t),e}}))}();var ie=/^(none|table(?!-c[ea]).+)/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"},ue=["Webkit","O","Moz","ms"],le=s.createElement("div").style;m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=curCSS(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=m.camelCase(t),u=e.style;if(t=m.cssProps[s]||(m.cssProps[s]=vendorPropName(s)||s),a=m.cssHooks[t]||m.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:u[t];i=typeof n,"string"===i&&(o=F.exec(n))&&o[1]&&(n=adjustCSS(e,t,o),i="number"),null!=n&&n===n&&("number"===i&&(n+=o&&o[3]||(m.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var o,i,a,s=m.camelCase(t);return t=m.cssProps[s]||(m.cssProps[s]=vendorPropName(s)||s),a=m.cssHooks[t]||m.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=curCSS(e,t,r)),"normal"===o&&t in se&&(o=se[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),m.each(["height","width"],function(e,t){m.cssHooks[t]={get:function(e,n,r){if(n)return ie.test(m.css(e,"display"))&&0===e.offsetWidth?re(e,ae,function(){return getWidthOrHeight(e,t,r)}):getWidthOrHeight(e,t,r)},set:function(e,n,r){var o,i=r&&ne(e),a=r&&augmentWidthOrHeight(e,t,r,"border-box"===m.css(e,"boxSizing",!1,i),i);return a&&(o=F.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=m.css(e,t)),setPositiveNumber(e,n,a)}}}),m.cssHooks.marginLeft=addGetHookIf(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(curCSS(e,"marginLeft"))||e.getBoundingClientRect().left-re(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.cssHooks.marginRight=addGetHookIf(g.reliableMarginRight,function(e,t){if(t)return re(e,{display:"inline-block"},curCSS,[e,"marginRight"])}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+H[r]+t]=i[r]||i[r-2]||i[0];return o}},ee.test(e)||(m.cssHooks[e+t].set=setPositiveNumber)}),m.fn.extend({css:function(e,t){return D(this,function(e,t,n){var r,o,i={},a=0;if(m.isArray(t)){for(r=ne(e),o=t.length;a<o;a++)i[t[a]]=m.css(e,t[a],!1,r);return i}return void 0!==n?m.style(e,t,n):m.css(e,t)},e,t,arguments.length>1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){q(this)?m(this).show():m(this).hide()})}}),m.Tween=Tween,Tween.prototype={constructor:Tween,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||m.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(m.cssNumber[n]?"":"px")},cur:function(){var e=Tween.propHooks[this.prop];return e&&e.get?e.get(this):Tween.propHooks._default.get(this)},run:function(e){var t,n=Tween.propHooks[this.prop];return this.options.duration?this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop]?e.elem[e.prop]=e.now:m.style(e.elem,e.prop,e.now+e.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},m.fx=Tween.prototype.init,m.fx.step={};var ce,fe,de=/^(?:toggle|show|hide)$/,he=/queueHooks$/;m.Animation=m.extend(Animation,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return adjustCSS(n.elem,e,F.exec(t),n),n}]},tweener:function(e,t){m.isFunction(e)?(t=e,e=["*"]):e=e.match(A);for(var n,r=0,o=e.length;r<o;r++)n=e[r],Animation.tweeners[n]=Animation.tweeners[n]||[],Animation.tweeners[n].unshift(t)},prefilters:[defaultPrefilter],prefilter:function(e,t){t?Animation.prefilters.unshift(e):Animation.prefilters.push(e)}}),m.speed=function(e,t,n){var r=e&&"object"==typeof e?m.extend({},e):{complete:n||!n&&t||m.isFunction(e)&&e,duration:e,easing:n&&t||t&&!m.isFunction(t)&&t};return r.duration=m.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in m.fx.speeds?m.fx.speeds[r.duration]:m.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m.isFunction(r.old)&&r.old.call(this),r.queue&&m.dequeue(this,r.queue)},r},m.fn.extend({fadeTo:function(e,t,n,r){return this.filter(q).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=m.isEmptyObject(e),i=m.speed(t,n,r),a=function(){var t=Animation(this,m.extend({},e),i);(o||O.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=m.timers,a=O.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&he.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||m.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=O.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=m.timers,a=r?r.length:0;for(n.finish=!0,m.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),m.each(["toggle","show","hide"],function(e,t){var n=m.fn[t];m.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(genFx(t,!0),e,r,o)}}),m.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){m.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),m.timers=[],m.fx.tick=function(){var e,t=0,n=m.timers;for(ce=m.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||m.fx.stop(),ce=void 0},m.fx.timer=function(e){m.timers.push(e),e()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){fe||(fe=n.setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){n.clearInterval(fe),fe=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(e,t){return e=m.fx?m.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}})},function(){var e=s.createElement("input"),t=s.createElement("select"),n=t.appendChild(s.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=n.selected,t.disabled=!0,g.optDisabled=!n.disabled,e=s.createElement("input"),e.value="t",e.type="radio",g.radioValue="t"===e.value}();var pe,ge=m.expr.attrHandle;m.fn.extend({attr:function(e,t){return D(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}}),m.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?m.prop(e,t,n):(1===i&&m.isXMLDoc(e)||(t=t.toLowerCase(),o=m.attrHooks[t]||(m.expr.match.bool.test(t)?pe:void 0)),void 0!==n?null===n?void m.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:(r=m.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,o=0,i=t&&t.match(A);if(i&&1===e.nodeType)for(;n=i[o++];)r=m.propFix[n]||n,m.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),pe={set:function(e,t,n){return!1===t?m.removeAttr(e,n):e.setAttribute(n,n),n}},m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ge[t]||m.find.attr;ge[t]=function(e,t,r){var o,i;return r||(i=ge[t],ge[t]=o,o=null!=n(e,t,r)?t.toLowerCase():null,ge[t]=i),o}});var me=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;m.fn.extend({prop:function(e,t){return D(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[m.propFix[e]||e]})}}),m.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&m.isXMLDoc(e)||(t=m.propFix[t]||t,o=m.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):me.test(e.nodeName)||ve.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});m.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).addClass(e.call(this,t,getClass(this)))});if("string"==typeof e&&e)for(t=e.match(A)||[];n=this[u++];)if(o=getClass(n),r=1===n.nodeType&&(" "+o+" ").replace(/[\t\r\n\f]/g," ")){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=m.trim(r),o!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).removeClass(e.call(this,t,getClass(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(A)||[];n=this[u++];)if(o=getClass(n),r=1===n.nodeType&&(" "+o+" ").replace(/[\t\r\n\f]/g," ")){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");s=m.trim(r),o!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each(function(n){m(this).toggleClass(e.call(this,n,getClass(this),t),t)}):this.each(function(){var t,r,o,i;if("string"===n)for(r=0,o=m(this),i=e.match(A)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||(t=getClass(this),t&&O.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":O.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+getClass(n)+" ").replace(/[\t\r\n\f]/g," ").indexOf(t)>-1)return!0;return!1}});m.fn.extend({val:function(e){var t,n,r,o=this[0];{if(arguments.length)return r=m.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=r?e.call(this,n,m(this).val()):e,null==o?o="":"number"==typeof o?o+="":m.isArray(o)&&(o=m.map(o,function(e){return null==e?"":e+""})),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))});if(o)return(t=m.valHooks[o.type]||m.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(/\r/g,""):null==n?"":n)}}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:m.trim(m.text(e)).replace(/[\x20\t\r\n\f]+/g," ")}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type||o<0,a=i?null:[],s=i?o+1:r.length,u=o<0?s:i?o:0;u<s;u++)if(n=r[u],(n.selected||u===o)&&(g.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(t=m(n).val(),i)return t;a.push(t)}return a},set:function(e,t){for(var n,r,o=e.options,i=m.makeArray(t),a=o.length;a--;)r=o[a],(r.selected=m.inArray(m.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t))return e.checked=m.inArray(m(e).val(),t)>-1}},g.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ye=/^(?:focusinfocus|focusoutblur)$/;m.extend(m.event,{trigger:function(e,t,r,o){var i,a,u,l,c,f,d,h=[r||s],g=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(a=u=r=r||s,3!==r.nodeType&&8!==r.nodeType&&!ye.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,e=e[m.expando]?e:new m.Event(g,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:m.makeArray(t,[e]),d=m.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(r,t))){if(!o&&!d.noBubble&&!m.isWindow(r)){for(l=d.delegateType||g,ye.test(l+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||s)&&h.push(u.defaultView||u.parentWindow||n)}for(i=0;(a=h[i++])&&!e.isPropagationStopped();)e.type=i>1?l:d.bindType||g,f=(O.get(a,"events")||{})[e.type]&&O.get(a,"handle"),f&&f.apply(a,t),(f=c&&a[c])&&f.apply&&P(a)&&(e.result=f.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!P(r)||c&&m.isFunction(r[g])&&!m.isWindow(r)&&(u=r[c],u&&(r[c]=null),m.event.triggered=g,r[g](),m.event.triggered=void 0,u&&(r[c]=u)),e.result}},simulate:function(e,t,n){var r=m.extend(new m.Event,n,{type:e,isSimulated:!0});m.event.trigger(r,null,t)}}),m.fn.extend({trigger:function(e,t){return this.each(function(){m.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return m.event.trigger(e,t,n,!0)}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),g.focusin="onfocusin"in n,g.focusin||m.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){m.event.simulate(t,e.target,m.event.fix(e))};m.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=O.access(r,t);o||r.addEventListener(e,n,!0),O.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=O.access(r,t)-1;o?O.access(r,t,o):(r.removeEventListener(e,n,!0),O.remove(r,t))}}});var we=n.location,be=m.now(),xe=/\?/;m.parseJSON=function(e){return JSON.parse(e+"")},m.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+e),t};var Te=/([?&])_=[^&]*/,Ce=/^(.*?):[ \t]*([^\r\n]*)$/gm,_e=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ee=/^(?:GET|HEAD)$/,ke={},Se={},Ae="*/".concat("*"),Ne=s.createElement("a");Ne.href=we.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:_e.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ae,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ajaxExtend(ajaxExtend(e,m.ajaxSettings),t):ajaxExtend(m.ajaxSettings,e)},ajaxPrefilter:addToPrefiltersOrTransports(ke),ajaxTransport:addToPrefiltersOrTransports(Se),ajax:function(e,t){function done(e,t,a,s){var l,f,w,b,T,_=t;2!==x&&(x=2,u&&n.clearTimeout(u),r=void 0,i=s||"",C.readyState=e>0?4:0,l=e>=200&&e<300||304===e,a&&(b=ajaxHandleResponses(d,C,a)),b=ajaxConvert(d,b,C,l),l?(d.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(m.lastModified[o]=T),(T=C.getResponseHeader("etag"))&&(m.etag[o]=T)),204===e||"HEAD"===d.type?_="nocontent":304===e?_="notmodified":(_=b.state,f=b.data,w=b.error,l=!w)):(w=_,!e&&_||(_="error",e<0&&(e=0))),C.status=e,C.statusText=(t||_)+"",l?g.resolveWith(h,[f,_,C]):g.rejectWith(h,[C,_,w]),C.statusCode(y),y=void 0,c&&p.trigger(l?"ajaxSuccess":"ajaxError",[C,d,l?f:w]),v.fireWith(h,[C,_]),c&&(p.trigger("ajaxComplete",[C,d]),--m.active||m.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,a,u,l,c,f,d=m.ajaxSetup({},t),h=d.context||d,p=d.context&&(h.nodeType||h.jquery)?m(h):m.event,g=m.Deferred(),v=m.Callbacks("once memory"),y=d.statusCode||{},w={},b={},x=0,T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!a)for(a={};t=Ce.exec(i);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,w[e]=t),this},overrideMimeType:function(e){return x||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)y[t]=[y[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||T;return r&&r.abort(t),done(0,t),this}};if(g.promise(C).complete=v.add,C.success=C.done,C.error=C.fail,d.url=((e||d.url||we.href)+"").replace(/#.*$/,"").replace(/^\/\//,we.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=m.trim(d.dataType||"*").toLowerCase().match(A)||[""],null==d.crossDomain){l=s.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Ne.protocol+"//"+Ne.host!=l.protocol+"//"+l.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=m.param(d.data,d.traditional)),inspectPrefiltersOrTransports(ke,d,t,C),2===x)return C;c=m.event&&d.global,c&&0==m.active++&&m.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ee.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(xe.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=Te.test(o)?o.replace(Te,"$1_="+be++):o+(xe.test(o)?"&":"?")+"_="+be++)),d.ifModified&&(m.lastModified[o]&&C.setRequestHeader("If-Modified-Since",m.lastModified[o]),m.etag[o]&&C.setRequestHeader("If-None-Match",m.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ae+"; q=0.01":""):d.accepts["*"]);for(f in d.headers)C.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,C,d)||2===x))return C.abort();T="abort";for(f in{success:1,error:1,complete:1})C[f](d[f]);if(r=inspectPrefiltersOrTransports(Se,d,t,C)){if(C.readyState=1,c&&p.trigger("ajaxSend",[C,d]),2===x)return C;d.async&&d.timeout>0&&(u=n.setTimeout(function(){C.abort("timeout")},d.timeout));try{x=1,r.send(w,done)}catch(e){if(!(x<2))throw e;done(-1,e)}}else done(-1,"No Transport");return C},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,o){return m.isFunction(n)&&(o=o||r,r=n,n=void 0),m.ajax(m.extend({url:e,type:t,dataType:o,data:n,success:r},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){var t;return m.isFunction(e)?this.each(function(t){m(this).wrapAll(e.call(this,t))}):(this[0]&&(t=m(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(e){return!m.expr.filters.visible(e)},m.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var De=/\[\]$/,Pe=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;m.param=function(e,t){var n,r=[],o=function(e,t){t=m.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){o(this.name,this.value)});else for(n in e)buildParams(n,e[n],t,o);return r.join("&").replace(/%20/g,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&Oe.test(this.nodeName)&&!Pe.test(e)&&(this.checked||!B.test(e))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(/\r?\n/g,"\r\n")}}):{name:t.name,value:n.replace(/\r?\n/g,"\r\n")}}).get()}}),m.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Le={0:200,1223:204},Me=m.ajaxSettings.xhr();g.cors=!!Me&&"withCredentials"in Me,g.ajax=Me=!!Me,m.ajaxTransport(function(e){var t,r;if(g.cors||Me&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(a in o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Le[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,o){t=m("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Re=[],je=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Re.pop()||m.expando+"_"+be++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(je.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&je.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=m.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(je,"$1"+o):!1!==e.jsonp&&(e.url+=(xe.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||m.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always(function(){void 0===i?m(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,Re.push(o)),a&&m.isFunction(i)&&i(a[0]),a=i=void 0}),"script"}),m.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||s;var r=T.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=buildFragment([e],t,o),o&&o.length&&m(o).remove(),m.merge([],r.childNodes))};var Fe=m.fn.load;m.fn.load=function(e,t,n){if("string"!=typeof e&&Fe)return Fe.apply(this,arguments);var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=m.trim(e.slice(s)),e=e.slice(0,s)),m.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&m.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?m("<div>").append(m.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.filters.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,l,c=m.css(e,"position"),f=m(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),i=m.css(e,"top"),u=m.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(i+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),m.isFunction(t)&&(t=t.call(e,n,m.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):f.css(d)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,n,r=this[0],o={top:0,left:0},i=r&&r.ownerDocument;if(i)return t=i.documentElement,m.contains(t,r)?(o=r.getBoundingClientRect(),n=getWindow(i),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===m.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(r=e.offset()),r.top+=m.css(e[0],"borderTopWidth",!0),r.left+=m.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-m.css(n,"marginTop",!0),left:t.left-r.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===m.css(e,"position");)e=e.offsetParent;return e||oe})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;m.fn[e]=function(r){return D(this,function(e,r,o){var i=getWindow(e);if(void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=addGetHookIf(g.pixelPosition,function(e,n){if(n)return n=curCSS(e,t),te.test(n)?m(e).position()[t]+"px":n})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){m.fn[r]=function(r,o){var i=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return D(this,function(t,n,r){var o;return m.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?m.css(t,n,a):m.style(t,n,r,a)},t,i?r:void 0,i,null)}})}),m.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),m.fn.andSelf=m.fn.addBack,r=[],void 0!==(o=function(){return m}.apply(t,r))&&(e.exports=o);var He=n.jQuery,qe=n.$;return m.noConflict=function(e){return n.$===m&&(n.$=qe),e&&n.jQuery===m&&(n.jQuery=He),m},i||(n.jQuery=n.$=m),m})},function(e,t,n){"use strict";(function(e){function escapeHtml(e){return String(e).replace(/[&<>"'\/]/g,function(e){return i[e]})}function mousePosition(t){var n=e.document.body,o={top:0,left:0};return"static"!==r(n).css("position")&&(o=r(n).offset()),{top:t.pageY-o.top,left:t.pageX-o.left}}var r=n(0),o=n(17).Promise,i={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},a=function(){if("function"==typeof e.Gettext){var t=new e.Gettext({domain:"annotator"});return function(e){return t.gettext(e)}}return function(e){return e}}();t.$=r,t.Promise=o,t.gettext=a,t.escapeHtml=escapeHtml,t.mousePosition=mousePosition}).call(t,n(2))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){function Widget(e){this.element=i(this.constructor.template),this.classes=i.extend({},Widget.classes,this.constructor.classes),this.options=i.extend({},Widget.options,this.constructor.options,e),this.extensionsInstalled=!1}var r=n(16),o=n(1),i=o.$;Widget.prototype.destroy=function(){this.element.remove()},Widget.prototype.installExtensions=function(){if(this.options.extensions)for(var e=0,t=this.options.extensions.length;e<t;e++){var n=this.options.extensions[e];n(this)}},Widget.prototype._maybeInstallExtensions=function(){this.extensionsInstalled||(this.extensionsInstalled=!0,this.installExtensions())},Widget.prototype.attach=function(){this.element.appendTo(this.options.appendTo),this._maybeInstallExtensions()},Widget.prototype.show=function(){this.element.removeClass(this.classes.hide),this.checkOrientation()},Widget.prototype.hide=function(){i(this.element).addClass(this.classes.hide)},Widget.prototype.isShown=function(){return!i(this.element).hasClass(this.classes.hide)},Widget.prototype.checkOrientation=function(){this.resetOrientation();var t=i(e),n=this.element.children(":first"),r=n.offset(),o={top:t.scrollTop(),right:t.width()+t.scrollLeft()},a={top:r.top,right:r.left+n.width()};return a.top-o.top<0&&this.invertY(),a.right-o.right>0&&this.invertX(),this},Widget.prototype.resetOrientation=function(){return this.element.removeClass(this.classes.invert.x).removeClass(this.classes.invert.y),this},Widget.prototype.invertX=function(){return this.element.addClass(this.classes.invert.x),this},Widget.prototype.invertY=function(){return this.element.addClass(this.classes.invert.y),this},Widget.prototype.isInvertedY=function(){return this.element.hasClass(this.classes.invert.y)},Widget.prototype.isInvertedX=function(){return this.element.hasClass(this.classes.invert.x)},Widget.classes={hide:"annotator-hide",invert:{x:"annotator-invert-x",y:"annotator-invert-y"}},Widget.template="<div></div>",Widget.options={appendTo:"body"},Widget.extend=r,t.Widget=Widget}).call(t,n(2))},function(e,t,n){var r;!function(o,i,a){function _addEvent(e,t,n){if(e.addEventListener)return void e.addEventListener(t,n,!1);e.attachEvent("on"+t,n)}function _characterFromEvent(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return u[e.which]?u[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function _modifiersMatch(e,t){return e.sort().join(",")===t.sort().join(",")}function _eventModifiers(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 _preventDefault(e){if(e.preventDefault)return void e.preventDefault();e.returnValue=!1}function _stopPropagation(e){if(e.stopPropagation)return void e.stopPropagation();e.cancelBubble=!0}function _isModifier(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function _getReverseMap(){if(!s){s={};for(var e in u)e>95&&e<112||u.hasOwnProperty(e)&&(s[u[e]]=e)}return s}function _pickBestAction(e,t,n){return n||(n=_getReverseMap()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function _keysFromString(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function _getKeyInfo(e,t){var n,r,o,i=[];for(n=_keysFromString(e),o=0;o<n.length;++o)r=n[o],f[r]&&(r=f[r]),t&&"keypress"!=t&&c[r]&&(r=c[r],i.push("shift")),_isModifier(r)&&i.push(r);return t=_pickBestAction(r,i,t),{key:r,modifiers:i,action:t}}function _belongsTo(e,t){return null!==e&&e!==i&&(e===t||_belongsTo(e.parentNode,t))}function Mousetrap(e){function _resetSequences(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function _getMatches(e,n,o,i,a,s){var u,l,c=[],f=o.type;if(!t._callbacks[e])return[];for("keyup"==f&&_isModifier(e)&&(n=[e]),u=0;u<t._callbacks[e].length;++u)if(l=t._callbacks[e][u],(i||!l.seq||r[l.seq]==l.level)&&f==l.action&&("keypress"==f&&!o.metaKey&&!o.ctrlKey||_modifiersMatch(n,l.modifiers))){var d=!i&&l.combo==a,h=i&&l.seq==i&&l.level==s;(d||h)&&t._callbacks[e].splice(u,1),c.push(l)}return c}function _fireCallback(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(_preventDefault(n),_stopPropagation(n))}function _handleKeyEvent(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=_characterFromEvent(e);if(n)return"keyup"==e.type&&o===n?void(o=!1):void t.handleKey(n,_eventModifiers(e),e)}function _resetSequenceTimer(){clearTimeout(n),n=setTimeout(_resetSequences,1e3)}function _bindSequence(e,t,n,i){function _callbackAndReset(t){_fireCallback(n,t,e),"keyup"!==i&&(o=_characterFromEvent(t)),setTimeout(_resetSequences,10)}r[e]=0;for(var a=0;a<t.length;++a){var u=a+1===t.length,l=u?_callbackAndReset:function(t){return function(){s=t,++r[e],_resetSequenceTimer()}}(i||_getKeyInfo(t[a+1]).action);_bindSingle(t[a],l,i,e,a)}}function _bindSingle(e,n,r,o,i){t._directMap[e+":"+r]=n,e=e.replace(/\s+/g," ");var a,s=e.split(" ");if(s.length>1)return void _bindSequence(e,s,n,r);a=_getKeyInfo(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],_getMatches(a.key,a.modifiers,{type:a.action},o,e,i),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e})}var t=this;if(e=e||i,!(t instanceof Mousetrap))return new Mousetrap(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,a=!1,s=!1;t._handleKey=function(e,t,n){var r,o=_getMatches(e,t,n),i={},u=0,l=!1;for(r=0;r<o.length;++r)o[r].seq&&(u=Math.max(u,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=u)continue;l=!0,i[o[r].seq]=1,_fireCallback(o[r].callback,n,o[r].combo,o[r].seq)}else l||_fireCallback(o[r].callback,n,o[r].combo);var c="keypress"==n.type&&a;n.type!=s||_isModifier(e)||c||_resetSequences(i),a=l&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)_bindSingle(e[r],t,n)},_addEvent(e,"keypress",_handleKeyEvent),_addEvent(e,"keydown",_handleKeyEvent),_addEvent(e,"keyup",_handleKeyEvent)}if(o){for(var s,u={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"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)u[111+d]="f"+d;for(d=0;d<=9;++d)u[d+96]=d.toString();Mousetrap.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},Mousetrap.prototype.unbind=function(e,t){var n=this;return n.bind.call(n,e,function(){},t)},Mousetrap.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},Mousetrap.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},Mousetrap.prototype.stopCallback=function(e,t){var n=this;return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&(!_belongsTo(t,n.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable))},Mousetrap.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},Mousetrap.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(u[t]=e[t]);s=null},Mousetrap.init=function(){var e=Mousetrap(i);for(var t in e)"_"!==t.charAt(0)&&(Mousetrap[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},Mousetrap.init(),o.Mousetrap=Mousetrap,void 0!==e&&e.exports&&(e.exports=Mousetrap),void 0!==(r=function(){return Mousetrap}.call(t,n,t,e))&&(e.exports=r)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(e,t,n){"use strict";var r;t.acl=function(){var e=new r;return{configure:function(t){t.registerUtility(e,"authorizationPolicy")}}},r=t.AclAuthzPolicy=function(){},r.prototype.permits=function(e,t,n){var r=this.authorizedUserId(n),o=t.permissions;if(o){var i=o[e];if(void 0===i||null===i)return!0;for(var a=0,s=i.length;a<s;a++)if(r===i[a])return!0;return!1}return!t.user||r===t.user},r.prototype.authorizedUserId=function(e){return e}},function(e,t,n){"use strict";var r;t.simple=function(){var e=new r;return{configure:function(t){t.registerUtility(e,"identityPolicy")},beforeAnnotationCreated:function(t){t.user=e.who()}}},r=function(){this.identity=null},t.SimpleIdentityPolicy=r,r.prototype.who=function(){return this.identity}},function(e,t,n){"use strict";(function(e){function banner(t,n){void 0!==n&&null!==n||(n=i);var u=o(a)[0],l=!1,c=function(){l||(l=!0,o(u).removeClass(s.show).removeClass(s[n]),setTimeout(function(){o(u).remove()},500))};return o(u).addClass(s.show).addClass(s[n]).html(r.escapeHtml(t||"")).appendTo(e.document.body),o(u).on("click",c),setTimeout(c,5e3),{close:c}}var r=n(1),o=r.$,i="info",a="<div class='annotator-notice'></div>",s={show:"annotator-notice-show",info:"annotator-notice-info",success:"annotator-notice-success",error:"annotator-notice-error"};t.banner=banner,t.defaultNotifier=banner,t.INFO=i,t.SUCCESS="success",t.ERROR="error"}).call(t,n(2))},function(e,t,n){"use strict";function StorageAdapter(e,t){this.store=e,this.runHook=t}var r=n(1),o=r.$,i=r.gettext,a=r.Promise,s=function(){var e;return e=-1,function(){return e+=1}}();t.debug=function(){function trace(e,t){var n=JSON.parse(JSON.stringify(t));console.debug("annotator.storage.debug: "+e,n)}return{create:function(e){return e.id=s(),trace("create",e),e},update:function(e){return trace("update",e),e},delete:function(e){return trace("destroy",e),e},query:function(e){return trace("query",e),{results:[],meta:{total:0}}},configure:function(e){e.registerUtility(this,"storage")}}},t.noop=function(){return{create:function(e){return void 0!==e.id&&null!==e.id||(e.id=s()),e},update:function(e){return e},delete:function(e){return e},query:function(){return{results:[]}},configure:function(e){e.registerUtility(this,"storage")}}};var u;t.http=function(e){var t=function(){};void 0!==e&&null!==e||(e={}),e.onError=e.onError||function(e,n){console.error(e,n),t(e,"error")};var n=new u(e);return{configure:function(e){e.registerUtility(n,"storage")},start:function(e){t=e.notify}}},u=t.HttpStorage=function HttpStorage(e){this.options=o.extend(!0,{},HttpStorage.options,e),this.onError=this.options.onError},u.prototype.create=function(e){return this._apiRequest("create",e)},u.prototype.update=function(e){return this._apiRequest("update",e)},u.prototype.delete=function(e){return this._apiRequest("destroy",e)},u.prototype.query=function(e){return this._apiRequest("search",e).then(function(e){var t=e.rows;return delete e.rows,{results:t,meta:e}})},u.prototype.setHeader=function(e,t){this.options.headers[e]=t},u.prototype._apiRequest=function(e,t){var n=t&&t.id,r=this._urlFor(e,n),i=this._apiRequestOptions(e,t),a=o.ajax(r,i);return a._id=n,a._action=e,a},u.prototype._apiRequestOptions=function(e,t){var n=this._methodFor(e),r=this,i={type:n,dataType:"json",error:function(){r._onError.apply(r,arguments)},headers:this.options.headers};if(!this.options.emulateHTTP||"PUT"!==n&&"DELETE"!==n||(i.headers=o.extend(i.headers,{"X-HTTP-Method-Override":n}),i.type="POST"),"search"===e)return i=o.extend(i,{data:t});var a=t&&JSON.stringify(t);return this.options.emulateJSON?(i.data={json:a},this.options.emulateHTTP&&(i.data._method=n),i):i=o.extend(i,{data:a,contentType:"application/json; charset=utf-8"})},u.prototype._urlFor=function(e,t){void 0!==t&&null!==t||(t="");var n="";return void 0!==this.options.prefix&&null!==this.options.prefix&&(n=this.options.prefix),n+=this.options.urls[e],n=n.replace(/idAnnotation/,t)},u.prototype._methodFor=function(e){return{create:"POST",update:"PUT",destroy:"DELETE",search:"GET"}[e]},u.prototype._onError=function(e){if("function"==typeof this.onError){var t;t=i(400===e.status?"The annotation store did not understand the request! (Error 400)":401===e.status?"You must be logged in to perform this operation! (Error 401)":403===e.status?"You don't have permission to perform this operation! (Error 403)":404===e.status?"Could not connect to the annotation store! (Error 404)":500===e.status?"Internal error in annotation store! (Error 500)":"Unknown error while speaking to annotation store!"),this.onError(t,e)}},u.options={emulateHTTP:!1,emulateJSON:!1,headers:{},onError:function(e){console.error("API request failed: "+e)},prefix:"/store",urls:{create:"/annotations",update:"/annotations/idAnnotation",destroy:"/annotations/idAnnotation",search:"/search"}},StorageAdapter.prototype.create=function(e){return void 0!==e&&null!==e||(e={}),this._cycle(e,"create","beforeAnnotationCreated","annotationCreated")},StorageAdapter.prototype.update=function(e){if(void 0===e.id||null===e.id)throw new TypeError("annotation must have an id for update()");return this._cycle(e,"update","beforeAnnotationUpdated","annotationUpdated")},StorageAdapter.prototype.delete=function(e){if(void 0===e.id||null===e.id)throw new TypeError("annotation must have an id for delete()");return this._cycle(e,"delete","beforeAnnotationDeleted","annotationDeleted")},StorageAdapter.prototype.query=function(e){return a.resolve(this.store.query(e))},StorageAdapter.prototype.load=function(e){var t=this;return this.query(e).then(function(e){t.runHook("annotationsLoaded",[e.results])})},StorageAdapter.prototype._cycle=function(e,t,n,r){var i=this;return this.runHook(n,[e]).then(function(){var n=o.extend(!0,{},e);delete n._local;var r=i.store[t](n);return a.resolve(r)}).then(function(t){for(var n in e)e.hasOwnProperty(n)&&"_local"!==n&&delete e[n];return o.extend(e,t),i.runHook(r,[e]),e})},t.StorageAdapter=StorageAdapter},function(e,t,n){"use strict";var r=n(3).Widget,o=n(1),i=o.$,a=o.gettext,s="annotator-adder",u=r.extend({constructor:function(e){r.call(this,e),this.ignoreMouseup=!1,this.annotation=null,this.onCreate=this.options.onCreate;var t=this;this.element.on("click."+s,"button",function(e){t._onClick(e)}).on("mousedown."+s,"button",function(e){t._onMousedown(e)}),this.document=this.element[0].ownerDocument,i(this.document.body).on("mouseup."+s,function(e){t._onMouseup(e)})},destroy:function(){this.element.off("."+s),i(this.document.body).off("."+s),r.prototype.destroy.call(this)},load:function(e,t){this.annotation=e,this.show(t)},show:function(e){void 0!==e&&null!==e&&this.element.css({top:e.top,left:e.left}),r.prototype.show.call(this)},_onMousedown:function(e){e.which>1||(e.preventDefault(),this.ignoreMouseup=!0)},_onMouseup:function(e){e.which>1||this.ignoreMouseup&&e.stopImmediatePropagation()},_onClick:function(e){e.which>1||(e.preventDefault(),this.hide(),this.ignoreMouseup=!1,null!==this.annotation&&"function"==typeof this.onCreate&&this.onCreate(this.annotation,e))}});u.template=['<div class="annotator-adder annotator-hide">',' <button type="button">'+a("Annotate")+"</button>","</div>"].join("\n"),u.options={onCreate:null},t.Adder=u},function(e,t,n){"use strict";function preventEventDefault(e){void 0!==e&&null!==e&&"function"==typeof e.preventDefault&&e.preventDefault()}var r=n(3).Widget,o=n(1),i=o.$,a=o.gettext,s=o.Promise,u="annotator-editor",l=function(){var e;return e=-1,function(){return e+=1}}(),c=t.dragTracker=function(e,t){function mouseMove(e){if(!r&&null!==n){var o={y:e.pageY-n.top,x:e.pageX-n.left},i=!0;"function"==typeof t&&(i=t(o)),!1!==i&&(n={top:e.pageY,left:e.pageX}),r=!0,setTimeout(function(){r=!1},1e3/60)}}function mouseUp(){n=null,i(e.ownerDocument).off("mouseup",mouseUp).off("mousemove",mouseMove)}function mouseDown(t){t.target===e&&(n={top:t.pageY,left:t.pageX},i(e.ownerDocument).on("mouseup",mouseUp).on("mousemove",mouseMove),t.preventDefault())}function destroy(){i(e).off("mousedown",mouseDown)}var n=null,r=!1;return i(e).on("mousedown",mouseDown),{destroy:destroy}},f=t.resizer=function(e,t,n){function translate(e){var t=1,r=-1;return"function"==typeof n.invertedX&&n.invertedX()&&(t=-1),"function"==typeof n.invertedY&&n.invertedY()&&(r=1),{x:e.x*t,y:e.y*r}}function resize(e){var t=r.height(),n=r.width(),o=translate(e);return Math.abs(o.x)>0&&r.width(n+o.x),Math.abs(o.y)>0&&r.height(t+o.y),r.height()!==t||r.width()!==n}var r=i(e);return void 0!==n&&null!==n||(n={}),c(t,resize)},d=t.mover=function(e,t){function move(t){i(e).css({top:parseInt(i(e).css("top"),10)+t.y,left:parseInt(i(e).css("left"),10)+t.x})}return c(t,move)},h=t.Editor=r.extend({constructor:function(e){r.call(this,e),this.fields=[],this.annotation={},this.options.defaultFields&&this.addField({type:"textarea",label:a("Comments")+"…",load:function(e,t){i(e).find("textarea").val(t.text||"")},submit:function(e,t){t.text=i(e).find("textarea").val()}});var t=this;this.element.on("submit."+u,"form",function(e){t._onFormSubmit(e)}).on("click."+u,".annotator-save",function(e){t._onSaveClick(e)}).on("click."+u,".annotator-cancel",function(e){t._onCancelClick(e)}).on("mouseover."+u,".annotator-cancel",function(e){t._onCancelMouseover(e)}).on("keydown."+u,"textarea",function(e){t._onTextareaKeydown(e)})},destroy:function(){this.element.off("."+u),r.prototype.destroy.call(this)},show:function(e){void 0!==e&&null!==e&&this.element.css({top:e.top,left:e.left}),this.element.find(".annotator-save").addClass(this.classes.focus),r.prototype.show.call(this),this.element.find(":input:first").focus(),this._setupDraggables()},load:function(e,t){this.annotation=e;for(var n=0,r=this.fields.length;n<r;n++){var o=this.fields[n];o.load(o.element,this.annotation)}var i=this;return new s(function(e,n){i.dfd={resolve:e,reject:n},i.show(t)})},submit:function(){for(var e=0,t=this.fields.length;e<t;e++){var n=this.fields[e];n.submit(n.element,this.annotation)}void 0!==this.dfd&&null!==this.dfd&&this.dfd.resolve(),this.hide()},cancel:function(){void 0!==this.dfd&&null!==this.dfd&&this.dfd.reject("editing cancelled"),this.hide()},addField:function(e){var t=i.extend({id:"annotator-field-"+l(),type:"input",label:"",load:function(){},submit:function(){}},e),n=null,r=i('<li class="annotator-item" />');return t.element=r[0],"textarea"===t.type?n=i("<textarea />"):"checkbox"===t.type?n=i('<input type="checkbox" />'):"input"===t.type?n=i("<input />"):"select"===t.type&&(n=i("<select />")),r.append(n),n.attr({id:t.id,placeholder:t.label}),"checkbox"===t.type&&(r.addClass("annotator-checkbox"),r.append(i("<label />",{for:t.id,html:t.label}))),this.element.find("ul:first").append(r),this.fields.push(t),t.element},checkOrientation:function(){r.prototype.checkOrientation.call(this);var e=this.element.find("ul").first(),t=this.element.find(".annotator-controls");return this.element.hasClass(this.classes.invert.y)?t.insertBefore(e):t.is(":first-child")&&t.insertAfter(e),this},_onFormSubmit:function(e){preventEventDefault(e),this.submit()},_onSaveClick:function(e){preventEventDefault(e),this.submit()},_onCancelClick:function(e){preventEventDefault(e),this.cancel()},_onCancelMouseover:function(){this.element.find("."+this.classes.focus).removeClass(this.classes.focus)},_onTextareaKeydown:function(e){27===e.which?this.cancel():13!==e.which||e.shiftKey||this.submit()},_setupDraggables:function(){void 0!==this._resizer&&null!==this._resizer&&this._resizer.destroy(),void 0!==this._mover&&null!==this._mover&&this._mover.destroy(),this.element.find(".annotator-resize").remove();var e;(e=this.element.hasClass(this.classes.invert.y)?this.element.find(".annotator-item:last"):this.element.find(".annotator-item:first"))&&i('<span class="annotator-resize"></span>').appendTo(e);var t=this.element.find(".annotator-controls")[0],n=this.element.find("textarea:first")[0],r=this.element.find(".annotator-resize")[0],o=this;this._resizer=f(n,r,{invertedX:function(){return o.element.hasClass(o.classes.invert.x)},invertedY:function(){return o.element.hasClass(o.classes.invert.y)}}),this._mover=d(this.element[0],t)}});h.classes={hide:"annotator-hide",focus:"annotator-focus"},h.template=['<div class="annotator-outer annotator-editor annotator-hide">',' <form class="annotator-widget">',' <ul class="annotator-listing"></ul>',' <div class="annotator-controls">',' <a href="#cancel" class="annotator-cancel">'+a("Cancel")+"</a>",' <a href="#save"',' class="annotator-save annotator-focus">'+a("Save")+"</a>"," </div>"," </form>","</div>"].join("\n"),h.options={defaultFields:!0},t.standalone=function(e){var n=new t.Editor(e);return{destroy:function(){n.destroy()},beforeAnnotationCreated:function(e){return n.load(e)},beforeAnnotationUpdated:function(e){return n.load(e)}}}},function(e,t,n){"use strict";(function(e){function highlightRange(t,n){void 0!==n&&null!==n||(n="annotator-hl");for(var r=/^\s*$/,o=t.textNodes(),i=[],a=0,s=o.length;a<s;a++){var u=o[a];if(!r.test(u.nodeValue)){var l=e.document.createElement("span");l.className=n,u.parentNode.replaceChild(l,u),l.appendChild(u),i.push(l)}}return i}function reanchorRange(e,t){try{return r.Range.sniff(e).normalize(t)}catch(e){if(!(e instanceof r.Range.RangeError))throw e}return null}var r=n(18),o=n(1),i=o.$,a=o.Promise,s=t.Highlighter=function Highlighter(e,t){this.element=e,this.options=i.extend(!0,{},Highlighter.options,t)};s.prototype.destroy=function(){i(this.element).find("."+this.options.highlightClass).each(function(e,t){i(t).contents().insertBefore(t),i(t).remove()})},s.prototype.drawAll=function(e){var t=this;return new a(function(n){function loader(e){void 0!==e&&null!==e||(e=[]);for(var o=e.splice(0,t.options.chunkSize),i=0,a=o.length;i<a;i++)r=r.concat(t.draw(o[i]));e.length>0?setTimeout(function(){loader(e)},t.options.chunkDelay):n(r)}var r=[];loader(e.slice())})},s.prototype.draw=function(e){for(var t=[],n=0,r=e.ranges.length;n<r;n++){var o=reanchorRange(e.ranges[n],this.element);null!==o&&t.push(o)}void 0!==e._local&&null!==e._local||(e._local={}),void 0!==e._local.highlights&&null===e._local.highlights||(e._local.highlights=[]);for(var a=0,s=t.length;a<s;a++){var u=t[a];i.merge(e._local.highlights,highlightRange(u,this.options.highlightClass))}return i(e._local.highlights).data("annotation",e),void 0!==e.id&&null!==e.id&&i(e._local.highlights).attr("data-annotation-id",e.id),e._local.highlights},s.prototype.undraw=function(e){if(void 0!==e._local&&null!==e._local&&void 0!==e._local.highlights&&null!==e._local.highlights){for(var t=0,n=e._local.highlights.length;t<n;t++){var r=e._local.highlights[t];null!==r.parentNode&&i(r).replaceWith(r.childNodes)}delete e._local.highlights}},s.prototype.redraw=function(e){return this.undraw(e),this.draw(e)},s.options={highlightClass:"annotator-hl",chunkSize:10,chunkDelay:10},t.standalone=function(e,n){var r=t.Highlighter(e,n);return{destroy:function(){r.destroy()},annotationsLoaded:function(e){r.drawAll(e)},annotationCreated:function(e){r.draw(e)},annotationDeleted:function(e){r.undraw(e)},annotationUpdated:function(e){r.redraw(e)}}}}).call(t,n(2))},function(e,t,n){"use strict";(function(e){function isAnnotator(e){return 0!==i(e).parents().addBack().filter("[class^=annotator-]").length}function TextSelector(e,t){if(this.element=e,this.options=i.extend(!0,{},TextSelector.options,t),this.onSelection=this.options.onSelection,void 0!==this.element.ownerDocument&&null!==this.element.ownerDocument){var n=this;this.document=this.element.ownerDocument,i(this.document.body).on("mouseup."+a,function(e){n._checkForEndSelection(e)})}else console.warn("You created an instance of the TextSelector on an element that doesn't have an ownerDocument. This won't work! Please ensure the element is added to the DOM before the plugin is configured:",this.element)}var r=n(18),o=n(1),i=o.$,a="annotator-textselector";TextSelector.prototype.destroy=function(){this.document&&i(this.document.body).off("."+a)},TextSelector.prototype.captureDocumentSelection=function(){var t,n,o=[],i=[],a=e.getSelection();if(a.isCollapsed)return[];for(t=0;t<a.rangeCount;t++){var s=a.getRangeAt(t),u=new r.Range.BrowserRange(s),l=u.normalize().limit(this.element);null===l?i.push(s):o.push(l)}for(a.removeAllRanges(),t=0,n=i.length;t<n;t++)a.addRange(i[t]);for(t=0,n=o.length;t<n;t++){var c=o[t],f=this.document.createRange();f.setStartBefore(c.start),f.setEndAfter(c.end),a.addRange(f)}return o},TextSelector.prototype._checkForEndSelection=function(e){var t=this,n=function(){"function"==typeof t.onSelection&&t.onSelection([],e)},r=this.captureDocumentSelection();if(0===r.length)return void n();for(var o=0,a=r.length;o<a;o++){var s=r[o].commonAncestor;if(i(s).hasClass("annotator-hl")&&(s=i(s).parents("[class!=annotator-hl]")[0]),isAnnotator(s))return void n()}"function"==typeof this.onSelection&&this.onSelection(r,e)},TextSelector.options={onSelection:null},t.TextSelector=TextSelector}).call(t,n(2))},function(e,t,n){"use strict";function parseLinks(e,t,n){n=i.extend({},n,{rel:t});for(var r=[],o=0,a=e.length;o<a;o++){var s=e[o],u=!0;for(var l in n)if(n.hasOwnProperty(l)&&s[l]!==n[l]){u=!1;break}u&&r.push(s)}return r}var r=n(3).Widget,o=n(1),i=o.$,a=o.gettext,s="annotator-viewer",u=t.Viewer=r.extend({constructor:function(e){r.call(this,e),this.itemTemplate=u.itemTemplate,this.fields=[],this.annotations=[],this.hideTimer=null,this.hideTimerDfd=null,this.hideTimerActivity=null,this.mouseDown=!1,this.render=function(e){return e.text?o.escapeHtml(e.text):"<i>"+a("No comment")+"</i>"};var t=this;if(this.options.defaultFields&&this.addField({load:function(e,n){i(e).html(t.render(n))}}),"function"!=typeof this.options.onEdit)throw new TypeError("onEdit callback must be a function");if("function"!=typeof this.options.onDelete)throw new TypeError("onDelete callback must be a function");if("function"!=typeof this.options.permitEdit)throw new TypeError("permitEdit callback must be a function");if("function"!=typeof this.options.permitDelete)throw new TypeError("permitDelete callback must be a function");this.options.autoViewHighlights&&(this.document=this.options.autoViewHighlights.ownerDocument,i(this.options.autoViewHighlights).on("mouseover."+s,".annotator-hl",function(e){e.target===this&&t._onHighlightMouseover(e)}).on("mouseleave."+s,".annotator-hl",function(){t._startHideTimer()}),i(this.document.body).on("mousedown."+s,function(e){1===e.which&&(t.mouseDown=!0)}).on("mouseup."+s,function(e){1===e.which&&(t.mouseDown=!1)})),this.element.on("click."+s,".annotator-edit",function(e){t._onEditClick(e)}).on("click."+s,".annotator-delete",function(e){t._onDeleteClick(e)}).on("mouseenter."+s,function(){t._clearHideTimer()}).on("mouseleave."+s,function(){t._startHideTimer()})},destroy:function(){this.options.autoViewHighlights&&(i(this.options.autoViewHighlights).off("."+s),i(this.document.body).off("."+s)),this.element.off("."+s),r.prototype.destroy.call(this)},show:function(e){void 0!==e&&null!==e&&this.element.css({top:e.top,left:e.left});var t=this.element.find(".annotator-controls").addClass(this.classes.showControls),n=this;setTimeout(function(){t.removeClass(n.classes.showControls)},500),r.prototype.show.call(this)},load:function(e,t){this.annotations=e||[];for(var n=this.element.find("ul:first").empty(),r=0,o=this.annotations.length;r<o;r++){var i=this.annotations[r];this._annotationItem(i).appendTo(n).data("annotation",i)}this.show(t)},setRenderer:function(e){this.render=e},_annotationItem:function(e){var t=i(this.itemTemplate).clone(),n=t.find(".annotator-controls"),r=n.find(".annotator-link"),o=n.find(".annotator-edit"),a=n.find(".annotator-delete"),s=parseLinks(e.links||[],"alternate",{type:"text/html"});s.length>0&&void 0!==s[0].href&&null!==s[0].href?r.attr("href",s[0].href):r.remove();var u={};this.options.permitEdit(e)?(u.showEdit=function(){o.removeAttr("disabled")},u.hideEdit=function(){o.attr("disabled","disabled")}):o.remove(),this.options.permitDelete(e)?(u.showDelete=function(){a.removeAttr("disabled")},u.hideDelete=function(){a.attr("disabled","disabled")}):a.remove();for(var l=0,c=this.fields.length;l<c;l++){var f=this.fields[l],d=i(f.element).clone().appendTo(t)[0];f.load(d,e,u)}return t},addField:function(e){var t=i.extend({load:function(){}},e);return t.element=i("<div />")[0],this.fields.push(t),this},_onEditClick:function(e){var t=i(e.target).parents(".annotator-annotation").data("annotation");this.hide(),this.options.onEdit(t)},_onDeleteClick:function(e){if(window.confirm(a("Delete this annotation?"))){var t=i(e.target).parents(".annotator-annotation").data("annotation");this.hide(),this.options.onDelete(t)}},_onHighlightMouseover:function(e){if(!this.mouseDown){var t=this;this._startHideTimer(!0).done(function(){var n=i(e.target).parents(".annotator-hl").addBack().map(function(e,t){return i(t).data("annotation")}).toArray();t.load(n,o.mousePosition(e))})}},_startHideTimer:function(e){if(void 0!==e&&null!==e||(e=!1),this.hideTimer){if(!1===e||this.hideTimerActivity===e)return this.hideTimerDfd;this._clearHideTimer()}var t;if(t=e?this.options.activityDelay:this.options.inactivityDelay,this.hideTimerDfd=i.Deferred(),this.isShown()){var n=this;this.hideTimer=setTimeout(function(){n.hide(),n.hideTimerDfd.resolve(),n.hideTimer=null},t),this.hideTimerActivity=Boolean(e)}else this.hideTimer=null,this.hideTimerDfd.resolve(),this.hideTimerActivity=null;return this.hideTimerDfd.promise()},_clearHideTimer:function(){clearTimeout(this.hideTimer),this.hideTimer=null,this.hideTimerDfd.reject(),this.hideTimerActivity=null}});u.classes={showControls:"annotator-visible"},u.template=['<div class="annotator-outer annotator-viewer annotator-hide">',' <ul class="annotator-widget annotator-listing"></ul>',"</div>"].join("\n"),u.itemTemplate=['<li class="annotator-annotation annotator-item">',' <span class="annotator-controls">',' <a href="#"',' title="'+a("View as webpage")+'"',' class="annotator-link">'+a("View as webpage")+"</a>",' <button type="button"',' title="'+a("Edit")+'"',' class="annotator-edit">'+a("Edit")+"</button>",' <button type="button"',' title="'+a("Delete")+'"',' class="annotator-delete">'+a("Delete")+"</button>"," </span>","</li>"].join("\n"),u.options={defaultFields:!0,inactivityDelay:500,activityDelay:100,permitEdit:function(){return!1},permitDelete:function(){return!1},autoViewHighlights:null,onEdit:function(){},onDelete:function(){}},t.standalone=function(e){var n;return void 0!==e&&null!==e||(e={}),{start:function(r){var o=r.registry.getUtility("identityPolicy"),i=r.registry.getUtility("authorizationPolicy");void 0===e.onEdit&&(e.onEdit=function(e){r.annotations.update(e)}),void 0===e.onDelete&&(e.onDelete=function(e){r.annotations.delete(e)}),void 0===e.permitEdit&&(e.permitEdit=function(e){return i.permits("update",e,o.who())}),void 0===e.permitDelete&&(e.permitDelete=function(e){return i.permits("delete",e,o.who())}),n=new t.Viewer(e)},destroy:function(){n.destroy()}}}},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=n(4),o=function(e){return e&&e.__esModule?e:{default:e}}(r);o.default.bind("g u",function(){window.location.href=Routing.generate("homepage")}),o.default.bind("g s",function(){window.location.href=Routing.generate("starred")}),o.default.bind("g r",function(){window.location.href=Routing.generate("archive")}),o.default.bind("g a",function(){window.location.href=Routing.generate("all")}),o.default.bind("g t",function(){window.location.href=Routing.generate("tag")}),o.default.bind("g c",function(){window.location.href=Routing.generate("config")}),o.default.bind("g i",function(){window.location.href=Routing.generate("import")}),o.default.bind("g d",function(){window.location.href=Routing.generate("developer")}),o.default.bind("?",function(){window.location.href=Routing.generate("howto")}),o.default.bind("g l",function(){window.location.href=Routing.generate("fos_user_security_logout")})},function(e,t,n){!function(t){e.exports=t()}(function(){"use strict";var e={has:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},extend:function(e){for(var t=1;t<arguments.length;++t){var n=arguments[t];if(n)for(var r in n)e[r]=n[r]}return e}};return function(t,n){var r,o=this;r=t&&e.has(t,"constructor")?t.constructor:function(){return o.apply(this,arguments)},e.extend(r,o,n);var i=function(){this.constructor=r};return i.prototype=o.prototype,r.prototype=new i,t&&e.extend(r.prototype,t),r.__super__=o.prototype,r}})},function(e,t,n){(function(t,r){!function(t,n){e.exports=n()}(0,function(){"use strict";function objectOrFunction(e){return"function"==typeof e||"object"==typeof e&&null!==e}function isFunction(e){return"function"==typeof e}function setScheduler(e){s=e}function setAsap(e){u=e}function useVertxTimer(){return function(){a(flush)}}function useSetTimeout(){var e=setTimeout;return function(){return e(flush,1)}}function flush(){for(var e=0;e<i;e+=2){(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0}i=0}function then(e,t){var n=arguments,r=this,o=new this.constructor(noop);void 0===o[m]&&makePromise(o);var i=r._state;return i?function(){var e=n[i-1];u(function(){return invokeCallback(i,o,e,r._result)})}():subscribe(r,o,e,t),o}function resolve(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(noop);return _resolve(n,e),n}function noop(){}function selfFulfillment(){return new TypeError("You cannot resolve a promise with itself")}function cannotReturnOwn(){return new TypeError("A promises callback cannot return that same promise.")}function getThen(e){try{return e.then}catch(e){return b.error=e,b}}function tryThen(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function handleForeignThenable(e,t,n){u(function(e){var r=!1,o=tryThen(n,t,function(n){r||(r=!0,t!==n?_resolve(e,n):fulfill(e,n))},function(t){r||(r=!0,_reject(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,_reject(e,o))},e)}function handleOwnThenable(e,t){t._state===y?fulfill(e,t._result):t._state===w?_reject(e,t._result):subscribe(t,void 0,function(t){return _resolve(e,t)},function(t){return _reject(e,t)})}function handleMaybeThenable(e,t,n){t.constructor===e.constructor&&n===then&&t.constructor.resolve===resolve?handleOwnThenable(e,t):n===b?_reject(e,b.error):void 0===n?fulfill(e,t):isFunction(n)?handleForeignThenable(e,t,n):fulfill(e,t)}function _resolve(e,t){e===t?_reject(e,selfFulfillment()):objectOrFunction(t)?handleMaybeThenable(e,t,getThen(t)):fulfill(e,t)}function publishRejection(e){e._onerror&&e._onerror(e._result),publish(e)}function fulfill(e,t){e._state===v&&(e._result=t,e._state=y,0!==e._subscribers.length&&u(publish,e))}function _reject(e,t){e._state===v&&(e._state=w,e._result=t,u(publishRejection,e))}function subscribe(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+y]=n,o[i+w]=r,0===i&&e._state&&u(publish,e)}function publish(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?invokeCallback(n,r,o,i):o(i);e._subscribers.length=0}}function ErrorObject(){this.error=null}function tryCatch(e,t){try{return e(t)}catch(e){return x.error=e,x}}function invokeCallback(e,t,n,r){var o=isFunction(n),i=void 0,a=void 0,s=void 0,u=void 0;if(o){if(i=tryCatch(n,r),i===x?(u=!0,a=i.error,i=null):s=!0,t===i)return void _reject(t,cannotReturnOwn())}else i=r,s=!0;t._state!==v||(o&&s?_resolve(t,i):u?_reject(t,a):e===y?fulfill(t,i):e===w&&_reject(t,i))}function initializePromise(e,t){try{t(function(t){_resolve(e,t)},function(t){_reject(e,t)})}catch(t){_reject(e,t)}}function nextId(){return T++}function makePromise(e){e[m]=T++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Enumerator(e,t){this._instanceConstructor=e,this.promise=new e(noop),this.promise[m]||makePromise(this.promise),o(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&fulfill(this.promise,this._result))):_reject(this.promise,validationError())}function validationError(){return new Error("Array Methods must be provided an Array")}function all(e){return new Enumerator(this,e).promise}function race(e){var t=this;return new t(o(e)?function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function reject(e){var t=this,n=new t(noop);return _reject(n,e),n}function needsResolver(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function needsNew(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function Promise(e){this[m]=nextId(),this._result=this._state=void 0,this._subscribers=[],noop!==e&&("function"!=typeof e&&needsResolver(),this instanceof Promise?initializePromise(this,e):needsNew())}function polyfill(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=Promise}var e=void 0;e=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var o=e,i=0,a=void 0,s=void 0,u=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(s?s(flush):g())},l="undefined"!=typeof window?window:void 0,c=l||{},f=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,p=new Array(1e3),g=void 0;g=d?function(){return function(){return t.nextTick(flush)}}():f?function(){var e=0,t=new f(flush),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():h?function(){var e=new MessageChannel;return e.port1.onmessage=flush,function(){return e.port2.postMessage(0)}}():void 0===l?function(){try{var e=n(39);return a=e.runOnLoop||e.runOnContext,useVertxTimer()}catch(e){return useSetTimeout()}}():useSetTimeout();var m=Math.random().toString(36).substring(16),v=void 0,y=1,w=2,b=new ErrorObject,x=new ErrorObject,T=0;return Enumerator.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===v&&n<e;n++)this._eachEntry(t[n],n)},Enumerator.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===resolve){var o=getThen(e);if(o===then&&e._state!==v)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===Promise){var i=new n(noop);handleMaybeThenable(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},Enumerator.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===v&&(this._remaining--,e===w?_reject(r,n):this._result[t]=n),0===this._remaining&&fulfill(r,this._result)},Enumerator.prototype._willSettleAt=function(e,t){var n=this;subscribe(e,void 0,function(e){return n._settledAt(y,t,e)},function(e){return n._settledAt(w,t,e)})},Promise.all=all,Promise.race=race,Promise.resolve=resolve,Promise.reject=reject,Promise._setScheduler=setScheduler,Promise._setAsap=setAsap,Promise._asap=u,Promise.prototype={constructor:Promise,then:then,catch:function(e){return this.then(null,e)}},polyfill(),Promise.polyfill=polyfill,Promise.Promise=Promise,Promise})}).call(t,n(37),n(2))},function(e,t,n){(function(){e.exports={xpath:n(20),Range:n(38)}}).call(this)},function(e,t,n){(function(){var t,r;t=n(0),r={},r.NodeTypes={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},r.getFirstTextNodeNotBefore=function(e){var t;switch(e.nodeType){case r.NodeTypes.TEXT_NODE:return e;case r.NodeTypes.ELEMENT_NODE:if(null!=e.firstChild&&null!=(t=r.getFirstTextNodeNotBefore(e.firstChild)))return t}return e=e.nextSibling,null!=e?r.getFirstTextNodeNotBefore(e):null},r.getLastTextNodeUpTo=function(e){var t;switch(e.nodeType){case r.NodeTypes.TEXT_NODE:return e;case r.NodeTypes.ELEMENT_NODE:if(null!=e.lastChild&&null!=(t=r.getLastTextNodeUpTo(e.lastChild)))return t}return e=e.previousSibling,null!=e?r.getLastTextNodeUpTo(e):null},r.getTextNodes=function(e){var t;return t=function(e){var n;if(e&&e.nodeType!==r.NodeTypes.TEXT_NODE){if(n=[],e.nodeType!==r.NodeTypes.COMMENT_NODE)for(e=e.lastChild;e;)n.push(t(e)),e=e.previousSibling;return n.reverse()}return e},e.map(function(){return r.flatten(t(this))})},r.getGlobal=function(){return function(){return this}()},r.contains=function(e,t){var n;for(n=t;null!=n;){if(n===e)return!0;n=n.parentNode}return!1},r.flatten=function(e){var n;return(n=function(e){var r,o,i,a;for(o=[],i=0,a=e.length;i<a;i++)r=e[i],o=o.concat(r&&t.isArray(r)?n(r):r);return o})(e)},e.exports=r}).call(this)},function(e,t,n){(function(){var t,r,o,i,a,s,u,l,c,f;t=n(0),r=n(19),o=function(e,t,n){var r,o,a,s,u,l,c,f;null==t&&(t=document),null==n&&(n=null);try{return document.evaluate("."+e,t,n,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(n){for(n,console.log("XPath evaluation failed."),console.log("Trying fallback..."),u=e.substring(1).split("/"),a=t,l=0,c=u.length;l<c;l++)s=u[l],f=s.split("["),o=f[0],r=f[1],r=null!=r?parseInt((null!=r?r.split("]"):void 0)[0]):1,a=i(a,o.toLowerCase(),r);return a}},l=function(e,n){var o;return o=e.map(function(){var e,o,i,a;for(i="",e=this;(null!=e?e.nodeType:void 0)===r.NodeTypes.ELEMENT_NODE&&e!==n;)a=e.tagName.replace(":","\\:"),o=t(e.parentNode).children(a).index(e)+1,o="["+o+"]",i="/"+e.tagName.toLowerCase()+o+i,e=e.parentNode;return i}),o.get()},c=function(e,t){var n,r,o,i;return n=function(e){var t,n;return t=s(e),n=u(e),t+"["+n+"]"},i=t,r=function(e){var t;for(t="";e!==i;){if(null==e)throw new Error("Called getPathTo on a node which was not a descendant of @rootNode. "+i);t=n(e)+"/"+t,e=e.parentNode}return t="/"+t,t=t.replace(/\/$/,"")},o=e.map(function(){return r(this)}),o.get()},i=function(e,t,n){var r,o,i,a,u;if(!e.hasChildNodes())throw new Error("XPath error: node has no children!");for(o=e.childNodes,i=0,a=0,u=o.length;a<u;a++)if(r=o[a],s(r)===t&&(i+=1)===n)return r;throw new Error("XPath error: wanted child not found.")},s=function(e){var t;switch(t=e.nodeName.toLowerCase()){case"#text":return"text()";case"#comment":return"comment()";case"#cdata-section":return"cdata-section()";default:return t}},u=function(e){var t,n;for(t=0,n=e;n;)n.nodeName===e.nodeName&&(t+=1),n=n.previousSibling;return t},a=function(e,t){var n;try{n=l(e,t)}catch(r){r,console.log("jQuery-based XPath construction failed! Falling back to manual."),n=c(e,t)}return n},f=function(e,n){var r,i,a,s;return null==n&&(n=document),t.isXMLDoc(document.documentElement)?(r=document.createNSResolver(null===document.ownerDocument?document.documentElement:document.ownerDocument.documentElement),a=o(e,n,r),a||(e=function(){var t,n,r,o;for(r=e.split("/"),o=[],t=0,n=r.length;t<n;t++)s=r[t],s&&-1===s.indexOf(":")?o.push(s.replace(/^([a-z]+)/,"xhtml:$1")):o.push(s);return o}().join("/"),i=document.lookupNamespaceURI(null),r=function(e){return"xhtml"===e?i:document.documentElement.getAttribute("xmlns:"+e)},a=o(e,n,r)),a):o(e,n)},e.exports={fromNode:a,toNode:f}}).call(this)},function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r=n(0),o=_interopRequireDefault(r),i=n(22),a=_interopRequireDefault(i);n(34),n(33),n(31),n(14),n(15);var s=n(30);(0,o.default)(document).ready(function(){if((0,o.default)("article").length){var e=new a.default.App;e.include(a.default.ui.main,{element:document.querySelector("article")});var t=JSON.parse((0,o.default)("#annotationroutes").html());e.include(a.default.storage.http,t),e.start().then(function(){e.annotations.load({entry:t.entryId})}),(0,o.default)(window).scroll(function(){var e=(0,o.default)(window).scrollTop(),n=(0,o.default)(document).height(),r=e/n,i=Math.round(100*r)/100;(0,s.savePercent)(t.entryId,i)}),(0,s.retrievePercent)(t.entryId),(0,o.default)(window).resize(function(){(0,s.retrievePercent)(t.entryId)})}})},function(e,t,n){"use strict";(function(e){n(35)(n(32));var r=n(23),o=n(1);t.App=r.App,t.authz=n(5),t.identity=n(6),t.notification=n(7),t.storage=n(8),t.ui=n(25),t.util=o,t.ext={};var i=e.wgxpath;void 0!==i&&null!==i&&"function"==typeof i.install&&i.install();var a=e.annotator;t.noConflict=function(){return e.annotator=a,this}}).call(t,n(2))},function(e,t,n){"use strict";function App(){this.modules=[],this.registry=new u.Registry,this._started=!1,this.registry.registerUtility(s.defaultNotifier,"notifier"),this.include(i.acl),this.include(a.simple),this.include(l.noop)}var r=n(16),o=n(17).Promise,i=n(5),a=n(6),s=n(7),u=n(24),l=n(8);App.prototype.include=function(e,t){var n=e(t);return"function"==typeof n.configure&&n.configure(this.registry),this.modules.push(n),this},App.prototype.start=function(){if(!this._started){this._started=!0;var e=this,t=this.registry;return this.authz=t.getUtility("authorizationPolicy"),this.ident=t.getUtility("identityPolicy"),this.notify=t.getUtility("notifier"),this.annotations=new l.StorageAdapter(t.getUtility("storage"),function(){return e.runHook.apply(e,arguments)}),this.runHook("start",[this])}},App.prototype.destroy=function(){return this.runHook("destroy")},App.prototype.runHook=function(e,t){for(var n=[],r=0,i=this.modules.length;r<i;r++){var a=this.modules[r];"function"==typeof a[e]&&n.push(a[e].apply(a,t))}return o.all(n)},App.extend=r,t.App=App},function(e,t,n){"use strict";function Registry(){this.utilities={}}function LookupError(e){this.name="LookupError",this.message='No utility registered for interface "'+e+'".'}Registry.prototype.registerUtility=function(e,t){this.utilities[t]=e},Registry.prototype.getUtility=function(e){var t=this.queryUtility(e);if(null===t)throw new LookupError(e);return t},Registry.prototype.queryUtility=function(e){var t=this.utilities[e];return void 0===t||null===t?null:t},LookupError.prototype=Object.create(Error.prototype),LookupError.prototype.constructor=LookupError,t.LookupError=LookupError,t.Registry=Registry},function(e,t,n){t.main=n(27).main,t.adder=n(9),t.editor=n(10),t.filter=n(26),t.highlighter=n(11),t.markdown=n(28),t.tags=n(29),t.textselector=n(12),t.viewer=n(13),t.widget=n(3)},function(e,t,n){"use strict";var r=n(1),o=r.$,i=r.gettext,a="annotator-filter",s=t.Filter=function Filter(e){this.options=o.extend(!0,{},Filter.options,e),this.classes=o.extend(!0,{},Filter.classes),this.element=o(Filter.html.element).appendTo(this.options.appendTo),this.filter=o(Filter.html.filter),this.filters=[],this.current=0;for(var t=0,n=this.options.filters.length;t<n;t++){var r=this.options.filters[t];this.addFilter(r)}this.updateHighlights();var s=".annotator-filter-property input",u=this;this.element.on("focus."+a,s,function(e){u._onFilterFocus(e)}).on("blur."+a,s,function(e){u._onFilterBlur(e)}).on("keyup."+a,s,function(e){u._onFilterKeyup(e)}).on("click."+a,".annotator-filter-previous",function(e){u._onPreviousClick(e)}).on("click."+a,".annotator-filter-next",function(e){u._onNextClick(e)}).on("click."+a,".annotator-filter-clear",function(e){u._onClearClick(e)}),this._insertSpacer(),this.options.addAnnotationFilter&&this.addFilter({label:i("Annotation"),property:"text"})};s.prototype.destroy=function(){var e=o("html"),t=parseInt(e.css("padding-top"),10)||0;e.css("padding-top",t-this.element.outerHeight()),this.element.off("."+a),this.element.remove()},s.prototype._insertSpacer=function(){var e=o("html"),t=parseInt(e.css("padding-top"),10)||0;return e.css("padding-top",t+this.element.outerHeight()),this},s.prototype.addFilter=function(e){for(var t=o.extend({label:"",property:"",isFiltered:this.options.isFiltered},e),n=!1,r=0,a=this.filters.length;r<a;r++){if(this.filters[r].property===t.property){n=!0;break}}return n||(t.id="annotator-filter-"+t.property,t.annotations=[],t.element=this.filter.clone().appendTo(this.element),t.element.find("label").html(t.label).attr("for",t.id),t.element.find("input").attr({id:t.id,placeholder:i("Filter by ")+t.label+"…"}),t.element.find("button").hide(),t.element.data("filter",t),this.filters.push(t)),this},s.prototype.updateFilter=function(e){e.annotations=[],this.updateHighlights(),this.resetHighlights();var t=o.trim(e.element.find("input").val());if(t){var n=this.highlights.map(function(){return o(this).data("annotation")});n=o.makeArray(n);for(var r=0,i=n.length;r<i;r++){var a=n[r],s=a[e.property];e.isFiltered(t,s)&&e.annotations.push(a)}this.filterHighlights()}},s.prototype.updateHighlights=function(){this.highlights=o(this.options.filterElement).find(".annotator-hl:visible"),this.filtered=this.highlights.not(this.classes.hl.hide)},s.prototype.filterHighlights=function(){var e=o.grep(this.filters,function(e){return Boolean(e.annotations.length)}),t=[];if(e.length>0&&(t=e[0].annotations),e.length>1){var n=[];o.each(e,function(){o.merge(n,this.annotations)});var r=[];t=[],o.each(n,function(){-1===o.inArray(this,r)?r.push(this):t.push(this)})}for(var i=this.highlights,a=0,s=t.length;a<s;a++)i=i.not(t[a]._local.highlights);return i.addClass(this.classes.hl.hide),this.filtered=this.highlights.not(this.classes.hl.hide),this},s.prototype.resetHighlights=function(){return this.highlights.removeClass(this.classes.hl.hide),this.filtered=this.highlights,this},s.prototype._onFilterFocus=function(e){var t=o(e.target);t.parent().addClass(this.classes.active),t.next("button").show()},s.prototype._onFilterBlur=function(e){if(!e.target.value){var t=o(e.target);t.parent().removeClass(this.classes.active),t.next("button").hide()}},s.prototype._onFilterKeyup=function(e){var t=o(e.target).parent().data("filter");t&&this.updateFilter(t)},s.prototype._findNextHighlight=function(e){if(0===this.highlights.length)return this;var t=-1,n=0,r="gt";e&&(t=0,n=-1,r="lt");var o=this.highlights.not("."+this.classes.hl.hide),i=o.filter("."+this.classes.hl.active);0===i.length&&(i=o.eq(t));var a=i.data("annotation"),s=o.index(i[0]),u=o.filter(":"+r+"("+s+")").not(a._local.highlights).eq(n);0===u.length&&(u=o.eq(n)),this._scrollToHighlight(u.data("annotation")._local.highlights)},s.prototype._onNextClick=function(){this._findNextHighlight()},s.prototype._onPreviousClick=function(){this._findNextHighlight(!0)},s.prototype._scrollToHighlight=function(e){e=o(e),this.highlights.removeClass(this.classes.hl.active),e.addClass(this.classes.hl.active),o("html, body").animate({scrollTop:e.offset().top-(this.element.height()+20)},150)},s.prototype._onClearClick=function(e){o(e.target).prev("input").val("").keyup().blur()},s.classes={active:"annotator-filter-active",hl:{hide:"annotator-hl-filtered",active:"annotator-hl-active"}},s.html={element:['<div class="annotator-filter">'," <strong>"+i("Navigate:")+"</strong>",' <span class="annotator-filter-navigation">',' <button type="button"',' class="annotator-filter-previous">'+i("Previous")+"</button>",' <button type="button"',' class="annotator-filter-next">'+i("Next")+"</button>"," </span>"," <strong>"+i("Filter by:")+"</strong>","</div>"].join("\n"),filter:['<span class="annotator-filter-property">'," <label></label>"," <input/>",' <button type="button"',' class="annotator-filter-clear">'+i("Clear")+"</button>","</span>"].join("\n")},s.options={appendTo:"body",filterElement:"body",filters:[],addAnnotationFilter:!0,isFiltered:function(e,t){if(!e||!t)return!1;for(var n=e.split(/\s+/),r=0,o=n.length;r<o;r++)if(-1===t.indexOf(n[r]))return!1;return!0}},t.standalone=function(e){var n=new t.Filter(e);return{destroy:function(){n.destroy()},annotationsLoaded:function(){n.updateHighlights()},annotationCreated:function(){n.updateHighlights()},annotationUpdated:function(){n.updateHighlights()},annotationDeleted:function(){n.updateHighlights()}}}},function(e,t,n){"use strict";(function(e){function trim(e){return"function"==typeof String.prototype.trim?String.prototype.trim.call(e):e.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}function annotationFactory(e,t){return function(n){for(var r=[],o=[],i=0,a=n.length;i<a;i++){var s=n[i];r.push(trim(s.text())),o.push(s.serialize(e,t))}return{quote:r.join(" / "),ranges:o}}}function maxZIndex(e){for(var t=-1,n=0,o=e.length;n<o;n++){var i=r.$(e[n]);if("static"!==i.css("position")){var a=parseFloat(i.css("z-index"));a>t&&(t=a)}}return t}function injectDynamicStyle(){r.$("#annotator-dynamic-style").remove();var t=maxZIndex(r.$(e.document.body).find("*:not(annotator-adder):not(annotator-outer):not(annotator-notice):not(annotator-filter)").get());t=Math.max(t,1e3);var n=[".annotator-adder, .annotator-outer, .annotator-notice {"," z-index: "+(t+20)+";","}",".annotator-filter {"," z-index: "+(t+10)+";","}"].join("\n");r.$("<style>"+n+"</style>").attr("id","annotator-dynamic-style").attr("type","text/css").appendTo("head")}function removeDynamicStyle(){r.$("#annotator-dynamic-style").remove()}function addPermissionsCheckboxes(e,t,n){function createLoadCallback(e){return function(o,i){o=r.$(o).show();var a=t.who(),s=o.find("input");void 0!==a&&null!==a||o.hide(),n.permits("admin",i,a)||o.hide(),n.permits(e,i,null)?s.attr("checked","checked"):s.removeAttr("checked")}}function createSubmitCallback(e){return function(o,i){var a=t.who();void 0!==a&&null!==a&&(i.permissions||(i.permissions={}),r.$(o).find("input").is(":checked")?delete i.permissions[e]:i.permissions[e]=[n.authorizedUserId(a)])}}e.addField({type:"checkbox",label:l("Allow anyone to <strong>view</strong> this annotation"),load:createLoadCallback("read"),submit:createSubmitCallback("read")}),e.addField({type:"checkbox",label:l("Allow anyone to <strong>edit</strong> this annotation"),load:createLoadCallback("update"),submit:createSubmitCallback("update")})}function main(t){function start(e){var c=e.registry.getUtility("identityPolicy"),f=e.registry.getUtility("authorizationPolicy");l.adder=new o.Adder({onCreate:function(t){e.annotations.create(t)}}),l.adder.attach(),l.editor=new i.Editor({extensions:t.editorExtensions}),l.editor.attach(),addPermissionsCheckboxes(l.editor,c,f),l.highlighter=new a.Highlighter(t.element),l.textselector=new s.TextSelector(t.element,{onSelection:function(e,t){if(e.length>0){var o=n(e);l.interactionPoint=r.mousePosition(t),l.adder.load(o,l.interactionPoint)}else l.adder.hide()}}),l.viewer=new u.Viewer({onEdit:function(t){l.interactionPoint=r.$(l.viewer.element).css(["top","left"]),e.annotations.update(t)},onDelete:function(t){e.annotations.delete(t)},permitEdit:function(e){return f.permits("update",e,c.who())},permitDelete:function(e){return f.permits("delete",e,c.who())},autoViewHighlights:t.element,extensions:t.viewerExtensions}),l.viewer.attach(),injectDynamicStyle()}void 0!==t&&null!==t||(t={}),t.element=t.element||e.document.body,t.editorExtensions=t.editorExtensions||[],t.viewerExtensions=t.viewerExtensions||[];var n=annotationFactory(t.element,".annotator-hl"),l={interactionPoint:null};return{start:start,destroy:function(){l.adder.destroy(),l.editor.destroy(),l.highlighter.destroy(),l.textselector.destroy(),l.viewer.destroy(),removeDynamicStyle()},annotationsLoaded:function(e){l.highlighter.drawAll(e)},annotationCreated:function(e){l.highlighter.draw(e)},annotationDeleted:function(e){l.highlighter.undraw(e)},annotationUpdated:function(e){l.highlighter.redraw(e)},beforeAnnotationCreated:function(e){return l.editor.load(e,l.interactionPoint)},beforeAnnotationUpdated:function(e){return l.editor.load(e,l.interactionPoint)}}}var r=n(1),o=n(9),i=n(10),a=n(11),s=n(12),u=n(13),l=r.gettext;t.main=main}).call(t,n(2))},function(e,t,n){"use strict";(function(e){var r=n(1),o=r.gettext,i=t.render=function(t){var n=r.escapeHtml;return e.showdown&&"function"==typeof e.showdown.Converter&&(n=(new e.showdown.Converter).makeHtml),t.text?n(t.text):"<i>"+o("No comment")+"</i>"};t.viewerExtension=function(t){e.showdown&&"function"==typeof e.showdown.Converter||console.warn(o("To use the Markdown plugin, you must include Showdown into the page first.")),t.setRenderer(i)}}).call(t,n(2))},function(e,t,n){"use strict";function stringifyTags(e){return e.join(" ")}function parseTags(e){e=o.trim(e);var t=[];return e&&(t=e.split(/\s+/)),t}var r=n(1),o=r.$,i=r.gettext;t.viewerExtension=function(e){function updateViewer(e,t){e=o(e),t.tags&&o.isArray(t.tags)&&t.tags.length?e.addClass("annotator-tags").html(function(){return o.map(t.tags,function(e){return'<span class="annotator-tag">'+r.escapeHtml(e)+"</span>"}).join(" ")}):e.remove()}e.addField({load:updateViewer})},t.editorExtension=function(e){function updateField(e,t){var r="";t.tags&&(r=stringifyTags(t.tags)),n.val(r)}function setAnnotationTags(e,t){t.tags=parseTags(n.val())}var t=null,n=null;t=e.addField({label:i("Add some tags here")+"…",load:updateField,submit:setAnnotationTags}),n=o(t).find(":input")}},function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function supportsLocalStorage(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}function savePercent(e,t){return!!supportsLocalStorage()&&(localStorage["wallabag.article."+e+".percent"]=t,!0)}function retrievePercent(e){if(!supportsLocalStorage())return!1;var t=(0,o.default)(document).height(),n=localStorage["wallabag.article."+e+".percent"],r=t*n;return(0,o.default)("html,body").animate({scrollTop:r},"fast"),!0}Object.defineProperty(t,"__esModule",{value:!0}),t.retrievePercent=t.savePercent=void 0;var r=n(0),o=_interopRequireDefault(r);n(15),n(14);var i=n(36);_interopRequireDefault(i);t.savePercent=savePercent,t.retrievePercent=retrievePercent},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){var n={};e.exports=function(e,t){if(!n[e]){n[e]=!0;var r=document.createElement("style");r.setAttribute("type","text/css"),"textContent"in r?r.textContent=e:r.styleSheet.cssText=e;var o=document.getElementsByTagName("head")[0];t&&t.prepend?o.insertBefore(r,o.childNodes[0]):o.appendChild(r)}}},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(e,t,n){"use strict";e.exports=n(3)},function(e,t){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var o=Object.keys(Object(r)),i=0,a=o.length;i<a;i++){var s=o[i],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(t[s]=r[s])}}}return t}})}()},function(e,t){"use strict";e.exports=function(){var e={};return e.utf16to8=function(e){var t,n,r,o;for(t="",r=e.length,n=0;n<r;n++)o=e.charCodeAt(n),o>=1&&o<=127?t+=e.charAt(n):o>2047?(t+=String.fromCharCode(224|o>>12&15),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|o>>0&63)):(t+=String.fromCharCode(192|o>>6&31),t+=String.fromCharCode(128|o>>0&63));return t},e.utf8to16=function(e){var t,n,r,o,i,a;for(t="",r=e.length,n=0;n<r;)switch((o=e.charCodeAt(n++))>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(n-1);break;case 12:case 13:i=e.charCodeAt(n++),t+=String.fromCharCode((31&o)<<6|63&i);break;case 14:i=e.charCodeAt(n++),a=e.charCodeAt(n++),t+=String.fromCharCode((15&o)<<12|(63&i)<<6|(63&a)<<0)}return t},e}()},function(e,n,r){"use strict";r(1),r(4);var o=r(2),i=function(){function t(e){var t=new QRCode(e.typeNumber,e.correctLevel);t.addData(e.text),t.make();var n=document.createElement("canvas");n.width=e.width,n.height=e.height;var r=n.getContext("2d"),o=(e.width-2*e.padding)/t.getModuleCount(),i=(e.height-2*e.padding)/t.getModuleCount();if(e.reverse){var a="rgba(0, 0, 0, 0)";r.fillStyle=a,e.foreground=a}else r.fillStyle=e.background;r.fillRect(0,0,n.width,n.height);for(var s=0;s<t.getModuleCount();s++)for(var u=0;u<t.getModuleCount();u++){r.fillStyle=t.isDark(s,u)?e.foreground:e.background;var l=Math.ceil((u+1)*o)-Math.floor(u*o),c=Math.ceil((s+1)*o)-Math.floor(s*o);r.fillRect(Math.round(u*o)+e.padding,Math.round(s*i)+e.padding,l,c)}return n}var e={};return e.getQrBase64=function(e,n){"string"!=typeof e&&(e=""),"string"==typeof n?n={text:n}:"object"!=typeof n&&(n={}),n=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},n);try{n.text=o.utf16to8(e)}catch(e){n.text=""+e}return t(n).toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=i),e.exports=i},function(e,t){function r(e){this.mode=s.MODE_8BIT_BYTE,this.data=e}function o(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}function i(e,t){this.totalCount=e,this.dataCount=t}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},o.prototype={addData:function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=i.getRSBlocks(e,this.errorCorrectLevel),n=new a,r=0,o=0;o<t.length;o++)r+=t[o].dataCount;for(var o=0;o<this.dataList.length;o++){var s=this.dataList[o];n.put(s.mode,4),n.put(s.getLength(),c.getLengthInBits(s.mode,e)),s.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=c.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,a=0;a<this.modules[o].length;a++){var s=1*a,u=this.modules[o][a];u&&(r.beginFill(0,100),r.moveTo(s,i),r.lineTo(s+1,i),r.lineTo(s+1,i+1),r.lineTo(s,i+1),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=c.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[r+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}},setupTypeNumber:function(e){for(var t=c.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=c.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(var o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[r][a-s]){var u=!1;i<e.length&&(u=1==(e[i]>>>o&1));var l=c.getMask(t,r,a-s);l&&(u=!u),this.modules[r][a-s]=u,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new a,u=0;u<n.length;u++){var l=n[u];s.put(l.mode,4),s.put(l.getLength(),c.getLengthInBits(l.mode,e)),l.write(s)}for(var f=0,u=0;u<r.length;u++)f+=r[u].dataCount;if(s.getLengthInBits()>8*f)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*f+")");for(s.getLengthInBits()+4<=8*f&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*f)&&(s.put(o.PAD0,8),!(s.getLengthInBits()>=8*f));)s.put(o.PAD1,8);return o.createBytes(s,r)},o.createBytes=function(e,t){for(var r=0,o=0,i=0,a=new Array(t.length),s=new Array(t.length),u=0;u<t.length;u++){var l=t[u].dataCount,f=t[u].totalCount-l;o=Math.max(o,l),i=Math.max(i,f),a[u]=new Array(l);for(var d=0;d<a[u].length;d++)a[u][d]=255&e.buffer[d+r];r+=l;var h=c.getErrorCorrectPolynomial(f),p=new n(a[u],h.getLength()-1),g=p.mod(h);s[u]=new Array(h.getLength()-1);for(var d=0;d<s[u].length;d++){var m=d+g.getLength()-s[u].length;s[u][d]=m>=0?g.get(m):0}}for(var v=0,d=0;d<t.length;d++)v+=t[d].totalCount;for(var y=new Array(v),w=0,d=0;d<o;d++)for(var u=0;u<t.length;u++)d<a[u].length&&(y[w++]=a[u][d]);for(var d=0;d<i;d++)for(var u=0;u<t.length;u++)d<s[u].length&&(y[w++]=s[u][d]);return y};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},l={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;c.getBCHDigit(t)-c.getBCHDigit(c.G15)>=0;)t^=c.G15<<c.getBCHDigit(t)-c.getBCHDigit(c.G15);return(e<<10|t)^c.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;c.getBCHDigit(t)-c.getBCHDigit(c.G18)>=0;)t^=c.G18<<c.getBCHDigit(t)-c.getBCHDigit(c.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return c.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case l.PATTERN000:return(t+n)%2==0;case l.PATTERN001:return t%2==0;case l.PATTERN010:return n%3==0;case l.PATTERN011:return(t+n)%3==0;case l.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case l.PATTERN101:return t*n%2+t*n%3==0;case l.PATTERN110:return(t*n%2+t*n%3)%2==0;case l.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new n([1],0),r=0;r<e;r++)t=t.multiply(new n([1,f.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:case s.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||0==s&&0==u||a==e.isDark(r+s,o+u)&&i++;i>5&&(n+=3+i-5)}for(var r=0;r<t-1;r++)for(var o=0;o<t-1;o++){var l=0;e.isDark(r,o)&&l++,e.isDark(r+1,o)&&l++,e.isDark(r,o+1)&&l++,e.isDark(r+1,o+1)&&l++,0!=l&&4!=l||(n+=3)}for(var r=0;r<t;r++)for(var o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(var o=0;o<t;o++)for(var r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);for(var c=0,o=0;o<t;o++)for(var r=0;r<t;r++)e.isDark(r,o)&&c++;return n+=Math.abs(100*c/t/t-50)/5*10}},f={glog:function(e){if(e<1)throw new Error("glog("+e+")");return f.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return f.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)f.EXP_TABLE[d]=1<<d;for(var d=8;d<256;d++)f.EXP_TABLE[d]=f.EXP_TABLE[d-4]^f.EXP_TABLE[d-5]^f.EXP_TABLE[d-6]^f.EXP_TABLE[d-8];for(var d=0;d<255;d++)f.LOG_TABLE[f.EXP_TABLE[d]]=d;n.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<e.getLength();o++)t[r+o]^=f.gexp(f.glog(this.get(r))+f.glog(e.get(o)));return new n(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=f.glog(this.get(0))-f.glog(e.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<e.getLength();o++)r[o]^=f.gexp(f.glog(e.get(o))+t);return new n(r,0).mod(e)}},i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(e,t){var n=i.getRsBlockTable(e,t);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,o=new Array,a=0;a<r;a++)for(var s=n[3*a+0],u=n[3*a+1],l=n[3*a+2],c=0;c<s;c++)o.push(new i(u,l));return o},i.getRsBlockTable=function(e,t){switch(t){case u.L:return i.RS_BLOCK_TABLE[4*(e-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(e-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(e-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},a.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=u;try{e.exports={QRCode:o,QRErrorCorrectLevel:u}}catch(e){}}])})},function(e,t){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(n===setTimeout)return setTimeout(e,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function runClearTimeout(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}function cleanUpNextTick(){s&&i&&(s=!1,i.length?a=i.concat(a):u=-1,a.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=a.length;t;){for(i=a,a=[];++u<t;)i&&i[u].run();u=-1,t=a.length}i=null,s=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}var n,r,o=e.exports={};!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){n=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var i,a=[],s=!1,u=-1;o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.push(new Item(e,t)),1!==a.length||s||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=noop,o.addListener=noop,o.once=noop,o.off=noop,o.removeListener=noop,o.removeAllListeners=noop,o.emit=noop,o.prependListener=noop,o.prependOnceListener=noop,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){(function(){var t,r,o,i,a={}.hasOwnProperty,s=function(e,t){function ctor(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return ctor.prototype=t.prototype,e.prototype=new ctor,e.__super__=t.prototype,e};i=n(20),o=n(19),t=n(0),r={},r.sniff=function(e){return null!=e.commonAncestorContainer?new r.BrowserRange(e):"string"==typeof e.start?new r.SerializedRange(e):e.start&&"object"==typeof e.start?new r.NormalizedRange(e):(console.error("Could not sniff range type"),!1)},r.RangeError=function(e){function RangeError(e,t,n){this.type=e,this.message=t,this.parent=null!=n?n:null,RangeError.__super__.constructor.call(this,this.message)}return s(RangeError,e),RangeError}(Error),r.BrowserRange=function(){function BrowserRange(e){this.commonAncestorContainer=e.commonAncestorContainer,this.startContainer=e.startContainer,this.startOffset=e.startOffset,this.endContainer=e.endContainer,this.endOffset=e.endOffset}return BrowserRange.prototype.normalize=function(e){var t,n;if(this.tainted)return console.error("You may only call normalize() once on a BrowserRange!"),!1;for(this.tainted=!0,n={},this._normalizeStart(n),this._normalizeEnd(n),t={},n.startOffset>0?n.start.nodeValue.length>n.startOffset?t.start=n.start.splitText(n.startOffset):t.start=n.start.nextSibling:t.start=n.start,n.start===n.end?(t.start.nodeValue.length>n.endOffset-n.startOffset&&t.start.splitText(n.endOffset-n.startOffset),t.end=t.start):(n.end.nodeValue.length>n.endOffset&&n.end.splitText(n.endOffset),t.end=n.end),t.commonAncestor=this.commonAncestorContainer;t.commonAncestor.nodeType!==o.NodeTypes.ELEMENT_NODE;)t.commonAncestor=t.commonAncestor.parentNode;return new r.NormalizedRange(t)},BrowserRange.prototype._normalizeStart=function(e){return this.startContainer.nodeType===o.NodeTypes.ELEMENT_NODE?(e.start=o.getFirstTextNodeNotBefore(this.startContainer.childNodes[this.startOffset]),e.startOffset=0):(e.start=this.startContainer,e.startOffset=this.startOffset)},BrowserRange.prototype._normalizeEnd=function(e){var t,n;if(this.endContainer.nodeType!==o.NodeTypes.ELEMENT_NODE)return e.end=this.endContainer,e.endOffset=this.endOffset;if(null!=(n=this.endContainer.childNodes[this.endOffset])){for(t=n;null!=t&&t.nodeType!==o.NodeTypes.TEXT_NODE;)t=t.firstChild;null!=t&&(e.end=t,e.endOffset=0)}return null==e.end?(n=this.endOffset?this.endContainer.childNodes[this.endOffset-1]:this.endContainer.previousSibling,e.end=o.getLastTextNodeUpTo(n),e.endOffset=e.end.nodeValue.length):void 0},BrowserRange.prototype.serialize=function(e,t){return this.normalize(e).serialize(e,t)},BrowserRange}(),r.NormalizedRange=function(){function NormalizedRange(e){this.commonAncestor=e.commonAncestor,this.start=e.start,this.end=e.end}return NormalizedRange.prototype.normalize=function(e){return this},NormalizedRange.prototype.limit=function(e){var n,r,o,i,a,s;if(n=t.grep(this.textNodes(),function(n){return n.parentNode===e||t.contains(e,n.parentNode)}),!n.length)return null;for(this.start=n[0],this.end=n[n.length-1],o=t(this.start).parents(),s=t(this.end).parents(),i=0,a=s.length;i<a;i++)if(r=s[i],-1!==o.index(r)){this.commonAncestor=r;break}return this},NormalizedRange.prototype.serialize=function(e,n){var a,s,u;return s=function(r,a){var s,u,l,c,f,d,h,p;for(c=n?t(r).parents(":not("+n+")").eq(0):t(r).parent(),f=i.fromNode(c,e)[0],d=o.getTextNodes(c),u=d.slice(0,d.index(r)),l=0,h=0,p=u.length;h<p;h++)s=u[h],l+=s.nodeValue.length;return a?[f,l+r.nodeValue.length]:[f,l]},u=s(this.start),a=s(this.end,!0),new r.SerializedRange({start:u[0],end:a[0],startOffset:u[1],endOffset:a[1]})},NormalizedRange.prototype.text=function(){var e;return function(){var t,n,r,o;for(r=this.textNodes(),o=[],t=0,n=r.length;t<n;t++)e=r[t],o.push(e.nodeValue);return o}.call(this).join("")},NormalizedRange.prototype.textNodes=function(){var e,n,r,i;return r=o.getTextNodes(t(this.commonAncestor)),i=[r.index(this.start),r.index(this.end)],n=i[0],e=i[1],t.makeArray(r.slice(n,+e+1||9e9))},NormalizedRange}(),r.SerializedRange=function(){function SerializedRange(e){this.start=e.start,this.startOffset=e.startOffset,this.end=e.end,this.endOffset=e.endOffset}return SerializedRange.prototype.normalize=function(e){var n,a,s,u,l,c,f,d,h,p,g,m,v,y;for(c={},v=["start","end"],h=0,g=v.length;h<g;h++){l=v[h];try{u=i.toNode(this[l],e)}catch(e){throw a=e,new r.RangeError(l,"Error while finding "+l+" node: "+this[l]+": "+a,a)}if(!u)throw new r.RangeError(l,"Couldn't find "+l+" node: "+this[l]);for(s=0,f=this[l+"Offset"],"end"===l&&(f-=1),y=o.getTextNodes(t(u)),p=0,m=y.length;p<m;p++){if(d=y[p],s+d.nodeValue.length>f){c[l+"Container"]=d,c[l+"Offset"]=this[l+"Offset"]-s;break}s+=d.nodeValue.length}if(null==c[l+"Offset"])throw new r.RangeError(l+"offset","Couldn't find offset "+this[l+"Offset"]+" in element "+this[l])}return n=null!=document.compareDocumentPosition?function(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY}:function(e,t){return e.contains(t)},t(c.startContainer).parents().each(function(){var e;if(e=c.endContainer.nodeType===o.NodeTypes.TEXT_NODE?c.endContainer.parentNode:c.endContainer,n(this,e))return c.commonAncestorContainer=this,!1}),new r.BrowserRange(c).normalize(e)},SerializedRange.prototype.serialize=function(e,t){return this.normalize(e).serialize(e,t)},SerializedRange.prototype.toObject=function(){return{start:this.start,startOffset:this.startOffset,end:this.end,endOffset:this.endOffset}},SerializedRange}(),e.exports=r}).call(this)},function(e,t){},function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r=n(4),o=_interopRequireDefault(r),i=n(0),a=_interopRequireDefault(i);(0,a.default)(document).ready(function(){(0,a.default)("#article").length>0&&(o.default.bind("o",function(){(0,a.default)("div#article_toolbar ul.links a.original")[0].click()}),o.default.bind("f",function(){(0,a.default)("div#article_toolbar ul.links a.favorite")[0].click()}),o.default.bind("a",function(){(0,a.default)("div#article_toolbar ul.links a.markasread")[0].click()}),o.default.bind("del",function(){(0,a.default)("div#article_toolbar ul.links a.delete")[0].click()}))})},function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r=n(0),o=_interopRequireDefault(r),i=n(4),a=_interopRequireDefault(i);(0,o.default)(document).ready(function(){a.default.bind("s",function(){return(0,o.default)("#search").trigger("click"),(0,o.default)("#search_entry_term").focus(),!1})})},function(e,t,n){"use strict";function toggleSaveLinkForm(e,t){(0,o.default)("#add-link-result").empty();var n=(0,o.default)("#bagit"),r=(0,o.default)("#bagit-form");n.toggleClass("active-current"),0===n.length&&("undefined"!==t&&t?r.css({position:"absolute",top:t.pageY,left:t.pageX-200}):r.css({position:"relative",top:"auto",left:"auto"}));var i=(0,o.default)("#search-form"),a=(0,o.default)("#plainurl");0!==i.length&&((0,o.default)("#search").removeClass("current"),(0,o.default)("#search-arrow").removeClass("arrow-down"),i.hide()),r.toggle(),(0,o.default)("#content").toggleClass("opacity03"),"undefined"!==e&&e&&a.val(e),a.focus()}Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=toggleSaveLinkForm},,,,function(e,t){},,,,function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r=n(0),o=_interopRequireDefault(r);n(21),n(41),n(40);var i=n(42),a=_interopRequireDefault(i);n(46),(0,o.default)(document).ready(function(){function toggleSearch(){(0,o.default)("#search-form").toggle(),(0,o.default)("#search").toggleClass("current"),(0,o.default)("#search").toggleClass("active-current"),(0,o.default)("#search-arrow").toggleClass("arrow-down"),(0,o.default)("#search").hasClass("current")?(0,o.default)("#content").addClass("opacity03"):(0,o.default)("#content").removeClass("opacity03")}function toggleFilter(){(0,o.default)("#filters").toggle()}function toggleDownload(){(0,o.default)("#download-form").toggle()}function toggleBagit(){(0,o.default)("#bagit-form").toggle(),(0,o.default)("#bagit").toggleClass("current"),(0,o.default)("#bagit").toggleClass("active-current"),(0,o.default)("#bagit-arrow").toggleClass("arrow-down"),(0,o.default)("#bagit").hasClass("current")?(0,o.default)("#content").addClass("opacity03"):(0,o.default)("#content").removeClass("opacity03")}function closePopups(){(0,o.default)("#links .messages").hide(),(0,o.default)("#links > li > a").removeClass("active-current"),(0,o.default)("#links > li > a").removeClass("current"),(0,o.default)("[id$=-arrow]").removeClass("arrow-down"),(0,o.default)("#content").removeClass("opacity03")}(0,o.default)("#menu").click(function(){(0,o.default)("#links").toggleClass("menu--open");var e=(0,o.default)("#content");e.hasClass("opacity03")&&e.removeClass("opacity03")}),(0,o.default)("#nav-btn-add-tag").on("click",function(){return(0,o.default)(".baggy-add-tag").toggle(100),(0,o.default)(".nav-panel-menu").addClass("hidden"),(0,o.default)("#tag_label").focus(),!1}),(0,o.default)("div").is("#filters")&&((0,o.default)("#button_filters").show(),(0,o.default)("#clear_form_filters").on("click",function(){return(0,o.default)("#filters input").val(""),(0,o.default)("#filters :checked").removeAttr("checked"),!1})),window.location.href.match("&closewin=true")&&window.close(),(0,o.default)("a.closeMessage").on("click",function(){return(0,o.default)(void 0).parents("div.messages").slideUp(300,function(){(0,o.default)(void 0).remove()}),!1}),(0,o.default)("#search-form").hide(),(0,o.default)("#bagit-form").hide(),(0,o.default)("#filters").hide(),(0,o.default)("#download-form").hide(),(0,o.default)("#search").click(function(){closePopups(),toggleSearch(),(0,o.default)("#searchfield").focus()}),(0,o.default)(".filter-btn").click(function(){closePopups(),toggleFilter()}),(0,o.default)(".download-btn").click(function(){closePopups(),toggleDownload()}),(0,o.default)("#bagit").click(function(){closePopups(),toggleBagit(),(0,o.default)("#plainurl").focus()}),(0,o.default)("#search-form-close").click(function(){toggleSearch()}),(0,o.default)("#filter-form-close").click(function(){toggleFilter()}),(0,o.default)("#download-form-close").click(function(){toggleDownload()}),(0,o.default)("#bagit-form-close").click(function(){toggleBagit()});var e=(0,o.default)("#bagit-form-form");e.submit(function(t){(0,o.default)("body").css("cursor","wait"),(0,o.default)("#add-link-result").empty(),o.default.ajax({type:e.attr("method"),url:e.attr("action"),data:e.serialize(),success:function(){(0,o.default)("#add-link-result").html("Done!"),(0,o.default)("#plainurl").val("").blur(""),(0,o.default)("body").css("cursor","auto")},error:function(){(0,o.default)("#add-link-result").html("Failed!"),(0,o.default)("body").css("cursor","auto")}}),t.preventDefault()}),(0,o.default)('article a[href^="http"]').after(function(){return'<a href="'+(0,o.default)(void 0).attr("href")+'" class="add-to-wallabag-link-after" title="add to wallabag"></a>'}),(0,o.default)(".add-to-wallabag-link-after").click(function(e){(0,a.default)((0,o.default)(void 0).attr("href"),e),e.preventDefault()})})}]); \ No newline at end of file | !function(e){function __webpack_require__(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}var t={};__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="/bundles/wallabagcore/",__webpack_require__(__webpack_require__.s=50)}([function(e,t,n){var r,o;!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){function isArrayLike(e){var t=!!e&&"length"in e&&e.length,n=m.type(e);return"function"!==n&&!m.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function winnow(e,t,n){if(m.isFunction(t))return m.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return m.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(C.test(t))return m.filter(t,e,n);t=m.filter(t,e)}return m.grep(e,function(e){return f.call(t,e)>-1!==n})}function sibling(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function createOptions(e){var t={};return m.each(e.match(A)||[],function(e,n){t[n]=!0}),t}function completed(){s.removeEventListener("DOMContentLoaded",completed),n.removeEventListener("load",completed),m.ready()}function Data(){this.expando=m.expando+Data.uid++}function dataAttr(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(R,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:M.test(n)?m.parseJSON(n):n)}catch(e){}L.set(e,t,n)}else n=void 0;return n}function adjustCSS(e,t,n,r){var o,i=1,a=20,s=r?function(){return r.cur()}:function(){return m.css(e,t,"")},u=s(),l=n&&n[3]||(m.cssNumber[t]?"":"px"),c=(m.cssNumber[t]||"px"!==l&&+u)&&F.exec(m.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{i=i||".5",c/=i,m.style(e,t,c+l)}while(i!==(i=s()/u)&&1!==i&&--a)}return n&&(c=+c||+u||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=o)),o}function getAll(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&m.nodeName(e,t)?m.merge([e],n):n}function setGlobalEval(e,t){for(var n=0,r=e.length;n<r;n++)O.set(e[n],"globalEval",!t||O.get(t[n],"globalEval"))}function buildFragment(e,t,n,r,o){for(var i,a,s,u,l,c,f=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((i=e[h])||0===i)if("object"===m.type(i))m.merge(d,i.nodeType?[i]:i);else if(U.test(i)){for(a=a||f.appendChild(t.createElement("div")),s=(z.exec(i)||["",""])[1].toLowerCase(),u=W[s]||W._default,a.innerHTML=u[1]+m.htmlPrefilter(i)+u[2],c=u[0];c--;)a=a.lastChild;m.merge(d,a.childNodes),a=f.firstChild,a.textContent=""}else d.push(t.createTextNode(i));for(f.textContent="",h=0;i=d[h++];)if(r&&m.inArray(i,r)>-1)o&&o.push(i);else if(l=m.contains(i.ownerDocument,i),a=getAll(f.appendChild(i),"script"),l&&setGlobalEval(a),n)for(c=0;i=a[c++];)I.test(i.type||"")&&n.push(i);return f}function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return s.activeElement}catch(e){}}function on(e,t,n,r,o,i){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)on(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=returnFalse;else if(!o)return e;return 1===i&&(a=o,o=function(e){return m().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=m.guid++)),e.each(function(){m.event.add(this,t,o,r,n)})}function manipulationTarget(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function disableScript(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function restoreScript(e){var t=G.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function cloneCopyEvent(e,t){var n,r,o,i,a,s,u,l;if(1===t.nodeType){if(O.hasData(e)&&(i=O.access(e),a=O.set(t,i),l=i.events)){delete a.handle,a.events={};for(o in l)for(n=0,r=l[o].length;n<r;n++)m.event.add(t,o,l[o][n])}L.hasData(e)&&(s=L.access(e),u=m.extend({},s),L.set(t,u))}}function fixInput(e,t){var n=t.nodeName.toLowerCase();"input"===n&&B.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function domManip(e,t,n,r){t=l.apply([],t);var o,i,a,s,u,c,f=0,d=e.length,h=d-1,p=t[0],v=m.isFunction(p);if(v||d>1&&"string"==typeof p&&!g.checkClone&&K.test(p))return e.each(function(o){var i=e.eq(o);v&&(t[0]=p.call(this,o,i.html())),domManip(i,t,n,r)});if(d&&(o=buildFragment(t,e[0].ownerDocument,!1,e,r),i=o.firstChild,1===o.childNodes.length&&(o=i),i||r)){for(a=m.map(getAll(o,"script"),disableScript),s=a.length;f<d;f++)u=o,f!==h&&(u=m.clone(u,!0,!0),s&&m.merge(a,getAll(u,"script"))),n.call(e[f],u,f);if(s)for(c=a[a.length-1].ownerDocument,m.map(a,restoreScript),f=0;f<s;f++)u=a[f],I.test(u.type||"")&&!O.access(u,"globalEval")&&m.contains(c,u)&&(u.src?m._evalUrl&&m._evalUrl(u.src):m.globalEval(u.textContent.replace(Q,"")))}return e}function remove(e,t,n){for(var r,o=t?m.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||m.cleanData(getAll(r)),r.parentNode&&(n&&m.contains(r.ownerDocument,r)&&setGlobalEval(getAll(r,"script")),r.parentNode.removeChild(r));return e}function actualDisplay(e,t){var n=m(t.createElement(e)).appendTo(t.body),r=m.css(n[0],"display");return n.detach(),r}function defaultDisplay(e){var t=s,n=Z[e];return n||(n=actualDisplay(e,t),"none"!==n&&n||(J=(J||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=J[0].contentDocument,t.write(),t.close(),n=actualDisplay(e,t),J.detach()),Z[e]=n),n}function curCSS(e,t,n){var r,o,i,a,s=e.style;return n=n||ne(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||m.contains(e.ownerDocument,e)||(a=m.style(e,t)),n&&!g.pixelMarginRight()&&te.test(a)&&ee.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i),void 0!==a?a+"":a}function addGetHookIf(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function vendorPropName(e){if(e in le)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ue.length;n--;)if((e=ue[n]+t)in le)return e}function setPositiveNumber(e,t,n){var r=F.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function augmentWidthOrHeight(e,t,n,r,o){for(var i=n===(r?"border":"content")?4:"width"===t?1:0,a=0;i<4;i+=2)"margin"===n&&(a+=m.css(e,n+H[i],!0,o)),r?("content"===n&&(a-=m.css(e,"padding"+H[i],!0,o)),"margin"!==n&&(a-=m.css(e,"border"+H[i]+"Width",!0,o))):(a+=m.css(e,"padding"+H[i],!0,o),"padding"!==n&&(a+=m.css(e,"border"+H[i]+"Width",!0,o)));return a}function getWidthOrHeight(e,t,n){var r=!0,o="width"===t?e.offsetWidth:e.offsetHeight,i=ne(e),a="border-box"===m.css(e,"boxSizing",!1,i);if(o<=0||null==o){if(o=curCSS(e,t,i),(o<0||null==o)&&(o=e.style[t]),te.test(o))return o;r=a&&(g.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+augmentWidthOrHeight(e,t,n||(a?"border":"content"),r,i)+"px"}function showHide(e,t){for(var n,r,o,i=[],a=0,s=e.length;a<s;a++)r=e[a],r.style&&(i[a]=O.get(r,"olddisplay"),n=r.style.display,t?(i[a]||"none"!==n||(r.style.display=""),""===r.style.display&&q(r)&&(i[a]=O.access(r,"olddisplay",defaultDisplay(r.nodeName)))):(o=q(r),"none"===n&&o||O.set(r,"olddisplay",o?n:m.css(r,"display"))));for(a=0;a<s;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?i[a]||"":"none"));return e}function Tween(e,t,n,r,o){return new Tween.prototype.init(e,t,n,r,o)}function createFxNow(){return n.setTimeout(function(){ce=void 0}),ce=m.now()}function genFx(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)n=H[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function createTween(e,t,n){for(var r,o=(Animation.tweeners[t]||[]).concat(Animation.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function defaultPrefilter(e,t,n){var r,o,i,a,s,u,l,c=this,f={},d=e.style,h=e.nodeType&&q(e),p=O.get(e,"fxshow");n.queue||(s=m._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,m.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=m.css(e,"display"),"inline"===("none"===l?O.get(e,"olddisplay")||defaultDisplay(e.nodeName):l)&&"none"===m.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(o=t[r],de.exec(o)){if(delete t[r],i=i||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!p||void 0===p[r])continue;h=!0}f[r]=p&&p[r]||m.style(e,r)}else l=void 0;if(m.isEmptyObject(f))"inline"===("none"===l?defaultDisplay(e.nodeName):l)&&(d.display=l);else{p?"hidden"in p&&(h=p.hidden):p=O.access(e,"fxshow",{}),i&&(p.hidden=!h),h?m(e).show():c.done(function(){m(e).hide()}),c.done(function(){var t;O.remove(e,"fxshow");for(t in f)m.style(e,t,f[t])});for(r in f)a=createTween(h?p[r]:0,r,c),r in p||(p[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function propFilter(e,t){var n,r,o,i,a;for(n in e)if(r=m.camelCase(n),o=t[r],i=e[n],m.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=m.cssHooks[r])&&"expand"in a){i=a.expand(i),delete e[r];for(n in i)n in e||(e[n]=i[n],t[n]=o)}else t[r]=o}function Animation(e,t,n){var r,o,i=0,a=Animation.prefilters.length,s=m.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var t=ce||createFxNow(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,i=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(i);return s.notifyWith(e,[l,i,n]),i<1&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:m.extend({},t),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},n),originalProperties:t,originalOptions:n,startTime:ce||createFxNow(),duration:n.duration,tweens:[],createTween:function(t,n){var r=m.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(propFilter(c,l.opts.specialEasing);i<a;i++)if(r=Animation.prefilters[i].call(l,e,c,l.opts))return m.isFunction(r.stop)&&(m._queueHooks(l.elem,l.opts.queue).stop=m.proxy(r.stop,r)),r;return m.map(c,createTween,l),m.isFunction(l.opts.start)&&l.opts.start.call(e,l),m.fx.timer(m.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function getClass(e){return e.getAttribute&&e.getAttribute("class")||""}function addToPrefiltersOrTransports(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(A)||[];if(m.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function inspectPrefiltersOrTransports(e,t,n,r){function inspect(a){var s;return o[a]=!0,m.each(e[a]||[],function(e,a){var u=a(t,n,r);return"string"!=typeof u||i||o[u]?i?!(s=u):void 0:(t.dataTypes.unshift(u),inspect(u),!1)}),s}var o={},i=e===Se;return inspect(t.dataTypes[0])||!o["*"]&&inspect("*")}function ajaxExtend(e,t){var n,r,o=m.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&m.extend(!0,e,r),e}function ajaxHandleResponses(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}function ajaxConvert(e,t,n,r){var o,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=l[u+" "+i]||l["* "+i]))for(o in l)if(s=o.split(" "),s[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[o]:!0!==l[o]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}function buildParams(e,t,n,r){var o;if(m.isArray(t))m.each(t,function(t,o){n||De.test(e)?r(e,o):buildParams(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==m.type(t))r(e,t);else for(o in t)buildParams(e+"["+o+"]",t[o],n,r)}function getWindow(e){return m.isWindow(e)?e:9===e.nodeType&&e.defaultView}var a=[],s=n.document,u=a.slice,l=a.concat,c=a.push,f=a.indexOf,d={},h=d.toString,p=d.hasOwnProperty,g={},m=function(e,t){return new m.fn.init(e,t)},v=function(e,t){return t.toUpperCase()};m.fn=m.prototype={jquery:"2.2.4",constructor:m,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},m.extend=m.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],r=e[t],a!==r&&(l&&r&&(m.isPlainObject(r)||(o=m.isArray(r)))?(o?(o=!1,i=n&&m.isArray(n)?n:[]):i=n&&m.isPlainObject(n)?n:{},a[t]=m.extend(l,i,r)):void 0!==r&&(a[t]=r));return a},m.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===m.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!m.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==m.type(e)||e.nodeType||m.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=m.trim(e))&&(1===e.indexOf("use strict")?(t=s.createElement("script"),t.text=e,s.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(isArrayLike(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(isArrayLike(Object(e))?m.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:f.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(isArrayLike(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return l.apply([],a)},guid:1,proxy:function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),m.isFunction(e))return r=u.call(arguments,2),o=function(){return e.apply(t||this,r.concat(u.call(arguments)))},o.guid=e.guid=e.guid||m.guid++,o},now:Date.now,support:g}),"function"==typeof Symbol&&(m.fn[Symbol.iterator]=a[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var y=function(e){function Sizzle(e,t,r,o){var i,s,l,c,f,p,v,y,T=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!o&&((t?t.ownerDocument||t:x)!==h&&d(t),t=t||h,g)){if(11!==C&&(p=J.exec(e)))if(i=p[1]){if(9===C){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(T&&(l=T.getElementById(i))&&w(t,l)&&l.id===i)return r.push(l),r}else{if(p[2])return L.apply(r,t.getElementsByTagName(e)),r;if((i=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))){if(1!==C)T=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=b),v=a(e),s=v.length,f=V.test(c)?"#"+c:"[id='"+c+"']";s--;)v[s]=f+" "+toSelector(v[s]);y=v.join(","),T=Z.test(e)&&testContext(t.parentNode)||t}if(y)try{return L.apply(r,T.querySelectorAll(y)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(I,"$1"),t,r,o)}function createCache(){function cache(t,n){return e.push(t+" ")>r.cacheLength&&delete cache[e.shift()],cache[t+" "]=n}var e=[];return cache}function markFunction(e){return e[b]=!0,e}function assert(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function addHandle(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function siblingCheck(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function createPositionalPseudo(e){return markFunction(function(t){return t=+t,markFunction(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function testContext(e){return e&&void 0!==e.getElementsByTagName&&e}function setFilters(){}function toSelector(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function addCombinator(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var s,u,l,c=[T,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if(l=t[b]||(t[b]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(s=u[r])&&s[0]===T&&s[1]===i)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function elementMatcher(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function multipleContexts(e,t,n){for(var r=0,o=t.length;r<o;r++)Sizzle(e,t[r],n);return n}function condense(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(s)));return a}function setMatcher(e,t,n,r,o,i){return r&&!r[b]&&(r=setMatcher(r)),o&&!o[b]&&(o=setMatcher(o,i)),markFunction(function(i,a,s,u){var l,c,f,d=[],h=[],p=a.length,g=i||multipleContexts(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?g:condense(g,d,e,s,u),v=n?o||(i?e:p||r)?[]:a:m;if(n&&n(m,v,s,u),r)for(l=condense(v,h),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[h[c]]=!(m[h[c]]=f));if(i){if(o||e){if(o){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(m[c]=f);o(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&(l=o?R(i,f):d[c])>-1&&(i[l]=!(a[l]=f))}}else v=condense(v===a?v.splice(p,v.length):v),o?o(null,a,v,u):L.apply(a,v)})}function matcherFromTokens(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=addCombinator(function(e){return e===t},s,!0),f=addCombinator(function(e){return R(t,e)>-1},s,!0),d=[function(e,n,r){var o=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,o}];u<i;u++)if(n=r.relative[e[u].type])d=[addCombinator(elementMatcher(d),n)];else{if(n=r.filter[e[u].type].apply(null,e[u].matches),n[b]){for(o=++u;o<i&&!r.relative[e[o].type];o++);return setMatcher(u>1&&elementMatcher(d),u>1&&toSelector(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(I,"$1"),n,u<o&&matcherFromTokens(e.slice(u,o)),o<i&&matcherFromTokens(e=e.slice(o)),o<i&&toSelector(e))}d.push(n)}return elementMatcher(d)}function matcherFromGroupMatchers(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,u,c){var f,p,m,v=0,y="0",w=i&&[],b=[],x=l,C=i||o&&r.find.TAG("*",c),_=T+=null==x?1:Math.random()||.1,E=C.length;for(c&&(l=a===h||a||c);y!==E&&null!=(f=C[y]);y++){if(o&&f){for(p=0,a||f.ownerDocument===h||(d(f),s=!g);m=e[p++];)if(m(f,a||h,s)){u.push(f);break}c&&(T=_)}n&&((f=!m&&f)&&v--,i&&w.push(f))}if(v+=y,n&&y!==v){for(p=0;m=t[p++];)m(w,b,a,s);if(i){if(v>0)for(;y--;)w[y]||b[y]||(b[y]=P.call(u));b=condense(b)}L.apply(u,b),c&&!i&&b.length>0&&v+t.length>1&&Sizzle.uniqueSort(u)}return c&&(T=_,l=x),w};return n?markFunction(i):i}var t,n,r,o,i,a,s,u,l,c,f,d,h,p,g,m,v,y,w,b="sizzle"+1*new Date,x=e.document,T=0,C=0,_=createCache(),E=createCache(),k=createCache(),S=function(e,t){return e===t&&(f=!0),0},A=1<<31,N={}.hasOwnProperty,D=[],P=D.pop,O=D.push,L=D.push,M=D.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",q="\\["+F+"*("+H+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+F+"*\\]",B=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",z=new RegExp(F+"+","g"),I=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),W=new RegExp("^"+F+"*,"+F+"*"),U=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),$=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),X=new RegExp(B),V=new RegExp("^"+H+"$"),Y={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){d()};try{L.apply(D=M.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(e){L={apply:D.length?function(e,t){O.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}n=Sizzle.support={},i=Sizzle.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=Sizzle.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:x;return a!==h&&9===a.nodeType&&a.documentElement?(h=a,p=h.documentElement,g=!i(h),(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=assert(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=assert(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(h.getElementsByClassName),n.getById=assert(function(e){return p.appendChild(e).id=b,!h.getElementsByName||!h.getElementsByName(b).length}),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Q.test(h.querySelectorAll))&&(assert(function(e){p.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),assert(function(e){var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Q.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&assert(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",B)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(p.compareDocumentPosition),w=t||Q.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===h||e.ownerDocument===x&&w(x,e)?-1:t===h||t.ownerDocument===x&&w(x,t)?1:c?R(c,e)-R(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===h?-1:t===h?1:o?-1:i?1:c?R(c,e)-R(c,t):0;if(o===i)return siblingCheck(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?siblingCheck(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0},h):h},Sizzle.matches=function(e,t){return Sizzle(e,null,null,t)},Sizzle.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&d(e),t=t.replace($,"='$1']"),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return Sizzle(t,h,null,[e]).length>0},Sizzle.contains=function(e,t){return(e.ownerDocument||e)!==h&&d(e),w(e,t)},Sizzle.attr=function(e,t){(e.ownerDocument||e)!==h&&d(e);var o=r.attrHandle[t.toLowerCase()],i=o&&N.call(r.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},Sizzle.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Sizzle.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return c=null,e},o=Sizzle.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},r=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Sizzle.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Sizzle.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=Sizzle.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,h,p,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,w=!1;if(m){if(i){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(d=m,f=d[b]||(d[b]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],h=l[0]===T&&l[1],w=h&&l[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(w=h=0)||p.pop();)if(1===d.nodeType&&++w&&d===t){c[e]=[T,h,w];break}}else if(y&&(d=t,f=d[b]||(d[b]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],h=l[0]===T&&l[1],w=h),!1===w)for(;(d=++h&&d&&d[g]||(w=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++w||(y&&(f=d[b]||(d[b]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[T,w]),d!==t)););return(w-=o)===r||w%r==0&&w/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||Sizzle.error("unsupported pseudo: "+e);return o[b]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?markFunction(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)r=R(e,i[a]),e[r]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:markFunction(function(e){var t=[],n=[],r=s(e.replace(I,"$1"));return r[b]?markFunction(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:markFunction(function(e){return function(t){return Sizzle(e,t).length>0}}),contains:markFunction(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:markFunction(function(e){return V.test(e||"")||Sizzle.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(e,t){return[t-1]}),eq:createPositionalPseudo(function(e,t,n){return[n<0?n+t:n]}),even:createPositionalPseudo(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:createPositionalPseudo(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:createPositionalPseudo(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:createPositionalPseudo(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(t);return setFilters.prototype=r.filters=r.pseudos,r.setFilters=new setFilters,a=Sizzle.tokenize=function(e,t){var n,o,i,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){n&&!(o=W.exec(s))||(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),n=!1,(o=U.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(I," ")}),s=s.slice(n.length));for(a in r.filter)!(o=Y[a].exec(s))||l[a]&&!(o=l[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?Sizzle.error(e):E(e,u).slice(0)},s=Sizzle.compile=function(e,t){var n,r=[],o=[],i=k[e+" "];if(!i){for(t||(t=a(e)),n=t.length;n--;)i=matcherFromTokens(t[n]),i[b]?r.push(i):o.push(i);i=k(e,matcherFromGroupMatchers(o,r)),i.selector=e}return i},u=Sizzle.select=function(e,t,o,i){var u,l,c,f,d,h="function"==typeof e&&e,p=!i&&a(e=h.selector||e);if(o=o||[],1===p.length){if(l=p[0]=p[0].slice(0),l.length>2&&"ID"===(c=l[0]).type&&n.getById&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return o;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(u=Y.needsContext.test(e)?0:l.length;u--&&(c=l[u],!r.relative[f=c.type]);)if((d=r.find[f])&&(i=d(c.matches[0].replace(te,ne),Z.test(l[0].type)&&testContext(t.parentNode)||t))){if(l.splice(u,1),!(e=i.length&&toSelector(l)))return L.apply(o,i),o;break}}return(h||s(e,p))(i,t,!g,o,!t||Z.test(e)&&testContext(t.parentNode)||t),o},n.sortStable=b.split("").sort(S).join("")===b,n.detectDuplicates=!!f,d(),n.sortDetached=assert(function(e){return 1&e.compareDocumentPosition(h.createElement("div"))}),assert(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||addHandle("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&assert(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||addHandle("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),assert(function(e){return null==e.getAttribute("disabled")})||addHandle(j,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),Sizzle}(n);m.find=y,m.expr=y.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=y.uniqueSort,m.text=y.getText,m.isXMLDoc=y.isXML,m.contains=y.contains;var w=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&m(e).is(n))break;r.push(e)}return r},b=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},x=m.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,n=this.length,r=[],o=this;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t<n;t++)if(m.contains(o[t],this))return!0}));for(t=0;t<n;t++)m.find(e,o[t],r);return r=this.pushStack(n>1?m.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(winnow(this,e||[],!1))},not:function(e){return this.pushStack(winnow(this,e||[],!0))},is:function(e){return!!winnow(this,"string"==typeof e&&x.test(e)?m(e):e||[],!1).length}});var _,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||_,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:E.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),T.test(r[1])&&m.isPlainObject(t))for(r in t)m.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return o=s.getElementById(r[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=s,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),m.makeArray(e,this))}).prototype=m.fn,_=m(s);var k=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(m.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,o=this.length,i=[],a=x.test(e)||"string"!=typeof e?m(e,t||this.context):0;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?m.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?f.call(m(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return w(e,"parentNode")},parentsUntil:function(e,t,n){return w(e,"parentNode",n)},next:function(e){return sibling(e,"nextSibling")},prev:function(e){return sibling(e,"previousSibling")},nextAll:function(e){return w(e,"nextSibling")},prevAll:function(e){return w(e,"previousSibling")},nextUntil:function(e,t,n){return w(e,"nextSibling",n)},prevUntil:function(e,t,n){return w(e,"previousSibling",n)},siblings:function(e){return b((e.parentNode||{}).firstChild,e)},children:function(e){return b(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(n,r){var o=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=m.filter(r,o)),this.length>1&&(S[e]||m.uniqueSort(o),k.test(e)&&o.reverse()),this.pushStack(o)}});var A=/\S+/g;m.Callbacks=function(e){e="string"==typeof e?createOptions(e):m.extend({},e);var t,n,r,o,i=[],a=[],s=-1,u=function(){for(o=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},l={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function add(t){m.each(t,function(t,n){m.isFunction(n)?e.unique&&l.has(n)||i.push(n):n&&n.length&&"string"!==m.type(n)&&add(n)})}(arguments),n&&!t&&u()),this},remove:function(){return m.each(arguments,function(e,t){for(var n;(n=m.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?m.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred(function(n){m.each(t,function(t,i){var a=m.isFunction(e[t])&&e[t];o[i[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?m.extend(e,r):r}},o={};return r.pipe=r.then,m.each(t,function(e,i){var a=i[2],s=i[3];r[i[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),o[i[0]]=function(){return o[i[0]+"With"](this===o?r:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,r,o=0,i=u.call(arguments),a=i.length,s=1!==a||e&&m.isFunction(e.promise)?a:0,l=1===s?e:m.Deferred(),c=function(e,n,r){return function(o){n[e]=this,r[e]=arguments.length>1?u.call(arguments):o,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);o<a;o++)i[o]&&m.isFunction(i[o].promise)?i[o].promise().progress(c(o,n,t)).done(c(o,r,i)).fail(l.reject):--s;return s||l.resolveWith(r,i),l.promise()}});var N;m.fn.ready=function(e){return m.ready.promise().done(e),this},m.extend({isReady:!1,readyWait:1,holdReady:function(e){e?m.readyWait++:m.ready(!0)},ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||(N.resolveWith(s,[m]),m.fn.triggerHandler&&(m(s).triggerHandler("ready"),m(s).off("ready"))))}}),m.ready.promise=function(e){return N||(N=m.Deferred(),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(m.ready):(s.addEventListener("DOMContentLoaded",completed),n.addEventListener("load",completed))),N.promise(e)},m.ready.promise();var D=function(e,t,n,r,o,i,a){var s=0,u=e.length,l=null==n;if("object"===m.type(n)){o=!0;for(s in n)D(e,t,s,n[s],!0,i,a)}else if(void 0!==r&&(o=!0,m.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(m(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:l?t.call(e):u?t(e[0],n):i},P=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};Data.uid=1,Data.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!P(e))return{};var t=e[this.expando];return t||(t={},P(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[t]=n;else for(r in t)o[r]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,m.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,o,i=e[this.expando];if(void 0!==i){if(void 0===t)this.register(e);else{m.isArray(t)?r=t.concat(t.map(m.camelCase)):(o=m.camelCase(t),t in i?r=[t,o]:(r=o,r=r in i?[r]:r.match(A)||[])),n=r.length;for(;n--;)delete i[r[n]]}(void 0===t||m.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!m.isEmptyObject(t)}};var O=new Data,L=new Data,M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/[A-Z]/g;m.extend({hasData:function(e){return L.hasData(e)||O.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return O.access(e,t,n)},_removeData:function(e,t){O.remove(e,t)}}),m.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=L.get(i),1===i.nodeType&&!O.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=m.camelCase(r.slice(5)),dataAttr(i,r,o[r])));O.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){L.set(this,e)}):D(this,function(t){var n,r;if(i&&void 0===t){if(void 0!==(n=L.get(i,e)||L.get(i,e.replace(R,"-$&").toLowerCase())))return n;if(r=m.camelCase(e),void 0!==(n=L.get(i,r)))return n;if(void 0!==(n=dataAttr(i,r,void 0)))return n}else r=m.camelCase(e),this.each(function(){var n=L.get(this,r);L.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}}),m.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=O.get(e,t),n&&(!r||m.isArray(n)?r=O.access(e,t,m.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,o=n.shift(),i=m._queueHooks(e,t),a=function(){m.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,a,i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return O.get(e,n)||O.access(e,n,{empty:m.Callbacks("once memory").add(function(){O.remove(e,[t+"queue",n])})})}}),m.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?m.queue(this[0],e):void 0===t?this:this.each(function(){var n=m.queue(this,e,t);m._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&m.dequeue(this,e)})},dequeue:function(e){return this.each(function(){m.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=m.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=O.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var j=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,F=new RegExp("^(?:([+-])=|)("+j+")([a-z%]*)$","i"),H=["Top","Right","Bottom","Left"],q=function(e,t){return e=t||e,"none"===m.css(e,"display")||!m.contains(e.ownerDocument,e)},B=/^(?:checkbox|radio)$/i,z=/<([\w:-]+)/,I=/^$|\/(?:java|ecma)script/i,W={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};W.optgroup=W.option,W.tbody=W.tfoot=W.colgroup=W.caption=W.thead,W.th=W.td;var U=/<|&#?\w+;/;!function(){var e=s.createDocumentFragment(),t=e.appendChild(s.createElement("div")),n=s.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),g.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var $=/^key/,X=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,V=/^([^.]*)(?:\.(.+)|)/;m.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,l,c,f,d,h,p,g,v=O.get(e);if(v)for(n.handler&&(i=n,n=i.handler,o=i.selector),n.guid||(n.guid=m.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(A)||[""],l=t.length;l--;)s=V.exec(t[l])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h&&(f=m.event.special[h]||{},h=(o?f.delegateType:f.bindType)||h,f=m.event.special[h]||{},c=m.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&m.expr.match.needsContext.test(o),namespace:p.join(".")},i),(d=u[h])||(d=u[h]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,c):d.push(c),m.event.global[h]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,l,c,f,d,h,p,g,v=O.hasData(e)&&O.get(e);if(v&&(u=v.events)){for(t=(t||"").match(A)||[""],l=t.length;l--;)if(s=V.exec(t[l])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h){for(f=m.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=u[h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=d.length;i--;)c=d[i],!o&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(i,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,v.handle)||m.removeEvent(e,h,v.handle),delete u[h])}else for(h in u)m.event.remove(e,h+t[l],n,r,!0);m.isEmptyObject(u)&&O.remove(e,"handle events")}},dispatch:function(e){e=m.event.fix(e);var t,n,r,o,i,a=[],s=u.call(arguments),l=(O.get(this,"events")||{})[e.type]||[],c=m.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=m.event.handlers.call(this,e,l),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(i.namespace)||(e.handleObj=i,e.data=i.data,void 0!==(r=((m.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,o,i,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)i=t[n],o=i.selector+" ",void 0===r[o]&&(r[o]=i.needsContext?m(o,this).index(u)>-1:m.find(o,this,null,[u]).length),r[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail 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 offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,o,i=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||s,r=n.documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[m.expando])return e;var t,n,r,o=e.type,i=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=X.test(o)?this.mouseHooks:$.test(o)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new m.Event(i),t=r.length;t--;)n=r[t],e[n]=i[n];return e.target||(e.target=s),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&m.nodeName(this,"input"))return this.click(),!1},_default:function(e){return m.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},m.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},m.Event=function(e,t){if(!(this instanceof m.Event))return new m.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?returnTrue:returnFalse):this.type=e,t&&m.extend(this,t),this.timeStamp=e&&e.timeStamp||m.now(),this[m.expando]=!0},m.Event.prototype={constructor:m.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){m.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||m.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),m.fn.extend({on:function(e,t,n,r){return on(this,e,t,n,r)},one:function(e,t,n,r){return on(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,m(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=returnFalse),this.each(function(){m.event.remove(this,e,n,t)})}});var Y=/<script|<style|<link/i,K=/checked\s*(?:[^=]|=\s*.checked.)/i,G=/^true\/(.*)/,Q=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;m.extend({htmlPrefilter:function(e){return e.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=m.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(a=getAll(s),i=getAll(e),r=0,o=i.length;r<o;r++)fixInput(i[r],a[r]);if(t)if(n)for(i=i||getAll(e),a=a||getAll(s),r=0,o=i.length;r<o;r++)cloneCopyEvent(i[r],a[r]);else cloneCopyEvent(e,s);return a=getAll(s,"script"),a.length>0&&setGlobalEval(a,!u&&getAll(e,"script")),s},cleanData:function(e){for(var t,n,r,o=m.event.special,i=0;void 0!==(n=e[i]);i++)if(P(n)){if(t=n[O.expando]){if(t.events)for(r in t.events)o[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);n[O.expando]=void 0}n[L.expando]&&(n[L.expando]=void 0)}}}),m.fn.extend({domManip:domManip,detach:function(e){return remove(this,e,!0)},remove:function(e){return remove(this,e)},text:function(e){return D(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return domManip(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){manipulationTarget(this,e).appendChild(e)}})},prepend:function(){return domManip(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=manipulationTarget(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return domManip(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return domManip(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(getAll(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return D(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Y.test(e)&&!W[(z.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(m.cleanData(getAll(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return domManip(this,arguments,function(t){var n=this.parentNode;m.inArray(this,e)<0&&(m.cleanData(getAll(this)),n&&n.replaceChild(t,this))},e)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){m.fn[e]=function(e){for(var n,r=[],o=m(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),m(o[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var J,Z={HTML:"block",BODY:"block"},ee=/^margin/,te=new RegExp("^("+j+")(?!px)[a-z%]+$","i"),ne=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},re=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];o=n.apply(e,r||[]);for(i in t)e.style[i]=a[i];return o},oe=s.documentElement;!function(){function computeStyleTests(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",oe.appendChild(i);var s=n.getComputedStyle(a);e="1%"!==s.top,o="2px"===s.marginLeft,t="4px"===s.width,a.style.marginRight="50%",r="4px"===s.marginRight,oe.removeChild(i)}var e,t,r,o,i=s.createElement("div"),a=s.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===a.style.backgroundClip,i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",i.appendChild(a),m.extend(g,{pixelPosition:function(){return computeStyleTests(),e},boxSizingReliable:function(){return null==t&&computeStyleTests(),t},pixelMarginRight:function(){return null==t&&computeStyleTests(),r},reliableMarginLeft:function(){return null==t&&computeStyleTests(),o},reliableMarginRight:function(){var e,t=a.appendChild(s.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",oe.appendChild(i),e=!parseFloat(n.getComputedStyle(t).marginRight),oe.removeChild(i),a.removeChild(t),e}}))}();var ie=/^(none|table(?!-c[ea]).+)/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"},ue=["Webkit","O","Moz","ms"],le=s.createElement("div").style;m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=curCSS(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=m.camelCase(t),u=e.style;if(t=m.cssProps[s]||(m.cssProps[s]=vendorPropName(s)||s),a=m.cssHooks[t]||m.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:u[t];i=typeof n,"string"===i&&(o=F.exec(n))&&o[1]&&(n=adjustCSS(e,t,o),i="number"),null!=n&&n===n&&("number"===i&&(n+=o&&o[3]||(m.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var o,i,a,s=m.camelCase(t);return t=m.cssProps[s]||(m.cssProps[s]=vendorPropName(s)||s),a=m.cssHooks[t]||m.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=curCSS(e,t,r)),"normal"===o&&t in se&&(o=se[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),m.each(["height","width"],function(e,t){m.cssHooks[t]={get:function(e,n,r){if(n)return ie.test(m.css(e,"display"))&&0===e.offsetWidth?re(e,ae,function(){return getWidthOrHeight(e,t,r)}):getWidthOrHeight(e,t,r)},set:function(e,n,r){var o,i=r&&ne(e),a=r&&augmentWidthOrHeight(e,t,r,"border-box"===m.css(e,"boxSizing",!1,i),i);return a&&(o=F.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=m.css(e,t)),setPositiveNumber(e,n,a)}}}),m.cssHooks.marginLeft=addGetHookIf(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(curCSS(e,"marginLeft"))||e.getBoundingClientRect().left-re(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.cssHooks.marginRight=addGetHookIf(g.reliableMarginRight,function(e,t){if(t)return re(e,{display:"inline-block"},curCSS,[e,"marginRight"])}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+H[r]+t]=i[r]||i[r-2]||i[0];return o}},ee.test(e)||(m.cssHooks[e+t].set=setPositiveNumber)}),m.fn.extend({css:function(e,t){return D(this,function(e,t,n){var r,o,i={},a=0;if(m.isArray(t)){for(r=ne(e),o=t.length;a<o;a++)i[t[a]]=m.css(e,t[a],!1,r);return i}return void 0!==n?m.style(e,t,n):m.css(e,t)},e,t,arguments.length>1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){q(this)?m(this).show():m(this).hide()})}}),m.Tween=Tween,Tween.prototype={constructor:Tween,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||m.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(m.cssNumber[n]?"":"px")},cur:function(){var e=Tween.propHooks[this.prop];return e&&e.get?e.get(this):Tween.propHooks._default.get(this)},run:function(e){var t,n=Tween.propHooks[this.prop];return this.options.duration?this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop]?e.elem[e.prop]=e.now:m.style(e.elem,e.prop,e.now+e.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},m.fx=Tween.prototype.init,m.fx.step={};var ce,fe,de=/^(?:toggle|show|hide)$/,he=/queueHooks$/;m.Animation=m.extend(Animation,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return adjustCSS(n.elem,e,F.exec(t),n),n}]},tweener:function(e,t){m.isFunction(e)?(t=e,e=["*"]):e=e.match(A);for(var n,r=0,o=e.length;r<o;r++)n=e[r],Animation.tweeners[n]=Animation.tweeners[n]||[],Animation.tweeners[n].unshift(t)},prefilters:[defaultPrefilter],prefilter:function(e,t){t?Animation.prefilters.unshift(e):Animation.prefilters.push(e)}}),m.speed=function(e,t,n){var r=e&&"object"==typeof e?m.extend({},e):{complete:n||!n&&t||m.isFunction(e)&&e,duration:e,easing:n&&t||t&&!m.isFunction(t)&&t};return r.duration=m.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in m.fx.speeds?m.fx.speeds[r.duration]:m.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m.isFunction(r.old)&&r.old.call(this),r.queue&&m.dequeue(this,r.queue)},r},m.fn.extend({fadeTo:function(e,t,n,r){return this.filter(q).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=m.isEmptyObject(e),i=m.speed(t,n,r),a=function(){var t=Animation(this,m.extend({},e),i);(o||O.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=m.timers,a=O.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&he.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||m.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=O.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=m.timers,a=r?r.length:0;for(n.finish=!0,m.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),m.each(["toggle","show","hide"],function(e,t){var n=m.fn[t];m.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(genFx(t,!0),e,r,o)}}),m.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){m.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),m.timers=[],m.fx.tick=function(){var e,t=0,n=m.timers;for(ce=m.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||m.fx.stop(),ce=void 0},m.fx.timer=function(e){m.timers.push(e),e()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){fe||(fe=n.setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){n.clearInterval(fe),fe=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(e,t){return e=m.fx?m.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}})},function(){var e=s.createElement("input"),t=s.createElement("select"),n=t.appendChild(s.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=n.selected,t.disabled=!0,g.optDisabled=!n.disabled,e=s.createElement("input"),e.value="t",e.type="radio",g.radioValue="t"===e.value}();var pe,ge=m.expr.attrHandle;m.fn.extend({attr:function(e,t){return D(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}}),m.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?m.prop(e,t,n):(1===i&&m.isXMLDoc(e)||(t=t.toLowerCase(),o=m.attrHooks[t]||(m.expr.match.bool.test(t)?pe:void 0)),void 0!==n?null===n?void m.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:(r=m.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,o=0,i=t&&t.match(A);if(i&&1===e.nodeType)for(;n=i[o++];)r=m.propFix[n]||n,m.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),pe={set:function(e,t,n){return!1===t?m.removeAttr(e,n):e.setAttribute(n,n),n}},m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ge[t]||m.find.attr;ge[t]=function(e,t,r){var o,i;return r||(i=ge[t],ge[t]=o,o=null!=n(e,t,r)?t.toLowerCase():null,ge[t]=i),o}});var me=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;m.fn.extend({prop:function(e,t){return D(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[m.propFix[e]||e]})}}),m.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&m.isXMLDoc(e)||(t=m.propFix[t]||t,o=m.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):me.test(e.nodeName)||ve.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});m.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).addClass(e.call(this,t,getClass(this)))});if("string"==typeof e&&e)for(t=e.match(A)||[];n=this[u++];)if(o=getClass(n),r=1===n.nodeType&&(" "+o+" ").replace(/[\t\r\n\f]/g," ")){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=m.trim(r),o!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).removeClass(e.call(this,t,getClass(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(A)||[];n=this[u++];)if(o=getClass(n),r=1===n.nodeType&&(" "+o+" ").replace(/[\t\r\n\f]/g," ")){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");s=m.trim(r),o!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each(function(n){m(this).toggleClass(e.call(this,n,getClass(this),t),t)}):this.each(function(){var t,r,o,i;if("string"===n)for(r=0,o=m(this),i=e.match(A)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||(t=getClass(this),t&&O.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":O.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+getClass(n)+" ").replace(/[\t\r\n\f]/g," ").indexOf(t)>-1)return!0;return!1}});m.fn.extend({val:function(e){var t,n,r,o=this[0];{if(arguments.length)return r=m.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=r?e.call(this,n,m(this).val()):e,null==o?o="":"number"==typeof o?o+="":m.isArray(o)&&(o=m.map(o,function(e){return null==e?"":e+""})),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))});if(o)return(t=m.valHooks[o.type]||m.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(/\r/g,""):null==n?"":n)}}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:m.trim(m.text(e)).replace(/[\x20\t\r\n\f]+/g," ")}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type||o<0,a=i?null:[],s=i?o+1:r.length,u=o<0?s:i?o:0;u<s;u++)if(n=r[u],(n.selected||u===o)&&(g.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(t=m(n).val(),i)return t;a.push(t)}return a},set:function(e,t){for(var n,r,o=e.options,i=m.makeArray(t),a=o.length;a--;)r=o[a],(r.selected=m.inArray(m.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t))return e.checked=m.inArray(m(e).val(),t)>-1}},g.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ye=/^(?:focusinfocus|focusoutblur)$/;m.extend(m.event,{trigger:function(e,t,r,o){var i,a,u,l,c,f,d,h=[r||s],g=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(a=u=r=r||s,3!==r.nodeType&&8!==r.nodeType&&!ye.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,e=e[m.expando]?e:new m.Event(g,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:m.makeArray(t,[e]),d=m.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(r,t))){if(!o&&!d.noBubble&&!m.isWindow(r)){for(l=d.delegateType||g,ye.test(l+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||s)&&h.push(u.defaultView||u.parentWindow||n)}for(i=0;(a=h[i++])&&!e.isPropagationStopped();)e.type=i>1?l:d.bindType||g,f=(O.get(a,"events")||{})[e.type]&&O.get(a,"handle"),f&&f.apply(a,t),(f=c&&a[c])&&f.apply&&P(a)&&(e.result=f.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!P(r)||c&&m.isFunction(r[g])&&!m.isWindow(r)&&(u=r[c],u&&(r[c]=null),m.event.triggered=g,r[g](),m.event.triggered=void 0,u&&(r[c]=u)),e.result}},simulate:function(e,t,n){var r=m.extend(new m.Event,n,{type:e,isSimulated:!0});m.event.trigger(r,null,t)}}),m.fn.extend({trigger:function(e,t){return this.each(function(){m.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return m.event.trigger(e,t,n,!0)}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),g.focusin="onfocusin"in n,g.focusin||m.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){m.event.simulate(t,e.target,m.event.fix(e))};m.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=O.access(r,t);o||r.addEventListener(e,n,!0),O.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=O.access(r,t)-1;o?O.access(r,t,o):(r.removeEventListener(e,n,!0),O.remove(r,t))}}});var we=n.location,be=m.now(),xe=/\?/;m.parseJSON=function(e){return JSON.parse(e+"")},m.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+e),t};var Te=/([?&])_=[^&]*/,Ce=/^(.*?):[ \t]*([^\r\n]*)$/gm,_e=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ee=/^(?:GET|HEAD)$/,ke={},Se={},Ae="*/".concat("*"),Ne=s.createElement("a");Ne.href=we.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:_e.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ae,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ajaxExtend(ajaxExtend(e,m.ajaxSettings),t):ajaxExtend(m.ajaxSettings,e)},ajaxPrefilter:addToPrefiltersOrTransports(ke),ajaxTransport:addToPrefiltersOrTransports(Se),ajax:function(e,t){function done(e,t,a,s){var l,f,w,b,T,_=t;2!==x&&(x=2,u&&n.clearTimeout(u),r=void 0,i=s||"",C.readyState=e>0?4:0,l=e>=200&&e<300||304===e,a&&(b=ajaxHandleResponses(d,C,a)),b=ajaxConvert(d,b,C,l),l?(d.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(m.lastModified[o]=T),(T=C.getResponseHeader("etag"))&&(m.etag[o]=T)),204===e||"HEAD"===d.type?_="nocontent":304===e?_="notmodified":(_=b.state,f=b.data,w=b.error,l=!w)):(w=_,!e&&_||(_="error",e<0&&(e=0))),C.status=e,C.statusText=(t||_)+"",l?g.resolveWith(h,[f,_,C]):g.rejectWith(h,[C,_,w]),C.statusCode(y),y=void 0,c&&p.trigger(l?"ajaxSuccess":"ajaxError",[C,d,l?f:w]),v.fireWith(h,[C,_]),c&&(p.trigger("ajaxComplete",[C,d]),--m.active||m.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,a,u,l,c,f,d=m.ajaxSetup({},t),h=d.context||d,p=d.context&&(h.nodeType||h.jquery)?m(h):m.event,g=m.Deferred(),v=m.Callbacks("once memory"),y=d.statusCode||{},w={},b={},x=0,T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!a)for(a={};t=Ce.exec(i);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,w[e]=t),this},overrideMimeType:function(e){return x||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)y[t]=[y[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||T;return r&&r.abort(t),done(0,t),this}};if(g.promise(C).complete=v.add,C.success=C.done,C.error=C.fail,d.url=((e||d.url||we.href)+"").replace(/#.*$/,"").replace(/^\/\//,we.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=m.trim(d.dataType||"*").toLowerCase().match(A)||[""],null==d.crossDomain){l=s.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Ne.protocol+"//"+Ne.host!=l.protocol+"//"+l.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=m.param(d.data,d.traditional)),inspectPrefiltersOrTransports(ke,d,t,C),2===x)return C;c=m.event&&d.global,c&&0==m.active++&&m.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ee.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(xe.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=Te.test(o)?o.replace(Te,"$1_="+be++):o+(xe.test(o)?"&":"?")+"_="+be++)),d.ifModified&&(m.lastModified[o]&&C.setRequestHeader("If-Modified-Since",m.lastModified[o]),m.etag[o]&&C.setRequestHeader("If-None-Match",m.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ae+"; q=0.01":""):d.accepts["*"]);for(f in d.headers)C.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,C,d)||2===x))return C.abort();T="abort";for(f in{success:1,error:1,complete:1})C[f](d[f]);if(r=inspectPrefiltersOrTransports(Se,d,t,C)){if(C.readyState=1,c&&p.trigger("ajaxSend",[C,d]),2===x)return C;d.async&&d.timeout>0&&(u=n.setTimeout(function(){C.abort("timeout")},d.timeout));try{x=1,r.send(w,done)}catch(e){if(!(x<2))throw e;done(-1,e)}}else done(-1,"No Transport");return C},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,o){return m.isFunction(n)&&(o=o||r,r=n,n=void 0),m.ajax(m.extend({url:e,type:t,dataType:o,data:n,success:r},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){var t;return m.isFunction(e)?this.each(function(t){m(this).wrapAll(e.call(this,t))}):(this[0]&&(t=m(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(e){return!m.expr.filters.visible(e)},m.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var De=/\[\]$/,Pe=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;m.param=function(e,t){var n,r=[],o=function(e,t){t=m.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){o(this.name,this.value)});else for(n in e)buildParams(n,e[n],t,o);return r.join("&").replace(/%20/g,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&Oe.test(this.nodeName)&&!Pe.test(e)&&(this.checked||!B.test(e))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(/\r?\n/g,"\r\n")}}):{name:t.name,value:n.replace(/\r?\n/g,"\r\n")}}).get()}}),m.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Le={0:200,1223:204},Me=m.ajaxSettings.xhr();g.cors=!!Me&&"withCredentials"in Me,g.ajax=Me=!!Me,m.ajaxTransport(function(e){var t,r;if(g.cors||Me&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(a in o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Le[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,o){t=m("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Re=[],je=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Re.pop()||m.expando+"_"+be++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(je.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&je.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=m.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(je,"$1"+o):!1!==e.jsonp&&(e.url+=(xe.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||m.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always(function(){void 0===i?m(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,Re.push(o)),a&&m.isFunction(i)&&i(a[0]),a=i=void 0}),"script"}),m.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||s;var r=T.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=buildFragment([e],t,o),o&&o.length&&m(o).remove(),m.merge([],r.childNodes))};var Fe=m.fn.load;m.fn.load=function(e,t,n){if("string"!=typeof e&&Fe)return Fe.apply(this,arguments);var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=m.trim(e.slice(s)),e=e.slice(0,s)),m.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&m.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?m("<div>").append(m.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.filters.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,l,c=m.css(e,"position"),f=m(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),i=m.css(e,"top"),u=m.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(i+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),m.isFunction(t)&&(t=t.call(e,n,m.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):f.css(d)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,n,r=this[0],o={top:0,left:0},i=r&&r.ownerDocument;if(i)return t=i.documentElement,m.contains(t,r)?(o=r.getBoundingClientRect(),n=getWindow(i),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===m.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(r=e.offset()),r.top+=m.css(e[0],"borderTopWidth",!0),r.left+=m.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-m.css(n,"marginTop",!0),left:t.left-r.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===m.css(e,"position");)e=e.offsetParent;return e||oe})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;m.fn[e]=function(r){return D(this,function(e,r,o){var i=getWindow(e);if(void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=addGetHookIf(g.pixelPosition,function(e,n){if(n)return n=curCSS(e,t),te.test(n)?m(e).position()[t]+"px":n})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){m.fn[r]=function(r,o){var i=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return D(this,function(t,n,r){var o;return m.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?m.css(t,n,a):m.style(t,n,r,a)},t,i?r:void 0,i,null)}})}),m.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),m.fn.andSelf=m.fn.addBack,r=[],void 0!==(o=function(){return m}.apply(t,r))&&(e.exports=o);var He=n.jQuery,qe=n.$;return m.noConflict=function(e){return n.$===m&&(n.$=qe),e&&n.jQuery===m&&(n.jQuery=He),m},i||(n.jQuery=n.$=m),m})},function(e,t,n){"use strict";(function(e){function escapeHtml(e){return String(e).replace(/[&<>"'\/]/g,function(e){return i[e]})}function mousePosition(t){var n=e.document.body,o={top:0,left:0};return"static"!==r(n).css("position")&&(o=r(n).offset()),{top:t.pageY-o.top,left:t.pageX-o.left}}var r=n(0),o=n(17).Promise,i={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},a=function(){if("function"==typeof e.Gettext){var t=new e.Gettext({domain:"annotator"});return function(e){return t.gettext(e)}}return function(e){return e}}();t.$=r,t.Promise=o,t.gettext=a,t.escapeHtml=escapeHtml,t.mousePosition=mousePosition}).call(t,n(2))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){function Widget(e){this.element=i(this.constructor.template),this.classes=i.extend({},Widget.classes,this.constructor.classes),this.options=i.extend({},Widget.options,this.constructor.options,e),this.extensionsInstalled=!1}var r=n(16),o=n(1),i=o.$;Widget.prototype.destroy=function(){this.element.remove()},Widget.prototype.installExtensions=function(){if(this.options.extensions)for(var e=0,t=this.options.extensions.length;e<t;e++){var n=this.options.extensions[e];n(this)}},Widget.prototype._maybeInstallExtensions=function(){this.extensionsInstalled||(this.extensionsInstalled=!0,this.installExtensions())},Widget.prototype.attach=function(){this.element.appendTo(this.options.appendTo),this._maybeInstallExtensions()},Widget.prototype.show=function(){this.element.removeClass(this.classes.hide),this.checkOrientation()},Widget.prototype.hide=function(){i(this.element).addClass(this.classes.hide)},Widget.prototype.isShown=function(){return!i(this.element).hasClass(this.classes.hide)},Widget.prototype.checkOrientation=function(){this.resetOrientation();var t=i(e),n=this.element.children(":first"),r=n.offset(),o={top:t.scrollTop(),right:t.width()+t.scrollLeft()},a={top:r.top,right:r.left+n.width()};return a.top-o.top<0&&this.invertY(),a.right-o.right>0&&this.invertX(),this},Widget.prototype.resetOrientation=function(){return this.element.removeClass(this.classes.invert.x).removeClass(this.classes.invert.y),this},Widget.prototype.invertX=function(){return this.element.addClass(this.classes.invert.x),this},Widget.prototype.invertY=function(){return this.element.addClass(this.classes.invert.y),this},Widget.prototype.isInvertedY=function(){return this.element.hasClass(this.classes.invert.y)},Widget.prototype.isInvertedX=function(){return this.element.hasClass(this.classes.invert.x)},Widget.classes={hide:"annotator-hide",invert:{x:"annotator-invert-x",y:"annotator-invert-y"}},Widget.template="<div></div>",Widget.options={appendTo:"body"},Widget.extend=r,t.Widget=Widget}).call(t,n(2))},function(e,t,n){var r;!function(o,i,a){function _addEvent(e,t,n){if(e.addEventListener)return void e.addEventListener(t,n,!1);e.attachEvent("on"+t,n)}function _characterFromEvent(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return u[e.which]?u[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function _modifiersMatch(e,t){return e.sort().join(",")===t.sort().join(",")}function _eventModifiers(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 _preventDefault(e){if(e.preventDefault)return void e.preventDefault();e.returnValue=!1}function _stopPropagation(e){if(e.stopPropagation)return void e.stopPropagation();e.cancelBubble=!0}function _isModifier(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function _getReverseMap(){if(!s){s={};for(var e in u)e>95&&e<112||u.hasOwnProperty(e)&&(s[u[e]]=e)}return s}function _pickBestAction(e,t,n){return n||(n=_getReverseMap()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function _keysFromString(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function _getKeyInfo(e,t){var n,r,o,i=[];for(n=_keysFromString(e),o=0;o<n.length;++o)r=n[o],f[r]&&(r=f[r]),t&&"keypress"!=t&&c[r]&&(r=c[r],i.push("shift")),_isModifier(r)&&i.push(r);return t=_pickBestAction(r,i,t),{key:r,modifiers:i,action:t}}function _belongsTo(e,t){return null!==e&&e!==i&&(e===t||_belongsTo(e.parentNode,t))}function Mousetrap(e){function _resetSequences(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function _getMatches(e,n,o,i,a,s){var u,l,c=[],f=o.type;if(!t._callbacks[e])return[];for("keyup"==f&&_isModifier(e)&&(n=[e]),u=0;u<t._callbacks[e].length;++u)if(l=t._callbacks[e][u],(i||!l.seq||r[l.seq]==l.level)&&f==l.action&&("keypress"==f&&!o.metaKey&&!o.ctrlKey||_modifiersMatch(n,l.modifiers))){var d=!i&&l.combo==a,h=i&&l.seq==i&&l.level==s;(d||h)&&t._callbacks[e].splice(u,1),c.push(l)}return c}function _fireCallback(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(_preventDefault(n),_stopPropagation(n))}function _handleKeyEvent(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=_characterFromEvent(e);if(n)return"keyup"==e.type&&o===n?void(o=!1):void t.handleKey(n,_eventModifiers(e),e)}function _resetSequenceTimer(){clearTimeout(n),n=setTimeout(_resetSequences,1e3)}function _bindSequence(e,t,n,i){function _callbackAndReset(t){_fireCallback(n,t,e),"keyup"!==i&&(o=_characterFromEvent(t)),setTimeout(_resetSequences,10)}r[e]=0;for(var a=0;a<t.length;++a){var u=a+1===t.length,l=u?_callbackAndReset:function(t){return function(){s=t,++r[e],_resetSequenceTimer()}}(i||_getKeyInfo(t[a+1]).action);_bindSingle(t[a],l,i,e,a)}}function _bindSingle(e,n,r,o,i){t._directMap[e+":"+r]=n,e=e.replace(/\s+/g," ");var a,s=e.split(" ");if(s.length>1)return void _bindSequence(e,s,n,r);a=_getKeyInfo(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],_getMatches(a.key,a.modifiers,{type:a.action},o,e,i),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e})}var t=this;if(e=e||i,!(t instanceof Mousetrap))return new Mousetrap(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,a=!1,s=!1;t._handleKey=function(e,t,n){var r,o=_getMatches(e,t,n),i={},u=0,l=!1;for(r=0;r<o.length;++r)o[r].seq&&(u=Math.max(u,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=u)continue;l=!0,i[o[r].seq]=1,_fireCallback(o[r].callback,n,o[r].combo,o[r].seq)}else l||_fireCallback(o[r].callback,n,o[r].combo);var c="keypress"==n.type&&a;n.type!=s||_isModifier(e)||c||_resetSequences(i),a=l&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)_bindSingle(e[r],t,n)},_addEvent(e,"keypress",_handleKeyEvent),_addEvent(e,"keydown",_handleKeyEvent),_addEvent(e,"keyup",_handleKeyEvent)}if(o){for(var s,u={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"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)u[111+d]="f"+d;for(d=0;d<=9;++d)u[d+96]=d.toString();Mousetrap.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},Mousetrap.prototype.unbind=function(e,t){var n=this;return n.bind.call(n,e,function(){},t)},Mousetrap.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},Mousetrap.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},Mousetrap.prototype.stopCallback=function(e,t){var n=this;return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&(!_belongsTo(t,n.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable))},Mousetrap.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},Mousetrap.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(u[t]=e[t]);s=null},Mousetrap.init=function(){var e=Mousetrap(i);for(var t in e)"_"!==t.charAt(0)&&(Mousetrap[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},Mousetrap.init(),o.Mousetrap=Mousetrap,void 0!==e&&e.exports&&(e.exports=Mousetrap),void 0!==(r=function(){return Mousetrap}.call(t,n,t,e))&&(e.exports=r)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(e,t,n){"use strict";var r;t.acl=function(){var e=new r;return{configure:function(t){t.registerUtility(e,"authorizationPolicy")}}},r=t.AclAuthzPolicy=function(){},r.prototype.permits=function(e,t,n){var r=this.authorizedUserId(n),o=t.permissions;if(o){var i=o[e];if(void 0===i||null===i)return!0;for(var a=0,s=i.length;a<s;a++)if(r===i[a])return!0;return!1}return!t.user||r===t.user},r.prototype.authorizedUserId=function(e){return e}},function(e,t,n){"use strict";var r;t.simple=function(){var e=new r;return{configure:function(t){t.registerUtility(e,"identityPolicy")},beforeAnnotationCreated:function(t){t.user=e.who()}}},r=function(){this.identity=null},t.SimpleIdentityPolicy=r,r.prototype.who=function(){return this.identity}},function(e,t,n){"use strict";(function(e){function banner(t,n){void 0!==n&&null!==n||(n=i);var u=o(a)[0],l=!1,c=function(){l||(l=!0,o(u).removeClass(s.show).removeClass(s[n]),setTimeout(function(){o(u).remove()},500))};return o(u).addClass(s.show).addClass(s[n]).html(r.escapeHtml(t||"")).appendTo(e.document.body),o(u).on("click",c),setTimeout(c,5e3),{close:c}}var r=n(1),o=r.$,i="info",a="<div class='annotator-notice'></div>",s={show:"annotator-notice-show",info:"annotator-notice-info",success:"annotator-notice-success",error:"annotator-notice-error"};t.banner=banner,t.defaultNotifier=banner,t.INFO=i,t.SUCCESS="success",t.ERROR="error"}).call(t,n(2))},function(e,t,n){"use strict";function StorageAdapter(e,t){this.store=e,this.runHook=t}var r=n(1),o=r.$,i=r.gettext,a=r.Promise,s=function(){var e;return e=-1,function(){return e+=1}}();t.debug=function(){function trace(e,t){var n=JSON.parse(JSON.stringify(t));console.debug("annotator.storage.debug: "+e,n)}return{create:function(e){return e.id=s(),trace("create",e),e},update:function(e){return trace("update",e),e},delete:function(e){return trace("destroy",e),e},query:function(e){return trace("query",e),{results:[],meta:{total:0}}},configure:function(e){e.registerUtility(this,"storage")}}},t.noop=function(){return{create:function(e){return void 0!==e.id&&null!==e.id||(e.id=s()),e},update:function(e){return e},delete:function(e){return e},query:function(){return{results:[]}},configure:function(e){e.registerUtility(this,"storage")}}};var u;t.http=function(e){var t=function(){};void 0!==e&&null!==e||(e={}),e.onError=e.onError||function(e,n){console.error(e,n),t(e,"error")};var n=new u(e);return{configure:function(e){e.registerUtility(n,"storage")},start:function(e){t=e.notify}}},u=t.HttpStorage=function HttpStorage(e){this.options=o.extend(!0,{},HttpStorage.options,e),this.onError=this.options.onError},u.prototype.create=function(e){return this._apiRequest("create",e)},u.prototype.update=function(e){return this._apiRequest("update",e)},u.prototype.delete=function(e){return this._apiRequest("destroy",e)},u.prototype.query=function(e){return this._apiRequest("search",e).then(function(e){var t=e.rows;return delete e.rows,{results:t,meta:e}})},u.prototype.setHeader=function(e,t){this.options.headers[e]=t},u.prototype._apiRequest=function(e,t){var n=t&&t.id,r=this._urlFor(e,n),i=this._apiRequestOptions(e,t),a=o.ajax(r,i);return a._id=n,a._action=e,a},u.prototype._apiRequestOptions=function(e,t){var n=this._methodFor(e),r=this,i={type:n,dataType:"json",error:function(){r._onError.apply(r,arguments)},headers:this.options.headers};if(!this.options.emulateHTTP||"PUT"!==n&&"DELETE"!==n||(i.headers=o.extend(i.headers,{"X-HTTP-Method-Override":n}),i.type="POST"),"search"===e)return i=o.extend(i,{data:t});var a=t&&JSON.stringify(t);return this.options.emulateJSON?(i.data={json:a},this.options.emulateHTTP&&(i.data._method=n),i):i=o.extend(i,{data:a,contentType:"application/json; charset=utf-8"})},u.prototype._urlFor=function(e,t){void 0!==t&&null!==t||(t="");var n="";return void 0!==this.options.prefix&&null!==this.options.prefix&&(n=this.options.prefix),n+=this.options.urls[e],n=n.replace(/idAnnotation/,t)},u.prototype._methodFor=function(e){return{create:"POST",update:"PUT",destroy:"DELETE",search:"GET"}[e]},u.prototype._onError=function(e){if("function"==typeof this.onError){var t;t=i(400===e.status?"The annotation store did not understand the request! (Error 400)":401===e.status?"You must be logged in to perform this operation! (Error 401)":403===e.status?"You don't have permission to perform this operation! (Error 403)":404===e.status?"Could not connect to the annotation store! (Error 404)":500===e.status?"Internal error in annotation store! (Error 500)":"Unknown error while speaking to annotation store!"),this.onError(t,e)}},u.options={emulateHTTP:!1,emulateJSON:!1,headers:{},onError:function(e){console.error("API request failed: "+e)},prefix:"/store",urls:{create:"/annotations",update:"/annotations/idAnnotation",destroy:"/annotations/idAnnotation",search:"/search"}},StorageAdapter.prototype.create=function(e){return void 0!==e&&null!==e||(e={}),this._cycle(e,"create","beforeAnnotationCreated","annotationCreated")},StorageAdapter.prototype.update=function(e){if(void 0===e.id||null===e.id)throw new TypeError("annotation must have an id for update()");return this._cycle(e,"update","beforeAnnotationUpdated","annotationUpdated")},StorageAdapter.prototype.delete=function(e){if(void 0===e.id||null===e.id)throw new TypeError("annotation must have an id for delete()");return this._cycle(e,"delete","beforeAnnotationDeleted","annotationDeleted")},StorageAdapter.prototype.query=function(e){return a.resolve(this.store.query(e))},StorageAdapter.prototype.load=function(e){var t=this;return this.query(e).then(function(e){t.runHook("annotationsLoaded",[e.results])})},StorageAdapter.prototype._cycle=function(e,t,n,r){var i=this;return this.runHook(n,[e]).then(function(){var n=o.extend(!0,{},e);delete n._local;var r=i.store[t](n);return a.resolve(r)}).then(function(t){for(var n in e)e.hasOwnProperty(n)&&"_local"!==n&&delete e[n];return o.extend(e,t),i.runHook(r,[e]),e})},t.StorageAdapter=StorageAdapter},function(e,t,n){"use strict";var r=n(3).Widget,o=n(1),i=o.$,a=o.gettext,s="annotator-adder",u=r.extend({constructor:function(e){r.call(this,e),this.ignoreMouseup=!1,this.annotation=null,this.onCreate=this.options.onCreate;var t=this;this.element.on("click."+s,"button",function(e){t._onClick(e)}).on("mousedown."+s,"button",function(e){t._onMousedown(e)}),this.document=this.element[0].ownerDocument,i(this.document.body).on("mouseup."+s,function(e){t._onMouseup(e)})},destroy:function(){this.element.off("."+s),i(this.document.body).off("."+s),r.prototype.destroy.call(this)},load:function(e,t){this.annotation=e,this.show(t)},show:function(e){void 0!==e&&null!==e&&this.element.css({top:e.top,left:e.left}),r.prototype.show.call(this)},_onMousedown:function(e){e.which>1||(e.preventDefault(),this.ignoreMouseup=!0)},_onMouseup:function(e){e.which>1||this.ignoreMouseup&&e.stopImmediatePropagation()},_onClick:function(e){e.which>1||(e.preventDefault(),this.hide(),this.ignoreMouseup=!1,null!==this.annotation&&"function"==typeof this.onCreate&&this.onCreate(this.annotation,e))}});u.template=['<div class="annotator-adder annotator-hide">',' <button type="button">'+a("Annotate")+"</button>","</div>"].join("\n"),u.options={onCreate:null},t.Adder=u},function(e,t,n){"use strict";function preventEventDefault(e){void 0!==e&&null!==e&&"function"==typeof e.preventDefault&&e.preventDefault()}var r=n(3).Widget,o=n(1),i=o.$,a=o.gettext,s=o.Promise,u="annotator-editor",l=function(){var e;return e=-1,function(){return e+=1}}(),c=t.dragTracker=function(e,t){function mouseMove(e){if(!r&&null!==n){var o={y:e.pageY-n.top,x:e.pageX-n.left},i=!0;"function"==typeof t&&(i=t(o)),!1!==i&&(n={top:e.pageY,left:e.pageX}),r=!0,setTimeout(function(){r=!1},1e3/60)}}function mouseUp(){n=null,i(e.ownerDocument).off("mouseup",mouseUp).off("mousemove",mouseMove)}function mouseDown(t){t.target===e&&(n={top:t.pageY,left:t.pageX},i(e.ownerDocument).on("mouseup",mouseUp).on("mousemove",mouseMove),t.preventDefault())}function destroy(){i(e).off("mousedown",mouseDown)}var n=null,r=!1;return i(e).on("mousedown",mouseDown),{destroy:destroy}},f=t.resizer=function(e,t,n){function translate(e){var t=1,r=-1;return"function"==typeof n.invertedX&&n.invertedX()&&(t=-1),"function"==typeof n.invertedY&&n.invertedY()&&(r=1),{x:e.x*t,y:e.y*r}}function resize(e){var t=r.height(),n=r.width(),o=translate(e);return Math.abs(o.x)>0&&r.width(n+o.x),Math.abs(o.y)>0&&r.height(t+o.y),r.height()!==t||r.width()!==n}var r=i(e);return void 0!==n&&null!==n||(n={}),c(t,resize)},d=t.mover=function(e,t){function move(t){i(e).css({top:parseInt(i(e).css("top"),10)+t.y,left:parseInt(i(e).css("left"),10)+t.x})}return c(t,move)},h=t.Editor=r.extend({constructor:function(e){r.call(this,e),this.fields=[],this.annotation={},this.options.defaultFields&&this.addField({type:"textarea",label:a("Comments")+"…",load:function(e,t){i(e).find("textarea").val(t.text||"")},submit:function(e,t){t.text=i(e).find("textarea").val()}});var t=this;this.element.on("submit."+u,"form",function(e){t._onFormSubmit(e)}).on("click."+u,".annotator-save",function(e){t._onSaveClick(e)}).on("click."+u,".annotator-cancel",function(e){t._onCancelClick(e)}).on("mouseover."+u,".annotator-cancel",function(e){t._onCancelMouseover(e)}).on("keydown."+u,"textarea",function(e){t._onTextareaKeydown(e)})},destroy:function(){this.element.off("."+u),r.prototype.destroy.call(this)},show:function(e){void 0!==e&&null!==e&&this.element.css({top:e.top,left:e.left}),this.element.find(".annotator-save").addClass(this.classes.focus),r.prototype.show.call(this),this.element.find(":input:first").focus(),this._setupDraggables()},load:function(e,t){this.annotation=e;for(var n=0,r=this.fields.length;n<r;n++){var o=this.fields[n];o.load(o.element,this.annotation)}var i=this;return new s(function(e,n){i.dfd={resolve:e,reject:n},i.show(t)})},submit:function(){for(var e=0,t=this.fields.length;e<t;e++){var n=this.fields[e];n.submit(n.element,this.annotation)}void 0!==this.dfd&&null!==this.dfd&&this.dfd.resolve(),this.hide()},cancel:function(){void 0!==this.dfd&&null!==this.dfd&&this.dfd.reject("editing cancelled"),this.hide()},addField:function(e){var t=i.extend({id:"annotator-field-"+l(),type:"input",label:"",load:function(){},submit:function(){}},e),n=null,r=i('<li class="annotator-item" />');return t.element=r[0],"textarea"===t.type?n=i("<textarea />"):"checkbox"===t.type?n=i('<input type="checkbox" />'):"input"===t.type?n=i("<input />"):"select"===t.type&&(n=i("<select />")),r.append(n),n.attr({id:t.id,placeholder:t.label}),"checkbox"===t.type&&(r.addClass("annotator-checkbox"),r.append(i("<label />",{for:t.id,html:t.label}))),this.element.find("ul:first").append(r),this.fields.push(t),t.element},checkOrientation:function(){r.prototype.checkOrientation.call(this);var e=this.element.find("ul").first(),t=this.element.find(".annotator-controls");return this.element.hasClass(this.classes.invert.y)?t.insertBefore(e):t.is(":first-child")&&t.insertAfter(e),this},_onFormSubmit:function(e){preventEventDefault(e),this.submit()},_onSaveClick:function(e){preventEventDefault(e),this.submit()},_onCancelClick:function(e){preventEventDefault(e),this.cancel()},_onCancelMouseover:function(){this.element.find("."+this.classes.focus).removeClass(this.classes.focus)},_onTextareaKeydown:function(e){27===e.which?this.cancel():13!==e.which||e.shiftKey||this.submit()},_setupDraggables:function(){void 0!==this._resizer&&null!==this._resizer&&this._resizer.destroy(),void 0!==this._mover&&null!==this._mover&&this._mover.destroy(),this.element.find(".annotator-resize").remove();var e;(e=this.element.hasClass(this.classes.invert.y)?this.element.find(".annotator-item:last"):this.element.find(".annotator-item:first"))&&i('<span class="annotator-resize"></span>').appendTo(e);var t=this.element.find(".annotator-controls")[0],n=this.element.find("textarea:first")[0],r=this.element.find(".annotator-resize")[0],o=this;this._resizer=f(n,r,{invertedX:function(){return o.element.hasClass(o.classes.invert.x)},invertedY:function(){return o.element.hasClass(o.classes.invert.y)}}),this._mover=d(this.element[0],t)}});h.classes={hide:"annotator-hide",focus:"annotator-focus"},h.template=['<div class="annotator-outer annotator-editor annotator-hide">',' <form class="annotator-widget">',' <ul class="annotator-listing"></ul>',' <div class="annotator-controls">',' <a href="#cancel" class="annotator-cancel">'+a("Cancel")+"</a>",' <a href="#save"',' class="annotator-save annotator-focus">'+a("Save")+"</a>"," </div>"," </form>","</div>"].join("\n"),h.options={defaultFields:!0},t.standalone=function(e){var n=new t.Editor(e);return{destroy:function(){n.destroy()},beforeAnnotationCreated:function(e){return n.load(e)},beforeAnnotationUpdated:function(e){return n.load(e)}}}},function(e,t,n){"use strict";(function(e){function highlightRange(t,n){void 0!==n&&null!==n||(n="annotator-hl");for(var r=/^\s*$/,o=t.textNodes(),i=[],a=0,s=o.length;a<s;a++){var u=o[a];if(!r.test(u.nodeValue)){var l=e.document.createElement("span");l.className=n,u.parentNode.replaceChild(l,u),l.appendChild(u),i.push(l)}}return i}function reanchorRange(e,t){try{return r.Range.sniff(e).normalize(t)}catch(e){if(!(e instanceof r.Range.RangeError))throw e}return null}var r=n(18),o=n(1),i=o.$,a=o.Promise,s=t.Highlighter=function Highlighter(e,t){this.element=e,this.options=i.extend(!0,{},Highlighter.options,t)};s.prototype.destroy=function(){i(this.element).find("."+this.options.highlightClass).each(function(e,t){i(t).contents().insertBefore(t),i(t).remove()})},s.prototype.drawAll=function(e){var t=this;return new a(function(n){function loader(e){void 0!==e&&null!==e||(e=[]);for(var o=e.splice(0,t.options.chunkSize),i=0,a=o.length;i<a;i++)r=r.concat(t.draw(o[i]));e.length>0?setTimeout(function(){loader(e)},t.options.chunkDelay):n(r)}var r=[];loader(e.slice())})},s.prototype.draw=function(e){for(var t=[],n=0,r=e.ranges.length;n<r;n++){var o=reanchorRange(e.ranges[n],this.element);null!==o&&t.push(o)}void 0!==e._local&&null!==e._local||(e._local={}),void 0!==e._local.highlights&&null===e._local.highlights||(e._local.highlights=[]);for(var a=0,s=t.length;a<s;a++){var u=t[a];i.merge(e._local.highlights,highlightRange(u,this.options.highlightClass))}return i(e._local.highlights).data("annotation",e),void 0!==e.id&&null!==e.id&&i(e._local.highlights).attr("data-annotation-id",e.id),e._local.highlights},s.prototype.undraw=function(e){if(void 0!==e._local&&null!==e._local&&void 0!==e._local.highlights&&null!==e._local.highlights){for(var t=0,n=e._local.highlights.length;t<n;t++){var r=e._local.highlights[t];null!==r.parentNode&&i(r).replaceWith(r.childNodes)}delete e._local.highlights}},s.prototype.redraw=function(e){return this.undraw(e),this.draw(e)},s.options={highlightClass:"annotator-hl",chunkSize:10,chunkDelay:10},t.standalone=function(e,n){var r=t.Highlighter(e,n);return{destroy:function(){r.destroy()},annotationsLoaded:function(e){r.drawAll(e)},annotationCreated:function(e){r.draw(e)},annotationDeleted:function(e){r.undraw(e)},annotationUpdated:function(e){r.redraw(e)}}}}).call(t,n(2))},function(e,t,n){"use strict";(function(e){function isAnnotator(e){return 0!==i(e).parents().addBack().filter("[class^=annotator-]").length}function TextSelector(e,t){if(this.element=e,this.options=i.extend(!0,{},TextSelector.options,t),this.onSelection=this.options.onSelection,void 0!==this.element.ownerDocument&&null!==this.element.ownerDocument){var n=this;this.document=this.element.ownerDocument,i(this.document.body).on("mouseup."+a,function(e){n._checkForEndSelection(e)})}else console.warn("You created an instance of the TextSelector on an element that doesn't have an ownerDocument. This won't work! Please ensure the element is added to the DOM before the plugin is configured:",this.element)}var r=n(18),o=n(1),i=o.$,a="annotator-textselector";TextSelector.prototype.destroy=function(){this.document&&i(this.document.body).off("."+a)},TextSelector.prototype.captureDocumentSelection=function(){var t,n,o=[],i=[],a=e.getSelection();if(a.isCollapsed)return[];for(t=0;t<a.rangeCount;t++){var s=a.getRangeAt(t),u=new r.Range.BrowserRange(s),l=u.normalize().limit(this.element);null===l?i.push(s):o.push(l)}for(a.removeAllRanges(),t=0,n=i.length;t<n;t++)a.addRange(i[t]);for(t=0,n=o.length;t<n;t++){var c=o[t],f=this.document.createRange();f.setStartBefore(c.start),f.setEndAfter(c.end),a.addRange(f)}return o},TextSelector.prototype._checkForEndSelection=function(e){var t=this,n=function(){"function"==typeof t.onSelection&&t.onSelection([],e)},r=this.captureDocumentSelection();if(0===r.length)return void n();for(var o=0,a=r.length;o<a;o++){var s=r[o].commonAncestor;if(i(s).hasClass("annotator-hl")&&(s=i(s).parents("[class!=annotator-hl]")[0]),isAnnotator(s))return void n()}"function"==typeof this.onSelection&&this.onSelection(r,e)},TextSelector.options={onSelection:null},t.TextSelector=TextSelector}).call(t,n(2))},function(e,t,n){"use strict";function parseLinks(e,t,n){n=i.extend({},n,{rel:t});for(var r=[],o=0,a=e.length;o<a;o++){var s=e[o],u=!0;for(var l in n)if(n.hasOwnProperty(l)&&s[l]!==n[l]){u=!1;break}u&&r.push(s)}return r}var r=n(3).Widget,o=n(1),i=o.$,a=o.gettext,s="annotator-viewer",u=t.Viewer=r.extend({constructor:function(e){r.call(this,e),this.itemTemplate=u.itemTemplate,this.fields=[],this.annotations=[],this.hideTimer=null,this.hideTimerDfd=null,this.hideTimerActivity=null,this.mouseDown=!1,this.render=function(e){return e.text?o.escapeHtml(e.text):"<i>"+a("No comment")+"</i>"};var t=this;if(this.options.defaultFields&&this.addField({load:function(e,n){i(e).html(t.render(n))}}),"function"!=typeof this.options.onEdit)throw new TypeError("onEdit callback must be a function");if("function"!=typeof this.options.onDelete)throw new TypeError("onDelete callback must be a function");if("function"!=typeof this.options.permitEdit)throw new TypeError("permitEdit callback must be a function");if("function"!=typeof this.options.permitDelete)throw new TypeError("permitDelete callback must be a function");this.options.autoViewHighlights&&(this.document=this.options.autoViewHighlights.ownerDocument,i(this.options.autoViewHighlights).on("mouseover."+s,".annotator-hl",function(e){e.target===this&&t._onHighlightMouseover(e)}).on("mouseleave."+s,".annotator-hl",function(){t._startHideTimer()}),i(this.document.body).on("mousedown."+s,function(e){1===e.which&&(t.mouseDown=!0)}).on("mouseup."+s,function(e){1===e.which&&(t.mouseDown=!1)})),this.element.on("click."+s,".annotator-edit",function(e){t._onEditClick(e)}).on("click."+s,".annotator-delete",function(e){t._onDeleteClick(e)}).on("mouseenter."+s,function(){t._clearHideTimer()}).on("mouseleave."+s,function(){t._startHideTimer()})},destroy:function(){this.options.autoViewHighlights&&(i(this.options.autoViewHighlights).off("."+s),i(this.document.body).off("."+s)),this.element.off("."+s),r.prototype.destroy.call(this)},show:function(e){void 0!==e&&null!==e&&this.element.css({top:e.top,left:e.left});var t=this.element.find(".annotator-controls").addClass(this.classes.showControls),n=this;setTimeout(function(){t.removeClass(n.classes.showControls)},500),r.prototype.show.call(this)},load:function(e,t){this.annotations=e||[];for(var n=this.element.find("ul:first").empty(),r=0,o=this.annotations.length;r<o;r++){var i=this.annotations[r];this._annotationItem(i).appendTo(n).data("annotation",i)}this.show(t)},setRenderer:function(e){this.render=e},_annotationItem:function(e){var t=i(this.itemTemplate).clone(),n=t.find(".annotator-controls"),r=n.find(".annotator-link"),o=n.find(".annotator-edit"),a=n.find(".annotator-delete"),s=parseLinks(e.links||[],"alternate",{type:"text/html"});s.length>0&&void 0!==s[0].href&&null!==s[0].href?r.attr("href",s[0].href):r.remove();var u={};this.options.permitEdit(e)?(u.showEdit=function(){o.removeAttr("disabled")},u.hideEdit=function(){o.attr("disabled","disabled")}):o.remove(),this.options.permitDelete(e)?(u.showDelete=function(){a.removeAttr("disabled")},u.hideDelete=function(){a.attr("disabled","disabled")}):a.remove();for(var l=0,c=this.fields.length;l<c;l++){var f=this.fields[l],d=i(f.element).clone().appendTo(t)[0];f.load(d,e,u)}return t},addField:function(e){var t=i.extend({load:function(){}},e);return t.element=i("<div />")[0],this.fields.push(t),this},_onEditClick:function(e){var t=i(e.target).parents(".annotator-annotation").data("annotation");this.hide(),this.options.onEdit(t)},_onDeleteClick:function(e){if(window.confirm(a("Delete this annotation?"))){var t=i(e.target).parents(".annotator-annotation").data("annotation");this.hide(),this.options.onDelete(t)}},_onHighlightMouseover:function(e){if(!this.mouseDown){var t=this;this._startHideTimer(!0).done(function(){var n=i(e.target).parents(".annotator-hl").addBack().map(function(e,t){return i(t).data("annotation")}).toArray();t.load(n,o.mousePosition(e))})}},_startHideTimer:function(e){if(void 0!==e&&null!==e||(e=!1),this.hideTimer){if(!1===e||this.hideTimerActivity===e)return this.hideTimerDfd;this._clearHideTimer()}var t;if(t=e?this.options.activityDelay:this.options.inactivityDelay,this.hideTimerDfd=i.Deferred(),this.isShown()){var n=this;this.hideTimer=setTimeout(function(){n.hide(),n.hideTimerDfd.resolve(),n.hideTimer=null},t),this.hideTimerActivity=Boolean(e)}else this.hideTimer=null,this.hideTimerDfd.resolve(),this.hideTimerActivity=null;return this.hideTimerDfd.promise()},_clearHideTimer:function(){clearTimeout(this.hideTimer),this.hideTimer=null,this.hideTimerDfd.reject(),this.hideTimerActivity=null}});u.classes={showControls:"annotator-visible"},u.template=['<div class="annotator-outer annotator-viewer annotator-hide">',' <ul class="annotator-widget annotator-listing"></ul>',"</div>"].join("\n"),u.itemTemplate=['<li class="annotator-annotation annotator-item">',' <span class="annotator-controls">',' <a href="#"',' title="'+a("View as webpage")+'"',' class="annotator-link">'+a("View as webpage")+"</a>",' <button type="button"',' title="'+a("Edit")+'"',' class="annotator-edit">'+a("Edit")+"</button>",' <button type="button"',' title="'+a("Delete")+'"',' class="annotator-delete">'+a("Delete")+"</button>"," </span>","</li>"].join("\n"),u.options={defaultFields:!0,inactivityDelay:500,activityDelay:100,permitEdit:function(){return!1},permitDelete:function(){return!1},autoViewHighlights:null,onEdit:function(){},onDelete:function(){}},t.standalone=function(e){var n;return void 0!==e&&null!==e||(e={}),{start:function(r){var o=r.registry.getUtility("identityPolicy"),i=r.registry.getUtility("authorizationPolicy");void 0===e.onEdit&&(e.onEdit=function(e){r.annotations.update(e)}),void 0===e.onDelete&&(e.onDelete=function(e){r.annotations.delete(e)}),void 0===e.permitEdit&&(e.permitEdit=function(e){return i.permits("update",e,o.who())}),void 0===e.permitDelete&&(e.permitDelete=function(e){return i.permits("delete",e,o.who())}),n=new t.Viewer(e)},destroy:function(){n.destroy()}}}},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=n(4),o=function(e){return e&&e.__esModule?e:{default:e}}(r);o.default.bind("g u",function(){window.location.href=Routing.generate("homepage")}),o.default.bind("g s",function(){window.location.href=Routing.generate("starred")}),o.default.bind("g r",function(){window.location.href=Routing.generate("archive")}),o.default.bind("g a",function(){window.location.href=Routing.generate("all")}),o.default.bind("g t",function(){window.location.href=Routing.generate("tag")}),o.default.bind("g c",function(){window.location.href=Routing.generate("config")}),o.default.bind("g i",function(){window.location.href=Routing.generate("import")}),o.default.bind("g d",function(){window.location.href=Routing.generate("developer")}),o.default.bind("?",function(){window.location.href=Routing.generate("howto")}),o.default.bind("g l",function(){window.location.href=Routing.generate("fos_user_security_logout")})},function(e,t,n){!function(t){e.exports=t()}(function(){"use strict";var e={has:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},extend:function(e){for(var t=1;t<arguments.length;++t){var n=arguments[t];if(n)for(var r in n)e[r]=n[r]}return e}};return function(t,n){var r,o=this;r=t&&e.has(t,"constructor")?t.constructor:function(){return o.apply(this,arguments)},e.extend(r,o,n);var i=function(){this.constructor=r};return i.prototype=o.prototype,r.prototype=new i,t&&e.extend(r.prototype,t),r.__super__=o.prototype,r}})},function(e,t,n){(function(t,r){!function(t,n){e.exports=n()}(0,function(){"use strict";function objectOrFunction(e){return"function"==typeof e||"object"==typeof e&&null!==e}function isFunction(e){return"function"==typeof e}function setScheduler(e){s=e}function setAsap(e){u=e}function useVertxTimer(){return function(){a(flush)}}function useSetTimeout(){var e=setTimeout;return function(){return e(flush,1)}}function flush(){for(var e=0;e<i;e+=2){(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0}i=0}function then(e,t){var n=arguments,r=this,o=new this.constructor(noop);void 0===o[m]&&makePromise(o);var i=r._state;return i?function(){var e=n[i-1];u(function(){return invokeCallback(i,o,e,r._result)})}():subscribe(r,o,e,t),o}function resolve(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(noop);return _resolve(n,e),n}function noop(){}function selfFulfillment(){return new TypeError("You cannot resolve a promise with itself")}function cannotReturnOwn(){return new TypeError("A promises callback cannot return that same promise.")}function getThen(e){try{return e.then}catch(e){return b.error=e,b}}function tryThen(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function handleForeignThenable(e,t,n){u(function(e){var r=!1,o=tryThen(n,t,function(n){r||(r=!0,t!==n?_resolve(e,n):fulfill(e,n))},function(t){r||(r=!0,_reject(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,_reject(e,o))},e)}function handleOwnThenable(e,t){t._state===y?fulfill(e,t._result):t._state===w?_reject(e,t._result):subscribe(t,void 0,function(t){return _resolve(e,t)},function(t){return _reject(e,t)})}function handleMaybeThenable(e,t,n){t.constructor===e.constructor&&n===then&&t.constructor.resolve===resolve?handleOwnThenable(e,t):n===b?_reject(e,b.error):void 0===n?fulfill(e,t):isFunction(n)?handleForeignThenable(e,t,n):fulfill(e,t)}function _resolve(e,t){e===t?_reject(e,selfFulfillment()):objectOrFunction(t)?handleMaybeThenable(e,t,getThen(t)):fulfill(e,t)}function publishRejection(e){e._onerror&&e._onerror(e._result),publish(e)}function fulfill(e,t){e._state===v&&(e._result=t,e._state=y,0!==e._subscribers.length&&u(publish,e))}function _reject(e,t){e._state===v&&(e._state=w,e._result=t,u(publishRejection,e))}function subscribe(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+y]=n,o[i+w]=r,0===i&&e._state&&u(publish,e)}function publish(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?invokeCallback(n,r,o,i):o(i);e._subscribers.length=0}}function ErrorObject(){this.error=null}function tryCatch(e,t){try{return e(t)}catch(e){return x.error=e,x}}function invokeCallback(e,t,n,r){var o=isFunction(n),i=void 0,a=void 0,s=void 0,u=void 0;if(o){if(i=tryCatch(n,r),i===x?(u=!0,a=i.error,i=null):s=!0,t===i)return void _reject(t,cannotReturnOwn())}else i=r,s=!0;t._state!==v||(o&&s?_resolve(t,i):u?_reject(t,a):e===y?fulfill(t,i):e===w&&_reject(t,i))}function initializePromise(e,t){try{t(function(t){_resolve(e,t)},function(t){_reject(e,t)})}catch(t){_reject(e,t)}}function nextId(){return T++}function makePromise(e){e[m]=T++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Enumerator(e,t){this._instanceConstructor=e,this.promise=new e(noop),this.promise[m]||makePromise(this.promise),o(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&fulfill(this.promise,this._result))):_reject(this.promise,validationError())}function validationError(){return new Error("Array Methods must be provided an Array")}function all(e){return new Enumerator(this,e).promise}function race(e){var t=this;return new t(o(e)?function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function reject(e){var t=this,n=new t(noop);return _reject(n,e),n}function needsResolver(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function needsNew(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function Promise(e){this[m]=nextId(),this._result=this._state=void 0,this._subscribers=[],noop!==e&&("function"!=typeof e&&needsResolver(),this instanceof Promise?initializePromise(this,e):needsNew())}function polyfill(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=Promise}var e=void 0;e=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var o=e,i=0,a=void 0,s=void 0,u=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(s?s(flush):g())},l="undefined"!=typeof window?window:void 0,c=l||{},f=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,p=new Array(1e3),g=void 0;g=d?function(){return function(){return t.nextTick(flush)}}():f?function(){var e=0,t=new f(flush),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():h?function(){var e=new MessageChannel;return e.port1.onmessage=flush,function(){return e.port2.postMessage(0)}}():void 0===l?function(){try{var e=n(39);return a=e.runOnLoop||e.runOnContext,useVertxTimer()}catch(e){return useSetTimeout()}}():useSetTimeout();var m=Math.random().toString(36).substring(16),v=void 0,y=1,w=2,b=new ErrorObject,x=new ErrorObject,T=0;return Enumerator.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===v&&n<e;n++)this._eachEntry(t[n],n)},Enumerator.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===resolve){var o=getThen(e);if(o===then&&e._state!==v)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===Promise){var i=new n(noop);handleMaybeThenable(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},Enumerator.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===v&&(this._remaining--,e===w?_reject(r,n):this._result[t]=n),0===this._remaining&&fulfill(r,this._result)},Enumerator.prototype._willSettleAt=function(e,t){var n=this;subscribe(e,void 0,function(e){return n._settledAt(y,t,e)},function(e){return n._settledAt(w,t,e)})},Promise.all=all,Promise.race=race,Promise.resolve=resolve,Promise.reject=reject,Promise._setScheduler=setScheduler,Promise._setAsap=setAsap,Promise._asap=u,Promise.prototype={constructor:Promise,then:then,catch:function(e){return this.then(null,e)}},polyfill(),Promise.polyfill=polyfill,Promise.Promise=Promise,Promise})}).call(t,n(37),n(2))},function(e,t,n){(function(){e.exports={xpath:n(20),Range:n(38)}}).call(this)},function(e,t,n){(function(){var t,r;t=n(0),r={},r.NodeTypes={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},r.getFirstTextNodeNotBefore=function(e){var t;switch(e.nodeType){case r.NodeTypes.TEXT_NODE:return e;case r.NodeTypes.ELEMENT_NODE:if(null!=e.firstChild&&null!=(t=r.getFirstTextNodeNotBefore(e.firstChild)))return t}return e=e.nextSibling,null!=e?r.getFirstTextNodeNotBefore(e):null},r.getLastTextNodeUpTo=function(e){var t;switch(e.nodeType){case r.NodeTypes.TEXT_NODE:return e;case r.NodeTypes.ELEMENT_NODE:if(null!=e.lastChild&&null!=(t=r.getLastTextNodeUpTo(e.lastChild)))return t}return e=e.previousSibling,null!=e?r.getLastTextNodeUpTo(e):null},r.getTextNodes=function(e){var t;return t=function(e){var n;if(e&&e.nodeType!==r.NodeTypes.TEXT_NODE){if(n=[],e.nodeType!==r.NodeTypes.COMMENT_NODE)for(e=e.lastChild;e;)n.push(t(e)),e=e.previousSibling;return n.reverse()}return e},e.map(function(){return r.flatten(t(this))})},r.getGlobal=function(){return function(){return this}()},r.contains=function(e,t){var n;for(n=t;null!=n;){if(n===e)return!0;n=n.parentNode}return!1},r.flatten=function(e){var n;return(n=function(e){var r,o,i,a;for(o=[],i=0,a=e.length;i<a;i++)r=e[i],o=o.concat(r&&t.isArray(r)?n(r):r);return o})(e)},e.exports=r}).call(this)},function(e,t,n){(function(){var t,r,o,i,a,s,u,l,c,f;t=n(0),r=n(19),o=function(e,t,n){var r,o,a,s,u,l,c,f;null==t&&(t=document),null==n&&(n=null);try{return document.evaluate("."+e,t,n,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(n){for(n,console.log("XPath evaluation failed."),console.log("Trying fallback..."),u=e.substring(1).split("/"),a=t,l=0,c=u.length;l<c;l++)s=u[l],f=s.split("["),o=f[0],r=f[1],r=null!=r?parseInt((null!=r?r.split("]"):void 0)[0]):1,a=i(a,o.toLowerCase(),r);return a}},l=function(e,n){var o;return o=e.map(function(){var e,o,i,a;for(i="",e=this;(null!=e?e.nodeType:void 0)===r.NodeTypes.ELEMENT_NODE&&e!==n;)a=e.tagName.replace(":","\\:"),o=t(e.parentNode).children(a).index(e)+1,o="["+o+"]",i="/"+e.tagName.toLowerCase()+o+i,e=e.parentNode;return i}),o.get()},c=function(e,t){var n,r,o,i;return n=function(e){var t,n;return t=s(e),n=u(e),t+"["+n+"]"},i=t,r=function(e){var t;for(t="";e!==i;){if(null==e)throw new Error("Called getPathTo on a node which was not a descendant of @rootNode. "+i);t=n(e)+"/"+t,e=e.parentNode}return t="/"+t,t=t.replace(/\/$/,"")},o=e.map(function(){return r(this)}),o.get()},i=function(e,t,n){var r,o,i,a,u;if(!e.hasChildNodes())throw new Error("XPath error: node has no children!");for(o=e.childNodes,i=0,a=0,u=o.length;a<u;a++)if(r=o[a],s(r)===t&&(i+=1)===n)return r;throw new Error("XPath error: wanted child not found.")},s=function(e){var t;switch(t=e.nodeName.toLowerCase()){case"#text":return"text()";case"#comment":return"comment()";case"#cdata-section":return"cdata-section()";default:return t}},u=function(e){var t,n;for(t=0,n=e;n;)n.nodeName===e.nodeName&&(t+=1),n=n.previousSibling;return t},a=function(e,t){var n;try{n=l(e,t)}catch(r){r,console.log("jQuery-based XPath construction failed! Falling back to manual."),n=c(e,t)}return n},f=function(e,n){var r,i,a,s;return null==n&&(n=document),t.isXMLDoc(document.documentElement)?(r=document.createNSResolver(null===document.ownerDocument?document.documentElement:document.ownerDocument.documentElement),a=o(e,n,r),a||(e=function(){var t,n,r,o;for(r=e.split("/"),o=[],t=0,n=r.length;t<n;t++)s=r[t],s&&-1===s.indexOf(":")?o.push(s.replace(/^([a-z]+)/,"xhtml:$1")):o.push(s);return o}().join("/"),i=document.lookupNamespaceURI(null),r=function(e){return"xhtml"===e?i:document.documentElement.getAttribute("xmlns:"+e)},a=o(e,n,r)),a):o(e,n)},e.exports={fromNode:a,toNode:f}}).call(this)},function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r=n(0),o=_interopRequireDefault(r),i=n(22),a=_interopRequireDefault(i);n(34),n(33),n(31),n(14),n(15);var s=n(30);(0,o.default)(document).ready(function(){if((0,o.default)("article").length){var e=new a.default.App;e.include(a.default.ui.main,{element:document.querySelector("article")});var t={permits:function(){return!0}};e.registry.registerUtility(t,"authorizationPolicy");var n=JSON.parse((0,o.default)("#annotationroutes").html());e.include(a.default.storage.http,n),e.start().then(function(){e.annotations.load({entry:n.entryId})}),(0,o.default)(window).scroll(function(){var e=(0,o.default)(window).scrollTop(),t=(0,o.default)(document).height(),r=e/t,i=Math.round(100*r)/100;(0,s.savePercent)(n.entryId,i)}),(0,s.retrievePercent)(n.entryId),(0,o.default)(window).resize(function(){(0,s.retrievePercent)(n.entryId)})}})},function(e,t,n){"use strict";(function(e){n(35)(n(32));var r=n(23),o=n(1);t.App=r.App,t.authz=n(5),t.identity=n(6),t.notification=n(7),t.storage=n(8),t.ui=n(25),t.util=o,t.ext={};var i=e.wgxpath;void 0!==i&&null!==i&&"function"==typeof i.install&&i.install();var a=e.annotator;t.noConflict=function(){return e.annotator=a,this}}).call(t,n(2))},function(e,t,n){"use strict";function App(){this.modules=[],this.registry=new u.Registry,this._started=!1,this.registry.registerUtility(s.defaultNotifier,"notifier"),this.include(i.acl),this.include(a.simple),this.include(l.noop)}var r=n(16),o=n(17).Promise,i=n(5),a=n(6),s=n(7),u=n(24),l=n(8);App.prototype.include=function(e,t){var n=e(t);return"function"==typeof n.configure&&n.configure(this.registry),this.modules.push(n),this},App.prototype.start=function(){if(!this._started){this._started=!0;var e=this,t=this.registry;return this.authz=t.getUtility("authorizationPolicy"),this.ident=t.getUtility("identityPolicy"),this.notify=t.getUtility("notifier"),this.annotations=new l.StorageAdapter(t.getUtility("storage"),function(){return e.runHook.apply(e,arguments)}),this.runHook("start",[this])}},App.prototype.destroy=function(){return this.runHook("destroy")},App.prototype.runHook=function(e,t){for(var n=[],r=0,i=this.modules.length;r<i;r++){var a=this.modules[r];"function"==typeof a[e]&&n.push(a[e].apply(a,t))}return o.all(n)},App.extend=r,t.App=App},function(e,t,n){"use strict";function Registry(){this.utilities={}}function LookupError(e){this.name="LookupError",this.message='No utility registered for interface "'+e+'".'}Registry.prototype.registerUtility=function(e,t){this.utilities[t]=e},Registry.prototype.getUtility=function(e){var t=this.queryUtility(e);if(null===t)throw new LookupError(e);return t},Registry.prototype.queryUtility=function(e){var t=this.utilities[e];return void 0===t||null===t?null:t},LookupError.prototype=Object.create(Error.prototype),LookupError.prototype.constructor=LookupError,t.LookupError=LookupError,t.Registry=Registry},function(e,t,n){t.main=n(27).main,t.adder=n(9),t.editor=n(10),t.filter=n(26),t.highlighter=n(11),t.markdown=n(28),t.tags=n(29),t.textselector=n(12),t.viewer=n(13),t.widget=n(3)},function(e,t,n){"use strict";var r=n(1),o=r.$,i=r.gettext,a="annotator-filter",s=t.Filter=function Filter(e){this.options=o.extend(!0,{},Filter.options,e),this.classes=o.extend(!0,{},Filter.classes),this.element=o(Filter.html.element).appendTo(this.options.appendTo),this.filter=o(Filter.html.filter),this.filters=[],this.current=0;for(var t=0,n=this.options.filters.length;t<n;t++){var r=this.options.filters[t];this.addFilter(r)}this.updateHighlights();var s=".annotator-filter-property input",u=this;this.element.on("focus."+a,s,function(e){u._onFilterFocus(e)}).on("blur."+a,s,function(e){u._onFilterBlur(e)}).on("keyup."+a,s,function(e){u._onFilterKeyup(e)}).on("click."+a,".annotator-filter-previous",function(e){u._onPreviousClick(e)}).on("click."+a,".annotator-filter-next",function(e){u._onNextClick(e)}).on("click."+a,".annotator-filter-clear",function(e){u._onClearClick(e)}),this._insertSpacer(),this.options.addAnnotationFilter&&this.addFilter({label:i("Annotation"),property:"text"})};s.prototype.destroy=function(){var e=o("html"),t=parseInt(e.css("padding-top"),10)||0;e.css("padding-top",t-this.element.outerHeight()),this.element.off("."+a),this.element.remove()},s.prototype._insertSpacer=function(){var e=o("html"),t=parseInt(e.css("padding-top"),10)||0;return e.css("padding-top",t+this.element.outerHeight()),this},s.prototype.addFilter=function(e){for(var t=o.extend({label:"",property:"",isFiltered:this.options.isFiltered},e),n=!1,r=0,a=this.filters.length;r<a;r++){if(this.filters[r].property===t.property){n=!0;break}}return n||(t.id="annotator-filter-"+t.property,t.annotations=[],t.element=this.filter.clone().appendTo(this.element),t.element.find("label").html(t.label).attr("for",t.id),t.element.find("input").attr({id:t.id,placeholder:i("Filter by ")+t.label+"…"}),t.element.find("button").hide(),t.element.data("filter",t),this.filters.push(t)),this},s.prototype.updateFilter=function(e){e.annotations=[],this.updateHighlights(),this.resetHighlights();var t=o.trim(e.element.find("input").val());if(t){var n=this.highlights.map(function(){return o(this).data("annotation")});n=o.makeArray(n);for(var r=0,i=n.length;r<i;r++){var a=n[r],s=a[e.property];e.isFiltered(t,s)&&e.annotations.push(a)}this.filterHighlights()}},s.prototype.updateHighlights=function(){this.highlights=o(this.options.filterElement).find(".annotator-hl:visible"),this.filtered=this.highlights.not(this.classes.hl.hide)},s.prototype.filterHighlights=function(){var e=o.grep(this.filters,function(e){return Boolean(e.annotations.length)}),t=[];if(e.length>0&&(t=e[0].annotations),e.length>1){var n=[];o.each(e,function(){o.merge(n,this.annotations)});var r=[];t=[],o.each(n,function(){-1===o.inArray(this,r)?r.push(this):t.push(this)})}for(var i=this.highlights,a=0,s=t.length;a<s;a++)i=i.not(t[a]._local.highlights);return i.addClass(this.classes.hl.hide),this.filtered=this.highlights.not(this.classes.hl.hide),this},s.prototype.resetHighlights=function(){return this.highlights.removeClass(this.classes.hl.hide),this.filtered=this.highlights,this},s.prototype._onFilterFocus=function(e){var t=o(e.target);t.parent().addClass(this.classes.active),t.next("button").show()},s.prototype._onFilterBlur=function(e){if(!e.target.value){var t=o(e.target);t.parent().removeClass(this.classes.active),t.next("button").hide()}},s.prototype._onFilterKeyup=function(e){var t=o(e.target).parent().data("filter");t&&this.updateFilter(t)},s.prototype._findNextHighlight=function(e){if(0===this.highlights.length)return this;var t=-1,n=0,r="gt";e&&(t=0,n=-1,r="lt");var o=this.highlights.not("."+this.classes.hl.hide),i=o.filter("."+this.classes.hl.active);0===i.length&&(i=o.eq(t));var a=i.data("annotation"),s=o.index(i[0]),u=o.filter(":"+r+"("+s+")").not(a._local.highlights).eq(n);0===u.length&&(u=o.eq(n)),this._scrollToHighlight(u.data("annotation")._local.highlights)},s.prototype._onNextClick=function(){this._findNextHighlight()},s.prototype._onPreviousClick=function(){this._findNextHighlight(!0)},s.prototype._scrollToHighlight=function(e){e=o(e),this.highlights.removeClass(this.classes.hl.active),e.addClass(this.classes.hl.active),o("html, body").animate({scrollTop:e.offset().top-(this.element.height()+20)},150)},s.prototype._onClearClick=function(e){o(e.target).prev("input").val("").keyup().blur()},s.classes={active:"annotator-filter-active",hl:{hide:"annotator-hl-filtered",active:"annotator-hl-active"}},s.html={element:['<div class="annotator-filter">'," <strong>"+i("Navigate:")+"</strong>",' <span class="annotator-filter-navigation">',' <button type="button"',' class="annotator-filter-previous">'+i("Previous")+"</button>",' <button type="button"',' class="annotator-filter-next">'+i("Next")+"</button>"," </span>"," <strong>"+i("Filter by:")+"</strong>","</div>"].join("\n"),filter:['<span class="annotator-filter-property">'," <label></label>"," <input/>",' <button type="button"',' class="annotator-filter-clear">'+i("Clear")+"</button>","</span>"].join("\n")},s.options={appendTo:"body",filterElement:"body",filters:[],addAnnotationFilter:!0,isFiltered:function(e,t){if(!e||!t)return!1;for(var n=e.split(/\s+/),r=0,o=n.length;r<o;r++)if(-1===t.indexOf(n[r]))return!1;return!0}},t.standalone=function(e){var n=new t.Filter(e);return{destroy:function(){n.destroy()},annotationsLoaded:function(){n.updateHighlights()},annotationCreated:function(){n.updateHighlights()},annotationUpdated:function(){n.updateHighlights()},annotationDeleted:function(){n.updateHighlights()}}}},function(e,t,n){"use strict";(function(e){function trim(e){return"function"==typeof String.prototype.trim?String.prototype.trim.call(e):e.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}function annotationFactory(e,t){return function(n){for(var r=[],o=[],i=0,a=n.length;i<a;i++){var s=n[i];r.push(trim(s.text())),o.push(s.serialize(e,t))}return{quote:r.join(" / "),ranges:o}}}function maxZIndex(e){for(var t=-1,n=0,o=e.length;n<o;n++){var i=r.$(e[n]);if("static"!==i.css("position")){var a=parseFloat(i.css("z-index"));a>t&&(t=a)}}return t}function injectDynamicStyle(){r.$("#annotator-dynamic-style").remove();var t=maxZIndex(r.$(e.document.body).find("*:not(annotator-adder):not(annotator-outer):not(annotator-notice):not(annotator-filter)").get());t=Math.max(t,1e3);var n=[".annotator-adder, .annotator-outer, .annotator-notice {"," z-index: "+(t+20)+";","}",".annotator-filter {"," z-index: "+(t+10)+";","}"].join("\n");r.$("<style>"+n+"</style>").attr("id","annotator-dynamic-style").attr("type","text/css").appendTo("head")}function removeDynamicStyle(){r.$("#annotator-dynamic-style").remove()}function addPermissionsCheckboxes(e,t,n){function createLoadCallback(e){return function(o,i){o=r.$(o).show();var a=t.who(),s=o.find("input");void 0!==a&&null!==a||o.hide(),n.permits("admin",i,a)||o.hide(),n.permits(e,i,null)?s.attr("checked","checked"):s.removeAttr("checked")}}function createSubmitCallback(e){return function(o,i){var a=t.who();void 0!==a&&null!==a&&(i.permissions||(i.permissions={}),r.$(o).find("input").is(":checked")?delete i.permissions[e]:i.permissions[e]=[n.authorizedUserId(a)])}}e.addField({type:"checkbox",label:l("Allow anyone to <strong>view</strong> this annotation"),load:createLoadCallback("read"),submit:createSubmitCallback("read")}),e.addField({type:"checkbox",label:l("Allow anyone to <strong>edit</strong> this annotation"),load:createLoadCallback("update"),submit:createSubmitCallback("update")})}function main(t){function start(e){var c=e.registry.getUtility("identityPolicy"),f=e.registry.getUtility("authorizationPolicy");l.adder=new o.Adder({onCreate:function(t){e.annotations.create(t)}}),l.adder.attach(),l.editor=new i.Editor({extensions:t.editorExtensions}),l.editor.attach(),addPermissionsCheckboxes(l.editor,c,f),l.highlighter=new a.Highlighter(t.element),l.textselector=new s.TextSelector(t.element,{onSelection:function(e,t){if(e.length>0){var o=n(e);l.interactionPoint=r.mousePosition(t),l.adder.load(o,l.interactionPoint)}else l.adder.hide()}}),l.viewer=new u.Viewer({onEdit:function(t){l.interactionPoint=r.$(l.viewer.element).css(["top","left"]),e.annotations.update(t)},onDelete:function(t){e.annotations.delete(t)},permitEdit:function(e){return f.permits("update",e,c.who())},permitDelete:function(e){return f.permits("delete",e,c.who())},autoViewHighlights:t.element,extensions:t.viewerExtensions}),l.viewer.attach(),injectDynamicStyle()}void 0!==t&&null!==t||(t={}),t.element=t.element||e.document.body,t.editorExtensions=t.editorExtensions||[],t.viewerExtensions=t.viewerExtensions||[];var n=annotationFactory(t.element,".annotator-hl"),l={interactionPoint:null};return{start:start,destroy:function(){l.adder.destroy(),l.editor.destroy(),l.highlighter.destroy(),l.textselector.destroy(),l.viewer.destroy(),removeDynamicStyle()},annotationsLoaded:function(e){l.highlighter.drawAll(e)},annotationCreated:function(e){l.highlighter.draw(e)},annotationDeleted:function(e){l.highlighter.undraw(e)},annotationUpdated:function(e){l.highlighter.redraw(e)},beforeAnnotationCreated:function(e){return l.editor.load(e,l.interactionPoint)},beforeAnnotationUpdated:function(e){return l.editor.load(e,l.interactionPoint)}}}var r=n(1),o=n(9),i=n(10),a=n(11),s=n(12),u=n(13),l=r.gettext;t.main=main}).call(t,n(2))},function(e,t,n){"use strict";(function(e){var r=n(1),o=r.gettext,i=t.render=function(t){var n=r.escapeHtml;return e.showdown&&"function"==typeof e.showdown.Converter&&(n=(new e.showdown.Converter).makeHtml),t.text?n(t.text):"<i>"+o("No comment")+"</i>"};t.viewerExtension=function(t){e.showdown&&"function"==typeof e.showdown.Converter||console.warn(o("To use the Markdown plugin, you must include Showdown into the page first.")),t.setRenderer(i)}}).call(t,n(2))},function(e,t,n){"use strict";function stringifyTags(e){return e.join(" ")}function parseTags(e){e=o.trim(e);var t=[];return e&&(t=e.split(/\s+/)),t}var r=n(1),o=r.$,i=r.gettext;t.viewerExtension=function(e){function updateViewer(e,t){e=o(e),t.tags&&o.isArray(t.tags)&&t.tags.length?e.addClass("annotator-tags").html(function(){return o.map(t.tags,function(e){return'<span class="annotator-tag">'+r.escapeHtml(e)+"</span>"}).join(" ")}):e.remove()}e.addField({load:updateViewer})},t.editorExtension=function(e){function updateField(e,t){var r="";t.tags&&(r=stringifyTags(t.tags)),n.val(r)}function setAnnotationTags(e,t){t.tags=parseTags(n.val())}var t=null,n=null;t=e.addField({label:i("Add some tags here")+"…",load:updateField,submit:setAnnotationTags}),n=o(t).find(":input")}},function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function supportsLocalStorage(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}function savePercent(e,t){return!!supportsLocalStorage()&&(localStorage["wallabag.article."+e+".percent"]=t,!0)}function retrievePercent(e){if(!supportsLocalStorage())return!1;var t=(0,o.default)(document).height(),n=localStorage["wallabag.article."+e+".percent"],r=t*n;return(0,o.default)("html,body").animate({scrollTop:r},"fast"),!0}Object.defineProperty(t,"__esModule",{value:!0}),t.retrievePercent=t.savePercent=void 0;var r=n(0),o=_interopRequireDefault(r);n(15),n(14);var i=n(36);_interopRequireDefault(i);t.savePercent=savePercent,t.retrievePercent=retrievePercent},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){var n={};e.exports=function(e,t){if(!n[e]){n[e]=!0;var r=document.createElement("style");r.setAttribute("type","text/css"),"textContent"in r?r.textContent=e:r.styleSheet.cssText=e;var o=document.getElementsByTagName("head")[0];t&&t.prepend?o.insertBefore(r,o.childNodes[0]):o.appendChild(r)}}},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(e,t,n){"use strict";e.exports=n(3)},function(e,t){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var o=Object.keys(Object(r)),i=0,a=o.length;i<a;i++){var s=o[i],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(t[s]=r[s])}}}return t}})}()},function(e,t){"use strict";e.exports=function(){var e={};return e.utf16to8=function(e){var t,n,r,o;for(t="",r=e.length,n=0;n<r;n++)o=e.charCodeAt(n),o>=1&&o<=127?t+=e.charAt(n):o>2047?(t+=String.fromCharCode(224|o>>12&15),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|o>>0&63)):(t+=String.fromCharCode(192|o>>6&31),t+=String.fromCharCode(128|o>>0&63));return t},e.utf8to16=function(e){var t,n,r,o,i,a;for(t="",r=e.length,n=0;n<r;)switch((o=e.charCodeAt(n++))>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(n-1);break;case 12:case 13:i=e.charCodeAt(n++),t+=String.fromCharCode((31&o)<<6|63&i);break;case 14:i=e.charCodeAt(n++),a=e.charCodeAt(n++),t+=String.fromCharCode((15&o)<<12|(63&i)<<6|(63&a)<<0)}return t},e}()},function(e,n,r){"use strict";r(1),r(4);var o=r(2),i=function(){function t(e){var t=new QRCode(e.typeNumber,e.correctLevel);t.addData(e.text),t.make();var n=document.createElement("canvas");n.width=e.width,n.height=e.height;var r=n.getContext("2d"),o=(e.width-2*e.padding)/t.getModuleCount(),i=(e.height-2*e.padding)/t.getModuleCount();if(e.reverse){var a="rgba(0, 0, 0, 0)";r.fillStyle=a,e.foreground=a}else r.fillStyle=e.background;r.fillRect(0,0,n.width,n.height);for(var s=0;s<t.getModuleCount();s++)for(var u=0;u<t.getModuleCount();u++){r.fillStyle=t.isDark(s,u)?e.foreground:e.background;var l=Math.ceil((u+1)*o)-Math.floor(u*o),c=Math.ceil((s+1)*o)-Math.floor(s*o);r.fillRect(Math.round(u*o)+e.padding,Math.round(s*i)+e.padding,l,c)}return n}var e={};return e.getQrBase64=function(e,n){"string"!=typeof e&&(e=""),"string"==typeof n?n={text:n}:"object"!=typeof n&&(n={}),n=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},n);try{n.text=o.utf16to8(e)}catch(e){n.text=""+e}return t(n).toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=i),e.exports=i},function(e,t){function r(e){this.mode=s.MODE_8BIT_BYTE,this.data=e}function o(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}function i(e,t){this.totalCount=e,this.dataCount=t}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},o.prototype={addData:function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=i.getRSBlocks(e,this.errorCorrectLevel),n=new a,r=0,o=0;o<t.length;o++)r+=t[o].dataCount;for(var o=0;o<this.dataList.length;o++){var s=this.dataList[o];n.put(s.mode,4),n.put(s.getLength(),c.getLengthInBits(s.mode,e)),s.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=c.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,a=0;a<this.modules[o].length;a++){var s=1*a,u=this.modules[o][a];u&&(r.beginFill(0,100),r.moveTo(s,i),r.lineTo(s+1,i),r.lineTo(s+1,i+1),r.lineTo(s,i+1),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=c.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[r+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}},setupTypeNumber:function(e){for(var t=c.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=c.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(var o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[r][a-s]){var u=!1;i<e.length&&(u=1==(e[i]>>>o&1));var l=c.getMask(t,r,a-s);l&&(u=!u),this.modules[r][a-s]=u,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new a,u=0;u<n.length;u++){var l=n[u];s.put(l.mode,4),s.put(l.getLength(),c.getLengthInBits(l.mode,e)),l.write(s)}for(var f=0,u=0;u<r.length;u++)f+=r[u].dataCount;if(s.getLengthInBits()>8*f)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*f+")");for(s.getLengthInBits()+4<=8*f&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*f)&&(s.put(o.PAD0,8),!(s.getLengthInBits()>=8*f));)s.put(o.PAD1,8);return o.createBytes(s,r)},o.createBytes=function(e,t){for(var r=0,o=0,i=0,a=new Array(t.length),s=new Array(t.length),u=0;u<t.length;u++){var l=t[u].dataCount,f=t[u].totalCount-l;o=Math.max(o,l),i=Math.max(i,f),a[u]=new Array(l);for(var d=0;d<a[u].length;d++)a[u][d]=255&e.buffer[d+r];r+=l;var h=c.getErrorCorrectPolynomial(f),p=new n(a[u],h.getLength()-1),g=p.mod(h);s[u]=new Array(h.getLength()-1);for(var d=0;d<s[u].length;d++){var m=d+g.getLength()-s[u].length;s[u][d]=m>=0?g.get(m):0}}for(var v=0,d=0;d<t.length;d++)v+=t[d].totalCount;for(var y=new Array(v),w=0,d=0;d<o;d++)for(var u=0;u<t.length;u++)d<a[u].length&&(y[w++]=a[u][d]);for(var d=0;d<i;d++)for(var u=0;u<t.length;u++)d<s[u].length&&(y[w++]=s[u][d]);return y};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},l={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;c.getBCHDigit(t)-c.getBCHDigit(c.G15)>=0;)t^=c.G15<<c.getBCHDigit(t)-c.getBCHDigit(c.G15);return(e<<10|t)^c.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;c.getBCHDigit(t)-c.getBCHDigit(c.G18)>=0;)t^=c.G18<<c.getBCHDigit(t)-c.getBCHDigit(c.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return c.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case l.PATTERN000:return(t+n)%2==0;case l.PATTERN001:return t%2==0;case l.PATTERN010:return n%3==0;case l.PATTERN011:return(t+n)%3==0;case l.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case l.PATTERN101:return t*n%2+t*n%3==0;case l.PATTERN110:return(t*n%2+t*n%3)%2==0;case l.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new n([1],0),r=0;r<e;r++)t=t.multiply(new n([1,f.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:case s.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||0==s&&0==u||a==e.isDark(r+s,o+u)&&i++;i>5&&(n+=3+i-5)}for(var r=0;r<t-1;r++)for(var o=0;o<t-1;o++){var l=0;e.isDark(r,o)&&l++,e.isDark(r+1,o)&&l++,e.isDark(r,o+1)&&l++,e.isDark(r+1,o+1)&&l++,0!=l&&4!=l||(n+=3)}for(var r=0;r<t;r++)for(var o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(var o=0;o<t;o++)for(var r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);for(var c=0,o=0;o<t;o++)for(var r=0;r<t;r++)e.isDark(r,o)&&c++;return n+=Math.abs(100*c/t/t-50)/5*10}},f={glog:function(e){if(e<1)throw new Error("glog("+e+")");return f.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return f.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)f.EXP_TABLE[d]=1<<d;for(var d=8;d<256;d++)f.EXP_TABLE[d]=f.EXP_TABLE[d-4]^f.EXP_TABLE[d-5]^f.EXP_TABLE[d-6]^f.EXP_TABLE[d-8];for(var d=0;d<255;d++)f.LOG_TABLE[f.EXP_TABLE[d]]=d;n.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<e.getLength();o++)t[r+o]^=f.gexp(f.glog(this.get(r))+f.glog(e.get(o)));return new n(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=f.glog(this.get(0))-f.glog(e.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(var o=0;o<e.getLength();o++)r[o]^=f.gexp(f.glog(e.get(o))+t);return new n(r,0).mod(e)}},i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(e,t){var n=i.getRsBlockTable(e,t);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,o=new Array,a=0;a<r;a++)for(var s=n[3*a+0],u=n[3*a+1],l=n[3*a+2],c=0;c<s;c++)o.push(new i(u,l));return o},i.getRsBlockTable=function(e,t){switch(t){case u.L:return i.RS_BLOCK_TABLE[4*(e-1)+0];case u.M:return i.RS_BLOCK_TABLE[4*(e-1)+1];case u.Q:return i.RS_BLOCK_TABLE[4*(e-1)+2];case u.H:return i.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},a.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=u;try{e.exports={QRCode:o,QRErrorCorrectLevel:u}}catch(e){}}])})},function(e,t){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(n===setTimeout)return setTimeout(e,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function runClearTimeout(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}function cleanUpNextTick(){s&&i&&(s=!1,i.length?a=i.concat(a):u=-1,a.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=a.length;t;){for(i=a,a=[];++u<t;)i&&i[u].run();u=-1,t=a.length}i=null,s=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}var n,r,o=e.exports={};!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){n=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var i,a=[],s=!1,u=-1;o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.push(new Item(e,t)),1!==a.length||s||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=noop,o.addListener=noop,o.once=noop,o.off=noop,o.removeListener=noop,o.removeAllListeners=noop,o.emit=noop,o.prependListener=noop,o.prependOnceListener=noop,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){(function(){var t,r,o,i,a={}.hasOwnProperty,s=function(e,t){function ctor(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return ctor.prototype=t.prototype,e.prototype=new ctor,e.__super__=t.prototype,e};i=n(20),o=n(19),t=n(0),r={},r.sniff=function(e){return null!=e.commonAncestorContainer?new r.BrowserRange(e):"string"==typeof e.start?new r.SerializedRange(e):e.start&&"object"==typeof e.start?new r.NormalizedRange(e):(console.error("Could not sniff range type"),!1)},r.RangeError=function(e){function RangeError(e,t,n){this.type=e,this.message=t,this.parent=null!=n?n:null,RangeError.__super__.constructor.call(this,this.message)}return s(RangeError,e),RangeError}(Error),r.BrowserRange=function(){function BrowserRange(e){this.commonAncestorContainer=e.commonAncestorContainer,this.startContainer=e.startContainer,this.startOffset=e.startOffset,this.endContainer=e.endContainer,this.endOffset=e.endOffset}return BrowserRange.prototype.normalize=function(e){var t,n;if(this.tainted)return console.error("You may only call normalize() once on a BrowserRange!"),!1;for(this.tainted=!0,n={},this._normalizeStart(n),this._normalizeEnd(n),t={},n.startOffset>0?n.start.nodeValue.length>n.startOffset?t.start=n.start.splitText(n.startOffset):t.start=n.start.nextSibling:t.start=n.start,n.start===n.end?(t.start.nodeValue.length>n.endOffset-n.startOffset&&t.start.splitText(n.endOffset-n.startOffset),t.end=t.start):(n.end.nodeValue.length>n.endOffset&&n.end.splitText(n.endOffset),t.end=n.end),t.commonAncestor=this.commonAncestorContainer;t.commonAncestor.nodeType!==o.NodeTypes.ELEMENT_NODE;)t.commonAncestor=t.commonAncestor.parentNode;return new r.NormalizedRange(t)},BrowserRange.prototype._normalizeStart=function(e){return this.startContainer.nodeType===o.NodeTypes.ELEMENT_NODE?(e.start=o.getFirstTextNodeNotBefore(this.startContainer.childNodes[this.startOffset]),e.startOffset=0):(e.start=this.startContainer,e.startOffset=this.startOffset)},BrowserRange.prototype._normalizeEnd=function(e){var t,n;if(this.endContainer.nodeType!==o.NodeTypes.ELEMENT_NODE)return e.end=this.endContainer,e.endOffset=this.endOffset;if(null!=(n=this.endContainer.childNodes[this.endOffset])){for(t=n;null!=t&&t.nodeType!==o.NodeTypes.TEXT_NODE;)t=t.firstChild;null!=t&&(e.end=t,e.endOffset=0)}return null==e.end?(n=this.endOffset?this.endContainer.childNodes[this.endOffset-1]:this.endContainer.previousSibling,e.end=o.getLastTextNodeUpTo(n),e.endOffset=e.end.nodeValue.length):void 0},BrowserRange.prototype.serialize=function(e,t){return this.normalize(e).serialize(e,t)},BrowserRange}(),r.NormalizedRange=function(){function NormalizedRange(e){this.commonAncestor=e.commonAncestor,this.start=e.start,this.end=e.end}return NormalizedRange.prototype.normalize=function(e){return this},NormalizedRange.prototype.limit=function(e){var n,r,o,i,a,s;if(n=t.grep(this.textNodes(),function(n){return n.parentNode===e||t.contains(e,n.parentNode)}),!n.length)return null;for(this.start=n[0],this.end=n[n.length-1],o=t(this.start).parents(),s=t(this.end).parents(),i=0,a=s.length;i<a;i++)if(r=s[i],-1!==o.index(r)){this.commonAncestor=r;break}return this},NormalizedRange.prototype.serialize=function(e,n){var a,s,u;return s=function(r,a){var s,u,l,c,f,d,h,p;for(c=n?t(r).parents(":not("+n+")").eq(0):t(r).parent(),f=i.fromNode(c,e)[0],d=o.getTextNodes(c),u=d.slice(0,d.index(r)),l=0,h=0,p=u.length;h<p;h++)s=u[h],l+=s.nodeValue.length;return a?[f,l+r.nodeValue.length]:[f,l]},u=s(this.start),a=s(this.end,!0),new r.SerializedRange({start:u[0],end:a[0],startOffset:u[1],endOffset:a[1]})},NormalizedRange.prototype.text=function(){var e;return function(){var t,n,r,o;for(r=this.textNodes(),o=[],t=0,n=r.length;t<n;t++)e=r[t],o.push(e.nodeValue);return o}.call(this).join("")},NormalizedRange.prototype.textNodes=function(){var e,n,r,i;return r=o.getTextNodes(t(this.commonAncestor)),i=[r.index(this.start),r.index(this.end)],n=i[0],e=i[1],t.makeArray(r.slice(n,+e+1||9e9))},NormalizedRange}(),r.SerializedRange=function(){function SerializedRange(e){this.start=e.start,this.startOffset=e.startOffset,this.end=e.end,this.endOffset=e.endOffset}return SerializedRange.prototype.normalize=function(e){var n,a,s,u,l,c,f,d,h,p,g,m,v,y;for(c={},v=["start","end"],h=0,g=v.length;h<g;h++){l=v[h];try{u=i.toNode(this[l],e)}catch(e){throw a=e,new r.RangeError(l,"Error while finding "+l+" node: "+this[l]+": "+a,a)}if(!u)throw new r.RangeError(l,"Couldn't find "+l+" node: "+this[l]);for(s=0,f=this[l+"Offset"],"end"===l&&(f-=1),y=o.getTextNodes(t(u)),p=0,m=y.length;p<m;p++){if(d=y[p],s+d.nodeValue.length>f){c[l+"Container"]=d,c[l+"Offset"]=this[l+"Offset"]-s;break}s+=d.nodeValue.length}if(null==c[l+"Offset"])throw new r.RangeError(l+"offset","Couldn't find offset "+this[l+"Offset"]+" in element "+this[l])}return n=null!=document.compareDocumentPosition?function(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY}:function(e,t){return e.contains(t)},t(c.startContainer).parents().each(function(){var e;if(e=c.endContainer.nodeType===o.NodeTypes.TEXT_NODE?c.endContainer.parentNode:c.endContainer,n(this,e))return c.commonAncestorContainer=this,!1}),new r.BrowserRange(c).normalize(e)},SerializedRange.prototype.serialize=function(e,t){return this.normalize(e).serialize(e,t)},SerializedRange.prototype.toObject=function(){return{start:this.start,startOffset:this.startOffset,end:this.end,endOffset:this.endOffset}},SerializedRange}(),e.exports=r}).call(this)},function(e,t){},function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r=n(4),o=_interopRequireDefault(r),i=n(0),a=_interopRequireDefault(i);(0,a.default)(document).ready(function(){(0,a.default)("#article").length>0&&(o.default.bind("o",function(){(0,a.default)("div#article_toolbar ul.links a.original")[0].click()}),o.default.bind("f",function(){(0,a.default)("div#article_toolbar ul.links a.favorite")[0].click()}),o.default.bind("a",function(){(0,a.default)("div#article_toolbar ul.links a.markasread")[0].click()}),o.default.bind("del",function(){(0,a.default)("div#article_toolbar ul.links a.delete")[0].click()}))})},function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r=n(0),o=_interopRequireDefault(r),i=n(4),a=_interopRequireDefault(i);(0,o.default)(document).ready(function(){a.default.bind("s",function(){return(0,o.default)("#search").trigger("click"),(0,o.default)("#search_entry_term").focus(),!1})})},function(e,t,n){"use strict";function toggleSaveLinkForm(e,t){(0,o.default)("#add-link-result").empty();var n=(0,o.default)("#bagit"),r=(0,o.default)("#bagit-form");n.toggleClass("active-current"),0===n.length&&("undefined"!==t&&t?r.css({position:"absolute",top:t.pageY,left:t.pageX-200}):r.css({position:"relative",top:"auto",left:"auto"}));var i=(0,o.default)("#search-form"),a=(0,o.default)("#plainurl");0!==i.length&&((0,o.default)("#search").removeClass("current"),(0,o.default)("#search-arrow").removeClass("arrow-down"),i.hide()),r.toggle(),(0,o.default)("#content").toggleClass("opacity03"),"undefined"!==e&&e&&a.val(e),a.focus()}Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=toggleSaveLinkForm},,,,function(e,t){},,,,function(e,t,n){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var r=n(0),o=_interopRequireDefault(r);n(21),n(41),n(40);var i=n(42),a=_interopRequireDefault(i);n(46),(0,o.default)(document).ready(function(){function toggleSearch(){(0,o.default)("#search-form").toggle(),(0,o.default)("#search").toggleClass("current"),(0,o.default)("#search").toggleClass("active-current"),(0,o.default)("#search-arrow").toggleClass("arrow-down"),(0,o.default)("#search").hasClass("current")?(0,o.default)("#content").addClass("opacity03"):(0,o.default)("#content").removeClass("opacity03")}function toggleFilter(){(0,o.default)("#filters").toggle()}function toggleDownload(){(0,o.default)("#download-form").toggle()}function toggleBagit(){(0,o.default)("#bagit-form").toggle(),(0,o.default)("#bagit").toggleClass("current"),(0,o.default)("#bagit").toggleClass("active-current"),(0,o.default)("#bagit-arrow").toggleClass("arrow-down"),(0,o.default)("#bagit").hasClass("current")?(0,o.default)("#content").addClass("opacity03"):(0,o.default)("#content").removeClass("opacity03")}function closePopups(){(0,o.default)("#links .messages").hide(),(0,o.default)("#links > li > a").removeClass("active-current"),(0,o.default)("#links > li > a").removeClass("current"),(0,o.default)("[id$=-arrow]").removeClass("arrow-down"),(0,o.default)("#content").removeClass("opacity03")}(0,o.default)("#menu").click(function(){(0,o.default)("#links").toggleClass("menu--open");var e=(0,o.default)("#content");e.hasClass("opacity03")&&e.removeClass("opacity03")}),(0,o.default)("#nav-btn-add-tag").on("click",function(){return(0,o.default)(".baggy-add-tag").toggle(100),(0,o.default)(".nav-panel-menu").addClass("hidden"),(0,o.default)("#tag_label").focus(),!1}),(0,o.default)("div").is("#filters")&&((0,o.default)("#button_filters").show(),(0,o.default)("#clear_form_filters").on("click",function(){return(0,o.default)("#filters input").val(""),(0,o.default)("#filters :checked").removeAttr("checked"),!1})),window.location.href.match("&closewin=true")&&window.close(),(0,o.default)("a.closeMessage").on("click",function(){return(0,o.default)(void 0).parents("div.messages").slideUp(300,function(){(0,o.default)(void 0).remove()}),!1}),(0,o.default)("#search-form").hide(),(0,o.default)("#bagit-form").hide(),(0,o.default)("#filters").hide(),(0,o.default)("#download-form").hide(),(0,o.default)("#search").click(function(){closePopups(),toggleSearch(),(0,o.default)("#searchfield").focus()}),(0,o.default)(".filter-btn").click(function(){closePopups(),toggleFilter()}),(0,o.default)(".download-btn").click(function(){closePopups(),toggleDownload()}),(0,o.default)("#bagit").click(function(){closePopups(),toggleBagit(),(0,o.default)("#plainurl").focus()}),(0,o.default)("#search-form-close").click(function(){toggleSearch()}),(0,o.default)("#filter-form-close").click(function(){toggleFilter()}),(0,o.default)("#download-form-close").click(function(){toggleDownload()}),(0,o.default)("#bagit-form-close").click(function(){toggleBagit()});var e=(0,o.default)("#bagit-form-form");e.submit(function(t){(0,o.default)("body").css("cursor","wait"),(0,o.default)("#add-link-result").empty(),o.default.ajax({type:e.attr("method"),url:e.attr("action"),data:e.serialize(),success:function(){(0,o.default)("#add-link-result").html("Done!"),(0,o.default)("#plainurl").val("").blur(""),(0,o.default)("body").css("cursor","auto")},error:function(){(0,o.default)("#add-link-result").html("Failed!"),(0,o.default)("body").css("cursor","auto")}}),t.preventDefault()}),(0,o.default)('article a[href^="http"]').after(function(){return'<a href="'+(0,o.default)(void 0).attr("href")+'" class="add-to-wallabag-link-after" title="add to wallabag"></a>'}),(0,o.default)(".add-to-wallabag-link-after").click(function(e){(0,a.default)((0,o.default)(void 0).attr("href"),e),e.preventDefault()})})}]); \ No newline at end of file | ||
diff --git a/web/bundles/wallabagcore/material.js b/web/bundles/wallabagcore/material.js index 96366cd3..ffd0cf1f 100644 --- a/web/bundles/wallabagcore/material.js +++ b/web/bundles/wallabagcore/material.js | |||
@@ -1 +1 @@ | |||
!function(t){function __webpack_require__(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,__webpack_require__),i.l=!0,i.exports}var e={};__webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.i=function(t){return t},__webpack_require__.d=function(t,e,n){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,"a",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p="/bundles/wallabagcore/",__webpack_require__(__webpack_require__.s=51)}([function(t,e,n){var i,r;!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function isArrayLike(t){var e=!!t&&"length"in t&&t.length,n=v.type(t);return"function"!==n&&!v.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function winnow(t,e,n){if(v.isFunction(e))return v.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return v.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(C.test(e))return v.filter(e,t,n);e=v.filter(e,t)}return v.grep(t,function(t){return d.call(e,t)>-1!==n})}function sibling(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function createOptions(t){var e={};return v.each(t.match(A)||[],function(t,n){e[n]=!0}),e}function completed(){s.removeEventListener("DOMContentLoaded",completed),n.removeEventListener("load",completed),v.ready()}function Data(){this.expando=v.expando+Data.uid++}function dataAttr(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(R,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:I.test(n)?v.parseJSON(n):n)}catch(t){}M.set(t,e,n)}else n=void 0;return n}function adjustCSS(t,e,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return v.css(t,e,"")},l=s(),u=n&&n[3]||(v.cssNumber[e]?"":"px"),c=(v.cssNumber[e]||"px"!==u&&+l)&&z.exec(v.css(t,e));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{o=o||".5",c/=o,v.style(t,e,c+u)}while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function getAll(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&v.nodeName(t,e)?v.merge([t],n):n}function setGlobalEval(t,e){for(var n=0,i=t.length;n<i;n++)N.set(t[n],"globalEval",!e||N.get(e[n],"globalEval"))}function buildFragment(t,e,n,i,r){for(var o,a,s,l,u,c,d=e.createDocumentFragment(),f=[],h=0,p=t.length;h<p;h++)if((o=t[h])||0===o)if("object"===v.type(o))v.merge(f,o.nodeType?[o]:o);else if(V.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(j.exec(o)||["",""])[1].toLowerCase(),l=B[s]||B._default,a.innerHTML=l[1]+v.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;v.merge(f,a.childNodes),a=d.firstChild,a.textContent=""}else f.push(e.createTextNode(o));for(d.textContent="",h=0;o=f[h++];)if(i&&v.inArray(o,i)>-1)r&&r.push(o);else if(u=v.contains(o.ownerDocument,o),a=getAll(d.appendChild(o),"script"),u&&setGlobalEval(a),n)for(c=0;o=a[c++];)W.test(o.type||"")&&n.push(o);return d}function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return s.activeElement}catch(t){}}function on(t,e,n,i,r,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(s in e)on(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=returnFalse;else if(!r)return t;return 1===o&&(a=r,r=function(t){return v().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=v.guid++)),t.each(function(){v.event.add(this,e,r,i,n)})}function manipulationTarget(t,e){return v.nodeName(t,"table")&&v.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function disableScript(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function restoreScript(t){var e=G.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function cloneCopyEvent(t,e){var n,i,r,o,a,s,l,u;if(1===e.nodeType){if(N.hasData(t)&&(o=N.access(t),a=N.set(e,o),u=o.events)){delete a.handle,a.events={};for(r in u)for(n=0,i=u[r].length;n<i;n++)v.event.add(e,r,u[r][n])}M.hasData(t)&&(s=M.access(t),l=v.extend({},s),M.set(e,l))}}function fixInput(t,e){var n=e.nodeName.toLowerCase();"input"===n&&H.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function domManip(t,e,n,i){e=u.apply([],e);var r,o,a,s,l,c,d=0,f=t.length,h=f-1,p=e[0],m=v.isFunction(p);if(m||f>1&&"string"==typeof p&&!g.checkClone&&Q.test(p))return t.each(function(r){var o=t.eq(r);m&&(e[0]=p.call(this,r,o.html())),domManip(o,e,n,i)});if(f&&(r=buildFragment(e,t[0].ownerDocument,!1,t,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=v.map(getAll(r,"script"),disableScript),s=a.length;d<f;d++)l=r,d!==h&&(l=v.clone(l,!0,!0),s&&v.merge(a,getAll(l,"script"))),n.call(t[d],l,d);if(s)for(c=a[a.length-1].ownerDocument,v.map(a,restoreScript),d=0;d<s;d++)l=a[d],W.test(l.type||"")&&!N.access(l,"globalEval")&&v.contains(c,l)&&(l.src?v._evalUrl&&v._evalUrl(l.src):v.globalEval(l.textContent.replace(K,"")))}return t}function remove(t,e,n){for(var i,r=e?v.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||v.cleanData(getAll(i)),i.parentNode&&(n&&v.contains(i.ownerDocument,i)&&setGlobalEval(getAll(i,"script")),i.parentNode.removeChild(i));return t}function actualDisplay(t,e){var n=v(e.createElement(t)).appendTo(e.body),i=v.css(n[0],"display");return n.detach(),i}function defaultDisplay(t){var e=s,n=J[t];return n||(n=actualDisplay(t,e),"none"!==n&&n||(Z=(Z||v("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Z[0].contentDocument,e.write(),e.close(),n=actualDisplay(t,e),Z.detach()),J[t]=n),n}function curCSS(t,e,n){var i,r,o,a,s=t.style;return n=n||nt(t),a=n?n.getPropertyValue(e)||n[e]:void 0,""!==a&&void 0!==a||v.contains(t.ownerDocument,t)||(a=v.style(t,e)),n&&!g.pixelMarginRight()&&et.test(a)&&tt.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),void 0!==a?a+"":a}function addGetHookIf(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function vendorPropName(t){if(t in ut)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=lt.length;n--;)if((t=lt[n]+e)in ut)return t}function setPositiveNumber(t,e,n){var i=z.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function augmentWidthOrHeight(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=v.css(t,n+F[o],!0,r)),i?("content"===n&&(a-=v.css(t,"padding"+F[o],!0,r)),"margin"!==n&&(a-=v.css(t,"border"+F[o]+"Width",!0,r))):(a+=v.css(t,"padding"+F[o],!0,r),"padding"!==n&&(a+=v.css(t,"border"+F[o]+"Width",!0,r)));return a}function getWidthOrHeight(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=nt(t),a="border-box"===v.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(r=curCSS(t,e,o),(r<0||null==r)&&(r=t.style[e]),et.test(r))return r;i=a&&(g.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+augmentWidthOrHeight(t,e,n||(a?"border":"content"),i,o)+"px"}function showHide(t,e){for(var n,i,r,o=[],a=0,s=t.length;a<s;a++)i=t[a],i.style&&(o[a]=N.get(i,"olddisplay"),n=i.style.display,e?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&q(i)&&(o[a]=N.access(i,"olddisplay",defaultDisplay(i.nodeName)))):(r=q(i),"none"===n&&r||N.set(i,"olddisplay",r?n:v.css(i,"display"))));for(a=0;a<s;a++)i=t[a],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[a]||"":"none"));return t}function Tween(t,e,n,i,r){return new Tween.prototype.init(t,e,n,i,r)}function createFxNow(){return n.setTimeout(function(){ct=void 0}),ct=v.now()}function genFx(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)n=F[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function createTween(t,e,n){for(var i,r=(Animation.tweeners[e]||[]).concat(Animation.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function defaultPrefilter(t,e,n){var i,r,o,a,s,l,u,c=this,d={},f=t.style,h=t.nodeType&&q(t),p=N.get(t,"fxshow");n.queue||(s=v._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,v.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=v.css(t,"display"),"inline"===("none"===u?N.get(t,"olddisplay")||defaultDisplay(t.nodeName):u)&&"none"===v.css(t,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],ft.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!p||void 0===p[i])continue;h=!0}d[i]=p&&p[i]||v.style(t,i)}else u=void 0;if(v.isEmptyObject(d))"inline"===("none"===u?defaultDisplay(t.nodeName):u)&&(f.display=u);else{p?"hidden"in p&&(h=p.hidden):p=N.access(t,"fxshow",{}),o&&(p.hidden=!h),h?v(t).show():c.done(function(){v(t).hide()}),c.done(function(){var e;N.remove(t,"fxshow");for(e in d)v.style(t,e,d[e])});for(i in d)a=createTween(h?p[i]:0,i,c),i in p||(p[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function propFilter(t,e){var n,i,r,o,a;for(n in t)if(i=v.camelCase(n),r=e[i],o=t[n],v.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=v.cssHooks[i])&&"expand"in a){o=a.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function Animation(t,e,n){var i,r,o=0,a=Animation.prefilters.length,s=v.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=ct||createFxNow(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,o=1-i,a=0,l=u.tweens.length;a<l;a++)u.tweens[a].run(o);return s.notifyWith(t,[u,o,n]),o<1&&l?n:(s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:v.extend({},e),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:e,originalOptions:n,startTime:ct||createFxNow(),duration:n.duration,tweens:[],createTween:function(e,n){var i=v.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(propFilter(c,u.opts.specialEasing);o<a;o++)if(i=Animation.prefilters[o].call(u,t,c,u.opts))return v.isFunction(i.stop)&&(v._queueHooks(u.elem,u.opts.queue).stop=v.proxy(i.stop,i)),i;return v.map(c,createTween,u),v.isFunction(u.opts.start)&&u.opts.start.call(t,u),v.fx.timer(v.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function getClass(t){return t.getAttribute&&t.getAttribute("class")||""}function addToPrefiltersOrTransports(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(A)||[];if(v.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function inspectPrefiltersOrTransports(t,e,n,i){function inspect(a){var s;return r[a]=!0,v.each(t[a]||[],function(t,a){var l=a(e,n,i);return"string"!=typeof l||o||r[l]?o?!(s=l):void 0:(e.dataTypes.unshift(l),inspect(l),!1)}),s}var r={},o=t===_t;return inspect(e.dataTypes[0])||!r["*"]&&inspect("*")}function ajaxExtend(t,e){var n,i,r=v.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&v.extend(!0,t,i),t}function ajaxHandleResponses(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.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]||t.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 ajaxConvert(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if(s=r.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function buildParams(t,e,n,i){var r;if(v.isArray(e))v.each(e,function(e,r){n||Dt.test(t)?i(t,r):buildParams(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==v.type(e))i(t,e);else for(r in e)buildParams(t+"["+r+"]",e[r],n,i)}function getWindow(t){return v.isWindow(t)?t:9===t.nodeType&&t.defaultView}var a=[],s=n.document,l=a.slice,u=a.concat,c=a.push,d=a.indexOf,f={},h=f.toString,p=f.hasOwnProperty,g={},v=function(t,e){return new v.fn.init(t,e)},m=function(t,e){return e.toUpperCase()};v.fn=v.prototype={jquery:"2.2.4",constructor:v,selector:"",length:0,toArray:function(){return l.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:l.call(this)},pushStack:function(t){var e=v.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return v.each(this,t)},map:function(t){return this.pushStack(v.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},v.extend=v.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],i=t[e],a!==i&&(u&&i&&(v.isPlainObject(i)||(r=v.isArray(i)))?(r?(r=!1,o=n&&v.isArray(n)?n:[]):o=n&&v.isPlainObject(n)?n:{},a[e]=v.extend(u,o,i)):void 0!==i&&(a[e]=i));return a},v.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===v.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!v.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==v.type(t)||t.nodeType||v.isWindow(t))return!1;if(t.constructor&&!p.call(t,"constructor")&&!p.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||p.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=v.trim(t))&&(1===t.indexOf("use strict")?(e=s.createElement("script"),e.text=t,s.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,m)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(isArrayLike(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(isArrayLike(Object(t))?v.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:d.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(isArrayLike(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return u.apply([],a)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v.isFunction(t))return i=l.call(arguments,2),r=function(){return t.apply(e||this,i.concat(l.call(arguments)))},r.guid=t.guid=t.guid||v.guid++,r},now:Date.now,support:g}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=a[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){f["[object "+e+"]"]=e.toLowerCase()});var y=function(t){function Sizzle(t,e,i,r){var o,s,u,c,d,p,m,y,T=e&&e.ownerDocument,C=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==C&&9!==C&&11!==C)return i;if(!r&&((e?e.ownerDocument||e:x)!==h&&f(e),e=e||h,g)){if(11!==C&&(p=Z.exec(t)))if(o=p[1]){if(9===C){if(!(u=e.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(T&&(u=T.getElementById(o))&&b(e,u)&&u.id===o)return i.push(u),i}else{if(p[2])return M.apply(i,e.getElementsByTagName(t)),i;if((o=p[3])&&n.getElementsByClassName&&e.getElementsByClassName)return M.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!S[t+" "]&&(!v||!v.test(t))){if(1!==C)T=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(tt,"\\$&"):e.setAttribute("id",c=w),m=a(t),s=m.length,d=Y.test(c)?"#"+c:"[id='"+c+"']";s--;)m[s]=d+" "+toSelector(m[s]);y=m.join(","),T=J.test(t)&&testContext(e.parentNode)||e}if(y)try{return M.apply(i,T.querySelectorAll(y)),i}catch(t){}finally{c===w&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,i,r)}function createCache(){function cache(e,n){return t.push(e+" ")>i.cacheLength&&delete cache[t.shift()],cache[e+" "]=n}var t=[];return cache}function markFunction(t){return t[w]=!0,t}function assert(t){var e=h.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function addHandle(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function siblingCheck(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||A)-(~t.sourceIndex||A);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function createPositionalPseudo(t){return markFunction(function(e){return e=+e,markFunction(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function testContext(t){return t&&void 0!==t.getElementsByTagName&&t}function setFilters(){}function toSelector(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function addCombinator(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=C++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,a){var s,l,u,c=[T,o];if(a){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,a))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(u=e[w]||(e[w]={}),l=u[e.uniqueID]||(u[e.uniqueID]={}),(s=l[i])&&s[0]===T&&s[1]===o)return c[2]=s[2];if(l[i]=c,c[2]=t(e,n,a))return!0}}}function elementMatcher(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function multipleContexts(t,e,n){for(var i=0,r=e.length;i<r;i++)Sizzle(t,e[i],n);return n}function condense(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function setMatcher(t,e,n,i,r,o){return i&&!i[w]&&(i=setMatcher(i)),r&&!r[w]&&(r=setMatcher(r,o)),markFunction(function(o,a,s,l){var u,c,d,f=[],h=[],p=a.length,g=o||multipleContexts(e||"*",s.nodeType?[s]:s,[]),v=!t||!o&&e?g:condense(g,f,t,s,l),m=n?r||(o?t:p||i)?[]:a:v;if(n&&n(v,m,s,l),i)for(u=condense(m,h),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(m[h[c]]=!(v[h[c]]=d));if(o){if(r||t){if(r){for(u=[],c=m.length;c--;)(d=m[c])&&u.push(v[c]=d);r(null,m=[],u,l)}for(c=m.length;c--;)(d=m[c])&&(u=r?R(o,d):f[c])>-1&&(o[u]=!(a[u]=d))}}else m=condense(m===a?m.splice(p,m.length):m),r?r(null,a,m,l):M.apply(a,m)})}function matcherFromTokens(t){for(var e,n,r,o=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,c=addCombinator(function(t){return t===e},s,!0),d=addCombinator(function(t){return R(e,t)>-1},s,!0),f=[function(t,n,i){var r=!a&&(i||n!==u)||((e=n).nodeType?c(t,n,i):d(t,n,i));return e=null,r}];l<o;l++)if(n=i.relative[t[l].type])f=[addCombinator(elementMatcher(f),n)];else{if(n=i.filter[t[l].type].apply(null,t[l].matches),n[w]){for(r=++l;r<o&&!i.relative[t[r].type];r++);return setMatcher(l>1&&elementMatcher(f),l>1&&toSelector(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),n,l<r&&matcherFromTokens(t.slice(l,r)),r<o&&matcherFromTokens(t=t.slice(r)),r<o&&toSelector(t))}f.push(n)}return elementMatcher(f)}function matcherFromGroupMatchers(t,e){var n=e.length>0,r=t.length>0,o=function(o,a,s,l,c){var d,p,v,m=0,y="0",b=o&&[],w=[],x=u,C=o||r&&i.find.TAG("*",c),k=T+=null==x?1:Math.random()||.1,E=C.length;for(c&&(u=a===h||a||c);y!==E&&null!=(d=C[y]);y++){if(r&&d){for(p=0,a||d.ownerDocument===h||(f(d),s=!g);v=t[p++];)if(v(d,a||h,s)){l.push(d);break}c&&(T=k)}n&&((d=!v&&d)&&m--,o&&b.push(d))}if(m+=y,n&&y!==m){for(p=0;v=e[p++];)v(b,w,a,s);if(o){if(m>0)for(;y--;)b[y]||w[y]||(w[y]=O.call(l));w=condense(w)}M.apply(l,w),c&&!o&&w.length>0&&m+e.length>1&&Sizzle.uniqueSort(l)}return c&&(T=k,u=x),b};return n?markFunction(o):o}var e,n,i,r,o,a,s,l,u,c,d,f,h,p,g,v,m,y,b,w="sizzle"+1*new Date,x=t.document,T=0,C=0,k=createCache(),E=createCache(),S=createCache(),_=function(t,e){return t===e&&(d=!0),0},A=1<<31,P={}.hasOwnProperty,D=[],O=D.pop,N=D.push,M=D.push,I=D.slice,R=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",q="\\["+z+"*("+F+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+z+"*\\]",H=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",j=new RegExp(z+"+","g"),W=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g"),B=new RegExp("^"+z+"*,"+z+"*"),V=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),X=new RegExp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),$=new RegExp(H),Y=new RegExp("^"+F+"$"),U={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,tt=/'|\\/g,et=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),nt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},it=function(){f()};try{M.apply(D=I.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(t){M={apply:D.length?function(t,e){N.apply(t,I.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}n=Sizzle.support={},o=Sizzle.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},f=Sizzle.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:x;return a!==h&&9===a.nodeType&&a.documentElement?(h=a,p=h.documentElement,g=!o(h),(r=h.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",it,!1):r.attachEvent&&r.attachEvent("onunload",it)),n.attributes=assert(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=assert(function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(h.getElementsByClassName),n.getById=assert(function(t){return p.appendChild(t).id=w,!h.getElementsByName||!h.getElementsByName(w).length}),n.getById?(i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}},i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}}):(delete i.find.ID,i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],v=[],(n.qsa=K.test(h.querySelectorAll))&&(assert(function(t){p.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+z+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+z+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+w+"-]").length||v.push("~="),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||v.push(".#.+[+~]")}),assert(function(t){var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+z+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=K.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&assert(function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),m.push("!=",H)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=K.test(p.compareDocumentPosition),b=e||K.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},_=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===h||t.ownerDocument===x&&b(x,t)?-1:e===h||e.ownerDocument===x&&b(x,e)?1:c?R(c,t)-R(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t===h?-1:e===h?1:r?-1:o?1:c?R(c,t)-R(c,e):0;if(r===o)return siblingCheck(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?siblingCheck(a[i],s[i]):a[i]===x?-1:s[i]===x?1:0},h):h},Sizzle.matches=function(t,e){return Sizzle(t,null,null,e)},Sizzle.matchesSelector=function(t,e){if((t.ownerDocument||t)!==h&&f(t),e=e.replace(X,"='$1']"),n.matchesSelector&&g&&!S[e+" "]&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return Sizzle(e,h,null,[t]).length>0},Sizzle.contains=function(t,e){return(t.ownerDocument||t)!==h&&f(t),b(t,e)},Sizzle.attr=function(t,e){(t.ownerDocument||t)!==h&&f(t);var r=i.attrHandle[e.toLowerCase()],o=r&&P.call(i.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},Sizzle.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},Sizzle.uniqueSort=function(t){var e,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(_),d){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return c=null,t},r=Sizzle.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},i=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Sizzle.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Sizzle.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return U.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&$.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=k[t+" "];return e||(e=new RegExp("(^|"+z+")"+t+"("+z+"|$)"))&&k(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=Sizzle.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(j," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,f,h,p,g=o!==a?"nextSibling":"previousSibling",v=e.parentNode,m=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(v){if(o){for(;g;){for(f=e;f=f[g];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&y){for(f=v,d=f[w]||(f[w]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[t]||[],h=u[0]===T&&u[1],b=h&&u[2],f=h&&v.childNodes[h];f=++h&&f&&f[g]||(b=h=0)||p.pop();)if(1===f.nodeType&&++b&&f===e){c[t]=[T,h,b];break}}else if(y&&(f=e,d=f[w]||(f[w]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[t]||[],h=u[0]===T&&u[1],b=h),!1===b)for(;(f=++h&&f&&f[g]||(b=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++b||(y&&(d=f[w]||(f[w]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),c[t]=[T,b]),f!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||Sizzle.error("unsupported pseudo: "+t);return r[w]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?markFunction(function(t,n){for(var i,o=r(t,e),a=o.length;a--;)i=R(t,o[a]),t[i]=!(n[i]=o[a])}):function(t){return r(t,0,n)}):r}},pseudos:{not:markFunction(function(t){var e=[],n=[],i=s(t.replace(W,"$1"));return i[w]?markFunction(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:markFunction(function(t){return function(e){return Sizzle(t,e).length>0}}),contains:markFunction(function(t){return t=t.replace(et,nt),function(e){return(e.textContent||e.innerText||r(e)).indexOf(t)>-1}}),lang:markFunction(function(t){return Y.test(t||"")||Sizzle.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(t,e){return[e-1]}),eq:createPositionalPseudo(function(t,e,n){return[n<0?n+e:n]}),even:createPositionalPseudo(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:createPositionalPseudo(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:createPositionalPseudo(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:createPositionalPseudo(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},i.pseudos.nth=i.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(e);return setFilters.prototype=i.filters=i.pseudos,i.setFilters=new setFilters,a=Sizzle.tokenize=function(t,e){var n,r,o,a,s,l,u,c=E[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=i.preFilter;s;){n&&!(r=B.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=V.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?Sizzle.error(t):E(t,l).slice(0)},s=Sizzle.compile=function(t,e){var n,i=[],r=[],o=S[t+" "];if(!o){for(e||(e=a(t)),n=e.length;n--;)o=matcherFromTokens(e[n]),o[w]?i.push(o):r.push(o);o=S(t,matcherFromGroupMatchers(r,i)),o.selector=t}return o},l=Sizzle.select=function(t,e,r,o){var l,u,c,d,f,h="function"==typeof t&&t,p=!o&&a(t=h.selector||t);if(r=r||[],1===p.length){if(u=p[0]=p[0].slice(0),u.length>2&&"ID"===(c=u[0]).type&&n.getById&&9===e.nodeType&&g&&i.relative[u[1].type]){if(!(e=(i.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return r;h&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(l=U.needsContext.test(t)?0:u.length;l--&&(c=u[l],!i.relative[d=c.type]);)if((f=i.find[d])&&(o=f(c.matches[0].replace(et,nt),J.test(u[0].type)&&testContext(e.parentNode)||e))){if(u.splice(l,1),!(t=o.length&&toSelector(u)))return M.apply(r,o),r;break}}return(h||s(t,p))(o,e,!g,r,!e||J.test(t)&&testContext(e.parentNode)||e),r},n.sortStable=w.split("").sort(_).join("")===w,n.detectDuplicates=!!d,f(),n.sortDetached=assert(function(t){return 1&t.compareDocumentPosition(h.createElement("div"))}),assert(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||addHandle("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&assert(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||addHandle("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),assert(function(t){return null==t.getAttribute("disabled")})||addHandle(L,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),Sizzle}(n);v.find=y,v.expr=y.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=y.uniqueSort,v.text=y.getText,v.isXMLDoc=y.isXML,v.contains=y.contains;var b=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&v(t).is(n))break;i.push(t)}return i},w=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},x=v.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;v.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?v.find.matchesSelector(i,t)?[i]:[]:v.find.matches(t,v.grep(e,function(t){return 1===t.nodeType}))},v.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(v(t).filter(function(){for(e=0;e<n;e++)if(v.contains(r[e],this))return!0}));for(e=0;e<n;e++)v.find(t,r[e],i);return i=this.pushStack(n>1?v.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(winnow(this,t||[],!1))},not:function(t){return this.pushStack(winnow(this,t||[],!0))},is:function(t){return!!winnow(this,"string"==typeof t&&x.test(t)?v(t):t||[],!1).length}});var k,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(v.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||k,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:E.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof v?e[0]:e,v.merge(this,v.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:s,!0)),T.test(i[1])&&v.isPlainObject(e))for(i in e)v.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=s.getElementById(i[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=s,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):v.isFunction(t)?void 0!==n.ready?n.ready(t):t(v):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),v.makeArray(t,this))}).prototype=v.fn,k=v(s);var S=/^(?:parents|prev(?:Until|All))/,_={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({has:function(t){var e=v(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(v.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],a=x.test(t)||"string"!=typeof t?v(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?v.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?d.call(v(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),v.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return b(t,"parentNode")},parentsUntil:function(t,e,n){return b(t,"parentNode",n)},next:function(t){return sibling(t,"nextSibling")},prev:function(t){return sibling(t,"previousSibling")},nextAll:function(t){return b(t,"nextSibling")},prevAll:function(t){return b(t,"previousSibling")},nextUntil:function(t,e,n){return b(t,"nextSibling",n)},prevUntil:function(t,e,n){return b(t,"previousSibling",n)},siblings:function(t){return w((t.parentNode||{}).firstChild,t)},children:function(t){return w(t.firstChild)},contents:function(t){return t.contentDocument||v.merge([],t.childNodes)}},function(t,e){v.fn[t]=function(n,i){var r=v.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=v.filter(i,r)),this.length>1&&(_[t]||v.uniqueSort(r),S.test(t)&&r.reverse()),this.pushStack(r)}});var A=/\S+/g;v.Callbacks=function(t){t="string"==typeof t?createOptions(t):v.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function add(e){v.each(e,function(e,n){v.isFunction(n)?t.unique&&u.has(n)||o.push(n):n&&n.length&&"string"!==v.type(n)&&add(n)})}(arguments),n&&!e&&l()),this},remove:function(){return v.each(arguments,function(t,e){for(var n;(n=v.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?v.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},v.extend({Deferred:function(t){var e=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return v.Deferred(function(n){v.each(e,function(e,o){var a=v.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&v.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?v.extend(t,i):i}},r={};return i.pipe=i.then,v.each(e,function(t,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=l.call(arguments),a=o.length,s=1!==a||t&&v.isFunction(t.promise)?a:0,u=1===s?t:v.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?l.call(arguments):r,i===e?u.notifyWith(n,i):--s||u.resolveWith(n,i)}};if(a>1)for(e=new Array(a),n=new Array(a),i=new Array(a);r<a;r++)o[r]&&v.isFunction(o[r].promise)?o[r].promise().progress(c(r,n,e)).done(c(r,i,o)).fail(u.reject):--s;return s||u.resolveWith(i,o),u.promise()}});var P;v.fn.ready=function(t){return v.ready.promise().done(t),this},v.extend({isReady:!1,readyWait:1,holdReady:function(t){t?v.readyWait++:v.ready(!0)},ready:function(t){(!0===t?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==t&&--v.readyWait>0||(P.resolveWith(s,[v]),v.fn.triggerHandler&&(v(s).triggerHandler("ready"),v(s).off("ready"))))}}),v.ready.promise=function(t){return P||(P=v.Deferred(),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(v.ready):(s.addEventListener("DOMContentLoaded",completed),n.addEventListener("load",completed))),P.promise(t)},v.ready.promise();var D=function(t,e,n,i,r,o,a){var s=0,l=t.length,u=null==n;if("object"===v.type(n)){r=!0;for(s in n)D(t,e,s,n[s],!0,o,a)}else if(void 0!==i&&(r=!0,v.isFunction(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(v(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:u?e.call(t):l?e(t[0],n):o},O=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};Data.uid=1,Data.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!O(t))return{};var e=t[this.expando];return e||(e={},O(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[e]=n;else for(i in e)r[i]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?(i=this.get(t,e),void 0!==i?i:this.get(t,v.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{v.isArray(e)?i=e.concat(e.map(v.camelCase)):(r=v.camelCase(e),e in o?i=[e,r]:(i=r,i=i in o?[i]:i.match(A)||[])),n=i.length;for(;n--;)delete o[i[n]]}(void 0===e||v.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!v.isEmptyObject(e)}};var N=new Data,M=new Data,I=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/[A-Z]/g;v.extend({hasData:function(t){return M.hasData(t)||N.hasData(t)},data:function(t,e,n){return M.access(t,e,n)},removeData:function(t,e){M.remove(t,e)},_data:function(t,e,n){return N.access(t,e,n)},_removeData:function(t,e){N.remove(t,e)}}),v.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=M.get(o),1===o.nodeType&&!N.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=v.camelCase(i.slice(5)),dataAttr(o,i,r[i])));N.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){M.set(this,t)}):D(this,function(e){var n,i;if(o&&void 0===e){if(void 0!==(n=M.get(o,t)||M.get(o,t.replace(R,"-$&").toLowerCase())))return n;if(i=v.camelCase(t),void 0!==(n=M.get(o,i)))return n;if(void 0!==(n=dataAttr(o,i,void 0)))return n}else i=v.camelCase(t),this.each(function(){var n=M.get(this,i);M.set(this,i,e),t.indexOf("-")>-1&&void 0!==n&&M.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){M.remove(this,t)})}}),v.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=N.get(t,e),n&&(!i||v.isArray(n)?i=N.access(t,e,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=v.queue(t,e),i=n.length,r=n.shift(),o=v._queueHooks(t,e),a=function(){v.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return N.get(t,n)||N.access(t,n,{empty:v.Callbacks("once memory").add(function(){N.remove(t,[e+"queue",n])})})}}),v.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?v.queue(this[0],t):void 0===e?this:this.each(function(){var n=v.queue(this,t,e);v._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&v.dequeue(this,t)})},dequeue:function(t){return this.each(function(){v.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=v.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=N.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var L=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,z=new RegExp("^(?:([+-])=|)("+L+")([a-z%]*)$","i"),F=["Top","Right","Bottom","Left"],q=function(t,e){return t=e||t,"none"===v.css(t,"display")||!v.contains(t.ownerDocument,t)},H=/^(?:checkbox|radio)$/i,j=/<([\w:-]+)/,W=/^$|\/(?:java|ecma)script/i,B={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};B.optgroup=B.option,B.tbody=B.tfoot=B.colgroup=B.caption=B.thead,B.th=B.td;var V=/<|&#?\w+;/;!function(){var t=s.createDocumentFragment(),e=t.appendChild(s.createElement("div")),n=s.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var X=/^key/,$=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Y=/^([^.]*)(?:\.(.+)|)/;v.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,d,f,h,p,g,m=N.get(t);if(m)for(n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=v.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==v&&v.event.triggered!==e.type?v.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(A)||[""],u=e.length;u--;)s=Y.exec(e[u])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h&&(d=v.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=v.event.special[h]||{},c=v.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&v.expr.match.needsContext.test(r),namespace:p.join(".")},o),(f=l[h])||(f=l[h]=[],f.delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(h,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),v.event.global[h]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,d,f,h,p,g,m=N.hasData(t)&&N.get(t);if(m&&(l=m.events)){for(e=(e||"").match(A)||[""],u=e.length;u--;)if(s=Y.exec(e[u])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h){for(d=v.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,f=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(t,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,p,m.handle)||v.removeEvent(t,h,m.handle),delete l[h])}else for(h in l)v.event.remove(t,h+e[u],n,i,!0);v.isEmptyObject(l)&&N.remove(t,"handle events")}},dispatch:function(t){t=v.event.fix(t);var e,n,i,r,o,a=[],s=l.call(arguments),u=(N.get(this,"events")||{})[t.type]||[],c=v.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=v.event.handlers.call(this,t,u),e=0;(r=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(i=((v.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],n=0;n<s;n++)o=e[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?v(r,this).index(l)>-1:v.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||s,i=n.documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[v.expando])return t;var e,n,i,r=t.type,o=t,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=$.test(r)?this.mouseHooks:X.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,t=new v.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=s),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v.nodeName(this,"input"))return this.click(),!1},_default:function(t){return v.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},v.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},v.Event=function(t,e){if(!(this instanceof v.Event))return new v.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?returnTrue:returnFalse):this.type=t,e&&v.extend(this,e),this.timeStamp=t&&t.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=returnTrue,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=returnTrue,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){v.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||v.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),v.fn.extend({on:function(t,e,n,i){return on(this,t,e,n,i)},one:function(t,e,n,i){return on(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,v(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=returnFalse),this.each(function(){v.event.remove(this,t,n,e)})}});var U=/<script|<style|<link/i,Q=/checked\s*(?:[^=]|=\s*.checked.)/i,G=/^true\/(.*)/,K=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;v.extend({htmlPrefilter:function(t){return t.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,"<$1></$2>")},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=v.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||v.isXMLDoc(t)))for(a=getAll(s),o=getAll(t),i=0,r=o.length;i<r;i++)fixInput(o[i],a[i]);if(e)if(n)for(o=o||getAll(t),a=a||getAll(s),i=0,r=o.length;i<r;i++)cloneCopyEvent(o[i],a[i]);else cloneCopyEvent(t,s);return a=getAll(s,"script"),a.length>0&&setGlobalEval(a,!l&&getAll(t,"script")),s},cleanData:function(t){for(var e,n,i,r=v.event.special,o=0;void 0!==(n=t[o]);o++)if(O(n)){if(e=n[N.expando]){if(e.events)for(i in e.events)r[i]?v.event.remove(n,i):v.removeEvent(n,i,e.handle);n[N.expando]=void 0}n[M.expando]&&(n[M.expando]=void 0)}}}),v.fn.extend({domManip:domManip,detach:function(t){return remove(this,t,!0)},remove:function(t){return remove(this,t)},text:function(t){return D(this,function(t){return void 0===t?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return domManip(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){manipulationTarget(this,t).appendChild(t)}})},prepend:function(){return domManip(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=manipulationTarget(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return domManip(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return domManip(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(v.cleanData(getAll(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return v.clone(this,t,e)})},html:function(t){return D(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!U.test(t)&&!B[(j.exec(t)||["",""])[1].toLowerCase()]){t=v.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(v.cleanData(getAll(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return domManip(this,arguments,function(e){var n=this.parentNode;v.inArray(this,t)<0&&(v.cleanData(getAll(this)),n&&n.replaceChild(e,this))},t)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){v.fn[t]=function(t){for(var n,i=[],r=v(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),v(r[a])[e](n),c.apply(i,n.get());return this.pushStack(i)}});var Z,J={HTML:"block",BODY:"block"},tt=/^margin/,et=new RegExp("^("+L+")(?!px)[a-z%]+$","i"),nt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},it=function(t,e,n,i){var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=a[o];return r},rt=s.documentElement;!function(){function computeStyleTests(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",rt.appendChild(o);var s=n.getComputedStyle(a);t="1%"!==s.top,r="2px"===s.marginLeft,e="4px"===s.width,a.style.marginRight="50%",i="4px"===s.marginRight,rt.removeChild(o)}var t,e,i,r,o=s.createElement("div"),a=s.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),v.extend(g,{pixelPosition:function(){return computeStyleTests(),t},boxSizingReliable:function(){return null==e&&computeStyleTests(),e},pixelMarginRight:function(){return null==e&&computeStyleTests(),i},reliableMarginLeft:function(){return null==e&&computeStyleTests(),r},reliableMarginRight:function(){var t,e=a.appendChild(s.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",rt.appendChild(o),t=!parseFloat(n.getComputedStyle(e).marginRight),rt.removeChild(o),a.removeChild(e),t}}))}();var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"},lt=["Webkit","O","Moz","ms"],ut=s.createElement("div").style;v.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=curCSS(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=v.camelCase(e),l=t.style;if(e=v.cssProps[s]||(v.cssProps[s]=vendorPropName(s)||s),a=v.cssHooks[e]||v.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:l[e];o=typeof n,"string"===o&&(r=z.exec(n))&&r[1]&&(n=adjustCSS(t,e,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(v.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l[e]=n))}},css:function(t,e,n,i){var r,o,a,s=v.camelCase(e);return e=v.cssProps[s]||(v.cssProps[s]=vendorPropName(s)||s),a=v.cssHooks[e]||v.cssHooks[s],a&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=curCSS(t,e,i)),"normal"===r&&e in st&&(r=st[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),v.each(["height","width"],function(t,e){v.cssHooks[e]={get:function(t,n,i){if(n)return ot.test(v.css(t,"display"))&&0===t.offsetWidth?it(t,at,function(){return getWidthOrHeight(t,e,i)}):getWidthOrHeight(t,e,i)},set:function(t,n,i){var r,o=i&&nt(t),a=i&&augmentWidthOrHeight(t,e,i,"border-box"===v.css(t,"boxSizing",!1,o),o);return a&&(r=z.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=v.css(t,e)),setPositiveNumber(t,n,a)}}}),v.cssHooks.marginLeft=addGetHookIf(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(curCSS(t,"marginLeft"))||t.getBoundingClientRect().left-it(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),v.cssHooks.marginRight=addGetHookIf(g.reliableMarginRight,function(t,e){if(e)return it(t,{display:"inline-block"},curCSS,[t,"marginRight"])}),v.each({margin:"",padding:"",border:"Width"},function(t,e){v.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+F[i]+e]=o[i]||o[i-2]||o[0];return r}},tt.test(t)||(v.cssHooks[t+e].set=setPositiveNumber)}),v.fn.extend({css:function(t,e){return D(this,function(t,e,n){var i,r,o={},a=0;if(v.isArray(e)){for(i=nt(t),r=e.length;a<r;a++)o[e[a]]=v.css(t,e[a],!1,i);return o}return void 0!==n?v.style(t,e,n):v.css(t,e)},t,e,arguments.length>1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){q(this)?v(this).show():v(this).hide()})}}),v.Tween=Tween,Tween.prototype={constructor:Tween,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||v.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(v.cssNumber[n]?"":"px")},cur:function(){var t=Tween.propHooks[this.prop];return t&&t.get?t.get(this):Tween.propHooks._default.get(this)},run:function(t){var e,n=Tween.propHooks[this.prop];return this.options.duration?this.pos=e=v.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=v.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){v.fx.step[t.prop]?v.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[v.cssProps[t.prop]]&&!v.cssHooks[t.prop]?t.elem[t.prop]=t.now:v.style(t.elem,t.prop,t.now+t.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},v.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},v.fx=Tween.prototype.init,v.fx.step={};var ct,dt,ft=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;v.Animation=v.extend(Animation,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return adjustCSS(n.elem,t,z.exec(e),n),n}]},tweener:function(t,e){v.isFunction(t)?(e=t,t=["*"]):t=t.match(A);for(var n,i=0,r=t.length;i<r;i++)n=t[i],Animation.tweeners[n]=Animation.tweeners[n]||[],Animation.tweeners[n].unshift(e)},prefilters:[defaultPrefilter],prefilter:function(t,e){e?Animation.prefilters.unshift(t):Animation.prefilters.push(t)}}),v.speed=function(t,e,n){var i=t&&"object"==typeof t?v.extend({},t):{complete:n||!n&&e||v.isFunction(t)&&t,duration:t,easing:n&&e||e&&!v.isFunction(e)&&e};return i.duration=v.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in v.fx.speeds?v.fx.speeds[i.duration]:v.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v.isFunction(i.old)&&i.old.call(this),i.queue&&v.dequeue(this,i.queue)},i},v.fn.extend({fadeTo:function(t,e,n,i){return this.filter(q).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=v.isEmptyObject(t),o=v.speed(e,n,i),a=function(){var e=Animation(this,v.extend({},t),o);(r||N.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=v.timers,a=N.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ht.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||v.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=N.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=v.timers,a=i?i.length:0;for(n.finish=!0,v.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(t,e){var n=v.fn[e];v.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(genFx(e,!0),t,i,r)}}),v.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){v.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),v.timers=[],v.fx.tick=function(){var t,e=0,n=v.timers;for(ct=v.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||v.fx.stop(),ct=void 0},v.fx.timer=function(t){v.timers.push(t),t()?v.fx.start():v.timers.pop()},v.fx.interval=13,v.fx.start=function(){dt||(dt=n.setInterval(v.fx.tick,v.fx.interval))},v.fx.stop=function(){n.clearInterval(dt),dt=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,e){return t=v.fx?v.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}})},function(){var t=s.createElement("input"),e=s.createElement("select"),n=e.appendChild(s.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=n.selected,e.disabled=!0,g.optDisabled=!n.disabled,t=s.createElement("input"),t.value="t",t.type="radio",g.radioValue="t"===t.value}();var pt,gt=v.expr.attrHandle;v.fn.extend({attr:function(t,e){return D(this,v.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){v.removeAttr(this,t)})}}),v.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?v.prop(t,e,n):(1===o&&v.isXMLDoc(t)||(e=e.toLowerCase(),r=v.attrHooks[e]||(v.expr.match.bool.test(e)?pt:void 0)),void 0!==n?null===n?void v.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=v.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&v.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(A);if(o&&1===t.nodeType)for(;n=o[r++];)i=v.propFix[n]||n,v.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),pt={set:function(t,e,n){return!1===e?v.removeAttr(t,n):t.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(t,e){var n=gt[e]||v.find.attr;gt[e]=function(t,e,i){var r,o;return i||(o=gt[e],gt[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,gt[e]=o),r}});var vt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;v.fn.extend({prop:function(t,e){return D(this,v.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[v.propFix[t]||t]})}}),v.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&v.isXMLDoc(t)||(e=v.propFix[e]||e,r=v.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=v.find.attr(t,"tabindex");return e?parseInt(e,10):vt.test(t.nodeName)||mt.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(v.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this});v.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(v.isFunction(t))return this.each(function(e){v(this).addClass(t.call(this,e,getClass(this)))});if("string"==typeof t&&t)for(e=t.match(A)||[];n=this[l++];)if(r=getClass(n),i=1===n.nodeType&&(" "+r+" ").replace(/[\t\r\n\f]/g," ")){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=v.trim(i),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(v.isFunction(t))return this.each(function(e){v(this).removeClass(t.call(this,e,getClass(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(A)||[];n=this[l++];)if(r=getClass(n),i=1===n.nodeType&&(" "+r+" ").replace(/[\t\r\n\f]/g," ")){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=v.trim(i),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):v.isFunction(t)?this.each(function(n){v(this).toggleClass(t.call(this,n,getClass(this),e),e)}):this.each(function(){var e,i,r,o;if("string"===n)for(i=0,r=v(this),o=t.match(A)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||(e=getClass(this),e&&N.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":N.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+getClass(n)+" ").replace(/[\t\r\n\f]/g," ").indexOf(e)>-1)return!0;return!1}});v.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=v.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,v(this).val()):t,null==r?r="":"number"==typeof r?r+="":v.isArray(r)&&(r=v.map(r,function(t){return null==t?"":t+""})),(e=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return(e=v.valHooks[r.type]||v.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(/\r/g,""):null==n?"":n)}}}),v.extend({valHooks:{option:{get:function(t){var e=v.find.attr(t,"value");return null!=e?e:v.trim(v.text(t)).replace(/[\x20\t\r\n\f]+/g," ")}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l<s;l++)if(n=i[l],(n.selected||l===r)&&(g.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){if(e=v(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=v.makeArray(e),a=r.length;a--;)i=r[a],(i.selected=v.inArray(v.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(t,e){if(v.isArray(e))return t.checked=v.inArray(v(t).val(),e)>-1}},g.checkOn||(v.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var yt=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,e,i,r){var o,a,l,u,c,d,f,h=[i||s],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(a=l=i=i||s,3!==i.nodeType&&8!==i.nodeType&&!yt.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,t=t[v.expando]?t:new v.Event(g,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:v.makeArray(e,[t]),f=v.event.special[g]||{},r||!f.trigger||!1!==f.trigger.apply(i,e))){if(!r&&!f.noBubble&&!v.isWindow(i)){for(u=f.delegateType||g,yt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),l=a;l===(i.ownerDocument||s)&&h.push(l.defaultView||l.parentWindow||n)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||g,d=(N.get(a,"events")||{})[t.type]&&N.get(a,"handle"),d&&d.apply(a,e),(d=c&&a[c])&&d.apply&&O(a)&&(t.result=d.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),e)||!O(i)||c&&v.isFunction(i[g])&&!v.isWindow(i)&&(l=i[c],l&&(i[c]=null),v.event.triggered=g,i[g](),v.event.triggered=void 0,l&&(i[c]=l)),t.result}},simulate:function(t,e,n){var i=v.extend(new v.Event,n,{type:t,isSimulated:!0});v.event.trigger(i,null,e)}}),v.fn.extend({trigger:function(t,e){return this.each(function(){v.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return v.event.trigger(t,e,n,!0)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){v.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),v.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),g.focusin="onfocusin"in n,g.focusin||v.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){v.event.simulate(e,t.target,v.event.fix(t))};v.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=N.access(i,e);r||i.addEventListener(t,n,!0),N.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=N.access(i,e)-1;r?N.access(i,e,r):(i.removeEventListener(t,n,!0),N.remove(i,e))}}});var bt=n.location,wt=v.now(),xt=/\?/;v.parseJSON=function(t){return JSON.parse(t+"")},v.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),e};var Tt=/([?&])_=[^&]*/,Ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,kt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Et=/^(?:GET|HEAD)$/,St={},_t={},At="*/".concat("*"),Pt=s.createElement("a");Pt.href=bt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:kt.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ajaxExtend(ajaxExtend(t,v.ajaxSettings),e):ajaxExtend(v.ajaxSettings,t)},ajaxPrefilter:addToPrefiltersOrTransports(St),ajaxTransport:addToPrefiltersOrTransports(_t),ajax:function(t,e){function done(t,e,a,s){var u,d,b,w,T,k=e;2!==x&&(x=2,l&&n.clearTimeout(l),i=void 0,o=s||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,a&&(w=ajaxHandleResponses(f,C,a)),w=ajaxConvert(f,w,C,u),u?(f.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(v.lastModified[r]=T),(T=C.getResponseHeader("etag"))&&(v.etag[r]=T)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=w.state,d=w.data,b=w.error,u=!b)):(b=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(e||k)+"",u?g.resolveWith(h,[d,k,C]):g.rejectWith(h,[C,k,b]),C.statusCode(y),y=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[C,f,u?d:b]),m.fireWith(h,[C,k]),c&&(p.trigger("ajaxComplete",[C,f]),--v.active||v.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,a,l,u,c,d,f=v.ajaxSetup({},e),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?v(h):v.event,g=v.Deferred(),m=v.Callbacks("once memory"),y=f.statusCode||{},b={},w={},x=0,T="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!a)for(a={};e=Ct.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=w[n]=w[n]||t,b[t]=e),this},overrideMimeType:function(t){return x||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)y[e]=[y[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||T;return i&&i.abort(e),done(0,e),this}};if(g.promise(C).complete=m.add,C.success=C.done,C.error=C.fail,f.url=((t||f.url||bt.href)+"").replace(/#.*$/,"").replace(/^\/\//,bt.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=v.trim(f.dataType||"*").toLowerCase().match(A)||[""],null==f.crossDomain){u=s.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Pt.protocol+"//"+Pt.host!=u.protocol+"//"+u.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=v.param(f.data,f.traditional)),inspectPrefiltersOrTransports(St,f,e,C),2===x)return C;c=v.event&&f.global,c&&0==v.active++&&v.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Et.test(f.type),r=f.url,f.hasContent||(f.data&&(r=f.url+=(xt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Tt.test(r)?r.replace(Tt,"$1_="+wt++):r+(xt.test(r)?"&":"?")+"_="+wt++)),f.ifModified&&(v.lastModified[r]&&C.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&C.setRequestHeader("If-None-Match",v.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+At+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,C,f)||2===x))return C.abort();T="abort";for(d in{success:1,error:1,complete:1})C[d](f[d]);if(i=inspectPrefiltersOrTransports(_t,f,e,C)){if(C.readyState=1,c&&p.trigger("ajaxSend",[C,f]),2===x)return C;f.async&&f.timeout>0&&(l=n.setTimeout(function(){C.abort("timeout")},f.timeout));try{x=1,i.send(b,done)}catch(t){if(!(x<2))throw t;done(-1,t)}}else done(-1,"No Transport");return C},getJSON:function(t,e,n){return v.get(t,e,n,"json")},getScript:function(t,e){return v.get(t,void 0,e,"script")}}),v.each(["get","post"],function(t,e){v[e]=function(t,n,i,r){return v.isFunction(n)&&(r=r||i,i=n,n=void 0),v.ajax(v.extend({url:t,type:e,dataType:r,data:n,success:i},v.isPlainObject(t)&&t))}}),v._evalUrl=function(t){return v.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(t){var e;return v.isFunction(t)?this.each(function(e){v(this).wrapAll(t.call(this,e))}):(this[0]&&(e=v(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return v.isFunction(t)?this.each(function(e){v(this).wrapInner(t.call(this,e))}):this.each(function(){var e=v(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=v.isFunction(t);return this.each(function(n){v(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()}}),v.expr.filters.hidden=function(t){return!v.expr.filters.visible(t)},v.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Dt=/\[\]$/,Ot=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;v.param=function(t,e){var n,i=[],r=function(t,e){e=v.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=v.ajaxSettings&&v.ajaxSettings.traditional),v.isArray(t)||t.jquery&&!v.isPlainObject(t))v.each(t,function(){r(this.name,this.value)});else for(n in t)buildParams(n,t[n],e,r);return i.join("&").replace(/%20/g,"+")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=v.prop(this,"elements");return t?v.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!v(this).is(":disabled")&&Nt.test(this.nodeName)&&!Ot.test(t)&&(this.checked||!H.test(t))}).map(function(t,e){var n=v(this).val();return null==n?null:v.isArray(n)?v.map(n,function(t){return{name:e.name,value:t.replace(/\r?\n/g,"\r\n")}}):{name:e.name,value:n.replace(/\r?\n/g,"\r\n")}}).get()}}),v.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Mt={0:200,1223:204},It=v.ajaxSettings.xhr();g.cors=!!It&&"withCredentials"in It,g.ajax=It=!!It,v.ajaxTransport(function(t){var e,i;if(g.cors||It&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Mt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),i=s.onerror=e("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&i()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return v.globalEval(t),t}}}),v.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),v.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=v("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),s.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Rt=[],Lt=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Rt.pop()||v.expando+"_"+wt++;return this[t]=!0,t}}),v.ajaxPrefilter("json jsonp",function(t,e,i){var r,o,a,s=!1!==t.jsonp&&(Lt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Lt,"$1"+r):!1!==t.jsonp&&(t.url+=(xt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||v.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){a=arguments},i.always(function(){void 0===o?v(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,Rt.push(r)),a&&v.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),v.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||s;var i=T.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=buildFragment([t],e,r),r&&r.length&&v(r).remove(),v.merge([],i.childNodes))};var zt=v.fn.load;v.fn.load=function(t,e,n){if("string"!=typeof t&&zt)return zt.apply(this,arguments);var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=v.trim(t.slice(s)),t=t.slice(0,s)),v.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&v.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?v("<div>").append(v.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){v.fn[e]=function(t){return this.on(e,t)}}),v.expr.filters.animated=function(t){return v.grep(v.timers,function(e){return t===e.elem}).length},v.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u,c=v.css(t,"position"),d=v(t),f={};"static"===c&&(t.style.position="relative"),s=d.offset(),o=v.css(t,"top"),l=v.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),v.isFunction(e)&&(e=e.call(t,n,v.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+r),"using"in e?e.using.call(t,f):d.css(f)}},v.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){v.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;if(o)return e=o.documentElement,v.contains(e,i)?(r=i.getBoundingClientRect(),n=getWindow(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===v.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),v.nodeName(t[0],"html")||(i=t.offset()),i.top+=v.css(t[0],"borderTopWidth",!0),i.left+=v.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-v.css(n,"marginTop",!0),left:e.left-i.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===v.css(t,"position");)t=t.offsetParent;return t||rt})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;v.fn[t]=function(i){return D(this,function(t,i,r){var o=getWindow(t);if(void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),v.each(["top","left"],function(t,e){v.cssHooks[e]=addGetHookIf(g.pixelPosition,function(t,n){if(n)return n=curCSS(t,e),et.test(n)?v(t).position()[e]+"px":n})}),v.each({Height:"height",Width:"width"},function(t,e){v.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){v.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===r?"margin":"border");return D(this,function(e,n,i){var r;return v.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?v.css(e,n,a):v.style(e,n,i,a)},e,o?i:void 0,o,null)}})}),v.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),v.fn.andSelf=v.fn.addBack,i=[],void 0!==(r=function(){return v}.apply(e,i))&&(t.exports=r);var Ft=n.jQuery,qt=n.$;return v.noConflict=function(t){return n.$===v&&(n.$=qt),t&&n.jQuery===v&&(n.jQuery=Ft),v},o||(n.jQuery=n.$=v),v})},function(t,e,n){"use strict";(function(t){function escapeHtml(t){return String(t).replace(/[&<>"'\/]/g,function(t){return o[t]})}function mousePosition(e){var n=t.document.body,r={top:0,left:0};return"static"!==i(n).css("position")&&(r=i(n).offset()),{top:e.pageY-r.top,left:e.pageX-r.left}}var i=n(0),r=n(17).Promise,o={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},a=function(){if("function"==typeof t.Gettext){var e=new t.Gettext({domain:"annotator"});return function(t){return e.gettext(t)}}return function(t){return t}}();e.$=i,e.Promise=r,e.gettext=a,e.escapeHtml=escapeHtml,e.mousePosition=mousePosition}).call(e,n(2))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){function Widget(t){this.element=o(this.constructor.template),this.classes=o.extend({},Widget.classes,this.constructor.classes),this.options=o.extend({},Widget.options,this.constructor.options,t),this.extensionsInstalled=!1}var i=n(16),r=n(1),o=r.$;Widget.prototype.destroy=function(){this.element.remove()},Widget.prototype.installExtensions=function(){if(this.options.extensions)for(var t=0,e=this.options.extensions.length;t<e;t++){var n=this.options.extensions[t];n(this)}},Widget.prototype._maybeInstallExtensions=function(){this.extensionsInstalled||(this.extensionsInstalled=!0,this.installExtensions())},Widget.prototype.attach=function(){this.element.appendTo(this.options.appendTo),this._maybeInstallExtensions()},Widget.prototype.show=function(){this.element.removeClass(this.classes.hide),this.checkOrientation()},Widget.prototype.hide=function(){o(this.element).addClass(this.classes.hide)},Widget.prototype.isShown=function(){return!o(this.element).hasClass(this.classes.hide)},Widget.prototype.checkOrientation=function(){this.resetOrientation();var e=o(t),n=this.element.children(":first"),i=n.offset(),r={top:e.scrollTop(),right:e.width()+e.scrollLeft()},a={top:i.top,right:i.left+n.width()};return a.top-r.top<0&&this.invertY(),a.right-r.right>0&&this.invertX(),this},Widget.prototype.resetOrientation=function(){return this.element.removeClass(this.classes.invert.x).removeClass(this.classes.invert.y),this},Widget.prototype.invertX=function(){return this.element.addClass(this.classes.invert.x),this},Widget.prototype.invertY=function(){return this.element.addClass(this.classes.invert.y),this},Widget.prototype.isInvertedY=function(){return this.element.hasClass(this.classes.invert.y)},Widget.prototype.isInvertedX=function(){return this.element.hasClass(this.classes.invert.x)},Widget.classes={hide:"annotator-hide",invert:{x:"annotator-invert-x",y:"annotator-invert-y"}},Widget.template="<div></div>",Widget.options={appendTo:"body"},Widget.extend=i,e.Widget=Widget}).call(e,n(2))},function(t,e,n){var i;!function(r,o,a){function _addEvent(t,e,n){if(t.addEventListener)return void t.addEventListener(e,n,!1);t.attachEvent("on"+e,n)}function _characterFromEvent(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return l[t.which]?l[t.which]:u[t.which]?u[t.which]:String.fromCharCode(t.which).toLowerCase()}function _modifiersMatch(t,e){return t.sort().join(",")===e.sort().join(",")}function _eventModifiers(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}function _preventDefault(t){if(t.preventDefault)return void t.preventDefault();t.returnValue=!1}function _stopPropagation(t){if(t.stopPropagation)return void t.stopPropagation();t.cancelBubble=!0}function _isModifier(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function _getReverseMap(){if(!s){s={};for(var t in l)t>95&&t<112||l.hasOwnProperty(t)&&(s[l[t]]=t)}return s}function _pickBestAction(t,e,n){return n||(n=_getReverseMap()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function _keysFromString(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus"),t.split("+"))}function _getKeyInfo(t,e){var n,i,r,o=[];for(n=_keysFromString(t),r=0;r<n.length;++r)i=n[r],d[i]&&(i=d[i]),e&&"keypress"!=e&&c[i]&&(i=c[i],o.push("shift")),_isModifier(i)&&o.push(i);return e=_pickBestAction(i,o,e),{key:i,modifiers:o,action:e}}function _belongsTo(t,e){return null!==t&&t!==o&&(t===e||_belongsTo(t.parentNode,e))}function Mousetrap(t){function _resetSequences(t){t=t||{};var e,n=!1;for(e in i)t[e]?n=!0:i[e]=0;n||(s=!1)}function _getMatches(t,n,r,o,a,s){var l,u,c=[],d=r.type;if(!e._callbacks[t])return[];for("keyup"==d&&_isModifier(t)&&(n=[t]),l=0;l<e._callbacks[t].length;++l)if(u=e._callbacks[t][l],(o||!u.seq||i[u.seq]==u.level)&&d==u.action&&("keypress"==d&&!r.metaKey&&!r.ctrlKey||_modifiersMatch(n,u.modifiers))){var f=!o&&u.combo==a,h=o&&u.seq==o&&u.level==s;(f||h)&&e._callbacks[t].splice(l,1),c.push(u)}return c}function _fireCallback(t,n,i,r){e.stopCallback(n,n.target||n.srcElement,i,r)||!1===t(n,i)&&(_preventDefault(n),_stopPropagation(n))}function _handleKeyEvent(t){"number"!=typeof t.which&&(t.which=t.keyCode);var n=_characterFromEvent(t);if(n)return"keyup"==t.type&&r===n?void(r=!1):void e.handleKey(n,_eventModifiers(t),t)}function _resetSequenceTimer(){clearTimeout(n),n=setTimeout(_resetSequences,1e3)}function _bindSequence(t,e,n,o){function _callbackAndReset(e){_fireCallback(n,e,t),"keyup"!==o&&(r=_characterFromEvent(e)),setTimeout(_resetSequences,10)}i[t]=0;for(var a=0;a<e.length;++a){var l=a+1===e.length,u=l?_callbackAndReset:function(e){return function(){s=e,++i[t],_resetSequenceTimer()}}(o||_getKeyInfo(e[a+1]).action);_bindSingle(e[a],u,o,t,a)}}function _bindSingle(t,n,i,r,o){e._directMap[t+":"+i]=n,t=t.replace(/\s+/g," ");var a,s=t.split(" ");if(s.length>1)return void _bindSequence(t,s,n,i);a=_getKeyInfo(t,i),e._callbacks[a.key]=e._callbacks[a.key]||[],_getMatches(a.key,a.modifiers,{type:a.action},r,t,o),e._callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:t})}var e=this;if(t=t||o,!(e instanceof Mousetrap))return new Mousetrap(t);e.target=t,e._callbacks={},e._directMap={};var n,i={},r=!1,a=!1,s=!1;e._handleKey=function(t,e,n){var i,r=_getMatches(t,e,n),o={},l=0,u=!1;for(i=0;i<r.length;++i)r[i].seq&&(l=Math.max(l,r[i].level));for(i=0;i<r.length;++i)if(r[i].seq){if(r[i].level!=l)continue;u=!0,o[r[i].seq]=1,_fireCallback(r[i].callback,n,r[i].combo,r[i].seq)}else u||_fireCallback(r[i].callback,n,r[i].combo);var c="keypress"==n.type&&a;n.type!=s||_isModifier(t)||c||_resetSequences(o),a=u&&"keydown"==n.type},e._bindMultiple=function(t,e,n){for(var i=0;i<t.length;++i)_bindSingle(t[i],e,n)},_addEvent(t,"keypress",_handleKeyEvent),_addEvent(t,"keydown",_handleKeyEvent),_addEvent(t,"keyup",_handleKeyEvent)}if(r){for(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"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},f=1;f<20;++f)l[111+f]="f"+f;for(f=0;f<=9;++f)l[f+96]=f.toString();Mousetrap.prototype.bind=function(t,e,n){var i=this;return t=t instanceof Array?t:[t],i._bindMultiple.call(i,t,e,n),i},Mousetrap.prototype.unbind=function(t,e){var n=this;return n.bind.call(n,t,function(){},e)},Mousetrap.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},Mousetrap.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},Mousetrap.prototype.stopCallback=function(t,e){var n=this;return!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(!_belongsTo(e,n.target)&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable))},Mousetrap.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},Mousetrap.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(l[e]=t[e]);s=null},Mousetrap.init=function(){var t=Mousetrap(o);for(var e in t)"_"!==e.charAt(0)&&(Mousetrap[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},Mousetrap.init(),r.Mousetrap=Mousetrap,void 0!==t&&t.exports&&(t.exports=Mousetrap),void 0!==(i=function(){return Mousetrap}.call(e,n,e,t))&&(t.exports=i)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(t,e,n){"use strict";var i;e.acl=function(){var t=new i;return{configure:function(e){e.registerUtility(t,"authorizationPolicy")}}},i=e.AclAuthzPolicy=function(){},i.prototype.permits=function(t,e,n){var i=this.authorizedUserId(n),r=e.permissions;if(r){var o=r[t];if(void 0===o||null===o)return!0;for(var a=0,s=o.length;a<s;a++)if(i===o[a])return!0;return!1}return!e.user||i===e.user},i.prototype.authorizedUserId=function(t){return t}},function(t,e,n){"use strict";var i;e.simple=function(){var t=new i;return{configure:function(e){e.registerUtility(t,"identityPolicy")},beforeAnnotationCreated:function(e){e.user=t.who()}}},i=function(){this.identity=null},e.SimpleIdentityPolicy=i,i.prototype.who=function(){return this.identity}},function(t,e,n){"use strict";(function(t){function banner(e,n){void 0!==n&&null!==n||(n=o);var l=r(a)[0],u=!1,c=function(){u||(u=!0,r(l).removeClass(s.show).removeClass(s[n]),setTimeout(function(){r(l).remove()},500))};return r(l).addClass(s.show).addClass(s[n]).html(i.escapeHtml(e||"")).appendTo(t.document.body),r(l).on("click",c),setTimeout(c,5e3),{close:c}}var i=n(1),r=i.$,o="info",a="<div class='annotator-notice'></div>",s={show:"annotator-notice-show",info:"annotator-notice-info",success:"annotator-notice-success",error:"annotator-notice-error"};e.banner=banner,e.defaultNotifier=banner,e.INFO=o,e.SUCCESS="success",e.ERROR="error"}).call(e,n(2))},function(t,e,n){"use strict";function StorageAdapter(t,e){this.store=t,this.runHook=e}var i=n(1),r=i.$,o=i.gettext,a=i.Promise,s=function(){var t;return t=-1,function(){return t+=1}}();e.debug=function(){function trace(t,e){var n=JSON.parse(JSON.stringify(e));console.debug("annotator.storage.debug: "+t,n)}return{create:function(t){return t.id=s(),trace("create",t),t},update:function(t){return trace("update",t),t},delete:function(t){return trace("destroy",t),t},query:function(t){return trace("query",t),{results:[],meta:{total:0}}},configure:function(t){t.registerUtility(this,"storage")}}},e.noop=function(){return{create:function(t){return void 0!==t.id&&null!==t.id||(t.id=s()),t},update:function(t){return t},delete:function(t){return t},query:function(){return{results:[]}},configure:function(t){t.registerUtility(this,"storage")}}};var l;e.http=function(t){var e=function(){};void 0!==t&&null!==t||(t={}),t.onError=t.onError||function(t,n){console.error(t,n),e(t,"error")};var n=new l(t);return{configure:function(t){t.registerUtility(n,"storage")},start:function(t){e=t.notify}}},l=e.HttpStorage=function HttpStorage(t){this.options=r.extend(!0,{},HttpStorage.options,t),this.onError=this.options.onError},l.prototype.create=function(t){return this._apiRequest("create",t)},l.prototype.update=function(t){return this._apiRequest("update",t)},l.prototype.delete=function(t){return this._apiRequest("destroy",t)},l.prototype.query=function(t){return this._apiRequest("search",t).then(function(t){var e=t.rows;return delete t.rows,{results:e,meta:t}})},l.prototype.setHeader=function(t,e){this.options.headers[t]=e},l.prototype._apiRequest=function(t,e){var n=e&&e.id,i=this._urlFor(t,n),o=this._apiRequestOptions(t,e),a=r.ajax(i,o);return a._id=n,a._action=t,a},l.prototype._apiRequestOptions=function(t,e){var n=this._methodFor(t),i=this,o={type:n,dataType:"json",error:function(){i._onError.apply(i,arguments)},headers:this.options.headers};if(!this.options.emulateHTTP||"PUT"!==n&&"DELETE"!==n||(o.headers=r.extend(o.headers,{"X-HTTP-Method-Override":n}),o.type="POST"),"search"===t)return o=r.extend(o,{data:e});var a=e&&JSON.stringify(e);return this.options.emulateJSON?(o.data={json:a},this.options.emulateHTTP&&(o.data._method=n),o):o=r.extend(o,{data:a,contentType:"application/json; charset=utf-8"})},l.prototype._urlFor=function(t,e){void 0!==e&&null!==e||(e="");var n="";return void 0!==this.options.prefix&&null!==this.options.prefix&&(n=this.options.prefix),n+=this.options.urls[t],n=n.replace(/idAnnotation/,e)},l.prototype._methodFor=function(t){return{create:"POST",update:"PUT",destroy:"DELETE",search:"GET"}[t]},l.prototype._onError=function(t){if("function"==typeof this.onError){var e;e=o(400===t.status?"The annotation store did not understand the request! (Error 400)":401===t.status?"You must be logged in to perform this operation! (Error 401)":403===t.status?"You don't have permission to perform this operation! (Error 403)":404===t.status?"Could not connect to the annotation store! (Error 404)":500===t.status?"Internal error in annotation store! (Error 500)":"Unknown error while speaking to annotation store!"),this.onError(e,t)}},l.options={emulateHTTP:!1,emulateJSON:!1,headers:{},onError:function(t){console.error("API request failed: "+t)},prefix:"/store",urls:{create:"/annotations",update:"/annotations/idAnnotation",destroy:"/annotations/idAnnotation",search:"/search"}},StorageAdapter.prototype.create=function(t){return void 0!==t&&null!==t||(t={}),this._cycle(t,"create","beforeAnnotationCreated","annotationCreated")},StorageAdapter.prototype.update=function(t){if(void 0===t.id||null===t.id)throw new TypeError("annotation must have an id for update()");return this._cycle(t,"update","beforeAnnotationUpdated","annotationUpdated")},StorageAdapter.prototype.delete=function(t){if(void 0===t.id||null===t.id)throw new TypeError("annotation must have an id for delete()");return this._cycle(t,"delete","beforeAnnotationDeleted","annotationDeleted")},StorageAdapter.prototype.query=function(t){return a.resolve(this.store.query(t))},StorageAdapter.prototype.load=function(t){var e=this;return this.query(t).then(function(t){e.runHook("annotationsLoaded",[t.results])})},StorageAdapter.prototype._cycle=function(t,e,n,i){var o=this;return this.runHook(n,[t]).then(function(){var n=r.extend(!0,{},t);delete n._local;var i=o.store[e](n);return a.resolve(i)}).then(function(e){for(var n in t)t.hasOwnProperty(n)&&"_local"!==n&&delete t[n];return r.extend(t,e),o.runHook(i,[t]),t})},e.StorageAdapter=StorageAdapter},function(t,e,n){"use strict";var i=n(3).Widget,r=n(1),o=r.$,a=r.gettext,s="annotator-adder",l=i.extend({constructor:function(t){i.call(this,t),this.ignoreMouseup=!1,this.annotation=null,this.onCreate=this.options.onCreate;var e=this;this.element.on("click."+s,"button",function(t){e._onClick(t)}).on("mousedown."+s,"button",function(t){e._onMousedown(t)}),this.document=this.element[0].ownerDocument,o(this.document.body).on("mouseup."+s,function(t){e._onMouseup(t)})},destroy:function(){this.element.off("."+s),o(this.document.body).off("."+s),i.prototype.destroy.call(this)},load:function(t,e){this.annotation=t,this.show(e)},show:function(t){void 0!==t&&null!==t&&this.element.css({top:t.top,left:t.left}),i.prototype.show.call(this)},_onMousedown:function(t){t.which>1||(t.preventDefault(),this.ignoreMouseup=!0)},_onMouseup:function(t){t.which>1||this.ignoreMouseup&&t.stopImmediatePropagation()},_onClick:function(t){t.which>1||(t.preventDefault(),this.hide(),this.ignoreMouseup=!1,null!==this.annotation&&"function"==typeof this.onCreate&&this.onCreate(this.annotation,t))}});l.template=['<div class="annotator-adder annotator-hide">',' <button type="button">'+a("Annotate")+"</button>","</div>"].join("\n"),l.options={onCreate:null},e.Adder=l},function(t,e,n){"use strict";function preventEventDefault(t){void 0!==t&&null!==t&&"function"==typeof t.preventDefault&&t.preventDefault()}var i=n(3).Widget,r=n(1),o=r.$,a=r.gettext,s=r.Promise,l="annotator-editor",u=function(){var t;return t=-1,function(){return t+=1}}(),c=e.dragTracker=function(t,e){function mouseMove(t){if(!i&&null!==n){var r={y:t.pageY-n.top,x:t.pageX-n.left},o=!0;"function"==typeof e&&(o=e(r)),!1!==o&&(n={top:t.pageY,left:t.pageX}),i=!0,setTimeout(function(){i=!1},1e3/60)}}function mouseUp(){n=null,o(t.ownerDocument).off("mouseup",mouseUp).off("mousemove",mouseMove)}function mouseDown(e){e.target===t&&(n={top:e.pageY,left:e.pageX},o(t.ownerDocument).on("mouseup",mouseUp).on("mousemove",mouseMove),e.preventDefault())}function destroy(){o(t).off("mousedown",mouseDown)}var n=null,i=!1;return o(t).on("mousedown",mouseDown),{destroy:destroy}},d=e.resizer=function(t,e,n){function translate(t){var e=1,i=-1;return"function"==typeof n.invertedX&&n.invertedX()&&(e=-1),"function"==typeof n.invertedY&&n.invertedY()&&(i=1),{x:t.x*e,y:t.y*i}}function resize(t){var e=i.height(),n=i.width(),r=translate(t);return Math.abs(r.x)>0&&i.width(n+r.x),Math.abs(r.y)>0&&i.height(e+r.y),i.height()!==e||i.width()!==n}var i=o(t);return void 0!==n&&null!==n||(n={}),c(e,resize)},f=e.mover=function(t,e){function move(e){o(t).css({top:parseInt(o(t).css("top"),10)+e.y,left:parseInt(o(t).css("left"),10)+e.x})}return c(e,move)},h=e.Editor=i.extend({constructor:function(t){i.call(this,t),this.fields=[],this.annotation={},this.options.defaultFields&&this.addField({type:"textarea",label:a("Comments")+"…",load:function(t,e){o(t).find("textarea").val(e.text||"")},submit:function(t,e){e.text=o(t).find("textarea").val()}});var e=this;this.element.on("submit."+l,"form",function(t){e._onFormSubmit(t)}).on("click."+l,".annotator-save",function(t){e._onSaveClick(t)}).on("click."+l,".annotator-cancel",function(t){e._onCancelClick(t)}).on("mouseover."+l,".annotator-cancel",function(t){e._onCancelMouseover(t)}).on("keydown."+l,"textarea",function(t){e._onTextareaKeydown(t)})},destroy:function(){this.element.off("."+l),i.prototype.destroy.call(this)},show:function(t){void 0!==t&&null!==t&&this.element.css({top:t.top,left:t.left}),this.element.find(".annotator-save").addClass(this.classes.focus),i.prototype.show.call(this),this.element.find(":input:first").focus(),this._setupDraggables()},load:function(t,e){this.annotation=t;for(var n=0,i=this.fields.length;n<i;n++){var r=this.fields[n];r.load(r.element,this.annotation)}var o=this;return new s(function(t,n){o.dfd={resolve:t,reject:n},o.show(e)})},submit:function(){for(var t=0,e=this.fields.length;t<e;t++){var n=this.fields[t];n.submit(n.element,this.annotation)}void 0!==this.dfd&&null!==this.dfd&&this.dfd.resolve(),this.hide()},cancel:function(){void 0!==this.dfd&&null!==this.dfd&&this.dfd.reject("editing cancelled"),this.hide()},addField:function(t){var e=o.extend({id:"annotator-field-"+u(),type:"input",label:"",load:function(){},submit:function(){}},t),n=null,i=o('<li class="annotator-item" />');return e.element=i[0],"textarea"===e.type?n=o("<textarea />"):"checkbox"===e.type?n=o('<input type="checkbox" />'):"input"===e.type?n=o("<input />"):"select"===e.type&&(n=o("<select />")),i.append(n),n.attr({id:e.id,placeholder:e.label}),"checkbox"===e.type&&(i.addClass("annotator-checkbox"),i.append(o("<label />",{for:e.id,html:e.label}))),this.element.find("ul:first").append(i),this.fields.push(e),e.element},checkOrientation:function(){i.prototype.checkOrientation.call(this);var t=this.element.find("ul").first(),e=this.element.find(".annotator-controls");return this.element.hasClass(this.classes.invert.y)?e.insertBefore(t):e.is(":first-child")&&e.insertAfter(t),this},_onFormSubmit:function(t){preventEventDefault(t),this.submit()},_onSaveClick:function(t){preventEventDefault(t),this.submit()},_onCancelClick:function(t){preventEventDefault(t),this.cancel()},_onCancelMouseover:function(){this.element.find("."+this.classes.focus).removeClass(this.classes.focus)},_onTextareaKeydown:function(t){27===t.which?this.cancel():13!==t.which||t.shiftKey||this.submit()},_setupDraggables:function(){void 0!==this._resizer&&null!==this._resizer&&this._resizer.destroy(),void 0!==this._mover&&null!==this._mover&&this._mover.destroy(),this.element.find(".annotator-resize").remove();var t;(t=this.element.hasClass(this.classes.invert.y)?this.element.find(".annotator-item:last"):this.element.find(".annotator-item:first"))&&o('<span class="annotator-resize"></span>').appendTo(t);var e=this.element.find(".annotator-controls")[0],n=this.element.find("textarea:first")[0],i=this.element.find(".annotator-resize")[0],r=this;this._resizer=d(n,i,{invertedX:function(){return r.element.hasClass(r.classes.invert.x)},invertedY:function(){return r.element.hasClass(r.classes.invert.y)}}),this._mover=f(this.element[0],e)}});h.classes={hide:"annotator-hide",focus:"annotator-focus"},h.template=['<div class="annotator-outer annotator-editor annotator-hide">',' <form class="annotator-widget">',' <ul class="annotator-listing"></ul>',' <div class="annotator-controls">',' <a href="#cancel" class="annotator-cancel">'+a("Cancel")+"</a>",' <a href="#save"',' class="annotator-save annotator-focus">'+a("Save")+"</a>"," </div>"," </form>","</div>"].join("\n"),h.options={defaultFields:!0},e.standalone=function(t){var n=new e.Editor(t);return{destroy:function(){n.destroy()},beforeAnnotationCreated:function(t){return n.load(t)},beforeAnnotationUpdated:function(t){return n.load(t)}}}},function(t,e,n){"use strict";(function(t){function highlightRange(e,n){void 0!==n&&null!==n||(n="annotator-hl");for(var i=/^\s*$/,r=e.textNodes(),o=[],a=0,s=r.length;a<s;a++){var l=r[a];if(!i.test(l.nodeValue)){var u=t.document.createElement("span");u.className=n,l.parentNode.replaceChild(u,l),u.appendChild(l),o.push(u)}}return o}function reanchorRange(t,e){try{return i.Range.sniff(t).normalize(e)}catch(t){if(!(t instanceof i.Range.RangeError))throw t}return null}var i=n(18),r=n(1),o=r.$,a=r.Promise,s=e.Highlighter=function Highlighter(t,e){this.element=t,this.options=o.extend(!0,{},Highlighter.options,e)};s.prototype.destroy=function(){o(this.element).find("."+this.options.highlightClass).each(function(t,e){o(e).contents().insertBefore(e),o(e).remove()})},s.prototype.drawAll=function(t){var e=this;return new a(function(n){function loader(t){void 0!==t&&null!==t||(t=[]);for(var r=t.splice(0,e.options.chunkSize),o=0,a=r.length;o<a;o++)i=i.concat(e.draw(r[o]));t.length>0?setTimeout(function(){loader(t)},e.options.chunkDelay):n(i)}var i=[];loader(t.slice())})},s.prototype.draw=function(t){for(var e=[],n=0,i=t.ranges.length;n<i;n++){var r=reanchorRange(t.ranges[n],this.element);null!==r&&e.push(r)}void 0!==t._local&&null!==t._local||(t._local={}),void 0!==t._local.highlights&&null===t._local.highlights||(t._local.highlights=[]);for(var a=0,s=e.length;a<s;a++){var l=e[a];o.merge(t._local.highlights,highlightRange(l,this.options.highlightClass))}return o(t._local.highlights).data("annotation",t),void 0!==t.id&&null!==t.id&&o(t._local.highlights).attr("data-annotation-id",t.id),t._local.highlights},s.prototype.undraw=function(t){if(void 0!==t._local&&null!==t._local&&void 0!==t._local.highlights&&null!==t._local.highlights){for(var e=0,n=t._local.highlights.length;e<n;e++){var i=t._local.highlights[e];null!==i.parentNode&&o(i).replaceWith(i.childNodes)}delete t._local.highlights}},s.prototype.redraw=function(t){return this.undraw(t),this.draw(t)},s.options={highlightClass:"annotator-hl",chunkSize:10,chunkDelay:10},e.standalone=function(t,n){var i=e.Highlighter(t,n);return{destroy:function(){i.destroy()},annotationsLoaded:function(t){i.drawAll(t)},annotationCreated:function(t){i.draw(t)},annotationDeleted:function(t){i.undraw(t)},annotationUpdated:function(t){i.redraw(t)}}}}).call(e,n(2))},function(t,e,n){"use strict";(function(t){function isAnnotator(t){return 0!==o(t).parents().addBack().filter("[class^=annotator-]").length}function TextSelector(t,e){if(this.element=t,this.options=o.extend(!0,{},TextSelector.options,e),this.onSelection=this.options.onSelection,void 0!==this.element.ownerDocument&&null!==this.element.ownerDocument){var n=this;this.document=this.element.ownerDocument,o(this.document.body).on("mouseup."+a,function(t){n._checkForEndSelection(t)})}else console.warn("You created an instance of the TextSelector on an element that doesn't have an ownerDocument. This won't work! Please ensure the element is added to the DOM before the plugin is configured:",this.element)}var i=n(18),r=n(1),o=r.$,a="annotator-textselector";TextSelector.prototype.destroy=function(){this.document&&o(this.document.body).off("."+a)},TextSelector.prototype.captureDocumentSelection=function(){var e,n,r=[],o=[],a=t.getSelection();if(a.isCollapsed)return[];for(e=0;e<a.rangeCount;e++){var s=a.getRangeAt(e),l=new i.Range.BrowserRange(s),u=l.normalize().limit(this.element);null===u?o.push(s):r.push(u)}for(a.removeAllRanges(),e=0,n=o.length;e<n;e++)a.addRange(o[e]);for(e=0,n=r.length;e<n;e++){var c=r[e],d=this.document.createRange();d.setStartBefore(c.start),d.setEndAfter(c.end),a.addRange(d)}return r},TextSelector.prototype._checkForEndSelection=function(t){var e=this,n=function(){"function"==typeof e.onSelection&&e.onSelection([],t)},i=this.captureDocumentSelection();if(0===i.length)return void n();for(var r=0,a=i.length;r<a;r++){var s=i[r].commonAncestor;if(o(s).hasClass("annotator-hl")&&(s=o(s).parents("[class!=annotator-hl]")[0]),isAnnotator(s))return void n()}"function"==typeof this.onSelection&&this.onSelection(i,t)},TextSelector.options={onSelection:null},e.TextSelector=TextSelector}).call(e,n(2))},function(t,e,n){"use strict";function parseLinks(t,e,n){n=o.extend({},n,{rel:e});for(var i=[],r=0,a=t.length;r<a;r++){var s=t[r],l=!0;for(var u in n)if(n.hasOwnProperty(u)&&s[u]!==n[u]){l=!1;break}l&&i.push(s)}return i}var i=n(3).Widget,r=n(1),o=r.$,a=r.gettext,s="annotator-viewer",l=e.Viewer=i.extend({constructor:function(t){i.call(this,t),this.itemTemplate=l.itemTemplate,this.fields=[],this.annotations=[],this.hideTimer=null,this.hideTimerDfd=null,this.hideTimerActivity=null,this.mouseDown=!1,this.render=function(t){return t.text?r.escapeHtml(t.text):"<i>"+a("No comment")+"</i>"};var e=this;if(this.options.defaultFields&&this.addField({load:function(t,n){o(t).html(e.render(n))}}),"function"!=typeof this.options.onEdit)throw new TypeError("onEdit callback must be a function");if("function"!=typeof this.options.onDelete)throw new TypeError("onDelete callback must be a function");if("function"!=typeof this.options.permitEdit)throw new TypeError("permitEdit callback must be a function");if("function"!=typeof this.options.permitDelete)throw new TypeError("permitDelete callback must be a function");this.options.autoViewHighlights&&(this.document=this.options.autoViewHighlights.ownerDocument,o(this.options.autoViewHighlights).on("mouseover."+s,".annotator-hl",function(t){t.target===this&&e._onHighlightMouseover(t)}).on("mouseleave."+s,".annotator-hl",function(){e._startHideTimer()}),o(this.document.body).on("mousedown."+s,function(t){1===t.which&&(e.mouseDown=!0)}).on("mouseup."+s,function(t){1===t.which&&(e.mouseDown=!1)})),this.element.on("click."+s,".annotator-edit",function(t){e._onEditClick(t)}).on("click."+s,".annotator-delete",function(t){e._onDeleteClick(t)}).on("mouseenter."+s,function(){e._clearHideTimer()}).on("mouseleave."+s,function(){e._startHideTimer()})},destroy:function(){this.options.autoViewHighlights&&(o(this.options.autoViewHighlights).off("."+s),o(this.document.body).off("."+s)),this.element.off("."+s),i.prototype.destroy.call(this)},show:function(t){void 0!==t&&null!==t&&this.element.css({top:t.top,left:t.left});var e=this.element.find(".annotator-controls").addClass(this.classes.showControls),n=this;setTimeout(function(){e.removeClass(n.classes.showControls)},500),i.prototype.show.call(this)},load:function(t,e){this.annotations=t||[];for(var n=this.element.find("ul:first").empty(),i=0,r=this.annotations.length;i<r;i++){var o=this.annotations[i];this._annotationItem(o).appendTo(n).data("annotation",o)}this.show(e)},setRenderer:function(t){this.render=t},_annotationItem:function(t){var e=o(this.itemTemplate).clone(),n=e.find(".annotator-controls"),i=n.find(".annotator-link"),r=n.find(".annotator-edit"),a=n.find(".annotator-delete"),s=parseLinks(t.links||[],"alternate",{type:"text/html"});s.length>0&&void 0!==s[0].href&&null!==s[0].href?i.attr("href",s[0].href):i.remove();var l={};this.options.permitEdit(t)?(l.showEdit=function(){r.removeAttr("disabled")},l.hideEdit=function(){r.attr("disabled","disabled")}):r.remove(),this.options.permitDelete(t)?(l.showDelete=function(){a.removeAttr("disabled")},l.hideDelete=function(){a.attr("disabled","disabled")}):a.remove();for(var u=0,c=this.fields.length;u<c;u++){var d=this.fields[u],f=o(d.element).clone().appendTo(e)[0];d.load(f,t,l)}return e},addField:function(t){var e=o.extend({load:function(){}},t);return e.element=o("<div />")[0],this.fields.push(e),this},_onEditClick:function(t){var e=o(t.target).parents(".annotator-annotation").data("annotation");this.hide(),this.options.onEdit(e)},_onDeleteClick:function(t){if(window.confirm(a("Delete this annotation?"))){var e=o(t.target).parents(".annotator-annotation").data("annotation");this.hide(),this.options.onDelete(e)}},_onHighlightMouseover:function(t){if(!this.mouseDown){var e=this;this._startHideTimer(!0).done(function(){var n=o(t.target).parents(".annotator-hl").addBack().map(function(t,e){return o(e).data("annotation")}).toArray();e.load(n,r.mousePosition(t))})}},_startHideTimer:function(t){if(void 0!==t&&null!==t||(t=!1),this.hideTimer){if(!1===t||this.hideTimerActivity===t)return this.hideTimerDfd;this._clearHideTimer()}var e;if(e=t?this.options.activityDelay:this.options.inactivityDelay,this.hideTimerDfd=o.Deferred(),this.isShown()){var n=this;this.hideTimer=setTimeout(function(){n.hide(),n.hideTimerDfd.resolve(),n.hideTimer=null},e),this.hideTimerActivity=Boolean(t)}else this.hideTimer=null,this.hideTimerDfd.resolve(),this.hideTimerActivity=null;return this.hideTimerDfd.promise()},_clearHideTimer:function(){clearTimeout(this.hideTimer),this.hideTimer=null,this.hideTimerDfd.reject(),this.hideTimerActivity=null}});l.classes={showControls:"annotator-visible"},l.template=['<div class="annotator-outer annotator-viewer annotator-hide">',' <ul class="annotator-widget annotator-listing"></ul>',"</div>"].join("\n"),l.itemTemplate=['<li class="annotator-annotation annotator-item">',' <span class="annotator-controls">',' <a href="#"',' title="'+a("View as webpage")+'"',' class="annotator-link">'+a("View as webpage")+"</a>",' <button type="button"',' title="'+a("Edit")+'"',' class="annotator-edit">'+a("Edit")+"</button>",' <button type="button"',' title="'+a("Delete")+'"',' class="annotator-delete">'+a("Delete")+"</button>"," </span>","</li>"].join("\n"),l.options={defaultFields:!0,inactivityDelay:500,activityDelay:100,permitEdit:function(){return!1},permitDelete:function(){return!1},autoViewHighlights:null,onEdit:function(){},onDelete:function(){}},e.standalone=function(t){var n;return void 0!==t&&null!==t||(t={}),{start:function(i){var r=i.registry.getUtility("identityPolicy"),o=i.registry.getUtility("authorizationPolicy");void 0===t.onEdit&&(t.onEdit=function(t){i.annotations.update(t)}),void 0===t.onDelete&&(t.onDelete=function(t){i.annotations.delete(t)}),void 0===t.permitEdit&&(t.permitEdit=function(t){return o.permits("update",t,r.who())}),void 0===t.permitDelete&&(t.permitDelete=function(t){return o.permits("delete",t,r.who())}),n=new e.Viewer(t)},destroy:function(){n.destroy()}}}},function(t,e,n){"use strict"},function(t,e,n){"use strict";var i=n(4),r=function(t){return t&&t.__esModule?t:{default:t}}(i);r.default.bind("g u",function(){window.location.href=Routing.generate("homepage")}),r.default.bind("g s",function(){window.location.href=Routing.generate("starred")}),r.default.bind("g r",function(){window.location.href=Routing.generate("archive")}),r.default.bind("g a",function(){window.location.href=Routing.generate("all")}),r.default.bind("g t",function(){window.location.href=Routing.generate("tag")}),r.default.bind("g c",function(){window.location.href=Routing.generate("config")}),r.default.bind("g i",function(){window.location.href=Routing.generate("import")}),r.default.bind("g d",function(){window.location.href=Routing.generate("developer")}),r.default.bind("?",function(){window.location.href=Routing.generate("howto")}),r.default.bind("g l",function(){window.location.href=Routing.generate("fos_user_security_logout")})},function(t,e,n){!function(e){t.exports=e()}(function(){"use strict";var t={has:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},extend:function(t){for(var e=1;e<arguments.length;++e){var n=arguments[e];if(n)for(var i in n)t[i]=n[i]}return t}};return function(e,n){var i,r=this;i=e&&t.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},t.extend(i,r,n);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,e&&t.extend(i.prototype,e),i.__super__=r.prototype,i}})},function(t,e,n){(function(e,i){!function(e,n){t.exports=n()}(0,function(){"use strict";function objectOrFunction(t){return"function"==typeof t||"object"==typeof t&&null!==t}function isFunction(t){return"function"==typeof t}function setScheduler(t){s=t}function setAsap(t){l=t}function useVertxTimer(){return function(){a(flush)}}function useSetTimeout(){var t=setTimeout;return function(){return t(flush,1)}}function flush(){for(var t=0;t<o;t+=2){(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0}o=0}function then(t,e){var n=arguments,i=this,r=new this.constructor(noop);void 0===r[v]&&makePromise(r);var o=i._state;return o?function(){var t=n[o-1];l(function(){return invokeCallback(o,r,t,i._result)})}():subscribe(i,r,t,e),r}function resolve(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(noop);return _resolve(n,t),n}function noop(){}function selfFulfillment(){return new TypeError("You cannot resolve a promise with itself")}function cannotReturnOwn(){return new TypeError("A promises callback cannot return that same promise.")}function getThen(t){try{return t.then}catch(t){return w.error=t,w}}function tryThen(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}function handleForeignThenable(t,e,n){l(function(t){var i=!1,r=tryThen(n,e,function(n){i||(i=!0,e!==n?_resolve(t,n):fulfill(t,n))},function(e){i||(i=!0,_reject(t,e))},"Settle: "+(t._label||" unknown promise"));!i&&r&&(i=!0,_reject(t,r))},t)}function handleOwnThenable(t,e){e._state===y?fulfill(t,e._result):e._state===b?_reject(t,e._result):subscribe(e,void 0,function(e){return _resolve(t,e)},function(e){return _reject(t,e)})}function handleMaybeThenable(t,e,n){e.constructor===t.constructor&&n===then&&e.constructor.resolve===resolve?handleOwnThenable(t,e):n===w?_reject(t,w.error):void 0===n?fulfill(t,e):isFunction(n)?handleForeignThenable(t,e,n):fulfill(t,e)}function _resolve(t,e){t===e?_reject(t,selfFulfillment()):objectOrFunction(e)?handleMaybeThenable(t,e,getThen(e)):fulfill(t,e)}function publishRejection(t){t._onerror&&t._onerror(t._result),publish(t)}function fulfill(t,e){t._state===m&&(t._result=e,t._state=y,0!==t._subscribers.length&&l(publish,t))}function _reject(t,e){t._state===m&&(t._state=b,t._result=e,l(publishRejection,t))}function subscribe(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+y]=n,r[o+b]=i,0===o&&t._state&&l(publish,t)}function publish(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i=void 0,r=void 0,o=t._result,a=0;a<e.length;a+=3)i=e[a],r=e[a+n],i?invokeCallback(n,i,r,o):r(o);t._subscribers.length=0}}function ErrorObject(){this.error=null}function tryCatch(t,e){try{return t(e)}catch(t){return x.error=t,x}}function invokeCallback(t,e,n,i){var r=isFunction(n),o=void 0,a=void 0,s=void 0,l=void 0;if(r){if(o=tryCatch(n,i),o===x?(l=!0,a=o.error,o=null):s=!0,e===o)return void _reject(e,cannotReturnOwn())}else o=i,s=!0;e._state!==m||(r&&s?_resolve(e,o):l?_reject(e,a):t===y?fulfill(e,o):t===b&&_reject(e,o))}function initializePromise(t,e){try{e(function(e){_resolve(t,e)},function(e){_reject(t,e)})}catch(e){_reject(t,e)}}function nextId(){return T++}function makePromise(t){t[v]=T++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Enumerator(t,e){this._instanceConstructor=t,this.promise=new t(noop),this.promise[v]||makePromise(this.promise),r(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&fulfill(this.promise,this._result))):_reject(this.promise,validationError())}function validationError(){return new Error("Array Methods must be provided an Array")}function all(t){return new Enumerator(this,t).promise}function race(t){var e=this;return new e(r(t)?function(n,i){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(n,i)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function reject(t){var e=this,n=new e(noop);return _reject(n,t),n}function needsResolver(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function needsNew(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function Promise(t){this[v]=nextId(),this._result=this._state=void 0,this._subscribers=[],noop!==t&&("function"!=typeof t&&needsResolver(),this instanceof Promise?initializePromise(this,t):needsNew())}function polyfill(){var t=void 0;if(void 0!==i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=Promise}var t=void 0;t=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var r=t,o=0,a=void 0,s=void 0,l=function(t,e){p[o]=t,p[o+1]=e,2===(o+=2)&&(s?s(flush):g())},u="undefined"!=typeof window?window:void 0,c=u||{},d=c.MutationObserver||c.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,p=new Array(1e3),g=void 0;g=f?function(){return function(){return e.nextTick(flush)}}():d?function(){var t=0,e=new d(flush),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():h?function(){var t=new MessageChannel;return t.port1.onmessage=flush,function(){return t.port2.postMessage(0)}}():void 0===u?function(){try{var t=n(39);return a=t.runOnLoop||t.runOnContext,useVertxTimer()}catch(t){return useSetTimeout()}}():useSetTimeout();var v=Math.random().toString(36).substring(16),m=void 0,y=1,b=2,w=new ErrorObject,x=new ErrorObject,T=0;return Enumerator.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===m&&n<t;n++)this._eachEntry(e[n],n)},Enumerator.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===resolve){var r=getThen(t);if(r===then&&t._state!==m)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===Promise){var o=new n(noop);handleMaybeThenable(o,t,r),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},Enumerator.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===m&&(this._remaining--,t===b?_reject(i,n):this._result[e]=n),0===this._remaining&&fulfill(i,this._result)},Enumerator.prototype._willSettleAt=function(t,e){var n=this;subscribe(t,void 0,function(t){return n._settledAt(y,e,t)},function(t){return n._settledAt(b,e,t)})},Promise.all=all,Promise.race=race,Promise.resolve=resolve,Promise.reject=reject,Promise._setScheduler=setScheduler,Promise._setAsap=setAsap,Promise._asap=l,Promise.prototype={constructor:Promise,then:then,catch:function(t){return this.then(null,t)}},polyfill(),Promise.polyfill=polyfill,Promise.Promise=Promise,Promise})}).call(e,n(37),n(2))},function(t,e,n){(function(){t.exports={xpath:n(20),Range:n(38)}}).call(this)},function(t,e,n){(function(){var e,i;e=n(0),i={},i.NodeTypes={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},i.getFirstTextNodeNotBefore=function(t){var e;switch(t.nodeType){case i.NodeTypes.TEXT_NODE:return t;case i.NodeTypes.ELEMENT_NODE:if(null!=t.firstChild&&null!=(e=i.getFirstTextNodeNotBefore(t.firstChild)))return e}return t=t.nextSibling,null!=t?i.getFirstTextNodeNotBefore(t):null},i.getLastTextNodeUpTo=function(t){var e;switch(t.nodeType){case i.NodeTypes.TEXT_NODE:return t;case i.NodeTypes.ELEMENT_NODE:if(null!=t.lastChild&&null!=(e=i.getLastTextNodeUpTo(t.lastChild)))return e}return t=t.previousSibling,null!=t?i.getLastTextNodeUpTo(t):null},i.getTextNodes=function(t){var e;return e=function(t){var n;if(t&&t.nodeType!==i.NodeTypes.TEXT_NODE){if(n=[],t.nodeType!==i.NodeTypes.COMMENT_NODE)for(t=t.lastChild;t;)n.push(e(t)),t=t.previousSibling;return n.reverse()}return t},t.map(function(){return i.flatten(e(this))})},i.getGlobal=function(){return function(){return this}()},i.contains=function(t,e){var n;for(n=e;null!=n;){if(n===t)return!0;n=n.parentNode}return!1},i.flatten=function(t){var n;return(n=function(t){var i,r,o,a;for(r=[],o=0,a=t.length;o<a;o++)i=t[o],r=r.concat(i&&e.isArray(i)?n(i):i);return r})(t)},t.exports=i}).call(this)},function(t,e,n){(function(){var e,i,r,o,a,s,l,u,c,d;e=n(0),i=n(19),r=function(t,e,n){var i,r,a,s,l,u,c,d;null==e&&(e=document),null==n&&(n=null);try{return document.evaluate("."+t,e,n,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(n){for(n,console.log("XPath evaluation failed."),console.log("Trying fallback..."),l=t.substring(1).split("/"),a=e,u=0,c=l.length;u<c;u++)s=l[u],d=s.split("["),r=d[0],i=d[1],i=null!=i?parseInt((null!=i?i.split("]"):void 0)[0]):1,a=o(a,r.toLowerCase(),i);return a}},u=function(t,n){var r;return r=t.map(function(){var t,r,o,a;for(o="",t=this;(null!=t?t.nodeType:void 0)===i.NodeTypes.ELEMENT_NODE&&t!==n;)a=t.tagName.replace(":","\\:"),r=e(t.parentNode).children(a).index(t)+1,r="["+r+"]",o="/"+t.tagName.toLowerCase()+r+o,t=t.parentNode;return o}),r.get()},c=function(t,e){var n,i,r,o;return n=function(t){var e,n;return e=s(t),n=l(t),e+"["+n+"]"},o=e,i=function(t){var e;for(e="";t!==o;){if(null==t)throw new Error("Called getPathTo on a node which was not a descendant of @rootNode. "+o);e=n(t)+"/"+e,t=t.parentNode}return e="/"+e,e=e.replace(/\/$/,"")},r=t.map(function(){return i(this)}),r.get()},o=function(t,e,n){var i,r,o,a,l;if(!t.hasChildNodes())throw new Error("XPath error: node has no children!");for(r=t.childNodes,o=0,a=0,l=r.length;a<l;a++)if(i=r[a],s(i)===e&&(o+=1)===n)return i;throw new Error("XPath error: wanted child not found.")},s=function(t){var e;switch(e=t.nodeName.toLowerCase()){case"#text":return"text()";case"#comment":return"comment()";case"#cdata-section":return"cdata-section()";default:return e}},l=function(t){var e,n;for(e=0,n=t;n;)n.nodeName===t.nodeName&&(e+=1),n=n.previousSibling;return e},a=function(t,e){var n;try{n=u(t,e)}catch(i){i,console.log("jQuery-based XPath construction failed! Falling back to manual."),n=c(t,e)}return n},d=function(t,n){var i,o,a,s;return null==n&&(n=document),e.isXMLDoc(document.documentElement)?(i=document.createNSResolver(null===document.ownerDocument?document.documentElement:document.ownerDocument.documentElement),a=r(t,n,i),a||(t=function(){var e,n,i,r;for(i=t.split("/"),r=[],e=0,n=i.length;e<n;e++)s=i[e],s&&-1===s.indexOf(":")?r.push(s.replace(/^([a-z]+)/,"xhtml:$1")):r.push(s);return r}().join("/"),o=document.lookupNamespaceURI(null),i=function(t){return"xhtml"===t?o:document.documentElement.getAttribute("xmlns:"+t)},a=r(t,n,i)),a):r(t,n)},t.exports={fromNode:a,toNode:d}}).call(this)},function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var i=n(0),r=_interopRequireDefault(i),o=n(22),a=_interopRequireDefault(o);n(34),n(33),n(31),n(14),n(15);var s=n(30);(0,r.default)(document).ready(function(){if((0,r.default)("article").length){var t=new a.default.App;t.include(a.default.ui.main,{element:document.querySelector("article")});var e=JSON.parse((0,r.default)("#annotationroutes").html());t.include(a.default.storage.http,e),t.start().then(function(){t.annotations.load({entry:e.entryId})}),(0,r.default)(window).scroll(function(){var t=(0,r.default)(window).scrollTop(),n=(0,r.default)(document).height(),i=t/n,o=Math.round(100*i)/100;(0,s.savePercent)(e.entryId,o)}),(0,s.retrievePercent)(e.entryId),(0,r.default)(window).resize(function(){(0,s.retrievePercent)(e.entryId)})}})},function(t,e,n){"use strict";(function(t){n(35)(n(32));var i=n(23),r=n(1);e.App=i.App,e.authz=n(5),e.identity=n(6),e.notification=n(7),e.storage=n(8),e.ui=n(25),e.util=r,e.ext={};var o=t.wgxpath;void 0!==o&&null!==o&&"function"==typeof o.install&&o.install();var a=t.annotator;e.noConflict=function(){return t.annotator=a,this}}).call(e,n(2))},function(t,e,n){"use strict";function App(){this.modules=[],this.registry=new l.Registry,this._started=!1,this.registry.registerUtility(s.defaultNotifier,"notifier"),this.include(o.acl),this.include(a.simple),this.include(u.noop)}var i=n(16),r=n(17).Promise,o=n(5),a=n(6),s=n(7),l=n(24),u=n(8);App.prototype.include=function(t,e){var n=t(e);return"function"==typeof n.configure&&n.configure(this.registry),this.modules.push(n),this},App.prototype.start=function(){if(!this._started){this._started=!0;var t=this,e=this.registry;return this.authz=e.getUtility("authorizationPolicy"),this.ident=e.getUtility("identityPolicy"),this.notify=e.getUtility("notifier"),this.annotations=new u.StorageAdapter(e.getUtility("storage"),function(){return t.runHook.apply(t,arguments)}),this.runHook("start",[this])}},App.prototype.destroy=function(){return this.runHook("destroy")},App.prototype.runHook=function(t,e){for(var n=[],i=0,o=this.modules.length;i<o;i++){var a=this.modules[i];"function"==typeof a[t]&&n.push(a[t].apply(a,e))}return r.all(n)},App.extend=i,e.App=App},function(t,e,n){"use strict";function Registry(){this.utilities={}}function LookupError(t){this.name="LookupError",this.message='No utility registered for interface "'+t+'".'}Registry.prototype.registerUtility=function(t,e){this.utilities[e]=t},Registry.prototype.getUtility=function(t){var e=this.queryUtility(t);if(null===e)throw new LookupError(t);return e},Registry.prototype.queryUtility=function(t){var e=this.utilities[t];return void 0===e||null===e?null:e},LookupError.prototype=Object.create(Error.prototype),LookupError.prototype.constructor=LookupError,e.LookupError=LookupError,e.Registry=Registry},function(t,e,n){e.main=n(27).main,e.adder=n(9),e.editor=n(10),e.filter=n(26),e.highlighter=n(11),e.markdown=n(28),e.tags=n(29),e.textselector=n(12),e.viewer=n(13),e.widget=n(3)},function(t,e,n){"use strict";var i=n(1),r=i.$,o=i.gettext,a="annotator-filter",s=e.Filter=function Filter(t){this.options=r.extend(!0,{},Filter.options,t),this.classes=r.extend(!0,{},Filter.classes),this.element=r(Filter.html.element).appendTo(this.options.appendTo),this.filter=r(Filter.html.filter),this.filters=[],this.current=0;for(var e=0,n=this.options.filters.length;e<n;e++){var i=this.options.filters[e];this.addFilter(i)}this.updateHighlights();var s=".annotator-filter-property input",l=this;this.element.on("focus."+a,s,function(t){l._onFilterFocus(t)}).on("blur."+a,s,function(t){l._onFilterBlur(t)}).on("keyup."+a,s,function(t){l._onFilterKeyup(t)}).on("click."+a,".annotator-filter-previous",function(t){l._onPreviousClick(t)}).on("click."+a,".annotator-filter-next",function(t){l._onNextClick(t)}).on("click."+a,".annotator-filter-clear",function(t){l._onClearClick(t)}),this._insertSpacer(),this.options.addAnnotationFilter&&this.addFilter({label:o("Annotation"),property:"text"})};s.prototype.destroy=function(){var t=r("html"),e=parseInt(t.css("padding-top"),10)||0;t.css("padding-top",e-this.element.outerHeight()),this.element.off("."+a),this.element.remove()},s.prototype._insertSpacer=function(){var t=r("html"),e=parseInt(t.css("padding-top"),10)||0;return t.css("padding-top",e+this.element.outerHeight()),this},s.prototype.addFilter=function(t){for(var e=r.extend({label:"",property:"",isFiltered:this.options.isFiltered},t),n=!1,i=0,a=this.filters.length;i<a;i++){if(this.filters[i].property===e.property){n=!0;break}}return n||(e.id="annotator-filter-"+e.property,e.annotations=[],e.element=this.filter.clone().appendTo(this.element),e.element.find("label").html(e.label).attr("for",e.id),e.element.find("input").attr({id:e.id,placeholder:o("Filter by ")+e.label+"…"}),e.element.find("button").hide(),e.element.data("filter",e),this.filters.push(e)),this},s.prototype.updateFilter=function(t){t.annotations=[],this.updateHighlights(),this.resetHighlights();var e=r.trim(t.element.find("input").val());if(e){var n=this.highlights.map(function(){return r(this).data("annotation")});n=r.makeArray(n);for(var i=0,o=n.length;i<o;i++){var a=n[i],s=a[t.property];t.isFiltered(e,s)&&t.annotations.push(a)}this.filterHighlights()}},s.prototype.updateHighlights=function(){this.highlights=r(this.options.filterElement).find(".annotator-hl:visible"),this.filtered=this.highlights.not(this.classes.hl.hide)},s.prototype.filterHighlights=function(){var t=r.grep(this.filters,function(t){return Boolean(t.annotations.length)}),e=[];if(t.length>0&&(e=t[0].annotations),t.length>1){var n=[];r.each(t,function(){r.merge(n,this.annotations)});var i=[];e=[],r.each(n,function(){-1===r.inArray(this,i)?i.push(this):e.push(this)})}for(var o=this.highlights,a=0,s=e.length;a<s;a++)o=o.not(e[a]._local.highlights);return o.addClass(this.classes.hl.hide),this.filtered=this.highlights.not(this.classes.hl.hide),this},s.prototype.resetHighlights=function(){return this.highlights.removeClass(this.classes.hl.hide),this.filtered=this.highlights,this},s.prototype._onFilterFocus=function(t){var e=r(t.target);e.parent().addClass(this.classes.active),e.next("button").show()},s.prototype._onFilterBlur=function(t){if(!t.target.value){var e=r(t.target);e.parent().removeClass(this.classes.active),e.next("button").hide()}},s.prototype._onFilterKeyup=function(t){var e=r(t.target).parent().data("filter");e&&this.updateFilter(e)},s.prototype._findNextHighlight=function(t){if(0===this.highlights.length)return this;var e=-1,n=0,i="gt";t&&(e=0,n=-1,i="lt");var r=this.highlights.not("."+this.classes.hl.hide),o=r.filter("."+this.classes.hl.active);0===o.length&&(o=r.eq(e));var a=o.data("annotation"),s=r.index(o[0]),l=r.filter(":"+i+"("+s+")").not(a._local.highlights).eq(n);0===l.length&&(l=r.eq(n)),this._scrollToHighlight(l.data("annotation")._local.highlights)},s.prototype._onNextClick=function(){this._findNextHighlight()},s.prototype._onPreviousClick=function(){this._findNextHighlight(!0)},s.prototype._scrollToHighlight=function(t){t=r(t),this.highlights.removeClass(this.classes.hl.active),t.addClass(this.classes.hl.active),r("html, body").animate({scrollTop:t.offset().top-(this.element.height()+20)},150)},s.prototype._onClearClick=function(t){r(t.target).prev("input").val("").keyup().blur()},s.classes={active:"annotator-filter-active",hl:{hide:"annotator-hl-filtered",active:"annotator-hl-active"}},s.html={element:['<div class="annotator-filter">'," <strong>"+o("Navigate:")+"</strong>",' <span class="annotator-filter-navigation">',' <button type="button"',' class="annotator-filter-previous">'+o("Previous")+"</button>",' <button type="button"',' class="annotator-filter-next">'+o("Next")+"</button>"," </span>"," <strong>"+o("Filter by:")+"</strong>","</div>"].join("\n"),filter:['<span class="annotator-filter-property">'," <label></label>"," <input/>",' <button type="button"',' class="annotator-filter-clear">'+o("Clear")+"</button>","</span>"].join("\n")},s.options={appendTo:"body",filterElement:"body",filters:[],addAnnotationFilter:!0,isFiltered:function(t,e){if(!t||!e)return!1;for(var n=t.split(/\s+/),i=0,r=n.length;i<r;i++)if(-1===e.indexOf(n[i]))return!1;return!0}},e.standalone=function(t){var n=new e.Filter(t);return{destroy:function(){n.destroy()},annotationsLoaded:function(){n.updateHighlights()},annotationCreated:function(){n.updateHighlights()},annotationUpdated:function(){n.updateHighlights()},annotationDeleted:function(){n.updateHighlights()}}}},function(t,e,n){"use strict";(function(t){function trim(t){return"function"==typeof String.prototype.trim?String.prototype.trim.call(t):t.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}function annotationFactory(t,e){return function(n){for(var i=[],r=[],o=0,a=n.length;o<a;o++){var s=n[o];i.push(trim(s.text())),r.push(s.serialize(t,e))}return{quote:i.join(" / "),ranges:r}}}function maxZIndex(t){for(var e=-1,n=0,r=t.length;n<r;n++){var o=i.$(t[n]);if("static"!==o.css("position")){var a=parseFloat(o.css("z-index"));a>e&&(e=a)}}return e}function injectDynamicStyle(){i.$("#annotator-dynamic-style").remove();var e=maxZIndex(i.$(t.document.body).find("*:not(annotator-adder):not(annotator-outer):not(annotator-notice):not(annotator-filter)").get());e=Math.max(e,1e3);var n=[".annotator-adder, .annotator-outer, .annotator-notice {"," z-index: "+(e+20)+";","}",".annotator-filter {"," z-index: "+(e+10)+";","}"].join("\n");i.$("<style>"+n+"</style>").attr("id","annotator-dynamic-style").attr("type","text/css").appendTo("head")}function removeDynamicStyle(){i.$("#annotator-dynamic-style").remove()}function addPermissionsCheckboxes(t,e,n){function createLoadCallback(t){return function(r,o){r=i.$(r).show();var a=e.who(),s=r.find("input");void 0!==a&&null!==a||r.hide(),n.permits("admin",o,a)||r.hide(),n.permits(t,o,null)?s.attr("checked","checked"):s.removeAttr("checked")}}function createSubmitCallback(t){return function(r,o){var a=e.who();void 0!==a&&null!==a&&(o.permissions||(o.permissions={}),i.$(r).find("input").is(":checked")?delete o.permissions[t]:o.permissions[t]=[n.authorizedUserId(a)])}}t.addField({type:"checkbox",label:u("Allow anyone to <strong>view</strong> this annotation"),load:createLoadCallback("read"),submit:createSubmitCallback("read")}),t.addField({type:"checkbox",label:u("Allow anyone to <strong>edit</strong> this annotation"),load:createLoadCallback("update"),submit:createSubmitCallback("update")})}function main(e){function start(t){var c=t.registry.getUtility("identityPolicy"),d=t.registry.getUtility("authorizationPolicy");u.adder=new r.Adder({onCreate:function(e){t.annotations.create(e)}}),u.adder.attach(),u.editor=new o.Editor({extensions:e.editorExtensions}),u.editor.attach(),addPermissionsCheckboxes(u.editor,c,d),u.highlighter=new a.Highlighter(e.element),u.textselector=new s.TextSelector(e.element,{onSelection:function(t,e){if(t.length>0){var r=n(t);u.interactionPoint=i.mousePosition(e),u.adder.load(r,u.interactionPoint)}else u.adder.hide()}}),u.viewer=new l.Viewer({onEdit:function(e){u.interactionPoint=i.$(u.viewer.element).css(["top","left"]),t.annotations.update(e)},onDelete:function(e){t.annotations.delete(e)},permitEdit:function(t){return d.permits("update",t,c.who())},permitDelete:function(t){return d.permits("delete",t,c.who())},autoViewHighlights:e.element,extensions:e.viewerExtensions}),u.viewer.attach(),injectDynamicStyle()}void 0!==e&&null!==e||(e={}),e.element=e.element||t.document.body,e.editorExtensions=e.editorExtensions||[],e.viewerExtensions=e.viewerExtensions||[];var n=annotationFactory(e.element,".annotator-hl"),u={interactionPoint:null};return{start:start,destroy:function(){u.adder.destroy(),u.editor.destroy(),u.highlighter.destroy(),u.textselector.destroy(),u.viewer.destroy(),removeDynamicStyle()},annotationsLoaded:function(t){u.highlighter.drawAll(t)},annotationCreated:function(t){u.highlighter.draw(t)},annotationDeleted:function(t){u.highlighter.undraw(t)},annotationUpdated:function(t){u.highlighter.redraw(t)},beforeAnnotationCreated:function(t){return u.editor.load(t,u.interactionPoint)},beforeAnnotationUpdated:function(t){return u.editor.load(t,u.interactionPoint)}}}var i=n(1),r=n(9),o=n(10),a=n(11),s=n(12),l=n(13),u=i.gettext;e.main=main}).call(e,n(2))},function(t,e,n){"use strict";(function(t){var i=n(1),r=i.gettext,o=e.render=function(e){var n=i.escapeHtml;return t.showdown&&"function"==typeof t.showdown.Converter&&(n=(new t.showdown.Converter).makeHtml),e.text?n(e.text):"<i>"+r("No comment")+"</i>"};e.viewerExtension=function(e){t.showdown&&"function"==typeof t.showdown.Converter||console.warn(r("To use the Markdown plugin, you must include Showdown into the page first.")),e.setRenderer(o)}}).call(e,n(2))},function(t,e,n){"use strict";function stringifyTags(t){return t.join(" ")}function parseTags(t){t=r.trim(t);var e=[];return t&&(e=t.split(/\s+/)),e}var i=n(1),r=i.$,o=i.gettext;e.viewerExtension=function(t){function updateViewer(t,e){t=r(t),e.tags&&r.isArray(e.tags)&&e.tags.length?t.addClass("annotator-tags").html(function(){return r.map(e.tags,function(t){return'<span class="annotator-tag">'+i.escapeHtml(t)+"</span>"}).join(" ")}):t.remove()}t.addField({load:updateViewer})},e.editorExtension=function(t){function updateField(t,e){var i="";e.tags&&(i=stringifyTags(e.tags)),n.val(i)}function setAnnotationTags(t,e){e.tags=parseTags(n.val())}var e=null,n=null;e=t.addField({label:o("Add some tags here")+"…",load:updateField,submit:setAnnotationTags}),n=r(e).find(":input")}},function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function supportsLocalStorage(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}}function savePercent(t,e){return!!supportsLocalStorage()&&(localStorage["wallabag.article."+t+".percent"]=e,!0)}function retrievePercent(t){if(!supportsLocalStorage())return!1;var e=(0,r.default)(document).height(),n=localStorage["wallabag.article."+t+".percent"],i=e*n;return(0,r.default)("html,body").animate({scrollTop:i},"fast"),!0}Object.defineProperty(e,"__esModule",{value:!0}),e.retrievePercent=e.savePercent=void 0;var i=n(0),r=_interopRequireDefault(i);n(15),n(14);var o=n(36);_interopRequireDefault(o);e.savePercent=savePercent,e.retrievePercent=retrievePercent},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){var n={};t.exports=function(t,e){if(!n[t]){n[t]=!0;var i=document.createElement("style");i.setAttribute("type","text/css"),"textContent"in i?i.textContent=t:i.styleSheet.cssText=t;var r=document.getElementsByTagName("head")[0];e&&e.prepend?r.insertBefore(i,r.childNodes[0]):r.appendChild(i)}}},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";t.exports=n(3)},function(t,e){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i){i=Object(i);for(var r=Object.keys(Object(i)),o=0,a=r.length;o<a;o++){var s=r[o],l=Object.getOwnPropertyDescriptor(i,s);void 0!==l&&l.enumerable&&(e[s]=i[s])}}}return e}})}()},function(t,e){"use strict";t.exports=function(){var t={};return t.utf16to8=function(t){var e,n,i,r;for(e="",i=t.length,n=0;n<i;n++)r=t.charCodeAt(n),r>=1&&r<=127?e+=t.charAt(n):r>2047?(e+=String.fromCharCode(224|r>>12&15),e+=String.fromCharCode(128|r>>6&63),e+=String.fromCharCode(128|r>>0&63)):(e+=String.fromCharCode(192|r>>6&31),e+=String.fromCharCode(128|r>>0&63));return e},t.utf8to16=function(t){var e,n,i,r,o,a;for(e="",i=t.length,n=0;n<i;)switch((r=t.charCodeAt(n++))>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(n-1);break;case 12:case 13:o=t.charCodeAt(n++),e+=String.fromCharCode((31&r)<<6|63&o);break;case 14:o=t.charCodeAt(n++),a=t.charCodeAt(n++),e+=String.fromCharCode((15&r)<<12|(63&o)<<6|(63&a)<<0)}return e},t}()},function(e,n,i){"use strict";i(1),i(4);var r=i(2),o=function(){function t(t){var e=new QRCode(t.typeNumber,t.correctLevel);e.addData(t.text),e.make();var n=document.createElement("canvas");n.width=t.width,n.height=t.height;var i=n.getContext("2d"),r=(t.width-2*t.padding)/e.getModuleCount(),o=(t.height-2*t.padding)/e.getModuleCount();if(t.reverse){var a="rgba(0, 0, 0, 0)";i.fillStyle=a,t.foreground=a}else i.fillStyle=t.background;i.fillRect(0,0,n.width,n.height);for(var s=0;s<e.getModuleCount();s++)for(var l=0;l<e.getModuleCount();l++){i.fillStyle=e.isDark(s,l)?t.foreground:t.background;var u=Math.ceil((l+1)*r)-Math.floor(l*r),c=Math.ceil((s+1)*r)-Math.floor(s*r);i.fillRect(Math.round(l*r)+t.padding,Math.round(s*o)+t.padding,u,c)}return n}var e={};return e.getQrBase64=function(e,n){"string"!=typeof e&&(e=""),"string"==typeof n?n={text:n}:"object"!=typeof n&&(n={}),n=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},n);try{n.text=r.utf16to8(e)}catch(t){n.text=""+t}return t(n).toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=o),e.exports=o},function(t,e){function r(t){this.mode=s.MODE_8BIT_BYTE,this.data=t}function o(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&0==t[n];)n++;this.num=new Array(t.length-n+e);for(var i=0;i<t.length-n;i++)this.num[i]=t[i+n]}function i(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},o.prototype={addData:function(t){var e=new r(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),n=new a,r=0,o=0;o<e.length;o++)r+=e[o].dataCount;for(var o=0;o<this.dataList.length;o++){var s=this.dataList[o];n.put(s.mode,4),n.put(s.getLength(),c.getLengthInBits(s.mode,t)),s.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+n][e+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=c.getLostPoint(this);(0==n||t>i)&&(t=i,e=n)}return e},createMovieClip:function(t,e,n){var i=t.createEmptyMovieClip(e,n);this.make();for(var r=0;r<this.modules.length;r++)for(var o=1*r,a=0;a<this.modules[r].length;a++){var s=1*a,l=this.modules[r][a];l&&(i.beginFill(0,100),i.moveTo(s,o),i.lineTo(s+1,o),i.lineTo(s+1,o+1),i.lineTo(s,o+1),i.endFill())}return i},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=c.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var i=t[e],r=t[n];if(null==this.modules[i][r])for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)this.modules[i+o][r+a]=-2==o||2==o||-2==a||2==a||0==o&&0==a}},setupTypeNumber:function(t){for(var e=c.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(var n=0;n<18;n++){var i=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,i=c.getBCHTypeInfo(n),r=0;r<15;r++){var o=!t&&1==(i>>r&1);r<6?this.modules[r][8]=o:r<8?this.modules[r+1][8]=o:this.modules[this.moduleCount-15+r][8]=o}for(var r=0;r<15;r++){var o=!t&&1==(i>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=o:r<9?this.modules[8][15-r-1+1]=o:this.modules[8][15-r-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,i=this.moduleCount-1,r=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[i][a-s]){var l=!1;o<t.length&&(l=1==(t[o]>>>r&1));var u=c.getMask(e,i,a-s);u&&(l=!l),this.modules[i][a-s]=l,-1==--r&&(o++,r=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(t,e,n){for(var r=i.getRSBlocks(t,e),s=new a,l=0;l<n.length;l++){var u=n[l];s.put(u.mode,4),s.put(u.getLength(),c.getLengthInBits(u.mode,t)),u.write(s)}for(var d=0,l=0;l<r.length;l++)d+=r[l].dataCount;if(s.getLengthInBits()>8*d)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(o.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(o.PAD1,8);return o.createBytes(s,r)},o.createBytes=function(t,e){for(var i=0,r=0,o=0,a=new Array(e.length),s=new Array(e.length),l=0;l<e.length;l++){var u=e[l].dataCount,d=e[l].totalCount-u;r=Math.max(r,u),o=Math.max(o,d),a[l]=new Array(u);for(var f=0;f<a[l].length;f++)a[l][f]=255&t.buffer[f+i];i+=u;var h=c.getErrorCorrectPolynomial(d),p=new n(a[l],h.getLength()-1),g=p.mod(h);s[l]=new Array(h.getLength()-1);for(var f=0;f<s[l].length;f++){var v=f+g.getLength()-s[l].length;s[l][f]=v>=0?g.get(v):0}}for(var m=0,f=0;f<e.length;f++)m+=e[f].totalCount;for(var y=new Array(m),b=0,f=0;f<r;f++)for(var l=0;l<e.length;l++)f<a[l].length&&(y[b++]=a[l][f]);for(var f=0;f<o;f++)for(var l=0;l<e.length;l++)f<s[l].length&&(y[b++]=s[l][f]);return y};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},l={L:1,M:0,Q:3,H:2},u={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;c.getBCHDigit(e)-c.getBCHDigit(c.G15)>=0;)e^=c.G15<<c.getBCHDigit(e)-c.getBCHDigit(c.G15);return(t<<10|e)^c.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;c.getBCHDigit(e)-c.getBCHDigit(c.G18)>=0;)e^=c.G18<<c.getBCHDigit(e)-c.getBCHDigit(c.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return c.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case u.PATTERN000:return(e+n)%2==0;case u.PATTERN001:return e%2==0;case u.PATTERN010:return n%3==0;case u.PATTERN011:return(e+n)%3==0;case u.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case u.PATTERN101:return e*n%2+e*n%3==0;case u.PATTERN110:return(e*n%2+e*n%3)%2==0;case u.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),i=0;i<t;i++)e=e.multiply(new n([1,d.gexp(i)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:case s.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,i=0;i<e;i++)for(var r=0;r<e;r++){for(var o=0,a=t.isDark(i,r),s=-1;s<=1;s++)if(!(i+s<0||e<=i+s))for(var l=-1;l<=1;l++)r+l<0||e<=r+l||0==s&&0==l||a==t.isDark(i+s,r+l)&&o++;o>5&&(n+=3+o-5)}for(var i=0;i<e-1;i++)for(var r=0;r<e-1;r++){var u=0;t.isDark(i,r)&&u++,t.isDark(i+1,r)&&u++,t.isDark(i,r+1)&&u++,t.isDark(i+1,r+1)&&u++,0!=u&&4!=u||(n+=3)}for(var i=0;i<e;i++)for(var r=0;r<e-6;r++)t.isDark(i,r)&&!t.isDark(i,r+1)&&t.isDark(i,r+2)&&t.isDark(i,r+3)&&t.isDark(i,r+4)&&!t.isDark(i,r+5)&&t.isDark(i,r+6)&&(n+=40);for(var r=0;r<e;r++)for(var i=0;i<e-6;i++)t.isDark(i,r)&&!t.isDark(i+1,r)&&t.isDark(i+2,r)&&t.isDark(i+3,r)&&t.isDark(i+4,r)&&!t.isDark(i+5,r)&&t.isDark(i+6,r)&&(n+=40);for(var c=0,r=0;r<e;r++)for(var i=0;i<e;i++)t.isDark(i,r)&&c++;return n+=Math.abs(100*c/e/e-50)/5*10}},d={glog:function(t){if(t<1)throw new Error("glog("+t+")");return d.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return d.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},f=0;f<8;f++)d.EXP_TABLE[f]=1<<f;for(var f=8;f<256;f++)d.EXP_TABLE[f]=d.EXP_TABLE[f-4]^d.EXP_TABLE[f-5]^d.EXP_TABLE[f-6]^d.EXP_TABLE[f-8];for(var f=0;f<255;f++)d.LOG_TABLE[d.EXP_TABLE[f]]=f;n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),i=0;i<this.getLength();i++)for(var r=0;r<t.getLength();r++)e[i+r]^=d.gexp(d.glog(this.get(i))+d.glog(t.get(r)));return new n(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=d.glog(this.get(0))-d.glog(t.get(0)),i=new Array(this.getLength()),r=0;r<this.getLength();r++)i[r]=this.get(r);for(var r=0;r<t.getLength();r++)i[r]^=d.gexp(d.glog(t.get(r))+e);return new n(i,0).mod(t)}},i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(t,e){var n=i.getRsBlockTable(t,e);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var r=n.length/3,o=new Array,a=0;a<r;a++)for(var s=n[3*a+0],l=n[3*a+1],u=n[3*a+2],c=0;c<s;c++)o.push(new i(l,u));return o},i.getRsBlockTable=function(t,e){switch(e){case l.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case l.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case l.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case l.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=l;try{t.exports={QRCode:o,QRErrorCorrectLevel:l}}catch(t){}}])})},function(t,e){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(t){if(n===setTimeout)return setTimeout(t,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function runClearTimeout(t){if(i===clearTimeout)return clearTimeout(t);if((i===defaultClearTimeout||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}function cleanUpNextTick(){s&&o&&(s=!1,o.length?a=o.concat(a):l=-1,a.length&&drainQueue())}function drainQueue(){if(!s){var t=runTimeout(cleanUpNextTick);s=!0;for(var e=a.length;e;){for(o=a,a=[];++l<e;)o&&o[l].run();l=-1,e=a.length}o=null,s=!1,runClearTimeout(t)}}function Item(t,e){this.fun=t,this.array=e}function noop(){}var n,i,r=t.exports={};!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(t){n=defaultSetTimout}try{i="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(t){i=defaultClearTimeout}}();var o,a=[],s=!1,l=-1;r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new Item(t,e)),1!==a.length||s||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=noop,r.addListener=noop,r.once=noop,r.off=noop,r.removeListener=noop,r.removeAllListeners=noop,r.emit=noop,r.prependListener=noop,r.prependOnceListener=noop,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){(function(){var e,i,r,o,a={}.hasOwnProperty,s=function(t,e){function ctor(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return ctor.prototype=e.prototype,t.prototype=new ctor,t.__super__=e.prototype,t};o=n(20),r=n(19),e=n(0),i={},i.sniff=function(t){return null!=t.commonAncestorContainer?new i.BrowserRange(t):"string"==typeof t.start?new i.SerializedRange(t):t.start&&"object"==typeof t.start?new i.NormalizedRange(t):(console.error("Could not sniff range type"),!1)},i.RangeError=function(t){function RangeError(t,e,n){this.type=t,this.message=e,this.parent=null!=n?n:null,RangeError.__super__.constructor.call(this,this.message)}return s(RangeError,t),RangeError}(Error),i.BrowserRange=function(){function BrowserRange(t){this.commonAncestorContainer=t.commonAncestorContainer,this.startContainer=t.startContainer,this.startOffset=t.startOffset,this.endContainer=t.endContainer,this.endOffset=t.endOffset}return BrowserRange.prototype.normalize=function(t){var e,n;if(this.tainted)return console.error("You may only call normalize() once on a BrowserRange!"),!1;for(this.tainted=!0,n={},this._normalizeStart(n),this._normalizeEnd(n),e={},n.startOffset>0?n.start.nodeValue.length>n.startOffset?e.start=n.start.splitText(n.startOffset):e.start=n.start.nextSibling:e.start=n.start,n.start===n.end?(e.start.nodeValue.length>n.endOffset-n.startOffset&&e.start.splitText(n.endOffset-n.startOffset),e.end=e.start):(n.end.nodeValue.length>n.endOffset&&n.end.splitText(n.endOffset),e.end=n.end),e.commonAncestor=this.commonAncestorContainer;e.commonAncestor.nodeType!==r.NodeTypes.ELEMENT_NODE;)e.commonAncestor=e.commonAncestor.parentNode;return new i.NormalizedRange(e)},BrowserRange.prototype._normalizeStart=function(t){return this.startContainer.nodeType===r.NodeTypes.ELEMENT_NODE?(t.start=r.getFirstTextNodeNotBefore(this.startContainer.childNodes[this.startOffset]),t.startOffset=0):(t.start=this.startContainer,t.startOffset=this.startOffset)},BrowserRange.prototype._normalizeEnd=function(t){var e,n;if(this.endContainer.nodeType!==r.NodeTypes.ELEMENT_NODE)return t.end=this.endContainer,t.endOffset=this.endOffset;if(null!=(n=this.endContainer.childNodes[this.endOffset])){for(e=n;null!=e&&e.nodeType!==r.NodeTypes.TEXT_NODE;)e=e.firstChild;null!=e&&(t.end=e,t.endOffset=0)}return null==t.end?(n=this.endOffset?this.endContainer.childNodes[this.endOffset-1]:this.endContainer.previousSibling,t.end=r.getLastTextNodeUpTo(n),t.endOffset=t.end.nodeValue.length):void 0},BrowserRange.prototype.serialize=function(t,e){return this.normalize(t).serialize(t,e)},BrowserRange}(),i.NormalizedRange=function(){function NormalizedRange(t){this.commonAncestor=t.commonAncestor,this.start=t.start,this.end=t.end}return NormalizedRange.prototype.normalize=function(t){return this},NormalizedRange.prototype.limit=function(t){var n,i,r,o,a,s;if(n=e.grep(this.textNodes(),function(n){return n.parentNode===t||e.contains(t,n.parentNode)}),!n.length)return null;for(this.start=n[0],this.end=n[n.length-1],r=e(this.start).parents(),s=e(this.end).parents(),o=0,a=s.length;o<a;o++)if(i=s[o],-1!==r.index(i)){this.commonAncestor=i;break}return this},NormalizedRange.prototype.serialize=function(t,n){var a,s,l;return s=function(i,a){var s,l,u,c,d,f,h,p;for(c=n?e(i).parents(":not("+n+")").eq(0):e(i).parent(),d=o.fromNode(c,t)[0],f=r.getTextNodes(c),l=f.slice(0,f.index(i)),u=0,h=0,p=l.length;h<p;h++)s=l[h],u+=s.nodeValue.length;return a?[d,u+i.nodeValue.length]:[d,u]},l=s(this.start),a=s(this.end,!0),new i.SerializedRange({start:l[0],end:a[0],startOffset:l[1],endOffset:a[1]})},NormalizedRange.prototype.text=function(){var t;return function(){var e,n,i,r;for(i=this.textNodes(),r=[],e=0,n=i.length;e<n;e++)t=i[e],r.push(t.nodeValue);return r}.call(this).join("")},NormalizedRange.prototype.textNodes=function(){var t,n,i,o;return i=r.getTextNodes(e(this.commonAncestor)),o=[i.index(this.start),i.index(this.end)],n=o[0],t=o[1],e.makeArray(i.slice(n,+t+1||9e9))},NormalizedRange}(),i.SerializedRange=function(){function SerializedRange(t){this.start=t.start,this.startOffset=t.startOffset,this.end=t.end,this.endOffset=t.endOffset}return SerializedRange.prototype.normalize=function(t){var n,a,s,l,u,c,d,f,h,p,g,v,m,y;for(c={},m=["start","end"],h=0,g=m.length;h<g;h++){u=m[h];try{l=o.toNode(this[u],t)}catch(t){throw a=t,new i.RangeError(u,"Error while finding "+u+" node: "+this[u]+": "+a,a)}if(!l)throw new i.RangeError(u,"Couldn't find "+u+" node: "+this[u]);for(s=0,d=this[u+"Offset"],"end"===u&&(d-=1),y=r.getTextNodes(e(l)),p=0,v=y.length;p<v;p++){if(f=y[p],s+f.nodeValue.length>d){c[u+"Container"]=f,c[u+"Offset"]=this[u+"Offset"]-s;break}s+=f.nodeValue.length}if(null==c[u+"Offset"])throw new i.RangeError(u+"offset","Couldn't find offset "+this[u+"Offset"]+" in element "+this[u])}return n=null!=document.compareDocumentPosition?function(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY}:function(t,e){return t.contains(e)},e(c.startContainer).parents().each(function(){var t;if(t=c.endContainer.nodeType===r.NodeTypes.TEXT_NODE?c.endContainer.parentNode:c.endContainer,n(this,t))return c.commonAncestorContainer=this,!1}),new i.BrowserRange(c).normalize(t)},SerializedRange.prototype.serialize=function(t,e){return this.normalize(t).serialize(t,e)},SerializedRange.prototype.toObject=function(){return{start:this.start,startOffset:this.startOffset,end:this.end,endOffset:this.endOffset}},SerializedRange}(),t.exports=i}).call(this)},function(t,e){},,,,function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var i=n(4),r=_interopRequireDefault(i),o=n(0),a=_interopRequireDefault(o);(0,a.default)(document).ready(function(){(0,a.default)("#article").length>0&&(r.default.bind("o",function(){(0,a.default)("ul.side-nav a.original i")[0].click()}),r.default.bind("f",function(){(0,a.default)("ul.side-nav a.favorite i")[0].click()}),r.default.bind("a",function(){(0,a.default)("ul.side-nav a.markasread i")[0].click()}),r.default.bind("del",function(){(0,a.default)("ul.side-nav a.delete i")[0].click()}))})},function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function toggleFocus(t){t&&(0,a.default)(t).toggleClass("z-depth-4")}var i=n(4),r=_interopRequireDefault(i),o=n(0),a=_interopRequireDefault(o);(0,a.default)(document).ready(function(){var t=(0,a.default)("#content").find(".card"),e=t.length,n=0;"#prev"===window.location.hash&&(n=e-1);var i=t[n],o=(0,a.default)(".pagination");(0,a.default)("#content > div.quickstart").length>0||(0,a.default)("#username").length>0||(0,a.default)("#fos_user_registration_form_username").length>0||(0,a.default)("#username").length>0||(0,a.default)("#fos_user_registration_form_username").length>0||(toggleFocus(i),r.default.bind("g n",function(){return(0,a.default)("#nav-btn-add").trigger("click"),!1}),r.default.bind("s",function(){return(0,a.default)("#nav-btn-search").trigger("click"),!1}),r.default.bind("esc",function(){(0,a.default)(".close").trigger("click")}),r.default.bind("right",function(){if(n>=0&&n<e-1)return toggleFocus(i),n+=1,i=t[n],void toggleFocus(i);o.length>0&&o.find("li.next:not(.disabled)").length>0&&n===e-1&&(window.location.href=window.location.origin+(0,a.default)(o).find("li.next a").attr("href"))}),r.default.bind("left",function(){if(n>0&&n<e)return toggleFocus(i),n-=1,i=t[n],void toggleFocus(i);o.length>0&&(0,a.default)(o).find("li.prev:not(.disabled)").length>0&&0===n&&(window.location.href=window.location.origin+(0,a.default)(o).find("li.prev a").attr("href")+"#prev")}),r.default.bind("enter",function(){window.location.href=window.location.origin+(0,a.default)(i).find("span.card-title a").attr("href")}))})},function(t,e,n){"use strict";function initFilters(){(0,r.default)("div").is("#filters")&&((0,r.default)("#button_filters").show(),(0,r.default)(".js-filters-action").sideNav({edge:"right"}),(0,r.default)("#clear_form_filters").on("click",function(){return(0,r.default)("#filters input").val(""),(0,r.default)("#filters :checked").removeAttr("checked"),!1}))}function initExport(){(0,r.default)("div").is("#export")&&((0,r.default)("#button_export").show(),(0,r.default)(".js-export-action").sideNav({edge:"right"}))}Object.defineProperty(e,"__esModule",{value:!0}),e.initFilters=e.initExport=void 0;var i=n(0),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.initExport=initExport,e.initFilters=initFilters},,function(t,e){},function(t,e){},function(e,i,a){(function(d,f){var h,g,g,h,b,g,b,h,T,h,b,g;if(void 0===C){var C;C=d=a(0)}C.easing.jswing=C.easing.swing,C.extend(C.easing,{def:"easeOutQuad",swing:function(t,e,n,i,r){return C.easing[C.easing.def](t,e,n,i,r)},easeInQuad:function(t,e,n,i,r){return i*(e/=r)*e+n},easeOutQuad:function(t,e,n,i,r){return-i*(e/=r)*(e-2)+n},easeInOutQuad:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,i,r){return i*(e/=r)*e*e+n},easeOutCubic:function(t,e,n,i,r){return i*((e=e/r-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,i,r){return i*(e/=r)*e*e*e+n},easeOutQuart:function(t,e,n,i,r){return-i*((e=e/r-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,i,r){return i*(e/=r)*e*e*e*e+n},easeOutQuint:function(t,e,n,i,r){return i*((e=e/r-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,i,r){return-i*Math.cos(e/r*(Math.PI/2))+i+n},easeOutSine:function(t,e,n,i,r){return i*Math.sin(e/r*(Math.PI/2))+n},easeInOutSine:function(t,e,n,i,r){return-i/2*(Math.cos(Math.PI*e/r)-1)+n},easeInExpo:function(t,e,n,i,r){return 0==e?n:i*Math.pow(2,10*(e/r-1))+n},easeOutExpo:function(t,e,n,i,r){return e==r?n+i:i*(1-Math.pow(2,-10*e/r))+n},easeInOutExpo:function(t,e,n,i,r){return 0==e?n:e==r?n+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(2-Math.pow(2,-10*--e))+n},easeInCirc:function(t,e,n,i,r){return-i*(Math.sqrt(1-(e/=r)*e)-1)+n},easeOutCirc:function(t,e,n,i,r){return i*Math.sqrt(1-(e=e/r-1)*e)+n},easeInOutCirc:function(t,e,n,i,r){return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,i,r){var o=1.70158,a=0,s=i;if(0==e)return n;if(1==(e/=r))return n+i;if(a||(a=.3*r),s<Math.abs(i)){s=i;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(i/s);return-s*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)+n},easeOutElastic:function(t,e,n,i,r){var o=1.70158,a=0,s=i;if(0==e)return n;if(1==(e/=r))return n+i;if(a||(a=.3*r),s<Math.abs(i)){s=i;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(i/s);return s*Math.pow(2,-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+i+n},easeInOutElastic:function(t,e,n,i,r){var o=1.70158,a=0,s=i;if(0==e)return n;if(2==(e/=r/2))return n+i;if(a||(a=r*(.3*1.5)),s<Math.abs(i)){s=i;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(i/s);return e<1?s*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)*-.5+n:s*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)*.5+i+n},easeInBack:function(t,e,n,i,r,o){return void 0==o&&(o=1.70158),i*(e/=r)*e*((o+1)*e-o)+n},easeOutBack:function(t,e,n,i,r,o){return void 0==o&&(o=1.70158),i*((e=e/r-1)*e*((o+1)*e+o)+1)+n},easeInOutBack:function(t,e,n,i,r,o){return void 0==o&&(o=1.70158),(e/=r/2)<1?i/2*(e*e*((1+(o*=1.525))*e-o))+n:i/2*((e-=2)*e*((1+(o*=1.525))*e+o)+2)+n},easeInBounce:function(t,e,n,i,r){return i-C.easing.easeOutBounce(t,r-e,0,i,r)+n},easeOutBounce:function(t,e,n,i,r){return(e/=r)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,i,r){return e<r/2?.5*C.easing.easeInBounce(t,2*e,0,i,r)+n:.5*C.easing.easeOutBounce(t,2*e-r,0,i,r)+.5*i+n}}),C.extend(C.easing,{easeInOutMaterial:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e+n:i/4*((e-=2)*e*e+2)+n}}),C.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(n){function t(t){var e=t.length,n=i.type(t);return"function"!==n&&!i.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}if(!f){var i=function(t,e){return new i.fn.init(t,e)};i.isWindow=function(t){return null!=t&&t==t.window},i.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?o[s.call(t)]||"object":typeof t},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!a.call(t,"constructor")&&!a.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||a.call(t,e)},i.each=function(e,n,i){var r=0,o=e.length,a=t(e);if(i){if(a)for(;o>r&&!1!==n.apply(e[r],i);r++);else for(r in e)if(!1===n.apply(e[r],i))break}else if(a)for(;o>r&&!1!==n.call(e[r],r,e[r]);r++);else for(r in e)if(!1===n.call(e[r],r,e[r]))break;return e},i.data=function(t,e,n){if(void 0===n){var o=t[i.expando],a=o&&r[o];if(void 0===e)return a;if(a&&e in a)return a[e]}else if(void 0!==e){var o=t[i.expando]||(t[i.expando]=++i.uuid);return r[o]=r[o]||{},r[o][e]=n,n}},i.removeData=function(t,e){var n=t[i.expando],o=n&&r[n];o&&i.each(e,function(t,e){delete o[e]})},i.extend=function(){var t,e,n,r,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==i.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(o=arguments[l]))for(r in o)t=s[r],n=o[r],s!==n&&(c&&n&&(i.isPlainObject(n)||(e=i.isArray(n)))?(e?(e=!1,a=t&&i.isArray(t)?t:[]):a=t&&i.isPlainObject(t)?t:{},s[r]=i.extend(c,a,n)):void 0!==n&&(s[r]=n));return s},i.queue=function(e,n,r){if(e){n=(n||"fx")+"queue";var o=i.data(e,n);return r?(!o||i.isArray(r)?o=i.data(e,n,function(e,n){var i=n||[];return null!=e&&(t(Object(e))?function(t,e){for(var n=+e.length,i=0,r=t.length;n>i;)t[r++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[r++]=e[i++];t.length=r}(i,"string"==typeof e?[e]:e):[].push.call(i,e)),i}(r)):o.push(r),o):o||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var r=i.queue(n,e),o=r.shift();"inprogress"===o&&(o=r.shift()),o&&("fx"===e&&r.unshift("inprogress"),o.call(n,function(){i.dequeue(n,e)}))})},i.fn=i.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(n.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(n.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var t=this[0],e=e.apply(t),n=this.offset(),r=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:i(e).offset();return n.top-=parseFloat(t.style.marginTop)||0,n.left-=parseFloat(t.style.marginLeft)||0,e.style&&(r.top+=parseFloat(e.style.borderTopWidth)||0,r.left+=parseFloat(e.style.borderLeftWidth)||0),{top:n.top-r.top,left:n.left-r.left}}};var r={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var o={},a=o.hasOwnProperty,s=o.toString,l="Boolean Number String Function Array Date RegExp Object Error".split(" "),u=0;u<l.length;u++)o["[object "+l[u]+"]"]=l[u].toLowerCase();i.fn.init.prototype=i.fn,n.Velocity={Utilities:i}}}(window),function(t){"object"==typeof e&&"object"==typeof e.exports?e.exports=t():(h=t,void 0!==(g="function"==typeof h?h.call(i,a,i,e):h)&&(e.exports=g))}(function(){return function(r,a,h,v){function n(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var r=t[e];r&&i.push(r)}return i}function o(t){return w.isWrapped(t)?t=[].slice.call(t):w.isNode(t)&&(t=[t]),t}function i(t){var e=m.data(t,"velocity");return null===e?v:e}function s(t){return function(e){return Math.round(e*t)*(1/t)}}function l(t,e,n,r){function o(t,e){return 1-3*e+3*t}function i(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,n){return((o(e,n)*t+i(e,n))*t+s(e))*t}function u(t,e,n){return 3*o(e,n)*t*t+2*i(e,n)*t+s(e)}function c(e,i){for(var r=0;h>r;++r){var o=u(i,t,n);if(0===o)return i;i-=(l(i,t,n)-e)/o}return i}function p(){for(var e=0;b>e;++e)C[e]=l(e*w,t,n)}function f(e,i,r){var o,a,s=0;do{a=i+(r-i)/2,o=l(a,t,n)-e,o>0?r=a:i=a}while(Math.abs(o)>m&&++s<y);return a}function d(e){for(var i=0,r=1,o=b-1;r!=o&&C[r]<=e;++r)i+=w;--r;var a=(e-C[r])/(C[r+1]-C[r]),s=i+a*w,l=u(s,t,n);return l>=v?c(e,s):0==l?s:f(e,i,i+w)}function g(){k=!0,(t!=e||n!=r)&&p()}var h=4,v=.001,m=1e-7,y=10,b=11,w=1/(b-1),x="Float32Array"in a;if(4!==arguments.length)return!1;for(var T=0;4>T;++T)if("number"!=typeof arguments[T]||isNaN(arguments[T])||!isFinite(arguments[T]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var C=x?new Float32Array(b):new Array(b),k=!1,E=function(i){return k||g(),t===e&&n===r?i:0===i?0:1===i?1:l(d(i),e,r)};E.getControlPoints=function(){return[{x:t,y:e},{x:n,y:r}]};var S="generateBezier("+[t,e,n,r]+")";return E.toString=function(){return S},E}function u(t,e){var n=t;return w.isString(t)?E.Easings[t]||(n=!1):n=w.isArray(t)&&1===t.length?s.apply(null,t):w.isArray(t)&&2===t.length?S.apply(null,t.concat([e])):!(!w.isArray(t)||4!==t.length)&&l.apply(null,t),!1===n&&(n=E.Easings[E.defaults.easing]?E.defaults.easing:k),n}function c(t){if(t){var e=(new Date).getTime(),r=E.State.calls.length;r>1e4&&(E.State.calls=n(E.State.calls));for(var o=0;r>o;o++)if(E.State.calls[o]){var a=E.State.calls[o],s=a[0],l=a[2],u=a[3],d=!!u,f=null;u||(u=E.State.calls[o][3]=e-16);for(var h=Math.min((e-u)/l.duration,1),g=0,y=s.length;y>g;g++){var b=s[g],x=b.element;if(i(x)){var T=!1;if(l.display!==v&&null!==l.display&&"none"!==l.display){if("flex"===l.display){var C=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];m.each(C,function(t,e){_.setPropertyValue(x,"display",e)})}_.setPropertyValue(x,"display",l.display)}l.visibility!==v&&"hidden"!==l.visibility&&_.setPropertyValue(x,"visibility",l.visibility);for(var k in b)if("element"!==k){var S,A=b[k],D=w.isString(A.easing)?E.Easings[A.easing]:A.easing;if(1===h)S=A.endValue;else{var O=A.endValue-A.startValue;if(S=A.startValue+O*D(h,l,O),!d&&S===A.currentValue)continue}if(A.currentValue=S,"tween"===k)f=S;else{if(_.Hooks.registered[k]){var N=_.Hooks.getRoot(k),M=i(x).rootPropertyValueCache[N];M&&(A.rootPropertyValue=M)}var I=_.setPropertyValue(x,k,A.currentValue+(0===parseFloat(S)?"":A.unitType),A.rootPropertyValue,A.scrollData);_.Hooks.registered[k]&&(i(x).rootPropertyValueCache[N]=_.Normalizations.registered[N]?_.Normalizations.registered[N]("extract",null,I[1]):I[1]),"transform"===I[0]&&(T=!0)}}l.mobileHA&&i(x).transformCache.translate3d===v&&(i(x).transformCache.translate3d="(0px, 0px, 0px)",T=!0),T&&_.flushTransformCache(x)}}l.display!==v&&"none"!==l.display&&(E.State.calls[o][2].display=!1),l.visibility!==v&&"hidden"!==l.visibility&&(E.State.calls[o][2].visibility=!1),l.progress&&l.progress.call(a[1],a[1],h,Math.max(0,u+l.duration-e),u,f),1===h&&p(o)}}E.State.isTicking&&P(c)}function p(t,e){if(!E.State.calls[t])return!1;for(var n=E.State.calls[t][0],r=E.State.calls[t][1],o=E.State.calls[t][2],a=E.State.calls[t][4],s=!1,l=0,u=n.length;u>l;l++){var c=n[l].element;if(e||o.loop||("none"===o.display&&_.setPropertyValue(c,"display",o.display),"hidden"===o.visibility&&_.setPropertyValue(c,"visibility",o.visibility)),!0!==o.loop&&(m.queue(c)[1]===v||!/\.velocityQueueEntryFlag/i.test(m.queue(c)[1]))&&i(c)){i(c).isAnimating=!1,i(c).rootPropertyValueCache={};var d=!1;m.each(_.Lists.transforms3D,function(t,e){var n=/^scale/.test(e)?1:0,r=i(c).transformCache[e];i(c).transformCache[e]!==v&&new RegExp("^\\("+n+"[^.]").test(r)&&(d=!0,delete i(c).transformCache[e])}),o.mobileHA&&(d=!0,delete i(c).transformCache.translate3d),d&&_.flushTransformCache(c),_.Values.removeClass(c,"velocity-animating")}if(!e&&o.complete&&!o.loop&&l===u-1)try{o.complete.call(r,r)}catch(t){setTimeout(function(){throw t},1)}a&&!0!==o.loop&&a(r),i(c)&&!0===o.loop&&!e&&(m.each(i(c).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),E(c,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&m.dequeue(c,o.queue)}E.State.calls[t]=!1;for(var f=0,h=E.State.calls.length;h>f;f++)if(!1!==E.State.calls[f]){s=!0;break}!1===s&&(E.State.isTicking=!1,delete E.State.calls,E.State.calls=[])}var m,y=function(){if(h.documentMode)return h.documentMode;for(var t=7;t>4;t--){var e=h.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return v}(),b=function(){var t=0;return a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||function(e){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-t)),t=i+n,setTimeout(function(){e(i+n)},n)}}(),w={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==v&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||a.Zepto&&a.Zepto.zepto.isZ(t))},isSVG:function(t){return a.SVGElement&&t instanceof a.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},x=!1;if(r.fn&&r.fn.jquery?(m=r,x=!0):m=a.Velocity.Utilities,8>=y&&!x)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=y)return void(C.fn.velocity=C.fn.animate);var T=400,k="swing",E={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:a.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:h.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:m,Redirects:{},Easings:{},Promise:a.Promise,defaults:{queue:"",duration:T,easing:k,begin:v,complete:v,progress:v,display:v,visibility:v,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){m.data(t,"velocity",{isSVG:w.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};a.pageYOffset!==v?(E.State.scrollAnchor=a,E.State.scrollPropertyLeft="pageXOffset",E.State.scrollPropertyTop="pageYOffset"):(E.State.scrollAnchor=h.documentElement||h.body.parentNode||h.body,E.State.scrollPropertyLeft="scrollLeft",E.State.scrollPropertyTop="scrollTop");var S=function(){function e(t){return-t.tension*t.x-t.friction*t.v}function t(t,n,i){var r={x:t.x+i.dx*n,v:t.v+i.dv*n,tension:t.tension,friction:t.friction};return{dx:r.v,dv:e(r)}}function r(n,i){var r={dx:n.v,dv:e(n)},o=t(n,.5*i,r),a=t(n,.5*i,o),s=t(n,i,a),l=1/6*(r.dx+2*(o.dx+a.dx)+s.dx),u=1/6*(r.dv+2*(o.dv+a.dv)+s.dv);return n.x=n.x+l*i,n.v=n.v+u*i,n}return function a(t,e,n){var i,o,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0;for(t=parseFloat(t)||500,e=parseFloat(e)||20,n=n||null,l.tension=t,l.friction=e,i=null!==n,i?(c=a(t,e),o=c/n*.016):o=.016;s=r(s||l,o),u.push(1+s.x),c+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return i?function(t){return u[t*(u.length-1)|0]}:c}}();E.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},m.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){E.Easings[e[0]]=l.apply(null,e[1])});var _=E.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t<_.Lists.colors.length;t++){var e="color"===_.Lists.colors[t]?"0 0 0 1":"255 255 255 1";_.Hooks.templates[_.Lists.colors[t]]=["Red Green Blue Alpha",e]}var n,i,r;if(y)for(n in _.Hooks.templates){i=_.Hooks.templates[n],r=i[0].split(" ");var o=i[1].match(_.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),o.push(o.shift()),_.Hooks.templates[n]=[r.join(" "),o.join(" ")])}for(n in _.Hooks.templates){i=_.Hooks.templates[n],r=i[0].split(" ");for(var t in r){var a=n+r[t],s=t;_.Hooks.registered[a]=[n,s]}}},getRoot:function(t){var e=_.Hooks.registered[t];return e?e[0]:t},cleanRootPropertyValue:function(t,e){return _.RegEx.valueUnwrap.test(e)&&(e=e.match(_.RegEx.valueUnwrap)[1]),_.Values.isCSSNullValue(e)&&(e=_.Hooks.templates[t][1]),e},extractValue:function(t,e){var n=_.Hooks.registered[t];if(n){var i=n[0],r=n[1];return e=_.Hooks.cleanRootPropertyValue(i,e),e.toString().match(_.RegEx.valueSplit)[r]}return e},injectValue:function(t,e,n){var i=_.Hooks.registered[t];if(i){var r,o=i[0],a=i[1];return n=_.Hooks.cleanRootPropertyValue(o,n),r=n.toString().match(_.RegEx.valueSplit),r[a]=e,r.join(" ")}return n}},Normalizations:{registered:{clip:function(t,e,n){switch(t){case"name":return"clip";case"extract":var i;return _.RegEx.wrappedValueAlreadyExtracted.test(n)?i=n:(i=n.toString().match(_.RegEx.valueUnwrap),i=i?i[1].replace(/,(\s+)?/g," "):n),i;case"inject":return"rect("+n+")"}},blur:function(t,e,n){switch(t){case"name":return E.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var r=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=r?r[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(t,e,n){if(8>=y)switch(t){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){9>=y||E.State.isGingerbread||(_.Lists.transformsBase=_.Lists.transformsBase.concat(_.Lists.transforms3D));for(var t=0;t<_.Lists.transformsBase.length;t++)!function(){var e=_.Lists.transformsBase[t];_.Normalizations.registered[e]=function(t,n,r){switch(t){case"name":return"transform";case"extract":return i(n)===v||i(n).transformCache[e]===v?/^scale/i.test(e)?1:0:i(n).transformCache[e].replace(/[()]/g,"");case"inject":var o=!1;switch(e.substr(0,e.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":E.State.isAndroid&&i(n).transformCache[e]===v&&1>r&&(r=1),o=!/(\d)$/i.test(r);break;case"skew":o=!/(deg|\d)$/i.test(r);break;case"rotate":o=!/(deg|\d)$/i.test(r)}return o||(i(n).transformCache[e]="("+r+")"),i(n).transformCache[e]}}}();for(var t=0;t<_.Lists.colors.length;t++)!function(){var e=_.Lists.colors[t];_.Normalizations.registered[e]=function(t,n,i){switch(t){case"name":return e;case"extract":var r;if(_.RegEx.wrappedValueAlreadyExtracted.test(i))r=i;else{var o,a={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?o=a[i]!==v?a[i]:a.black:_.RegEx.isHex.test(i)?o="rgb("+_.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(o=a.black),r=(o||i).toString().match(_.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=y||3!==r.split(" ").length||(r+=" 1"),r;case"inject":return 8>=y?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(8>=y?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(y||E.State.isAndroid&&!E.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(E.State.prefixMatches[t])return[E.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],n=0,i=e.length;i>n;n++){var r;if(r=0===n?t:e[n]+t.replace(/^\w/,function(t){return t.toUpperCase()}),w.isString(E.State.prefixElement.style[r]))return E.State.prefixMatches[t]=r,[r,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i}),e=n.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,e,r,o){function s(t,e){function n(){l&&_.setPropertyValue(t,"display","none")}var r=0;if(8>=y)r=m.css(t,e);else{var l=!1;if(/^(width|height)$/.test(e)&&0===_.getPropertyValue(t,"display")&&(l=!0,_.setPropertyValue(t,"display",_.Values.getDisplayType(t))),!o){if("height"===e&&"border-box"!==_.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var u=t.offsetHeight-(parseFloat(_.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(_.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(_.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(_.getPropertyValue(t,"paddingBottom"))||0);return n(),u}if("width"===e&&"border-box"!==_.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var c=t.offsetWidth-(parseFloat(_.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(_.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(_.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(_.getPropertyValue(t,"paddingRight"))||0);return n(),c}}var d;d=i(t)===v?a.getComputedStyle(t,null):i(t).computedStyle?i(t).computedStyle:i(t).computedStyle=a.getComputedStyle(t,null),"borderColor"===e&&(e="borderTopColor"),r=9===y&&"filter"===e?d.getPropertyValue(e):d[e],(""===r||null===r)&&(r=t.style[e]),n()}if("auto"===r&&/^(top|right|bottom|left)$/i.test(e)){var f=s(t,"position");("fixed"===f||"absolute"===f&&/top|left/i.test(e))&&(r=m(t).position()[e]+"px")}return r}var l;if(_.Hooks.registered[e]){var u=e,c=_.Hooks.getRoot(u);r===v&&(r=_.getPropertyValue(t,_.Names.prefixCheck(c)[0])),_.Normalizations.registered[c]&&(r=_.Normalizations.registered[c]("extract",t,r)),l=_.Hooks.extractValue(u,r)}else if(_.Normalizations.registered[e]){var d,f;d=_.Normalizations.registered[e]("name",t),"transform"!==d&&(f=s(t,_.Names.prefixCheck(d)[0]),_.Values.isCSSNullValue(f)&&_.Hooks.templates[e]&&(f=_.Hooks.templates[e][1])),l=_.Normalizations.registered[e]("extract",t,f)}if(!/^[\d-]/.test(l))if(i(t)&&i(t).isSVG&&_.Names.SVGAttribute(e))if(/^(height|width)$/i.test(e))try{l=t.getBBox()[e]}catch(t){l=0}else l=t.getAttribute(e);else l=s(t,_.Names.prefixCheck(e)[0]);return _.Values.isCSSNullValue(l)&&(l=0),E.debug>=2&&console.log("Get "+e+": "+l),l},setPropertyValue:function(t,e,n,r,o){var s=e;if("scroll"===e)o.container?o.container["scroll"+o.direction]=n:"Left"===o.direction?a.scrollTo(n,o.alternateValue):a.scrollTo(o.alternateValue,n);else if(_.Normalizations.registered[e]&&"transform"===_.Normalizations.registered[e]("name",t))_.Normalizations.registered[e]("inject",t,n),s="transform",n=i(t).transformCache[e];else{if(_.Hooks.registered[e]){var l=e,u=_.Hooks.getRoot(e);r=r||_.getPropertyValue(t,u),n=_.Hooks.injectValue(l,n,r),e=u}if(_.Normalizations.registered[e]&&(n=_.Normalizations.registered[e]("inject",t,n),e=_.Normalizations.registered[e]("name",t)),s=_.Names.prefixCheck(e)[0],8>=y)try{t.style[s]=n}catch(t){E.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else i(t)&&i(t).isSVG&&_.Names.SVGAttribute(e)?t.setAttribute(e,n):t.style[s]=n;E.debug>=2&&console.log("Set "+e+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){function t(t){return parseFloat(_.getPropertyValue(e,t))}var n="";if((y||E.State.isAndroid&&!E.State.isChrome)&&i(e).isSVG){var r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};m.each(i(e).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),r[t]&&(n+=t+"("+r[t].join(" ")+") ",delete r[t])})}else{var o,a;m.each(i(e).transformCache,function(t){return o=i(e).transformCache[t],"transformPerspective"===t?(a=o,!0):(9===y&&"rotateZ"===t&&(t="rotate"),void(n+=t+o+" "))}),a&&(n="perspective"+a+" "+n)}_.setPropertyValue(e,"transform",n)}};_.Hooks.register(),_.Normalizations.register(),E.hook=function(t,e,n){var r=v;return t=o(t),m.each(t,function(t,o){if(i(o)===v&&E.init(o),n===v)r===v&&(r=E.CSS.getPropertyValue(o,e));else{var a=E.CSS.setPropertyValue(o,e,n);"transform"===a[0]&&E.CSS.flushTransformCache(o),r=a}}),r};var A=function(){function e(){return t?S.promise||null:r}function n(){function e(e){function p(t,e){var i=v,o=v,a=v;return w.isArray(t)?(i=t[0],!w.isArray(t[1])&&/^[\d-]/.test(t[1])||w.isFunction(t[1])||_.RegEx.isHex.test(t[1])?a=t[1]:(w.isString(t[1])&&!_.RegEx.isHex.test(t[1])||w.isArray(t[1]))&&(o=e?t[1]:u(t[1],r.duration),t[2]!==v&&(a=t[2]))):i=t,e||(o=o||r.easing),w.isFunction(i)&&(i=i.call(n,x,b)),w.isFunction(a)&&(a=a.call(n,x,b)),[i||0,o,a]}function d(t,e){var n,i;return i=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return n=t,""}),n||(n=_.Values.getUnitType(t)),[i,n]}if(r.begin&&0===x)try{r.begin.call(l,l)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===P){var s,y,T,C=/^x$/i.test(r.axis)?"Left":"Top",k=parseFloat(r.offset)||0;r.container?w.isWrapped(r.container)||w.isNode(r.container)?(r.container=r.container[0]||r.container,s=r.container["scroll"+C],T=s+m(n).position()[C.toLowerCase()]+k):r.container=null:(s=E.State.scrollAnchor[E.State["scrollProperty"+C]],y=E.State.scrollAnchor[E.State["scrollProperty"+("Left"===C?"Top":"Left")]],T=m(n).offset()[C.toLowerCase()]+k),o={scroll:{rootPropertyValue:!1,startValue:s,currentValue:s,endValue:T,unitType:"",easing:r.easing,scrollData:{container:r.container,direction:C,alternateValue:y}},element:n},E.debug&&console.log("tweensContainer (scroll): ",o.scroll,n)}else if("reverse"===P){if(!i(n).tweensContainer)return void m.dequeue(n,r.queue);"none"===i(n).opts.display&&(i(n).opts.display="auto"),"hidden"===i(n).opts.visibility&&(i(n).opts.visibility="visible"),i(n).opts.loop=!1,i(n).opts.begin=null,i(n).opts.complete=null,g.easing||delete r.easing,g.duration||delete r.duration,r=m.extend({},i(n).opts,r);var A=m.extend(!0,{},i(n).tweensContainer);for(var D in A)if("element"!==D){var O=A[D].startValue;A[D].startValue=A[D].currentValue=A[D].endValue,A[D].endValue=O,w.isEmptyObject(g)||(A[D].easing=r.easing),E.debug&&console.log("reverse tweensContainer ("+D+"): "+JSON.stringify(A[D]),n)}o=A}else if("start"===P){var A;i(n).tweensContainer&&!0===i(n).isAnimating&&(A=i(n).tweensContainer),m.each(f,function(t,e){if(RegExp("^"+_.Lists.colors.join("$|^")+"$").test(t)){var n=p(e,!0),i=n[0],r=n[1],o=n[2];if(_.RegEx.isHex.test(i)){for(var a=["Red","Green","Blue"],s=_.Values.hexToRgb(i),l=o?_.Values.hexToRgb(o):v,u=0;u<a.length;u++){var c=[s[u]];r&&c.push(r),l!==v&&c.push(l[u]),f[t+a[u]]=c}delete f[t]}}});for(var N in f){var M=p(f[N]),I=M[0],z=M[1],F=M[2];N=_.Names.camelCase(N);var q=_.Hooks.getRoot(N),H=!1;if(i(n).isSVG||"tween"===q||!1!==_.Names.prefixCheck(q)[1]||_.Normalizations.registered[q]!==v){(r.display!==v&&null!==r.display&&"none"!==r.display||r.visibility!==v&&"hidden"!==r.visibility)&&/opacity|filter/.test(N)&&!F&&0!==I&&(F=0),r._cacheValues&&A&&A[N]?(F===v&&(F=A[N].endValue+A[N].unitType),H=i(n).rootPropertyValueCache[q]):_.Hooks.registered[N]?F===v?(H=_.getPropertyValue(n,q),F=_.getPropertyValue(n,N,H)):H=_.Hooks.templates[q][1]:F===v&&(F=_.getPropertyValue(n,N));var j,W,B,V=!1;if(j=d(N,F),F=j[0],B=j[1],j=d(N,I),I=j[0].replace(/^([+-\/*])=/,function(t,e){return V=e,""}),W=j[1],F=parseFloat(F)||0,I=parseFloat(I)||0,"%"===W&&(/^(fontSize|lineHeight)$/.test(N)?(I/=100,W="em"):/^scale/.test(N)?(I/=100,W=""):/(Red|Green|Blue)$/i.test(N)&&(I=I/100*255,W="")),/[\/*]/.test(V))W=B;else if(B!==W&&0!==F)if(0===I)W=B;else{t=t||function(){var t={myParent:n.parentNode||h.body,position:_.getPropertyValue(n,"position"),fontSize:_.getPropertyValue(n,"fontSize")},e=t.position===R.lastPosition&&t.myParent===R.lastParent,r=t.fontSize===R.lastFontSize;R.lastParent=t.myParent,R.lastPosition=t.position,R.lastFontSize=t.fontSize;var o=100,s={};if(r&&e)s.emToPx=R.lastEmToPx,s.percentToPxWidth=R.lastPercentToPxWidth,s.percentToPxHeight=R.lastPercentToPxHeight;else{var l=i(n).isSVG?h.createElementNS("http://www.w3.org/2000/svg","rect"):h.createElement("div");E.init(l),t.myParent.appendChild(l),m.each(["overflow","overflowX","overflowY"],function(t,e){E.CSS.setPropertyValue(l,e,"hidden")}),E.CSS.setPropertyValue(l,"position",t.position),E.CSS.setPropertyValue(l,"fontSize",t.fontSize),E.CSS.setPropertyValue(l,"boxSizing","content-box"),m.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){E.CSS.setPropertyValue(l,e,o+"%")}),E.CSS.setPropertyValue(l,"paddingLeft",o+"em"),s.percentToPxWidth=R.lastPercentToPxWidth=(parseFloat(_.getPropertyValue(l,"width",null,!0))||1)/o,s.percentToPxHeight=R.lastPercentToPxHeight=(parseFloat(_.getPropertyValue(l,"height",null,!0))||1)/o,s.emToPx=R.lastEmToPx=(parseFloat(_.getPropertyValue(l,"paddingLeft"))||1)/o,t.myParent.removeChild(l)}return null===R.remToPx&&(R.remToPx=parseFloat(_.getPropertyValue(h.body,"fontSize"))||16),null===R.vwToPx&&(R.vwToPx=parseFloat(a.innerWidth)/100,R.vhToPx=parseFloat(a.innerHeight)/100),s.remToPx=R.remToPx,s.vwToPx=R.vwToPx,s.vhToPx=R.vhToPx,E.debug>=1&&console.log("Unit ratios: "+JSON.stringify(s),n),s}();var X=/margin|padding|left|right|width|text|word|letter/i.test(N)||/X$/.test(N)||"x"===N?"x":"y";switch(B){case"%":F*="x"===X?t.percentToPxWidth:t.percentToPxHeight;break;case"px":break;default:F*=t[B+"ToPx"]}switch(W){case"%":F*=1/("x"===X?t.percentToPxWidth:t.percentToPxHeight);break;case"px":break;default:F*=1/t[W+"ToPx"]}}switch(V){case"+":I=F+I;break;case"-":I=F-I;break;case"*":I*=F;break;case"/":I=F/I}o[N]={rootPropertyValue:H,startValue:F,currentValue:F,endValue:I,unitType:W,easing:z},E.debug&&console.log("tweensContainer ("+N+"): "+JSON.stringify(o[N]),n)}else E.debug&&console.log("Skipping ["+q+"] due to a lack of browser support.")}o.element=n}o.element&&(_.Values.addClass(n,"velocity-animating"),L.push(o),""===r.queue&&(i(n).tweensContainer=o,i(n).opts=r),i(n).isAnimating=!0,x===b-1?(E.State.calls.push([L,l,r,null,S.resolver]),!1===E.State.isTicking&&(E.State.isTicking=!0,c())):x++)}var t,n=this,r=m.extend({},E.defaults,g),o={};switch(i(n)===v&&E.init(n),parseFloat(r.delay)&&!1!==r.queue&&m.queue(n,r.queue,function(t){E.velocityQueueEntryFlag=!0,i(n).delayTimer={setTimeout:setTimeout(t,parseFloat(r.delay)),next:t}}),r.duration.toString().toLowerCase()){case"fast":r.duration=200;break;case"normal":r.duration=T;break;case"slow":r.duration=600;break;default:r.duration=parseFloat(r.duration)||1}!1!==E.mock&&(!0===E.mock?r.duration=r.delay=1:(r.duration*=parseFloat(E.mock)||1,r.delay*=parseFloat(E.mock)||1)),r.easing=u(r.easing,r.duration),r.begin&&!w.isFunction(r.begin)&&(r.begin=null),r.progress&&!w.isFunction(r.progress)&&(r.progress=null),r.complete&&!w.isFunction(r.complete)&&(r.complete=null),r.display!==v&&null!==r.display&&(r.display=r.display.toString().toLowerCase(),"auto"===r.display&&(r.display=E.CSS.Values.getDisplayType(n))),r.visibility!==v&&null!==r.visibility&&(r.visibility=r.visibility.toString().toLowerCase()),r.mobileHA=r.mobileHA&&E.State.isMobile&&!E.State.isGingerbread,!1===r.queue?r.delay?setTimeout(e,r.delay):e():m.queue(n,r.queue,function(t,n){return!0===n?(S.promise&&S.resolver(l),!0):(E.velocityQueueEntryFlag=!0,void e(t))}),""!==r.queue&&"fx"!==r.queue||"inprogress"===m.queue(n)[0]||m.dequeue(n)}var t,r,s,l,f,g,y=arguments[0]&&(arguments[0].p||m.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||w.isString(arguments[0].properties));if(w.isWrapped(this)?(t=!1,s=0,l=this,r=this):(t=!0,s=1,l=y?arguments[0].elements||arguments[0].e:arguments[0]),l=o(l)){y?(f=arguments[0].properties||arguments[0].p,g=arguments[0].options||arguments[0].o):(f=arguments[s],g=arguments[s+1]);var b=l.length,x=0;if(!/^(stop|finish)$/i.test(f)&&!m.isPlainObject(g)){var C=s+1;g={};for(var k=C;k<arguments.length;k++)w.isArray(arguments[k])||!/^(fast|normal|slow)$/i.test(arguments[k])&&!/^\d/.test(arguments[k])?w.isString(arguments[k])||w.isArray(arguments[k])?g.easing=arguments[k]:w.isFunction(arguments[k])&&(g.complete=arguments[k]):g.duration=arguments[k]}var S={promise:null,resolver:null,rejecter:null};t&&E.Promise&&(S.promise=new E.Promise(function(t,e){S.resolver=t,S.rejecter=e}));var P;switch(f){case"scroll":P="scroll";break;case"reverse":P="reverse";break;case"finish":case"stop":m.each(l,function(t,e){i(e)&&i(e).delayTimer&&(clearTimeout(i(e).delayTimer.setTimeout),i(e).delayTimer.next&&i(e).delayTimer.next(),delete i(e).delayTimer)});var D=[];return m.each(E.State.calls,function(t,e){e&&m.each(e[1],function(n,r){var o=g===v?"":g;return!0!==o&&e[2].queue!==o&&(g!==v||!1!==e[2].queue)||void m.each(l,function(n,a){a===r&&((!0===g||w.isString(g))&&(m.each(m.queue(a,w.isString(g)?g:""),function(t,e){w.isFunction(e)&&e(null,!0)}),m.queue(a,w.isString(g)?g:"",[])),"stop"===f?(i(a)&&i(a).tweensContainer&&!1!==o&&m.each(i(a).tweensContainer,function(t,e){e.endValue=e.currentValue}),D.push(t)):"finish"===f&&(e[2].duration=1))})})}),"stop"===f&&(m.each(D,function(t,e){p(e,!0)}),S.promise&&S.resolver(l)),e();default:if(!m.isPlainObject(f)||w.isEmptyObject(f)){if(w.isString(f)&&E.Redirects[f]){var O=m.extend({},g),N=O.duration,M=O.delay||0;return!0===O.backwards&&(l=m.extend(!0,[],l).reverse()),m.each(l,function(t,e){parseFloat(O.stagger)?O.delay=M+parseFloat(O.stagger)*t:w.isFunction(O.stagger)&&(O.delay=M+O.stagger.call(e,t,b)),O.drag&&(O.duration=parseFloat(N)||(/^(callout|transition)/.test(f)?1e3:T),O.duration=Math.max(O.duration*(O.backwards?1-t/b:(t+1)/b),.75*O.duration,200)),E.Redirects[f].call(e,e,O||{},t,b,l,S.promise?S:v)}),e()}var I="Velocity: First argument ("+f+") was not a property map, a known action, or a registered redirect. Aborting.";return S.promise?S.rejecter(new Error(I)):console.log(I),e()}P="start"}var R={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},L=[];m.each(l,function(t,e){w.isNode(e)&&n.call(e)});var z,O=m.extend({},E.defaults,g);if(O.loop=parseInt(O.loop),z=2*O.loop-1,O.loop)for(var F=0;z>F;F++){var q={delay:O.delay,progress:O.progress};F===z-1&&(q.display=O.display,q.visibility=O.visibility,q.complete=O.complete),A(l,"reverse",q)}return e()}};E=m.extend(A,E),E.animate=A;var P=a.requestAnimationFrame||b;return E.State.isMobile||h.hidden===v||h.addEventListener("visibilitychange",function(){h.hidden?(P=function(t){return setTimeout(function(){t(!0)},16)},c()):P=a.requestAnimationFrame||b}),r.Velocity=E,r!==a&&(r.fn.velocity=A,r.fn.velocity.defaults=E.defaults),m.each(["Down","Up"],function(t,e){E.Redirects["slide"+e]=function(t,n,i,r,o,a){var s=m.extend({},n),l=s.begin,u=s.complete,c={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},d={};s.display===v&&(s.display="Down"===e?"inline"===E.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),s.begin=function(){l&&l.call(o,o);for(var n in c){d[n]=t.style[n];var i=E.CSS.getPropertyValue(t,n);c[n]="Down"===e?[i,0]:[0,i]}d.overflow=t.style.overflow,t.style.overflow="hidden"},s.complete=function(){for(var e in d)t.style[e]=d[e];u&&u.call(o,o),a&&a.resolver(o)},E(t,c,s)}}),m.each(["In","Out"],function(t,e){E.Redirects["fade"+e]=function(t,n,i,r,o,a){var s=m.extend({},n),l={opacity:"In"===e?1:0},u=s.complete;s.complete=i!==r-1?s.begin=null:function(){u&&u.call(o,o),a&&a.resolver(o)},s.display===v&&(s.display="In"===e?"auto":"none"),E(this,l,s)}}),E}(f||window.Zepto||window,window,document)})),function(c,f,h,b){"use strict";function k(t,e,n){return setTimeout(q(t,n),e)}function l(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==b)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function n(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===b)&&(t[i[r]]=e[i[r]]),r++;return t}function o(t,e){return n(t,e,!0)}function p(t,e,i){var r,o=e.prototype;r=t.prototype=Object.create(o),r.constructor=t,r._super=o,i&&n(r,i)}function q(t,e){return function(){return t.apply(e,arguments)}}function r(t,e){return typeof t==S?t.apply(e?e[0]||b:b,e):t}function s(t,e){return t===b?e:t}function t(t,e,n){m(x(e),function(e){t.addEventListener(e,n,!1)})}function u(t,e,n){m(x(e),function(e){t.removeEventListener(e,n,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function w(t,e){return t.indexOf(e)>-1}function x(t){return t.trim().split(/\s+/g)}function y(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function z(t){return Array.prototype.slice.call(t,0)}function A(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];y(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function B(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<T.length;){if(n=T[o],(i=n?n+r:e)in t)return i;o++}return b}function D(){return N++}function E(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function ab(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){r(t.options.enable,[t])&&n.handler(e)},this.init()}function bb(t){var e=t.options.inputClass;return new(e||(R?wb:L?Eb:I?Gb:rb))(t,cb)}function cb(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&W&&0==i-r,a=e&(X|$)&&0==i-r;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,db(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function db(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=gb(e)),r>1&&!n.firstMultiple?n.firstMultiple=gb(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=hb(i);e.timeStamp=O(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=lb(s,l),e.distance=kb(s,l),eb(n,e),e.offsetDirection=jb(e.deltaX,e.deltaY),e.scale=a?nb(a.pointers,i):1,e.rotation=a?mb(a.pointers,i):0,fb(n,e);var u=t.element;v(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function eb(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};(e.eventType===W||o.eventType===X)&&(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function fb(t,e){var n,i,r,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!=$&&(s>j||a.velocity===b)){var l=a.deltaX-e.deltaX,u=a.deltaY-e.deltaY,c=ib(s,l,u);i=c.x,r=c.y,n=P(c.x)>P(c.y)?c.x:c.y,o=jb(l,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function gb(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:_(t.pointers[n].clientX),clientY:_(t.pointers[n].clientY)},n++;return{timeStamp:O(),pointers:e,center:hb(e),deltaX:t.deltaX,deltaY:t.deltaY}}function hb(t){var e=t.length;if(1===e)return{x:_(t[0].clientX),y:_(t[0].clientY)};for(var n=0,i=0,r=0;e>r;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:_(n/e),y:_(i/e)}}function ib(t,e,n){return{x:e/t||0,y:n/t||0}}function jb(t,e){return t===e?Y:P(t)>=P(e)?t>0?U:Q:e>0?G:K}function kb(t,e,n){n||(n=et);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function lb(t,e,n){n||(n=et);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function mb(t,e){return lb(e[1],e[0],nt)-lb(t[1],t[0],nt)}function nb(t,e){return kb(e[0],e[1],nt)/kb(t[0],t[1],nt)}function rb(){this.evEl=rt,this.evWin=ot,this.allow=!0,this.pressed=!1,ab.apply(this,arguments)}function wb(){this.evEl=lt,this.evWin=ut,ab.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Ab(){this.evTarget=dt,this.evWin=ft,this.started=!1,ab.apply(this,arguments)}function Bb(t,e){var n=z(t.touches),i=z(t.changedTouches);return e&(X|$)&&(n=A(n.concat(i),"identifier",!0)),[n,i]}function Eb(){this.evTarget=pt,this.targetIds={},ab.apply(this,arguments)}function Fb(t,e){var n=z(t.touches),i=this.targetIds;if(e&(W|V)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=z(t.changedTouches),s=[],l=this.target;if(o=n.filter(function(t){return v(t.target,l)}),e===W)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(X|$)&&delete i[a[r].identifier],r++;return s.length?[A(o.concat(s),"identifier",!0),s]:void 0}function Gb(){ab.apply(this,arguments);var t=q(this.handler,this);this.touch=new Eb(this.manager,t),this.mouse=new rb(this.manager,t)}function Pb(t,e){this.manager=t,this.set(e)}function Qb(t){if(w(t,wt))return wt;var e=w(t,xt),n=w(t,Tt);return e&&n?xt+" "+Tt:e||n?e?xt:Tt:w(t,bt)?bt:yt}function Yb(t){this.id=D(),this.manager=null,this.options=o(t||{},this.defaults),this.options.enable=s(this.options.enable,!0),this.state=Ct,this.simultaneous={},this.requireFail=[]}function Zb(t){return t&At?"cancel":t&St?"end":t&Et?"move":t&kt?"start":""}function $b(t){return t==K?"down":t==G?"up":t==U?"left":t==Q?"right":""}function _b(t,e){var n=e.manager;return n?n.get(t):t}function ac(){Yb.apply(this,arguments)}function bc(){ac.apply(this,arguments),this.pX=null,this.pY=null}function cc(){ac.apply(this,arguments)}function dc(){Yb.apply(this,arguments),this._timer=null,this._input=null}function ec(){ac.apply(this,arguments)}function fc(){ac.apply(this,arguments)}function gc(){Yb.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function hc(t,e){return e=e||{},e.recognizers=s(e.recognizers,hc.defaults.preset),new kc(t,e)}function kc(t,e){e=e||{},this.options=o(e,hc.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=bb(this),this.touchAction=new Pb(this,this.options.touchAction),lc(this,!0),m(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function lc(t,e){var n=t.element;m(t.options.cssProps,function(t,i){n.style[B(n.style,i)]=e?t:""})}function mc(t,e){var n=f.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var T=["","webkit","moz","MS","ms","o"],C=f.createElement("div"),S="function",_=Math.round,P=Math.abs,O=Date.now,N=1,M=/mobile|tablet|ip(ad|hone|od)|android/i,I="ontouchstart"in c,R=B(c,"PointerEvent")!==b,L=I&&M.test(navigator.userAgent),F="touch",H="mouse",j=25,W=1,V=2,X=4,$=8,Y=1,U=2,Q=4,G=8,K=16,Z=U|Q,J=G|K,tt=Z|J,et=["x","y"],nt=["clientX","clientY"];ab.prototype={handler:function(){},init:function(){this.evEl&&t(this.element,this.evEl,this.domHandler),this.evTarget&&t(this.target,this.evTarget,this.domHandler),this.evWin&&t(E(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&u(this.element,this.evEl,this.domHandler),this.evTarget&&u(this.target,this.evTarget,this.domHandler),this.evWin&&u(E(this.element),this.evWin,this.domHandler)}};var it={mousedown:W,mousemove:V,mouseup:X},rt="mousedown",ot="mousemove mouseup";p(rb,ab,{handler:function(t){var e=it[t.type];e&W&&0===t.button&&(this.pressed=!0),e&V&&1!==t.which&&(e=X),this.pressed&&this.allow&&(e&X&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:H,srcEvent:t}))}});var at={pointerdown:W,pointermove:V,pointerup:X,pointercancel:$,pointerout:$},st={2:F,3:"pen",4:H,5:"kinect"},lt="pointerdown",ut="pointermove pointerup pointercancel";c.MSPointerEvent&&(lt="MSPointerDown",ut="MSPointerMove MSPointerUp MSPointerCancel"),p(wb,ab,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=at[i],o=st[t.pointerType]||t.pointerType,a=o==F,s=y(e,t.pointerId,"pointerId");r&W&&(0===t.button||a)?0>s&&(e.push(t),s=e.length-1):r&(X|$)&&(n=!0),0>s||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var ct={touchstart:W,touchmove:V,touchend:X,touchcancel:$},dt="touchstart",ft="touchstart touchmove touchend touchcancel";p(Ab,ab,{handler:function(t){var e=ct[t.type];if(e===W&&(this.started=!0),this.started){var n=Bb.call(this,t,e);e&(X|$)&&0==n[0].length-n[1].length&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:t})}}});var ht={touchstart:W,touchmove:V,touchend:X,touchcancel:$},pt="touchstart touchmove touchend touchcancel";p(Eb,ab,{handler:function(t){var e=ht[t.type],n=Fb.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:t})}}),p(Gb,ab,{handler:function(t,e,n){var i=n.pointerType==F,r=n.pointerType==H;if(i)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(X|$)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var gt=B(C.style,"touchAction"),vt=gt!==b,mt="compute",yt="auto",bt="manipulation",wt="none",xt="pan-x",Tt="pan-y";Pb.prototype={set:function(t){t==mt&&(t=this.compute()),vt&&(this.manager.element.style[gt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,function(e){r(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Qb(t.join(" "))},preventDefaults:function(t){if(!vt){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=w(i,wt),o=w(i,Tt),a=w(i,xt);return r||o&&n&Z||a&&n&J?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Ct=1,kt=2,Et=4,St=8,_t=St,At=16;Yb.prototype={defaults:{},set:function(t){return n(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(l(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=_b(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return l(t,"dropRecognizeWith",this)?this:(t=_b(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(l(t,"requireFailure",this))return this;var e=this.requireFail;return t=_b(t,this),-1===y(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(l(t,"dropRequireFailure",this))return this;t=_b(t,this);var e=y(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function d(i){e.manager.emit(e.options.event+(i?Zb(n):""),t)}var e=this,n=this.state;St>n&&d(!0),d(),n>=St&&d(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Ct)))return!1;t++}return!0},recognize:function(t){var e=n({},t);return r(this.options.enable,[this,e])?(this.state&(_t|At|32)&&(this.state=Ct),this.state=this.process(e),void(this.state&(kt|Et|St|At)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(){},getTouchAction:function(){},reset:function(){}},p(ac,Yb,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(kt|Et),r=this.attrTest(t);return i&&(n&$||!r)?e|At:i||r?n&X?e|St:e&kt?e|Et:kt:32}}),p(bc,ac,{defaults:{event:"pan",threshold:10,pointers:1,direction:tt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Z&&e.push(Tt),t&J&&e.push(xt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&Z?(r=0===o?Y:0>o?U:Q,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?Y:0>a?G:K,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return ac.prototype.attrTest.call(this,t)&&(this.state&kt||!(this.state&kt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=$b(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),p(cc,ac,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&kt)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),p(dc,Yb,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[yt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(X|$)&&!r)this.reset();else if(t.eventType&W)this.reset(),this._timer=k(function(){this.state=_t,this.tryEmit()},e.time,this);else if(t.eventType&X)return _t;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===_t&&(t&&t.eventType&X?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=O(),this.manager.emit(this.options.event,this._input)))}}),p(ec,ac,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&kt)}}),p(fc,ac,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Z|J,pointers:1},getTouchAction:function(){return bc.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Z|J)?e=t.velocity:n&Z?e=t.velocityX:n&J&&(e=t.velocityY),this._super.attrTest.call(this,t)&&n&t.direction&&t.distance>this.options.threshold&&P(e)>this.options.velocity&&t.eventType&X},emit:function(t){var e=$b(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(gc,Yb,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[bt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&W&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=X)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||kb(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=k(function(){this.state=_t,this.tryEmit()},e.interval,this),kt):_t}return 32},failTimeout:function(){return this._timer=k(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==_t&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),hc.VERSION="2.0.4",hc.defaults={domEvents:!1,touchAction:mt,enable:!0,inputTarget:null,inputClass:null,preset:[[ec,{enable:!1}],[cc,{enable:!1},["rotate"]],[fc,{direction:Z}],[bc,{direction:Z},["swipe"]],[gc],[gc,{event:"doubletap",taps:2},["tap"]],[dc]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};kc.prototype={set:function(t){return n(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&_t)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(kt|Et|St)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Yb)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(l(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(l(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var n=this.handlers;return m(x(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},off:function(t,e){var n=this.handlers;return m(x(t),function(t){e?n[t].splice(y(n[t],e),1):delete n[t]}),this},emit:function(t,e){this.options.domEvents&&mc(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&lc(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},n(hc,{INPUT_START:W,INPUT_MOVE:V,INPUT_END:X,INPUT_CANCEL:$,STATE_POSSIBLE:Ct,STATE_BEGAN:kt,STATE_CHANGED:Et,STATE_ENDED:St,STATE_RECOGNIZED:_t,STATE_CANCELLED:At,STATE_FAILED:32,DIRECTION_NONE:Y,DIRECTION_LEFT:U,DIRECTION_RIGHT:Q,DIRECTION_UP:G,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:Z,DIRECTION_VERTICAL:J,DIRECTION_ALL:tt,Manager:kc,Input:ab,TouchAction:Pb,TouchInput:Eb,MouseInput:rb,PointerEventInput:wb,TouchMouseInput:Gb,SingleTouchInput:Ab,Recognizer:Yb,AttrRecognizer:ac,Tap:gc,Pan:bc,Swipe:fc,Pinch:cc,Rotate:ec,Press:dc,on:t,off:u,each:m,merge:o,extend:n,inherit:p,bindFn:q,prefixed:B}),"function"==S&&a(53)?void 0!==(g=function(){return hc}.call(i,a,i,e))&&(e.exports=g):void 0!==e&&e.exports?e.exports=hc:c.Hammer=hc}(window,document),function(t){b=[a(0),a(52)],h=t,void 0!==(g="function"==typeof h?h.apply(i,b):h)&&(e.exports=g)}(function(t,e){function hammerify(n,i){var r=t(n);r.data("hammer")||r.data("hammer",new e(r[0],i))}t.fn.hammer=function(t){return this.each(function(){hammerify(this,t)})},e.Manager.prototype.emit=function(e){return function(n,i){e.call(this,n,i),t(this.element).trigger({type:n,gesture:i})}}(e.Manager.prototype.emit)}),function(t){t.Package?Materialize={}:t.Materialize={}}(window),function(t){for(var e=0,n=["webkit","moz"],i=t.requestAnimationFrame,r=t.cancelAnimationFrame,o=n.length;--o>=0&&!i;)i=t[n[o]+"RequestAnimationFrame"],r=t[n[o]+"CancelRequestAnimationFrame"];i&&r||(i=function(t){var n=+Date.now(),i=Math.max(e+16,n);return setTimeout(function(){t(e=i)},i-n)},r=clearTimeout),t.requestAnimationFrame=i,t.cancelAnimationFrame=r}(window),Materialize.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},Materialize.guid=function(){function s4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return s4()+s4()+"-"+s4()+"-"+s4()+"-"+s4()+"-"+s4()+s4()+s4()}}(),Materialize.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=)/g,"\\$1")},Materialize.elementOrParentIsFixed=function(t){var e=d(t),n=e.add(e.parents()),i=!1;return n.each(function(){if("fixed"===d(this).css("position"))return i=!0,!1}),i};var S=Date.now||function(){return(new Date).getTime()};Materialize.throttle=function(t,e,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:S(),a=null,o=t.apply(i,r),i=r=null};return function(){var u=S();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,r=arguments,c<=0?(clearTimeout(a),a=null,s=u,o=t.apply(i,r),i=r=null):a||!1===n.trailing||(a=setTimeout(l,c)),o}};var _;_=C?C.Velocity:d?d.Velocity:Velocity,function(t){t.fn.collapsible=function(e,n){var i={accordion:void 0,onOpen:void 0,onClose:void 0},r=e;return e=t.extend(i,e),this.each(function(){function accordionOpen(e){o=i.find("> li > .collapsible-header"),e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}),o.not(e).removeClass("active").parent().removeClass("active"),o.not(e).parent().children(".collapsible-body").stop(!0,!1).each(function(){t(this).is(":visible")&&t(this).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height",""),execCallbacks(t(this).siblings(".collapsible-header"))}})})}function expandableOpen(e){e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}})}function collapsibleOpen(t,n){n||t.toggleClass("active"),e.accordion||"accordion"===a||void 0===a?accordionOpen(t):expandableOpen(t),execCallbacks(t)}function execCallbacks(t){t.hasClass("active")?"function"==typeof e.onOpen&&e.onOpen.call(this,t.parent()):"function"==typeof e.onClose&&e.onClose.call(this,t.parent())}function isChildrenOfPanelHeader(t){return getPanelHeader(t).length>0}function getPanelHeader(t){return t.closest("li > .collapsible-header")}function removeEventHandlers(){i.off("click.collapse","> li > .collapsible-header")}var i=t(this),o=t(this).find("> li > .collapsible-header"),a=i.data("collapsible");if("destroy"===r)return void removeEventHandlers();if(n>=0&&n<o.length){var s=o.eq(n);return void(s.length&&("open"===r||"close"===r&&s.hasClass("active"))&&collapsibleOpen(s))}removeEventHandlers(),i.on("click.collapse","> li > .collapsible-header",function(e){var n=t(e.target);isChildrenOfPanelHeader(n)&&(n=getPanelHeader(n)),collapsibleOpen(n)}),e.accordion||"accordion"===a||void 0===a?collapsibleOpen(o.filter(".active").first(),!0):o.filter(".active").each(function(){collapsibleOpen(t(this),!0)})})},t(document).ready(function(){t(".collapsible").collapsible()})}(C),function(t){t.fn.scrollTo=function(e){return t(this).scrollTop(t(this).scrollTop()-t(this).offset().top+t(e).offset().top),this},t.fn.dropdown=function(e){var n={inDuration:300,outDuration:225,constrainWidth:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left",stopPropagation:!1};return"open"===e?(this.each(function(){t(this).trigger("open")}),!1):"close"===e?(this.each(function(){t(this).trigger("close")}),!1):void this.each(function(){function updateOptions(){void 0!==i.data("induration")&&(r.inDuration=i.data("induration")),void 0!==i.data("outduration")&&(r.outDuration=i.data("outduration")),void 0!==i.data("constrainwidth")&&(r.constrainWidth=i.data("constrainwidth")),void 0!==i.data("hover")&&(r.hover=i.data("hover")),void 0!==i.data("gutter")&&(r.gutter=i.data("gutter")),void 0!==i.data("beloworigin")&&(r.belowOrigin=i.data("beloworigin")),void 0!==i.data("alignment")&&(r.alignment=i.data("alignment")),void 0!==i.data("stoppropagation")&&(r.stopPropagation=i.data("stoppropagation"))}function placeDropdown(e){"focus"===e&&(o=!0),updateOptions(),a.addClass("active"),i.addClass("active"),!0===r.constrainWidth?a.css("width",i.outerWidth()):a.css("white-space","nowrap");var n=window.innerHeight,s=i.innerHeight(),l=i.offset().left,u=i.offset().top-t(window).scrollTop(),c=r.alignment,d=0,f=0,h=0;!0===r.belowOrigin&&(h=s);var p=0,g=0,v=i.parent();if(v.is("body")||(v[0].scrollHeight>v[0].clientHeight&&(p=v[0].scrollTop),v[0].scrollWidth>v[0].clientWidth&&(g=v[0].scrollLeft)),l+a.innerWidth()>t(window).width()?c="right":l-a.innerWidth()+i.innerWidth()<0&&(c="left"),u+a.innerHeight()>n)if(u+s-a.innerHeight()<0){var m=n-u-h;a.css("max-height",m)}else h||(h+=s),h-=a.innerHeight();if("left"===c)d=r.gutter,f=i.position().left+d;else if("right"===c){var y=i.position().left+i.outerWidth()-a.outerWidth();d=-r.gutter,f=y+d}a.css({position:"absolute",top:i.position().top+h+p,left:f+g}),a.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:r.inDuration,easing:"easeOutCubic",complete:function(){t(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:r.inDuration,easing:"easeOutSine"}),setTimeout(function(){t(document).bind("click."+a.attr("id"),function(e){hideDropdown(),t(document).unbind("click."+a.attr("id"))})},0)}function hideDropdown(){o=!1,a.fadeOut(r.outDuration),a.removeClass("active"),i.removeClass("active"),t(document).unbind("click."+a.attr("id")),setTimeout(function(){a.css("max-height","")},r.outDuration)}var i=t(this),r=t.extend({},n,e),o=!1,a=t("#"+i.attr("data-activates"));if(updateOptions(),i.after(a),r.hover){var s=!1;i.unbind("click."+i.attr("id")),i.on("mouseenter",function(t){!1===s&&(placeDropdown(),s=!0)}),i.on("mouseleave",function(e){var n=e.toElement||e.relatedTarget;t(n).closest(".dropdown-content").is(a)||(a.stop(!0,!0),hideDropdown(),s=!1)}),a.on("mouseleave",function(e){var n=e.toElement||e.relatedTarget;t(n).closest(".dropdown-button").is(i)||(a.stop(!0,!0),hideDropdown(),s=!1)})}else i.unbind("click."+i.attr("id")),i.bind("click."+i.attr("id"),function(e){o||(i[0]!=e.currentTarget||i.hasClass("active")||0!==t(e.target).closest(".dropdown-content").length?i.hasClass("active")&&(hideDropdown(),t(document).unbind("click."+a.attr("id"))):(e.preventDefault(),r.stopPropagation&&e.stopPropagation(),placeDropdown("click")))});i.on("open",function(t,e){placeDropdown(e)}),i.on("close",hideDropdown)})},t(document).ready(function(){t(".dropdown-button").dropdown()})}(C),function(t){var e=0,n=0,i=function(){return"materialize-modal-overlay-"+ ++n},r={init:function(n){var r={opacity:.5,inDuration:350,outDuration:250,ready:void 0,complete:void 0,dismissible:!0,startingTop:"4%",endingTop:"10%"};return n=t.extend(r,n),this.each(function(){var r=t(this),o=t(this).attr("id")||"#"+t(this).data("target"),a=function(){var i=r.data("overlay-id"),o=t("#"+i);r.removeClass("open"),t("body").css({overflow:"",width:""}),r.find(".modal-close").off("click.close"),t(document).off("keyup.modal"+i),o.velocity({opacity:0},{duration:n.outDuration,queue:!1,ease:"easeOutQuart"});var a={duration:n.outDuration,queue:!1,ease:"easeOutCubic",complete:function(){t(this).css({display:"none"}),"function"==typeof n.complete&&n.complete.call(this,r),o.remove(),e--}};r.hasClass("bottom-sheet")?r.velocity({bottom:"-100%",opacity:0},a):r.velocity({top:n.startingTop,opacity:0,scaleX:.7},a)},s=function(o){var s=t("body"),l=s.innerWidth();if(s.css("overflow","hidden"),s.width(l),!r.hasClass("open")){var u=i(),c=t('<div class="modal-overlay"></div>');lStack=++e,c.attr("id",u).css("z-index",1e3+2*lStack),r.data("overlay-id",u).css("z-index",1e3+2*lStack+1),r.addClass("open"),t("body").append(c),n.dismissible&&(c.click(function(){a()}),t(document).on("keyup.modal"+u,function(t){27===t.keyCode&&a()})),r.find(".modal-close").on("click.close",function(t){a()}),c.css({display:"block",opacity:0}),r.css({display:"block",opacity:0}),c.velocity({opacity:n.opacity},{duration:n.inDuration,queue:!1,ease:"easeOutCubic"}),r.data("associated-overlay",c[0]);var d={duration:n.inDuration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof n.ready&&n.ready.call(this,r,o)}};r.hasClass("bottom-sheet")?r.velocity({bottom:"0",opacity:1},d):(t.Velocity.hook(r,"scaleX",.7),r.css({top:n.startingTop}),r.velocity({top:n.endingTop,opacity:1,scaleX:"1"},d))}};t(document).off("click.modalTrigger",'a[href="#'+o+'"], [data-target="'+o+'"]'),t(this).off("openModal"),t(this).off("closeModal"),t(document).on("click.modalTrigger",'a[href="#'+o+'"], [data-target="'+o+'"]',function(e){n.startingTop=(t(this).offset().top-t(window).scrollTop())/1.15,s(t(this)),e.preventDefault()}),t(this).on("openModal",function(){t(this).attr("href")||t(this).data("target");s()}),t(this).on("closeModal",function(){a()})})},open:function(){t(this).trigger("openModal")},close:function(){t(this).trigger("closeModal")}};t.fn.modal=function(e){return r[e]?r[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.modal"):r.init.apply(this,arguments)}}(C),function(t){t.fn.materialbox=function(){return this.each(function(){function returnToOriginal(){r=!1;var n=a.parent(".material-placeholder"),s=(window.innerWidth,window.innerHeight,a.data("width")),u=a.data("height");a.velocity("stop",!0),t("#materialbox-overlay").velocity("stop",!0),t(".materialbox-caption").velocity("stop",!0),t("#materialbox-overlay").velocity({opacity:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){i=!1,t(this).remove()}}),a.velocity({width:s,height:u,left:0,top:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){n.css({height:"",width:"",position:"",top:"",left:""}),a.removeAttr("style"),a.attr("style",l),a.removeClass("active"),r=!0,e&&e.css("overflow","")}}),t(".materialbox-caption").velocity({opacity:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})}if(!t(this).hasClass("initialized")){t(this).addClass("initialized");var e,n,i=!1,r=!0,o=200,a=t(this),s=t("<div></div>").addClass("material-placeholder"),l=a.attr("style");a.wrap(s),a.on("click",function(){var o=a.parent(".material-placeholder"),s=window.innerWidth,l=window.innerHeight,u=a.width(),c=a.height();if(!1===r)return returnToOriginal(),!1;if(i&&!0===r)return returnToOriginal(),!1;r=!1,a.addClass("active"),i=!0,o.css({width:o[0].getBoundingClientRect().width,height:o[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),e=void 0,n=o[0].parentNode;for(;null!==n&&!t(n).is(document);){var d=t(n);"visible"!==d.css("overflow")&&(d.css("overflow","visible"),e=void 0===e?d:e.add(d)),n=n.parentNode}a.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}).data("width",u).data("height",c);var f=t('<div id="materialbox-overlay"></div>').css({opacity:0}).click(function(){!0===r&&returnToOriginal()});a.before(f);var h=f[0].getBoundingClientRect();if(f.css({width:s,height:l,left:-1*h.left,top:-1*h.top}),f.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"}),""!==a.data("caption")){var p=t('<div class="materialbox-caption"></div>');p.text(a.data("caption")),t("body").append(p),p.css({display:"inline"}),p.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"})}var g=0,v=u/s,m=c/l,y=0,b=0;v>m?(g=c/u,y=.9*s,b=.9*s*g):(g=u/c,y=.9*l*g,b=.9*l),a.hasClass("responsive-img")?a.velocity({"max-width":y,width:u},{duration:0,queue:!1,complete:function(){a.css({left:0,top:0}).velocity({height:b,width:y,left:t(document).scrollLeft()+s/2-a.parent(".material-placeholder").offset().left-y/2,top:t(document).scrollTop()+l/2-a.parent(".material-placeholder").offset().top-b/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){r=!0}})}}):a.css("left",0).css("top",0).velocity({height:b,width:y,left:t(document).scrollLeft()+s/2-a.parent(".material-placeholder").offset().left-y/2,top:t(document).scrollTop()+l/2-a.parent(".material-placeholder").offset().top-b/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){r=!0}})}),t(window).scroll(function(){i&&returnToOriginal()}),t(document).keyup(function(t){27===t.keyCode&&!0===r&&i&&returnToOriginal()})}})},t(document).ready(function(){t(".materialboxed").materialbox()})}(C),function(t){t.fn.parallax=function(){var e=t(window).width();return this.each(function(n){function updateParallax(n){var r;r=e<601?i.height()>0?i.height():i.children("img").height():i.height()>0?i.height():500;var o=i.children("img").first(),a=o.height(),s=a-r,l=i.offset().top+r,u=i.offset().top,c=t(window).scrollTop(),d=window.innerHeight,f=c+d,h=(f-u)/(r+d),p=Math.round(s*h);n&&o.css("display","block"),l>c&&u<c+d&&o.css("transform","translate3D(-50%,"+p+"px, 0)")}var i=t(this);i.addClass("parallax"),i.children("img").one("load",function(){updateParallax(!0)}).each(function(){this.complete&&t(this).trigger("load")}),t(window).scroll(function(){e=t(window).width(),updateParallax(!1)}),t(window).resize(function(){e=t(window).width(),updateParallax(!1)})})}}(C),function(t){var e={init:function(e){var n={onShow:null,swipeable:!1,responsiveThreshold:1/0};e=t.extend(n,e);var i=Materialize.objectSelectorString(t(this));return this.each(function(n){var r,o,a,s,l,u=i+n,c=t(this),d=t(window).width(),f=c.find("li.tab a"),h=c.width(),p=t(),g=Math.max(h,c[0].scrollWidth)/f.length,v=prev_index=0,m=!1,y=function(t){return Math.ceil(h-t.position().left-t.outerWidth()-c.scrollLeft())},b=function(t){return Math.floor(t.position().left+c.scrollLeft())},w=function(t){v-t>=0?(s.velocity({right:y(r)},{duration:300,queue:!1,easing:"easeOutQuad"}),s.velocity({left:b(r)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(s.velocity({left:b(r)},{duration:300,queue:!1,easing:"easeOutQuad"}),s.velocity({right:y(r)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90}))};e.swipeable&&d>e.responsiveThreshold&&(e.swipeable=!1),r=t(f.filter('[href="'+location.hash+'"]')),0===r.length&&(r=t(this).find("li.tab a.active").first()),0===r.length&&(r=t(this).find("li.tab a").first()),r.addClass("active"),v=f.index(r),v<0&&(v=0),void 0!==r[0]&&(o=t(r[0].hash),o.addClass("active")),c.find(".indicator").length||c.append('<div class="indicator"></div>'),s=c.find(".indicator"),c.append(s),c.is(":visible")&&setTimeout(function(){s.css({right:y(r)}),s.css({left:b(r)})},0),t(window).off("resize.tabs-"+u).on("resize.tabs-"+u,function(){h=c.width(),g=Math.max(h,c[0].scrollWidth)/f.length,v<0&&(v=0),0!==g&&0!==h&&(s.css({right:y(r)}),s.css({left:b(r)}))}),e.swipeable?(f.each(function(){var e=t(Materialize.escapeHash(this.hash));e.addClass("carousel-item"),p=p.add(e)}),a=p.wrapAll('<div class="tabs-content carousel"></div>'),p.css("display",""),t(".tabs-content.carousel").carousel({fullWidth:!0,noWrap:!0,onCycleTo:function(t){if(!m){var e=v;v=a.index(t),r=f.eq(v),w(e)}}})):f.not(r).each(function(){t(Materialize.escapeHash(this.hash)).hide()}),c.off("click.tabs").on("click.tabs","a",function(n){if(t(this).parent().hasClass("disabled"))return void n.preventDefault();if(!t(this).attr("target")){m=!0,h=c.width(),g=Math.max(h,c[0].scrollWidth)/f.length,r.removeClass("active");var i=o;r=t(this),o=t(Materialize.escapeHash(this.hash)),f=c.find("li.tab a");r.position();r.addClass("active"),prev_index=v,v=f.index(t(this)),v<0&&(v=0),e.swipeable?p.length&&p.carousel("set",v):(void 0!==o&&(o.show(),o.addClass("active"),"function"==typeof e.onShow&&e.onShow.call(this,o)),void 0===i||i.is(o)||(i.hide(),i.removeClass("active"))),l=setTimeout(function(){m=!1},300),w(prev_index),n.preventDefault()}})})},select_tab:function(t){this.find('a[href="#'+t+'"]').trigger("click")}};t.fn.tabs=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.tabs"):e.init.apply(this,arguments)},t(document).ready(function(){t("ul.tabs").tabs()})}(C),function(t){t.fn.tooltip=function(n){var i={delay:350,tooltip:"",position:"bottom",html:!1};return"remove"===n?(this.each(function(){t("#"+t(this).attr("data-tooltip-id")).remove(),t(this).off("mouseenter.tooltip mouseleave.tooltip")}),!1):(n=t.extend(i,n),this.each(function(){var i=Materialize.guid(),r=t(this);r.attr("data-tooltip-id")&&t("#"+r.attr("data-tooltip-id")).remove(),r.attr("data-tooltip-id",i);var o,a,s,l,u,c,d=function(){o=r.attr("data-html")?"true"===r.attr("data-html"):n.html,a=r.attr("data-delay"),a=void 0===a||""===a?n.delay:a,s=r.attr("data-position"),s=void 0===s||""===s?n.position:s,l=r.attr("data-tooltip"),l=void 0===l||""===l?n.tooltip:l};d();u=function(){var e=t('<div class="material-tooltip"></div>');return l=o?t("<span></span>").html(l):t("<span></span>").text(l),e.append(l).appendTo(t("body")).attr("id",i),c=t('<div class="backdrop"></div>'),c.appendTo(e),e}(),r.off("mouseenter.tooltip mouseleave.tooltip");var f,h=!1;r.on({"mouseenter.tooltip":function(t){var n=function(){d(),h=!0,u.velocity("stop"),c.velocity("stop"),u.css({visibility:"visible",left:"0px",top:"0px"});var t,n,i,o=r.outerWidth(),a=r.outerHeight(),l=u.outerHeight(),f=u.outerWidth(),p="0px",g="0px",v=c[0].offsetWidth,m=c[0].offsetHeight,y=8,b=8,w=0;"top"===s?(t=r.offset().top-l-5,n=r.offset().left+o/2-f/2,i=e(n,t,f,l),p="-10px",c.css({bottom:0,left:0,borderRadius:"14px 14px 0 0",transformOrigin:"50% 100%",marginTop:l,marginLeft:f/2-v/2})):"left"===s?(t=r.offset().top+a/2-l/2,n=r.offset().left-f-5,i=e(n,t,f,l),g="-10px",c.css({top:"-7px",right:0,width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:l/2,marginLeft:f})):"right"===s?(t=r.offset().top+a/2-l/2,n=r.offset().left+o+5,i=e(n,t,f,l),g="+10px",c.css({top:"-7px",left:0,width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:l/2,marginLeft:"0px"})):(t=r.offset().top+r.outerHeight()+5,n=r.offset().left+o/2-f/2,i=e(n,t,f,l),p="+10px",c.css({top:0,left:0,marginLeft:f/2-v/2})),u.css({top:i.y,left:i.x}),y=Math.SQRT2*f/parseInt(v),b=Math.SQRT2*l/parseInt(m),w=Math.max(y,b),u.velocity({translateY:p,translateX:g},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),c.css({visibility:"visible"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scaleX:w,scaleY:w},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})};f=setTimeout(n,a)},"mouseleave.tooltip":function(){h=!1,clearTimeout(f),setTimeout(function(){!0!==h&&(u.velocity({opacity:0,translateY:0,translateX:0},{duration:225,queue:!1}),c.velocity({opacity:0,scaleX:1,scaleY:1},{duration:225,queue:!1,complete:function(){c.css({visibility:"hidden"}),u.css({visibility:"hidden"}),h=!1}}))},225)}})}))};var e=function(e,n,i,r){var o=e,a=n;return o<0?o=4:o+i>window.innerWidth&&(o-=o+i-window.innerWidth),a<0?a=4:a+r>window.innerHeight+t(window).scrollTop&&(a-=a+r-window.innerHeight),{x:o,y:a}};t(document).ready(function(){t(".tooltipped").tooltip()})}(C),function(t){"use strict";function isWindow(t){return null!==t&&t===t.window}function getWindow(t){return isWindow(t)?t:9===t.nodeType&&t.defaultView}function offset(t){var e,n,i={top:0,left:0},r=t&&t.ownerDocument;return e=r.documentElement,void 0!==t.getBoundingClientRect&&(i=t.getBoundingClientRect()),n=getWindow(r),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}}function convertStyle(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}function getWavesEffectElement(t){if(!1===r.allowEvent(t))return null;for(var e=null,n=t.target||t.srcElement;null!==n.parentElement;){if(!(n instanceof SVGElement||-1===n.className.indexOf("waves-effect"))){e=n;break}if(n.classList.contains("waves-effect")){e=n;break}n=n.parentElement}return e}function showEffect(e){var n=getWavesEffectElement(e);null!==n&&(i.show(e,n),"ontouchstart"in t&&(n.addEventListener("touchend",i.hide,!1),n.addEventListener("touchcancel",i.hide,!1)),n.addEventListener("mouseup",i.hide,!1),n.addEventListener("mouseleave",i.hide,!1))}var e=e||{},n=document.querySelectorAll.bind(document),i={duration:750,show:function(t,e){if(2===t.button)return!1;var n=e||this,r=document.createElement("div");r.className="waves-ripple",n.appendChild(r);var o=offset(n),a=t.pageY-o.top,s=t.pageX-o.left,l="scale("+n.clientWidth/100*10+")";"touches"in t&&(a=t.touches[0].pageY-o.top,s=t.touches[0].pageX-o.left),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-scale",l),r.setAttribute("data-x",s),r.setAttribute("data-y",a);var u={top:a+"px",left:s+"px"};r.className=r.className+" waves-notransition",r.setAttribute("style",convertStyle(u)),r.className=r.className.replace("waves-notransition",""),u["-webkit-transform"]=l,u["-moz-transform"]=l,u["-ms-transform"]=l,u["-o-transform"]=l,u.transform=l,u.opacity="1",u["-webkit-transition-duration"]=i.duration+"ms",u["-moz-transition-duration"]=i.duration+"ms",u["-o-transition-duration"]=i.duration+"ms",u["transition-duration"]=i.duration+"ms",u["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",r.setAttribute("style",convertStyle(u))},hide:function(t){r.touchup(t);var e=this,n=(e.clientWidth,null),o=e.getElementsByClassName("waves-ripple");if(!(o.length>0))return!1;n=o[o.length-1];var a=n.getAttribute("data-x"),s=n.getAttribute("data-y"),l=n.getAttribute("data-scale"),u=Date.now()-Number(n.getAttribute("data-hold")),c=350-u;c<0&&(c=0),setTimeout(function(){var t={top:s+"px",left:a+"px",opacity:"0","-webkit-transition-duration":i.duration+"ms","-moz-transition-duration":i.duration+"ms","-o-transition-duration":i.duration+"ms","transition-duration":i.duration+"ms","-webkit-transform":l,"-moz-transform":l,"-ms-transform":l,"-o-transform":l,transform:l};n.setAttribute("style",convertStyle(t)),setTimeout(function(){try{e.removeChild(n)}catch(t){return!1}},i.duration)},c)},wrapInput:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("input"===n.tagName.toLowerCase()){var i=n.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))continue;var r=document.createElement("i");r.className=n.className+" waves-input-wrapper";var o=n.getAttribute("style");o||(o=""),r.setAttribute("style",o),n.className="waves-button-input",n.removeAttribute("style"),i.replaceChild(r,n),r.appendChild(n)}}}},r={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?r.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout(function(){r.touches>0&&(r.touches-=1)},500):"mousedown"===t.type&&r.touches>0&&(e=!1),e},touchup:function(t){r.allowEvent(t)}};e.displayEffect=function(e){e=e||{},"duration"in e&&(i.duration=e.duration),i.wrapInput(n(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",showEffect,!1),document.body.addEventListener("mousedown",showEffect,!1)},e.attach=function(e){"input"===e.tagName.toLowerCase()&&(i.wrapInput([e]),e=e.parentElement),"ontouchstart"in t&&e.addEventListener("touchstart",showEffect,!1),e.addEventListener("mousedown",showEffect,!1)},t.Waves=e,document.addEventListener("DOMContentLoaded",function(){e.displayEffect()},!1)}(window),Materialize.toast=function(t,e,n,i){n=n||"";var r=document.getElementById("toast-container");null===r&&(r=document.createElement("div"),r.id="toast-container",document.body.appendChild(r));var o=function(t){var e=document.createElement("div");if(e.classList.add("toast"),n)for(var r=n.split(" "),o=0,a=r.length;o<a;o++)e.classList.add(r[o]);("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?e.appendChild(t):t instanceof C?e.appendChild(t[0]):e.innerHTML=t;var s=new Hammer(e,{prevent_default:!1});return s.on("pan",function(t){var n=t.deltaX;e.classList.contains("panning")||e.classList.add("panning");var i=1-Math.abs(n/80);i<0&&(i=0),_(e,{left:n,opacity:i},{duration:50,queue:!1,easing:"easeOutQuad"})}),s.on("panend",function(t){var n=t.deltaX;Math.abs(n)>80?_(e,{marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof i&&i(),e.parentNode.removeChild(e)}}):(e.classList.remove("panning"),_(e,{left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))}),e}(t);t&&r.appendChild(o),o.style.opacity=0,_(o,{translateY:"-35px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var a,s=e;null!=s&&(a=setInterval(function(){null===o.parentNode&&window.clearInterval(a),o.classList.contains("panning")||(s-=20),s<=0&&(_(o,{opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof i&&i(),this[0].parentNode.removeChild(this[0])}}),window.clearInterval(a))},20))},function(t){var e={init:function(e){var n={menuWidth:300,edge:"left",closeOnClick:!1,draggable:!0};e=t.extend(n,e),t(this).each(function(){var n=t(this),i=n.attr("data-activates"),r=t("#"+i);300!=e.menuWidth&&r.css("width",e.menuWidth);var o=t('.drag-target[data-sidenav="'+i+'"]');e.draggable?(o.length&&o.remove(),o=t('<div class="drag-target"></div>').attr("data-sidenav",i),t("body").append(o)):o=t(),"left"==e.edge?(r.css("transform","translateX(-100%)"),o.css({left:0})):(r.addClass("right-aligned").css("transform","translateX(100%)"),o.css({right:0})),r.hasClass("fixed")&&window.innerWidth>992&&r.css("transform","translateX(0)"),r.hasClass("fixed")&&t(window).resize(function(){window.innerWidth>992?0!==t("#sidenav-overlay").length&&l?a(!0):r.css("transform","translateX(0%)"):!1===l&&("left"===e.edge?r.css("transform","translateX(-100%)"):r.css("transform","translateX(100%)"))}),!0===e.closeOnClick&&r.on("click.itemclick","a:not(.collapsible-header)",function(){a()});var a=function(n){s=!1,l=!1,t("body").css({overflow:"",width:""}),t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),"left"===e.edge?(o.css({width:"",right:"",left:"0"}),r.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===n&&(r.removeAttr("style"),r.css("width",e.menuWidth))}})):(o.css({width:"",right:"0",left:""}),r.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===n&&(r.removeAttr("style"),r.css("width",e.menuWidth))}}))},s=!1,l=!1;e.draggable&&(o.on("click",function(){l&&a()}),o.hammer({prevent_default:!1}).bind("pan",function(n){if("touch"==n.gesture.pointerType){var i=(n.gesture.direction,n.gesture.center.x),o=(n.gesture.center.y,n.gesture.velocityX,t("body")),s=t("#sidenav-overlay"),u=o.innerWidth();if(o.css("overflow","hidden"),o.width(u),0===s.length&&(s=t('<div id="sidenav-overlay"></div>'),s.css("opacity",0).click(function(){a()}),t("body").append(s)),"left"===e.edge&&(i>e.menuWidth?i=e.menuWidth:i<0&&(i=0)),"left"===e.edge)i<e.menuWidth/2?l=!1:i>=e.menuWidth/2&&(l=!0),r.css("transform","translateX("+(i-e.menuWidth)+"px)");else{i<window.innerWidth-e.menuWidth/2?l=!0:i>=window.innerWidth-e.menuWidth/2&&(l=!1);var c=i-e.menuWidth/2;c<0&&(c=0),r.css("transform","translateX("+c+"px)")}var d;"left"===e.edge?(d=i/e.menuWidth,s.velocity({opacity:d},{duration:10,queue:!1,easing:"easeOutQuad"})):(d=Math.abs((i-window.innerWidth)/e.menuWidth),s.velocity({opacity:d},{duration:10,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(n){if("touch"==n.gesture.pointerType){var i=t("#sidenav-overlay"),a=n.gesture.velocityX,u=n.gesture.center.x,c=u-e.menuWidth,d=u-e.menuWidth/2;c>0&&(c=0),d<0&&(d=0),s=!1,"left"===e.edge?l&&a<=.3||a<-.5?(0!==c&&r.velocity({translateX:[0,c]},{duration:300,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),o.css({width:"50%",right:0,left:""}),l=!0):(!l||a>.3)&&(t("body").css({overflow:"",width:""}),r.velocity({translateX:[-1*e.menuWidth-10,c]},{duration:200,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),o.css({width:"10px",right:"",left:0})):l&&a>=-.3||a>.5?(0!==d&&r.velocity({translateX:[0,d]},{duration:300,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),o.css({width:"50%",right:"",left:0}),l=!0):(!l||a<-.3)&&(t("body").css({overflow:"",width:""}),r.velocity({translateX:[e.menuWidth+10,d]},{duration:200,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),o.css({width:"10px",right:0,left:""}))}})),n.off("click.sidenav").on("click.sidenav",function(){if(!0===l)l=!1,s=!1,a();else{var n=t("body"),i=t('<div id="sidenav-overlay"></div>'),u=n.innerWidth();n.css("overflow","hidden"),n.width(u),t("body").append(o),"left"===e.edge?(o.css({width:"50%",right:0,left:""}),r.velocity({translateX:[0,-1*e.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})):(o.css({width:"50%",right:"",left:0}),r.velocity({translateX:[0,e.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})),i.css("opacity",0).click(function(){l=!1,s=!1,a(),i.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})}),t("body").append(i),i.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){l=!0,s=!1}})}return!1})})},destroy:function(){var e=t("#sidenav-overlay"),n=t('.drag-target[data-sidenav="'+t(this).attr("data-activates")+'"]');e.trigger("click"),n.remove(),t(this).off("click"),e.remove()},show:function(){this.trigger("click")},hide:function(){t("#sidenav-overlay").trigger("click")}};t.fn.sideNav=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sideNav"):e.init.apply(this,arguments)}}(C),function(t){function findElements(e,i,r,o){var a=t();return t.each(n,function(t,n){if(n.height()>0){var s=n.offset().top,l=n.offset().left,u=l+n.width(),c=s+n.height();!(l>i||u<o||s>r||c<e)&&a.push(n)}}),a}function onScroll(n){++o;var r=e.scrollTop(),s=e.scrollLeft(),l=s+e.width(),u=r+e.height(),c=findElements(r+a.top+n||200,l+a.right,u+a.bottom,s+a.left);t.each(c,function(t,e){"number"!=typeof e.data("scrollSpy:ticks")&&e.triggerHandler("scrollSpy:enter"),e.data("scrollSpy:ticks",o)}),t.each(i,function(t,e){var n=e.data("scrollSpy:ticks");"number"==typeof n&&n!==o&&(e.triggerHandler("scrollSpy:exit"),e.data("scrollSpy:ticks",null))}),i=c}function onWinSize(){e.trigger("scrollSpy:winSize")}var e=t(window),n=[],i=[],r=!1,o=0,a={top:0,right:0,bottom:0,left:0};t.scrollSpy=function(i,o){var s={throttle:100,scrollOffset:200};o=t.extend(s,o);var l=[];i=t(i),i.each(function(e,i){n.push(t(i)),t(i).data("scrollSpy:id",e),t('a[href="#'+t(i).attr("id")+'"]').click(function(e){e.preventDefault();var n=t(Materialize.escapeHash(this.hash)).offset().top+1;t("html, body").animate({scrollTop:n-o.scrollOffset},{duration:400,queue:!1,easing:"easeOutCubic"})})}),a.top=o.offsetTop||0,a.right=o.offsetRight||0,a.bottom=o.offsetBottom||0,a.left=o.offsetLeft||0;var u=Materialize.throttle(function(){onScroll(o.scrollOffset)},o.throttle||100),c=function(){t(document).ready(u)};return r||(e.on("scroll",c),e.on("resize",c),r=!0),setTimeout(c,0),i.on("scrollSpy:enter",function(){l=t.grep(l,function(t){return 0!=t.height()});var e=t(this);l[0]?(t('a[href="#'+l[0].attr("id")+'"]').removeClass("active"),e.data("scrollSpy:id")<l[0].data("scrollSpy:id")?l.unshift(t(this)):l.push(t(this))):l.push(t(this)),t('a[href="#'+l[0].attr("id")+'"]').addClass("active")}),i.on("scrollSpy:exit",function(){if(l=t.grep(l,function(t){return 0!=t.height()}),l[0]){t('a[href="#'+l[0].attr("id")+'"]').removeClass("active");var e=t(this);l=t.grep(l,function(t){return t.attr("id")!=e.attr("id")}),l[0]&&t('a[href="#'+l[0].attr("id")+'"]').addClass("active")}}),i},t.winSizeSpy=function(n){return t.winSizeSpy=function(){return e},n=n||{throttle:100},e.on("resize",Materialize.throttle(onWinSize,n.throttle||100))},t.fn.scrollSpy=function(e){return t.scrollSpy(t(this),e)}}(C),function(t){t(document).ready(function(){function textareaAutoResize(e){var i=e.css("font-family"),r=e.css("font-size"),o=e.css("line-height");r&&n.css("font-size",r),i&&n.css("font-family",i),o&&n.css("line-height",o),"off"===e.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(e.val()+"\n");var a=n.html().replace(/\n/g,"<br>");n.html(a),e.is(":visible")?n.css("width",e.width()):n.css("width",t(window).width()/2),e.data("original-height")<=n.height()?e.css("height",n.height()):e.val().length<e.data("previous-length")&&e.css("height",e.data("original-height")),e.data("previous-length",e.val().length)}Materialize.updateTextFields=function(){t("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(e,n){var i=t(this);t(n).val().length>0||n.autofocus||void 0!==i.attr("placeholder")?i.siblings("label").addClass("active"):t(n)[0].validity?i.siblings("label").toggleClass("active",!0===t(n)[0].validity.badInput):i.siblings("label").removeClass("active")})};var e="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";t(document).on("change",e,function(){0===t(this).val().length&&void 0===t(this).attr("placeholder")||t(this).siblings("label").addClass("active"),validate_field(t(this))}),t(document).ready(function(){Materialize.updateTextFields()}),t(document).on("reset",function(n){var i=t(n.target);i.is("form")&&(i.find(e).removeClass("valid").removeClass("invalid"),i.find(e).each(function(){""===t(this).attr("value")&&t(this).siblings("label").removeClass("active")}),i.find("select.initialized").each(function(){var t=i.find("option[selected]").text();i.siblings("input.select-dropdown").val(t)}))}),t(document).on("focus",e,function(){t(this).siblings("label, .prefix").addClass("active")}),t(document).on("blur",e,function(){var e=t(this),n=".prefix";0===e.val().length&&!0!==e[0].validity.badInput&&void 0===e.attr("placeholder")&&(n+=", label"),e.siblings(n).removeClass("active"),validate_field(e)}),window.validate_field=function(t){var e=void 0!==t.attr("data-length"),n=parseInt(t.attr("data-length")),i=t.val().length;0===t.val().length&&!1===t[0].validity.badInput?t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid")):t.hasClass("validate")&&(t.is(":valid")&&e&&i<=n||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid")))};t(document).on("keyup.radio","input[type=radio], input[type=checkbox]",function(e){if(9===e.which){t(this).addClass("tabbed");return void t(this).one("blur",function(e){t(this).removeClass("tabbed")})}});var n=t(".hiddendiv").first();n.length||(n=t('<div class="hiddendiv common"></div>'),t("body").append(n));t(".materialize-textarea").each(function(){var e=t(this);e.data("original-height",e.height()),e.data("previous-length",e.val().length)}),t("body").on("keyup keydown autoresize",".materialize-textarea",function(){textareaAutoResize(t(this))}),t(document).on("change",'.file-field input[type="file"]',function(){for(var e=t(this).closest(".file-field"),n=e.find("input.file-path"),i=t(this)[0].files,r=[],o=0;o<i.length;o++)r.push(i[o].name);n.val(r.join(", ")),n.trigger("change")});var i="input[type=range]",r=!1;t(i).each(function(){var e=t('<span class="thumb"><span class="value"></span></span>');t(this).after(e)});var o=function(t){var e=parseInt(t.parent().css("padding-left")),n=-7+e+"px";t.velocity({height:"30px",width:"30px",top:"-30px",marginLeft:n},{duration:300,easing:"easeOutExpo"})},a=function(t){var e=t.width()-15,n=parseFloat(t.attr("max")),i=parseFloat(t.attr("min"));return(parseFloat(t.val())-i)/(n-i)*e};t(document).on("change",i,function(e){var n=t(this).siblings(".thumb");n.find(".value").html(t(this).val()),n.hasClass("active")||o(n);var i=a(t(this));n.addClass("active").css("left",i)}),t(document).on("mousedown touchstart",i,function(e){var n=t(this).siblings(".thumb");if(n.length<=0&&(n=t('<span class="thumb"><span class="value"></span></span>'),t(this).after(n)),n.find(".value").html(t(this).val()),r=!0,t(this).addClass("active"),n.hasClass("active")||o(n),"input"!==e.type){var i=a(t(this));n.addClass("active").css("left",i)}}),t(document).on("mouseup touchend",".range-field",function(){r=!1,t(this).removeClass("active")}),t(document).on("input mousemove touchmove",".range-field",function(e){var n=t(this).children(".thumb"),s=t(this).find(i);if(r){n.hasClass("active")||o(n);var l=a(s);n.addClass("active").css("left",l),n.find(".value").html(n.siblings(i).val())}}),t(document).on("mouseout touchleave",".range-field",function(){if(!r){var e=t(this).children(".thumb"),n=parseInt(t(this).css("padding-left")),i=7+n+"px";e.hasClass("active")&&e.velocity({height:"0",width:"0",top:"10px",marginLeft:i},{duration:100}),e.removeClass("active")}}),t.fn.autocomplete=function(e){var n={data:{},limit:1/0,onAutocomplete:null,minLength:1};return e=t.extend(n,e),this.each(function(){var n,i=t(this),r=e.data,o=0,a=-1,s=i.closest(".input-field");if(!t.isEmptyObject(r)){var l,u=t('<ul class="autocomplete-content dropdown-content"></ul>');s.length?(l=s.children(".autocomplete-content.dropdown-content").first(),l.length||s.append(u)):(l=i.next(".autocomplete-content.dropdown-content"),l.length||i.after(u)),l.length&&(u=l);var c=function(t,e){var n=e.find("img"),i=e.text().toLowerCase().indexOf(""+t.toLowerCase()),r=i+t.length-1,o=e.text().slice(0,i),a=e.text().slice(i,r+1),s=e.text().slice(r+1);e.html("<span>"+o+"<span class='highlight'>"+a+"</span>"+s+"</span>"),n.length&&e.prepend(n)},d=function(){a=-1,u.find(".active").removeClass("active")},f=function(){u.empty(),d(),n=void 0};i.off("blur.autocomplete").on("blur.autocomplete",function(){f()}),i.off("keyup.autocomplete focus.autocomplete").on("keyup.autocomplete focus.autocomplete",function(a){o=0;var s=i.val().toLowerCase();if(13!==a.which&&38!==a.which&&40!==a.which){if(n!==s&&(f(),s.length>=e.minLength))for(var l in r)if(r.hasOwnProperty(l)&&-1!==l.toLowerCase().indexOf(s)&&l.toLowerCase()!==s){if(o>=e.limit)break;var d=t("<li></li>");r[l]?d.append('<img src="'+r[l]+'" class="right circle"><span>'+l+"</span>"):d.append("<span>"+l+"</span>"),u.append(d),c(s,d),o++}n=s}}),i.off("keydown.autocomplete").on("keydown.autocomplete",function(t){var e,n=t.which,i=u.children("li").length,r=u.children(".active").first();if(13===n&&a>=0)return e=u.children("li").eq(a),void(e.length&&(e.trigger("mousedown.autocomplete"),t.preventDefault()));38!==n&&40!==n||(t.preventDefault(),38===n&&a>0&&a--,40===n&&a<i-1&&a++,r.removeClass("active"),a>=0&&u.children("li").eq(a).addClass("active"))}),u.on("mousedown.autocomplete touchstart.autocomplete","li",function(){var n=t(this).text().trim();i.val(n),i.trigger("change"),f(),"function"==typeof e.onAutocomplete&&e.onAutocomplete.call(this,n)})}})}}),t.fn.material_select=function(e){function toggleEntryFromArray(t,e,n){var i=t.indexOf(e),r=-1===i;return r?t.push(e):t.splice(i,1),n.siblings("ul.dropdown-content").find("li:not(.optgroup)").eq(e).toggleClass("active"),n.find("option").eq(e).prop("selected",r),setValueToInput(t,n),r}function setValueToInput(t,e){for(var n="",i=0,r=t.length;i<r;i++){var o=e.find("option").eq(t[i]).text();n+=0===i?o:", "+o}""===n&&(n=e.find("option:disabled").eq(0).text()),e.siblings("input.select-dropdown").val(n)}t(this).each(function(){var n=t(this);if(!n.hasClass("browser-default")){var i=!!n.attr("multiple"),r=n.data("select-id");if(r&&(n.parent().find("span.caret").remove(),n.parent().find("input").remove(),n.unwrap(),t("ul#select-options-"+r).remove()),"destroy"===e)return void n.data("select-id",null).removeClass("initialized");var o=Materialize.guid();n.data("select-id",o);var a=t('<div class="select-wrapper"></div>');a.addClass(n.attr("class"));var s=t('<ul id="select-options-'+o+'" class="dropdown-content select-dropdown '+(i?"multiple-select-dropdown":"")+'"></ul>'),l=n.children("option, optgroup"),u=[],c=!1,d=n.find("option:selected").html()||n.find("option:first").html()||"",f=function(e,n,r){var o=n.is(":disabled")?"disabled ":"",a="optgroup-option"===r?"optgroup-option ":"",l=i?'<input type="checkbox"'+o+"/><label></label>":"",u=n.data("icon"),c=n.attr("class");if(u){var d="";return c&&(d=' class="'+c+'"'),s.append(t('<li class="'+o+a+'"><img alt="" src="'+u+'"'+d+"><span>"+l+n.html()+"</span></li>")),!0}s.append(t('<li class="'+o+a+'"><span>'+l+n.html()+"</span></li>"))};l.length&&l.each(function(){if(t(this).is("option"))i?f(0,t(this),"multiple"):f(0,t(this));else if(t(this).is("optgroup")){var e=t(this).children("option");s.append(t('<li class="optgroup"><span>'+t(this).attr("label")+"</span></li>")),e.each(function(){f(0,t(this),"optgroup-option")})}}),s.find("li:not(.optgroup)").each(function(r){t(this).click(function(o){if(!t(this).hasClass("disabled")&&!t(this).hasClass("optgroup")){var a=!0;i?(t('input[type="checkbox"]',this).prop("checked",function(t,e){return!e}),a=toggleEntryFromArray(u,r,n),g.trigger("focus")):(s.find("li").removeClass("active"),t(this).toggleClass("active"),g.val(t(this).text())),v(s,t(this)),n.find("option").eq(r).prop("selected",a),n.trigger("change"),void 0!==e&&e()}o.stopPropagation()})}),n.wrap(a);var h=t('<span class="caret">▼</span>');n.is(":disabled")&&h.addClass("disabled");var p=d.replace(/"/g,"""),g=t('<input type="text" class="select-dropdown" readonly="true" '+(n.is(":disabled")?"disabled":"")+' data-activates="select-options-'+o+'" value="'+p+'"/>');n.before(g),g.before(h),g.after(s),n.is(":disabled")||g.dropdown({hover:!1}),n.attr("tabindex")&&t(g[0]).attr("tabindex",n.attr("tabindex")),n.addClass("initialized"),g.on({focus:function(){if(t("ul.select-dropdown").not(s[0]).is(":visible")&&t("input.select-dropdown").trigger("close"),!s.is(":visible")){t(this).trigger("open",["focus"]);var e=t(this).val();i&&e.indexOf(",")>=0&&(e=e.split(",")[0]);var n=s.find("li").filter(function(){return t(this).text().toLowerCase()===e.toLowerCase()})[0];v(s,n,!0)}},click:function(t){t.stopPropagation()}}),g.on("blur",function(){i||t(this).trigger("close"),s.find("li.selected").removeClass("selected")}),s.hover(function(){c=!0},function(){c=!1}),t(window).on({click:function(){i&&(c||g.trigger("close"))}}),i&&n.find("option:selected:not(:disabled)").each(function(){var e=t(this).index();toggleEntryFromArray(u,e,n),s.find("li").eq(e).find(":checkbox").prop("checked",!0)});var v=function(e,n,r){if(n){e.find("li.selected").removeClass("selected");var o=t(n);o.addClass("selected"),i&&!r||s.scrollTo(o)}},m=[],y=function(e){if(9==e.which)return void g.trigger("close");if(40==e.which&&!s.is(":visible"))return void g.trigger("open");if(13!=e.which||s.is(":visible")){e.preventDefault();var n=String.fromCharCode(e.which).toLowerCase(),r=[9,13,27,38,40];if(n&&-1===r.indexOf(e.which)){m.push(n);var o=m.join(""),a=s.find("li").filter(function(){return 0===t(this).text().toLowerCase().indexOf(o)})[0];a&&v(s,a)}if(13==e.which){var l=s.find("li.selected:not(.disabled)")[0];l&&(t(l).trigger("click"),i||g.trigger("close"))}40==e.which&&(a=s.find("li.selected").length?s.find("li.selected").next("li:not(.disabled)")[0]:s.find("li:not(.disabled)")[0],v(s,a)),27==e.which&&g.trigger("close"),38==e.which&&(a=s.find("li.selected").prev("li:not(.disabled)")[0])&&v(s,a),setTimeout(function(){m=[]},1e3)}};g.on("keydown",y)}})}}(C),function(t){var e={init:function(e){var n={indicators:!0,height:400,transition:500,interval:6e3};return e=t.extend(n,e),this.each(function(){function captionTransition(t,e){t.hasClass("center-align")?t.velocity({opacity:0,translateY:-100},{duration:e,queue:!1}):t.hasClass("right-align")?t.velocity({opacity:0,translateX:100},{duration:e,queue:!1}):t.hasClass("left-align")&&t.velocity({opacity:0,translateX:-100},{duration:e,queue:!1})}function moveToSlide(t){t>=s.length?t=0:t<0&&(t=s.length-1),(l=a.find(".active").index())!=t&&(n=s.eq(l),$caption=n.find(".caption"),n.removeClass("active"),n.velocity({opacity:0},{duration:e.transition,queue:!1,easing:"easeOutQuad",complete:function(){s.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),captionTransition($caption,e.transition),e.indicators&&i.eq(l).removeClass("active"),s.eq(t).velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,delay:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).addClass("active"),e.indicators&&i.eq(t).addClass("active"))}var n,i,r,o=t(this),a=o.find("ul.slides").first(),s=a.find("> li"),l=a.find(".active").index();-1!=l&&(n=s.eq(l)),o.hasClass("fullscreen")||(e.indicators?o.height(e.height+40):o.height(e.height),a.height(e.height)),s.find(".caption").each(function(){captionTransition(t(this),0)}),s.find("img").each(function(){var e="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";t(this).attr("src")!==e&&(t(this).css("background-image","url("+t(this).attr("src")+")"),t(this).attr("src",e))}),e.indicators&&(i=t('<ul class="indicators"></ul>'),s.each(function(n){var o=t('<li class="indicator-item"></li>');o.click(function(){moveToSlide(a.parent().find(t(this)).index()),clearInterval(r),r=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,moveToSlide(l)},e.transition+e.interval)}),i.append(o)}),o.append(i),i=o.find("ul.indicators").find("li.indicator-item")),n?n.show():(s.first().addClass("active").velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),l=0,n=s.eq(l),e.indicators&&i.eq(l).addClass("active")),n.find("img").each(function(){n.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,queue:!1,easing:"easeOutQuad"})}),r=setInterval(function(){l=a.find(".active").index(),moveToSlide(l+1)},e.transition+e.interval);var u=!1,c=!1,d=!1;o.hammer({prevent_default:!1}).bind("pan",function(t){if("touch"===t.gesture.pointerType){clearInterval(r);var e=t.gesture.direction,n=t.gesture.deltaX,i=t.gesture.velocityX,l=t.gesture.velocityY;$curr_slide=a.find(".active"),Math.abs(i)>Math.abs(l)&&$curr_slide.velocity({translateX:n},{duration:50,queue:!1,easing:"easeOutQuad"}),4===e&&(n>o.innerWidth()/2||i<-.65)?d=!0:2===e&&(n<-1*o.innerWidth()/2||i>.65)&&(c=!0);var u;c&&(u=$curr_slide.next(),0===u.length&&(u=s.first()),u.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),d&&(u=$curr_slide.prev(),0===u.length&&(u=s.last()),u.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(t){"touch"===t.gesture.pointerType&&($curr_slide=a.find(".active"),u=!1,curr_index=a.find(".active").index(),!d&&!c||s.length<=1?$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}):c?(moveToSlide(curr_index+1),$curr_slide.velocity({translateX:-1*o.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):d&&(moveToSlide(curr_index-1),$curr_slide.velocity({translateX:o.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})),c=!1,d=!1,clearInterval(r),r=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,moveToSlide(l)},e.transition+e.interval))}),o.on("sliderPause",function(){clearInterval(r)}),o.on("sliderStart",function(){clearInterval(r),r=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,moveToSlide(l)},e.transition+e.interval)}),o.on("sliderNext",function(){l=a.find(".active").index(),moveToSlide(l+1)}),o.on("sliderPrev",function(){l=a.find(".active").index(),moveToSlide(l-1)})})},pause:function(){t(this).trigger("sliderPause")},start:function(){t(this).trigger("sliderStart")},next:function(){t(this).trigger("sliderNext")},prev:function(){t(this).trigger("sliderPrev")}};t.fn.slider=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.tooltip"):e.init.apply(this,arguments)}}(C),function(t){t(document).ready(function(){t(document).on("click.card",".card",function(e){t(this).find("> .card-reveal").length&&(t(e.target).is(t(".card-reveal .card-title"))||t(e.target).is(t(".card-reveal .card-title i"))?t(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){t(this).css({display:"none"})}}):(t(e.target).is(t(".card .activator"))||t(e.target).is(t(".card .activator i")))&&(t(e.target).closest(".card").css("overflow","hidden"),t(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"})))})})}(C),function(t){var e={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{}};t(document).ready(function(){t(document).on("click",".chip .close",function(e){t(this).closest(".chips").attr("data-initialized")||t(this).closest(".chip").remove()})}),t.fn.material_chip=function(n){var i=this;if(this.$el=t(this),this.$document=t(document),this.SELS={CHIPS:".chips",CHIP:".chip",INPUT:"input",DELETE:".material-icons",SELECTED_CHIP:".selected"},"data"===n)return this.$el.data("chips");var r=t.extend({},e,n);i.hasAutocomplete=!t.isEmptyObject(r.autocompleteOptions.data),this.init=function(){var e=0;i.$el.each(function(){var n=t(this),o=Materialize.guid();i.chipId=o,r.data&&r.data instanceof Array||(r.data=[]),n.data("chips",r.data),n.attr("data-index",e),n.attr("data-initialized",!0),n.hasClass(i.SELS.CHIPS)||n.addClass("chips"),i.chips(n,o),e++})},this.handleEvents=function(){var e=i.SELS;i.$document.off("click.chips-focus",e.CHIPS).on("click.chips-focus",e.CHIPS,function(n){t(n.target).find(e.INPUT).focus()}),i.$document.off("click.chips-select",e.CHIP).on("click.chips-select",e.CHIP,function(n){var r=t(n.target);if(r.length){var o=r.hasClass("selected"),a=r.closest(e.CHIPS);t(e.CHIP).removeClass("selected"),o||i.selectChip(r.index(),a)}}),i.$document.off("keydown.chips").on("keydown.chips",function(n){if(!t(n.target).is("input, textarea")){var r,o=i.$document.find(e.CHIP+e.SELECTED_CHIP),a=o.closest(e.CHIPS),s=o.siblings(e.CHIP).length;if(o.length)if(8===n.which||46===n.which){n.preventDefault(),r=o.index(),i.deleteChip(r,a);var l=null;r+1<s?l=r:r!==s&&r+1!==s||(l=s-1),l<0&&(l=null),null!==l&&i.selectChip(l,a),s||a.find("input").focus()}else if(37===n.which){if((r=o.index()-1)<0)return;t(e.CHIP).removeClass("selected"),i.selectChip(r,a)}else if(39===n.which){if(r=o.index()+1,t(e.CHIP).removeClass("selected"),r>s)return void a.find("input").focus();i.selectChip(r,a)}}}),i.$document.off("focusin.chips",e.CHIPS+" "+e.INPUT).on("focusin.chips",e.CHIPS+" "+e.INPUT,function(n){var i=t(n.target).closest(e.CHIPS);i.addClass("focus"),i.siblings("label, .prefix").addClass("active"),t(e.CHIP).removeClass("selected")}),i.$document.off("focusout.chips",e.CHIPS+" "+e.INPUT).on("focusout.chips",e.CHIPS+" "+e.INPUT,function(n){var i=t(n.target).closest(e.CHIPS);i.removeClass("focus"),i.data("chips").length||i.siblings("label").removeClass("active"),i.siblings(".prefix").removeClass("active")}),i.$document.off("keydown.chips-add",e.CHIPS+" "+e.INPUT).on("keydown.chips-add",e.CHIPS+" "+e.INPUT,function(n){var r=t(n.target),o=r.closest(e.CHIPS),a=o.children(e.CHIP).length;if(13===n.which){if(i.hasAutocomplete&&o.find(".autocomplete-content.dropdown-content").length&&o.find(".autocomplete-content.dropdown-content").children().length)return;return n.preventDefault(),i.addChip({tag:r.val()},o),void r.val("")}if((8===n.keyCode||37===n.keyCode)&&""===r.val()&&a)return n.preventDefault(),i.selectChip(a-1,o),void r.blur()}),i.$document.off("click.chips-delete",e.CHIPS+" "+e.DELETE).on("click.chips-delete",e.CHIPS+" "+e.DELETE,function(n){var r=t(n.target),o=r.closest(e.CHIPS),a=r.closest(e.CHIP);n.stopPropagation(),i.deleteChip(a.index(),o),o.find("input").focus()})},this.chips=function(e,n){e.empty(),e.data("chips").forEach(function(t){e.append(i.renderChip(t))}),e.append(t('<input id="'+n+'" class="input" placeholder="">')),i.setPlaceholder(e);var o=e.next("label");o.length&&(o.attr("for",n),e.data("chips").length&&o.addClass("active"));var a=t("#"+n);i.hasAutocomplete&&(r.autocompleteOptions.onAutocomplete=function(t){i.addChip({tag:t},e),a.val(""),a.focus()},a.autocomplete(r.autocompleteOptions))},this.renderChip=function(e){if(e.tag){var n=t('<div class="chip"></div>');return n.text(e.tag),n.append(t('<i class="material-icons close">close</i>')),n}},this.setPlaceholder=function(t){t.data("chips").length&&r.placeholder?t.find("input").prop("placeholder",r.placeholder):!t.data("chips").length&&r.secondaryPlaceholder&&t.find("input").prop("placeholder",r.secondaryPlaceholder)},this.isValid=function(t,e){for(var n=t.data("chips"),i=!1,r=0;r<n.length;r++)if(n[r].tag===e.tag)return void(i=!0);return""!==e.tag&&!i},this.addChip=function(t,e){if(i.isValid(e,t)){for(var n=i.renderChip(t),r=[],o=e.data("chips"),a=0;a<o.length;a++)r.push(o[a]);r.push(t),e.data("chips",r),n.insertBefore(e.find("input")),e.trigger("chip.add",t),i.setPlaceholder(e)}},this.deleteChip=function(t,e){var n=e.data("chips")[t];e.find(".chip").eq(t).remove();for(var r=[],o=e.data("chips"),a=0;a<o.length;a++)a!==t&&r.push(o[a]);e.data("chips",r),e.trigger("chip.delete",n),i.setPlaceholder(e)},this.selectChip=function(t,e){var n=e.find(".chip").eq(t);n&&!1===n.hasClass("selected")&&(n.addClass("selected"),e.trigger("chip.select",e.data("chips")[t]))},this.getChipsElement=function(t,e){return e.eq(t)},this.init(),this.handleEvents()}}(C),function(t){t.fn.pushpin=function(e){var n={top:0,bottom:1/0,offset:0};return"remove"===e?(this.each(function(){(id=t(this).data("pushpin-id"))&&(t(window).off("scroll."+id),t(this).removeData("pushpin-id").removeClass("pin-top pinned pin-bottom").removeAttr("style"))}),!1):(e=t.extend(n,e),$index=0,this.each(function(){function removePinClasses(t){t.removeClass("pin-top"),t.removeClass("pinned"),t.removeClass("pin-bottom")}function updateElements(n,i){n.each(function(){e.top<=i&&e.bottom>=i&&!t(this).hasClass("pinned")&&(removePinClasses(t(this)),t(this).css("top",e.offset),t(this).addClass("pinned")),i<e.top&&!t(this).hasClass("pin-top")&&(removePinClasses(t(this)),t(this).css("top",0),t(this).addClass("pin-top")),i>e.bottom&&!t(this).hasClass("pin-bottom")&&(removePinClasses(t(this)),t(this).addClass("pin-bottom"),t(this).css("top",e.bottom-r))})}var n=Materialize.guid(),i=t(this),r=t(this).offset().top;t(this).data("pushpin-id",n),updateElements(i,t(window).scrollTop()),t(window).on("scroll."+n,function(){var n=t(window).scrollTop()+e.offset;updateElements(i,n)})}))}}(C),function(t){t(document).ready(function(){t.fn.reverse=[].reverse,t(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(n){var i=t(this);e(i)}),t(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(e){var i=t(this);n(i)}),t(document).on("click.fabClickToggle",".fixed-action-btn.click-to-toggle > a",function(i){var r=t(this),o=r.parent();o.hasClass("active")?n(o):e(o)}),t(document).on("click.fabToolbar",".fixed-action-btn.toolbar > a",function(e){var n=t(this),r=n.parent();i(r)})}),t.fn.extend({openFAB:function(){e(t(this))},closeFAB:function(){n(t(this))},openToolbar:function(){i(t(this))},closeToolbar:function(){r(t(this))}});var e=function(e){var n=e;if(!1===n.hasClass("active")){var i,r,o=n.hasClass("horizontal");!0===o?r=40:i=40,n.addClass("active"),n.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:i+"px",translateX:r+"px"},{duration:0});var a=0;n.find("ul .btn-floating").reverse().each(function(){t(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:a}),a+=40})}},n=function(t){var e,n,i=t,r=i.hasClass("horizontal");!0===r?n=40:e=40,i.removeClass("active");i.find("ul .btn-floating").velocity("stop",!0),i.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:e+"px",translateX:n+"px"},{duration:80})},i=function(e){if("true"!==e.attr("data-open")){var n,i,o,a=window.innerWidth,s=window.innerHeight,l=e[0].getBoundingClientRect(),u=e.find("> a").first(),c=e.find("> ul").first(),d=t('<div class="fab-backdrop"></div>'),f=u.css("background-color");u.append(d),n=l.left-a/2+l.width/2,i=s-l.bottom,o=a/d.width(),e.attr("data-origin-bottom",l.bottom),e.attr("data-origin-left",l.left),e.attr("data-origin-width",l.width),e.addClass("active"),e.attr("data-open",!0),e.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+n+"px)",transition:"none"}),u.css({transform:"translateY("+-i+"px)",transition:"none"}),d.css({"background-color":f}),setTimeout(function(){e.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),u.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){e.css({overflow:"hidden","background-color":f}),d.css({transform:"scale("+o+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),c.find("> li > a").css({opacity:1}),t(window).on("scroll.fabToolbarClose",function(){r(e),t(window).off("scroll.fabToolbarClose"),t(document).off("click.fabToolbarClose")}),t(document).on("click.fabToolbarClose",function(n){t(n.target).closest(c).length||(r(e),t(window).off("scroll.fabToolbarClose"),t(document).off("click.fabToolbarClose"))})},100)},0)}},r=function(t){if("true"===t.attr("data-open")){var e,n,i=window.innerWidth,r=window.innerHeight,o=t.attr("data-origin-width"),a=t.attr("data-origin-bottom"),s=t.attr("data-origin-left"),l=t.find("> .btn-floating").first(),u=t.find("> ul").first(),c=t.find(".fab-backdrop"),d=l.css("background-color");e=s-i/2+o/2,n=r-a,i/c.width(),t.removeClass("active"),t.attr("data-open",!1),t.css({"background-color":"transparent",transition:"none"}),l.css({transition:"none"}),c.css({transform:"scale(0)","background-color":d}),u.find("> li > a").css({opacity:""}),setTimeout(function(){c.remove(),t.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-e+"px,0,0)"}),l.css({overflow:"",transform:"translate3d(0,"+n+"px,0)"}),setTimeout(function(){t.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),l.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}}(C),function(t){Materialize.fadeInImage=function(e){var n;if("string"==typeof e)n=t(e);else{if("object"!=typeof e)return;n=e}n.css({opacity:0}),t(n).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),t(n).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(e,n){n.start=100;var i=e/100,r=150-(100-e)/1.75;r<100&&(r=100),e>=0&&t(this).css({"-webkit-filter":"grayscale("+i+")brightness("+r+"%)",filter:"grayscale("+i+")brightness("+r+"%)"})}})},Materialize.showStaggeredList=function(e){var n;if("string"==typeof e)n=t(e);else{if("object"!=typeof e)return;n=e}var i=0;n.find("li").velocity({translateX:"-100px"},{duration:0}),n.find("li").each(function(){t(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:i,easing:[60,10]}),i+=120})},t(document).ready(function(){var e=!1,n=!1;t(".dismissable").each(function(){t(this).hammer({prevent_default:!1}).bind("pan",function(i){if("touch"===i.gesture.pointerType){var r=t(this),o=i.gesture.direction,a=i.gesture.deltaX,s=i.gesture.velocityX;r.velocity({translateX:a},{duration:50,queue:!1,easing:"easeOutQuad"}),4===o&&(a>r.innerWidth()/2||s<-.75)&&(e=!0),2===o&&(a<-1*r.innerWidth()/2||s>.75)&&(n=!0)}}).bind("panend",function(i){if(Math.abs(i.gesture.deltaX)<t(this).innerWidth()/2&&(n=!1,e=!1),"touch"===i.gesture.pointerType){var r=t(this);if(e||n){var o;o=e?r.innerWidth():-1*r.innerWidth(),r.velocity({translateX:o},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){r.css("border","none"),r.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){r.remove()}})}})}else r.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"});e=!1,n=!1}})})})}(C),function(t){var e=!1;Materialize.scrollFire=function(t){var n=function(){for(var e=window.pageYOffset+window.innerHeight,n=0;n<t.length;n++){var i=t[n],r=i.selector,o=i.offset,a=i.callback,s=document.querySelector(r);if(null!==s){if(e>s.getBoundingClientRect().top+window.pageYOffset+o&&!0!==i.done){if("function"==typeof a)a.call(this,s);else if("string"==typeof a){var l=new Function(a);l(s)}i.done=!0}}}},i=Materialize.throttle(function(){n()},t.throttle||100);e||(window.addEventListener("scroll",i),window.addEventListener("resize",i),e=!0),setTimeout(i,0)}}(),function(t){b=[a(0)],h=t,T="function"==typeof h?h.apply(i,b):h}(function(t){function PickerConstructor(e,r,o,a){function createWrappedComponent(){return PickerConstructor._.node("div",PickerConstructor._.node("div",PickerConstructor._.node("div",PickerConstructor._.node("div",h.component.nodes(l.open),c.box),c.wrap),c.frame),c.holder)}function prepareElement(){d.data(r,h).addClass(c.input).attr("tabindex",-1).val(d.data("value")?h.get("select",u.format):e.value),u.editable||d.on("focus."+l.id+" click."+l.id,function(t){t.preventDefault(),h.$root.eq(0).focus()}).on("keydown."+l.id,handleKeydownEvent),aria(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"})}function prepareElementRoot(){h.$root.on({keydown:handleKeydownEvent,focusin:function(t){h.$root.removeClass(c.focused),t.stopPropagation()},"mousedown click":function(e){var n=e.target;n!=h.$root.children()[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(n).is("input, select, textarea, button, option")||(e.preventDefault(),h.$root.eq(0).focus()))}}).on({focus:function(){d.addClass(c.target)},blur:function(){d.removeClass(c.target)}}).on("focus.toOpen",handleFocusToOpenEvent).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=t(this),n=e.data(),i=e.hasClass(c.navDisabled)||e.hasClass(c.disabled),r=getActiveElement();r=r&&(r.type||r.href),(i||r&&!t.contains(h.$root[0],r))&&h.$root.eq(0).focus(),!i&&n.nav?h.set("highlight",h.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?h.set("select",n.pick):n.clear?h.clear().close(!0):n.close&&h.close(!0)}),aria(h.$root[0],"hidden",!0)}function prepareElementHidden(){var n;!0===u.hiddenName?(n=e.name,e.name=""):(n=["string"==typeof u.hiddenPrefix?u.hiddenPrefix:"","string"==typeof u.hiddenSuffix?u.hiddenSuffix:"_submit"],n=n[0]+e.name+n[1]),h._hidden=t('<input type=hidden name="'+n+'"'+(d.data("value")||e.value?' value="'+h.get("select",u.formatSubmit)+'"':"")+">")[0],d.on("change."+l.id,function(){h._hidden.value=e.value?h.get("select",u.formatSubmit):""}),u.container?t(u.container).append(h._hidden):d.after(h._hidden)}function handleKeydownEvent(t){var e=t.keyCode,n=/^(8|46)$/.test(e);if(27==e)return h.close(),!1;(32==e||n||!l.open&&h.component.key[e])&&(t.preventDefault(),t.stopPropagation(),n?h.clear().close():h.open())}function handleFocusToOpenEvent(t){t.stopPropagation(),"focus"==t.type&&h.$root.addClass(c.focused),h.open()}if(!e)return PickerConstructor;var s=!1,l={id:e.id||"P"+Math.abs(~~(Math.random()*new Date))},u=o?t.extend(!0,{},o.defaults,a):a||{},c=t.extend({},PickerConstructor.klasses(),u.klass),d=t(e),f=function(){return this.start()},h=f.prototype={constructor:f,$node:d,start:function(){return l&&l.start?h:(l.methods={},l.start=!0,l.open=!1,l.type=e.type,e.autofocus=e==getActiveElement(),e.readOnly=!u.editable,e.id=e.id||l.id,"text"!=e.type&&(e.type="text"),h.component=new o(h,u),h.$root=t(PickerConstructor._.node("div",createWrappedComponent(),c.picker,'id="'+e.id+'_root" tabindex="0"')),prepareElementRoot(),u.formatSubmit&&prepareElementHidden(),prepareElement(),u.container?t(u.container).append(h.$root):d.after(h.$root),h.on({start:h.component.onStart,render:h.component.onRender,stop:h.component.onStop,open:h.component.onOpen,close:h.component.onClose,set:h.component.onSet}).on({start:u.onStart,render:u.onRender,stop:u.onStop,open:u.onOpen,close:u.onClose,set:u.onSet}),s=isUsingDefaultTheme(h.$root.children()[0]),e.autofocus&&h.open(),h.trigger("start").trigger("render"))},render:function(t){return t?h.$root.html(createWrappedComponent()):h.$root.find("."+c.box).html(h.component.nodes(l.open)),h.trigger("render")},stop:function(){return l.start?(h.close(),h._hidden&&h._hidden.parentNode.removeChild(h._hidden),h.$root.remove(),d.removeClass(c.input).removeData(r),setTimeout(function(){d.off("."+l.id)},0),e.type=l.type,e.readOnly=!1,h.trigger("stop"),l.methods={},l.start=!1,h):h},open:function(r){return l.open?h:(d.addClass(c.active),aria(e,"expanded",!0),setTimeout(function(){h.$root.addClass(c.opened),aria(h.$root[0],"hidden",!1)},0),!1!==r&&(l.open=!0,s&&i.css("overflow","hidden").css("padding-right","+="+getScrollbarWidth()),h.$root.eq(0).focus(),n.on("click."+l.id+" focusin."+l.id,function(t){var n=t.target;n!=e&&n!=document&&3!=t.which&&h.close(n===h.$root.children()[0])}).on("keydown."+l.id,function(e){var n=e.keyCode,i=h.component.key[n],r=e.target;27==n?h.close(!0):r!=h.$root[0]||!i&&13!=n?t.contains(h.$root[0],r)&&13==n&&(e.preventDefault(),r.click()):(e.preventDefault(),i?PickerConstructor._.trigger(h.component.key.go,h,[PickerConstructor._.trigger(i)]):h.$root.find("."+c.highlighted).hasClass(c.disabled)||h.set("select",h.component.item.highlight).close())})),h.trigger("open"))},close:function(t){return t&&(h.$root.off("focus.toOpen").eq(0).focus(),setTimeout(function(){h.$root.on("focus.toOpen",handleFocusToOpenEvent)},0)),d.removeClass(c.active),aria(e,"expanded",!1),setTimeout(function(){h.$root.removeClass(c.opened+" "+c.focused),aria(h.$root[0],"hidden",!0)},0),l.open?(l.open=!1,s&&i.css("overflow","").css("padding-right","-="+getScrollbarWidth()),n.off("."+l.id),h.trigger("close")):h},clear:function(t){return h.set("clear",null,t)},set:function(e,n,i){var r,o,a=t.isPlainObject(e),s=a?e:{};if(i=a&&t.isPlainObject(n)?n:i||{},e){a||(s[e]=n);for(r in s)o=s[r],r in h.component.item&&(void 0===o&&(o=null),h.component.set(r,o,i)),"select"!=r&&"clear"!=r||d.val("clear"==r?"":h.get(r,u.format)).trigger("change");h.render()}return i.muted?h:h.trigger("set",s)},get:function(t,n){if(t=t||"value",null!=l[t])return l[t];if("valueSubmit"==t){if(h._hidden)return h._hidden.value;t="value"}if("value"==t)return e.value;if(t in h.component.item){if("string"==typeof n){var i=h.component.get(t);return i?PickerConstructor._.trigger(h.component.formats.toString,h.component,[n,i]):""}return h.component.get(t)}},on:function(e,n,i){var r,o,a=t.isPlainObject(e),s=a?e:{};if(e){a||(s[e]=n);for(r in s)o=s[r],i&&(r="_"+r),l.methods[r]=l.methods[r]||[],l.methods[r].push(o)}return h},off:function(){var t,e,n=arguments;for(t=0,namesCount=n.length;t<namesCount;t+=1)(e=n[t])in l.methods&&delete l.methods[e];return h},trigger:function(t,e){var n=function(t){var n=l.methods[t];n&&n.map(function(t){PickerConstructor._.trigger(t,h,[e])})};return n("_"+t),n(t),h}};return new f}function isUsingDefaultTheme(t){var e;return t.currentStyle?e=t.currentStyle.position:window.getComputedStyle&&(e=getComputedStyle(t).position),"fixed"==e}function getScrollbarWidth(){if(i.height()<=e.height())return 0;var n=t('<div style="visibility:hidden;width:100px" />').appendTo("body"),r=n[0].offsetWidth;n.css("overflow","scroll");var o=t('<div style="width:100%" />').appendTo(n),a=o[0].offsetWidth;return n.remove(),r-a}function aria(e,n,i){if(t.isPlainObject(n))for(var r in n)ariaSet(e,r,n[r]);else ariaSet(e,n,i)}function ariaSet(t,e,n){t.setAttribute(("role"==e?"":"aria-")+e,n)}function ariaAttr(e,n){t.isPlainObject(e)||(e={attribute:n}),n="";for(var i in e){var r=("role"==i?"":"aria-")+i;n+=null==e[i]?"":r+'="'+e[i]+'"'}return n}function getActiveElement(){try{return document.activeElement}catch(t){}}var e=t(window),n=t(document),i=t(document.documentElement);return PickerConstructor.klasses=function(t){return t=t||"picker",{picker:t,opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},PickerConstructor._={group:function(t){for(var e,n="",i=PickerConstructor._.trigger(t.min,t);i<=PickerConstructor._.trigger(t.max,t,[i]);i+=t.i)e=PickerConstructor._.trigger(t.item,t,[i]),n+=PickerConstructor._.node(t.node,e[0],e[1],e[2]);return n},node:function(e,n,i,r){return n?(n=t.isArray(n)?n.join(""):n,i=i?' class="'+i+'"':"",r=r?" "+r:"","<"+e+i+r+">"+n+"</"+e+">"):""},lead:function(t){return(t<10?"0":"")+t},trigger:function(t,e,n){return"function"==typeof t?t.apply(e,n||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1==0},ariaAttr:ariaAttr},PickerConstructor.extend=function(e,n){t.fn[e]=function(i,r){var o=this.data(e);return"picker"==i?o:o&&"string"==typeof i?PickerConstructor._.trigger(o[i],o,[r]):this.each(function(){t(this).data(e)||new PickerConstructor(this,e,n,i)})},t.fn[e].defaults=n.defaults},PickerConstructor}),function(t){b=[T,a(0)],h=t,void 0!==(g="function"==typeof h?h.apply(i,b):h)&&(e.exports=g)}(function(t,e){function DatePicker(t,e){var n=this,i=t.$node[0],r=i.value,o=t.$node.data("value"),a=o||r,s=o?e.formatSubmit:e.format,l=function(){return i.currentStyle?"rtl"==i.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};n.settings=e,n.$node=t.$node,n.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},n.item={},n.item.clear=null,n.item.disable=(e.disable||[]).slice(0),n.item.enable=-function(t){return!0===t[0]?t.shift():-1}(n.item.disable),n.set("min",e.min).set("max",e.max).set("now"),a?n.set("select",a,{format:s}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(t){var e=n.item.highlight,i=new Date(e.year,e.month,e.date+t);n.set("highlight",i,{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){var n=this.value;n&&(t.set("highlight",[t.get("view").year,n,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))}),t.$root.find("."+e.klass.selectYear).on("change",function(){var n=this.value;n&&(t.set("highlight",[n,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))})},1).on("open",function(){var i="";n.disabled(n.get("now"))&&(i=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+i+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}var n=t._;DatePicker.prototype.set=function(t,e,n){var i=this,r=i.item;return null===e?("clear"==t&&(t="select"),r[t]=e,i):(r["enable"==t?"disable":"flip"==t?"enable":t]=i.queue[t].split(" ").map(function(r){return e=i[r](t,e,n)}).pop(),"select"==t?i.set("highlight",r.select,n):"highlight"==t?i.set("view",r.highlight,n):t.match(/^(flip|min|max|disable|enable)$/)&&(r.select&&i.disabled(r.select)&&i.set("select",r.select,n),r.highlight&&i.disabled(r.highlight)&&i.set("highlight",r.highlight,n)),i)},DatePicker.prototype.get=function(t){return this.item[t]},DatePicker.prototype.create=function(t,i,r){var o,a=this;return i=void 0===i?t:i,i==-1/0||i==1/0?o=i:e.isPlainObject(i)&&n.isInteger(i.pick)?i=i.obj:e.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=n.isDate(i)?i:a.create().obj):i=n.isInteger(i)||n.isDate(i)?a.normalize(new Date(i),r):a.now(t,i,r),{year:o||i.getFullYear(),month:o||i.getMonth(),date:o||i.getDate(),day:o||i.getDay(),obj:o||i,pick:o||i.getTime()}},DatePicker.prototype.createRange=function(t,i){var r=this,o=function(t){return!0===t||e.isArray(t)||n.isDate(t)?r.create(t):t};return n.isInteger(t)||(t=o(t)),n.isInteger(i)||(i=o(i)),n.isInteger(t)&&e.isPlainObject(i)?t=[i.year,i.month,i.date+t]:n.isInteger(i)&&e.isPlainObject(t)&&(i=[t.year,t.month,t.date+i]),{from:o(t),to:o(i)}},DatePicker.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},DatePicker.prototype.overlapRanges=function(t,e){var n=this;return t=n.createRange(t.from,t.to),e=n.createRange(e.from,e.to),n.withinRange(t,e.from)||n.withinRange(t,e.to)||n.withinRange(e,t.from)||n.withinRange(e,t.to)},DatePicker.prototype.now=function(t,e,n){return e=new Date,n&&n.rel&&e.setDate(e.getDate()+n.rel),this.normalize(e,n)},DatePicker.prototype.navigate=function(t,n,i){var r,o,a,s,l=e.isArray(n),u=e.isPlainObject(n),c=this.item.view;if(l||u){for(u?(o=n.year,a=n.month,s=n.date):(o=+n[0],a=+n[1],s=+n[2]),i&&i.nav&&c&&c.month!==a&&(o=c.year,a=c.month),r=new Date(o,a+(i&&i.nav?i.nav:0),1),o=r.getFullYear(),a=r.getMonth();new Date(o,a,s).getMonth()!==a;)s-=1;n=[o,a,s]}return n},DatePicker.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},DatePicker.prototype.measure=function(t,e){var i=this;return e?"string"==typeof e?e=i.parse(t,e):n.isInteger(e)&&(e=i.now(t,e,{rel:e})):e="min"==t?-1/0:1/0,e},DatePicker.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},DatePicker.prototype.validate=function(t,i,r){var o,a,s,l,u=this,c=i,d=r&&r.interval?r.interval:1,f=-1===u.item.enable,h=u.item.min,p=u.item.max,g=f&&u.item.disable.filter(function(t){if(e.isArray(t)){var r=u.create(t).pick;r<i.pick?o=!0:r>i.pick&&(a=!0)}return n.isInteger(t)}).length;if((!r||!r.nav)&&(!f&&u.disabled(i)||f&&u.disabled(i)&&(g||o||a)||!f&&(i.pick<=h.pick||i.pick>=p.pick)))for(f&&!g&&(!a&&d>0||!o&&d<0)&&(d*=-1);u.disabled(i)&&(Math.abs(d)>1&&(i.month<c.month||i.month>c.month)&&(i=c,d=d>0?1:-1),i.pick<=h.pick?(s=!0,d=1,i=u.create([h.year,h.month,h.date+(i.pick===h.pick?0:-1)])):i.pick>=p.pick&&(l=!0,d=-1,i=u.create([p.year,p.month,p.date+(i.pick===p.pick?0:1)])),!s||!l);)i=u.create([i.year,i.month,i.date+d]);return i},DatePicker.prototype.disabled=function(t){var i=this,r=i.item.disable.filter(function(r){return n.isInteger(r)?t.day===(i.settings.firstDay?r:r-1)%7:e.isArray(r)||n.isDate(r)?t.pick===i.create(r).pick:e.isPlainObject(r)?i.withinRange(r,t):void 0});return r=r.length&&!r.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===i.item.enable?!r:r||t.pick<i.item.min.pick||t.pick>i.item.max.pick},DatePicker.prototype.parse=function(t,e,i){var r=this,o={};return e&&"string"==typeof e?(i&&i.format||(i=i||{},i.format=r.settings.format),r.formats.toArray(i.format).map(function(t){var i=r.formats[t],a=i?n.trigger(i,r,[e,o]):t.replace(/^!/,"").length;i&&(o[t]=e.substr(0,a)),e=e.substr(a)}),[o.yyyy||o.yy,+(o.mm||o.m)-1,o.dd||o.d]):e},DatePicker.prototype.formats=function(){function getWordLengthFromCollection(t,e,n){var i=t.match(/\w+/)[0];return n.mm||n.m||(n.m=e.indexOf(i)+1),i.length}function getFirstWordLength(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?n.digits(t):e.date},dd:function(t,e){return t?2:n.lead(e.date)},ddd:function(t,e){return t?getFirstWordLength(t):this.settings.weekdaysShort[e.day]},dddd:function(t,e){return t?getFirstWordLength(t):this.settings.weekdaysFull[e.day]},m:function(t,e){return t?n.digits(t):e.month+1},mm:function(t,e){return t?2:n.lead(e.month+1)},mmm:function(t,e){var n=this.settings.monthsShort;return t?getWordLengthFromCollection(t,n,e):n[e.month]},mmmm:function(t,e){var n=this.settings.monthsFull;return t?getWordLengthFromCollection(t,n,e):n[e.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var i=this;return i.formats.toArray(t).map(function(t){return n.trigger(i.formats[t],i,[0,e])||t.replace(/^!/,"")}).join("")}}}(),DatePicker.prototype.isDateExact=function(t,i){var r=this;return n.isInteger(t)&&n.isInteger(i)||"boolean"==typeof t&&"boolean"==typeof i?t===i:(n.isDate(t)||e.isArray(t))&&(n.isDate(i)||e.isArray(i))?r.create(t).pick===r.create(i).pick:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&(r.isDateExact(t.from,i.from)&&r.isDateExact(t.to,i.to))},DatePicker.prototype.isDateOverlap=function(t,i){var r=this,o=r.settings.firstDay?1:0;return n.isInteger(t)&&(n.isDate(i)||e.isArray(i))?(t=t%7+o)===r.create(i).day+1:n.isInteger(i)&&(n.isDate(t)||e.isArray(t))?(i=i%7+o)===r.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&r.overlapRanges(t,i)},DatePicker.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},DatePicker.prototype.deactivate=function(t,i){var r=this,o=r.item.disable.slice(0);return"flip"==i?r.flipEnable():!1===i?(r.flipEnable(1),o=[]):!0===i?(r.flipEnable(-1),o=[]):i.map(function(t){for(var i,a=0;a<o.length;a+=1)if(r.isDateExact(t,o[a])){i=!0;break}i||(n.isInteger(t)||n.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&o.push(t)}),o},DatePicker.prototype.activate=function(t,i){var r=this,o=r.item.disable,a=o.length;return"flip"==i?r.flipEnable():!0===i?(r.flipEnable(1),o=[]):!1===i?(r.flipEnable(-1),o=[]):i.map(function(t){var i,s,l,u;for(l=0;l<a;l+=1){if(s=o[l],r.isDateExact(s,t)){i=o[l]=null,u=!0;break}if(r.isDateOverlap(s,t)){e.isPlainObject(t)?(t.inverted=!0,i=t):e.isArray(t)?(i=t,i[3]||i.push("inverted")):n.isDate(t)&&(i=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(i)for(l=0;l<a;l+=1)if(r.isDateExact(o[l],t)){o[l]=null;break}if(u)for(l=0;l<a;l+=1)if(r.isDateOverlap(o[l],t)){o[l]=null;break}i&&o.push(i)}),o.filter(function(t){return null!=t})},DatePicker.prototype.nodes=function(t){var e=this,i=e.settings,r=e.item,o=r.now,a=r.select,s=r.highlight,l=r.view,u=r.disable,c=r.min,d=r.max,f=function(t,e){return i.firstDay&&(t.push(t.shift()),e.push(e.shift())),n.node("thead",n.node("tr",n.group({min:0,max:6,i:1,node:"th",item:function(n){return[t[n],i.klass.weekdays,'scope=col title="'+e[n]+'"']}})))}((i.showWeekdaysFull?i.weekdaysFull:i.weekdaysLetter).slice(0),i.weekdaysFull.slice(0)),h=function(t){return n.node("div"," ",i.klass["nav"+(t?"Next":"Prev")]+(t&&l.year>=d.year&&l.month>=d.month||!t&&l.year<=c.year&&l.month<=c.month?" "+i.klass.navDisabled:""),"data-nav="+(t||-1)+" "+n.ariaAttr({role:"button",controls:e.$node[0].id+"_table"})+' title="'+(t?i.labelMonthNext:i.labelMonthPrev)+'"')},p=function(r){var o=i.showMonthsShort?i.monthsShort:i.monthsFull;return"short_months"==r&&(o=i.monthsShort),i.selectMonths&&void 0==r?n.node("select",n.group({min:0,max:11,i:1,node:"option",item:function(t){return[o[t],0,"value="+t+(l.month==t?" selected":"")+(l.year==c.year&&t<c.month||l.year==d.year&&t>d.month?" disabled":"")]}}),i.klass.selectMonth+" browser-default",(t?"":"disabled")+" "+n.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):"short_months"==r?null!=a?n.node("div",o[a.month]):n.node("div",o[l.month]):n.node("div",o[l.month],i.klass.month)},g=function(r){var o=l.year,a=!0===i.selectYears?5:~~(i.selectYears/2);if(a){var s=c.year,u=d.year,f=o-a,h=o+a;if(s>f&&(h+=s-f,f=s),u<h){var p=f-s,g=h-u;f-=p>g?g:p,h=u}if(i.selectYears&&void 0==r)return n.node("select",n.group({min:f,max:h,i:1,node:"option",item:function(t){return[t,0,"value="+t+(o==t?" selected":"")]}}),i.klass.selectYear+" browser-default",(t?"":"disabled")+" "+n.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return"raw"==r?n.node("div",o):n.node("div",o,i.klass.year)};return createDayLabel=function(){return null!=a?n.node("div",a.date):n.node("div",o.date)},createWeekdayLabel=function(){var t;return t=null!=a?a.day:o.day,i.weekdaysFull[t]},n.node("div",n.node("div",createWeekdayLabel(),"picker__weekday-display")+n.node("div",p("short_months"),i.klass.month_display)+n.node("div",createDayLabel(),i.klass.day_display)+n.node("div",g("raw"),i.klass.year_display),i.klass.date_display)+n.node("div",n.node("div",(i.selectYears,p()+g()+h()+h(1)),i.klass.header)+n.node("table",f+n.node("tbody",n.group({min:0,max:5,i:1,node:"tr",item:function(t){var r=i.firstDay&&0===e.create([l.year,l.month,1]).day?-7:0;return[n.group({min:7*t-l.day+r+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=e.create([l.year,l.month,t+(i.firstDay?1:0)]);var r=a&&a.pick==t.pick,f=s&&s.pick==t.pick,h=u&&e.disabled(t)||t.pick<c.pick||t.pick>d.pick,p=n.trigger(e.formats.toString,e,[i.format,t]);return[n.node("div",t.date,function(e){return e.push(l.month==t.month?i.klass.infocus:i.klass.outfocus),o.pick==t.pick&&e.push(i.klass.now),r&&e.push(i.klass.selected),f&&e.push(i.klass.highlighted),h&&e.push(i.klass.disabled),e.join(" ")}([i.klass.day]),"data-pick="+t.pick+" "+n.ariaAttr({role:"gridcell",label:p,selected:!(!r||e.$node.val()!==p)||null,activedescendant:!!f||null,disabled:!!h||null})),"",n.ariaAttr({role:"presentation"})]}})]}})),i.klass.table,'id="'+e.$node[0].id+'_table" '+n.ariaAttr({role:"grid",controls:e.$node[0].id,readonly:!0})),i.klass.calendar_container)+n.node("div",n.node("button",i.today,"btn-flat picker__today","type=button data-pick="+o.pick+(t&&!e.disabled(o)?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id}))+n.node("button",i.clear,"btn-flat picker__clear","type=button data-clear=1"+(t?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id}))+n.node("button",i.close,"btn-flat picker__close","type=button data-close=true "+(t?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id})),i.klass.footer)},DatePicker.defaults=function(t){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysLetter:["S","M","T","W","T","F","S"],today:"Today",clear:"Clear",close:"Close",format:"d mmmm, yyyy",klass:{table:t+"table",header:t+"header",date_display:t+"date-display",day_display:t+"day-display",month_display:t+"month-display",year_display:t+"year-display",calendar_container:t+"calendar-container",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}}}(t.klasses().picker+"__"),t.extend("pickadate",DatePicker)}),function(t){function updateCounter(){var e=+t(this).attr("data-length"),n=+t(this).val().length,i=n<=e;t(this).parent().find('span[class="character-counter"]').html(n+"/"+e),addInputStyle(i,t(this))}function addCounterElement(e){var n=e.parent().find('span[class="character-counter"]');n.length||(n=t("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),e.parent().append(n))}function removeCounterElement(){t(this).parent().find('span[class="character-counter"]').html("")}function addInputStyle(t,e){var n=e.hasClass("invalid");t&&n?e.removeClass("invalid"):t||n||(e.removeClass("valid"),e.addClass("invalid"))}t.fn.characterCounter=function(){return this.each(function(){var e=t(this);e.parent().find('span[class="character-counter"]').length||void 0!==e.attr("data-length")&&(e.on("input",updateCounter),e.on("focus",updateCounter),e.on("blur",removeCounterElement),addCounterElement(e))})},t(document).ready(function(){t("input, textarea").characterCounter()})}(C),function(t){var e={init:function(e){var n={duration:200,dist:-100,shift:0,padding:0,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null};e=t.extend(n,e);var i=Materialize.objectSelectorString(t(this));return this.each(function(n){function xpos(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function ypos(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function wrap(t){return t>=d?t%d:t<0?wrap(d+t%d):t}function scroll(n){m=!0,A.hasClass("scrolling")||A.addClass("scrolling"),null!=_&&window.clearTimeout(_),_=window.setTimeout(function(){m=!1,A.removeClass("scrolling")},e.duration);var i,u,f,h,p,g,v,y=l;if(s="number"==typeof n?n:s,l=Math.floor((s+c/2)/c),f=s-l*c,h=f<0?1:-1,p=-h*f*2/c,u=d>>1,e.fullWidth?v="translateX(0)":(v="translateX("+(A[0].clientWidth-o)/2+"px) ",v+="translateY("+(A[0].clientHeight-a)/2+"px)"),P){var w=l%d,x=S.find(".indicator-item.active");x.index()!==w&&(x.removeClass("active"),S.find(".indicator-item").eq(w).addClass("active"))}for((!e.noWrap||l>=0&&l<d)&&(g=r[wrap(l)],t(g).hasClass("active")||(A.find(".carousel-item").removeClass("active"),t(g).addClass("active")),g.style[b]=v+" translateX("+-f/2+"px) translateX("+h*e.shift*p*i+"px) translateZ("+e.dist*p+"px)",g.style.zIndex=0,e.fullWidth?tweenedOpacity=1:tweenedOpacity=1-.2*p,g.style.opacity=tweenedOpacity,g.style.display="block"),i=1;i<=u;++i)e.fullWidth?(zTranslation=e.dist,tweenedOpacity=i===u&&f<0?1-p:1):(zTranslation=e.dist*(2*i+p*h),tweenedOpacity=1-.2*(2*i+p*h)),(!e.noWrap||l+i<d)&&(g=r[wrap(l+i)],g.style[b]=v+" translateX("+(e.shift+(c*i-f)/2)+"px) translateZ("+zTranslation+"px)",g.style.zIndex=-i,g.style.opacity=tweenedOpacity,g.style.display="block"),e.fullWidth?(zTranslation=e.dist,tweenedOpacity=i===u&&f>0?1-p:1):(zTranslation=e.dist*(2*i-p*h),tweenedOpacity=1-.2*(2*i-p*h)),(!e.noWrap||l-i>=0)&&(g=r[wrap(l-i)],g.style[b]=v+" translateX("+(-e.shift+(-c*i-f)/2)+"px) translateZ("+zTranslation+"px)",g.style.zIndex=-i,g.style.opacity=tweenedOpacity,g.style.display="block");if((!e.noWrap||l>=0&&l<d)&&(g=r[wrap(l)],g.style[b]=v+" translateX("+-f/2+"px) translateX("+h*e.shift*p+"px) translateZ("+e.dist*p+"px)",g.style.zIndex=0,e.fullWidth?tweenedOpacity=1:tweenedOpacity=1-.2*p,g.style.opacity=tweenedOpacity,g.style.display="block"),y!==l&&"function"==typeof e.onCycleTo){var T=A.find(".carousel-item").eq(wrap(l));e.onCycleTo.call(this,T,C)}}function track(){var t,e,n,i;t=Date.now(),e=t-x,x=t,n=s-w,w=s,i=1e3*n/(1+e),v=.8*i+.2*v}function autoScroll(){var t,n;p&&(t=Date.now()-x,n=p*Math.exp(-t/e.duration),n>2||n<-2?(scroll(g-n),requestAnimationFrame(autoScroll)):scroll(g))}function click(n){if(C)return n.preventDefault(),n.stopPropagation(),!1;if(!e.fullWidth){var i=t(n.target).closest(".carousel-item").index();0!==l%d-i&&(n.preventDefault(),n.stopPropagation()),cycleTo(i)}}function cycleTo(t){var n=l%d-t;e.noWrap||(n<0?Math.abs(n+d)<Math.abs(n)&&(n+=d):n>0&&Math.abs(n-d)<n&&(n-=d)),n<0?A.trigger("carouselNext",[Math.abs(n)]):n>0&&A.trigger("carouselPrev",[n])}function tap(t){t.preventDefault(),u=!0,C=!1,k=!1,f=xpos(t),h=ypos(t),v=p=0,w=s,x=Date.now(),clearInterval(T),T=setInterval(track,100)}function drag(t){var e,n;if(u)if(e=xpos(t),y=ypos(t),n=f-e,Math.abs(h-y)<30&&!k)(n>2||n<-2)&&(C=!0,f=e,scroll(s+n));else{if(C)return t.preventDefault(),t.stopPropagation(),!1;k=!0}if(C)return t.preventDefault(),t.stopPropagation(),!1}function release(t){if(u)return u=!1,clearInterval(T),g=s,(v>10||v<-10)&&(p=.9*v,g=s+p),g=Math.round(g/c)*c,e.noWrap&&(g>=c*(d-1)?g=c*(d-1):g<0&&(g=0)),p=g-s,x=Date.now(),requestAnimationFrame(autoScroll),C&&(t.preventDefault(),t.stopPropagation()),!1}var r,o,a,s,l,u,c,d,f,h,p,g,v,m,b,w,x,T,C,k,E=i+n,S=t('<ul class="indicators"></ul>'),_=null,A=t(this),P=A.attr("data-indicators")||e.indicators;if(e.fullWidth&&(e.dist=0,function(){var e=A.find(".carousel-item img").first();if(e.length)e.prop("complete")?A.css("height",e.height()):e.on("load",function(){A.css("height",t(this).height())});else{var n=A.find(".carousel-item").first().height();A.css("height",n)}}(),P&&A.find(".carousel-fixed-item").addClass("with-indicators")),A.hasClass("initialized"))return t(window).trigger("resize"),t(this).trigger("carouselNext",[1e-6]),!0;A.addClass("initialized"),u=!1,s=g=0,r=[],o=A.find(".carousel-item").first().innerWidth(),a=A.find(".carousel-item").first().innerHeight(),c=2*o+e.padding,A.find(".carousel-item").each(function(e){if(r.push(t(this)[0]),P){var n=t('<li class="indicator-item"></li>');0===e&&n.addClass("active"),n.click(function(e){e.stopPropagation(),cycleTo(t(this).index())}),S.append(n)}}),P&&A.append(S),d=r.length,b="transform",["webkit","Moz","O","ms"].every(function(t){var e=t+"Transform";return void 0===document.body.style[e]||(b=e,!1)}),t(window).off("resize.carousel-"+E).on("resize.carousel-"+E,function(){e.fullWidth?(o=A.find(".carousel-item").first().innerWidth(),a=A.find(".carousel-item").first().innerHeight(),c=2*o+e.padding,s=2*l*o,g=s):scroll()}),function(){void 0!==window.ontouchstart&&(A[0].addEventListener("touchstart",tap),A[0].addEventListener("touchmove",drag),A[0].addEventListener("touchend",release)),A[0].addEventListener("mousedown",tap),A[0].addEventListener("mousemove",drag),A[0].addEventListener("mouseup",release),A[0].addEventListener("mouseleave",release),A[0].addEventListener("click",click)}(),scroll(s),t(this).on("carouselNext",function(t,e){void 0===e&&(e=1),g=c*Math.round(s/c)+c*e,s!==g&&(p=g-s,x=Date.now(),requestAnimationFrame(autoScroll))}),t(this).on("carouselPrev",function(t,e){void 0===e&&(e=1),g=c*Math.round(s/c)-c*e,s!==g&&(p=g-s,x=Date.now(),requestAnimationFrame(autoScroll))}),t(this).on("carouselSet",function(t,e){void 0===e&&(e=0),cycleTo(e)})})},next:function(e){t(this).trigger("carouselNext",[e])},prev:function(e){t(this).trigger("carouselPrev",[e])},set:function(e){t(this).trigger("carouselSet",[e])}};t.fn.carousel=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.carousel"):e.init.apply(this,arguments)}}(C),function(t){var e={init:function(e){return this.each(function(){var n=t("#"+t(this).attr("data-activates")),i=(t("body"),t(this)),r=i.parent(".tap-target-wrapper"),o=r.find(".tap-target-wave"),a=r.find(".tap-target-origin"),s=i.find(".tap-target-content");r.length||(r=i.wrap(t('<div class="tap-target-wrapper"></div>')).parent()),s.length||(s=t('<div class="tap-target-content"></div>'),i.append(s)),o.length||(o=t('<div class="tap-target-wave"></div>'),a.length||(a=n.clone(!0,!0),a.addClass("tap-target-origin"),a.removeAttr("id"),a.removeAttr("style"),o.append(a)),r.append(o));var l=function(){r.is(".open")&&(r.removeClass("open"),a.off("click.tapTarget"),t(document).off("click.tapTarget"),t(window).off("resize.tapTarget"))},u=function(){var e="fixed"===n.css("position");if(!e)for(var a=n.parents(),l=0;l<a.length&&!(e="fixed"==t(a[l]).css("position"));l++);var u=n.outerWidth(),c=n.outerHeight(),d=e?n.offset().top-t(document).scrollTop():n.offset().top,f=e?n.offset().left-t(document).scrollLeft():n.offset().left,h=t(window).width(),p=t(window).height(),g=h/2,v=p/2,m=f<=g,y=f>g,b=d<=v,w=d>v,x=f>=.25*h&&f<=.75*h,T=i.outerWidth(),C=i.outerHeight(),k=d+c/2-C/2,E=f+u/2-T/2,S=e?"fixed":"absolute",_=x?T:T/2+u,A=C/2,P=b?C/2:0,D=m&&!x?T/2-u:0,O=u,N=w?"bottom":"top",M=2*u,I=M,R=C/2-I/2,L=T/2-M/2,z={};z.top=b?k:"",z.right=y?h-E-T:"",z.bottom=w?p-k-C:"",z.left=m?E:"",z.position=S,r.css(z),s.css({width:_,height:A,top:P,right:0,bottom:0,left:D,padding:O,verticalAlign:N}),o.css({top:R,left:L,width:M,height:I})};"open"==e&&(u(),function(){r.is(".open")||(r.addClass("open"),setTimeout(function(){a.off("click.tapTarget").on("click.tapTarget",function(t){l(),a.off("click.tapTarget")}),t(document).off("click.tapTarget").on("click.tapTarget",function(e){l(),t(document).off("click.tapTarget")});var e=Materialize.throttle(function(){u()},200);t(window).off("resize.tapTarget").on("resize.tapTarget",e)},0))}()),"close"==e&&l()})},open:function(){},close:function(){}};t.fn.tapTarget=function(n){if(e[n]||"object"==typeof n)return e.init.apply(this,arguments);t.error("Method "+n+" does not exist on jQuery.tap-target")}}(C)}).call(i,a(0),a(0))},,function(t,e,n){"use strict";var i=n(0),r=function(t){return t&&t.__esModule?t:{default:t}}(i);n(48),n(49),n(21);var o=n(45);n(44),n(43),n(47),(0,r.default)(document).ready(function(){(0,r.default)(".button-collapse").sideNav(),(0,r.default)("select").material_select(),(0,r.default)(".collapsible").collapsible({accordion:!1}),(0,r.default)(".datepicker").pickadate({selectMonths:!0,selectYears:15,formatSubmit:"dd/mm/yyyy",hiddenName:!0,format:"dd/mm/yyyy",container:"body"}),(0,o.initFilters)(),(0,o.initExport)(),(0,r.default)("#nav-btn-add-tag").on("click",function(){return(0,r.default)(".nav-panel-add-tag").toggle(100),(0,r.default)(".nav-panel-menu").addClass("hidden"),(0,r.default)("#tag_label").focus(),!1}),(0,r.default)("#nav-btn-add").on("click",function(){return(0,r.default)(".nav-panel-buttom").hide(100),(0,r.default)(".nav-panel-add").show(100),(0,r.default)(".nav-panels .action").hide(100),(0,r.default)(".nav-panel-menu").addClass("hidden"),(0,r.default)(".nav-panels").css("background","white"),(0,r.default)("#entry_url").focus(),!1}),(0,r.default)("#nav-btn-search").on("click",function(){return(0,r.default)(".nav-panel-buttom").hide(100),(0,r.default)(".nav-panel-search").show(100),(0,r.default)(".nav-panels .action").hide(100),(0,r.default)(".nav-panel-menu").addClass("hidden"),(0,r.default)(".nav-panels").css("background","white"),(0,r.default)("#search_entry_term").focus(),!1}),(0,r.default)(".close").on("click",function(){return(0,r.default)(".nav-panel-add").hide(100),(0,r.default)(".nav-panel-search").hide(100),(0,r.default)(".nav-panel-buttom").show(100),(0,r.default)(".nav-panels .action").show(100),(0,r.default)(".nav-panel-menu").removeClass("hidden"),(0,r.default)(".nav-panels").css("background","transparent"),!1}),(0,r.default)(window).scroll(function(){var t=(0,r.default)(window).scrollTop(),e=(0,r.default)(document).height(),n=(0,r.default)(window).height(),i=t/(e-n)*100;(0,r.default)(".progress .determinate").css("width",i+"%")})})},function(t,e,n){var i;!function(r,o,a,s){"use strict";function setTimeoutContext(t,e,n){return setTimeout(bindFn(t,n),e)}function invokeArrayArg(t,e,n){return!!Array.isArray(t)&&(each(t,n[e],n),!0)}function each(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function deprecate(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}function inherit(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&l(i,n)}function bindFn(t,e){return function(){return t.apply(e,arguments)}}function boolOrFn(t,e){return typeof t==d?t.apply(e?e[0]||s:s,e):t}function ifUndefined(t,e){return t===s?e:t}function addEventListeners(t,e,n){each(splitStr(e),function(e){t.addEventListener(e,n,!1)})}function removeEventListeners(t,e,n){each(splitStr(e),function(e){t.removeEventListener(e,n,!1)})}function hasParent(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function inStr(t,e){return t.indexOf(e)>-1}function splitStr(t){return t.trim().split(/\s+/g)}function inArray(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function toArray(t){return Array.prototype.slice.call(t,0)}function uniqueArray(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];inArray(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function prefixed(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<u.length;){if(n=u[o],(i=n?n+r:e)in t)return i;o++}return s}function uniqueId(){return m++}function getWindowForElement(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function Input(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){boolOrFn(t.options.enable,[t])&&n.handler(e)},this.init()}function createInputInstance(t){var e=t.options.inputClass;return new(e||(w?PointerEventInput:x?TouchInput:b?TouchMouseInput:MouseInput))(t,inputHandler)}function inputHandler(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&C&&i-r==0,a=e&(E|S)&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,computeInputData(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function computeInputData(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=simpleCloneInputData(e)),r>1&&!n.firstMultiple?n.firstMultiple=simpleCloneInputData(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=getCenter(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=getAngle(s,l),e.distance=getDistance(s,l),computeDeltaXY(n,e),e.offsetDirection=getDirection(e.deltaX,e.deltaY);var u=getVelocity(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=h(u.x)>h(u.y)?u.x:u.y,e.scale=a?getScale(a.pointers,i):1,e.rotation=a?getRotation(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,computeIntervalInputData(n,e);var c=t.element;hasParent(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function computeDeltaXY(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==C&&o.eventType!==E||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function computeIntervalInputData(t,e){var n,i,r,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=S&&(l>T||a.velocity===s)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,d=getVelocity(l,u,c);i=d.x,r=d.y,n=h(d.x)>h(d.y)?d.x:d.y,o=getDirection(u,c),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function simpleCloneInputData(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:f(t.pointers[n].clientX),clientY:f(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:getCenter(e),deltaX:t.deltaX,deltaY:t.deltaY}}function getCenter(t){var e=t.length;if(1===e)return{x:f(t[0].clientX),y:f(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:f(n/e),y:f(i/e)}}function getVelocity(t,e,n){return{x:e/t||0,y:n/t||0}}function getDirection(t,e){return t===e?_:h(t)>=h(e)?t<0?A:P:e<0?D:O}function getDistance(t,e,n){n||(n=R);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function getAngle(t,e,n){n||(n=R);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function getRotation(t,e){return getAngle(e[1],e[0],L)+getAngle(t[1],t[0],L)}function getScale(t,e){return getDistance(e[0],e[1],L)/getDistance(t[0],t[1],L)}function MouseInput(){this.evEl=F,this.evWin=q,this.pressed=!1,Input.apply(this,arguments)}function PointerEventInput(){this.evEl=W,this.evWin=B,Input.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function SingleTouchInput(){this.evTarget=X,this.evWin=$,this.started=!1,Input.apply(this,arguments)}function normalizeSingleTouches(t,e){var n=toArray(t.touches),i=toArray(t.changedTouches);return e&(E|S)&&(n=uniqueArray(n.concat(i),"identifier",!0)),[n,i]}function TouchInput(){this.evTarget=U,this.targetIds={},Input.apply(this,arguments)}function getTouches(t,e){var n=toArray(t.touches),i=this.targetIds;if(e&(C|k)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=toArray(t.changedTouches),s=[],l=this.target;if(o=n.filter(function(t){return hasParent(t.target,l)}),e===C)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(E|S)&&delete i[a[r].identifier],r++;return s.length?[uniqueArray(o.concat(s),"identifier",!0),s]:void 0}function TouchMouseInput(){Input.apply(this,arguments);var t=bindFn(this.handler,this);this.touch=new TouchInput(this.manager,t),this.mouse=new MouseInput(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function recordTouches(t,e){t&C?(this.primaryTouch=e.changedPointers[0].identifier,setLastTouch.call(this,e)):t&(E|S)&&setLastTouch.call(this,e)}function setLastTouch(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,Q)}}function isSyntheticEvent(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),a=Math.abs(n-r.y);if(o<=G&&a<=G)return!0}return!1}function TouchAction(t,e){this.manager=t,this.set(e)}function cleanTouchActions(t){if(inStr(t,et))return et;var e=inStr(t,nt),n=inStr(t,it);return e&&n?et:e||n?e?nt:it:inStr(t,tt)?tt:J}function Recognizer(t){this.options=l({},this.defaults,t||{}),this.id=uniqueId(),this.manager=null,this.options.enable=ifUndefined(this.options.enable,!0),this.state=ot,this.simultaneous={},this.requireFail=[]}function stateStr(t){return t&ct?"cancel":t<?"end":t&st?"move":t&at?"start":""}function directionStr(t){return t==O?"down":t==D?"up":t==A?"left":t==P?"right":""}function getRecognizerByNameIfManager(t,e){var n=e.manager;return n?n.get(t):t}function AttrRecognizer(){Recognizer.apply(this,arguments)}function PanRecognizer(){AttrRecognizer.apply(this,arguments),this.pX=null,this.pY=null}function PinchRecognizer(){AttrRecognizer.apply(this,arguments)}function PressRecognizer(){Recognizer.apply(this,arguments),this._timer=null,this._input=null}function RotateRecognizer(){AttrRecognizer.apply(this,arguments)}function SwipeRecognizer(){AttrRecognizer.apply(this,arguments)}function TapRecognizer(){Recognizer.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Hammer(t,e){return e=e||{},e.recognizers=ifUndefined(e.recognizers,Hammer.defaults.preset),new Manager(t,e)}function Manager(t,e){this.options=l({},Hammer.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=createInputInstance(this),this.touchAction=new TouchAction(this,this.options.touchAction),toggleCssProps(this,!0),each(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function toggleCssProps(t,e){var n=t.element;if(n.style){var i;each(t.options.cssProps,function(r,o){i=prefixed(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function triggerDomEvent(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var l,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),d="function",f=Math.round,h=Math.abs,p=Date.now;l="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var g=deprecate(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===s)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),v=deprecate(function(t,e){return g(t,e,!0)},"merge","Use `assign`."),m=1,y=/mobile|tablet|ip(ad|hone|od)|android/i,b="ontouchstart"in r,w=prefixed(r,"PointerEvent")!==s,x=b&&y.test(navigator.userAgent),T=25,C=1,k=2,E=4,S=8,_=1,A=2,P=4,D=8,O=16,N=A|P,M=D|O,I=N|M,R=["x","y"],L=["clientX","clientY"];Input.prototype={handler:function(){},init:function(){this.evEl&&addEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&addEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&addEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&removeEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&removeEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&removeEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)}};var z={mousedown:C,mousemove:k,mouseup:E},F="mousedown",q="mousemove mouseup";inherit(MouseInput,Input,{handler:function(t){var e=z[t.type];e&C&&0===t.button&&(this.pressed=!0),e&k&&1!==t.which&&(e=E),this.pressed&&(e&E&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var H={pointerdown:C,pointermove:k,pointerup:E,pointercancel:S,pointerout:S},j={2:"touch",3:"pen",4:"mouse",5:"kinect"},W="pointerdown",B="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(W="MSPointerDown",B="MSPointerMove MSPointerUp MSPointerCancel"),inherit(PointerEventInput,Input,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=H[i],o=j[t.pointerType]||t.pointerType,a="touch"==o,s=inArray(e,t.pointerId,"pointerId");r&C&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(E|S)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var V={touchstart:C,touchmove:k,touchend:E,touchcancel:S},X="touchstart",$="touchstart touchmove touchend touchcancel";inherit(SingleTouchInput,Input,{handler:function(t){var e=V[t.type];if(e===C&&(this.started=!0),this.started){var n=normalizeSingleTouches.call(this,t,e);e&(E|S)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Y={touchstart:C,touchmove:k,touchend:E,touchcancel:S},U="touchstart touchmove touchend touchcancel";inherit(TouchInput,Input,{handler:function(t){var e=Y[t.type],n=getTouches.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var Q=2500,G=25;inherit(TouchMouseInput,Input,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)recordTouches.call(this,e,n);else if(r&&isSyntheticEvent.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var K=prefixed(c.style,"touchAction"),Z=K!==s,J="auto",tt="manipulation",et="none",nt="pan-x",it="pan-y",rt=function(){if(!Z)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();TouchAction.prototype={set:function(t){"compute"==t&&(t=this.compute()),Z&&this.manager.element.style&&rt[t]&&(this.manager.element.style[K]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return each(this.manager.recognizers,function(e){boolOrFn(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),cleanTouchActions(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=inStr(i,et)&&!rt[et],o=inStr(i,it)&&!rt[it],a=inStr(i,nt)&&!rt[nt];if(r){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)return}return a&&o?void 0:r||o&&n&N||a&&n&M?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ot=1,at=2,st=4,lt=8,ut=lt,ct=16;Recognizer.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(invokeArrayArg(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=getRecognizerByNameIfManager(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return invokeArrayArg(t,"dropRecognizeWith",this)?this:(t=getRecognizerByNameIfManager(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(invokeArrayArg(t,"requireFailure",this))return this;var e=this.requireFail;return t=getRecognizerByNameIfManager(t,this),-1===inArray(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(invokeArrayArg(t,"dropRequireFailure",this))return this;t=getRecognizerByNameIfManager(t,this);var e=inArray(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function emit(n){e.manager.emit(n,t)}var e=this,n=this.state;n<lt&&emit(e.options.event+stateStr(n)),emit(e.options.event),t.additionalEvent&&emit(t.additionalEvent),n>=lt&&emit(e.options.event+stateStr(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|ot)))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!boolOrFn(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ut|ct|32)&&(this.state=ot),this.state=this.process(e),this.state&(at|st|lt|ct)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},inherit(AttrRecognizer,Recognizer,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(at|st),r=this.attrTest(t);return i&&(n&S||!r)?e|ct:i||r?n&E?e|lt:e&at?e|st:at:32}}),inherit(PanRecognizer,AttrRecognizer,{defaults:{event:"pan",threshold:10,pointers:1,direction:I},getTouchAction:function(){var t=this.options.direction,e=[];return t&N&&e.push(it),t&M&&e.push(nt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&N?(r=0===o?_:o<0?A:P,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?_:a<0?D:O,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return AttrRecognizer.prototype.attrTest.call(this,t)&&(this.state&at||!(this.state&at)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=directionStr(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[et]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&at)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),inherit(PressRecognizer,Recognizer,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[J]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(E|S)&&!r)this.reset();else if(t.eventType&C)this.reset(),this._timer=setTimeoutContext(function(){this.state=ut,this.tryEmit()},e.time,this);else if(t.eventType&E)return ut;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ut&&(t&&t.eventType&E?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[et]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&at)}}),inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:N|M,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(N|M)?e=t.overallVelocity:n&N?e=t.overallVelocityX:n&M&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&t.eventType&E},emit:function(t){var e=directionStr(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),inherit(TapRecognizer,Recognizer,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&C&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=E)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||getDistance(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=setTimeoutContext(function(){this.state=ut,this.tryEmit()},e.interval,this),at):ut}return 32},failTimeout:function(){return this._timer=setTimeoutContext(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ut&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Hammer.VERSION="2.0.7",Hammer.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[RotateRecognizer,{enable:!1}],[PinchRecognizer,{enable:!1},["rotate"]],[SwipeRecognizer,{direction:N}],[PanRecognizer,{direction:N},["swipe"]],[TapRecognizer],[TapRecognizer,{event:"doubletap",taps:2},["tap"]],[PressRecognizer]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Manager.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ut)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(at|st|lt)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Recognizer)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(invokeArrayArg(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(invokeArrayArg(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=inArray(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return each(splitStr(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==s){var n=this.handlers;return each(splitStr(t),function(t){e?n[t]&&n[t].splice(inArray(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&triggerDomEvent(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&toggleCssProps(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Hammer,{INPUT_START:C,INPUT_MOVE:k,INPUT_END:E,INPUT_CANCEL:S,STATE_POSSIBLE:ot,STATE_BEGAN:at,STATE_CHANGED:st,STATE_ENDED:lt,STATE_RECOGNIZED:ut,STATE_CANCELLED:ct,STATE_FAILED:32,DIRECTION_NONE:_,DIRECTION_LEFT:A,DIRECTION_RIGHT:P,DIRECTION_UP:D,DIRECTION_DOWN:O,DIRECTION_HORIZONTAL:N,DIRECTION_VERTICAL:M,DIRECTION_ALL:I,Manager:Manager,Input:Input,TouchAction:TouchAction,TouchInput:TouchInput,MouseInput:MouseInput,PointerEventInput:PointerEventInput,TouchMouseInput:TouchMouseInput,SingleTouchInput:SingleTouchInput,Recognizer:Recognizer,AttrRecognizer:AttrRecognizer,Tap:TapRecognizer,Pan:PanRecognizer,Swipe:SwipeRecognizer,Pinch:PinchRecognizer,Rotate:RotateRecognizer,Press:PressRecognizer,on:addEventListeners,off:removeEventListeners,each:each,merge:v,extend:g,assign:l,inherit:inherit,bindFn:bindFn,prefixed:prefixed}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Hammer,(i=function(){return Hammer}.call(e,n,e,t))!==s&&(t.exports=i)}(window,document)},function(t,e){(function(e){t.exports=e}).call(e,{})}]); \ No newline at end of file | !function(t){function __webpack_require__(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,__webpack_require__),i.l=!0,i.exports}var e={};__webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.i=function(t){return t},__webpack_require__.d=function(t,e,n){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,"a",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p="/bundles/wallabagcore/",__webpack_require__(__webpack_require__.s=51)}([function(t,e,n){var i,r;!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function isArrayLike(t){var e=!!t&&"length"in t&&t.length,n=v.type(t);return"function"!==n&&!v.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function winnow(t,e,n){if(v.isFunction(e))return v.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return v.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(C.test(e))return v.filter(e,t,n);e=v.filter(e,t)}return v.grep(t,function(t){return d.call(e,t)>-1!==n})}function sibling(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function createOptions(t){var e={};return v.each(t.match(A)||[],function(t,n){e[n]=!0}),e}function completed(){s.removeEventListener("DOMContentLoaded",completed),n.removeEventListener("load",completed),v.ready()}function Data(){this.expando=v.expando+Data.uid++}function dataAttr(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(R,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:I.test(n)?v.parseJSON(n):n)}catch(t){}M.set(t,e,n)}else n=void 0;return n}function adjustCSS(t,e,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return v.css(t,e,"")},l=s(),u=n&&n[3]||(v.cssNumber[e]?"":"px"),c=(v.cssNumber[e]||"px"!==u&&+l)&&z.exec(v.css(t,e));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{o=o||".5",c/=o,v.style(t,e,c+u)}while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function getAll(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&v.nodeName(t,e)?v.merge([t],n):n}function setGlobalEval(t,e){for(var n=0,i=t.length;n<i;n++)N.set(t[n],"globalEval",!e||N.get(e[n],"globalEval"))}function buildFragment(t,e,n,i,r){for(var o,a,s,l,u,c,d=e.createDocumentFragment(),f=[],h=0,p=t.length;h<p;h++)if((o=t[h])||0===o)if("object"===v.type(o))v.merge(f,o.nodeType?[o]:o);else if(V.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(j.exec(o)||["",""])[1].toLowerCase(),l=B[s]||B._default,a.innerHTML=l[1]+v.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;v.merge(f,a.childNodes),a=d.firstChild,a.textContent=""}else f.push(e.createTextNode(o));for(d.textContent="",h=0;o=f[h++];)if(i&&v.inArray(o,i)>-1)r&&r.push(o);else if(u=v.contains(o.ownerDocument,o),a=getAll(d.appendChild(o),"script"),u&&setGlobalEval(a),n)for(c=0;o=a[c++];)W.test(o.type||"")&&n.push(o);return d}function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return s.activeElement}catch(t){}}function on(t,e,n,i,r,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(s in e)on(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=returnFalse;else if(!r)return t;return 1===o&&(a=r,r=function(t){return v().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=v.guid++)),t.each(function(){v.event.add(this,e,r,i,n)})}function manipulationTarget(t,e){return v.nodeName(t,"table")&&v.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function disableScript(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function restoreScript(t){var e=G.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function cloneCopyEvent(t,e){var n,i,r,o,a,s,l,u;if(1===e.nodeType){if(N.hasData(t)&&(o=N.access(t),a=N.set(e,o),u=o.events)){delete a.handle,a.events={};for(r in u)for(n=0,i=u[r].length;n<i;n++)v.event.add(e,r,u[r][n])}M.hasData(t)&&(s=M.access(t),l=v.extend({},s),M.set(e,l))}}function fixInput(t,e){var n=e.nodeName.toLowerCase();"input"===n&&H.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function domManip(t,e,n,i){e=u.apply([],e);var r,o,a,s,l,c,d=0,f=t.length,h=f-1,p=e[0],m=v.isFunction(p);if(m||f>1&&"string"==typeof p&&!g.checkClone&&Q.test(p))return t.each(function(r){var o=t.eq(r);m&&(e[0]=p.call(this,r,o.html())),domManip(o,e,n,i)});if(f&&(r=buildFragment(e,t[0].ownerDocument,!1,t,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=v.map(getAll(r,"script"),disableScript),s=a.length;d<f;d++)l=r,d!==h&&(l=v.clone(l,!0,!0),s&&v.merge(a,getAll(l,"script"))),n.call(t[d],l,d);if(s)for(c=a[a.length-1].ownerDocument,v.map(a,restoreScript),d=0;d<s;d++)l=a[d],W.test(l.type||"")&&!N.access(l,"globalEval")&&v.contains(c,l)&&(l.src?v._evalUrl&&v._evalUrl(l.src):v.globalEval(l.textContent.replace(K,"")))}return t}function remove(t,e,n){for(var i,r=e?v.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||v.cleanData(getAll(i)),i.parentNode&&(n&&v.contains(i.ownerDocument,i)&&setGlobalEval(getAll(i,"script")),i.parentNode.removeChild(i));return t}function actualDisplay(t,e){var n=v(e.createElement(t)).appendTo(e.body),i=v.css(n[0],"display");return n.detach(),i}function defaultDisplay(t){var e=s,n=J[t];return n||(n=actualDisplay(t,e),"none"!==n&&n||(Z=(Z||v("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Z[0].contentDocument,e.write(),e.close(),n=actualDisplay(t,e),Z.detach()),J[t]=n),n}function curCSS(t,e,n){var i,r,o,a,s=t.style;return n=n||nt(t),a=n?n.getPropertyValue(e)||n[e]:void 0,""!==a&&void 0!==a||v.contains(t.ownerDocument,t)||(a=v.style(t,e)),n&&!g.pixelMarginRight()&&et.test(a)&&tt.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),void 0!==a?a+"":a}function addGetHookIf(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function vendorPropName(t){if(t in ut)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=lt.length;n--;)if((t=lt[n]+e)in ut)return t}function setPositiveNumber(t,e,n){var i=z.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function augmentWidthOrHeight(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=v.css(t,n+F[o],!0,r)),i?("content"===n&&(a-=v.css(t,"padding"+F[o],!0,r)),"margin"!==n&&(a-=v.css(t,"border"+F[o]+"Width",!0,r))):(a+=v.css(t,"padding"+F[o],!0,r),"padding"!==n&&(a+=v.css(t,"border"+F[o]+"Width",!0,r)));return a}function getWidthOrHeight(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=nt(t),a="border-box"===v.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(r=curCSS(t,e,o),(r<0||null==r)&&(r=t.style[e]),et.test(r))return r;i=a&&(g.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+augmentWidthOrHeight(t,e,n||(a?"border":"content"),i,o)+"px"}function showHide(t,e){for(var n,i,r,o=[],a=0,s=t.length;a<s;a++)i=t[a],i.style&&(o[a]=N.get(i,"olddisplay"),n=i.style.display,e?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&q(i)&&(o[a]=N.access(i,"olddisplay",defaultDisplay(i.nodeName)))):(r=q(i),"none"===n&&r||N.set(i,"olddisplay",r?n:v.css(i,"display"))));for(a=0;a<s;a++)i=t[a],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[a]||"":"none"));return t}function Tween(t,e,n,i,r){return new Tween.prototype.init(t,e,n,i,r)}function createFxNow(){return n.setTimeout(function(){ct=void 0}),ct=v.now()}function genFx(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)n=F[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function createTween(t,e,n){for(var i,r=(Animation.tweeners[e]||[]).concat(Animation.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function defaultPrefilter(t,e,n){var i,r,o,a,s,l,u,c=this,d={},f=t.style,h=t.nodeType&&q(t),p=N.get(t,"fxshow");n.queue||(s=v._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,v.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=v.css(t,"display"),"inline"===("none"===u?N.get(t,"olddisplay")||defaultDisplay(t.nodeName):u)&&"none"===v.css(t,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],ft.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!p||void 0===p[i])continue;h=!0}d[i]=p&&p[i]||v.style(t,i)}else u=void 0;if(v.isEmptyObject(d))"inline"===("none"===u?defaultDisplay(t.nodeName):u)&&(f.display=u);else{p?"hidden"in p&&(h=p.hidden):p=N.access(t,"fxshow",{}),o&&(p.hidden=!h),h?v(t).show():c.done(function(){v(t).hide()}),c.done(function(){var e;N.remove(t,"fxshow");for(e in d)v.style(t,e,d[e])});for(i in d)a=createTween(h?p[i]:0,i,c),i in p||(p[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function propFilter(t,e){var n,i,r,o,a;for(n in t)if(i=v.camelCase(n),r=e[i],o=t[n],v.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=v.cssHooks[i])&&"expand"in a){o=a.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function Animation(t,e,n){var i,r,o=0,a=Animation.prefilters.length,s=v.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=ct||createFxNow(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,o=1-i,a=0,l=u.tweens.length;a<l;a++)u.tweens[a].run(o);return s.notifyWith(t,[u,o,n]),o<1&&l?n:(s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:v.extend({},e),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:e,originalOptions:n,startTime:ct||createFxNow(),duration:n.duration,tweens:[],createTween:function(e,n){var i=v.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(propFilter(c,u.opts.specialEasing);o<a;o++)if(i=Animation.prefilters[o].call(u,t,c,u.opts))return v.isFunction(i.stop)&&(v._queueHooks(u.elem,u.opts.queue).stop=v.proxy(i.stop,i)),i;return v.map(c,createTween,u),v.isFunction(u.opts.start)&&u.opts.start.call(t,u),v.fx.timer(v.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function getClass(t){return t.getAttribute&&t.getAttribute("class")||""}function addToPrefiltersOrTransports(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(A)||[];if(v.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function inspectPrefiltersOrTransports(t,e,n,i){function inspect(a){var s;return r[a]=!0,v.each(t[a]||[],function(t,a){var l=a(e,n,i);return"string"!=typeof l||o||r[l]?o?!(s=l):void 0:(e.dataTypes.unshift(l),inspect(l),!1)}),s}var r={},o=t===_t;return inspect(e.dataTypes[0])||!r["*"]&&inspect("*")}function ajaxExtend(t,e){var n,i,r=v.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&v.extend(!0,t,i),t}function ajaxHandleResponses(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.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]||t.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 ajaxConvert(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if(s=r.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function buildParams(t,e,n,i){var r;if(v.isArray(e))v.each(e,function(e,r){n||Dt.test(t)?i(t,r):buildParams(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==v.type(e))i(t,e);else for(r in e)buildParams(t+"["+r+"]",e[r],n,i)}function getWindow(t){return v.isWindow(t)?t:9===t.nodeType&&t.defaultView}var a=[],s=n.document,l=a.slice,u=a.concat,c=a.push,d=a.indexOf,f={},h=f.toString,p=f.hasOwnProperty,g={},v=function(t,e){return new v.fn.init(t,e)},m=function(t,e){return e.toUpperCase()};v.fn=v.prototype={jquery:"2.2.4",constructor:v,selector:"",length:0,toArray:function(){return l.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:l.call(this)},pushStack:function(t){var e=v.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return v.each(this,t)},map:function(t){return this.pushStack(v.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},v.extend=v.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],i=t[e],a!==i&&(u&&i&&(v.isPlainObject(i)||(r=v.isArray(i)))?(r?(r=!1,o=n&&v.isArray(n)?n:[]):o=n&&v.isPlainObject(n)?n:{},a[e]=v.extend(u,o,i)):void 0!==i&&(a[e]=i));return a},v.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===v.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!v.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==v.type(t)||t.nodeType||v.isWindow(t))return!1;if(t.constructor&&!p.call(t,"constructor")&&!p.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||p.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=v.trim(t))&&(1===t.indexOf("use strict")?(e=s.createElement("script"),e.text=t,s.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,m)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(isArrayLike(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(isArrayLike(Object(t))?v.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:d.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(isArrayLike(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return u.apply([],a)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v.isFunction(t))return i=l.call(arguments,2),r=function(){return t.apply(e||this,i.concat(l.call(arguments)))},r.guid=t.guid=t.guid||v.guid++,r},now:Date.now,support:g}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=a[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){f["[object "+e+"]"]=e.toLowerCase()});var y=function(t){function Sizzle(t,e,i,r){var o,s,u,c,d,p,m,y,T=e&&e.ownerDocument,C=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==C&&9!==C&&11!==C)return i;if(!r&&((e?e.ownerDocument||e:x)!==h&&f(e),e=e||h,g)){if(11!==C&&(p=Z.exec(t)))if(o=p[1]){if(9===C){if(!(u=e.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(T&&(u=T.getElementById(o))&&b(e,u)&&u.id===o)return i.push(u),i}else{if(p[2])return M.apply(i,e.getElementsByTagName(t)),i;if((o=p[3])&&n.getElementsByClassName&&e.getElementsByClassName)return M.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!S[t+" "]&&(!v||!v.test(t))){if(1!==C)T=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(tt,"\\$&"):e.setAttribute("id",c=w),m=a(t),s=m.length,d=Y.test(c)?"#"+c:"[id='"+c+"']";s--;)m[s]=d+" "+toSelector(m[s]);y=m.join(","),T=J.test(t)&&testContext(e.parentNode)||e}if(y)try{return M.apply(i,T.querySelectorAll(y)),i}catch(t){}finally{c===w&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,i,r)}function createCache(){function cache(e,n){return t.push(e+" ")>i.cacheLength&&delete cache[t.shift()],cache[e+" "]=n}var t=[];return cache}function markFunction(t){return t[w]=!0,t}function assert(t){var e=h.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function addHandle(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function siblingCheck(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||A)-(~t.sourceIndex||A);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function createPositionalPseudo(t){return markFunction(function(e){return e=+e,markFunction(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function testContext(t){return t&&void 0!==t.getElementsByTagName&&t}function setFilters(){}function toSelector(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function addCombinator(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=C++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,a){var s,l,u,c=[T,o];if(a){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,a))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(u=e[w]||(e[w]={}),l=u[e.uniqueID]||(u[e.uniqueID]={}),(s=l[i])&&s[0]===T&&s[1]===o)return c[2]=s[2];if(l[i]=c,c[2]=t(e,n,a))return!0}}}function elementMatcher(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function multipleContexts(t,e,n){for(var i=0,r=e.length;i<r;i++)Sizzle(t,e[i],n);return n}function condense(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function setMatcher(t,e,n,i,r,o){return i&&!i[w]&&(i=setMatcher(i)),r&&!r[w]&&(r=setMatcher(r,o)),markFunction(function(o,a,s,l){var u,c,d,f=[],h=[],p=a.length,g=o||multipleContexts(e||"*",s.nodeType?[s]:s,[]),v=!t||!o&&e?g:condense(g,f,t,s,l),m=n?r||(o?t:p||i)?[]:a:v;if(n&&n(v,m,s,l),i)for(u=condense(m,h),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(m[h[c]]=!(v[h[c]]=d));if(o){if(r||t){if(r){for(u=[],c=m.length;c--;)(d=m[c])&&u.push(v[c]=d);r(null,m=[],u,l)}for(c=m.length;c--;)(d=m[c])&&(u=r?R(o,d):f[c])>-1&&(o[u]=!(a[u]=d))}}else m=condense(m===a?m.splice(p,m.length):m),r?r(null,a,m,l):M.apply(a,m)})}function matcherFromTokens(t){for(var e,n,r,o=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,c=addCombinator(function(t){return t===e},s,!0),d=addCombinator(function(t){return R(e,t)>-1},s,!0),f=[function(t,n,i){var r=!a&&(i||n!==u)||((e=n).nodeType?c(t,n,i):d(t,n,i));return e=null,r}];l<o;l++)if(n=i.relative[t[l].type])f=[addCombinator(elementMatcher(f),n)];else{if(n=i.filter[t[l].type].apply(null,t[l].matches),n[w]){for(r=++l;r<o&&!i.relative[t[r].type];r++);return setMatcher(l>1&&elementMatcher(f),l>1&&toSelector(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),n,l<r&&matcherFromTokens(t.slice(l,r)),r<o&&matcherFromTokens(t=t.slice(r)),r<o&&toSelector(t))}f.push(n)}return elementMatcher(f)}function matcherFromGroupMatchers(t,e){var n=e.length>0,r=t.length>0,o=function(o,a,s,l,c){var d,p,v,m=0,y="0",b=o&&[],w=[],x=u,C=o||r&&i.find.TAG("*",c),k=T+=null==x?1:Math.random()||.1,E=C.length;for(c&&(u=a===h||a||c);y!==E&&null!=(d=C[y]);y++){if(r&&d){for(p=0,a||d.ownerDocument===h||(f(d),s=!g);v=t[p++];)if(v(d,a||h,s)){l.push(d);break}c&&(T=k)}n&&((d=!v&&d)&&m--,o&&b.push(d))}if(m+=y,n&&y!==m){for(p=0;v=e[p++];)v(b,w,a,s);if(o){if(m>0)for(;y--;)b[y]||w[y]||(w[y]=O.call(l));w=condense(w)}M.apply(l,w),c&&!o&&w.length>0&&m+e.length>1&&Sizzle.uniqueSort(l)}return c&&(T=k,u=x),b};return n?markFunction(o):o}var e,n,i,r,o,a,s,l,u,c,d,f,h,p,g,v,m,y,b,w="sizzle"+1*new Date,x=t.document,T=0,C=0,k=createCache(),E=createCache(),S=createCache(),_=function(t,e){return t===e&&(d=!0),0},A=1<<31,P={}.hasOwnProperty,D=[],O=D.pop,N=D.push,M=D.push,I=D.slice,R=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",q="\\["+z+"*("+F+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+z+"*\\]",H=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",j=new RegExp(z+"+","g"),W=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g"),B=new RegExp("^"+z+"*,"+z+"*"),V=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),X=new RegExp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),$=new RegExp(H),Y=new RegExp("^"+F+"$"),U={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,tt=/'|\\/g,et=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),nt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},it=function(){f()};try{M.apply(D=I.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(t){M={apply:D.length?function(t,e){N.apply(t,I.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}n=Sizzle.support={},o=Sizzle.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},f=Sizzle.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:x;return a!==h&&9===a.nodeType&&a.documentElement?(h=a,p=h.documentElement,g=!o(h),(r=h.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",it,!1):r.attachEvent&&r.attachEvent("onunload",it)),n.attributes=assert(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=assert(function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(h.getElementsByClassName),n.getById=assert(function(t){return p.appendChild(t).id=w,!h.getElementsByName||!h.getElementsByName(w).length}),n.getById?(i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}},i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}}):(delete i.find.ID,i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],v=[],(n.qsa=K.test(h.querySelectorAll))&&(assert(function(t){p.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+z+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+z+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+w+"-]").length||v.push("~="),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||v.push(".#.+[+~]")}),assert(function(t){var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+z+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=K.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&assert(function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),m.push("!=",H)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=K.test(p.compareDocumentPosition),b=e||K.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},_=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===h||t.ownerDocument===x&&b(x,t)?-1:e===h||e.ownerDocument===x&&b(x,e)?1:c?R(c,t)-R(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t===h?-1:e===h?1:r?-1:o?1:c?R(c,t)-R(c,e):0;if(r===o)return siblingCheck(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?siblingCheck(a[i],s[i]):a[i]===x?-1:s[i]===x?1:0},h):h},Sizzle.matches=function(t,e){return Sizzle(t,null,null,e)},Sizzle.matchesSelector=function(t,e){if((t.ownerDocument||t)!==h&&f(t),e=e.replace(X,"='$1']"),n.matchesSelector&&g&&!S[e+" "]&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return Sizzle(e,h,null,[t]).length>0},Sizzle.contains=function(t,e){return(t.ownerDocument||t)!==h&&f(t),b(t,e)},Sizzle.attr=function(t,e){(t.ownerDocument||t)!==h&&f(t);var r=i.attrHandle[e.toLowerCase()],o=r&&P.call(i.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},Sizzle.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},Sizzle.uniqueSort=function(t){var e,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(_),d){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return c=null,t},r=Sizzle.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},i=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Sizzle.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Sizzle.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return U.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&$.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=k[t+" "];return e||(e=new RegExp("(^|"+z+")"+t+"("+z+"|$)"))&&k(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=Sizzle.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(j," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,f,h,p,g=o!==a?"nextSibling":"previousSibling",v=e.parentNode,m=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(v){if(o){for(;g;){for(f=e;f=f[g];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&y){for(f=v,d=f[w]||(f[w]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[t]||[],h=u[0]===T&&u[1],b=h&&u[2],f=h&&v.childNodes[h];f=++h&&f&&f[g]||(b=h=0)||p.pop();)if(1===f.nodeType&&++b&&f===e){c[t]=[T,h,b];break}}else if(y&&(f=e,d=f[w]||(f[w]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[t]||[],h=u[0]===T&&u[1],b=h),!1===b)for(;(f=++h&&f&&f[g]||(b=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++b||(y&&(d=f[w]||(f[w]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),c[t]=[T,b]),f!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||Sizzle.error("unsupported pseudo: "+t);return r[w]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?markFunction(function(t,n){for(var i,o=r(t,e),a=o.length;a--;)i=R(t,o[a]),t[i]=!(n[i]=o[a])}):function(t){return r(t,0,n)}):r}},pseudos:{not:markFunction(function(t){var e=[],n=[],i=s(t.replace(W,"$1"));return i[w]?markFunction(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:markFunction(function(t){return function(e){return Sizzle(t,e).length>0}}),contains:markFunction(function(t){return t=t.replace(et,nt),function(e){return(e.textContent||e.innerText||r(e)).indexOf(t)>-1}}),lang:markFunction(function(t){return Y.test(t||"")||Sizzle.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(t,e){return[e-1]}),eq:createPositionalPseudo(function(t,e,n){return[n<0?n+e:n]}),even:createPositionalPseudo(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:createPositionalPseudo(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:createPositionalPseudo(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:createPositionalPseudo(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},i.pseudos.nth=i.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(e);return setFilters.prototype=i.filters=i.pseudos,i.setFilters=new setFilters,a=Sizzle.tokenize=function(t,e){var n,r,o,a,s,l,u,c=E[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=i.preFilter;s;){n&&!(r=B.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=V.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?Sizzle.error(t):E(t,l).slice(0)},s=Sizzle.compile=function(t,e){var n,i=[],r=[],o=S[t+" "];if(!o){for(e||(e=a(t)),n=e.length;n--;)o=matcherFromTokens(e[n]),o[w]?i.push(o):r.push(o);o=S(t,matcherFromGroupMatchers(r,i)),o.selector=t}return o},l=Sizzle.select=function(t,e,r,o){var l,u,c,d,f,h="function"==typeof t&&t,p=!o&&a(t=h.selector||t);if(r=r||[],1===p.length){if(u=p[0]=p[0].slice(0),u.length>2&&"ID"===(c=u[0]).type&&n.getById&&9===e.nodeType&&g&&i.relative[u[1].type]){if(!(e=(i.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return r;h&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(l=U.needsContext.test(t)?0:u.length;l--&&(c=u[l],!i.relative[d=c.type]);)if((f=i.find[d])&&(o=f(c.matches[0].replace(et,nt),J.test(u[0].type)&&testContext(e.parentNode)||e))){if(u.splice(l,1),!(t=o.length&&toSelector(u)))return M.apply(r,o),r;break}}return(h||s(t,p))(o,e,!g,r,!e||J.test(t)&&testContext(e.parentNode)||e),r},n.sortStable=w.split("").sort(_).join("")===w,n.detectDuplicates=!!d,f(),n.sortDetached=assert(function(t){return 1&t.compareDocumentPosition(h.createElement("div"))}),assert(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||addHandle("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&assert(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||addHandle("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),assert(function(t){return null==t.getAttribute("disabled")})||addHandle(L,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),Sizzle}(n);v.find=y,v.expr=y.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=y.uniqueSort,v.text=y.getText,v.isXMLDoc=y.isXML,v.contains=y.contains;var b=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&v(t).is(n))break;i.push(t)}return i},w=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},x=v.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;v.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?v.find.matchesSelector(i,t)?[i]:[]:v.find.matches(t,v.grep(e,function(t){return 1===t.nodeType}))},v.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(v(t).filter(function(){for(e=0;e<n;e++)if(v.contains(r[e],this))return!0}));for(e=0;e<n;e++)v.find(t,r[e],i);return i=this.pushStack(n>1?v.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(winnow(this,t||[],!1))},not:function(t){return this.pushStack(winnow(this,t||[],!0))},is:function(t){return!!winnow(this,"string"==typeof t&&x.test(t)?v(t):t||[],!1).length}});var k,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(v.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||k,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:E.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof v?e[0]:e,v.merge(this,v.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:s,!0)),T.test(i[1])&&v.isPlainObject(e))for(i in e)v.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=s.getElementById(i[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=s,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):v.isFunction(t)?void 0!==n.ready?n.ready(t):t(v):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),v.makeArray(t,this))}).prototype=v.fn,k=v(s);var S=/^(?:parents|prev(?:Until|All))/,_={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({has:function(t){var e=v(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(v.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],a=x.test(t)||"string"!=typeof t?v(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?v.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?d.call(v(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),v.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return b(t,"parentNode")},parentsUntil:function(t,e,n){return b(t,"parentNode",n)},next:function(t){return sibling(t,"nextSibling")},prev:function(t){return sibling(t,"previousSibling")},nextAll:function(t){return b(t,"nextSibling")},prevAll:function(t){return b(t,"previousSibling")},nextUntil:function(t,e,n){return b(t,"nextSibling",n)},prevUntil:function(t,e,n){return b(t,"previousSibling",n)},siblings:function(t){return w((t.parentNode||{}).firstChild,t)},children:function(t){return w(t.firstChild)},contents:function(t){return t.contentDocument||v.merge([],t.childNodes)}},function(t,e){v.fn[t]=function(n,i){var r=v.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=v.filter(i,r)),this.length>1&&(_[t]||v.uniqueSort(r),S.test(t)&&r.reverse()),this.pushStack(r)}});var A=/\S+/g;v.Callbacks=function(t){t="string"==typeof t?createOptions(t):v.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function add(e){v.each(e,function(e,n){v.isFunction(n)?t.unique&&u.has(n)||o.push(n):n&&n.length&&"string"!==v.type(n)&&add(n)})}(arguments),n&&!e&&l()),this},remove:function(){return v.each(arguments,function(t,e){for(var n;(n=v.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?v.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},v.extend({Deferred:function(t){var e=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return v.Deferred(function(n){v.each(e,function(e,o){var a=v.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&v.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?v.extend(t,i):i}},r={};return i.pipe=i.then,v.each(e,function(t,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=l.call(arguments),a=o.length,s=1!==a||t&&v.isFunction(t.promise)?a:0,u=1===s?t:v.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?l.call(arguments):r,i===e?u.notifyWith(n,i):--s||u.resolveWith(n,i)}};if(a>1)for(e=new Array(a),n=new Array(a),i=new Array(a);r<a;r++)o[r]&&v.isFunction(o[r].promise)?o[r].promise().progress(c(r,n,e)).done(c(r,i,o)).fail(u.reject):--s;return s||u.resolveWith(i,o),u.promise()}});var P;v.fn.ready=function(t){return v.ready.promise().done(t),this},v.extend({isReady:!1,readyWait:1,holdReady:function(t){t?v.readyWait++:v.ready(!0)},ready:function(t){(!0===t?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==t&&--v.readyWait>0||(P.resolveWith(s,[v]),v.fn.triggerHandler&&(v(s).triggerHandler("ready"),v(s).off("ready"))))}}),v.ready.promise=function(t){return P||(P=v.Deferred(),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(v.ready):(s.addEventListener("DOMContentLoaded",completed),n.addEventListener("load",completed))),P.promise(t)},v.ready.promise();var D=function(t,e,n,i,r,o,a){var s=0,l=t.length,u=null==n;if("object"===v.type(n)){r=!0;for(s in n)D(t,e,s,n[s],!0,o,a)}else if(void 0!==i&&(r=!0,v.isFunction(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(v(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:u?e.call(t):l?e(t[0],n):o},O=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};Data.uid=1,Data.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!O(t))return{};var e=t[this.expando];return e||(e={},O(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[e]=n;else for(i in e)r[i]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?(i=this.get(t,e),void 0!==i?i:this.get(t,v.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{v.isArray(e)?i=e.concat(e.map(v.camelCase)):(r=v.camelCase(e),e in o?i=[e,r]:(i=r,i=i in o?[i]:i.match(A)||[])),n=i.length;for(;n--;)delete o[i[n]]}(void 0===e||v.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!v.isEmptyObject(e)}};var N=new Data,M=new Data,I=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/[A-Z]/g;v.extend({hasData:function(t){return M.hasData(t)||N.hasData(t)},data:function(t,e,n){return M.access(t,e,n)},removeData:function(t,e){M.remove(t,e)},_data:function(t,e,n){return N.access(t,e,n)},_removeData:function(t,e){N.remove(t,e)}}),v.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=M.get(o),1===o.nodeType&&!N.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=v.camelCase(i.slice(5)),dataAttr(o,i,r[i])));N.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){M.set(this,t)}):D(this,function(e){var n,i;if(o&&void 0===e){if(void 0!==(n=M.get(o,t)||M.get(o,t.replace(R,"-$&").toLowerCase())))return n;if(i=v.camelCase(t),void 0!==(n=M.get(o,i)))return n;if(void 0!==(n=dataAttr(o,i,void 0)))return n}else i=v.camelCase(t),this.each(function(){var n=M.get(this,i);M.set(this,i,e),t.indexOf("-")>-1&&void 0!==n&&M.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){M.remove(this,t)})}}),v.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=N.get(t,e),n&&(!i||v.isArray(n)?i=N.access(t,e,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=v.queue(t,e),i=n.length,r=n.shift(),o=v._queueHooks(t,e),a=function(){v.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return N.get(t,n)||N.access(t,n,{empty:v.Callbacks("once memory").add(function(){N.remove(t,[e+"queue",n])})})}}),v.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?v.queue(this[0],t):void 0===e?this:this.each(function(){var n=v.queue(this,t,e);v._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&v.dequeue(this,t)})},dequeue:function(t){return this.each(function(){v.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=v.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=N.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var L=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,z=new RegExp("^(?:([+-])=|)("+L+")([a-z%]*)$","i"),F=["Top","Right","Bottom","Left"],q=function(t,e){return t=e||t,"none"===v.css(t,"display")||!v.contains(t.ownerDocument,t)},H=/^(?:checkbox|radio)$/i,j=/<([\w:-]+)/,W=/^$|\/(?:java|ecma)script/i,B={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};B.optgroup=B.option,B.tbody=B.tfoot=B.colgroup=B.caption=B.thead,B.th=B.td;var V=/<|&#?\w+;/;!function(){var t=s.createDocumentFragment(),e=t.appendChild(s.createElement("div")),n=s.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var X=/^key/,$=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Y=/^([^.]*)(?:\.(.+)|)/;v.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,d,f,h,p,g,m=N.get(t);if(m)for(n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=v.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==v&&v.event.triggered!==e.type?v.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(A)||[""],u=e.length;u--;)s=Y.exec(e[u])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h&&(d=v.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=v.event.special[h]||{},c=v.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&v.expr.match.needsContext.test(r),namespace:p.join(".")},o),(f=l[h])||(f=l[h]=[],f.delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(h,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),v.event.global[h]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,d,f,h,p,g,m=N.hasData(t)&&N.get(t);if(m&&(l=m.events)){for(e=(e||"").match(A)||[""],u=e.length;u--;)if(s=Y.exec(e[u])||[],h=g=s[1],p=(s[2]||"").split(".").sort(),h){for(d=v.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,f=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(t,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,p,m.handle)||v.removeEvent(t,h,m.handle),delete l[h])}else for(h in l)v.event.remove(t,h+e[u],n,i,!0);v.isEmptyObject(l)&&N.remove(t,"handle events")}},dispatch:function(t){t=v.event.fix(t);var e,n,i,r,o,a=[],s=l.call(arguments),u=(N.get(this,"events")||{})[t.type]||[],c=v.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=v.event.handlers.call(this,t,u),e=0;(r=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(i=((v.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],n=0;n<s;n++)o=e[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?v(r,this).index(l)>-1:v.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||s,i=n.documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[v.expando])return t;var e,n,i,r=t.type,o=t,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=$.test(r)?this.mouseHooks:X.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,t=new v.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=s),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v.nodeName(this,"input"))return this.click(),!1},_default:function(t){return v.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},v.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},v.Event=function(t,e){if(!(this instanceof v.Event))return new v.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?returnTrue:returnFalse):this.type=t,e&&v.extend(this,e),this.timeStamp=t&&t.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=returnTrue,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=returnTrue,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){v.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||v.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),v.fn.extend({on:function(t,e,n,i){return on(this,t,e,n,i)},one:function(t,e,n,i){return on(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,v(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=returnFalse),this.each(function(){v.event.remove(this,t,n,e)})}});var U=/<script|<style|<link/i,Q=/checked\s*(?:[^=]|=\s*.checked.)/i,G=/^true\/(.*)/,K=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;v.extend({htmlPrefilter:function(t){return t.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,"<$1></$2>")},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=v.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||v.isXMLDoc(t)))for(a=getAll(s),o=getAll(t),i=0,r=o.length;i<r;i++)fixInput(o[i],a[i]);if(e)if(n)for(o=o||getAll(t),a=a||getAll(s),i=0,r=o.length;i<r;i++)cloneCopyEvent(o[i],a[i]);else cloneCopyEvent(t,s);return a=getAll(s,"script"),a.length>0&&setGlobalEval(a,!l&&getAll(t,"script")),s},cleanData:function(t){for(var e,n,i,r=v.event.special,o=0;void 0!==(n=t[o]);o++)if(O(n)){if(e=n[N.expando]){if(e.events)for(i in e.events)r[i]?v.event.remove(n,i):v.removeEvent(n,i,e.handle);n[N.expando]=void 0}n[M.expando]&&(n[M.expando]=void 0)}}}),v.fn.extend({domManip:domManip,detach:function(t){return remove(this,t,!0)},remove:function(t){return remove(this,t)},text:function(t){return D(this,function(t){return void 0===t?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return domManip(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){manipulationTarget(this,t).appendChild(t)}})},prepend:function(){return domManip(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=manipulationTarget(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return domManip(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return domManip(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(v.cleanData(getAll(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return v.clone(this,t,e)})},html:function(t){return D(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!U.test(t)&&!B[(j.exec(t)||["",""])[1].toLowerCase()]){t=v.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(v.cleanData(getAll(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return domManip(this,arguments,function(e){var n=this.parentNode;v.inArray(this,t)<0&&(v.cleanData(getAll(this)),n&&n.replaceChild(e,this))},t)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){v.fn[t]=function(t){for(var n,i=[],r=v(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),v(r[a])[e](n),c.apply(i,n.get());return this.pushStack(i)}});var Z,J={HTML:"block",BODY:"block"},tt=/^margin/,et=new RegExp("^("+L+")(?!px)[a-z%]+$","i"),nt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},it=function(t,e,n,i){var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=a[o];return r},rt=s.documentElement;!function(){function computeStyleTests(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",rt.appendChild(o);var s=n.getComputedStyle(a);t="1%"!==s.top,r="2px"===s.marginLeft,e="4px"===s.width,a.style.marginRight="50%",i="4px"===s.marginRight,rt.removeChild(o)}var t,e,i,r,o=s.createElement("div"),a=s.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),v.extend(g,{pixelPosition:function(){return computeStyleTests(),t},boxSizingReliable:function(){return null==e&&computeStyleTests(),e},pixelMarginRight:function(){return null==e&&computeStyleTests(),i},reliableMarginLeft:function(){return null==e&&computeStyleTests(),r},reliableMarginRight:function(){var t,e=a.appendChild(s.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",rt.appendChild(o),t=!parseFloat(n.getComputedStyle(e).marginRight),rt.removeChild(o),a.removeChild(e),t}}))}();var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"},lt=["Webkit","O","Moz","ms"],ut=s.createElement("div").style;v.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=curCSS(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=v.camelCase(e),l=t.style;if(e=v.cssProps[s]||(v.cssProps[s]=vendorPropName(s)||s),a=v.cssHooks[e]||v.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:l[e];o=typeof n,"string"===o&&(r=z.exec(n))&&r[1]&&(n=adjustCSS(t,e,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(v.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l[e]=n))}},css:function(t,e,n,i){var r,o,a,s=v.camelCase(e);return e=v.cssProps[s]||(v.cssProps[s]=vendorPropName(s)||s),a=v.cssHooks[e]||v.cssHooks[s],a&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=curCSS(t,e,i)),"normal"===r&&e in st&&(r=st[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),v.each(["height","width"],function(t,e){v.cssHooks[e]={get:function(t,n,i){if(n)return ot.test(v.css(t,"display"))&&0===t.offsetWidth?it(t,at,function(){return getWidthOrHeight(t,e,i)}):getWidthOrHeight(t,e,i)},set:function(t,n,i){var r,o=i&&nt(t),a=i&&augmentWidthOrHeight(t,e,i,"border-box"===v.css(t,"boxSizing",!1,o),o);return a&&(r=z.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=v.css(t,e)),setPositiveNumber(t,n,a)}}}),v.cssHooks.marginLeft=addGetHookIf(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(curCSS(t,"marginLeft"))||t.getBoundingClientRect().left-it(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),v.cssHooks.marginRight=addGetHookIf(g.reliableMarginRight,function(t,e){if(e)return it(t,{display:"inline-block"},curCSS,[t,"marginRight"])}),v.each({margin:"",padding:"",border:"Width"},function(t,e){v.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+F[i]+e]=o[i]||o[i-2]||o[0];return r}},tt.test(t)||(v.cssHooks[t+e].set=setPositiveNumber)}),v.fn.extend({css:function(t,e){return D(this,function(t,e,n){var i,r,o={},a=0;if(v.isArray(e)){for(i=nt(t),r=e.length;a<r;a++)o[e[a]]=v.css(t,e[a],!1,i);return o}return void 0!==n?v.style(t,e,n):v.css(t,e)},t,e,arguments.length>1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){q(this)?v(this).show():v(this).hide()})}}),v.Tween=Tween,Tween.prototype={constructor:Tween,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||v.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(v.cssNumber[n]?"":"px")},cur:function(){var t=Tween.propHooks[this.prop];return t&&t.get?t.get(this):Tween.propHooks._default.get(this)},run:function(t){var e,n=Tween.propHooks[this.prop];return this.options.duration?this.pos=e=v.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=v.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){v.fx.step[t.prop]?v.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[v.cssProps[t.prop]]&&!v.cssHooks[t.prop]?t.elem[t.prop]=t.now:v.style(t.elem,t.prop,t.now+t.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},v.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},v.fx=Tween.prototype.init,v.fx.step={};var ct,dt,ft=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;v.Animation=v.extend(Animation,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return adjustCSS(n.elem,t,z.exec(e),n),n}]},tweener:function(t,e){v.isFunction(t)?(e=t,t=["*"]):t=t.match(A);for(var n,i=0,r=t.length;i<r;i++)n=t[i],Animation.tweeners[n]=Animation.tweeners[n]||[],Animation.tweeners[n].unshift(e)},prefilters:[defaultPrefilter],prefilter:function(t,e){e?Animation.prefilters.unshift(t):Animation.prefilters.push(t)}}),v.speed=function(t,e,n){var i=t&&"object"==typeof t?v.extend({},t):{complete:n||!n&&e||v.isFunction(t)&&t,duration:t,easing:n&&e||e&&!v.isFunction(e)&&e};return i.duration=v.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in v.fx.speeds?v.fx.speeds[i.duration]:v.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v.isFunction(i.old)&&i.old.call(this),i.queue&&v.dequeue(this,i.queue)},i},v.fn.extend({fadeTo:function(t,e,n,i){return this.filter(q).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=v.isEmptyObject(t),o=v.speed(e,n,i),a=function(){var e=Animation(this,v.extend({},t),o);(r||N.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=v.timers,a=N.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ht.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||v.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=N.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=v.timers,a=i?i.length:0;for(n.finish=!0,v.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(t,e){var n=v.fn[e];v.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(genFx(e,!0),t,i,r)}}),v.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){v.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),v.timers=[],v.fx.tick=function(){var t,e=0,n=v.timers;for(ct=v.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||v.fx.stop(),ct=void 0},v.fx.timer=function(t){v.timers.push(t),t()?v.fx.start():v.timers.pop()},v.fx.interval=13,v.fx.start=function(){dt||(dt=n.setInterval(v.fx.tick,v.fx.interval))},v.fx.stop=function(){n.clearInterval(dt),dt=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,e){return t=v.fx?v.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}})},function(){var t=s.createElement("input"),e=s.createElement("select"),n=e.appendChild(s.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=n.selected,e.disabled=!0,g.optDisabled=!n.disabled,t=s.createElement("input"),t.value="t",t.type="radio",g.radioValue="t"===t.value}();var pt,gt=v.expr.attrHandle;v.fn.extend({attr:function(t,e){return D(this,v.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){v.removeAttr(this,t)})}}),v.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?v.prop(t,e,n):(1===o&&v.isXMLDoc(t)||(e=e.toLowerCase(),r=v.attrHooks[e]||(v.expr.match.bool.test(e)?pt:void 0)),void 0!==n?null===n?void v.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=v.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&v.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(A);if(o&&1===t.nodeType)for(;n=o[r++];)i=v.propFix[n]||n,v.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),pt={set:function(t,e,n){return!1===e?v.removeAttr(t,n):t.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(t,e){var n=gt[e]||v.find.attr;gt[e]=function(t,e,i){var r,o;return i||(o=gt[e],gt[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,gt[e]=o),r}});var vt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;v.fn.extend({prop:function(t,e){return D(this,v.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[v.propFix[t]||t]})}}),v.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&v.isXMLDoc(t)||(e=v.propFix[e]||e,r=v.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=v.find.attr(t,"tabindex");return e?parseInt(e,10):vt.test(t.nodeName)||mt.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(v.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this});v.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(v.isFunction(t))return this.each(function(e){v(this).addClass(t.call(this,e,getClass(this)))});if("string"==typeof t&&t)for(e=t.match(A)||[];n=this[l++];)if(r=getClass(n),i=1===n.nodeType&&(" "+r+" ").replace(/[\t\r\n\f]/g," ")){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=v.trim(i),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(v.isFunction(t))return this.each(function(e){v(this).removeClass(t.call(this,e,getClass(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(A)||[];n=this[l++];)if(r=getClass(n),i=1===n.nodeType&&(" "+r+" ").replace(/[\t\r\n\f]/g," ")){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=v.trim(i),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):v.isFunction(t)?this.each(function(n){v(this).toggleClass(t.call(this,n,getClass(this),e),e)}):this.each(function(){var e,i,r,o;if("string"===n)for(i=0,r=v(this),o=t.match(A)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||(e=getClass(this),e&&N.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":N.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+getClass(n)+" ").replace(/[\t\r\n\f]/g," ").indexOf(e)>-1)return!0;return!1}});v.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=v.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,v(this).val()):t,null==r?r="":"number"==typeof r?r+="":v.isArray(r)&&(r=v.map(r,function(t){return null==t?"":t+""})),(e=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return(e=v.valHooks[r.type]||v.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(/\r/g,""):null==n?"":n)}}}),v.extend({valHooks:{option:{get:function(t){var e=v.find.attr(t,"value");return null!=e?e:v.trim(v.text(t)).replace(/[\x20\t\r\n\f]+/g," ")}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l<s;l++)if(n=i[l],(n.selected||l===r)&&(g.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){if(e=v(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=v.makeArray(e),a=r.length;a--;)i=r[a],(i.selected=v.inArray(v.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(t,e){if(v.isArray(e))return t.checked=v.inArray(v(t).val(),e)>-1}},g.checkOn||(v.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var yt=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,e,i,r){var o,a,l,u,c,d,f,h=[i||s],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(a=l=i=i||s,3!==i.nodeType&&8!==i.nodeType&&!yt.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,t=t[v.expando]?t:new v.Event(g,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:v.makeArray(e,[t]),f=v.event.special[g]||{},r||!f.trigger||!1!==f.trigger.apply(i,e))){if(!r&&!f.noBubble&&!v.isWindow(i)){for(u=f.delegateType||g,yt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),l=a;l===(i.ownerDocument||s)&&h.push(l.defaultView||l.parentWindow||n)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||g,d=(N.get(a,"events")||{})[t.type]&&N.get(a,"handle"),d&&d.apply(a,e),(d=c&&a[c])&&d.apply&&O(a)&&(t.result=d.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),e)||!O(i)||c&&v.isFunction(i[g])&&!v.isWindow(i)&&(l=i[c],l&&(i[c]=null),v.event.triggered=g,i[g](),v.event.triggered=void 0,l&&(i[c]=l)),t.result}},simulate:function(t,e,n){var i=v.extend(new v.Event,n,{type:t,isSimulated:!0});v.event.trigger(i,null,e)}}),v.fn.extend({trigger:function(t,e){return this.each(function(){v.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return v.event.trigger(t,e,n,!0)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){v.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),v.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),g.focusin="onfocusin"in n,g.focusin||v.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){v.event.simulate(e,t.target,v.event.fix(t))};v.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=N.access(i,e);r||i.addEventListener(t,n,!0),N.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=N.access(i,e)-1;r?N.access(i,e,r):(i.removeEventListener(t,n,!0),N.remove(i,e))}}});var bt=n.location,wt=v.now(),xt=/\?/;v.parseJSON=function(t){return JSON.parse(t+"")},v.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),e};var Tt=/([?&])_=[^&]*/,Ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,kt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Et=/^(?:GET|HEAD)$/,St={},_t={},At="*/".concat("*"),Pt=s.createElement("a");Pt.href=bt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:kt.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ajaxExtend(ajaxExtend(t,v.ajaxSettings),e):ajaxExtend(v.ajaxSettings,t)},ajaxPrefilter:addToPrefiltersOrTransports(St),ajaxTransport:addToPrefiltersOrTransports(_t),ajax:function(t,e){function done(t,e,a,s){var u,d,b,w,T,k=e;2!==x&&(x=2,l&&n.clearTimeout(l),i=void 0,o=s||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,a&&(w=ajaxHandleResponses(f,C,a)),w=ajaxConvert(f,w,C,u),u?(f.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(v.lastModified[r]=T),(T=C.getResponseHeader("etag"))&&(v.etag[r]=T)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=w.state,d=w.data,b=w.error,u=!b)):(b=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(e||k)+"",u?g.resolveWith(h,[d,k,C]):g.rejectWith(h,[C,k,b]),C.statusCode(y),y=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[C,f,u?d:b]),m.fireWith(h,[C,k]),c&&(p.trigger("ajaxComplete",[C,f]),--v.active||v.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,a,l,u,c,d,f=v.ajaxSetup({},e),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?v(h):v.event,g=v.Deferred(),m=v.Callbacks("once memory"),y=f.statusCode||{},b={},w={},x=0,T="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!a)for(a={};e=Ct.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=w[n]=w[n]||t,b[t]=e),this},overrideMimeType:function(t){return x||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)y[e]=[y[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||T;return i&&i.abort(e),done(0,e),this}};if(g.promise(C).complete=m.add,C.success=C.done,C.error=C.fail,f.url=((t||f.url||bt.href)+"").replace(/#.*$/,"").replace(/^\/\//,bt.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=v.trim(f.dataType||"*").toLowerCase().match(A)||[""],null==f.crossDomain){u=s.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Pt.protocol+"//"+Pt.host!=u.protocol+"//"+u.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=v.param(f.data,f.traditional)),inspectPrefiltersOrTransports(St,f,e,C),2===x)return C;c=v.event&&f.global,c&&0==v.active++&&v.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Et.test(f.type),r=f.url,f.hasContent||(f.data&&(r=f.url+=(xt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Tt.test(r)?r.replace(Tt,"$1_="+wt++):r+(xt.test(r)?"&":"?")+"_="+wt++)),f.ifModified&&(v.lastModified[r]&&C.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&C.setRequestHeader("If-None-Match",v.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+At+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,C,f)||2===x))return C.abort();T="abort";for(d in{success:1,error:1,complete:1})C[d](f[d]);if(i=inspectPrefiltersOrTransports(_t,f,e,C)){if(C.readyState=1,c&&p.trigger("ajaxSend",[C,f]),2===x)return C;f.async&&f.timeout>0&&(l=n.setTimeout(function(){C.abort("timeout")},f.timeout));try{x=1,i.send(b,done)}catch(t){if(!(x<2))throw t;done(-1,t)}}else done(-1,"No Transport");return C},getJSON:function(t,e,n){return v.get(t,e,n,"json")},getScript:function(t,e){return v.get(t,void 0,e,"script")}}),v.each(["get","post"],function(t,e){v[e]=function(t,n,i,r){return v.isFunction(n)&&(r=r||i,i=n,n=void 0),v.ajax(v.extend({url:t,type:e,dataType:r,data:n,success:i},v.isPlainObject(t)&&t))}}),v._evalUrl=function(t){return v.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(t){var e;return v.isFunction(t)?this.each(function(e){v(this).wrapAll(t.call(this,e))}):(this[0]&&(e=v(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return v.isFunction(t)?this.each(function(e){v(this).wrapInner(t.call(this,e))}):this.each(function(){var e=v(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=v.isFunction(t);return this.each(function(n){v(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()}}),v.expr.filters.hidden=function(t){return!v.expr.filters.visible(t)},v.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Dt=/\[\]$/,Ot=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;v.param=function(t,e){var n,i=[],r=function(t,e){e=v.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=v.ajaxSettings&&v.ajaxSettings.traditional),v.isArray(t)||t.jquery&&!v.isPlainObject(t))v.each(t,function(){r(this.name,this.value)});else for(n in t)buildParams(n,t[n],e,r);return i.join("&").replace(/%20/g,"+")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=v.prop(this,"elements");return t?v.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!v(this).is(":disabled")&&Nt.test(this.nodeName)&&!Ot.test(t)&&(this.checked||!H.test(t))}).map(function(t,e){var n=v(this).val();return null==n?null:v.isArray(n)?v.map(n,function(t){return{name:e.name,value:t.replace(/\r?\n/g,"\r\n")}}):{name:e.name,value:n.replace(/\r?\n/g,"\r\n")}}).get()}}),v.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Mt={0:200,1223:204},It=v.ajaxSettings.xhr();g.cors=!!It&&"withCredentials"in It,g.ajax=It=!!It,v.ajaxTransport(function(t){var e,i;if(g.cors||It&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=i=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Mt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),i=s.onerror=e("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&i()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return v.globalEval(t),t}}}),v.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),v.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=v("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),s.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Rt=[],Lt=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Rt.pop()||v.expando+"_"+wt++;return this[t]=!0,t}}),v.ajaxPrefilter("json jsonp",function(t,e,i){var r,o,a,s=!1!==t.jsonp&&(Lt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Lt,"$1"+r):!1!==t.jsonp&&(t.url+=(xt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||v.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){a=arguments},i.always(function(){void 0===o?v(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,Rt.push(r)),a&&v.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),v.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||s;var i=T.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=buildFragment([t],e,r),r&&r.length&&v(r).remove(),v.merge([],i.childNodes))};var zt=v.fn.load;v.fn.load=function(t,e,n){if("string"!=typeof t&&zt)return zt.apply(this,arguments);var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=v.trim(t.slice(s)),t=t.slice(0,s)),v.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&v.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?v("<div>").append(v.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){v.fn[e]=function(t){return this.on(e,t)}}),v.expr.filters.animated=function(t){return v.grep(v.timers,function(e){return t===e.elem}).length},v.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u,c=v.css(t,"position"),d=v(t),f={};"static"===c&&(t.style.position="relative"),s=d.offset(),o=v.css(t,"top"),l=v.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),v.isFunction(e)&&(e=e.call(t,n,v.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+r),"using"in e?e.using.call(t,f):d.css(f)}},v.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){v.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;if(o)return e=o.documentElement,v.contains(e,i)?(r=i.getBoundingClientRect(),n=getWindow(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===v.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),v.nodeName(t[0],"html")||(i=t.offset()),i.top+=v.css(t[0],"borderTopWidth",!0),i.left+=v.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-v.css(n,"marginTop",!0),left:e.left-i.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===v.css(t,"position");)t=t.offsetParent;return t||rt})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;v.fn[t]=function(i){return D(this,function(t,i,r){var o=getWindow(t);if(void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),v.each(["top","left"],function(t,e){v.cssHooks[e]=addGetHookIf(g.pixelPosition,function(t,n){if(n)return n=curCSS(t,e),et.test(n)?v(t).position()[e]+"px":n})}),v.each({Height:"height",Width:"width"},function(t,e){v.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){v.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===r?"margin":"border");return D(this,function(e,n,i){var r;return v.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?v.css(e,n,a):v.style(e,n,i,a)},e,o?i:void 0,o,null)}})}),v.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),v.fn.andSelf=v.fn.addBack,i=[],void 0!==(r=function(){return v}.apply(e,i))&&(t.exports=r);var Ft=n.jQuery,qt=n.$;return v.noConflict=function(t){return n.$===v&&(n.$=qt),t&&n.jQuery===v&&(n.jQuery=Ft),v},o||(n.jQuery=n.$=v),v})},function(t,e,n){"use strict";(function(t){function escapeHtml(t){return String(t).replace(/[&<>"'\/]/g,function(t){return o[t]})}function mousePosition(e){var n=t.document.body,r={top:0,left:0};return"static"!==i(n).css("position")&&(r=i(n).offset()),{top:e.pageY-r.top,left:e.pageX-r.left}}var i=n(0),r=n(17).Promise,o={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},a=function(){if("function"==typeof t.Gettext){var e=new t.Gettext({domain:"annotator"});return function(t){return e.gettext(t)}}return function(t){return t}}();e.$=i,e.Promise=r,e.gettext=a,e.escapeHtml=escapeHtml,e.mousePosition=mousePosition}).call(e,n(2))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){function Widget(t){this.element=o(this.constructor.template),this.classes=o.extend({},Widget.classes,this.constructor.classes),this.options=o.extend({},Widget.options,this.constructor.options,t),this.extensionsInstalled=!1}var i=n(16),r=n(1),o=r.$;Widget.prototype.destroy=function(){this.element.remove()},Widget.prototype.installExtensions=function(){if(this.options.extensions)for(var t=0,e=this.options.extensions.length;t<e;t++){var n=this.options.extensions[t];n(this)}},Widget.prototype._maybeInstallExtensions=function(){this.extensionsInstalled||(this.extensionsInstalled=!0,this.installExtensions())},Widget.prototype.attach=function(){this.element.appendTo(this.options.appendTo),this._maybeInstallExtensions()},Widget.prototype.show=function(){this.element.removeClass(this.classes.hide),this.checkOrientation()},Widget.prototype.hide=function(){o(this.element).addClass(this.classes.hide)},Widget.prototype.isShown=function(){return!o(this.element).hasClass(this.classes.hide)},Widget.prototype.checkOrientation=function(){this.resetOrientation();var e=o(t),n=this.element.children(":first"),i=n.offset(),r={top:e.scrollTop(),right:e.width()+e.scrollLeft()},a={top:i.top,right:i.left+n.width()};return a.top-r.top<0&&this.invertY(),a.right-r.right>0&&this.invertX(),this},Widget.prototype.resetOrientation=function(){return this.element.removeClass(this.classes.invert.x).removeClass(this.classes.invert.y),this},Widget.prototype.invertX=function(){return this.element.addClass(this.classes.invert.x),this},Widget.prototype.invertY=function(){return this.element.addClass(this.classes.invert.y),this},Widget.prototype.isInvertedY=function(){return this.element.hasClass(this.classes.invert.y)},Widget.prototype.isInvertedX=function(){return this.element.hasClass(this.classes.invert.x)},Widget.classes={hide:"annotator-hide",invert:{x:"annotator-invert-x",y:"annotator-invert-y"}},Widget.template="<div></div>",Widget.options={appendTo:"body"},Widget.extend=i,e.Widget=Widget}).call(e,n(2))},function(t,e,n){var i;!function(r,o,a){function _addEvent(t,e,n){if(t.addEventListener)return void t.addEventListener(e,n,!1);t.attachEvent("on"+e,n)}function _characterFromEvent(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return l[t.which]?l[t.which]:u[t.which]?u[t.which]:String.fromCharCode(t.which).toLowerCase()}function _modifiersMatch(t,e){return t.sort().join(",")===e.sort().join(",")}function _eventModifiers(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}function _preventDefault(t){if(t.preventDefault)return void t.preventDefault();t.returnValue=!1}function _stopPropagation(t){if(t.stopPropagation)return void t.stopPropagation();t.cancelBubble=!0}function _isModifier(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function _getReverseMap(){if(!s){s={};for(var t in l)t>95&&t<112||l.hasOwnProperty(t)&&(s[l[t]]=t)}return s}function _pickBestAction(t,e,n){return n||(n=_getReverseMap()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function _keysFromString(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus"),t.split("+"))}function _getKeyInfo(t,e){var n,i,r,o=[];for(n=_keysFromString(t),r=0;r<n.length;++r)i=n[r],d[i]&&(i=d[i]),e&&"keypress"!=e&&c[i]&&(i=c[i],o.push("shift")),_isModifier(i)&&o.push(i);return e=_pickBestAction(i,o,e),{key:i,modifiers:o,action:e}}function _belongsTo(t,e){return null!==t&&t!==o&&(t===e||_belongsTo(t.parentNode,e))}function Mousetrap(t){function _resetSequences(t){t=t||{};var e,n=!1;for(e in i)t[e]?n=!0:i[e]=0;n||(s=!1)}function _getMatches(t,n,r,o,a,s){var l,u,c=[],d=r.type;if(!e._callbacks[t])return[];for("keyup"==d&&_isModifier(t)&&(n=[t]),l=0;l<e._callbacks[t].length;++l)if(u=e._callbacks[t][l],(o||!u.seq||i[u.seq]==u.level)&&d==u.action&&("keypress"==d&&!r.metaKey&&!r.ctrlKey||_modifiersMatch(n,u.modifiers))){var f=!o&&u.combo==a,h=o&&u.seq==o&&u.level==s;(f||h)&&e._callbacks[t].splice(l,1),c.push(u)}return c}function _fireCallback(t,n,i,r){e.stopCallback(n,n.target||n.srcElement,i,r)||!1===t(n,i)&&(_preventDefault(n),_stopPropagation(n))}function _handleKeyEvent(t){"number"!=typeof t.which&&(t.which=t.keyCode);var n=_characterFromEvent(t);if(n)return"keyup"==t.type&&r===n?void(r=!1):void e.handleKey(n,_eventModifiers(t),t)}function _resetSequenceTimer(){clearTimeout(n),n=setTimeout(_resetSequences,1e3)}function _bindSequence(t,e,n,o){function _callbackAndReset(e){_fireCallback(n,e,t),"keyup"!==o&&(r=_characterFromEvent(e)),setTimeout(_resetSequences,10)}i[t]=0;for(var a=0;a<e.length;++a){var l=a+1===e.length,u=l?_callbackAndReset:function(e){return function(){s=e,++i[t],_resetSequenceTimer()}}(o||_getKeyInfo(e[a+1]).action);_bindSingle(e[a],u,o,t,a)}}function _bindSingle(t,n,i,r,o){e._directMap[t+":"+i]=n,t=t.replace(/\s+/g," ");var a,s=t.split(" ");if(s.length>1)return void _bindSequence(t,s,n,i);a=_getKeyInfo(t,i),e._callbacks[a.key]=e._callbacks[a.key]||[],_getMatches(a.key,a.modifiers,{type:a.action},r,t,o),e._callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:t})}var e=this;if(t=t||o,!(e instanceof Mousetrap))return new Mousetrap(t);e.target=t,e._callbacks={},e._directMap={};var n,i={},r=!1,a=!1,s=!1;e._handleKey=function(t,e,n){var i,r=_getMatches(t,e,n),o={},l=0,u=!1;for(i=0;i<r.length;++i)r[i].seq&&(l=Math.max(l,r[i].level));for(i=0;i<r.length;++i)if(r[i].seq){if(r[i].level!=l)continue;u=!0,o[r[i].seq]=1,_fireCallback(r[i].callback,n,r[i].combo,r[i].seq)}else u||_fireCallback(r[i].callback,n,r[i].combo);var c="keypress"==n.type&&a;n.type!=s||_isModifier(t)||c||_resetSequences(o),a=u&&"keydown"==n.type},e._bindMultiple=function(t,e,n){for(var i=0;i<t.length;++i)_bindSingle(t[i],e,n)},_addEvent(t,"keypress",_handleKeyEvent),_addEvent(t,"keydown",_handleKeyEvent),_addEvent(t,"keyup",_handleKeyEvent)}if(r){for(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"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},f=1;f<20;++f)l[111+f]="f"+f;for(f=0;f<=9;++f)l[f+96]=f.toString();Mousetrap.prototype.bind=function(t,e,n){var i=this;return t=t instanceof Array?t:[t],i._bindMultiple.call(i,t,e,n),i},Mousetrap.prototype.unbind=function(t,e){var n=this;return n.bind.call(n,t,function(){},e)},Mousetrap.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},Mousetrap.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},Mousetrap.prototype.stopCallback=function(t,e){var n=this;return!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(!_belongsTo(e,n.target)&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable))},Mousetrap.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},Mousetrap.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(l[e]=t[e]);s=null},Mousetrap.init=function(){var t=Mousetrap(o);for(var e in t)"_"!==e.charAt(0)&&(Mousetrap[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},Mousetrap.init(),r.Mousetrap=Mousetrap,void 0!==t&&t.exports&&(t.exports=Mousetrap),void 0!==(i=function(){return Mousetrap}.call(e,n,e,t))&&(t.exports=i)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(t,e,n){"use strict";var i;e.acl=function(){var t=new i;return{configure:function(e){e.registerUtility(t,"authorizationPolicy")}}},i=e.AclAuthzPolicy=function(){},i.prototype.permits=function(t,e,n){var i=this.authorizedUserId(n),r=e.permissions;if(r){var o=r[t];if(void 0===o||null===o)return!0;for(var a=0,s=o.length;a<s;a++)if(i===o[a])return!0;return!1}return!e.user||i===e.user},i.prototype.authorizedUserId=function(t){return t}},function(t,e,n){"use strict";var i;e.simple=function(){var t=new i;return{configure:function(e){e.registerUtility(t,"identityPolicy")},beforeAnnotationCreated:function(e){e.user=t.who()}}},i=function(){this.identity=null},e.SimpleIdentityPolicy=i,i.prototype.who=function(){return this.identity}},function(t,e,n){"use strict";(function(t){function banner(e,n){void 0!==n&&null!==n||(n=o);var l=r(a)[0],u=!1,c=function(){u||(u=!0,r(l).removeClass(s.show).removeClass(s[n]),setTimeout(function(){r(l).remove()},500))};return r(l).addClass(s.show).addClass(s[n]).html(i.escapeHtml(e||"")).appendTo(t.document.body),r(l).on("click",c),setTimeout(c,5e3),{close:c}}var i=n(1),r=i.$,o="info",a="<div class='annotator-notice'></div>",s={show:"annotator-notice-show",info:"annotator-notice-info",success:"annotator-notice-success",error:"annotator-notice-error"};e.banner=banner,e.defaultNotifier=banner,e.INFO=o,e.SUCCESS="success",e.ERROR="error"}).call(e,n(2))},function(t,e,n){"use strict";function StorageAdapter(t,e){this.store=t,this.runHook=e}var i=n(1),r=i.$,o=i.gettext,a=i.Promise,s=function(){var t;return t=-1,function(){return t+=1}}();e.debug=function(){function trace(t,e){var n=JSON.parse(JSON.stringify(e));console.debug("annotator.storage.debug: "+t,n)}return{create:function(t){return t.id=s(),trace("create",t),t},update:function(t){return trace("update",t),t},delete:function(t){return trace("destroy",t),t},query:function(t){return trace("query",t),{results:[],meta:{total:0}}},configure:function(t){t.registerUtility(this,"storage")}}},e.noop=function(){return{create:function(t){return void 0!==t.id&&null!==t.id||(t.id=s()),t},update:function(t){return t},delete:function(t){return t},query:function(){return{results:[]}},configure:function(t){t.registerUtility(this,"storage")}}};var l;e.http=function(t){var e=function(){};void 0!==t&&null!==t||(t={}),t.onError=t.onError||function(t,n){console.error(t,n),e(t,"error")};var n=new l(t);return{configure:function(t){t.registerUtility(n,"storage")},start:function(t){e=t.notify}}},l=e.HttpStorage=function HttpStorage(t){this.options=r.extend(!0,{},HttpStorage.options,t),this.onError=this.options.onError},l.prototype.create=function(t){return this._apiRequest("create",t)},l.prototype.update=function(t){return this._apiRequest("update",t)},l.prototype.delete=function(t){return this._apiRequest("destroy",t)},l.prototype.query=function(t){return this._apiRequest("search",t).then(function(t){var e=t.rows;return delete t.rows,{results:e,meta:t}})},l.prototype.setHeader=function(t,e){this.options.headers[t]=e},l.prototype._apiRequest=function(t,e){var n=e&&e.id,i=this._urlFor(t,n),o=this._apiRequestOptions(t,e),a=r.ajax(i,o);return a._id=n,a._action=t,a},l.prototype._apiRequestOptions=function(t,e){var n=this._methodFor(t),i=this,o={type:n,dataType:"json",error:function(){i._onError.apply(i,arguments)},headers:this.options.headers};if(!this.options.emulateHTTP||"PUT"!==n&&"DELETE"!==n||(o.headers=r.extend(o.headers,{"X-HTTP-Method-Override":n}),o.type="POST"),"search"===t)return o=r.extend(o,{data:e});var a=e&&JSON.stringify(e);return this.options.emulateJSON?(o.data={json:a},this.options.emulateHTTP&&(o.data._method=n),o):o=r.extend(o,{data:a,contentType:"application/json; charset=utf-8"})},l.prototype._urlFor=function(t,e){void 0!==e&&null!==e||(e="");var n="";return void 0!==this.options.prefix&&null!==this.options.prefix&&(n=this.options.prefix),n+=this.options.urls[t],n=n.replace(/idAnnotation/,e)},l.prototype._methodFor=function(t){return{create:"POST",update:"PUT",destroy:"DELETE",search:"GET"}[t]},l.prototype._onError=function(t){if("function"==typeof this.onError){var e;e=o(400===t.status?"The annotation store did not understand the request! (Error 400)":401===t.status?"You must be logged in to perform this operation! (Error 401)":403===t.status?"You don't have permission to perform this operation! (Error 403)":404===t.status?"Could not connect to the annotation store! (Error 404)":500===t.status?"Internal error in annotation store! (Error 500)":"Unknown error while speaking to annotation store!"),this.onError(e,t)}},l.options={emulateHTTP:!1,emulateJSON:!1,headers:{},onError:function(t){console.error("API request failed: "+t)},prefix:"/store",urls:{create:"/annotations",update:"/annotations/idAnnotation",destroy:"/annotations/idAnnotation",search:"/search"}},StorageAdapter.prototype.create=function(t){return void 0!==t&&null!==t||(t={}),this._cycle(t,"create","beforeAnnotationCreated","annotationCreated")},StorageAdapter.prototype.update=function(t){if(void 0===t.id||null===t.id)throw new TypeError("annotation must have an id for update()");return this._cycle(t,"update","beforeAnnotationUpdated","annotationUpdated")},StorageAdapter.prototype.delete=function(t){if(void 0===t.id||null===t.id)throw new TypeError("annotation must have an id for delete()");return this._cycle(t,"delete","beforeAnnotationDeleted","annotationDeleted")},StorageAdapter.prototype.query=function(t){return a.resolve(this.store.query(t))},StorageAdapter.prototype.load=function(t){var e=this;return this.query(t).then(function(t){e.runHook("annotationsLoaded",[t.results])})},StorageAdapter.prototype._cycle=function(t,e,n,i){var o=this;return this.runHook(n,[t]).then(function(){var n=r.extend(!0,{},t);delete n._local;var i=o.store[e](n);return a.resolve(i)}).then(function(e){for(var n in t)t.hasOwnProperty(n)&&"_local"!==n&&delete t[n];return r.extend(t,e),o.runHook(i,[t]),t})},e.StorageAdapter=StorageAdapter},function(t,e,n){"use strict";var i=n(3).Widget,r=n(1),o=r.$,a=r.gettext,s="annotator-adder",l=i.extend({constructor:function(t){i.call(this,t),this.ignoreMouseup=!1,this.annotation=null,this.onCreate=this.options.onCreate;var e=this;this.element.on("click."+s,"button",function(t){e._onClick(t)}).on("mousedown."+s,"button",function(t){e._onMousedown(t)}),this.document=this.element[0].ownerDocument,o(this.document.body).on("mouseup."+s,function(t){e._onMouseup(t)})},destroy:function(){this.element.off("."+s),o(this.document.body).off("."+s),i.prototype.destroy.call(this)},load:function(t,e){this.annotation=t,this.show(e)},show:function(t){void 0!==t&&null!==t&&this.element.css({top:t.top,left:t.left}),i.prototype.show.call(this)},_onMousedown:function(t){t.which>1||(t.preventDefault(),this.ignoreMouseup=!0)},_onMouseup:function(t){t.which>1||this.ignoreMouseup&&t.stopImmediatePropagation()},_onClick:function(t){t.which>1||(t.preventDefault(),this.hide(),this.ignoreMouseup=!1,null!==this.annotation&&"function"==typeof this.onCreate&&this.onCreate(this.annotation,t))}});l.template=['<div class="annotator-adder annotator-hide">',' <button type="button">'+a("Annotate")+"</button>","</div>"].join("\n"),l.options={onCreate:null},e.Adder=l},function(t,e,n){"use strict";function preventEventDefault(t){void 0!==t&&null!==t&&"function"==typeof t.preventDefault&&t.preventDefault()}var i=n(3).Widget,r=n(1),o=r.$,a=r.gettext,s=r.Promise,l="annotator-editor",u=function(){var t;return t=-1,function(){return t+=1}}(),c=e.dragTracker=function(t,e){function mouseMove(t){if(!i&&null!==n){var r={y:t.pageY-n.top,x:t.pageX-n.left},o=!0;"function"==typeof e&&(o=e(r)),!1!==o&&(n={top:t.pageY,left:t.pageX}),i=!0,setTimeout(function(){i=!1},1e3/60)}}function mouseUp(){n=null,o(t.ownerDocument).off("mouseup",mouseUp).off("mousemove",mouseMove)}function mouseDown(e){e.target===t&&(n={top:e.pageY,left:e.pageX},o(t.ownerDocument).on("mouseup",mouseUp).on("mousemove",mouseMove),e.preventDefault())}function destroy(){o(t).off("mousedown",mouseDown)}var n=null,i=!1;return o(t).on("mousedown",mouseDown),{destroy:destroy}},d=e.resizer=function(t,e,n){function translate(t){var e=1,i=-1;return"function"==typeof n.invertedX&&n.invertedX()&&(e=-1),"function"==typeof n.invertedY&&n.invertedY()&&(i=1),{x:t.x*e,y:t.y*i}}function resize(t){var e=i.height(),n=i.width(),r=translate(t);return Math.abs(r.x)>0&&i.width(n+r.x),Math.abs(r.y)>0&&i.height(e+r.y),i.height()!==e||i.width()!==n}var i=o(t);return void 0!==n&&null!==n||(n={}),c(e,resize)},f=e.mover=function(t,e){function move(e){o(t).css({top:parseInt(o(t).css("top"),10)+e.y,left:parseInt(o(t).css("left"),10)+e.x})}return c(e,move)},h=e.Editor=i.extend({constructor:function(t){i.call(this,t),this.fields=[],this.annotation={},this.options.defaultFields&&this.addField({type:"textarea",label:a("Comments")+"…",load:function(t,e){o(t).find("textarea").val(e.text||"")},submit:function(t,e){e.text=o(t).find("textarea").val()}});var e=this;this.element.on("submit."+l,"form",function(t){e._onFormSubmit(t)}).on("click."+l,".annotator-save",function(t){e._onSaveClick(t)}).on("click."+l,".annotator-cancel",function(t){e._onCancelClick(t)}).on("mouseover."+l,".annotator-cancel",function(t){e._onCancelMouseover(t)}).on("keydown."+l,"textarea",function(t){e._onTextareaKeydown(t)})},destroy:function(){this.element.off("."+l),i.prototype.destroy.call(this)},show:function(t){void 0!==t&&null!==t&&this.element.css({top:t.top,left:t.left}),this.element.find(".annotator-save").addClass(this.classes.focus),i.prototype.show.call(this),this.element.find(":input:first").focus(),this._setupDraggables()},load:function(t,e){this.annotation=t;for(var n=0,i=this.fields.length;n<i;n++){var r=this.fields[n];r.load(r.element,this.annotation)}var o=this;return new s(function(t,n){o.dfd={resolve:t,reject:n},o.show(e)})},submit:function(){for(var t=0,e=this.fields.length;t<e;t++){var n=this.fields[t];n.submit(n.element,this.annotation)}void 0!==this.dfd&&null!==this.dfd&&this.dfd.resolve(),this.hide()},cancel:function(){void 0!==this.dfd&&null!==this.dfd&&this.dfd.reject("editing cancelled"),this.hide()},addField:function(t){var e=o.extend({id:"annotator-field-"+u(),type:"input",label:"",load:function(){},submit:function(){}},t),n=null,i=o('<li class="annotator-item" />');return e.element=i[0],"textarea"===e.type?n=o("<textarea />"):"checkbox"===e.type?n=o('<input type="checkbox" />'):"input"===e.type?n=o("<input />"):"select"===e.type&&(n=o("<select />")),i.append(n),n.attr({id:e.id,placeholder:e.label}),"checkbox"===e.type&&(i.addClass("annotator-checkbox"),i.append(o("<label />",{for:e.id,html:e.label}))),this.element.find("ul:first").append(i),this.fields.push(e),e.element},checkOrientation:function(){i.prototype.checkOrientation.call(this);var t=this.element.find("ul").first(),e=this.element.find(".annotator-controls");return this.element.hasClass(this.classes.invert.y)?e.insertBefore(t):e.is(":first-child")&&e.insertAfter(t),this},_onFormSubmit:function(t){preventEventDefault(t),this.submit()},_onSaveClick:function(t){preventEventDefault(t),this.submit()},_onCancelClick:function(t){preventEventDefault(t),this.cancel()},_onCancelMouseover:function(){this.element.find("."+this.classes.focus).removeClass(this.classes.focus)},_onTextareaKeydown:function(t){27===t.which?this.cancel():13!==t.which||t.shiftKey||this.submit()},_setupDraggables:function(){void 0!==this._resizer&&null!==this._resizer&&this._resizer.destroy(),void 0!==this._mover&&null!==this._mover&&this._mover.destroy(),this.element.find(".annotator-resize").remove();var t;(t=this.element.hasClass(this.classes.invert.y)?this.element.find(".annotator-item:last"):this.element.find(".annotator-item:first"))&&o('<span class="annotator-resize"></span>').appendTo(t);var e=this.element.find(".annotator-controls")[0],n=this.element.find("textarea:first")[0],i=this.element.find(".annotator-resize")[0],r=this;this._resizer=d(n,i,{invertedX:function(){return r.element.hasClass(r.classes.invert.x)},invertedY:function(){return r.element.hasClass(r.classes.invert.y)}}),this._mover=f(this.element[0],e)}});h.classes={hide:"annotator-hide",focus:"annotator-focus"},h.template=['<div class="annotator-outer annotator-editor annotator-hide">',' <form class="annotator-widget">',' <ul class="annotator-listing"></ul>',' <div class="annotator-controls">',' <a href="#cancel" class="annotator-cancel">'+a("Cancel")+"</a>",' <a href="#save"',' class="annotator-save annotator-focus">'+a("Save")+"</a>"," </div>"," </form>","</div>"].join("\n"),h.options={defaultFields:!0},e.standalone=function(t){var n=new e.Editor(t);return{destroy:function(){n.destroy()},beforeAnnotationCreated:function(t){return n.load(t)},beforeAnnotationUpdated:function(t){return n.load(t)}}}},function(t,e,n){"use strict";(function(t){function highlightRange(e,n){void 0!==n&&null!==n||(n="annotator-hl");for(var i=/^\s*$/,r=e.textNodes(),o=[],a=0,s=r.length;a<s;a++){var l=r[a];if(!i.test(l.nodeValue)){var u=t.document.createElement("span");u.className=n,l.parentNode.replaceChild(u,l),u.appendChild(l),o.push(u)}}return o}function reanchorRange(t,e){try{return i.Range.sniff(t).normalize(e)}catch(t){if(!(t instanceof i.Range.RangeError))throw t}return null}var i=n(18),r=n(1),o=r.$,a=r.Promise,s=e.Highlighter=function Highlighter(t,e){this.element=t,this.options=o.extend(!0,{},Highlighter.options,e)};s.prototype.destroy=function(){o(this.element).find("."+this.options.highlightClass).each(function(t,e){o(e).contents().insertBefore(e),o(e).remove()})},s.prototype.drawAll=function(t){var e=this;return new a(function(n){function loader(t){void 0!==t&&null!==t||(t=[]);for(var r=t.splice(0,e.options.chunkSize),o=0,a=r.length;o<a;o++)i=i.concat(e.draw(r[o]));t.length>0?setTimeout(function(){loader(t)},e.options.chunkDelay):n(i)}var i=[];loader(t.slice())})},s.prototype.draw=function(t){for(var e=[],n=0,i=t.ranges.length;n<i;n++){var r=reanchorRange(t.ranges[n],this.element);null!==r&&e.push(r)}void 0!==t._local&&null!==t._local||(t._local={}),void 0!==t._local.highlights&&null===t._local.highlights||(t._local.highlights=[]);for(var a=0,s=e.length;a<s;a++){var l=e[a];o.merge(t._local.highlights,highlightRange(l,this.options.highlightClass))}return o(t._local.highlights).data("annotation",t),void 0!==t.id&&null!==t.id&&o(t._local.highlights).attr("data-annotation-id",t.id),t._local.highlights},s.prototype.undraw=function(t){if(void 0!==t._local&&null!==t._local&&void 0!==t._local.highlights&&null!==t._local.highlights){for(var e=0,n=t._local.highlights.length;e<n;e++){var i=t._local.highlights[e];null!==i.parentNode&&o(i).replaceWith(i.childNodes)}delete t._local.highlights}},s.prototype.redraw=function(t){return this.undraw(t),this.draw(t)},s.options={highlightClass:"annotator-hl",chunkSize:10,chunkDelay:10},e.standalone=function(t,n){var i=e.Highlighter(t,n);return{destroy:function(){i.destroy()},annotationsLoaded:function(t){i.drawAll(t)},annotationCreated:function(t){i.draw(t)},annotationDeleted:function(t){i.undraw(t)},annotationUpdated:function(t){i.redraw(t)}}}}).call(e,n(2))},function(t,e,n){"use strict";(function(t){function isAnnotator(t){return 0!==o(t).parents().addBack().filter("[class^=annotator-]").length}function TextSelector(t,e){if(this.element=t,this.options=o.extend(!0,{},TextSelector.options,e),this.onSelection=this.options.onSelection,void 0!==this.element.ownerDocument&&null!==this.element.ownerDocument){var n=this;this.document=this.element.ownerDocument,o(this.document.body).on("mouseup."+a,function(t){n._checkForEndSelection(t)})}else console.warn("You created an instance of the TextSelector on an element that doesn't have an ownerDocument. This won't work! Please ensure the element is added to the DOM before the plugin is configured:",this.element)}var i=n(18),r=n(1),o=r.$,a="annotator-textselector";TextSelector.prototype.destroy=function(){this.document&&o(this.document.body).off("."+a)},TextSelector.prototype.captureDocumentSelection=function(){var e,n,r=[],o=[],a=t.getSelection();if(a.isCollapsed)return[];for(e=0;e<a.rangeCount;e++){var s=a.getRangeAt(e),l=new i.Range.BrowserRange(s),u=l.normalize().limit(this.element);null===u?o.push(s):r.push(u)}for(a.removeAllRanges(),e=0,n=o.length;e<n;e++)a.addRange(o[e]);for(e=0,n=r.length;e<n;e++){var c=r[e],d=this.document.createRange();d.setStartBefore(c.start),d.setEndAfter(c.end),a.addRange(d)}return r},TextSelector.prototype._checkForEndSelection=function(t){var e=this,n=function(){"function"==typeof e.onSelection&&e.onSelection([],t)},i=this.captureDocumentSelection();if(0===i.length)return void n();for(var r=0,a=i.length;r<a;r++){var s=i[r].commonAncestor;if(o(s).hasClass("annotator-hl")&&(s=o(s).parents("[class!=annotator-hl]")[0]),isAnnotator(s))return void n()}"function"==typeof this.onSelection&&this.onSelection(i,t)},TextSelector.options={onSelection:null},e.TextSelector=TextSelector}).call(e,n(2))},function(t,e,n){"use strict";function parseLinks(t,e,n){n=o.extend({},n,{rel:e});for(var i=[],r=0,a=t.length;r<a;r++){var s=t[r],l=!0;for(var u in n)if(n.hasOwnProperty(u)&&s[u]!==n[u]){l=!1;break}l&&i.push(s)}return i}var i=n(3).Widget,r=n(1),o=r.$,a=r.gettext,s="annotator-viewer",l=e.Viewer=i.extend({constructor:function(t){i.call(this,t),this.itemTemplate=l.itemTemplate,this.fields=[],this.annotations=[],this.hideTimer=null,this.hideTimerDfd=null,this.hideTimerActivity=null,this.mouseDown=!1,this.render=function(t){return t.text?r.escapeHtml(t.text):"<i>"+a("No comment")+"</i>"};var e=this;if(this.options.defaultFields&&this.addField({load:function(t,n){o(t).html(e.render(n))}}),"function"!=typeof this.options.onEdit)throw new TypeError("onEdit callback must be a function");if("function"!=typeof this.options.onDelete)throw new TypeError("onDelete callback must be a function");if("function"!=typeof this.options.permitEdit)throw new TypeError("permitEdit callback must be a function");if("function"!=typeof this.options.permitDelete)throw new TypeError("permitDelete callback must be a function");this.options.autoViewHighlights&&(this.document=this.options.autoViewHighlights.ownerDocument,o(this.options.autoViewHighlights).on("mouseover."+s,".annotator-hl",function(t){t.target===this&&e._onHighlightMouseover(t)}).on("mouseleave."+s,".annotator-hl",function(){e._startHideTimer()}),o(this.document.body).on("mousedown."+s,function(t){1===t.which&&(e.mouseDown=!0)}).on("mouseup."+s,function(t){1===t.which&&(e.mouseDown=!1)})),this.element.on("click."+s,".annotator-edit",function(t){e._onEditClick(t)}).on("click."+s,".annotator-delete",function(t){e._onDeleteClick(t)}).on("mouseenter."+s,function(){e._clearHideTimer()}).on("mouseleave."+s,function(){e._startHideTimer()})},destroy:function(){this.options.autoViewHighlights&&(o(this.options.autoViewHighlights).off("."+s),o(this.document.body).off("."+s)),this.element.off("."+s),i.prototype.destroy.call(this)},show:function(t){void 0!==t&&null!==t&&this.element.css({top:t.top,left:t.left});var e=this.element.find(".annotator-controls").addClass(this.classes.showControls),n=this;setTimeout(function(){e.removeClass(n.classes.showControls)},500),i.prototype.show.call(this)},load:function(t,e){this.annotations=t||[];for(var n=this.element.find("ul:first").empty(),i=0,r=this.annotations.length;i<r;i++){var o=this.annotations[i];this._annotationItem(o).appendTo(n).data("annotation",o)}this.show(e)},setRenderer:function(t){this.render=t},_annotationItem:function(t){var e=o(this.itemTemplate).clone(),n=e.find(".annotator-controls"),i=n.find(".annotator-link"),r=n.find(".annotator-edit"),a=n.find(".annotator-delete"),s=parseLinks(t.links||[],"alternate",{type:"text/html"});s.length>0&&void 0!==s[0].href&&null!==s[0].href?i.attr("href",s[0].href):i.remove();var l={};this.options.permitEdit(t)?(l.showEdit=function(){r.removeAttr("disabled")},l.hideEdit=function(){r.attr("disabled","disabled")}):r.remove(),this.options.permitDelete(t)?(l.showDelete=function(){a.removeAttr("disabled")},l.hideDelete=function(){a.attr("disabled","disabled")}):a.remove();for(var u=0,c=this.fields.length;u<c;u++){var d=this.fields[u],f=o(d.element).clone().appendTo(e)[0];d.load(f,t,l)}return e},addField:function(t){var e=o.extend({load:function(){}},t);return e.element=o("<div />")[0],this.fields.push(e),this},_onEditClick:function(t){var e=o(t.target).parents(".annotator-annotation").data("annotation");this.hide(),this.options.onEdit(e)},_onDeleteClick:function(t){if(window.confirm(a("Delete this annotation?"))){var e=o(t.target).parents(".annotator-annotation").data("annotation");this.hide(),this.options.onDelete(e)}},_onHighlightMouseover:function(t){if(!this.mouseDown){var e=this;this._startHideTimer(!0).done(function(){var n=o(t.target).parents(".annotator-hl").addBack().map(function(t,e){return o(e).data("annotation")}).toArray();e.load(n,r.mousePosition(t))})}},_startHideTimer:function(t){if(void 0!==t&&null!==t||(t=!1),this.hideTimer){if(!1===t||this.hideTimerActivity===t)return this.hideTimerDfd;this._clearHideTimer()}var e;if(e=t?this.options.activityDelay:this.options.inactivityDelay,this.hideTimerDfd=o.Deferred(),this.isShown()){var n=this;this.hideTimer=setTimeout(function(){n.hide(),n.hideTimerDfd.resolve(),n.hideTimer=null},e),this.hideTimerActivity=Boolean(t)}else this.hideTimer=null,this.hideTimerDfd.resolve(),this.hideTimerActivity=null;return this.hideTimerDfd.promise()},_clearHideTimer:function(){clearTimeout(this.hideTimer),this.hideTimer=null,this.hideTimerDfd.reject(),this.hideTimerActivity=null}});l.classes={showControls:"annotator-visible"},l.template=['<div class="annotator-outer annotator-viewer annotator-hide">',' <ul class="annotator-widget annotator-listing"></ul>',"</div>"].join("\n"),l.itemTemplate=['<li class="annotator-annotation annotator-item">',' <span class="annotator-controls">',' <a href="#"',' title="'+a("View as webpage")+'"',' class="annotator-link">'+a("View as webpage")+"</a>",' <button type="button"',' title="'+a("Edit")+'"',' class="annotator-edit">'+a("Edit")+"</button>",' <button type="button"',' title="'+a("Delete")+'"',' class="annotator-delete">'+a("Delete")+"</button>"," </span>","</li>"].join("\n"),l.options={defaultFields:!0,inactivityDelay:500,activityDelay:100,permitEdit:function(){return!1},permitDelete:function(){return!1},autoViewHighlights:null,onEdit:function(){},onDelete:function(){}},e.standalone=function(t){var n;return void 0!==t&&null!==t||(t={}),{start:function(i){var r=i.registry.getUtility("identityPolicy"),o=i.registry.getUtility("authorizationPolicy");void 0===t.onEdit&&(t.onEdit=function(t){i.annotations.update(t)}),void 0===t.onDelete&&(t.onDelete=function(t){i.annotations.delete(t)}),void 0===t.permitEdit&&(t.permitEdit=function(t){return o.permits("update",t,r.who())}),void 0===t.permitDelete&&(t.permitDelete=function(t){return o.permits("delete",t,r.who())}),n=new e.Viewer(t)},destroy:function(){n.destroy()}}}},function(t,e,n){"use strict"},function(t,e,n){"use strict";var i=n(4),r=function(t){return t&&t.__esModule?t:{default:t}}(i);r.default.bind("g u",function(){window.location.href=Routing.generate("homepage")}),r.default.bind("g s",function(){window.location.href=Routing.generate("starred")}),r.default.bind("g r",function(){window.location.href=Routing.generate("archive")}),r.default.bind("g a",function(){window.location.href=Routing.generate("all")}),r.default.bind("g t",function(){window.location.href=Routing.generate("tag")}),r.default.bind("g c",function(){window.location.href=Routing.generate("config")}),r.default.bind("g i",function(){window.location.href=Routing.generate("import")}),r.default.bind("g d",function(){window.location.href=Routing.generate("developer")}),r.default.bind("?",function(){window.location.href=Routing.generate("howto")}),r.default.bind("g l",function(){window.location.href=Routing.generate("fos_user_security_logout")})},function(t,e,n){!function(e){t.exports=e()}(function(){"use strict";var t={has:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},extend:function(t){for(var e=1;e<arguments.length;++e){var n=arguments[e];if(n)for(var i in n)t[i]=n[i]}return t}};return function(e,n){var i,r=this;i=e&&t.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},t.extend(i,r,n);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,e&&t.extend(i.prototype,e),i.__super__=r.prototype,i}})},function(t,e,n){(function(e,i){!function(e,n){t.exports=n()}(0,function(){"use strict";function objectOrFunction(t){return"function"==typeof t||"object"==typeof t&&null!==t}function isFunction(t){return"function"==typeof t}function setScheduler(t){s=t}function setAsap(t){l=t}function useVertxTimer(){return function(){a(flush)}}function useSetTimeout(){var t=setTimeout;return function(){return t(flush,1)}}function flush(){for(var t=0;t<o;t+=2){(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0}o=0}function then(t,e){var n=arguments,i=this,r=new this.constructor(noop);void 0===r[v]&&makePromise(r);var o=i._state;return o?function(){var t=n[o-1];l(function(){return invokeCallback(o,r,t,i._result)})}():subscribe(i,r,t,e),r}function resolve(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(noop);return _resolve(n,t),n}function noop(){}function selfFulfillment(){return new TypeError("You cannot resolve a promise with itself")}function cannotReturnOwn(){return new TypeError("A promises callback cannot return that same promise.")}function getThen(t){try{return t.then}catch(t){return w.error=t,w}}function tryThen(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}function handleForeignThenable(t,e,n){l(function(t){var i=!1,r=tryThen(n,e,function(n){i||(i=!0,e!==n?_resolve(t,n):fulfill(t,n))},function(e){i||(i=!0,_reject(t,e))},"Settle: "+(t._label||" unknown promise"));!i&&r&&(i=!0,_reject(t,r))},t)}function handleOwnThenable(t,e){e._state===y?fulfill(t,e._result):e._state===b?_reject(t,e._result):subscribe(e,void 0,function(e){return _resolve(t,e)},function(e){return _reject(t,e)})}function handleMaybeThenable(t,e,n){e.constructor===t.constructor&&n===then&&e.constructor.resolve===resolve?handleOwnThenable(t,e):n===w?_reject(t,w.error):void 0===n?fulfill(t,e):isFunction(n)?handleForeignThenable(t,e,n):fulfill(t,e)}function _resolve(t,e){t===e?_reject(t,selfFulfillment()):objectOrFunction(e)?handleMaybeThenable(t,e,getThen(e)):fulfill(t,e)}function publishRejection(t){t._onerror&&t._onerror(t._result),publish(t)}function fulfill(t,e){t._state===m&&(t._result=e,t._state=y,0!==t._subscribers.length&&l(publish,t))}function _reject(t,e){t._state===m&&(t._state=b,t._result=e,l(publishRejection,t))}function subscribe(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+y]=n,r[o+b]=i,0===o&&t._state&&l(publish,t)}function publish(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i=void 0,r=void 0,o=t._result,a=0;a<e.length;a+=3)i=e[a],r=e[a+n],i?invokeCallback(n,i,r,o):r(o);t._subscribers.length=0}}function ErrorObject(){this.error=null}function tryCatch(t,e){try{return t(e)}catch(t){return x.error=t,x}}function invokeCallback(t,e,n,i){var r=isFunction(n),o=void 0,a=void 0,s=void 0,l=void 0;if(r){if(o=tryCatch(n,i),o===x?(l=!0,a=o.error,o=null):s=!0,e===o)return void _reject(e,cannotReturnOwn())}else o=i,s=!0;e._state!==m||(r&&s?_resolve(e,o):l?_reject(e,a):t===y?fulfill(e,o):t===b&&_reject(e,o))}function initializePromise(t,e){try{e(function(e){_resolve(t,e)},function(e){_reject(t,e)})}catch(e){_reject(t,e)}}function nextId(){return T++}function makePromise(t){t[v]=T++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Enumerator(t,e){this._instanceConstructor=t,this.promise=new t(noop),this.promise[v]||makePromise(this.promise),r(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&fulfill(this.promise,this._result))):_reject(this.promise,validationError())}function validationError(){return new Error("Array Methods must be provided an Array")}function all(t){return new Enumerator(this,t).promise}function race(t){var e=this;return new e(r(t)?function(n,i){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(n,i)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function reject(t){var e=this,n=new e(noop);return _reject(n,t),n}function needsResolver(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function needsNew(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function Promise(t){this[v]=nextId(),this._result=this._state=void 0,this._subscribers=[],noop!==t&&("function"!=typeof t&&needsResolver(),this instanceof Promise?initializePromise(this,t):needsNew())}function polyfill(){var t=void 0;if(void 0!==i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=Promise}var t=void 0;t=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var r=t,o=0,a=void 0,s=void 0,l=function(t,e){p[o]=t,p[o+1]=e,2===(o+=2)&&(s?s(flush):g())},u="undefined"!=typeof window?window:void 0,c=u||{},d=c.MutationObserver||c.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,p=new Array(1e3),g=void 0;g=f?function(){return function(){return e.nextTick(flush)}}():d?function(){var t=0,e=new d(flush),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():h?function(){var t=new MessageChannel;return t.port1.onmessage=flush,function(){return t.port2.postMessage(0)}}():void 0===u?function(){try{var t=n(39);return a=t.runOnLoop||t.runOnContext,useVertxTimer()}catch(t){return useSetTimeout()}}():useSetTimeout();var v=Math.random().toString(36).substring(16),m=void 0,y=1,b=2,w=new ErrorObject,x=new ErrorObject,T=0;return Enumerator.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===m&&n<t;n++)this._eachEntry(e[n],n)},Enumerator.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===resolve){var r=getThen(t);if(r===then&&t._state!==m)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===Promise){var o=new n(noop);handleMaybeThenable(o,t,r),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},Enumerator.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===m&&(this._remaining--,t===b?_reject(i,n):this._result[e]=n),0===this._remaining&&fulfill(i,this._result)},Enumerator.prototype._willSettleAt=function(t,e){var n=this;subscribe(t,void 0,function(t){return n._settledAt(y,e,t)},function(t){return n._settledAt(b,e,t)})},Promise.all=all,Promise.race=race,Promise.resolve=resolve,Promise.reject=reject,Promise._setScheduler=setScheduler,Promise._setAsap=setAsap,Promise._asap=l,Promise.prototype={constructor:Promise,then:then,catch:function(t){return this.then(null,t)}},polyfill(),Promise.polyfill=polyfill,Promise.Promise=Promise,Promise})}).call(e,n(37),n(2))},function(t,e,n){(function(){t.exports={xpath:n(20),Range:n(38)}}).call(this)},function(t,e,n){(function(){var e,i;e=n(0),i={},i.NodeTypes={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},i.getFirstTextNodeNotBefore=function(t){var e;switch(t.nodeType){case i.NodeTypes.TEXT_NODE:return t;case i.NodeTypes.ELEMENT_NODE:if(null!=t.firstChild&&null!=(e=i.getFirstTextNodeNotBefore(t.firstChild)))return e}return t=t.nextSibling,null!=t?i.getFirstTextNodeNotBefore(t):null},i.getLastTextNodeUpTo=function(t){var e;switch(t.nodeType){case i.NodeTypes.TEXT_NODE:return t;case i.NodeTypes.ELEMENT_NODE:if(null!=t.lastChild&&null!=(e=i.getLastTextNodeUpTo(t.lastChild)))return e}return t=t.previousSibling,null!=t?i.getLastTextNodeUpTo(t):null},i.getTextNodes=function(t){var e;return e=function(t){var n;if(t&&t.nodeType!==i.NodeTypes.TEXT_NODE){if(n=[],t.nodeType!==i.NodeTypes.COMMENT_NODE)for(t=t.lastChild;t;)n.push(e(t)),t=t.previousSibling;return n.reverse()}return t},t.map(function(){return i.flatten(e(this))})},i.getGlobal=function(){return function(){return this}()},i.contains=function(t,e){var n;for(n=e;null!=n;){if(n===t)return!0;n=n.parentNode}return!1},i.flatten=function(t){var n;return(n=function(t){var i,r,o,a;for(r=[],o=0,a=t.length;o<a;o++)i=t[o],r=r.concat(i&&e.isArray(i)?n(i):i);return r})(t)},t.exports=i}).call(this)},function(t,e,n){(function(){var e,i,r,o,a,s,l,u,c,d;e=n(0),i=n(19),r=function(t,e,n){var i,r,a,s,l,u,c,d;null==e&&(e=document),null==n&&(n=null);try{return document.evaluate("."+t,e,n,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(n){for(n,console.log("XPath evaluation failed."),console.log("Trying fallback..."),l=t.substring(1).split("/"),a=e,u=0,c=l.length;u<c;u++)s=l[u],d=s.split("["),r=d[0],i=d[1],i=null!=i?parseInt((null!=i?i.split("]"):void 0)[0]):1,a=o(a,r.toLowerCase(),i);return a}},u=function(t,n){var r;return r=t.map(function(){var t,r,o,a;for(o="",t=this;(null!=t?t.nodeType:void 0)===i.NodeTypes.ELEMENT_NODE&&t!==n;)a=t.tagName.replace(":","\\:"),r=e(t.parentNode).children(a).index(t)+1,r="["+r+"]",o="/"+t.tagName.toLowerCase()+r+o,t=t.parentNode;return o}),r.get()},c=function(t,e){var n,i,r,o;return n=function(t){var e,n;return e=s(t),n=l(t),e+"["+n+"]"},o=e,i=function(t){var e;for(e="";t!==o;){if(null==t)throw new Error("Called getPathTo on a node which was not a descendant of @rootNode. "+o);e=n(t)+"/"+e,t=t.parentNode}return e="/"+e,e=e.replace(/\/$/,"")},r=t.map(function(){return i(this)}),r.get()},o=function(t,e,n){var i,r,o,a,l;if(!t.hasChildNodes())throw new Error("XPath error: node has no children!");for(r=t.childNodes,o=0,a=0,l=r.length;a<l;a++)if(i=r[a],s(i)===e&&(o+=1)===n)return i;throw new Error("XPath error: wanted child not found.")},s=function(t){var e;switch(e=t.nodeName.toLowerCase()){case"#text":return"text()";case"#comment":return"comment()";case"#cdata-section":return"cdata-section()";default:return e}},l=function(t){var e,n;for(e=0,n=t;n;)n.nodeName===t.nodeName&&(e+=1),n=n.previousSibling;return e},a=function(t,e){var n;try{n=u(t,e)}catch(i){i,console.log("jQuery-based XPath construction failed! Falling back to manual."),n=c(t,e)}return n},d=function(t,n){var i,o,a,s;return null==n&&(n=document),e.isXMLDoc(document.documentElement)?(i=document.createNSResolver(null===document.ownerDocument?document.documentElement:document.ownerDocument.documentElement),a=r(t,n,i),a||(t=function(){var e,n,i,r;for(i=t.split("/"),r=[],e=0,n=i.length;e<n;e++)s=i[e],s&&-1===s.indexOf(":")?r.push(s.replace(/^([a-z]+)/,"xhtml:$1")):r.push(s);return r}().join("/"),o=document.lookupNamespaceURI(null),i=function(t){return"xhtml"===t?o:document.documentElement.getAttribute("xmlns:"+t)},a=r(t,n,i)),a):r(t,n)},t.exports={fromNode:a,toNode:d}}).call(this)},function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var i=n(0),r=_interopRequireDefault(i),o=n(22),a=_interopRequireDefault(o);n(34),n(33),n(31),n(14),n(15);var s=n(30);(0,r.default)(document).ready(function(){if((0,r.default)("article").length){var t=new a.default.App;t.include(a.default.ui.main,{element:document.querySelector("article")});var e={permits:function(){return!0}};t.registry.registerUtility(e,"authorizationPolicy");var n=JSON.parse((0,r.default)("#annotationroutes").html());t.include(a.default.storage.http,n),t.start().then(function(){t.annotations.load({entry:n.entryId})}),(0,r.default)(window).scroll(function(){var t=(0,r.default)(window).scrollTop(),e=(0,r.default)(document).height(),i=t/e,o=Math.round(100*i)/100;(0,s.savePercent)(n.entryId,o)}),(0,s.retrievePercent)(n.entryId),(0,r.default)(window).resize(function(){(0,s.retrievePercent)(n.entryId)})}})},function(t,e,n){"use strict";(function(t){n(35)(n(32));var i=n(23),r=n(1);e.App=i.App,e.authz=n(5),e.identity=n(6),e.notification=n(7),e.storage=n(8),e.ui=n(25),e.util=r,e.ext={};var o=t.wgxpath;void 0!==o&&null!==o&&"function"==typeof o.install&&o.install();var a=t.annotator;e.noConflict=function(){return t.annotator=a,this}}).call(e,n(2))},function(t,e,n){"use strict";function App(){this.modules=[],this.registry=new l.Registry,this._started=!1,this.registry.registerUtility(s.defaultNotifier,"notifier"),this.include(o.acl),this.include(a.simple),this.include(u.noop)}var i=n(16),r=n(17).Promise,o=n(5),a=n(6),s=n(7),l=n(24),u=n(8);App.prototype.include=function(t,e){var n=t(e);return"function"==typeof n.configure&&n.configure(this.registry),this.modules.push(n),this},App.prototype.start=function(){if(!this._started){this._started=!0;var t=this,e=this.registry;return this.authz=e.getUtility("authorizationPolicy"),this.ident=e.getUtility("identityPolicy"),this.notify=e.getUtility("notifier"),this.annotations=new u.StorageAdapter(e.getUtility("storage"),function(){return t.runHook.apply(t,arguments)}),this.runHook("start",[this])}},App.prototype.destroy=function(){return this.runHook("destroy")},App.prototype.runHook=function(t,e){for(var n=[],i=0,o=this.modules.length;i<o;i++){var a=this.modules[i];"function"==typeof a[t]&&n.push(a[t].apply(a,e))}return r.all(n)},App.extend=i,e.App=App},function(t,e,n){"use strict";function Registry(){this.utilities={}}function LookupError(t){this.name="LookupError",this.message='No utility registered for interface "'+t+'".'}Registry.prototype.registerUtility=function(t,e){this.utilities[e]=t},Registry.prototype.getUtility=function(t){var e=this.queryUtility(t);if(null===e)throw new LookupError(t);return e},Registry.prototype.queryUtility=function(t){var e=this.utilities[t];return void 0===e||null===e?null:e},LookupError.prototype=Object.create(Error.prototype),LookupError.prototype.constructor=LookupError,e.LookupError=LookupError,e.Registry=Registry},function(t,e,n){e.main=n(27).main,e.adder=n(9),e.editor=n(10),e.filter=n(26),e.highlighter=n(11),e.markdown=n(28),e.tags=n(29),e.textselector=n(12),e.viewer=n(13),e.widget=n(3)},function(t,e,n){"use strict";var i=n(1),r=i.$,o=i.gettext,a="annotator-filter",s=e.Filter=function Filter(t){this.options=r.extend(!0,{},Filter.options,t),this.classes=r.extend(!0,{},Filter.classes),this.element=r(Filter.html.element).appendTo(this.options.appendTo),this.filter=r(Filter.html.filter),this.filters=[],this.current=0;for(var e=0,n=this.options.filters.length;e<n;e++){var i=this.options.filters[e];this.addFilter(i)}this.updateHighlights();var s=".annotator-filter-property input",l=this;this.element.on("focus."+a,s,function(t){l._onFilterFocus(t)}).on("blur."+a,s,function(t){l._onFilterBlur(t)}).on("keyup."+a,s,function(t){l._onFilterKeyup(t)}).on("click."+a,".annotator-filter-previous",function(t){l._onPreviousClick(t)}).on("click."+a,".annotator-filter-next",function(t){l._onNextClick(t)}).on("click."+a,".annotator-filter-clear",function(t){l._onClearClick(t)}),this._insertSpacer(),this.options.addAnnotationFilter&&this.addFilter({label:o("Annotation"),property:"text"})};s.prototype.destroy=function(){var t=r("html"),e=parseInt(t.css("padding-top"),10)||0;t.css("padding-top",e-this.element.outerHeight()),this.element.off("."+a),this.element.remove()},s.prototype._insertSpacer=function(){var t=r("html"),e=parseInt(t.css("padding-top"),10)||0;return t.css("padding-top",e+this.element.outerHeight()),this},s.prototype.addFilter=function(t){for(var e=r.extend({label:"",property:"",isFiltered:this.options.isFiltered},t),n=!1,i=0,a=this.filters.length;i<a;i++){if(this.filters[i].property===e.property){n=!0;break}}return n||(e.id="annotator-filter-"+e.property,e.annotations=[],e.element=this.filter.clone().appendTo(this.element),e.element.find("label").html(e.label).attr("for",e.id),e.element.find("input").attr({id:e.id,placeholder:o("Filter by ")+e.label+"…"}),e.element.find("button").hide(),e.element.data("filter",e),this.filters.push(e)),this},s.prototype.updateFilter=function(t){t.annotations=[],this.updateHighlights(),this.resetHighlights();var e=r.trim(t.element.find("input").val());if(e){var n=this.highlights.map(function(){return r(this).data("annotation")});n=r.makeArray(n);for(var i=0,o=n.length;i<o;i++){var a=n[i],s=a[t.property];t.isFiltered(e,s)&&t.annotations.push(a)}this.filterHighlights()}},s.prototype.updateHighlights=function(){this.highlights=r(this.options.filterElement).find(".annotator-hl:visible"),this.filtered=this.highlights.not(this.classes.hl.hide)},s.prototype.filterHighlights=function(){var t=r.grep(this.filters,function(t){return Boolean(t.annotations.length)}),e=[];if(t.length>0&&(e=t[0].annotations),t.length>1){var n=[];r.each(t,function(){r.merge(n,this.annotations)});var i=[];e=[],r.each(n,function(){-1===r.inArray(this,i)?i.push(this):e.push(this)})}for(var o=this.highlights,a=0,s=e.length;a<s;a++)o=o.not(e[a]._local.highlights);return o.addClass(this.classes.hl.hide),this.filtered=this.highlights.not(this.classes.hl.hide),this},s.prototype.resetHighlights=function(){return this.highlights.removeClass(this.classes.hl.hide),this.filtered=this.highlights,this},s.prototype._onFilterFocus=function(t){var e=r(t.target);e.parent().addClass(this.classes.active),e.next("button").show()},s.prototype._onFilterBlur=function(t){if(!t.target.value){var e=r(t.target);e.parent().removeClass(this.classes.active),e.next("button").hide()}},s.prototype._onFilterKeyup=function(t){var e=r(t.target).parent().data("filter");e&&this.updateFilter(e)},s.prototype._findNextHighlight=function(t){if(0===this.highlights.length)return this;var e=-1,n=0,i="gt";t&&(e=0,n=-1,i="lt");var r=this.highlights.not("."+this.classes.hl.hide),o=r.filter("."+this.classes.hl.active);0===o.length&&(o=r.eq(e));var a=o.data("annotation"),s=r.index(o[0]),l=r.filter(":"+i+"("+s+")").not(a._local.highlights).eq(n);0===l.length&&(l=r.eq(n)),this._scrollToHighlight(l.data("annotation")._local.highlights)},s.prototype._onNextClick=function(){this._findNextHighlight()},s.prototype._onPreviousClick=function(){this._findNextHighlight(!0)},s.prototype._scrollToHighlight=function(t){t=r(t),this.highlights.removeClass(this.classes.hl.active),t.addClass(this.classes.hl.active),r("html, body").animate({scrollTop:t.offset().top-(this.element.height()+20)},150)},s.prototype._onClearClick=function(t){r(t.target).prev("input").val("").keyup().blur()},s.classes={active:"annotator-filter-active",hl:{hide:"annotator-hl-filtered",active:"annotator-hl-active"}},s.html={element:['<div class="annotator-filter">'," <strong>"+o("Navigate:")+"</strong>",' <span class="annotator-filter-navigation">',' <button type="button"',' class="annotator-filter-previous">'+o("Previous")+"</button>",' <button type="button"',' class="annotator-filter-next">'+o("Next")+"</button>"," </span>"," <strong>"+o("Filter by:")+"</strong>","</div>"].join("\n"),filter:['<span class="annotator-filter-property">'," <label></label>"," <input/>",' <button type="button"',' class="annotator-filter-clear">'+o("Clear")+"</button>","</span>"].join("\n")},s.options={appendTo:"body",filterElement:"body",filters:[],addAnnotationFilter:!0,isFiltered:function(t,e){if(!t||!e)return!1;for(var n=t.split(/\s+/),i=0,r=n.length;i<r;i++)if(-1===e.indexOf(n[i]))return!1;return!0}},e.standalone=function(t){var n=new e.Filter(t);return{destroy:function(){n.destroy()},annotationsLoaded:function(){n.updateHighlights()},annotationCreated:function(){n.updateHighlights()},annotationUpdated:function(){n.updateHighlights()},annotationDeleted:function(){n.updateHighlights()}}}},function(t,e,n){"use strict";(function(t){function trim(t){return"function"==typeof String.prototype.trim?String.prototype.trim.call(t):t.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}function annotationFactory(t,e){return function(n){for(var i=[],r=[],o=0,a=n.length;o<a;o++){var s=n[o];i.push(trim(s.text())),r.push(s.serialize(t,e))}return{quote:i.join(" / "),ranges:r}}}function maxZIndex(t){for(var e=-1,n=0,r=t.length;n<r;n++){var o=i.$(t[n]);if("static"!==o.css("position")){var a=parseFloat(o.css("z-index"));a>e&&(e=a)}}return e}function injectDynamicStyle(){i.$("#annotator-dynamic-style").remove();var e=maxZIndex(i.$(t.document.body).find("*:not(annotator-adder):not(annotator-outer):not(annotator-notice):not(annotator-filter)").get());e=Math.max(e,1e3);var n=[".annotator-adder, .annotator-outer, .annotator-notice {"," z-index: "+(e+20)+";","}",".annotator-filter {"," z-index: "+(e+10)+";","}"].join("\n");i.$("<style>"+n+"</style>").attr("id","annotator-dynamic-style").attr("type","text/css").appendTo("head")}function removeDynamicStyle(){i.$("#annotator-dynamic-style").remove()}function addPermissionsCheckboxes(t,e,n){function createLoadCallback(t){return function(r,o){r=i.$(r).show();var a=e.who(),s=r.find("input");void 0!==a&&null!==a||r.hide(),n.permits("admin",o,a)||r.hide(),n.permits(t,o,null)?s.attr("checked","checked"):s.removeAttr("checked")}}function createSubmitCallback(t){return function(r,o){var a=e.who();void 0!==a&&null!==a&&(o.permissions||(o.permissions={}),i.$(r).find("input").is(":checked")?delete o.permissions[t]:o.permissions[t]=[n.authorizedUserId(a)])}}t.addField({type:"checkbox",label:u("Allow anyone to <strong>view</strong> this annotation"),load:createLoadCallback("read"),submit:createSubmitCallback("read")}),t.addField({type:"checkbox",label:u("Allow anyone to <strong>edit</strong> this annotation"),load:createLoadCallback("update"),submit:createSubmitCallback("update")})}function main(e){function start(t){var c=t.registry.getUtility("identityPolicy"),d=t.registry.getUtility("authorizationPolicy");u.adder=new r.Adder({onCreate:function(e){t.annotations.create(e)}}),u.adder.attach(),u.editor=new o.Editor({extensions:e.editorExtensions}),u.editor.attach(),addPermissionsCheckboxes(u.editor,c,d),u.highlighter=new a.Highlighter(e.element),u.textselector=new s.TextSelector(e.element,{onSelection:function(t,e){if(t.length>0){var r=n(t);u.interactionPoint=i.mousePosition(e),u.adder.load(r,u.interactionPoint)}else u.adder.hide()}}),u.viewer=new l.Viewer({onEdit:function(e){u.interactionPoint=i.$(u.viewer.element).css(["top","left"]),t.annotations.update(e)},onDelete:function(e){t.annotations.delete(e)},permitEdit:function(t){return d.permits("update",t,c.who())},permitDelete:function(t){return d.permits("delete",t,c.who())},autoViewHighlights:e.element,extensions:e.viewerExtensions}),u.viewer.attach(),injectDynamicStyle()}void 0!==e&&null!==e||(e={}),e.element=e.element||t.document.body,e.editorExtensions=e.editorExtensions||[],e.viewerExtensions=e.viewerExtensions||[];var n=annotationFactory(e.element,".annotator-hl"),u={interactionPoint:null};return{start:start,destroy:function(){u.adder.destroy(),u.editor.destroy(),u.highlighter.destroy(),u.textselector.destroy(),u.viewer.destroy(),removeDynamicStyle()},annotationsLoaded:function(t){u.highlighter.drawAll(t)},annotationCreated:function(t){u.highlighter.draw(t)},annotationDeleted:function(t){u.highlighter.undraw(t)},annotationUpdated:function(t){u.highlighter.redraw(t)},beforeAnnotationCreated:function(t){return u.editor.load(t,u.interactionPoint)},beforeAnnotationUpdated:function(t){return u.editor.load(t,u.interactionPoint)}}}var i=n(1),r=n(9),o=n(10),a=n(11),s=n(12),l=n(13),u=i.gettext;e.main=main}).call(e,n(2))},function(t,e,n){"use strict";(function(t){var i=n(1),r=i.gettext,o=e.render=function(e){var n=i.escapeHtml;return t.showdown&&"function"==typeof t.showdown.Converter&&(n=(new t.showdown.Converter).makeHtml),e.text?n(e.text):"<i>"+r("No comment")+"</i>"};e.viewerExtension=function(e){t.showdown&&"function"==typeof t.showdown.Converter||console.warn(r("To use the Markdown plugin, you must include Showdown into the page first.")),e.setRenderer(o)}}).call(e,n(2))},function(t,e,n){"use strict";function stringifyTags(t){return t.join(" ")}function parseTags(t){t=r.trim(t);var e=[];return t&&(e=t.split(/\s+/)),e}var i=n(1),r=i.$,o=i.gettext;e.viewerExtension=function(t){function updateViewer(t,e){t=r(t),e.tags&&r.isArray(e.tags)&&e.tags.length?t.addClass("annotator-tags").html(function(){return r.map(e.tags,function(t){return'<span class="annotator-tag">'+i.escapeHtml(t)+"</span>"}).join(" ")}):t.remove()}t.addField({load:updateViewer})},e.editorExtension=function(t){function updateField(t,e){var i="";e.tags&&(i=stringifyTags(e.tags)),n.val(i)}function setAnnotationTags(t,e){e.tags=parseTags(n.val())}var e=null,n=null;e=t.addField({label:o("Add some tags here")+"…",load:updateField,submit:setAnnotationTags}),n=r(e).find(":input")}},function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function supportsLocalStorage(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}}function savePercent(t,e){return!!supportsLocalStorage()&&(localStorage["wallabag.article."+t+".percent"]=e,!0)}function retrievePercent(t){if(!supportsLocalStorage())return!1;var e=(0,r.default)(document).height(),n=localStorage["wallabag.article."+t+".percent"],i=e*n;return(0,r.default)("html,body").animate({scrollTop:i},"fast"),!0}Object.defineProperty(e,"__esModule",{value:!0}),e.retrievePercent=e.savePercent=void 0;var i=n(0),r=_interopRequireDefault(i);n(15),n(14);var o=n(36);_interopRequireDefault(o);e.savePercent=savePercent,e.retrievePercent=retrievePercent},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){var n={};t.exports=function(t,e){if(!n[t]){n[t]=!0;var i=document.createElement("style");i.setAttribute("type","text/css"),"textContent"in i?i.textContent=t:i.styleSheet.cssText=t;var r=document.getElementsByTagName("head")[0];e&&e.prepend?r.insertBefore(i,r.childNodes[0]):r.appendChild(i)}}},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";t.exports=n(3)},function(t,e){"use strict";!function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i){i=Object(i);for(var r=Object.keys(Object(i)),o=0,a=r.length;o<a;o++){var s=r[o],l=Object.getOwnPropertyDescriptor(i,s);void 0!==l&&l.enumerable&&(e[s]=i[s])}}}return e}})}()},function(t,e){"use strict";t.exports=function(){var t={};return t.utf16to8=function(t){var e,n,i,r;for(e="",i=t.length,n=0;n<i;n++)r=t.charCodeAt(n),r>=1&&r<=127?e+=t.charAt(n):r>2047?(e+=String.fromCharCode(224|r>>12&15),e+=String.fromCharCode(128|r>>6&63),e+=String.fromCharCode(128|r>>0&63)):(e+=String.fromCharCode(192|r>>6&31),e+=String.fromCharCode(128|r>>0&63));return e},t.utf8to16=function(t){var e,n,i,r,o,a;for(e="",i=t.length,n=0;n<i;)switch((r=t.charCodeAt(n++))>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=t.charAt(n-1);break;case 12:case 13:o=t.charCodeAt(n++),e+=String.fromCharCode((31&r)<<6|63&o);break;case 14:o=t.charCodeAt(n++),a=t.charCodeAt(n++),e+=String.fromCharCode((15&r)<<12|(63&o)<<6|(63&a)<<0)}return e},t}()},function(e,n,i){"use strict";i(1),i(4);var r=i(2),o=function(){function t(t){var e=new QRCode(t.typeNumber,t.correctLevel);e.addData(t.text),e.make();var n=document.createElement("canvas");n.width=t.width,n.height=t.height;var i=n.getContext("2d"),r=(t.width-2*t.padding)/e.getModuleCount(),o=(t.height-2*t.padding)/e.getModuleCount();if(t.reverse){var a="rgba(0, 0, 0, 0)";i.fillStyle=a,t.foreground=a}else i.fillStyle=t.background;i.fillRect(0,0,n.width,n.height);for(var s=0;s<e.getModuleCount();s++)for(var l=0;l<e.getModuleCount();l++){i.fillStyle=e.isDark(s,l)?t.foreground:t.background;var u=Math.ceil((l+1)*r)-Math.floor(l*r),c=Math.ceil((s+1)*r)-Math.floor(s*r);i.fillRect(Math.round(l*r)+t.padding,Math.round(s*o)+t.padding,u,c)}return n}var e={};return e.getQrBase64=function(e,n){"string"!=typeof e&&(e=""),"string"==typeof n?n={text:n}:"object"!=typeof n&&(n={}),n=Object.assign({padding:10,width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,reverse:!1,background:"#ffffff",foreground:"#000000"},n);try{n.text=r.utf16to8(e)}catch(t){n.text=""+t}return t(n).toDataURL()},e.QRErrorCorrectLevel=QRErrorCorrectLevel,e}();!window.jrQrcode&&(window.jrQrcode=o),e.exports=o},function(t,e){function r(t){this.mode=s.MODE_8BIT_BYTE,this.data=t}function o(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function n(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&0==t[n];)n++;this.num=new Array(t.length-n+e);for(var i=0;i<t.length-n;i++)this.num[i]=t[i+n]}function i(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=new Array,this.length=0}r.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},o.prototype={addData:function(t){var e=new r(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),n=new a,r=0,o=0;o<e.length;o++)r+=e[o].dataCount;for(var o=0;o<this.dataList.length;o++){var s=this.dataList[o];n.put(s.mode,4),n.put(s.getLength(),c.getLengthInBits(s.mode,t)),s.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+n][e+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=c.getLostPoint(this);(0==n||t>i)&&(t=i,e=n)}return e},createMovieClip:function(t,e,n){var i=t.createEmptyMovieClip(e,n);this.make();for(var r=0;r<this.modules.length;r++)for(var o=1*r,a=0;a<this.modules[r].length;a++){var s=1*a,l=this.modules[r][a];l&&(i.beginFill(0,100),i.moveTo(s,o),i.lineTo(s+1,o),i.lineTo(s+1,o+1),i.lineTo(s,o+1),i.endFill())}return i},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=c.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var i=t[e],r=t[n];if(null==this.modules[i][r])for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)this.modules[i+o][r+a]=-2==o||2==o||-2==a||2==a||0==o&&0==a}},setupTypeNumber:function(t){for(var e=c.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(var n=0;n<18;n++){var i=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,i=c.getBCHTypeInfo(n),r=0;r<15;r++){var o=!t&&1==(i>>r&1);r<6?this.modules[r][8]=o:r<8?this.modules[r+1][8]=o:this.modules[this.moduleCount-15+r][8]=o}for(var r=0;r<15;r++){var o=!t&&1==(i>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=o:r<9?this.modules[8][15-r-1+1]=o:this.modules[8][15-r-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,i=this.moduleCount-1,r=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[i][a-s]){var l=!1;o<t.length&&(l=1==(t[o]>>>r&1));var u=c.getMask(e,i,a-s);u&&(l=!l),this.modules[i][a-s]=l,-1==--r&&(o++,r=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},o.PAD0=236,o.PAD1=17,o.createData=function(t,e,n){for(var r=i.getRSBlocks(t,e),s=new a,l=0;l<n.length;l++){var u=n[l];s.put(u.mode,4),s.put(u.getLength(),c.getLengthInBits(u.mode,t)),u.write(s)}for(var d=0,l=0;l<r.length;l++)d+=r[l].dataCount;if(s.getLengthInBits()>8*d)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(o.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(o.PAD1,8);return o.createBytes(s,r)},o.createBytes=function(t,e){for(var i=0,r=0,o=0,a=new Array(e.length),s=new Array(e.length),l=0;l<e.length;l++){var u=e[l].dataCount,d=e[l].totalCount-u;r=Math.max(r,u),o=Math.max(o,d),a[l]=new Array(u);for(var f=0;f<a[l].length;f++)a[l][f]=255&t.buffer[f+i];i+=u;var h=c.getErrorCorrectPolynomial(d),p=new n(a[l],h.getLength()-1),g=p.mod(h);s[l]=new Array(h.getLength()-1);for(var f=0;f<s[l].length;f++){var v=f+g.getLength()-s[l].length;s[l][f]=v>=0?g.get(v):0}}for(var m=0,f=0;f<e.length;f++)m+=e[f].totalCount;for(var y=new Array(m),b=0,f=0;f<r;f++)for(var l=0;l<e.length;l++)f<a[l].length&&(y[b++]=a[l][f]);for(var f=0;f<o;f++)for(var l=0;l<e.length;l++)f<s[l].length&&(y[b++]=s[l][f]);return y};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},l={L:1,M:0,Q:3,H:2},u={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;c.getBCHDigit(e)-c.getBCHDigit(c.G15)>=0;)e^=c.G15<<c.getBCHDigit(e)-c.getBCHDigit(c.G15);return(t<<10|e)^c.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;c.getBCHDigit(e)-c.getBCHDigit(c.G18)>=0;)e^=c.G18<<c.getBCHDigit(e)-c.getBCHDigit(c.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return c.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case u.PATTERN000:return(e+n)%2==0;case u.PATTERN001:return e%2==0;case u.PATTERN010:return n%3==0;case u.PATTERN011:return(e+n)%3==0;case u.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case u.PATTERN101:return e*n%2+e*n%3==0;case u.PATTERN110:return(e*n%2+e*n%3)%2==0;case u.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new n([1],0),i=0;i<t;i++)e=e.multiply(new n([1,d.gexp(i)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:case s.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,i=0;i<e;i++)for(var r=0;r<e;r++){for(var o=0,a=t.isDark(i,r),s=-1;s<=1;s++)if(!(i+s<0||e<=i+s))for(var l=-1;l<=1;l++)r+l<0||e<=r+l||0==s&&0==l||a==t.isDark(i+s,r+l)&&o++;o>5&&(n+=3+o-5)}for(var i=0;i<e-1;i++)for(var r=0;r<e-1;r++){var u=0;t.isDark(i,r)&&u++,t.isDark(i+1,r)&&u++,t.isDark(i,r+1)&&u++,t.isDark(i+1,r+1)&&u++,0!=u&&4!=u||(n+=3)}for(var i=0;i<e;i++)for(var r=0;r<e-6;r++)t.isDark(i,r)&&!t.isDark(i,r+1)&&t.isDark(i,r+2)&&t.isDark(i,r+3)&&t.isDark(i,r+4)&&!t.isDark(i,r+5)&&t.isDark(i,r+6)&&(n+=40);for(var r=0;r<e;r++)for(var i=0;i<e-6;i++)t.isDark(i,r)&&!t.isDark(i+1,r)&&t.isDark(i+2,r)&&t.isDark(i+3,r)&&t.isDark(i+4,r)&&!t.isDark(i+5,r)&&t.isDark(i+6,r)&&(n+=40);for(var c=0,r=0;r<e;r++)for(var i=0;i<e;i++)t.isDark(i,r)&&c++;return n+=Math.abs(100*c/e/e-50)/5*10}},d={glog:function(t){if(t<1)throw new Error("glog("+t+")");return d.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return d.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},f=0;f<8;f++)d.EXP_TABLE[f]=1<<f;for(var f=8;f<256;f++)d.EXP_TABLE[f]=d.EXP_TABLE[f-4]^d.EXP_TABLE[f-5]^d.EXP_TABLE[f-6]^d.EXP_TABLE[f-8];for(var f=0;f<255;f++)d.LOG_TABLE[d.EXP_TABLE[f]]=f;n.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),i=0;i<this.getLength();i++)for(var r=0;r<t.getLength();r++)e[i+r]^=d.gexp(d.glog(this.get(i))+d.glog(t.get(r)));return new n(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=d.glog(this.get(0))-d.glog(t.get(0)),i=new Array(this.getLength()),r=0;r<this.getLength();r++)i[r]=this.get(r);for(var r=0;r<t.getLength();r++)i[r]^=d.gexp(d.glog(t.get(r))+e);return new n(i,0).mod(t)}},i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(t,e){var n=i.getRsBlockTable(t,e);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var r=n.length/3,o=new Array,a=0;a<r;a++)for(var s=n[3*a+0],l=n[3*a+1],u=n[3*a+2],c=0;c<s;c++)o.push(new i(l,u));return o},i.getRsBlockTable=function(t,e){switch(e){case l.L:return i.RS_BLOCK_TABLE[4*(t-1)+0];case l.M:return i.RS_BLOCK_TABLE[4*(t-1)+1];case l.Q:return i.RS_BLOCK_TABLE[4*(t-1)+2];case l.H:return i.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},window.QRCode=o,window.QRErrorCorrectLevel=l;try{t.exports={QRCode:o,QRErrorCorrectLevel:l}}catch(t){}}])})},function(t,e){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(t){if(n===setTimeout)return setTimeout(t,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function runClearTimeout(t){if(i===clearTimeout)return clearTimeout(t);if((i===defaultClearTimeout||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}function cleanUpNextTick(){s&&o&&(s=!1,o.length?a=o.concat(a):l=-1,a.length&&drainQueue())}function drainQueue(){if(!s){var t=runTimeout(cleanUpNextTick);s=!0;for(var e=a.length;e;){for(o=a,a=[];++l<e;)o&&o[l].run();l=-1,e=a.length}o=null,s=!1,runClearTimeout(t)}}function Item(t,e){this.fun=t,this.array=e}function noop(){}var n,i,r=t.exports={};!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(t){n=defaultSetTimout}try{i="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(t){i=defaultClearTimeout}}();var o,a=[],s=!1,l=-1;r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new Item(t,e)),1!==a.length||s||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=noop,r.addListener=noop,r.once=noop,r.off=noop,r.removeListener=noop,r.removeAllListeners=noop,r.emit=noop,r.prependListener=noop,r.prependOnceListener=noop,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){(function(){var e,i,r,o,a={}.hasOwnProperty,s=function(t,e){function ctor(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return ctor.prototype=e.prototype,t.prototype=new ctor,t.__super__=e.prototype,t};o=n(20),r=n(19),e=n(0),i={},i.sniff=function(t){return null!=t.commonAncestorContainer?new i.BrowserRange(t):"string"==typeof t.start?new i.SerializedRange(t):t.start&&"object"==typeof t.start?new i.NormalizedRange(t):(console.error("Could not sniff range type"),!1)},i.RangeError=function(t){function RangeError(t,e,n){this.type=t,this.message=e,this.parent=null!=n?n:null,RangeError.__super__.constructor.call(this,this.message)}return s(RangeError,t),RangeError}(Error),i.BrowserRange=function(){function BrowserRange(t){this.commonAncestorContainer=t.commonAncestorContainer,this.startContainer=t.startContainer,this.startOffset=t.startOffset,this.endContainer=t.endContainer,this.endOffset=t.endOffset}return BrowserRange.prototype.normalize=function(t){var e,n;if(this.tainted)return console.error("You may only call normalize() once on a BrowserRange!"),!1;for(this.tainted=!0,n={},this._normalizeStart(n),this._normalizeEnd(n),e={},n.startOffset>0?n.start.nodeValue.length>n.startOffset?e.start=n.start.splitText(n.startOffset):e.start=n.start.nextSibling:e.start=n.start,n.start===n.end?(e.start.nodeValue.length>n.endOffset-n.startOffset&&e.start.splitText(n.endOffset-n.startOffset),e.end=e.start):(n.end.nodeValue.length>n.endOffset&&n.end.splitText(n.endOffset),e.end=n.end),e.commonAncestor=this.commonAncestorContainer;e.commonAncestor.nodeType!==r.NodeTypes.ELEMENT_NODE;)e.commonAncestor=e.commonAncestor.parentNode;return new i.NormalizedRange(e)},BrowserRange.prototype._normalizeStart=function(t){return this.startContainer.nodeType===r.NodeTypes.ELEMENT_NODE?(t.start=r.getFirstTextNodeNotBefore(this.startContainer.childNodes[this.startOffset]),t.startOffset=0):(t.start=this.startContainer,t.startOffset=this.startOffset)},BrowserRange.prototype._normalizeEnd=function(t){var e,n;if(this.endContainer.nodeType!==r.NodeTypes.ELEMENT_NODE)return t.end=this.endContainer,t.endOffset=this.endOffset;if(null!=(n=this.endContainer.childNodes[this.endOffset])){for(e=n;null!=e&&e.nodeType!==r.NodeTypes.TEXT_NODE;)e=e.firstChild;null!=e&&(t.end=e,t.endOffset=0)}return null==t.end?(n=this.endOffset?this.endContainer.childNodes[this.endOffset-1]:this.endContainer.previousSibling,t.end=r.getLastTextNodeUpTo(n),t.endOffset=t.end.nodeValue.length):void 0},BrowserRange.prototype.serialize=function(t,e){return this.normalize(t).serialize(t,e)},BrowserRange}(),i.NormalizedRange=function(){function NormalizedRange(t){this.commonAncestor=t.commonAncestor,this.start=t.start,this.end=t.end}return NormalizedRange.prototype.normalize=function(t){return this},NormalizedRange.prototype.limit=function(t){var n,i,r,o,a,s;if(n=e.grep(this.textNodes(),function(n){return n.parentNode===t||e.contains(t,n.parentNode)}),!n.length)return null;for(this.start=n[0],this.end=n[n.length-1],r=e(this.start).parents(),s=e(this.end).parents(),o=0,a=s.length;o<a;o++)if(i=s[o],-1!==r.index(i)){this.commonAncestor=i;break}return this},NormalizedRange.prototype.serialize=function(t,n){var a,s,l;return s=function(i,a){var s,l,u,c,d,f,h,p;for(c=n?e(i).parents(":not("+n+")").eq(0):e(i).parent(),d=o.fromNode(c,t)[0],f=r.getTextNodes(c),l=f.slice(0,f.index(i)),u=0,h=0,p=l.length;h<p;h++)s=l[h],u+=s.nodeValue.length;return a?[d,u+i.nodeValue.length]:[d,u]},l=s(this.start),a=s(this.end,!0),new i.SerializedRange({start:l[0],end:a[0],startOffset:l[1],endOffset:a[1]})},NormalizedRange.prototype.text=function(){var t;return function(){var e,n,i,r;for(i=this.textNodes(),r=[],e=0,n=i.length;e<n;e++)t=i[e],r.push(t.nodeValue);return r}.call(this).join("")},NormalizedRange.prototype.textNodes=function(){var t,n,i,o;return i=r.getTextNodes(e(this.commonAncestor)),o=[i.index(this.start),i.index(this.end)],n=o[0],t=o[1],e.makeArray(i.slice(n,+t+1||9e9))},NormalizedRange}(),i.SerializedRange=function(){function SerializedRange(t){this.start=t.start,this.startOffset=t.startOffset,this.end=t.end,this.endOffset=t.endOffset}return SerializedRange.prototype.normalize=function(t){var n,a,s,l,u,c,d,f,h,p,g,v,m,y;for(c={},m=["start","end"],h=0,g=m.length;h<g;h++){u=m[h];try{l=o.toNode(this[u],t)}catch(t){throw a=t,new i.RangeError(u,"Error while finding "+u+" node: "+this[u]+": "+a,a)}if(!l)throw new i.RangeError(u,"Couldn't find "+u+" node: "+this[u]);for(s=0,d=this[u+"Offset"],"end"===u&&(d-=1),y=r.getTextNodes(e(l)),p=0,v=y.length;p<v;p++){if(f=y[p],s+f.nodeValue.length>d){c[u+"Container"]=f,c[u+"Offset"]=this[u+"Offset"]-s;break}s+=f.nodeValue.length}if(null==c[u+"Offset"])throw new i.RangeError(u+"offset","Couldn't find offset "+this[u+"Offset"]+" in element "+this[u])}return n=null!=document.compareDocumentPosition?function(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY}:function(t,e){return t.contains(e)},e(c.startContainer).parents().each(function(){var t;if(t=c.endContainer.nodeType===r.NodeTypes.TEXT_NODE?c.endContainer.parentNode:c.endContainer,n(this,t))return c.commonAncestorContainer=this,!1}),new i.BrowserRange(c).normalize(t)},SerializedRange.prototype.serialize=function(t,e){return this.normalize(t).serialize(t,e)},SerializedRange.prototype.toObject=function(){return{start:this.start,startOffset:this.startOffset,end:this.end,endOffset:this.endOffset}},SerializedRange}(),t.exports=i}).call(this)},function(t,e){},,,,function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var i=n(4),r=_interopRequireDefault(i),o=n(0),a=_interopRequireDefault(o);(0,a.default)(document).ready(function(){(0,a.default)("#article").length>0&&(r.default.bind("o",function(){(0,a.default)("ul.side-nav a.original i")[0].click()}),r.default.bind("f",function(){(0,a.default)("ul.side-nav a.favorite i")[0].click()}),r.default.bind("a",function(){(0,a.default)("ul.side-nav a.markasread i")[0].click()}),r.default.bind("del",function(){(0,a.default)("ul.side-nav a.delete i")[0].click()}))})},function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function toggleFocus(t){t&&(0,a.default)(t).toggleClass("z-depth-4")}var i=n(4),r=_interopRequireDefault(i),o=n(0),a=_interopRequireDefault(o);(0,a.default)(document).ready(function(){var t=(0,a.default)("#content").find(".card"),e=t.length,n=0;"#prev"===window.location.hash&&(n=e-1);var i=t[n],o=(0,a.default)(".pagination");(0,a.default)("#content > div.quickstart").length>0||(0,a.default)("#username").length>0||(0,a.default)("#fos_user_registration_form_username").length>0||(0,a.default)("#username").length>0||(0,a.default)("#fos_user_registration_form_username").length>0||(toggleFocus(i),r.default.bind("g n",function(){return(0,a.default)("#nav-btn-add").trigger("click"),!1}),r.default.bind("s",function(){return(0,a.default)("#nav-btn-search").trigger("click"),!1}),r.default.bind("esc",function(){(0,a.default)(".close").trigger("click")}),r.default.bind("right",function(){if(n>=0&&n<e-1)return toggleFocus(i),n+=1,i=t[n],void toggleFocus(i);o.length>0&&o.find("li.next:not(.disabled)").length>0&&n===e-1&&(window.location.href=window.location.origin+(0,a.default)(o).find("li.next a").attr("href"))}),r.default.bind("left",function(){if(n>0&&n<e)return toggleFocus(i),n-=1,i=t[n],void toggleFocus(i);o.length>0&&(0,a.default)(o).find("li.prev:not(.disabled)").length>0&&0===n&&(window.location.href=window.location.origin+(0,a.default)(o).find("li.prev a").attr("href")+"#prev")}),r.default.bind("enter",function(){window.location.href=window.location.origin+(0,a.default)(i).find("span.card-title a").attr("href")}))})},function(t,e,n){"use strict";function initFilters(){(0,r.default)("div").is("#filters")&&((0,r.default)("#button_filters").show(),(0,r.default)(".js-filters-action").sideNav({edge:"right"}),(0,r.default)("#clear_form_filters").on("click",function(){return(0,r.default)("#filters input").val(""),(0,r.default)("#filters :checked").removeAttr("checked"),!1}))}function initExport(){(0,r.default)("div").is("#export")&&((0,r.default)("#button_export").show(),(0,r.default)(".js-export-action").sideNav({edge:"right"}))}Object.defineProperty(e,"__esModule",{value:!0}),e.initFilters=e.initExport=void 0;var i=n(0),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.initExport=initExport,e.initFilters=initFilters},,function(t,e){},function(t,e){},function(e,i,a){(function(d,f){var h,g,g,h,b,g,b,h,T,h,b,g;if(void 0===C){var C;C=d=a(0)}C.easing.jswing=C.easing.swing,C.extend(C.easing,{def:"easeOutQuad",swing:function(t,e,n,i,r){return C.easing[C.easing.def](t,e,n,i,r)},easeInQuad:function(t,e,n,i,r){return i*(e/=r)*e+n},easeOutQuad:function(t,e,n,i,r){return-i*(e/=r)*(e-2)+n},easeInOutQuad:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,i,r){return i*(e/=r)*e*e+n},easeOutCubic:function(t,e,n,i,r){return i*((e=e/r-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,i,r){return i*(e/=r)*e*e*e+n},easeOutQuart:function(t,e,n,i,r){return-i*((e=e/r-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,i,r){return i*(e/=r)*e*e*e*e+n},easeOutQuint:function(t,e,n,i,r){return i*((e=e/r-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,i,r){return-i*Math.cos(e/r*(Math.PI/2))+i+n},easeOutSine:function(t,e,n,i,r){return i*Math.sin(e/r*(Math.PI/2))+n},easeInOutSine:function(t,e,n,i,r){return-i/2*(Math.cos(Math.PI*e/r)-1)+n},easeInExpo:function(t,e,n,i,r){return 0==e?n:i*Math.pow(2,10*(e/r-1))+n},easeOutExpo:function(t,e,n,i,r){return e==r?n+i:i*(1-Math.pow(2,-10*e/r))+n},easeInOutExpo:function(t,e,n,i,r){return 0==e?n:e==r?n+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(2-Math.pow(2,-10*--e))+n},easeInCirc:function(t,e,n,i,r){return-i*(Math.sqrt(1-(e/=r)*e)-1)+n},easeOutCirc:function(t,e,n,i,r){return i*Math.sqrt(1-(e=e/r-1)*e)+n},easeInOutCirc:function(t,e,n,i,r){return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,i,r){var o=1.70158,a=0,s=i;if(0==e)return n;if(1==(e/=r))return n+i;if(a||(a=.3*r),s<Math.abs(i)){s=i;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(i/s);return-s*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)+n},easeOutElastic:function(t,e,n,i,r){var o=1.70158,a=0,s=i;if(0==e)return n;if(1==(e/=r))return n+i;if(a||(a=.3*r),s<Math.abs(i)){s=i;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(i/s);return s*Math.pow(2,-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+i+n},easeInOutElastic:function(t,e,n,i,r){var o=1.70158,a=0,s=i;if(0==e)return n;if(2==(e/=r/2))return n+i;if(a||(a=r*(.3*1.5)),s<Math.abs(i)){s=i;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(i/s);return e<1?s*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)*-.5+n:s*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)*.5+i+n},easeInBack:function(t,e,n,i,r,o){return void 0==o&&(o=1.70158),i*(e/=r)*e*((o+1)*e-o)+n},easeOutBack:function(t,e,n,i,r,o){return void 0==o&&(o=1.70158),i*((e=e/r-1)*e*((o+1)*e+o)+1)+n},easeInOutBack:function(t,e,n,i,r,o){return void 0==o&&(o=1.70158),(e/=r/2)<1?i/2*(e*e*((1+(o*=1.525))*e-o))+n:i/2*((e-=2)*e*((1+(o*=1.525))*e+o)+2)+n},easeInBounce:function(t,e,n,i,r){return i-C.easing.easeOutBounce(t,r-e,0,i,r)+n},easeOutBounce:function(t,e,n,i,r){return(e/=r)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,i,r){return e<r/2?.5*C.easing.easeInBounce(t,2*e,0,i,r)+n:.5*C.easing.easeOutBounce(t,2*e-r,0,i,r)+.5*i+n}}),C.extend(C.easing,{easeInOutMaterial:function(t,e,n,i,r){return(e/=r/2)<1?i/2*e*e+n:i/4*((e-=2)*e*e+2)+n}}),C.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(n){function t(t){var e=t.length,n=i.type(t);return"function"!==n&&!i.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}if(!f){var i=function(t,e){return new i.fn.init(t,e)};i.isWindow=function(t){return null!=t&&t==t.window},i.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?o[s.call(t)]||"object":typeof t},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!a.call(t,"constructor")&&!a.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||a.call(t,e)},i.each=function(e,n,i){var r=0,o=e.length,a=t(e);if(i){if(a)for(;o>r&&!1!==n.apply(e[r],i);r++);else for(r in e)if(!1===n.apply(e[r],i))break}else if(a)for(;o>r&&!1!==n.call(e[r],r,e[r]);r++);else for(r in e)if(!1===n.call(e[r],r,e[r]))break;return e},i.data=function(t,e,n){if(void 0===n){var o=t[i.expando],a=o&&r[o];if(void 0===e)return a;if(a&&e in a)return a[e]}else if(void 0!==e){var o=t[i.expando]||(t[i.expando]=++i.uuid);return r[o]=r[o]||{},r[o][e]=n,n}},i.removeData=function(t,e){var n=t[i.expando],o=n&&r[n];o&&i.each(e,function(t,e){delete o[e]})},i.extend=function(){var t,e,n,r,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!==i.type(s)&&(s={}),l===u&&(s=this,l--);u>l;l++)if(null!=(o=arguments[l]))for(r in o)t=s[r],n=o[r],s!==n&&(c&&n&&(i.isPlainObject(n)||(e=i.isArray(n)))?(e?(e=!1,a=t&&i.isArray(t)?t:[]):a=t&&i.isPlainObject(t)?t:{},s[r]=i.extend(c,a,n)):void 0!==n&&(s[r]=n));return s},i.queue=function(e,n,r){if(e){n=(n||"fx")+"queue";var o=i.data(e,n);return r?(!o||i.isArray(r)?o=i.data(e,n,function(e,n){var i=n||[];return null!=e&&(t(Object(e))?function(t,e){for(var n=+e.length,i=0,r=t.length;n>i;)t[r++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[r++]=e[i++];t.length=r}(i,"string"==typeof e?[e]:e):[].push.call(i,e)),i}(r)):o.push(r),o):o||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,n){e=e||"fx";var r=i.queue(n,e),o=r.shift();"inprogress"===o&&(o=r.shift()),o&&("fx"===e&&r.unshift("inprogress"),o.call(n,function(){i.dequeue(n,e)}))})},i.fn=i.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(n.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(n.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var t=this[0],e=e.apply(t),n=this.offset(),r=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:i(e).offset();return n.top-=parseFloat(t.style.marginTop)||0,n.left-=parseFloat(t.style.marginLeft)||0,e.style&&(r.top+=parseFloat(e.style.borderTopWidth)||0,r.left+=parseFloat(e.style.borderLeftWidth)||0),{top:n.top-r.top,left:n.left-r.left}}};var r={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var o={},a=o.hasOwnProperty,s=o.toString,l="Boolean Number String Function Array Date RegExp Object Error".split(" "),u=0;u<l.length;u++)o["[object "+l[u]+"]"]=l[u].toLowerCase();i.fn.init.prototype=i.fn,n.Velocity={Utilities:i}}}(window),function(t){"object"==typeof e&&"object"==typeof e.exports?e.exports=t():(h=t,void 0!==(g="function"==typeof h?h.call(i,a,i,e):h)&&(e.exports=g))}(function(){return function(r,a,h,v){function n(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var r=t[e];r&&i.push(r)}return i}function o(t){return w.isWrapped(t)?t=[].slice.call(t):w.isNode(t)&&(t=[t]),t}function i(t){var e=m.data(t,"velocity");return null===e?v:e}function s(t){return function(e){return Math.round(e*t)*(1/t)}}function l(t,e,n,r){function o(t,e){return 1-3*e+3*t}function i(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,n){return((o(e,n)*t+i(e,n))*t+s(e))*t}function u(t,e,n){return 3*o(e,n)*t*t+2*i(e,n)*t+s(e)}function c(e,i){for(var r=0;h>r;++r){var o=u(i,t,n);if(0===o)return i;i-=(l(i,t,n)-e)/o}return i}function p(){for(var e=0;b>e;++e)C[e]=l(e*w,t,n)}function f(e,i,r){var o,a,s=0;do{a=i+(r-i)/2,o=l(a,t,n)-e,o>0?r=a:i=a}while(Math.abs(o)>m&&++s<y);return a}function d(e){for(var i=0,r=1,o=b-1;r!=o&&C[r]<=e;++r)i+=w;--r;var a=(e-C[r])/(C[r+1]-C[r]),s=i+a*w,l=u(s,t,n);return l>=v?c(e,s):0==l?s:f(e,i,i+w)}function g(){k=!0,(t!=e||n!=r)&&p()}var h=4,v=.001,m=1e-7,y=10,b=11,w=1/(b-1),x="Float32Array"in a;if(4!==arguments.length)return!1;for(var T=0;4>T;++T)if("number"!=typeof arguments[T]||isNaN(arguments[T])||!isFinite(arguments[T]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var C=x?new Float32Array(b):new Array(b),k=!1,E=function(i){return k||g(),t===e&&n===r?i:0===i?0:1===i?1:l(d(i),e,r)};E.getControlPoints=function(){return[{x:t,y:e},{x:n,y:r}]};var S="generateBezier("+[t,e,n,r]+")";return E.toString=function(){return S},E}function u(t,e){var n=t;return w.isString(t)?E.Easings[t]||(n=!1):n=w.isArray(t)&&1===t.length?s.apply(null,t):w.isArray(t)&&2===t.length?S.apply(null,t.concat([e])):!(!w.isArray(t)||4!==t.length)&&l.apply(null,t),!1===n&&(n=E.Easings[E.defaults.easing]?E.defaults.easing:k),n}function c(t){if(t){var e=(new Date).getTime(),r=E.State.calls.length;r>1e4&&(E.State.calls=n(E.State.calls));for(var o=0;r>o;o++)if(E.State.calls[o]){var a=E.State.calls[o],s=a[0],l=a[2],u=a[3],d=!!u,f=null;u||(u=E.State.calls[o][3]=e-16);for(var h=Math.min((e-u)/l.duration,1),g=0,y=s.length;y>g;g++){var b=s[g],x=b.element;if(i(x)){var T=!1;if(l.display!==v&&null!==l.display&&"none"!==l.display){if("flex"===l.display){var C=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];m.each(C,function(t,e){_.setPropertyValue(x,"display",e)})}_.setPropertyValue(x,"display",l.display)}l.visibility!==v&&"hidden"!==l.visibility&&_.setPropertyValue(x,"visibility",l.visibility);for(var k in b)if("element"!==k){var S,A=b[k],D=w.isString(A.easing)?E.Easings[A.easing]:A.easing;if(1===h)S=A.endValue;else{var O=A.endValue-A.startValue;if(S=A.startValue+O*D(h,l,O),!d&&S===A.currentValue)continue}if(A.currentValue=S,"tween"===k)f=S;else{if(_.Hooks.registered[k]){var N=_.Hooks.getRoot(k),M=i(x).rootPropertyValueCache[N];M&&(A.rootPropertyValue=M)}var I=_.setPropertyValue(x,k,A.currentValue+(0===parseFloat(S)?"":A.unitType),A.rootPropertyValue,A.scrollData);_.Hooks.registered[k]&&(i(x).rootPropertyValueCache[N]=_.Normalizations.registered[N]?_.Normalizations.registered[N]("extract",null,I[1]):I[1]),"transform"===I[0]&&(T=!0)}}l.mobileHA&&i(x).transformCache.translate3d===v&&(i(x).transformCache.translate3d="(0px, 0px, 0px)",T=!0),T&&_.flushTransformCache(x)}}l.display!==v&&"none"!==l.display&&(E.State.calls[o][2].display=!1),l.visibility!==v&&"hidden"!==l.visibility&&(E.State.calls[o][2].visibility=!1),l.progress&&l.progress.call(a[1],a[1],h,Math.max(0,u+l.duration-e),u,f),1===h&&p(o)}}E.State.isTicking&&P(c)}function p(t,e){if(!E.State.calls[t])return!1;for(var n=E.State.calls[t][0],r=E.State.calls[t][1],o=E.State.calls[t][2],a=E.State.calls[t][4],s=!1,l=0,u=n.length;u>l;l++){var c=n[l].element;if(e||o.loop||("none"===o.display&&_.setPropertyValue(c,"display",o.display),"hidden"===o.visibility&&_.setPropertyValue(c,"visibility",o.visibility)),!0!==o.loop&&(m.queue(c)[1]===v||!/\.velocityQueueEntryFlag/i.test(m.queue(c)[1]))&&i(c)){i(c).isAnimating=!1,i(c).rootPropertyValueCache={};var d=!1;m.each(_.Lists.transforms3D,function(t,e){var n=/^scale/.test(e)?1:0,r=i(c).transformCache[e];i(c).transformCache[e]!==v&&new RegExp("^\\("+n+"[^.]").test(r)&&(d=!0,delete i(c).transformCache[e])}),o.mobileHA&&(d=!0,delete i(c).transformCache.translate3d),d&&_.flushTransformCache(c),_.Values.removeClass(c,"velocity-animating")}if(!e&&o.complete&&!o.loop&&l===u-1)try{o.complete.call(r,r)}catch(t){setTimeout(function(){throw t},1)}a&&!0!==o.loop&&a(r),i(c)&&!0===o.loop&&!e&&(m.each(i(c).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),E(c,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&m.dequeue(c,o.queue)}E.State.calls[t]=!1;for(var f=0,h=E.State.calls.length;h>f;f++)if(!1!==E.State.calls[f]){s=!0;break}!1===s&&(E.State.isTicking=!1,delete E.State.calls,E.State.calls=[])}var m,y=function(){if(h.documentMode)return h.documentMode;for(var t=7;t>4;t--){var e=h.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return v}(),b=function(){var t=0;return a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||function(e){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-t)),t=i+n,setTimeout(function(){e(i+n)},n)}}(),w={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==v&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||a.Zepto&&a.Zepto.zepto.isZ(t))},isSVG:function(t){return a.SVGElement&&t instanceof a.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},x=!1;if(r.fn&&r.fn.jquery?(m=r,x=!0):m=a.Velocity.Utilities,8>=y&&!x)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=y)return void(C.fn.velocity=C.fn.animate);var T=400,k="swing",E={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:a.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:h.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:m,Redirects:{},Easings:{},Promise:a.Promise,defaults:{queue:"",duration:T,easing:k,begin:v,complete:v,progress:v,display:v,visibility:v,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){m.data(t,"velocity",{isSVG:w.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};a.pageYOffset!==v?(E.State.scrollAnchor=a,E.State.scrollPropertyLeft="pageXOffset",E.State.scrollPropertyTop="pageYOffset"):(E.State.scrollAnchor=h.documentElement||h.body.parentNode||h.body,E.State.scrollPropertyLeft="scrollLeft",E.State.scrollPropertyTop="scrollTop");var S=function(){function e(t){return-t.tension*t.x-t.friction*t.v}function t(t,n,i){var r={x:t.x+i.dx*n,v:t.v+i.dv*n,tension:t.tension,friction:t.friction};return{dx:r.v,dv:e(r)}}function r(n,i){var r={dx:n.v,dv:e(n)},o=t(n,.5*i,r),a=t(n,.5*i,o),s=t(n,i,a),l=1/6*(r.dx+2*(o.dx+a.dx)+s.dx),u=1/6*(r.dv+2*(o.dv+a.dv)+s.dv);return n.x=n.x+l*i,n.v=n.v+u*i,n}return function a(t,e,n){var i,o,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0;for(t=parseFloat(t)||500,e=parseFloat(e)||20,n=n||null,l.tension=t,l.friction=e,i=null!==n,i?(c=a(t,e),o=c/n*.016):o=.016;s=r(s||l,o),u.push(1+s.x),c+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return i?function(t){return u[t*(u.length-1)|0]}:c}}();E.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},m.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){E.Easings[e[0]]=l.apply(null,e[1])});var _=E.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t<_.Lists.colors.length;t++){var e="color"===_.Lists.colors[t]?"0 0 0 1":"255 255 255 1";_.Hooks.templates[_.Lists.colors[t]]=["Red Green Blue Alpha",e]}var n,i,r;if(y)for(n in _.Hooks.templates){i=_.Hooks.templates[n],r=i[0].split(" ");var o=i[1].match(_.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),o.push(o.shift()),_.Hooks.templates[n]=[r.join(" "),o.join(" ")])}for(n in _.Hooks.templates){i=_.Hooks.templates[n],r=i[0].split(" ");for(var t in r){var a=n+r[t],s=t;_.Hooks.registered[a]=[n,s]}}},getRoot:function(t){var e=_.Hooks.registered[t];return e?e[0]:t},cleanRootPropertyValue:function(t,e){return _.RegEx.valueUnwrap.test(e)&&(e=e.match(_.RegEx.valueUnwrap)[1]),_.Values.isCSSNullValue(e)&&(e=_.Hooks.templates[t][1]),e},extractValue:function(t,e){var n=_.Hooks.registered[t];if(n){var i=n[0],r=n[1];return e=_.Hooks.cleanRootPropertyValue(i,e),e.toString().match(_.RegEx.valueSplit)[r]}return e},injectValue:function(t,e,n){var i=_.Hooks.registered[t];if(i){var r,o=i[0],a=i[1];return n=_.Hooks.cleanRootPropertyValue(o,n),r=n.toString().match(_.RegEx.valueSplit),r[a]=e,r.join(" ")}return n}},Normalizations:{registered:{clip:function(t,e,n){switch(t){case"name":return"clip";case"extract":var i;return _.RegEx.wrappedValueAlreadyExtracted.test(n)?i=n:(i=n.toString().match(_.RegEx.valueUnwrap),i=i?i[1].replace(/,(\s+)?/g," "):n),i;case"inject":return"rect("+n+")"}},blur:function(t,e,n){switch(t){case"name":return E.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var r=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=r?r[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(t,e,n){if(8>=y)switch(t){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){9>=y||E.State.isGingerbread||(_.Lists.transformsBase=_.Lists.transformsBase.concat(_.Lists.transforms3D));for(var t=0;t<_.Lists.transformsBase.length;t++)!function(){var e=_.Lists.transformsBase[t];_.Normalizations.registered[e]=function(t,n,r){switch(t){case"name":return"transform";case"extract":return i(n)===v||i(n).transformCache[e]===v?/^scale/i.test(e)?1:0:i(n).transformCache[e].replace(/[()]/g,"");case"inject":var o=!1;switch(e.substr(0,e.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":E.State.isAndroid&&i(n).transformCache[e]===v&&1>r&&(r=1),o=!/(\d)$/i.test(r);break;case"skew":o=!/(deg|\d)$/i.test(r);break;case"rotate":o=!/(deg|\d)$/i.test(r)}return o||(i(n).transformCache[e]="("+r+")"),i(n).transformCache[e]}}}();for(var t=0;t<_.Lists.colors.length;t++)!function(){var e=_.Lists.colors[t];_.Normalizations.registered[e]=function(t,n,i){switch(t){case"name":return e;case"extract":var r;if(_.RegEx.wrappedValueAlreadyExtracted.test(i))r=i;else{var o,a={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(i)?o=a[i]!==v?a[i]:a.black:_.RegEx.isHex.test(i)?o="rgb("+_.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(o=a.black),r=(o||i).toString().match(_.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=y||3!==r.split(" ").length||(r+=" 1"),r;case"inject":return 8>=y?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(8>=y?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(y||E.State.isAndroid&&!E.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(E.State.prefixMatches[t])return[E.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],n=0,i=e.length;i>n;n++){var r;if(r=0===n?t:e[n]+t.replace(/^\w/,function(t){return t.toUpperCase()}),w.isString(E.State.prefixElement.style[r]))return E.State.prefixMatches[t]=r,[r,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i}),e=n.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,e,r,o){function s(t,e){function n(){l&&_.setPropertyValue(t,"display","none")}var r=0;if(8>=y)r=m.css(t,e);else{var l=!1;if(/^(width|height)$/.test(e)&&0===_.getPropertyValue(t,"display")&&(l=!0,_.setPropertyValue(t,"display",_.Values.getDisplayType(t))),!o){if("height"===e&&"border-box"!==_.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var u=t.offsetHeight-(parseFloat(_.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(_.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(_.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(_.getPropertyValue(t,"paddingBottom"))||0);return n(),u}if("width"===e&&"border-box"!==_.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var c=t.offsetWidth-(parseFloat(_.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(_.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(_.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(_.getPropertyValue(t,"paddingRight"))||0);return n(),c}}var d;d=i(t)===v?a.getComputedStyle(t,null):i(t).computedStyle?i(t).computedStyle:i(t).computedStyle=a.getComputedStyle(t,null),"borderColor"===e&&(e="borderTopColor"),r=9===y&&"filter"===e?d.getPropertyValue(e):d[e],(""===r||null===r)&&(r=t.style[e]),n()}if("auto"===r&&/^(top|right|bottom|left)$/i.test(e)){var f=s(t,"position");("fixed"===f||"absolute"===f&&/top|left/i.test(e))&&(r=m(t).position()[e]+"px")}return r}var l;if(_.Hooks.registered[e]){var u=e,c=_.Hooks.getRoot(u);r===v&&(r=_.getPropertyValue(t,_.Names.prefixCheck(c)[0])),_.Normalizations.registered[c]&&(r=_.Normalizations.registered[c]("extract",t,r)),l=_.Hooks.extractValue(u,r)}else if(_.Normalizations.registered[e]){var d,f;d=_.Normalizations.registered[e]("name",t),"transform"!==d&&(f=s(t,_.Names.prefixCheck(d)[0]),_.Values.isCSSNullValue(f)&&_.Hooks.templates[e]&&(f=_.Hooks.templates[e][1])),l=_.Normalizations.registered[e]("extract",t,f)}if(!/^[\d-]/.test(l))if(i(t)&&i(t).isSVG&&_.Names.SVGAttribute(e))if(/^(height|width)$/i.test(e))try{l=t.getBBox()[e]}catch(t){l=0}else l=t.getAttribute(e);else l=s(t,_.Names.prefixCheck(e)[0]);return _.Values.isCSSNullValue(l)&&(l=0),E.debug>=2&&console.log("Get "+e+": "+l),l},setPropertyValue:function(t,e,n,r,o){var s=e;if("scroll"===e)o.container?o.container["scroll"+o.direction]=n:"Left"===o.direction?a.scrollTo(n,o.alternateValue):a.scrollTo(o.alternateValue,n);else if(_.Normalizations.registered[e]&&"transform"===_.Normalizations.registered[e]("name",t))_.Normalizations.registered[e]("inject",t,n),s="transform",n=i(t).transformCache[e];else{if(_.Hooks.registered[e]){var l=e,u=_.Hooks.getRoot(e);r=r||_.getPropertyValue(t,u),n=_.Hooks.injectValue(l,n,r),e=u}if(_.Normalizations.registered[e]&&(n=_.Normalizations.registered[e]("inject",t,n),e=_.Normalizations.registered[e]("name",t)),s=_.Names.prefixCheck(e)[0],8>=y)try{t.style[s]=n}catch(t){E.debug&&console.log("Browser does not support ["+n+"] for ["+s+"]")}else i(t)&&i(t).isSVG&&_.Names.SVGAttribute(e)?t.setAttribute(e,n):t.style[s]=n;E.debug>=2&&console.log("Set "+e+" ("+s+"): "+n)}return[s,n]},flushTransformCache:function(e){function t(t){return parseFloat(_.getPropertyValue(e,t))}var n="";if((y||E.State.isAndroid&&!E.State.isChrome)&&i(e).isSVG){var r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};m.each(i(e).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),r[t]&&(n+=t+"("+r[t].join(" ")+") ",delete r[t])})}else{var o,a;m.each(i(e).transformCache,function(t){return o=i(e).transformCache[t],"transformPerspective"===t?(a=o,!0):(9===y&&"rotateZ"===t&&(t="rotate"),void(n+=t+o+" "))}),a&&(n="perspective"+a+" "+n)}_.setPropertyValue(e,"transform",n)}};_.Hooks.register(),_.Normalizations.register(),E.hook=function(t,e,n){var r=v;return t=o(t),m.each(t,function(t,o){if(i(o)===v&&E.init(o),n===v)r===v&&(r=E.CSS.getPropertyValue(o,e));else{var a=E.CSS.setPropertyValue(o,e,n);"transform"===a[0]&&E.CSS.flushTransformCache(o),r=a}}),r};var A=function(){function e(){return t?S.promise||null:r}function n(){function e(e){function p(t,e){var i=v,o=v,a=v;return w.isArray(t)?(i=t[0],!w.isArray(t[1])&&/^[\d-]/.test(t[1])||w.isFunction(t[1])||_.RegEx.isHex.test(t[1])?a=t[1]:(w.isString(t[1])&&!_.RegEx.isHex.test(t[1])||w.isArray(t[1]))&&(o=e?t[1]:u(t[1],r.duration),t[2]!==v&&(a=t[2]))):i=t,e||(o=o||r.easing),w.isFunction(i)&&(i=i.call(n,x,b)),w.isFunction(a)&&(a=a.call(n,x,b)),[i||0,o,a]}function d(t,e){var n,i;return i=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return n=t,""}),n||(n=_.Values.getUnitType(t)),[i,n]}if(r.begin&&0===x)try{r.begin.call(l,l)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===P){var s,y,T,C=/^x$/i.test(r.axis)?"Left":"Top",k=parseFloat(r.offset)||0;r.container?w.isWrapped(r.container)||w.isNode(r.container)?(r.container=r.container[0]||r.container,s=r.container["scroll"+C],T=s+m(n).position()[C.toLowerCase()]+k):r.container=null:(s=E.State.scrollAnchor[E.State["scrollProperty"+C]],y=E.State.scrollAnchor[E.State["scrollProperty"+("Left"===C?"Top":"Left")]],T=m(n).offset()[C.toLowerCase()]+k),o={scroll:{rootPropertyValue:!1,startValue:s,currentValue:s,endValue:T,unitType:"",easing:r.easing,scrollData:{container:r.container,direction:C,alternateValue:y}},element:n},E.debug&&console.log("tweensContainer (scroll): ",o.scroll,n)}else if("reverse"===P){if(!i(n).tweensContainer)return void m.dequeue(n,r.queue);"none"===i(n).opts.display&&(i(n).opts.display="auto"),"hidden"===i(n).opts.visibility&&(i(n).opts.visibility="visible"),i(n).opts.loop=!1,i(n).opts.begin=null,i(n).opts.complete=null,g.easing||delete r.easing,g.duration||delete r.duration,r=m.extend({},i(n).opts,r);var A=m.extend(!0,{},i(n).tweensContainer);for(var D in A)if("element"!==D){var O=A[D].startValue;A[D].startValue=A[D].currentValue=A[D].endValue,A[D].endValue=O,w.isEmptyObject(g)||(A[D].easing=r.easing),E.debug&&console.log("reverse tweensContainer ("+D+"): "+JSON.stringify(A[D]),n)}o=A}else if("start"===P){var A;i(n).tweensContainer&&!0===i(n).isAnimating&&(A=i(n).tweensContainer),m.each(f,function(t,e){if(RegExp("^"+_.Lists.colors.join("$|^")+"$").test(t)){var n=p(e,!0),i=n[0],r=n[1],o=n[2];if(_.RegEx.isHex.test(i)){for(var a=["Red","Green","Blue"],s=_.Values.hexToRgb(i),l=o?_.Values.hexToRgb(o):v,u=0;u<a.length;u++){var c=[s[u]];r&&c.push(r),l!==v&&c.push(l[u]),f[t+a[u]]=c}delete f[t]}}});for(var N in f){var M=p(f[N]),I=M[0],z=M[1],F=M[2];N=_.Names.camelCase(N);var q=_.Hooks.getRoot(N),H=!1;if(i(n).isSVG||"tween"===q||!1!==_.Names.prefixCheck(q)[1]||_.Normalizations.registered[q]!==v){(r.display!==v&&null!==r.display&&"none"!==r.display||r.visibility!==v&&"hidden"!==r.visibility)&&/opacity|filter/.test(N)&&!F&&0!==I&&(F=0),r._cacheValues&&A&&A[N]?(F===v&&(F=A[N].endValue+A[N].unitType),H=i(n).rootPropertyValueCache[q]):_.Hooks.registered[N]?F===v?(H=_.getPropertyValue(n,q),F=_.getPropertyValue(n,N,H)):H=_.Hooks.templates[q][1]:F===v&&(F=_.getPropertyValue(n,N));var j,W,B,V=!1;if(j=d(N,F),F=j[0],B=j[1],j=d(N,I),I=j[0].replace(/^([+-\/*])=/,function(t,e){return V=e,""}),W=j[1],F=parseFloat(F)||0,I=parseFloat(I)||0,"%"===W&&(/^(fontSize|lineHeight)$/.test(N)?(I/=100,W="em"):/^scale/.test(N)?(I/=100,W=""):/(Red|Green|Blue)$/i.test(N)&&(I=I/100*255,W="")),/[\/*]/.test(V))W=B;else if(B!==W&&0!==F)if(0===I)W=B;else{t=t||function(){var t={myParent:n.parentNode||h.body,position:_.getPropertyValue(n,"position"),fontSize:_.getPropertyValue(n,"fontSize")},e=t.position===R.lastPosition&&t.myParent===R.lastParent,r=t.fontSize===R.lastFontSize;R.lastParent=t.myParent,R.lastPosition=t.position,R.lastFontSize=t.fontSize;var o=100,s={};if(r&&e)s.emToPx=R.lastEmToPx,s.percentToPxWidth=R.lastPercentToPxWidth,s.percentToPxHeight=R.lastPercentToPxHeight;else{var l=i(n).isSVG?h.createElementNS("http://www.w3.org/2000/svg","rect"):h.createElement("div");E.init(l),t.myParent.appendChild(l),m.each(["overflow","overflowX","overflowY"],function(t,e){E.CSS.setPropertyValue(l,e,"hidden")}),E.CSS.setPropertyValue(l,"position",t.position),E.CSS.setPropertyValue(l,"fontSize",t.fontSize),E.CSS.setPropertyValue(l,"boxSizing","content-box"),m.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){E.CSS.setPropertyValue(l,e,o+"%")}),E.CSS.setPropertyValue(l,"paddingLeft",o+"em"),s.percentToPxWidth=R.lastPercentToPxWidth=(parseFloat(_.getPropertyValue(l,"width",null,!0))||1)/o,s.percentToPxHeight=R.lastPercentToPxHeight=(parseFloat(_.getPropertyValue(l,"height",null,!0))||1)/o,s.emToPx=R.lastEmToPx=(parseFloat(_.getPropertyValue(l,"paddingLeft"))||1)/o,t.myParent.removeChild(l)}return null===R.remToPx&&(R.remToPx=parseFloat(_.getPropertyValue(h.body,"fontSize"))||16),null===R.vwToPx&&(R.vwToPx=parseFloat(a.innerWidth)/100,R.vhToPx=parseFloat(a.innerHeight)/100),s.remToPx=R.remToPx,s.vwToPx=R.vwToPx,s.vhToPx=R.vhToPx,E.debug>=1&&console.log("Unit ratios: "+JSON.stringify(s),n),s}();var X=/margin|padding|left|right|width|text|word|letter/i.test(N)||/X$/.test(N)||"x"===N?"x":"y";switch(B){case"%":F*="x"===X?t.percentToPxWidth:t.percentToPxHeight;break;case"px":break;default:F*=t[B+"ToPx"]}switch(W){case"%":F*=1/("x"===X?t.percentToPxWidth:t.percentToPxHeight);break;case"px":break;default:F*=1/t[W+"ToPx"]}}switch(V){case"+":I=F+I;break;case"-":I=F-I;break;case"*":I*=F;break;case"/":I=F/I}o[N]={rootPropertyValue:H,startValue:F,currentValue:F,endValue:I,unitType:W,easing:z},E.debug&&console.log("tweensContainer ("+N+"): "+JSON.stringify(o[N]),n)}else E.debug&&console.log("Skipping ["+q+"] due to a lack of browser support.")}o.element=n}o.element&&(_.Values.addClass(n,"velocity-animating"),L.push(o),""===r.queue&&(i(n).tweensContainer=o,i(n).opts=r),i(n).isAnimating=!0,x===b-1?(E.State.calls.push([L,l,r,null,S.resolver]),!1===E.State.isTicking&&(E.State.isTicking=!0,c())):x++)}var t,n=this,r=m.extend({},E.defaults,g),o={};switch(i(n)===v&&E.init(n),parseFloat(r.delay)&&!1!==r.queue&&m.queue(n,r.queue,function(t){E.velocityQueueEntryFlag=!0,i(n).delayTimer={setTimeout:setTimeout(t,parseFloat(r.delay)),next:t}}),r.duration.toString().toLowerCase()){case"fast":r.duration=200;break;case"normal":r.duration=T;break;case"slow":r.duration=600;break;default:r.duration=parseFloat(r.duration)||1}!1!==E.mock&&(!0===E.mock?r.duration=r.delay=1:(r.duration*=parseFloat(E.mock)||1,r.delay*=parseFloat(E.mock)||1)),r.easing=u(r.easing,r.duration),r.begin&&!w.isFunction(r.begin)&&(r.begin=null),r.progress&&!w.isFunction(r.progress)&&(r.progress=null),r.complete&&!w.isFunction(r.complete)&&(r.complete=null),r.display!==v&&null!==r.display&&(r.display=r.display.toString().toLowerCase(),"auto"===r.display&&(r.display=E.CSS.Values.getDisplayType(n))),r.visibility!==v&&null!==r.visibility&&(r.visibility=r.visibility.toString().toLowerCase()),r.mobileHA=r.mobileHA&&E.State.isMobile&&!E.State.isGingerbread,!1===r.queue?r.delay?setTimeout(e,r.delay):e():m.queue(n,r.queue,function(t,n){return!0===n?(S.promise&&S.resolver(l),!0):(E.velocityQueueEntryFlag=!0,void e(t))}),""!==r.queue&&"fx"!==r.queue||"inprogress"===m.queue(n)[0]||m.dequeue(n)}var t,r,s,l,f,g,y=arguments[0]&&(arguments[0].p||m.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||w.isString(arguments[0].properties));if(w.isWrapped(this)?(t=!1,s=0,l=this,r=this):(t=!0,s=1,l=y?arguments[0].elements||arguments[0].e:arguments[0]),l=o(l)){y?(f=arguments[0].properties||arguments[0].p,g=arguments[0].options||arguments[0].o):(f=arguments[s],g=arguments[s+1]);var b=l.length,x=0;if(!/^(stop|finish)$/i.test(f)&&!m.isPlainObject(g)){var C=s+1;g={};for(var k=C;k<arguments.length;k++)w.isArray(arguments[k])||!/^(fast|normal|slow)$/i.test(arguments[k])&&!/^\d/.test(arguments[k])?w.isString(arguments[k])||w.isArray(arguments[k])?g.easing=arguments[k]:w.isFunction(arguments[k])&&(g.complete=arguments[k]):g.duration=arguments[k]}var S={promise:null,resolver:null,rejecter:null};t&&E.Promise&&(S.promise=new E.Promise(function(t,e){S.resolver=t,S.rejecter=e}));var P;switch(f){case"scroll":P="scroll";break;case"reverse":P="reverse";break;case"finish":case"stop":m.each(l,function(t,e){i(e)&&i(e).delayTimer&&(clearTimeout(i(e).delayTimer.setTimeout),i(e).delayTimer.next&&i(e).delayTimer.next(),delete i(e).delayTimer)});var D=[];return m.each(E.State.calls,function(t,e){e&&m.each(e[1],function(n,r){var o=g===v?"":g;return!0!==o&&e[2].queue!==o&&(g!==v||!1!==e[2].queue)||void m.each(l,function(n,a){a===r&&((!0===g||w.isString(g))&&(m.each(m.queue(a,w.isString(g)?g:""),function(t,e){w.isFunction(e)&&e(null,!0)}),m.queue(a,w.isString(g)?g:"",[])),"stop"===f?(i(a)&&i(a).tweensContainer&&!1!==o&&m.each(i(a).tweensContainer,function(t,e){e.endValue=e.currentValue}),D.push(t)):"finish"===f&&(e[2].duration=1))})})}),"stop"===f&&(m.each(D,function(t,e){p(e,!0)}),S.promise&&S.resolver(l)),e();default:if(!m.isPlainObject(f)||w.isEmptyObject(f)){if(w.isString(f)&&E.Redirects[f]){var O=m.extend({},g),N=O.duration,M=O.delay||0;return!0===O.backwards&&(l=m.extend(!0,[],l).reverse()),m.each(l,function(t,e){parseFloat(O.stagger)?O.delay=M+parseFloat(O.stagger)*t:w.isFunction(O.stagger)&&(O.delay=M+O.stagger.call(e,t,b)),O.drag&&(O.duration=parseFloat(N)||(/^(callout|transition)/.test(f)?1e3:T),O.duration=Math.max(O.duration*(O.backwards?1-t/b:(t+1)/b),.75*O.duration,200)),E.Redirects[f].call(e,e,O||{},t,b,l,S.promise?S:v)}),e()}var I="Velocity: First argument ("+f+") was not a property map, a known action, or a registered redirect. Aborting.";return S.promise?S.rejecter(new Error(I)):console.log(I),e()}P="start"}var R={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},L=[];m.each(l,function(t,e){w.isNode(e)&&n.call(e)});var z,O=m.extend({},E.defaults,g);if(O.loop=parseInt(O.loop),z=2*O.loop-1,O.loop)for(var F=0;z>F;F++){var q={delay:O.delay,progress:O.progress};F===z-1&&(q.display=O.display,q.visibility=O.visibility,q.complete=O.complete),A(l,"reverse",q)}return e()}};E=m.extend(A,E),E.animate=A;var P=a.requestAnimationFrame||b;return E.State.isMobile||h.hidden===v||h.addEventListener("visibilitychange",function(){h.hidden?(P=function(t){return setTimeout(function(){t(!0)},16)},c()):P=a.requestAnimationFrame||b}),r.Velocity=E,r!==a&&(r.fn.velocity=A,r.fn.velocity.defaults=E.defaults),m.each(["Down","Up"],function(t,e){E.Redirects["slide"+e]=function(t,n,i,r,o,a){var s=m.extend({},n),l=s.begin,u=s.complete,c={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},d={};s.display===v&&(s.display="Down"===e?"inline"===E.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),s.begin=function(){l&&l.call(o,o);for(var n in c){d[n]=t.style[n];var i=E.CSS.getPropertyValue(t,n);c[n]="Down"===e?[i,0]:[0,i]}d.overflow=t.style.overflow,t.style.overflow="hidden"},s.complete=function(){for(var e in d)t.style[e]=d[e];u&&u.call(o,o),a&&a.resolver(o)},E(t,c,s)}}),m.each(["In","Out"],function(t,e){E.Redirects["fade"+e]=function(t,n,i,r,o,a){var s=m.extend({},n),l={opacity:"In"===e?1:0},u=s.complete;s.complete=i!==r-1?s.begin=null:function(){u&&u.call(o,o),a&&a.resolver(o)},s.display===v&&(s.display="In"===e?"auto":"none"),E(this,l,s)}}),E}(f||window.Zepto||window,window,document)})),function(c,f,h,b){"use strict";function k(t,e,n){return setTimeout(q(t,n),e)}function l(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==b)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function n(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===b)&&(t[i[r]]=e[i[r]]),r++;return t}function o(t,e){return n(t,e,!0)}function p(t,e,i){var r,o=e.prototype;r=t.prototype=Object.create(o),r.constructor=t,r._super=o,i&&n(r,i)}function q(t,e){return function(){return t.apply(e,arguments)}}function r(t,e){return typeof t==S?t.apply(e?e[0]||b:b,e):t}function s(t,e){return t===b?e:t}function t(t,e,n){m(x(e),function(e){t.addEventListener(e,n,!1)})}function u(t,e,n){m(x(e),function(e){t.removeEventListener(e,n,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function w(t,e){return t.indexOf(e)>-1}function x(t){return t.trim().split(/\s+/g)}function y(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function z(t){return Array.prototype.slice.call(t,0)}function A(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];y(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function B(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<T.length;){if(n=T[o],(i=n?n+r:e)in t)return i;o++}return b}function D(){return N++}function E(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function ab(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){r(t.options.enable,[t])&&n.handler(e)},this.init()}function bb(t){var e=t.options.inputClass;return new(e||(R?wb:L?Eb:I?Gb:rb))(t,cb)}function cb(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&W&&0==i-r,a=e&(X|$)&&0==i-r;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,db(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function db(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=gb(e)),r>1&&!n.firstMultiple?n.firstMultiple=gb(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=hb(i);e.timeStamp=O(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=lb(s,l),e.distance=kb(s,l),eb(n,e),e.offsetDirection=jb(e.deltaX,e.deltaY),e.scale=a?nb(a.pointers,i):1,e.rotation=a?mb(a.pointers,i):0,fb(n,e);var u=t.element;v(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function eb(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};(e.eventType===W||o.eventType===X)&&(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function fb(t,e){var n,i,r,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!=$&&(s>j||a.velocity===b)){var l=a.deltaX-e.deltaX,u=a.deltaY-e.deltaY,c=ib(s,l,u);i=c.x,r=c.y,n=P(c.x)>P(c.y)?c.x:c.y,o=jb(l,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function gb(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:_(t.pointers[n].clientX),clientY:_(t.pointers[n].clientY)},n++;return{timeStamp:O(),pointers:e,center:hb(e),deltaX:t.deltaX,deltaY:t.deltaY}}function hb(t){var e=t.length;if(1===e)return{x:_(t[0].clientX),y:_(t[0].clientY)};for(var n=0,i=0,r=0;e>r;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:_(n/e),y:_(i/e)}}function ib(t,e,n){return{x:e/t||0,y:n/t||0}}function jb(t,e){return t===e?Y:P(t)>=P(e)?t>0?U:Q:e>0?G:K}function kb(t,e,n){n||(n=et);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function lb(t,e,n){n||(n=et);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function mb(t,e){return lb(e[1],e[0],nt)-lb(t[1],t[0],nt)}function nb(t,e){return kb(e[0],e[1],nt)/kb(t[0],t[1],nt)}function rb(){this.evEl=rt,this.evWin=ot,this.allow=!0,this.pressed=!1,ab.apply(this,arguments)}function wb(){this.evEl=lt,this.evWin=ut,ab.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Ab(){this.evTarget=dt,this.evWin=ft,this.started=!1,ab.apply(this,arguments)}function Bb(t,e){var n=z(t.touches),i=z(t.changedTouches);return e&(X|$)&&(n=A(n.concat(i),"identifier",!0)),[n,i]}function Eb(){this.evTarget=pt,this.targetIds={},ab.apply(this,arguments)}function Fb(t,e){var n=z(t.touches),i=this.targetIds;if(e&(W|V)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=z(t.changedTouches),s=[],l=this.target;if(o=n.filter(function(t){return v(t.target,l)}),e===W)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(X|$)&&delete i[a[r].identifier],r++;return s.length?[A(o.concat(s),"identifier",!0),s]:void 0}function Gb(){ab.apply(this,arguments);var t=q(this.handler,this);this.touch=new Eb(this.manager,t),this.mouse=new rb(this.manager,t)}function Pb(t,e){this.manager=t,this.set(e)}function Qb(t){if(w(t,wt))return wt;var e=w(t,xt),n=w(t,Tt);return e&&n?xt+" "+Tt:e||n?e?xt:Tt:w(t,bt)?bt:yt}function Yb(t){this.id=D(),this.manager=null,this.options=o(t||{},this.defaults),this.options.enable=s(this.options.enable,!0),this.state=Ct,this.simultaneous={},this.requireFail=[]}function Zb(t){return t&At?"cancel":t&St?"end":t&Et?"move":t&kt?"start":""}function $b(t){return t==K?"down":t==G?"up":t==U?"left":t==Q?"right":""}function _b(t,e){var n=e.manager;return n?n.get(t):t}function ac(){Yb.apply(this,arguments)}function bc(){ac.apply(this,arguments),this.pX=null,this.pY=null}function cc(){ac.apply(this,arguments)}function dc(){Yb.apply(this,arguments),this._timer=null,this._input=null}function ec(){ac.apply(this,arguments)}function fc(){ac.apply(this,arguments)}function gc(){Yb.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function hc(t,e){return e=e||{},e.recognizers=s(e.recognizers,hc.defaults.preset),new kc(t,e)}function kc(t,e){e=e||{},this.options=o(e,hc.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=bb(this),this.touchAction=new Pb(this,this.options.touchAction),lc(this,!0),m(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function lc(t,e){var n=t.element;m(t.options.cssProps,function(t,i){n.style[B(n.style,i)]=e?t:""})}function mc(t,e){var n=f.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var T=["","webkit","moz","MS","ms","o"],C=f.createElement("div"),S="function",_=Math.round,P=Math.abs,O=Date.now,N=1,M=/mobile|tablet|ip(ad|hone|od)|android/i,I="ontouchstart"in c,R=B(c,"PointerEvent")!==b,L=I&&M.test(navigator.userAgent),F="touch",H="mouse",j=25,W=1,V=2,X=4,$=8,Y=1,U=2,Q=4,G=8,K=16,Z=U|Q,J=G|K,tt=Z|J,et=["x","y"],nt=["clientX","clientY"];ab.prototype={handler:function(){},init:function(){this.evEl&&t(this.element,this.evEl,this.domHandler),this.evTarget&&t(this.target,this.evTarget,this.domHandler),this.evWin&&t(E(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&u(this.element,this.evEl,this.domHandler),this.evTarget&&u(this.target,this.evTarget,this.domHandler),this.evWin&&u(E(this.element),this.evWin,this.domHandler)}};var it={mousedown:W,mousemove:V,mouseup:X},rt="mousedown",ot="mousemove mouseup";p(rb,ab,{handler:function(t){var e=it[t.type];e&W&&0===t.button&&(this.pressed=!0),e&V&&1!==t.which&&(e=X),this.pressed&&this.allow&&(e&X&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:H,srcEvent:t}))}});var at={pointerdown:W,pointermove:V,pointerup:X,pointercancel:$,pointerout:$},st={2:F,3:"pen",4:H,5:"kinect"},lt="pointerdown",ut="pointermove pointerup pointercancel";c.MSPointerEvent&&(lt="MSPointerDown",ut="MSPointerMove MSPointerUp MSPointerCancel"),p(wb,ab,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=at[i],o=st[t.pointerType]||t.pointerType,a=o==F,s=y(e,t.pointerId,"pointerId");r&W&&(0===t.button||a)?0>s&&(e.push(t),s=e.length-1):r&(X|$)&&(n=!0),0>s||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var ct={touchstart:W,touchmove:V,touchend:X,touchcancel:$},dt="touchstart",ft="touchstart touchmove touchend touchcancel";p(Ab,ab,{handler:function(t){var e=ct[t.type];if(e===W&&(this.started=!0),this.started){var n=Bb.call(this,t,e);e&(X|$)&&0==n[0].length-n[1].length&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:t})}}});var ht={touchstart:W,touchmove:V,touchend:X,touchcancel:$},pt="touchstart touchmove touchend touchcancel";p(Eb,ab,{handler:function(t){var e=ht[t.type],n=Fb.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:t})}}),p(Gb,ab,{handler:function(t,e,n){var i=n.pointerType==F,r=n.pointerType==H;if(i)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(X|$)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var gt=B(C.style,"touchAction"),vt=gt!==b,mt="compute",yt="auto",bt="manipulation",wt="none",xt="pan-x",Tt="pan-y";Pb.prototype={set:function(t){t==mt&&(t=this.compute()),vt&&(this.manager.element.style[gt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,function(e){r(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Qb(t.join(" "))},preventDefaults:function(t){if(!vt){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=w(i,wt),o=w(i,Tt),a=w(i,xt);return r||o&&n&Z||a&&n&J?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Ct=1,kt=2,Et=4,St=8,_t=St,At=16;Yb.prototype={defaults:{},set:function(t){return n(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(l(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=_b(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return l(t,"dropRecognizeWith",this)?this:(t=_b(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(l(t,"requireFailure",this))return this;var e=this.requireFail;return t=_b(t,this),-1===y(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(l(t,"dropRequireFailure",this))return this;t=_b(t,this);var e=y(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function d(i){e.manager.emit(e.options.event+(i?Zb(n):""),t)}var e=this,n=this.state;St>n&&d(!0),d(),n>=St&&d(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Ct)))return!1;t++}return!0},recognize:function(t){var e=n({},t);return r(this.options.enable,[this,e])?(this.state&(_t|At|32)&&(this.state=Ct),this.state=this.process(e),void(this.state&(kt|Et|St|At)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(){},getTouchAction:function(){},reset:function(){}},p(ac,Yb,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(kt|Et),r=this.attrTest(t);return i&&(n&$||!r)?e|At:i||r?n&X?e|St:e&kt?e|Et:kt:32}}),p(bc,ac,{defaults:{event:"pan",threshold:10,pointers:1,direction:tt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Z&&e.push(Tt),t&J&&e.push(xt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&Z?(r=0===o?Y:0>o?U:Q,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?Y:0>a?G:K,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return ac.prototype.attrTest.call(this,t)&&(this.state&kt||!(this.state&kt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=$b(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),p(cc,ac,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&kt)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),p(dc,Yb,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[yt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(X|$)&&!r)this.reset();else if(t.eventType&W)this.reset(),this._timer=k(function(){this.state=_t,this.tryEmit()},e.time,this);else if(t.eventType&X)return _t;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===_t&&(t&&t.eventType&X?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=O(),this.manager.emit(this.options.event,this._input)))}}),p(ec,ac,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&kt)}}),p(fc,ac,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Z|J,pointers:1},getTouchAction:function(){return bc.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Z|J)?e=t.velocity:n&Z?e=t.velocityX:n&J&&(e=t.velocityY),this._super.attrTest.call(this,t)&&n&t.direction&&t.distance>this.options.threshold&&P(e)>this.options.velocity&&t.eventType&X},emit:function(t){var e=$b(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(gc,Yb,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[bt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&W&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=X)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||kb(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=k(function(){this.state=_t,this.tryEmit()},e.interval,this),kt):_t}return 32},failTimeout:function(){return this._timer=k(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==_t&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),hc.VERSION="2.0.4",hc.defaults={domEvents:!1,touchAction:mt,enable:!0,inputTarget:null,inputClass:null,preset:[[ec,{enable:!1}],[cc,{enable:!1},["rotate"]],[fc,{direction:Z}],[bc,{direction:Z},["swipe"]],[gc],[gc,{event:"doubletap",taps:2},["tap"]],[dc]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};kc.prototype={set:function(t){return n(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&_t)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(kt|Et|St)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Yb)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(l(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(l(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var n=this.handlers;return m(x(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},off:function(t,e){var n=this.handlers;return m(x(t),function(t){e?n[t].splice(y(n[t],e),1):delete n[t]}),this},emit:function(t,e){this.options.domEvents&&mc(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&lc(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},n(hc,{INPUT_START:W,INPUT_MOVE:V,INPUT_END:X,INPUT_CANCEL:$,STATE_POSSIBLE:Ct,STATE_BEGAN:kt,STATE_CHANGED:Et,STATE_ENDED:St,STATE_RECOGNIZED:_t,STATE_CANCELLED:At,STATE_FAILED:32,DIRECTION_NONE:Y,DIRECTION_LEFT:U,DIRECTION_RIGHT:Q,DIRECTION_UP:G,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:Z,DIRECTION_VERTICAL:J,DIRECTION_ALL:tt,Manager:kc,Input:ab,TouchAction:Pb,TouchInput:Eb,MouseInput:rb,PointerEventInput:wb,TouchMouseInput:Gb,SingleTouchInput:Ab,Recognizer:Yb,AttrRecognizer:ac,Tap:gc,Pan:bc,Swipe:fc,Pinch:cc,Rotate:ec,Press:dc,on:t,off:u,each:m,merge:o,extend:n,inherit:p,bindFn:q,prefixed:B}),"function"==S&&a(53)?void 0!==(g=function(){return hc}.call(i,a,i,e))&&(e.exports=g):void 0!==e&&e.exports?e.exports=hc:c.Hammer=hc}(window,document),function(t){b=[a(0),a(52)],h=t,void 0!==(g="function"==typeof h?h.apply(i,b):h)&&(e.exports=g)}(function(t,e){function hammerify(n,i){var r=t(n);r.data("hammer")||r.data("hammer",new e(r[0],i))}t.fn.hammer=function(t){return this.each(function(){hammerify(this,t)})},e.Manager.prototype.emit=function(e){return function(n,i){e.call(this,n,i),t(this.element).trigger({type:n,gesture:i})}}(e.Manager.prototype.emit)}),function(t){t.Package?Materialize={}:t.Materialize={}}(window),function(t){for(var e=0,n=["webkit","moz"],i=t.requestAnimationFrame,r=t.cancelAnimationFrame,o=n.length;--o>=0&&!i;)i=t[n[o]+"RequestAnimationFrame"],r=t[n[o]+"CancelRequestAnimationFrame"];i&&r||(i=function(t){var n=+Date.now(),i=Math.max(e+16,n);return setTimeout(function(){t(e=i)},i-n)},r=clearTimeout),t.requestAnimationFrame=i,t.cancelAnimationFrame=r}(window),Materialize.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},Materialize.guid=function(){function s4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return s4()+s4()+"-"+s4()+"-"+s4()+"-"+s4()+"-"+s4()+s4()+s4()}}(),Materialize.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=)/g,"\\$1")},Materialize.elementOrParentIsFixed=function(t){var e=d(t),n=e.add(e.parents()),i=!1;return n.each(function(){if("fixed"===d(this).css("position"))return i=!0,!1}),i};var S=Date.now||function(){return(new Date).getTime()};Materialize.throttle=function(t,e,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:S(),a=null,o=t.apply(i,r),i=r=null};return function(){var u=S();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,r=arguments,c<=0?(clearTimeout(a),a=null,s=u,o=t.apply(i,r),i=r=null):a||!1===n.trailing||(a=setTimeout(l,c)),o}};var _;_=C?C.Velocity:d?d.Velocity:Velocity,function(t){t.fn.collapsible=function(e,n){var i={accordion:void 0,onOpen:void 0,onClose:void 0},r=e;return e=t.extend(i,e),this.each(function(){function accordionOpen(e){o=i.find("> li > .collapsible-header"),e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}),o.not(e).removeClass("active").parent().removeClass("active"),o.not(e).parent().children(".collapsible-body").stop(!0,!1).each(function(){t(this).is(":visible")&&t(this).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height",""),execCallbacks(t(this).siblings(".collapsible-header"))}})})}function expandableOpen(e){e.hasClass("active")?e.parent().addClass("active"):e.parent().removeClass("active"),e.parent().hasClass("active")?e.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}}):e.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){t(this).css("height","")}})}function collapsibleOpen(t,n){n||t.toggleClass("active"),e.accordion||"accordion"===a||void 0===a?accordionOpen(t):expandableOpen(t),execCallbacks(t)}function execCallbacks(t){t.hasClass("active")?"function"==typeof e.onOpen&&e.onOpen.call(this,t.parent()):"function"==typeof e.onClose&&e.onClose.call(this,t.parent())}function isChildrenOfPanelHeader(t){return getPanelHeader(t).length>0}function getPanelHeader(t){return t.closest("li > .collapsible-header")}function removeEventHandlers(){i.off("click.collapse","> li > .collapsible-header")}var i=t(this),o=t(this).find("> li > .collapsible-header"),a=i.data("collapsible");if("destroy"===r)return void removeEventHandlers();if(n>=0&&n<o.length){var s=o.eq(n);return void(s.length&&("open"===r||"close"===r&&s.hasClass("active"))&&collapsibleOpen(s))}removeEventHandlers(),i.on("click.collapse","> li > .collapsible-header",function(e){var n=t(e.target);isChildrenOfPanelHeader(n)&&(n=getPanelHeader(n)),collapsibleOpen(n)}),e.accordion||"accordion"===a||void 0===a?collapsibleOpen(o.filter(".active").first(),!0):o.filter(".active").each(function(){collapsibleOpen(t(this),!0)})})},t(document).ready(function(){t(".collapsible").collapsible()})}(C),function(t){t.fn.scrollTo=function(e){return t(this).scrollTop(t(this).scrollTop()-t(this).offset().top+t(e).offset().top),this},t.fn.dropdown=function(e){var n={inDuration:300,outDuration:225,constrainWidth:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left",stopPropagation:!1};return"open"===e?(this.each(function(){t(this).trigger("open")}),!1):"close"===e?(this.each(function(){t(this).trigger("close")}),!1):void this.each(function(){function updateOptions(){void 0!==i.data("induration")&&(r.inDuration=i.data("induration")),void 0!==i.data("outduration")&&(r.outDuration=i.data("outduration")),void 0!==i.data("constrainwidth")&&(r.constrainWidth=i.data("constrainwidth")),void 0!==i.data("hover")&&(r.hover=i.data("hover")),void 0!==i.data("gutter")&&(r.gutter=i.data("gutter")),void 0!==i.data("beloworigin")&&(r.belowOrigin=i.data("beloworigin")),void 0!==i.data("alignment")&&(r.alignment=i.data("alignment")),void 0!==i.data("stoppropagation")&&(r.stopPropagation=i.data("stoppropagation"))}function placeDropdown(e){"focus"===e&&(o=!0),updateOptions(),a.addClass("active"),i.addClass("active"),!0===r.constrainWidth?a.css("width",i.outerWidth()):a.css("white-space","nowrap");var n=window.innerHeight,s=i.innerHeight(),l=i.offset().left,u=i.offset().top-t(window).scrollTop(),c=r.alignment,d=0,f=0,h=0;!0===r.belowOrigin&&(h=s);var p=0,g=0,v=i.parent();if(v.is("body")||(v[0].scrollHeight>v[0].clientHeight&&(p=v[0].scrollTop),v[0].scrollWidth>v[0].clientWidth&&(g=v[0].scrollLeft)),l+a.innerWidth()>t(window).width()?c="right":l-a.innerWidth()+i.innerWidth()<0&&(c="left"),u+a.innerHeight()>n)if(u+s-a.innerHeight()<0){var m=n-u-h;a.css("max-height",m)}else h||(h+=s),h-=a.innerHeight();if("left"===c)d=r.gutter,f=i.position().left+d;else if("right"===c){var y=i.position().left+i.outerWidth()-a.outerWidth();d=-r.gutter,f=y+d}a.css({position:"absolute",top:i.position().top+h+p,left:f+g}),a.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:r.inDuration,easing:"easeOutCubic",complete:function(){t(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:r.inDuration,easing:"easeOutSine"}),setTimeout(function(){t(document).bind("click."+a.attr("id"),function(e){hideDropdown(),t(document).unbind("click."+a.attr("id"))})},0)}function hideDropdown(){o=!1,a.fadeOut(r.outDuration),a.removeClass("active"),i.removeClass("active"),t(document).unbind("click."+a.attr("id")),setTimeout(function(){a.css("max-height","")},r.outDuration)}var i=t(this),r=t.extend({},n,e),o=!1,a=t("#"+i.attr("data-activates"));if(updateOptions(),i.after(a),r.hover){var s=!1;i.unbind("click."+i.attr("id")),i.on("mouseenter",function(t){!1===s&&(placeDropdown(),s=!0)}),i.on("mouseleave",function(e){var n=e.toElement||e.relatedTarget;t(n).closest(".dropdown-content").is(a)||(a.stop(!0,!0),hideDropdown(),s=!1)}),a.on("mouseleave",function(e){var n=e.toElement||e.relatedTarget;t(n).closest(".dropdown-button").is(i)||(a.stop(!0,!0),hideDropdown(),s=!1)})}else i.unbind("click."+i.attr("id")),i.bind("click."+i.attr("id"),function(e){o||(i[0]!=e.currentTarget||i.hasClass("active")||0!==t(e.target).closest(".dropdown-content").length?i.hasClass("active")&&(hideDropdown(),t(document).unbind("click."+a.attr("id"))):(e.preventDefault(),r.stopPropagation&&e.stopPropagation(),placeDropdown("click")))});i.on("open",function(t,e){placeDropdown(e)}),i.on("close",hideDropdown)})},t(document).ready(function(){t(".dropdown-button").dropdown()})}(C),function(t){var e=0,n=0,i=function(){return"materialize-modal-overlay-"+ ++n},r={init:function(n){var r={opacity:.5,inDuration:350,outDuration:250,ready:void 0,complete:void 0,dismissible:!0,startingTop:"4%",endingTop:"10%"};return n=t.extend(r,n),this.each(function(){var r=t(this),o=t(this).attr("id")||"#"+t(this).data("target"),a=function(){var i=r.data("overlay-id"),o=t("#"+i);r.removeClass("open"),t("body").css({overflow:"",width:""}),r.find(".modal-close").off("click.close"),t(document).off("keyup.modal"+i),o.velocity({opacity:0},{duration:n.outDuration,queue:!1,ease:"easeOutQuart"});var a={duration:n.outDuration,queue:!1,ease:"easeOutCubic",complete:function(){t(this).css({display:"none"}),"function"==typeof n.complete&&n.complete.call(this,r),o.remove(),e--}};r.hasClass("bottom-sheet")?r.velocity({bottom:"-100%",opacity:0},a):r.velocity({top:n.startingTop,opacity:0,scaleX:.7},a)},s=function(o){var s=t("body"),l=s.innerWidth();if(s.css("overflow","hidden"),s.width(l),!r.hasClass("open")){var u=i(),c=t('<div class="modal-overlay"></div>');lStack=++e,c.attr("id",u).css("z-index",1e3+2*lStack),r.data("overlay-id",u).css("z-index",1e3+2*lStack+1),r.addClass("open"),t("body").append(c),n.dismissible&&(c.click(function(){a()}),t(document).on("keyup.modal"+u,function(t){27===t.keyCode&&a()})),r.find(".modal-close").on("click.close",function(t){a()}),c.css({display:"block",opacity:0}),r.css({display:"block",opacity:0}),c.velocity({opacity:n.opacity},{duration:n.inDuration,queue:!1,ease:"easeOutCubic"}),r.data("associated-overlay",c[0]);var d={duration:n.inDuration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof n.ready&&n.ready.call(this,r,o)}};r.hasClass("bottom-sheet")?r.velocity({bottom:"0",opacity:1},d):(t.Velocity.hook(r,"scaleX",.7),r.css({top:n.startingTop}),r.velocity({top:n.endingTop,opacity:1,scaleX:"1"},d))}};t(document).off("click.modalTrigger",'a[href="#'+o+'"], [data-target="'+o+'"]'),t(this).off("openModal"),t(this).off("closeModal"),t(document).on("click.modalTrigger",'a[href="#'+o+'"], [data-target="'+o+'"]',function(e){n.startingTop=(t(this).offset().top-t(window).scrollTop())/1.15,s(t(this)),e.preventDefault()}),t(this).on("openModal",function(){t(this).attr("href")||t(this).data("target");s()}),t(this).on("closeModal",function(){a()})})},open:function(){t(this).trigger("openModal")},close:function(){t(this).trigger("closeModal")}};t.fn.modal=function(e){return r[e]?r[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.modal"):r.init.apply(this,arguments)}}(C),function(t){t.fn.materialbox=function(){return this.each(function(){function returnToOriginal(){r=!1;var n=a.parent(".material-placeholder"),s=(window.innerWidth,window.innerHeight,a.data("width")),u=a.data("height");a.velocity("stop",!0),t("#materialbox-overlay").velocity("stop",!0),t(".materialbox-caption").velocity("stop",!0),t("#materialbox-overlay").velocity({opacity:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){i=!1,t(this).remove()}}),a.velocity({width:s,height:u,left:0,top:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){n.css({height:"",width:"",position:"",top:"",left:""}),a.removeAttr("style"),a.attr("style",l),a.removeClass("active"),r=!0,e&&e.css("overflow","")}}),t(".materialbox-caption").velocity({opacity:0},{duration:o,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})}if(!t(this).hasClass("initialized")){t(this).addClass("initialized");var e,n,i=!1,r=!0,o=200,a=t(this),s=t("<div></div>").addClass("material-placeholder"),l=a.attr("style");a.wrap(s),a.on("click",function(){var o=a.parent(".material-placeholder"),s=window.innerWidth,l=window.innerHeight,u=a.width(),c=a.height();if(!1===r)return returnToOriginal(),!1;if(i&&!0===r)return returnToOriginal(),!1;r=!1,a.addClass("active"),i=!0,o.css({width:o[0].getBoundingClientRect().width,height:o[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),e=void 0,n=o[0].parentNode;for(;null!==n&&!t(n).is(document);){var d=t(n);"visible"!==d.css("overflow")&&(d.css("overflow","visible"),e=void 0===e?d:e.add(d)),n=n.parentNode}a.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}).data("width",u).data("height",c);var f=t('<div id="materialbox-overlay"></div>').css({opacity:0}).click(function(){!0===r&&returnToOriginal()});a.before(f);var h=f[0].getBoundingClientRect();if(f.css({width:s,height:l,left:-1*h.left,top:-1*h.top}),f.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"}),""!==a.data("caption")){var p=t('<div class="materialbox-caption"></div>');p.text(a.data("caption")),t("body").append(p),p.css({display:"inline"}),p.velocity({opacity:1},{duration:275,queue:!1,easing:"easeOutQuad"})}var g=0,v=u/s,m=c/l,y=0,b=0;v>m?(g=c/u,y=.9*s,b=.9*s*g):(g=u/c,y=.9*l*g,b=.9*l),a.hasClass("responsive-img")?a.velocity({"max-width":y,width:u},{duration:0,queue:!1,complete:function(){a.css({left:0,top:0}).velocity({height:b,width:y,left:t(document).scrollLeft()+s/2-a.parent(".material-placeholder").offset().left-y/2,top:t(document).scrollTop()+l/2-a.parent(".material-placeholder").offset().top-b/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){r=!0}})}}):a.css("left",0).css("top",0).velocity({height:b,width:y,left:t(document).scrollLeft()+s/2-a.parent(".material-placeholder").offset().left-y/2,top:t(document).scrollTop()+l/2-a.parent(".material-placeholder").offset().top-b/2},{duration:275,queue:!1,easing:"easeOutQuad",complete:function(){r=!0}})}),t(window).scroll(function(){i&&returnToOriginal()}),t(document).keyup(function(t){27===t.keyCode&&!0===r&&i&&returnToOriginal()})}})},t(document).ready(function(){t(".materialboxed").materialbox()})}(C),function(t){t.fn.parallax=function(){var e=t(window).width();return this.each(function(n){function updateParallax(n){var r;r=e<601?i.height()>0?i.height():i.children("img").height():i.height()>0?i.height():500;var o=i.children("img").first(),a=o.height(),s=a-r,l=i.offset().top+r,u=i.offset().top,c=t(window).scrollTop(),d=window.innerHeight,f=c+d,h=(f-u)/(r+d),p=Math.round(s*h);n&&o.css("display","block"),l>c&&u<c+d&&o.css("transform","translate3D(-50%,"+p+"px, 0)")}var i=t(this);i.addClass("parallax"),i.children("img").one("load",function(){updateParallax(!0)}).each(function(){this.complete&&t(this).trigger("load")}),t(window).scroll(function(){e=t(window).width(),updateParallax(!1)}),t(window).resize(function(){e=t(window).width(),updateParallax(!1)})})}}(C),function(t){var e={init:function(e){var n={onShow:null,swipeable:!1,responsiveThreshold:1/0};e=t.extend(n,e);var i=Materialize.objectSelectorString(t(this));return this.each(function(n){var r,o,a,s,l,u=i+n,c=t(this),d=t(window).width(),f=c.find("li.tab a"),h=c.width(),p=t(),g=Math.max(h,c[0].scrollWidth)/f.length,v=prev_index=0,m=!1,y=function(t){return Math.ceil(h-t.position().left-t.outerWidth()-c.scrollLeft())},b=function(t){return Math.floor(t.position().left+c.scrollLeft())},w=function(t){v-t>=0?(s.velocity({right:y(r)},{duration:300,queue:!1,easing:"easeOutQuad"}),s.velocity({left:b(r)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(s.velocity({left:b(r)},{duration:300,queue:!1,easing:"easeOutQuad"}),s.velocity({right:y(r)},{duration:300,queue:!1,easing:"easeOutQuad",delay:90}))};e.swipeable&&d>e.responsiveThreshold&&(e.swipeable=!1),r=t(f.filter('[href="'+location.hash+'"]')),0===r.length&&(r=t(this).find("li.tab a.active").first()),0===r.length&&(r=t(this).find("li.tab a").first()),r.addClass("active"),v=f.index(r),v<0&&(v=0),void 0!==r[0]&&(o=t(r[0].hash),o.addClass("active")),c.find(".indicator").length||c.append('<div class="indicator"></div>'),s=c.find(".indicator"),c.append(s),c.is(":visible")&&setTimeout(function(){s.css({right:y(r)}),s.css({left:b(r)})},0),t(window).off("resize.tabs-"+u).on("resize.tabs-"+u,function(){h=c.width(),g=Math.max(h,c[0].scrollWidth)/f.length,v<0&&(v=0),0!==g&&0!==h&&(s.css({right:y(r)}),s.css({left:b(r)}))}),e.swipeable?(f.each(function(){var e=t(Materialize.escapeHash(this.hash));e.addClass("carousel-item"),p=p.add(e)}),a=p.wrapAll('<div class="tabs-content carousel"></div>'),p.css("display",""),t(".tabs-content.carousel").carousel({fullWidth:!0,noWrap:!0,onCycleTo:function(t){if(!m){var e=v;v=a.index(t),r=f.eq(v),w(e)}}})):f.not(r).each(function(){t(Materialize.escapeHash(this.hash)).hide()}),c.off("click.tabs").on("click.tabs","a",function(n){if(t(this).parent().hasClass("disabled"))return void n.preventDefault();if(!t(this).attr("target")){m=!0,h=c.width(),g=Math.max(h,c[0].scrollWidth)/f.length,r.removeClass("active");var i=o;r=t(this),o=t(Materialize.escapeHash(this.hash)),f=c.find("li.tab a");r.position();r.addClass("active"),prev_index=v,v=f.index(t(this)),v<0&&(v=0),e.swipeable?p.length&&p.carousel("set",v):(void 0!==o&&(o.show(),o.addClass("active"),"function"==typeof e.onShow&&e.onShow.call(this,o)),void 0===i||i.is(o)||(i.hide(),i.removeClass("active"))),l=setTimeout(function(){m=!1},300),w(prev_index),n.preventDefault()}})})},select_tab:function(t){this.find('a[href="#'+t+'"]').trigger("click")}};t.fn.tabs=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.tabs"):e.init.apply(this,arguments)},t(document).ready(function(){t("ul.tabs").tabs()})}(C),function(t){t.fn.tooltip=function(n){var i={delay:350,tooltip:"",position:"bottom",html:!1};return"remove"===n?(this.each(function(){t("#"+t(this).attr("data-tooltip-id")).remove(),t(this).off("mouseenter.tooltip mouseleave.tooltip")}),!1):(n=t.extend(i,n),this.each(function(){var i=Materialize.guid(),r=t(this);r.attr("data-tooltip-id")&&t("#"+r.attr("data-tooltip-id")).remove(),r.attr("data-tooltip-id",i);var o,a,s,l,u,c,d=function(){o=r.attr("data-html")?"true"===r.attr("data-html"):n.html,a=r.attr("data-delay"),a=void 0===a||""===a?n.delay:a,s=r.attr("data-position"),s=void 0===s||""===s?n.position:s,l=r.attr("data-tooltip"),l=void 0===l||""===l?n.tooltip:l};d();u=function(){var e=t('<div class="material-tooltip"></div>');return l=o?t("<span></span>").html(l):t("<span></span>").text(l),e.append(l).appendTo(t("body")).attr("id",i),c=t('<div class="backdrop"></div>'),c.appendTo(e),e}(),r.off("mouseenter.tooltip mouseleave.tooltip");var f,h=!1;r.on({"mouseenter.tooltip":function(t){var n=function(){d(),h=!0,u.velocity("stop"),c.velocity("stop"),u.css({visibility:"visible",left:"0px",top:"0px"});var t,n,i,o=r.outerWidth(),a=r.outerHeight(),l=u.outerHeight(),f=u.outerWidth(),p="0px",g="0px",v=c[0].offsetWidth,m=c[0].offsetHeight,y=8,b=8,w=0;"top"===s?(t=r.offset().top-l-5,n=r.offset().left+o/2-f/2,i=e(n,t,f,l),p="-10px",c.css({bottom:0,left:0,borderRadius:"14px 14px 0 0",transformOrigin:"50% 100%",marginTop:l,marginLeft:f/2-v/2})):"left"===s?(t=r.offset().top+a/2-l/2,n=r.offset().left-f-5,i=e(n,t,f,l),g="-10px",c.css({top:"-7px",right:0,width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:l/2,marginLeft:f})):"right"===s?(t=r.offset().top+a/2-l/2,n=r.offset().left+o+5,i=e(n,t,f,l),g="+10px",c.css({top:"-7px",left:0,width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:l/2,marginLeft:"0px"})):(t=r.offset().top+r.outerHeight()+5,n=r.offset().left+o/2-f/2,i=e(n,t,f,l),p="+10px",c.css({top:0,left:0,marginLeft:f/2-v/2})),u.css({top:i.y,left:i.x}),y=Math.SQRT2*f/parseInt(v),b=Math.SQRT2*l/parseInt(m),w=Math.max(y,b),u.velocity({translateY:p,translateX:g},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),c.css({visibility:"visible"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scaleX:w,scaleY:w},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})};f=setTimeout(n,a)},"mouseleave.tooltip":function(){h=!1,clearTimeout(f),setTimeout(function(){!0!==h&&(u.velocity({opacity:0,translateY:0,translateX:0},{duration:225,queue:!1}),c.velocity({opacity:0,scaleX:1,scaleY:1},{duration:225,queue:!1,complete:function(){c.css({visibility:"hidden"}),u.css({visibility:"hidden"}),h=!1}}))},225)}})}))};var e=function(e,n,i,r){var o=e,a=n;return o<0?o=4:o+i>window.innerWidth&&(o-=o+i-window.innerWidth),a<0?a=4:a+r>window.innerHeight+t(window).scrollTop&&(a-=a+r-window.innerHeight),{x:o,y:a}};t(document).ready(function(){t(".tooltipped").tooltip()})}(C),function(t){"use strict";function isWindow(t){return null!==t&&t===t.window}function getWindow(t){return isWindow(t)?t:9===t.nodeType&&t.defaultView}function offset(t){var e,n,i={top:0,left:0},r=t&&t.ownerDocument;return e=r.documentElement,void 0!==t.getBoundingClientRect&&(i=t.getBoundingClientRect()),n=getWindow(r),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}}function convertStyle(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}function getWavesEffectElement(t){if(!1===r.allowEvent(t))return null;for(var e=null,n=t.target||t.srcElement;null!==n.parentElement;){if(!(n instanceof SVGElement||-1===n.className.indexOf("waves-effect"))){e=n;break}if(n.classList.contains("waves-effect")){e=n;break}n=n.parentElement}return e}function showEffect(e){var n=getWavesEffectElement(e);null!==n&&(i.show(e,n),"ontouchstart"in t&&(n.addEventListener("touchend",i.hide,!1),n.addEventListener("touchcancel",i.hide,!1)),n.addEventListener("mouseup",i.hide,!1),n.addEventListener("mouseleave",i.hide,!1))}var e=e||{},n=document.querySelectorAll.bind(document),i={duration:750,show:function(t,e){if(2===t.button)return!1;var n=e||this,r=document.createElement("div");r.className="waves-ripple",n.appendChild(r);var o=offset(n),a=t.pageY-o.top,s=t.pageX-o.left,l="scale("+n.clientWidth/100*10+")";"touches"in t&&(a=t.touches[0].pageY-o.top,s=t.touches[0].pageX-o.left),r.setAttribute("data-hold",Date.now()),r.setAttribute("data-scale",l),r.setAttribute("data-x",s),r.setAttribute("data-y",a);var u={top:a+"px",left:s+"px"};r.className=r.className+" waves-notransition",r.setAttribute("style",convertStyle(u)),r.className=r.className.replace("waves-notransition",""),u["-webkit-transform"]=l,u["-moz-transform"]=l,u["-ms-transform"]=l,u["-o-transform"]=l,u.transform=l,u.opacity="1",u["-webkit-transition-duration"]=i.duration+"ms",u["-moz-transition-duration"]=i.duration+"ms",u["-o-transition-duration"]=i.duration+"ms",u["transition-duration"]=i.duration+"ms",u["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",u["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",r.setAttribute("style",convertStyle(u))},hide:function(t){r.touchup(t);var e=this,n=(e.clientWidth,null),o=e.getElementsByClassName("waves-ripple");if(!(o.length>0))return!1;n=o[o.length-1];var a=n.getAttribute("data-x"),s=n.getAttribute("data-y"),l=n.getAttribute("data-scale"),u=Date.now()-Number(n.getAttribute("data-hold")),c=350-u;c<0&&(c=0),setTimeout(function(){var t={top:s+"px",left:a+"px",opacity:"0","-webkit-transition-duration":i.duration+"ms","-moz-transition-duration":i.duration+"ms","-o-transition-duration":i.duration+"ms","transition-duration":i.duration+"ms","-webkit-transform":l,"-moz-transform":l,"-ms-transform":l,"-o-transform":l,transform:l};n.setAttribute("style",convertStyle(t)),setTimeout(function(){try{e.removeChild(n)}catch(t){return!1}},i.duration)},c)},wrapInput:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("input"===n.tagName.toLowerCase()){var i=n.parentNode;if("i"===i.tagName.toLowerCase()&&-1!==i.className.indexOf("waves-effect"))continue;var r=document.createElement("i");r.className=n.className+" waves-input-wrapper";var o=n.getAttribute("style");o||(o=""),r.setAttribute("style",o),n.className="waves-button-input",n.removeAttribute("style"),i.replaceChild(r,n),r.appendChild(n)}}}},r={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?r.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout(function(){r.touches>0&&(r.touches-=1)},500):"mousedown"===t.type&&r.touches>0&&(e=!1),e},touchup:function(t){r.allowEvent(t)}};e.displayEffect=function(e){e=e||{},"duration"in e&&(i.duration=e.duration),i.wrapInput(n(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",showEffect,!1),document.body.addEventListener("mousedown",showEffect,!1)},e.attach=function(e){"input"===e.tagName.toLowerCase()&&(i.wrapInput([e]),e=e.parentElement),"ontouchstart"in t&&e.addEventListener("touchstart",showEffect,!1),e.addEventListener("mousedown",showEffect,!1)},t.Waves=e,document.addEventListener("DOMContentLoaded",function(){e.displayEffect()},!1)}(window),Materialize.toast=function(t,e,n,i){n=n||"";var r=document.getElementById("toast-container");null===r&&(r=document.createElement("div"),r.id="toast-container",document.body.appendChild(r));var o=function(t){var e=document.createElement("div");if(e.classList.add("toast"),n)for(var r=n.split(" "),o=0,a=r.length;o<a;o++)e.classList.add(r[o]);("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?e.appendChild(t):t instanceof C?e.appendChild(t[0]):e.innerHTML=t;var s=new Hammer(e,{prevent_default:!1});return s.on("pan",function(t){var n=t.deltaX;e.classList.contains("panning")||e.classList.add("panning");var i=1-Math.abs(n/80);i<0&&(i=0),_(e,{left:n,opacity:i},{duration:50,queue:!1,easing:"easeOutQuad"})}),s.on("panend",function(t){var n=t.deltaX;Math.abs(n)>80?_(e,{marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof i&&i(),e.parentNode.removeChild(e)}}):(e.classList.remove("panning"),_(e,{left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))}),e}(t);t&&r.appendChild(o),o.style.opacity=0,_(o,{translateY:"-35px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var a,s=e;null!=s&&(a=setInterval(function(){null===o.parentNode&&window.clearInterval(a),o.classList.contains("panning")||(s-=20),s<=0&&(_(o,{opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof i&&i(),this[0].parentNode.removeChild(this[0])}}),window.clearInterval(a))},20))},function(t){var e={init:function(e){var n={menuWidth:300,edge:"left",closeOnClick:!1,draggable:!0};e=t.extend(n,e),t(this).each(function(){var n=t(this),i=n.attr("data-activates"),r=t("#"+i);300!=e.menuWidth&&r.css("width",e.menuWidth);var o=t('.drag-target[data-sidenav="'+i+'"]');e.draggable?(o.length&&o.remove(),o=t('<div class="drag-target"></div>').attr("data-sidenav",i),t("body").append(o)):o=t(),"left"==e.edge?(r.css("transform","translateX(-100%)"),o.css({left:0})):(r.addClass("right-aligned").css("transform","translateX(100%)"),o.css({right:0})),r.hasClass("fixed")&&window.innerWidth>992&&r.css("transform","translateX(0)"),r.hasClass("fixed")&&t(window).resize(function(){window.innerWidth>992?0!==t("#sidenav-overlay").length&&l?a(!0):r.css("transform","translateX(0%)"):!1===l&&("left"===e.edge?r.css("transform","translateX(-100%)"):r.css("transform","translateX(100%)"))}),!0===e.closeOnClick&&r.on("click.itemclick","a:not(.collapsible-header)",function(){a()});var a=function(n){s=!1,l=!1,t("body").css({overflow:"",width:""}),t("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),"left"===e.edge?(o.css({width:"",right:"",left:"0"}),r.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===n&&(r.removeAttr("style"),r.css("width",e.menuWidth))}})):(o.css({width:"",right:"0",left:""}),r.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){!0===n&&(r.removeAttr("style"),r.css("width",e.menuWidth))}}))},s=!1,l=!1;e.draggable&&(o.on("click",function(){l&&a()}),o.hammer({prevent_default:!1}).bind("pan",function(n){if("touch"==n.gesture.pointerType){var i=(n.gesture.direction,n.gesture.center.x),o=(n.gesture.center.y,n.gesture.velocityX,t("body")),s=t("#sidenav-overlay"),u=o.innerWidth();if(o.css("overflow","hidden"),o.width(u),0===s.length&&(s=t('<div id="sidenav-overlay"></div>'),s.css("opacity",0).click(function(){a()}),t("body").append(s)),"left"===e.edge&&(i>e.menuWidth?i=e.menuWidth:i<0&&(i=0)),"left"===e.edge)i<e.menuWidth/2?l=!1:i>=e.menuWidth/2&&(l=!0),r.css("transform","translateX("+(i-e.menuWidth)+"px)");else{i<window.innerWidth-e.menuWidth/2?l=!0:i>=window.innerWidth-e.menuWidth/2&&(l=!1);var c=i-e.menuWidth/2;c<0&&(c=0),r.css("transform","translateX("+c+"px)")}var d;"left"===e.edge?(d=i/e.menuWidth,s.velocity({opacity:d},{duration:10,queue:!1,easing:"easeOutQuad"})):(d=Math.abs((i-window.innerWidth)/e.menuWidth),s.velocity({opacity:d},{duration:10,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(n){if("touch"==n.gesture.pointerType){var i=t("#sidenav-overlay"),a=n.gesture.velocityX,u=n.gesture.center.x,c=u-e.menuWidth,d=u-e.menuWidth/2;c>0&&(c=0),d<0&&(d=0),s=!1,"left"===e.edge?l&&a<=.3||a<-.5?(0!==c&&r.velocity({translateX:[0,c]},{duration:300,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),o.css({width:"50%",right:0,left:""}),l=!0):(!l||a>.3)&&(t("body").css({overflow:"",width:""}),r.velocity({translateX:[-1*e.menuWidth-10,c]},{duration:200,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),o.css({width:"10px",right:"",left:0})):l&&a>=-.3||a>.5?(0!==d&&r.velocity({translateX:[0,d]},{duration:300,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),o.css({width:"50%",right:"",left:0}),l=!0):(!l||a<-.3)&&(t("body").css({overflow:"",width:""}),r.velocity({translateX:[e.menuWidth+10,d]},{duration:200,queue:!1,easing:"easeOutQuad"}),i.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}}),o.css({width:"10px",right:0,left:""}))}})),n.off("click.sidenav").on("click.sidenav",function(){if(!0===l)l=!1,s=!1,a();else{var n=t("body"),i=t('<div id="sidenav-overlay"></div>'),u=n.innerWidth();n.css("overflow","hidden"),n.width(u),t("body").append(o),"left"===e.edge?(o.css({width:"50%",right:0,left:""}),r.velocity({translateX:[0,-1*e.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})):(o.css({width:"50%",right:"",left:0}),r.velocity({translateX:[0,e.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})),i.css("opacity",0).click(function(){l=!1,s=!1,a(),i.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){t(this).remove()}})}),t("body").append(i),i.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){l=!0,s=!1}})}return!1})})},destroy:function(){var e=t("#sidenav-overlay"),n=t('.drag-target[data-sidenav="'+t(this).attr("data-activates")+'"]');e.trigger("click"),n.remove(),t(this).off("click"),e.remove()},show:function(){this.trigger("click")},hide:function(){t("#sidenav-overlay").trigger("click")}};t.fn.sideNav=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sideNav"):e.init.apply(this,arguments)}}(C),function(t){function findElements(e,i,r,o){var a=t();return t.each(n,function(t,n){if(n.height()>0){var s=n.offset().top,l=n.offset().left,u=l+n.width(),c=s+n.height();!(l>i||u<o||s>r||c<e)&&a.push(n)}}),a}function onScroll(n){++o;var r=e.scrollTop(),s=e.scrollLeft(),l=s+e.width(),u=r+e.height(),c=findElements(r+a.top+n||200,l+a.right,u+a.bottom,s+a.left);t.each(c,function(t,e){"number"!=typeof e.data("scrollSpy:ticks")&&e.triggerHandler("scrollSpy:enter"),e.data("scrollSpy:ticks",o)}),t.each(i,function(t,e){var n=e.data("scrollSpy:ticks");"number"==typeof n&&n!==o&&(e.triggerHandler("scrollSpy:exit"),e.data("scrollSpy:ticks",null))}),i=c}function onWinSize(){e.trigger("scrollSpy:winSize")}var e=t(window),n=[],i=[],r=!1,o=0,a={top:0,right:0,bottom:0,left:0};t.scrollSpy=function(i,o){var s={throttle:100,scrollOffset:200};o=t.extend(s,o);var l=[];i=t(i),i.each(function(e,i){n.push(t(i)),t(i).data("scrollSpy:id",e),t('a[href="#'+t(i).attr("id")+'"]').click(function(e){e.preventDefault();var n=t(Materialize.escapeHash(this.hash)).offset().top+1;t("html, body").animate({scrollTop:n-o.scrollOffset},{duration:400,queue:!1,easing:"easeOutCubic"})})}),a.top=o.offsetTop||0,a.right=o.offsetRight||0,a.bottom=o.offsetBottom||0,a.left=o.offsetLeft||0;var u=Materialize.throttle(function(){onScroll(o.scrollOffset)},o.throttle||100),c=function(){t(document).ready(u)};return r||(e.on("scroll",c),e.on("resize",c),r=!0),setTimeout(c,0),i.on("scrollSpy:enter",function(){l=t.grep(l,function(t){return 0!=t.height()});var e=t(this);l[0]?(t('a[href="#'+l[0].attr("id")+'"]').removeClass("active"),e.data("scrollSpy:id")<l[0].data("scrollSpy:id")?l.unshift(t(this)):l.push(t(this))):l.push(t(this)),t('a[href="#'+l[0].attr("id")+'"]').addClass("active")}),i.on("scrollSpy:exit",function(){if(l=t.grep(l,function(t){return 0!=t.height()}),l[0]){t('a[href="#'+l[0].attr("id")+'"]').removeClass("active");var e=t(this);l=t.grep(l,function(t){return t.attr("id")!=e.attr("id")}),l[0]&&t('a[href="#'+l[0].attr("id")+'"]').addClass("active")}}),i},t.winSizeSpy=function(n){return t.winSizeSpy=function(){return e},n=n||{throttle:100},e.on("resize",Materialize.throttle(onWinSize,n.throttle||100))},t.fn.scrollSpy=function(e){return t.scrollSpy(t(this),e)}}(C),function(t){t(document).ready(function(){function textareaAutoResize(e){var i=e.css("font-family"),r=e.css("font-size"),o=e.css("line-height");r&&n.css("font-size",r),i&&n.css("font-family",i),o&&n.css("line-height",o),"off"===e.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(e.val()+"\n");var a=n.html().replace(/\n/g,"<br>");n.html(a),e.is(":visible")?n.css("width",e.width()):n.css("width",t(window).width()/2),e.data("original-height")<=n.height()?e.css("height",n.height()):e.val().length<e.data("previous-length")&&e.css("height",e.data("original-height")),e.data("previous-length",e.val().length)}Materialize.updateTextFields=function(){t("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(e,n){var i=t(this);t(n).val().length>0||n.autofocus||void 0!==i.attr("placeholder")?i.siblings("label").addClass("active"):t(n)[0].validity?i.siblings("label").toggleClass("active",!0===t(n)[0].validity.badInput):i.siblings("label").removeClass("active")})};var e="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";t(document).on("change",e,function(){0===t(this).val().length&&void 0===t(this).attr("placeholder")||t(this).siblings("label").addClass("active"),validate_field(t(this))}),t(document).ready(function(){Materialize.updateTextFields()}),t(document).on("reset",function(n){var i=t(n.target);i.is("form")&&(i.find(e).removeClass("valid").removeClass("invalid"),i.find(e).each(function(){""===t(this).attr("value")&&t(this).siblings("label").removeClass("active")}),i.find("select.initialized").each(function(){var t=i.find("option[selected]").text();i.siblings("input.select-dropdown").val(t)}))}),t(document).on("focus",e,function(){t(this).siblings("label, .prefix").addClass("active")}),t(document).on("blur",e,function(){var e=t(this),n=".prefix";0===e.val().length&&!0!==e[0].validity.badInput&&void 0===e.attr("placeholder")&&(n+=", label"),e.siblings(n).removeClass("active"),validate_field(e)}),window.validate_field=function(t){var e=void 0!==t.attr("data-length"),n=parseInt(t.attr("data-length")),i=t.val().length;0===t.val().length&&!1===t[0].validity.badInput?t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid")):t.hasClass("validate")&&(t.is(":valid")&&e&&i<=n||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid")))};t(document).on("keyup.radio","input[type=radio], input[type=checkbox]",function(e){if(9===e.which){t(this).addClass("tabbed");return void t(this).one("blur",function(e){t(this).removeClass("tabbed")})}});var n=t(".hiddendiv").first();n.length||(n=t('<div class="hiddendiv common"></div>'),t("body").append(n));t(".materialize-textarea").each(function(){var e=t(this);e.data("original-height",e.height()),e.data("previous-length",e.val().length)}),t("body").on("keyup keydown autoresize",".materialize-textarea",function(){textareaAutoResize(t(this))}),t(document).on("change",'.file-field input[type="file"]',function(){for(var e=t(this).closest(".file-field"),n=e.find("input.file-path"),i=t(this)[0].files,r=[],o=0;o<i.length;o++)r.push(i[o].name);n.val(r.join(", ")),n.trigger("change")});var i="input[type=range]",r=!1;t(i).each(function(){var e=t('<span class="thumb"><span class="value"></span></span>');t(this).after(e)});var o=function(t){var e=parseInt(t.parent().css("padding-left")),n=-7+e+"px";t.velocity({height:"30px",width:"30px",top:"-30px",marginLeft:n},{duration:300,easing:"easeOutExpo"})},a=function(t){var e=t.width()-15,n=parseFloat(t.attr("max")),i=parseFloat(t.attr("min"));return(parseFloat(t.val())-i)/(n-i)*e};t(document).on("change",i,function(e){var n=t(this).siblings(".thumb");n.find(".value").html(t(this).val()),n.hasClass("active")||o(n);var i=a(t(this));n.addClass("active").css("left",i)}),t(document).on("mousedown touchstart",i,function(e){var n=t(this).siblings(".thumb");if(n.length<=0&&(n=t('<span class="thumb"><span class="value"></span></span>'),t(this).after(n)),n.find(".value").html(t(this).val()),r=!0,t(this).addClass("active"),n.hasClass("active")||o(n),"input"!==e.type){var i=a(t(this));n.addClass("active").css("left",i)}}),t(document).on("mouseup touchend",".range-field",function(){r=!1,t(this).removeClass("active")}),t(document).on("input mousemove touchmove",".range-field",function(e){var n=t(this).children(".thumb"),s=t(this).find(i);if(r){n.hasClass("active")||o(n);var l=a(s);n.addClass("active").css("left",l),n.find(".value").html(n.siblings(i).val())}}),t(document).on("mouseout touchleave",".range-field",function(){if(!r){var e=t(this).children(".thumb"),n=parseInt(t(this).css("padding-left")),i=7+n+"px";e.hasClass("active")&&e.velocity({height:"0",width:"0",top:"10px",marginLeft:i},{duration:100}),e.removeClass("active")}}),t.fn.autocomplete=function(e){var n={data:{},limit:1/0,onAutocomplete:null,minLength:1};return e=t.extend(n,e),this.each(function(){var n,i=t(this),r=e.data,o=0,a=-1,s=i.closest(".input-field");if(!t.isEmptyObject(r)){var l,u=t('<ul class="autocomplete-content dropdown-content"></ul>');s.length?(l=s.children(".autocomplete-content.dropdown-content").first(),l.length||s.append(u)):(l=i.next(".autocomplete-content.dropdown-content"),l.length||i.after(u)),l.length&&(u=l);var c=function(t,e){var n=e.find("img"),i=e.text().toLowerCase().indexOf(""+t.toLowerCase()),r=i+t.length-1,o=e.text().slice(0,i),a=e.text().slice(i,r+1),s=e.text().slice(r+1);e.html("<span>"+o+"<span class='highlight'>"+a+"</span>"+s+"</span>"),n.length&&e.prepend(n)},d=function(){a=-1,u.find(".active").removeClass("active")},f=function(){u.empty(),d(),n=void 0};i.off("blur.autocomplete").on("blur.autocomplete",function(){f()}),i.off("keyup.autocomplete focus.autocomplete").on("keyup.autocomplete focus.autocomplete",function(a){o=0;var s=i.val().toLowerCase();if(13!==a.which&&38!==a.which&&40!==a.which){if(n!==s&&(f(),s.length>=e.minLength))for(var l in r)if(r.hasOwnProperty(l)&&-1!==l.toLowerCase().indexOf(s)&&l.toLowerCase()!==s){if(o>=e.limit)break;var d=t("<li></li>");r[l]?d.append('<img src="'+r[l]+'" class="right circle"><span>'+l+"</span>"):d.append("<span>"+l+"</span>"),u.append(d),c(s,d),o++}n=s}}),i.off("keydown.autocomplete").on("keydown.autocomplete",function(t){var e,n=t.which,i=u.children("li").length,r=u.children(".active").first();if(13===n&&a>=0)return e=u.children("li").eq(a),void(e.length&&(e.trigger("mousedown.autocomplete"),t.preventDefault()));38!==n&&40!==n||(t.preventDefault(),38===n&&a>0&&a--,40===n&&a<i-1&&a++,r.removeClass("active"),a>=0&&u.children("li").eq(a).addClass("active"))}),u.on("mousedown.autocomplete touchstart.autocomplete","li",function(){var n=t(this).text().trim();i.val(n),i.trigger("change"),f(),"function"==typeof e.onAutocomplete&&e.onAutocomplete.call(this,n)})}})}}),t.fn.material_select=function(e){function toggleEntryFromArray(t,e,n){var i=t.indexOf(e),r=-1===i;return r?t.push(e):t.splice(i,1),n.siblings("ul.dropdown-content").find("li:not(.optgroup)").eq(e).toggleClass("active"),n.find("option").eq(e).prop("selected",r),setValueToInput(t,n),r}function setValueToInput(t,e){for(var n="",i=0,r=t.length;i<r;i++){var o=e.find("option").eq(t[i]).text();n+=0===i?o:", "+o}""===n&&(n=e.find("option:disabled").eq(0).text()),e.siblings("input.select-dropdown").val(n)}t(this).each(function(){var n=t(this);if(!n.hasClass("browser-default")){var i=!!n.attr("multiple"),r=n.data("select-id");if(r&&(n.parent().find("span.caret").remove(),n.parent().find("input").remove(),n.unwrap(),t("ul#select-options-"+r).remove()),"destroy"===e)return void n.data("select-id",null).removeClass("initialized");var o=Materialize.guid();n.data("select-id",o);var a=t('<div class="select-wrapper"></div>');a.addClass(n.attr("class"));var s=t('<ul id="select-options-'+o+'" class="dropdown-content select-dropdown '+(i?"multiple-select-dropdown":"")+'"></ul>'),l=n.children("option, optgroup"),u=[],c=!1,d=n.find("option:selected").html()||n.find("option:first").html()||"",f=function(e,n,r){var o=n.is(":disabled")?"disabled ":"",a="optgroup-option"===r?"optgroup-option ":"",l=i?'<input type="checkbox"'+o+"/><label></label>":"",u=n.data("icon"),c=n.attr("class");if(u){var d="";return c&&(d=' class="'+c+'"'),s.append(t('<li class="'+o+a+'"><img alt="" src="'+u+'"'+d+"><span>"+l+n.html()+"</span></li>")),!0}s.append(t('<li class="'+o+a+'"><span>'+l+n.html()+"</span></li>"))};l.length&&l.each(function(){if(t(this).is("option"))i?f(0,t(this),"multiple"):f(0,t(this));else if(t(this).is("optgroup")){var e=t(this).children("option");s.append(t('<li class="optgroup"><span>'+t(this).attr("label")+"</span></li>")),e.each(function(){f(0,t(this),"optgroup-option")})}}),s.find("li:not(.optgroup)").each(function(r){t(this).click(function(o){if(!t(this).hasClass("disabled")&&!t(this).hasClass("optgroup")){var a=!0;i?(t('input[type="checkbox"]',this).prop("checked",function(t,e){return!e}),a=toggleEntryFromArray(u,r,n),g.trigger("focus")):(s.find("li").removeClass("active"),t(this).toggleClass("active"),g.val(t(this).text())),v(s,t(this)),n.find("option").eq(r).prop("selected",a),n.trigger("change"),void 0!==e&&e()}o.stopPropagation()})}),n.wrap(a);var h=t('<span class="caret">▼</span>');n.is(":disabled")&&h.addClass("disabled");var p=d.replace(/"/g,"""),g=t('<input type="text" class="select-dropdown" readonly="true" '+(n.is(":disabled")?"disabled":"")+' data-activates="select-options-'+o+'" value="'+p+'"/>');n.before(g),g.before(h),g.after(s),n.is(":disabled")||g.dropdown({hover:!1}),n.attr("tabindex")&&t(g[0]).attr("tabindex",n.attr("tabindex")),n.addClass("initialized"),g.on({focus:function(){if(t("ul.select-dropdown").not(s[0]).is(":visible")&&t("input.select-dropdown").trigger("close"),!s.is(":visible")){t(this).trigger("open",["focus"]);var e=t(this).val();i&&e.indexOf(",")>=0&&(e=e.split(",")[0]);var n=s.find("li").filter(function(){return t(this).text().toLowerCase()===e.toLowerCase()})[0];v(s,n,!0)}},click:function(t){t.stopPropagation()}}),g.on("blur",function(){i||t(this).trigger("close"),s.find("li.selected").removeClass("selected")}),s.hover(function(){c=!0},function(){c=!1}),t(window).on({click:function(){i&&(c||g.trigger("close"))}}),i&&n.find("option:selected:not(:disabled)").each(function(){var e=t(this).index();toggleEntryFromArray(u,e,n),s.find("li").eq(e).find(":checkbox").prop("checked",!0)});var v=function(e,n,r){if(n){e.find("li.selected").removeClass("selected");var o=t(n);o.addClass("selected"),i&&!r||s.scrollTo(o)}},m=[],y=function(e){if(9==e.which)return void g.trigger("close");if(40==e.which&&!s.is(":visible"))return void g.trigger("open");if(13!=e.which||s.is(":visible")){e.preventDefault();var n=String.fromCharCode(e.which).toLowerCase(),r=[9,13,27,38,40];if(n&&-1===r.indexOf(e.which)){m.push(n);var o=m.join(""),a=s.find("li").filter(function(){return 0===t(this).text().toLowerCase().indexOf(o)})[0];a&&v(s,a)}if(13==e.which){var l=s.find("li.selected:not(.disabled)")[0];l&&(t(l).trigger("click"),i||g.trigger("close"))}40==e.which&&(a=s.find("li.selected").length?s.find("li.selected").next("li:not(.disabled)")[0]:s.find("li:not(.disabled)")[0],v(s,a)),27==e.which&&g.trigger("close"),38==e.which&&(a=s.find("li.selected").prev("li:not(.disabled)")[0])&&v(s,a),setTimeout(function(){m=[]},1e3)}};g.on("keydown",y)}})}}(C),function(t){var e={init:function(e){var n={indicators:!0,height:400,transition:500,interval:6e3};return e=t.extend(n,e),this.each(function(){function captionTransition(t,e){t.hasClass("center-align")?t.velocity({opacity:0,translateY:-100},{duration:e,queue:!1}):t.hasClass("right-align")?t.velocity({opacity:0,translateX:100},{duration:e,queue:!1}):t.hasClass("left-align")&&t.velocity({opacity:0,translateX:-100},{duration:e,queue:!1})}function moveToSlide(t){t>=s.length?t=0:t<0&&(t=s.length-1),(l=a.find(".active").index())!=t&&(n=s.eq(l),$caption=n.find(".caption"),n.removeClass("active"),n.velocity({opacity:0},{duration:e.transition,queue:!1,easing:"easeOutQuad",complete:function(){s.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),captionTransition($caption,e.transition),e.indicators&&i.eq(l).removeClass("active"),s.eq(t).velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,delay:e.transition,queue:!1,easing:"easeOutQuad"}),s.eq(t).addClass("active"),e.indicators&&i.eq(t).addClass("active"))}var n,i,r,o=t(this),a=o.find("ul.slides").first(),s=a.find("> li"),l=a.find(".active").index();-1!=l&&(n=s.eq(l)),o.hasClass("fullscreen")||(e.indicators?o.height(e.height+40):o.height(e.height),a.height(e.height)),s.find(".caption").each(function(){captionTransition(t(this),0)}),s.find("img").each(function(){var e="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";t(this).attr("src")!==e&&(t(this).css("background-image","url("+t(this).attr("src")+")"),t(this).attr("src",e))}),e.indicators&&(i=t('<ul class="indicators"></ul>'),s.each(function(n){var o=t('<li class="indicator-item"></li>');o.click(function(){moveToSlide(a.parent().find(t(this)).index()),clearInterval(r),r=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,moveToSlide(l)},e.transition+e.interval)}),i.append(o)}),o.append(i),i=o.find("ul.indicators").find("li.indicator-item")),n?n.show():(s.first().addClass("active").velocity({opacity:1},{duration:e.transition,queue:!1,easing:"easeOutQuad"}),l=0,n=s.eq(l),e.indicators&&i.eq(l).addClass("active")),n.find("img").each(function(){n.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:e.transition,queue:!1,easing:"easeOutQuad"})}),r=setInterval(function(){l=a.find(".active").index(),moveToSlide(l+1)},e.transition+e.interval);var u=!1,c=!1,d=!1;o.hammer({prevent_default:!1}).bind("pan",function(t){if("touch"===t.gesture.pointerType){clearInterval(r);var e=t.gesture.direction,n=t.gesture.deltaX,i=t.gesture.velocityX,l=t.gesture.velocityY;$curr_slide=a.find(".active"),Math.abs(i)>Math.abs(l)&&$curr_slide.velocity({translateX:n},{duration:50,queue:!1,easing:"easeOutQuad"}),4===e&&(n>o.innerWidth()/2||i<-.65)?d=!0:2===e&&(n<-1*o.innerWidth()/2||i>.65)&&(c=!0);var u;c&&(u=$curr_slide.next(),0===u.length&&(u=s.first()),u.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),d&&(u=$curr_slide.prev(),0===u.length&&(u=s.last()),u.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(t){"touch"===t.gesture.pointerType&&($curr_slide=a.find(".active"),u=!1,curr_index=a.find(".active").index(),!d&&!c||s.length<=1?$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}):c?(moveToSlide(curr_index+1),$curr_slide.velocity({translateX:-1*o.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):d&&(moveToSlide(curr_index-1),$curr_slide.velocity({translateX:o.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})),c=!1,d=!1,clearInterval(r),r=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,moveToSlide(l)},e.transition+e.interval))}),o.on("sliderPause",function(){clearInterval(r)}),o.on("sliderStart",function(){clearInterval(r),r=setInterval(function(){l=a.find(".active").index(),s.length==l+1?l=0:l+=1,moveToSlide(l)},e.transition+e.interval)}),o.on("sliderNext",function(){l=a.find(".active").index(),moveToSlide(l+1)}),o.on("sliderPrev",function(){l=a.find(".active").index(),moveToSlide(l-1)})})},pause:function(){t(this).trigger("sliderPause")},start:function(){t(this).trigger("sliderStart")},next:function(){t(this).trigger("sliderNext")},prev:function(){t(this).trigger("sliderPrev")}};t.fn.slider=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.tooltip"):e.init.apply(this,arguments)}}(C),function(t){t(document).ready(function(){t(document).on("click.card",".card",function(e){t(this).find("> .card-reveal").length&&(t(e.target).is(t(".card-reveal .card-title"))||t(e.target).is(t(".card-reveal .card-title i"))?t(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){t(this).css({display:"none"})}}):(t(e.target).is(t(".card .activator"))||t(e.target).is(t(".card .activator i")))&&(t(e.target).closest(".card").css("overflow","hidden"),t(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"})))})})}(C),function(t){var e={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{}};t(document).ready(function(){t(document).on("click",".chip .close",function(e){t(this).closest(".chips").attr("data-initialized")||t(this).closest(".chip").remove()})}),t.fn.material_chip=function(n){var i=this;if(this.$el=t(this),this.$document=t(document),this.SELS={CHIPS:".chips",CHIP:".chip",INPUT:"input",DELETE:".material-icons",SELECTED_CHIP:".selected"},"data"===n)return this.$el.data("chips");var r=t.extend({},e,n);i.hasAutocomplete=!t.isEmptyObject(r.autocompleteOptions.data),this.init=function(){var e=0;i.$el.each(function(){var n=t(this),o=Materialize.guid();i.chipId=o,r.data&&r.data instanceof Array||(r.data=[]),n.data("chips",r.data),n.attr("data-index",e),n.attr("data-initialized",!0),n.hasClass(i.SELS.CHIPS)||n.addClass("chips"),i.chips(n,o),e++})},this.handleEvents=function(){var e=i.SELS;i.$document.off("click.chips-focus",e.CHIPS).on("click.chips-focus",e.CHIPS,function(n){t(n.target).find(e.INPUT).focus()}),i.$document.off("click.chips-select",e.CHIP).on("click.chips-select",e.CHIP,function(n){var r=t(n.target);if(r.length){var o=r.hasClass("selected"),a=r.closest(e.CHIPS);t(e.CHIP).removeClass("selected"),o||i.selectChip(r.index(),a)}}),i.$document.off("keydown.chips").on("keydown.chips",function(n){if(!t(n.target).is("input, textarea")){var r,o=i.$document.find(e.CHIP+e.SELECTED_CHIP),a=o.closest(e.CHIPS),s=o.siblings(e.CHIP).length;if(o.length)if(8===n.which||46===n.which){n.preventDefault(),r=o.index(),i.deleteChip(r,a);var l=null;r+1<s?l=r:r!==s&&r+1!==s||(l=s-1),l<0&&(l=null),null!==l&&i.selectChip(l,a),s||a.find("input").focus()}else if(37===n.which){if((r=o.index()-1)<0)return;t(e.CHIP).removeClass("selected"),i.selectChip(r,a)}else if(39===n.which){if(r=o.index()+1,t(e.CHIP).removeClass("selected"),r>s)return void a.find("input").focus();i.selectChip(r,a)}}}),i.$document.off("focusin.chips",e.CHIPS+" "+e.INPUT).on("focusin.chips",e.CHIPS+" "+e.INPUT,function(n){var i=t(n.target).closest(e.CHIPS);i.addClass("focus"),i.siblings("label, .prefix").addClass("active"),t(e.CHIP).removeClass("selected")}),i.$document.off("focusout.chips",e.CHIPS+" "+e.INPUT).on("focusout.chips",e.CHIPS+" "+e.INPUT,function(n){var i=t(n.target).closest(e.CHIPS);i.removeClass("focus"),i.data("chips").length||i.siblings("label").removeClass("active"),i.siblings(".prefix").removeClass("active")}),i.$document.off("keydown.chips-add",e.CHIPS+" "+e.INPUT).on("keydown.chips-add",e.CHIPS+" "+e.INPUT,function(n){var r=t(n.target),o=r.closest(e.CHIPS),a=o.children(e.CHIP).length;if(13===n.which){if(i.hasAutocomplete&&o.find(".autocomplete-content.dropdown-content").length&&o.find(".autocomplete-content.dropdown-content").children().length)return;return n.preventDefault(),i.addChip({tag:r.val()},o),void r.val("")}if((8===n.keyCode||37===n.keyCode)&&""===r.val()&&a)return n.preventDefault(),i.selectChip(a-1,o),void r.blur()}),i.$document.off("click.chips-delete",e.CHIPS+" "+e.DELETE).on("click.chips-delete",e.CHIPS+" "+e.DELETE,function(n){var r=t(n.target),o=r.closest(e.CHIPS),a=r.closest(e.CHIP);n.stopPropagation(),i.deleteChip(a.index(),o),o.find("input").focus()})},this.chips=function(e,n){e.empty(),e.data("chips").forEach(function(t){e.append(i.renderChip(t))}),e.append(t('<input id="'+n+'" class="input" placeholder="">')),i.setPlaceholder(e);var o=e.next("label");o.length&&(o.attr("for",n),e.data("chips").length&&o.addClass("active"));var a=t("#"+n);i.hasAutocomplete&&(r.autocompleteOptions.onAutocomplete=function(t){i.addChip({tag:t},e),a.val(""),a.focus()},a.autocomplete(r.autocompleteOptions))},this.renderChip=function(e){if(e.tag){var n=t('<div class="chip"></div>');return n.text(e.tag),n.append(t('<i class="material-icons close">close</i>')),n}},this.setPlaceholder=function(t){t.data("chips").length&&r.placeholder?t.find("input").prop("placeholder",r.placeholder):!t.data("chips").length&&r.secondaryPlaceholder&&t.find("input").prop("placeholder",r.secondaryPlaceholder)},this.isValid=function(t,e){for(var n=t.data("chips"),i=!1,r=0;r<n.length;r++)if(n[r].tag===e.tag)return void(i=!0);return""!==e.tag&&!i},this.addChip=function(t,e){if(i.isValid(e,t)){for(var n=i.renderChip(t),r=[],o=e.data("chips"),a=0;a<o.length;a++)r.push(o[a]);r.push(t),e.data("chips",r),n.insertBefore(e.find("input")),e.trigger("chip.add",t),i.setPlaceholder(e)}},this.deleteChip=function(t,e){var n=e.data("chips")[t];e.find(".chip").eq(t).remove();for(var r=[],o=e.data("chips"),a=0;a<o.length;a++)a!==t&&r.push(o[a]);e.data("chips",r),e.trigger("chip.delete",n),i.setPlaceholder(e)},this.selectChip=function(t,e){var n=e.find(".chip").eq(t);n&&!1===n.hasClass("selected")&&(n.addClass("selected"),e.trigger("chip.select",e.data("chips")[t]))},this.getChipsElement=function(t,e){return e.eq(t)},this.init(),this.handleEvents()}}(C),function(t){t.fn.pushpin=function(e){var n={top:0,bottom:1/0,offset:0};return"remove"===e?(this.each(function(){(id=t(this).data("pushpin-id"))&&(t(window).off("scroll."+id),t(this).removeData("pushpin-id").removeClass("pin-top pinned pin-bottom").removeAttr("style"))}),!1):(e=t.extend(n,e),$index=0,this.each(function(){function removePinClasses(t){t.removeClass("pin-top"),t.removeClass("pinned"),t.removeClass("pin-bottom")}function updateElements(n,i){n.each(function(){e.top<=i&&e.bottom>=i&&!t(this).hasClass("pinned")&&(removePinClasses(t(this)),t(this).css("top",e.offset),t(this).addClass("pinned")),i<e.top&&!t(this).hasClass("pin-top")&&(removePinClasses(t(this)),t(this).css("top",0),t(this).addClass("pin-top")),i>e.bottom&&!t(this).hasClass("pin-bottom")&&(removePinClasses(t(this)),t(this).addClass("pin-bottom"),t(this).css("top",e.bottom-r))})}var n=Materialize.guid(),i=t(this),r=t(this).offset().top;t(this).data("pushpin-id",n),updateElements(i,t(window).scrollTop()),t(window).on("scroll."+n,function(){var n=t(window).scrollTop()+e.offset;updateElements(i,n)})}))}}(C),function(t){t(document).ready(function(){t.fn.reverse=[].reverse,t(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(n){var i=t(this);e(i)}),t(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle):not(.toolbar)",function(e){var i=t(this);n(i)}),t(document).on("click.fabClickToggle",".fixed-action-btn.click-to-toggle > a",function(i){var r=t(this),o=r.parent();o.hasClass("active")?n(o):e(o)}),t(document).on("click.fabToolbar",".fixed-action-btn.toolbar > a",function(e){var n=t(this),r=n.parent();i(r)})}),t.fn.extend({openFAB:function(){e(t(this))},closeFAB:function(){n(t(this))},openToolbar:function(){i(t(this))},closeToolbar:function(){r(t(this))}});var e=function(e){var n=e;if(!1===n.hasClass("active")){var i,r,o=n.hasClass("horizontal");!0===o?r=40:i=40,n.addClass("active"),n.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:i+"px",translateX:r+"px"},{duration:0});var a=0;n.find("ul .btn-floating").reverse().each(function(){t(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:a}),a+=40})}},n=function(t){var e,n,i=t,r=i.hasClass("horizontal");!0===r?n=40:e=40,i.removeClass("active");i.find("ul .btn-floating").velocity("stop",!0),i.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:e+"px",translateX:n+"px"},{duration:80})},i=function(e){if("true"!==e.attr("data-open")){var n,i,o,a=window.innerWidth,s=window.innerHeight,l=e[0].getBoundingClientRect(),u=e.find("> a").first(),c=e.find("> ul").first(),d=t('<div class="fab-backdrop"></div>'),f=u.css("background-color");u.append(d),n=l.left-a/2+l.width/2,i=s-l.bottom,o=a/d.width(),e.attr("data-origin-bottom",l.bottom),e.attr("data-origin-left",l.left),e.attr("data-origin-width",l.width),e.addClass("active"),e.attr("data-open",!0),e.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+n+"px)",transition:"none"}),u.css({transform:"translateY("+-i+"px)",transition:"none"}),d.css({"background-color":f}),setTimeout(function(){e.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),u.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){e.css({overflow:"hidden","background-color":f}),d.css({transform:"scale("+o+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),c.find("> li > a").css({opacity:1}),t(window).on("scroll.fabToolbarClose",function(){r(e),t(window).off("scroll.fabToolbarClose"),t(document).off("click.fabToolbarClose")}),t(document).on("click.fabToolbarClose",function(n){t(n.target).closest(c).length||(r(e),t(window).off("scroll.fabToolbarClose"),t(document).off("click.fabToolbarClose"))})},100)},0)}},r=function(t){if("true"===t.attr("data-open")){var e,n,i=window.innerWidth,r=window.innerHeight,o=t.attr("data-origin-width"),a=t.attr("data-origin-bottom"),s=t.attr("data-origin-left"),l=t.find("> .btn-floating").first(),u=t.find("> ul").first(),c=t.find(".fab-backdrop"),d=l.css("background-color");e=s-i/2+o/2,n=r-a,i/c.width(),t.removeClass("active"),t.attr("data-open",!1),t.css({"background-color":"transparent",transition:"none"}),l.css({transition:"none"}),c.css({transform:"scale(0)","background-color":d}),u.find("> li > a").css({opacity:""}),setTimeout(function(){c.remove(),t.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-e+"px,0,0)"}),l.css({overflow:"",transform:"translate3d(0,"+n+"px,0)"}),setTimeout(function(){t.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),l.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}}(C),function(t){Materialize.fadeInImage=function(e){var n;if("string"==typeof e)n=t(e);else{if("object"!=typeof e)return;n=e}n.css({opacity:0}),t(n).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),t(n).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(e,n){n.start=100;var i=e/100,r=150-(100-e)/1.75;r<100&&(r=100),e>=0&&t(this).css({"-webkit-filter":"grayscale("+i+")brightness("+r+"%)",filter:"grayscale("+i+")brightness("+r+"%)"})}})},Materialize.showStaggeredList=function(e){var n;if("string"==typeof e)n=t(e);else{if("object"!=typeof e)return;n=e}var i=0;n.find("li").velocity({translateX:"-100px"},{duration:0}),n.find("li").each(function(){t(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:i,easing:[60,10]}),i+=120})},t(document).ready(function(){var e=!1,n=!1;t(".dismissable").each(function(){t(this).hammer({prevent_default:!1}).bind("pan",function(i){if("touch"===i.gesture.pointerType){var r=t(this),o=i.gesture.direction,a=i.gesture.deltaX,s=i.gesture.velocityX;r.velocity({translateX:a},{duration:50,queue:!1,easing:"easeOutQuad"}),4===o&&(a>r.innerWidth()/2||s<-.75)&&(e=!0),2===o&&(a<-1*r.innerWidth()/2||s>.75)&&(n=!0)}}).bind("panend",function(i){if(Math.abs(i.gesture.deltaX)<t(this).innerWidth()/2&&(n=!1,e=!1),"touch"===i.gesture.pointerType){var r=t(this);if(e||n){var o;o=e?r.innerWidth():-1*r.innerWidth(),r.velocity({translateX:o},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){r.css("border","none"),r.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){r.remove()}})}})}else r.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"});e=!1,n=!1}})})})}(C),function(t){var e=!1;Materialize.scrollFire=function(t){var n=function(){for(var e=window.pageYOffset+window.innerHeight,n=0;n<t.length;n++){var i=t[n],r=i.selector,o=i.offset,a=i.callback,s=document.querySelector(r);if(null!==s){if(e>s.getBoundingClientRect().top+window.pageYOffset+o&&!0!==i.done){if("function"==typeof a)a.call(this,s);else if("string"==typeof a){var l=new Function(a);l(s)}i.done=!0}}}},i=Materialize.throttle(function(){n()},t.throttle||100);e||(window.addEventListener("scroll",i),window.addEventListener("resize",i),e=!0),setTimeout(i,0)}}(),function(t){b=[a(0)],h=t,T="function"==typeof h?h.apply(i,b):h}(function(t){function PickerConstructor(e,r,o,a){function createWrappedComponent(){return PickerConstructor._.node("div",PickerConstructor._.node("div",PickerConstructor._.node("div",PickerConstructor._.node("div",h.component.nodes(l.open),c.box),c.wrap),c.frame),c.holder)}function prepareElement(){d.data(r,h).addClass(c.input).attr("tabindex",-1).val(d.data("value")?h.get("select",u.format):e.value),u.editable||d.on("focus."+l.id+" click."+l.id,function(t){t.preventDefault(),h.$root.eq(0).focus()}).on("keydown."+l.id,handleKeydownEvent),aria(e,{haspopup:!0,expanded:!1,readonly:!1,owns:e.id+"_root"})}function prepareElementRoot(){h.$root.on({keydown:handleKeydownEvent,focusin:function(t){h.$root.removeClass(c.focused),t.stopPropagation()},"mousedown click":function(e){var n=e.target;n!=h.$root.children()[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(n).is("input, select, textarea, button, option")||(e.preventDefault(),h.$root.eq(0).focus()))}}).on({focus:function(){d.addClass(c.target)},blur:function(){d.removeClass(c.target)}}).on("focus.toOpen",handleFocusToOpenEvent).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=t(this),n=e.data(),i=e.hasClass(c.navDisabled)||e.hasClass(c.disabled),r=getActiveElement();r=r&&(r.type||r.href),(i||r&&!t.contains(h.$root[0],r))&&h.$root.eq(0).focus(),!i&&n.nav?h.set("highlight",h.component.item.highlight,{nav:n.nav}):!i&&"pick"in n?h.set("select",n.pick):n.clear?h.clear().close(!0):n.close&&h.close(!0)}),aria(h.$root[0],"hidden",!0)}function prepareElementHidden(){var n;!0===u.hiddenName?(n=e.name,e.name=""):(n=["string"==typeof u.hiddenPrefix?u.hiddenPrefix:"","string"==typeof u.hiddenSuffix?u.hiddenSuffix:"_submit"],n=n[0]+e.name+n[1]),h._hidden=t('<input type=hidden name="'+n+'"'+(d.data("value")||e.value?' value="'+h.get("select",u.formatSubmit)+'"':"")+">")[0],d.on("change."+l.id,function(){h._hidden.value=e.value?h.get("select",u.formatSubmit):""}),u.container?t(u.container).append(h._hidden):d.after(h._hidden)}function handleKeydownEvent(t){var e=t.keyCode,n=/^(8|46)$/.test(e);if(27==e)return h.close(),!1;(32==e||n||!l.open&&h.component.key[e])&&(t.preventDefault(),t.stopPropagation(),n?h.clear().close():h.open())}function handleFocusToOpenEvent(t){t.stopPropagation(),"focus"==t.type&&h.$root.addClass(c.focused),h.open()}if(!e)return PickerConstructor;var s=!1,l={id:e.id||"P"+Math.abs(~~(Math.random()*new Date))},u=o?t.extend(!0,{},o.defaults,a):a||{},c=t.extend({},PickerConstructor.klasses(),u.klass),d=t(e),f=function(){return this.start()},h=f.prototype={constructor:f,$node:d,start:function(){return l&&l.start?h:(l.methods={},l.start=!0,l.open=!1,l.type=e.type,e.autofocus=e==getActiveElement(),e.readOnly=!u.editable,e.id=e.id||l.id,"text"!=e.type&&(e.type="text"),h.component=new o(h,u),h.$root=t(PickerConstructor._.node("div",createWrappedComponent(),c.picker,'id="'+e.id+'_root" tabindex="0"')),prepareElementRoot(),u.formatSubmit&&prepareElementHidden(),prepareElement(),u.container?t(u.container).append(h.$root):d.after(h.$root),h.on({start:h.component.onStart,render:h.component.onRender,stop:h.component.onStop,open:h.component.onOpen,close:h.component.onClose,set:h.component.onSet}).on({start:u.onStart,render:u.onRender,stop:u.onStop,open:u.onOpen,close:u.onClose,set:u.onSet}),s=isUsingDefaultTheme(h.$root.children()[0]),e.autofocus&&h.open(),h.trigger("start").trigger("render"))},render:function(t){return t?h.$root.html(createWrappedComponent()):h.$root.find("."+c.box).html(h.component.nodes(l.open)),h.trigger("render")},stop:function(){return l.start?(h.close(),h._hidden&&h._hidden.parentNode.removeChild(h._hidden),h.$root.remove(),d.removeClass(c.input).removeData(r),setTimeout(function(){d.off("."+l.id)},0),e.type=l.type,e.readOnly=!1,h.trigger("stop"),l.methods={},l.start=!1,h):h},open:function(r){return l.open?h:(d.addClass(c.active),aria(e,"expanded",!0),setTimeout(function(){h.$root.addClass(c.opened),aria(h.$root[0],"hidden",!1)},0),!1!==r&&(l.open=!0,s&&i.css("overflow","hidden").css("padding-right","+="+getScrollbarWidth()),h.$root.eq(0).focus(),n.on("click."+l.id+" focusin."+l.id,function(t){var n=t.target;n!=e&&n!=document&&3!=t.which&&h.close(n===h.$root.children()[0])}).on("keydown."+l.id,function(e){var n=e.keyCode,i=h.component.key[n],r=e.target;27==n?h.close(!0):r!=h.$root[0]||!i&&13!=n?t.contains(h.$root[0],r)&&13==n&&(e.preventDefault(),r.click()):(e.preventDefault(),i?PickerConstructor._.trigger(h.component.key.go,h,[PickerConstructor._.trigger(i)]):h.$root.find("."+c.highlighted).hasClass(c.disabled)||h.set("select",h.component.item.highlight).close())})),h.trigger("open"))},close:function(t){return t&&(h.$root.off("focus.toOpen").eq(0).focus(),setTimeout(function(){h.$root.on("focus.toOpen",handleFocusToOpenEvent)},0)),d.removeClass(c.active),aria(e,"expanded",!1),setTimeout(function(){h.$root.removeClass(c.opened+" "+c.focused),aria(h.$root[0],"hidden",!0)},0),l.open?(l.open=!1,s&&i.css("overflow","").css("padding-right","-="+getScrollbarWidth()),n.off("."+l.id),h.trigger("close")):h},clear:function(t){return h.set("clear",null,t)},set:function(e,n,i){var r,o,a=t.isPlainObject(e),s=a?e:{};if(i=a&&t.isPlainObject(n)?n:i||{},e){a||(s[e]=n);for(r in s)o=s[r],r in h.component.item&&(void 0===o&&(o=null),h.component.set(r,o,i)),"select"!=r&&"clear"!=r||d.val("clear"==r?"":h.get(r,u.format)).trigger("change");h.render()}return i.muted?h:h.trigger("set",s)},get:function(t,n){if(t=t||"value",null!=l[t])return l[t];if("valueSubmit"==t){if(h._hidden)return h._hidden.value;t="value"}if("value"==t)return e.value;if(t in h.component.item){if("string"==typeof n){var i=h.component.get(t);return i?PickerConstructor._.trigger(h.component.formats.toString,h.component,[n,i]):""}return h.component.get(t)}},on:function(e,n,i){var r,o,a=t.isPlainObject(e),s=a?e:{};if(e){a||(s[e]=n);for(r in s)o=s[r],i&&(r="_"+r),l.methods[r]=l.methods[r]||[],l.methods[r].push(o)}return h},off:function(){var t,e,n=arguments;for(t=0,namesCount=n.length;t<namesCount;t+=1)(e=n[t])in l.methods&&delete l.methods[e];return h},trigger:function(t,e){var n=function(t){var n=l.methods[t];n&&n.map(function(t){PickerConstructor._.trigger(t,h,[e])})};return n("_"+t),n(t),h}};return new f}function isUsingDefaultTheme(t){var e;return t.currentStyle?e=t.currentStyle.position:window.getComputedStyle&&(e=getComputedStyle(t).position),"fixed"==e}function getScrollbarWidth(){if(i.height()<=e.height())return 0;var n=t('<div style="visibility:hidden;width:100px" />').appendTo("body"),r=n[0].offsetWidth;n.css("overflow","scroll");var o=t('<div style="width:100%" />').appendTo(n),a=o[0].offsetWidth;return n.remove(),r-a}function aria(e,n,i){if(t.isPlainObject(n))for(var r in n)ariaSet(e,r,n[r]);else ariaSet(e,n,i)}function ariaSet(t,e,n){t.setAttribute(("role"==e?"":"aria-")+e,n)}function ariaAttr(e,n){t.isPlainObject(e)||(e={attribute:n}),n="";for(var i in e){var r=("role"==i?"":"aria-")+i;n+=null==e[i]?"":r+'="'+e[i]+'"'}return n}function getActiveElement(){try{return document.activeElement}catch(t){}}var e=t(window),n=t(document),i=t(document.documentElement);return PickerConstructor.klasses=function(t){return t=t||"picker",{picker:t,opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},PickerConstructor._={group:function(t){for(var e,n="",i=PickerConstructor._.trigger(t.min,t);i<=PickerConstructor._.trigger(t.max,t,[i]);i+=t.i)e=PickerConstructor._.trigger(t.item,t,[i]),n+=PickerConstructor._.node(t.node,e[0],e[1],e[2]);return n},node:function(e,n,i,r){return n?(n=t.isArray(n)?n.join(""):n,i=i?' class="'+i+'"':"",r=r?" "+r:"","<"+e+i+r+">"+n+"</"+e+">"):""},lead:function(t){return(t<10?"0":"")+t},trigger:function(t,e,n){return"function"==typeof t?t.apply(e,n||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1==0},ariaAttr:ariaAttr},PickerConstructor.extend=function(e,n){t.fn[e]=function(i,r){var o=this.data(e);return"picker"==i?o:o&&"string"==typeof i?PickerConstructor._.trigger(o[i],o,[r]):this.each(function(){t(this).data(e)||new PickerConstructor(this,e,n,i)})},t.fn[e].defaults=n.defaults},PickerConstructor}),function(t){b=[T,a(0)],h=t,void 0!==(g="function"==typeof h?h.apply(i,b):h)&&(e.exports=g)}(function(t,e){function DatePicker(t,e){var n=this,i=t.$node[0],r=i.value,o=t.$node.data("value"),a=o||r,s=o?e.formatSubmit:e.format,l=function(){return i.currentStyle?"rtl"==i.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};n.settings=e,n.$node=t.$node,n.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},n.item={},n.item.clear=null,n.item.disable=(e.disable||[]).slice(0),n.item.enable=-function(t){return!0===t[0]?t.shift():-1}(n.item.disable),n.set("min",e.min).set("max",e.max).set("now"),a?n.set("select",a,{format:s}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(t){var e=n.item.highlight,i=new Date(e.year,e.month,e.date+t);n.set("highlight",i,{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){var n=this.value;n&&(t.set("highlight",[t.get("view").year,n,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus"))}),t.$root.find("."+e.klass.selectYear).on("change",function(){var n=this.value;n&&(t.set("highlight",[n,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus"))})},1).on("open",function(){var i="";n.disabled(n.get("now"))&&(i=":not(."+e.klass.buttonToday+")"),t.$root.find("button"+i+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}var n=t._;DatePicker.prototype.set=function(t,e,n){var i=this,r=i.item;return null===e?("clear"==t&&(t="select"),r[t]=e,i):(r["enable"==t?"disable":"flip"==t?"enable":t]=i.queue[t].split(" ").map(function(r){return e=i[r](t,e,n)}).pop(),"select"==t?i.set("highlight",r.select,n):"highlight"==t?i.set("view",r.highlight,n):t.match(/^(flip|min|max|disable|enable)$/)&&(r.select&&i.disabled(r.select)&&i.set("select",r.select,n),r.highlight&&i.disabled(r.highlight)&&i.set("highlight",r.highlight,n)),i)},DatePicker.prototype.get=function(t){return this.item[t]},DatePicker.prototype.create=function(t,i,r){var o,a=this;return i=void 0===i?t:i,i==-1/0||i==1/0?o=i:e.isPlainObject(i)&&n.isInteger(i.pick)?i=i.obj:e.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=n.isDate(i)?i:a.create().obj):i=n.isInteger(i)||n.isDate(i)?a.normalize(new Date(i),r):a.now(t,i,r),{year:o||i.getFullYear(),month:o||i.getMonth(),date:o||i.getDate(),day:o||i.getDay(),obj:o||i,pick:o||i.getTime()}},DatePicker.prototype.createRange=function(t,i){var r=this,o=function(t){return!0===t||e.isArray(t)||n.isDate(t)?r.create(t):t};return n.isInteger(t)||(t=o(t)),n.isInteger(i)||(i=o(i)),n.isInteger(t)&&e.isPlainObject(i)?t=[i.year,i.month,i.date+t]:n.isInteger(i)&&e.isPlainObject(t)&&(i=[t.year,t.month,t.date+i]),{from:o(t),to:o(i)}},DatePicker.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},DatePicker.prototype.overlapRanges=function(t,e){var n=this;return t=n.createRange(t.from,t.to),e=n.createRange(e.from,e.to),n.withinRange(t,e.from)||n.withinRange(t,e.to)||n.withinRange(e,t.from)||n.withinRange(e,t.to)},DatePicker.prototype.now=function(t,e,n){return e=new Date,n&&n.rel&&e.setDate(e.getDate()+n.rel),this.normalize(e,n)},DatePicker.prototype.navigate=function(t,n,i){var r,o,a,s,l=e.isArray(n),u=e.isPlainObject(n),c=this.item.view;if(l||u){for(u?(o=n.year,a=n.month,s=n.date):(o=+n[0],a=+n[1],s=+n[2]),i&&i.nav&&c&&c.month!==a&&(o=c.year,a=c.month),r=new Date(o,a+(i&&i.nav?i.nav:0),1),o=r.getFullYear(),a=r.getMonth();new Date(o,a,s).getMonth()!==a;)s-=1;n=[o,a,s]}return n},DatePicker.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},DatePicker.prototype.measure=function(t,e){var i=this;return e?"string"==typeof e?e=i.parse(t,e):n.isInteger(e)&&(e=i.now(t,e,{rel:e})):e="min"==t?-1/0:1/0,e},DatePicker.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},DatePicker.prototype.validate=function(t,i,r){var o,a,s,l,u=this,c=i,d=r&&r.interval?r.interval:1,f=-1===u.item.enable,h=u.item.min,p=u.item.max,g=f&&u.item.disable.filter(function(t){if(e.isArray(t)){var r=u.create(t).pick;r<i.pick?o=!0:r>i.pick&&(a=!0)}return n.isInteger(t)}).length;if((!r||!r.nav)&&(!f&&u.disabled(i)||f&&u.disabled(i)&&(g||o||a)||!f&&(i.pick<=h.pick||i.pick>=p.pick)))for(f&&!g&&(!a&&d>0||!o&&d<0)&&(d*=-1);u.disabled(i)&&(Math.abs(d)>1&&(i.month<c.month||i.month>c.month)&&(i=c,d=d>0?1:-1),i.pick<=h.pick?(s=!0,d=1,i=u.create([h.year,h.month,h.date+(i.pick===h.pick?0:-1)])):i.pick>=p.pick&&(l=!0,d=-1,i=u.create([p.year,p.month,p.date+(i.pick===p.pick?0:1)])),!s||!l);)i=u.create([i.year,i.month,i.date+d]);return i},DatePicker.prototype.disabled=function(t){var i=this,r=i.item.disable.filter(function(r){return n.isInteger(r)?t.day===(i.settings.firstDay?r:r-1)%7:e.isArray(r)||n.isDate(r)?t.pick===i.create(r).pick:e.isPlainObject(r)?i.withinRange(r,t):void 0});return r=r.length&&!r.filter(function(t){return e.isArray(t)&&"inverted"==t[3]||e.isPlainObject(t)&&t.inverted}).length,-1===i.item.enable?!r:r||t.pick<i.item.min.pick||t.pick>i.item.max.pick},DatePicker.prototype.parse=function(t,e,i){var r=this,o={};return e&&"string"==typeof e?(i&&i.format||(i=i||{},i.format=r.settings.format),r.formats.toArray(i.format).map(function(t){var i=r.formats[t],a=i?n.trigger(i,r,[e,o]):t.replace(/^!/,"").length;i&&(o[t]=e.substr(0,a)),e=e.substr(a)}),[o.yyyy||o.yy,+(o.mm||o.m)-1,o.dd||o.d]):e},DatePicker.prototype.formats=function(){function getWordLengthFromCollection(t,e,n){var i=t.match(/\w+/)[0];return n.mm||n.m||(n.m=e.indexOf(i)+1),i.length}function getFirstWordLength(t){return t.match(/\w+/)[0].length}return{d:function(t,e){return t?n.digits(t):e.date},dd:function(t,e){return t?2:n.lead(e.date)},ddd:function(t,e){return t?getFirstWordLength(t):this.settings.weekdaysShort[e.day]},dddd:function(t,e){return t?getFirstWordLength(t):this.settings.weekdaysFull[e.day]},m:function(t,e){return t?n.digits(t):e.month+1},mm:function(t,e){return t?2:n.lead(e.month+1)},mmm:function(t,e){var n=this.settings.monthsShort;return t?getWordLengthFromCollection(t,n,e):n[e.month]},mmmm:function(t,e){var n=this.settings.monthsFull;return t?getWordLengthFromCollection(t,n,e):n[e.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var i=this;return i.formats.toArray(t).map(function(t){return n.trigger(i.formats[t],i,[0,e])||t.replace(/^!/,"")}).join("")}}}(),DatePicker.prototype.isDateExact=function(t,i){var r=this;return n.isInteger(t)&&n.isInteger(i)||"boolean"==typeof t&&"boolean"==typeof i?t===i:(n.isDate(t)||e.isArray(t))&&(n.isDate(i)||e.isArray(i))?r.create(t).pick===r.create(i).pick:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&(r.isDateExact(t.from,i.from)&&r.isDateExact(t.to,i.to))},DatePicker.prototype.isDateOverlap=function(t,i){var r=this,o=r.settings.firstDay?1:0;return n.isInteger(t)&&(n.isDate(i)||e.isArray(i))?(t=t%7+o)===r.create(i).day+1:n.isInteger(i)&&(n.isDate(t)||e.isArray(t))?(i=i%7+o)===r.create(t).day+1:!(!e.isPlainObject(t)||!e.isPlainObject(i))&&r.overlapRanges(t,i)},DatePicker.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},DatePicker.prototype.deactivate=function(t,i){var r=this,o=r.item.disable.slice(0);return"flip"==i?r.flipEnable():!1===i?(r.flipEnable(1),o=[]):!0===i?(r.flipEnable(-1),o=[]):i.map(function(t){for(var i,a=0;a<o.length;a+=1)if(r.isDateExact(t,o[a])){i=!0;break}i||(n.isInteger(t)||n.isDate(t)||e.isArray(t)||e.isPlainObject(t)&&t.from&&t.to)&&o.push(t)}),o},DatePicker.prototype.activate=function(t,i){var r=this,o=r.item.disable,a=o.length;return"flip"==i?r.flipEnable():!0===i?(r.flipEnable(1),o=[]):!1===i?(r.flipEnable(-1),o=[]):i.map(function(t){var i,s,l,u;for(l=0;l<a;l+=1){if(s=o[l],r.isDateExact(s,t)){i=o[l]=null,u=!0;break}if(r.isDateOverlap(s,t)){e.isPlainObject(t)?(t.inverted=!0,i=t):e.isArray(t)?(i=t,i[3]||i.push("inverted")):n.isDate(t)&&(i=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(i)for(l=0;l<a;l+=1)if(r.isDateExact(o[l],t)){o[l]=null;break}if(u)for(l=0;l<a;l+=1)if(r.isDateOverlap(o[l],t)){o[l]=null;break}i&&o.push(i)}),o.filter(function(t){return null!=t})},DatePicker.prototype.nodes=function(t){var e=this,i=e.settings,r=e.item,o=r.now,a=r.select,s=r.highlight,l=r.view,u=r.disable,c=r.min,d=r.max,f=function(t,e){return i.firstDay&&(t.push(t.shift()),e.push(e.shift())),n.node("thead",n.node("tr",n.group({min:0,max:6,i:1,node:"th",item:function(n){return[t[n],i.klass.weekdays,'scope=col title="'+e[n]+'"']}})))}((i.showWeekdaysFull?i.weekdaysFull:i.weekdaysLetter).slice(0),i.weekdaysFull.slice(0)),h=function(t){return n.node("div"," ",i.klass["nav"+(t?"Next":"Prev")]+(t&&l.year>=d.year&&l.month>=d.month||!t&&l.year<=c.year&&l.month<=c.month?" "+i.klass.navDisabled:""),"data-nav="+(t||-1)+" "+n.ariaAttr({role:"button",controls:e.$node[0].id+"_table"})+' title="'+(t?i.labelMonthNext:i.labelMonthPrev)+'"')},p=function(r){var o=i.showMonthsShort?i.monthsShort:i.monthsFull;return"short_months"==r&&(o=i.monthsShort),i.selectMonths&&void 0==r?n.node("select",n.group({min:0,max:11,i:1,node:"option",item:function(t){return[o[t],0,"value="+t+(l.month==t?" selected":"")+(l.year==c.year&&t<c.month||l.year==d.year&&t>d.month?" disabled":"")]}}),i.klass.selectMonth+" browser-default",(t?"":"disabled")+" "+n.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelMonthSelect+'"'):"short_months"==r?null!=a?n.node("div",o[a.month]):n.node("div",o[l.month]):n.node("div",o[l.month],i.klass.month)},g=function(r){var o=l.year,a=!0===i.selectYears?5:~~(i.selectYears/2);if(a){var s=c.year,u=d.year,f=o-a,h=o+a;if(s>f&&(h+=s-f,f=s),u<h){var p=f-s,g=h-u;f-=p>g?g:p,h=u}if(i.selectYears&&void 0==r)return n.node("select",n.group({min:f,max:h,i:1,node:"option",item:function(t){return[t,0,"value="+t+(o==t?" selected":"")]}}),i.klass.selectYear+" browser-default",(t?"":"disabled")+" "+n.ariaAttr({controls:e.$node[0].id+"_table"})+' title="'+i.labelYearSelect+'"')}return"raw"==r?n.node("div",o):n.node("div",o,i.klass.year)};return createDayLabel=function(){return null!=a?n.node("div",a.date):n.node("div",o.date)},createWeekdayLabel=function(){var t;return t=null!=a?a.day:o.day,i.weekdaysFull[t]},n.node("div",n.node("div",createWeekdayLabel(),"picker__weekday-display")+n.node("div",p("short_months"),i.klass.month_display)+n.node("div",createDayLabel(),i.klass.day_display)+n.node("div",g("raw"),i.klass.year_display),i.klass.date_display)+n.node("div",n.node("div",(i.selectYears,p()+g()+h()+h(1)),i.klass.header)+n.node("table",f+n.node("tbody",n.group({min:0,max:5,i:1,node:"tr",item:function(t){var r=i.firstDay&&0===e.create([l.year,l.month,1]).day?-7:0;return[n.group({min:7*t-l.day+r+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=e.create([l.year,l.month,t+(i.firstDay?1:0)]);var r=a&&a.pick==t.pick,f=s&&s.pick==t.pick,h=u&&e.disabled(t)||t.pick<c.pick||t.pick>d.pick,p=n.trigger(e.formats.toString,e,[i.format,t]);return[n.node("div",t.date,function(e){return e.push(l.month==t.month?i.klass.infocus:i.klass.outfocus),o.pick==t.pick&&e.push(i.klass.now),r&&e.push(i.klass.selected),f&&e.push(i.klass.highlighted),h&&e.push(i.klass.disabled),e.join(" ")}([i.klass.day]),"data-pick="+t.pick+" "+n.ariaAttr({role:"gridcell",label:p,selected:!(!r||e.$node.val()!==p)||null,activedescendant:!!f||null,disabled:!!h||null})),"",n.ariaAttr({role:"presentation"})]}})]}})),i.klass.table,'id="'+e.$node[0].id+'_table" '+n.ariaAttr({role:"grid",controls:e.$node[0].id,readonly:!0})),i.klass.calendar_container)+n.node("div",n.node("button",i.today,"btn-flat picker__today","type=button data-pick="+o.pick+(t&&!e.disabled(o)?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id}))+n.node("button",i.clear,"btn-flat picker__clear","type=button data-clear=1"+(t?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id}))+n.node("button",i.close,"btn-flat picker__close","type=button data-close=true "+(t?"":" disabled")+" "+n.ariaAttr({controls:e.$node[0].id})),i.klass.footer)},DatePicker.defaults=function(t){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysLetter:["S","M","T","W","T","F","S"],today:"Today",clear:"Clear",close:"Close",format:"d mmmm, yyyy",klass:{table:t+"table",header:t+"header",date_display:t+"date-display",day_display:t+"day-display",month_display:t+"month-display",year_display:t+"year-display",calendar_container:t+"calendar-container",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}}}(t.klasses().picker+"__"),t.extend("pickadate",DatePicker)}),function(t){function updateCounter(){var e=+t(this).attr("data-length"),n=+t(this).val().length,i=n<=e;t(this).parent().find('span[class="character-counter"]').html(n+"/"+e),addInputStyle(i,t(this))}function addCounterElement(e){var n=e.parent().find('span[class="character-counter"]');n.length||(n=t("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),e.parent().append(n))}function removeCounterElement(){t(this).parent().find('span[class="character-counter"]').html("")}function addInputStyle(t,e){var n=e.hasClass("invalid");t&&n?e.removeClass("invalid"):t||n||(e.removeClass("valid"),e.addClass("invalid"))}t.fn.characterCounter=function(){return this.each(function(){var e=t(this);e.parent().find('span[class="character-counter"]').length||void 0!==e.attr("data-length")&&(e.on("input",updateCounter),e.on("focus",updateCounter),e.on("blur",removeCounterElement),addCounterElement(e))})},t(document).ready(function(){t("input, textarea").characterCounter()})}(C),function(t){var e={init:function(e){var n={duration:200,dist:-100,shift:0,padding:0,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null};e=t.extend(n,e);var i=Materialize.objectSelectorString(t(this));return this.each(function(n){function xpos(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function ypos(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function wrap(t){return t>=d?t%d:t<0?wrap(d+t%d):t}function scroll(n){m=!0,A.hasClass("scrolling")||A.addClass("scrolling"),null!=_&&window.clearTimeout(_),_=window.setTimeout(function(){m=!1,A.removeClass("scrolling")},e.duration);var i,u,f,h,p,g,v,y=l;if(s="number"==typeof n?n:s,l=Math.floor((s+c/2)/c),f=s-l*c,h=f<0?1:-1,p=-h*f*2/c,u=d>>1,e.fullWidth?v="translateX(0)":(v="translateX("+(A[0].clientWidth-o)/2+"px) ",v+="translateY("+(A[0].clientHeight-a)/2+"px)"),P){var w=l%d,x=S.find(".indicator-item.active");x.index()!==w&&(x.removeClass("active"),S.find(".indicator-item").eq(w).addClass("active"))}for((!e.noWrap||l>=0&&l<d)&&(g=r[wrap(l)],t(g).hasClass("active")||(A.find(".carousel-item").removeClass("active"),t(g).addClass("active")),g.style[b]=v+" translateX("+-f/2+"px) translateX("+h*e.shift*p*i+"px) translateZ("+e.dist*p+"px)",g.style.zIndex=0,e.fullWidth?tweenedOpacity=1:tweenedOpacity=1-.2*p,g.style.opacity=tweenedOpacity,g.style.display="block"),i=1;i<=u;++i)e.fullWidth?(zTranslation=e.dist,tweenedOpacity=i===u&&f<0?1-p:1):(zTranslation=e.dist*(2*i+p*h),tweenedOpacity=1-.2*(2*i+p*h)),(!e.noWrap||l+i<d)&&(g=r[wrap(l+i)],g.style[b]=v+" translateX("+(e.shift+(c*i-f)/2)+"px) translateZ("+zTranslation+"px)",g.style.zIndex=-i,g.style.opacity=tweenedOpacity,g.style.display="block"),e.fullWidth?(zTranslation=e.dist,tweenedOpacity=i===u&&f>0?1-p:1):(zTranslation=e.dist*(2*i-p*h),tweenedOpacity=1-.2*(2*i-p*h)),(!e.noWrap||l-i>=0)&&(g=r[wrap(l-i)],g.style[b]=v+" translateX("+(-e.shift+(-c*i-f)/2)+"px) translateZ("+zTranslation+"px)",g.style.zIndex=-i,g.style.opacity=tweenedOpacity,g.style.display="block");if((!e.noWrap||l>=0&&l<d)&&(g=r[wrap(l)],g.style[b]=v+" translateX("+-f/2+"px) translateX("+h*e.shift*p+"px) translateZ("+e.dist*p+"px)",g.style.zIndex=0,e.fullWidth?tweenedOpacity=1:tweenedOpacity=1-.2*p,g.style.opacity=tweenedOpacity,g.style.display="block"),y!==l&&"function"==typeof e.onCycleTo){var T=A.find(".carousel-item").eq(wrap(l));e.onCycleTo.call(this,T,C)}}function track(){var t,e,n,i;t=Date.now(),e=t-x,x=t,n=s-w,w=s,i=1e3*n/(1+e),v=.8*i+.2*v}function autoScroll(){var t,n;p&&(t=Date.now()-x,n=p*Math.exp(-t/e.duration),n>2||n<-2?(scroll(g-n),requestAnimationFrame(autoScroll)):scroll(g))}function click(n){if(C)return n.preventDefault(),n.stopPropagation(),!1;if(!e.fullWidth){var i=t(n.target).closest(".carousel-item").index();0!==l%d-i&&(n.preventDefault(),n.stopPropagation()),cycleTo(i)}}function cycleTo(t){var n=l%d-t;e.noWrap||(n<0?Math.abs(n+d)<Math.abs(n)&&(n+=d):n>0&&Math.abs(n-d)<n&&(n-=d)),n<0?A.trigger("carouselNext",[Math.abs(n)]):n>0&&A.trigger("carouselPrev",[n])}function tap(t){t.preventDefault(),u=!0,C=!1,k=!1,f=xpos(t),h=ypos(t),v=p=0,w=s,x=Date.now(),clearInterval(T),T=setInterval(track,100)}function drag(t){var e,n;if(u)if(e=xpos(t),y=ypos(t),n=f-e,Math.abs(h-y)<30&&!k)(n>2||n<-2)&&(C=!0,f=e,scroll(s+n));else{if(C)return t.preventDefault(),t.stopPropagation(),!1;k=!0}if(C)return t.preventDefault(),t.stopPropagation(),!1}function release(t){if(u)return u=!1,clearInterval(T),g=s,(v>10||v<-10)&&(p=.9*v,g=s+p),g=Math.round(g/c)*c,e.noWrap&&(g>=c*(d-1)?g=c*(d-1):g<0&&(g=0)),p=g-s,x=Date.now(),requestAnimationFrame(autoScroll),C&&(t.preventDefault(),t.stopPropagation()),!1}var r,o,a,s,l,u,c,d,f,h,p,g,v,m,b,w,x,T,C,k,E=i+n,S=t('<ul class="indicators"></ul>'),_=null,A=t(this),P=A.attr("data-indicators")||e.indicators;if(e.fullWidth&&(e.dist=0,function(){var e=A.find(".carousel-item img").first();if(e.length)e.prop("complete")?A.css("height",e.height()):e.on("load",function(){A.css("height",t(this).height())});else{var n=A.find(".carousel-item").first().height();A.css("height",n)}}(),P&&A.find(".carousel-fixed-item").addClass("with-indicators")),A.hasClass("initialized"))return t(window).trigger("resize"),t(this).trigger("carouselNext",[1e-6]),!0;A.addClass("initialized"),u=!1,s=g=0,r=[],o=A.find(".carousel-item").first().innerWidth(),a=A.find(".carousel-item").first().innerHeight(),c=2*o+e.padding,A.find(".carousel-item").each(function(e){if(r.push(t(this)[0]),P){var n=t('<li class="indicator-item"></li>');0===e&&n.addClass("active"),n.click(function(e){e.stopPropagation(),cycleTo(t(this).index())}),S.append(n)}}),P&&A.append(S),d=r.length,b="transform",["webkit","Moz","O","ms"].every(function(t){var e=t+"Transform";return void 0===document.body.style[e]||(b=e,!1)}),t(window).off("resize.carousel-"+E).on("resize.carousel-"+E,function(){e.fullWidth?(o=A.find(".carousel-item").first().innerWidth(),a=A.find(".carousel-item").first().innerHeight(),c=2*o+e.padding,s=2*l*o,g=s):scroll()}),function(){void 0!==window.ontouchstart&&(A[0].addEventListener("touchstart",tap),A[0].addEventListener("touchmove",drag),A[0].addEventListener("touchend",release)),A[0].addEventListener("mousedown",tap),A[0].addEventListener("mousemove",drag),A[0].addEventListener("mouseup",release),A[0].addEventListener("mouseleave",release),A[0].addEventListener("click",click)}(),scroll(s),t(this).on("carouselNext",function(t,e){void 0===e&&(e=1),g=c*Math.round(s/c)+c*e,s!==g&&(p=g-s,x=Date.now(),requestAnimationFrame(autoScroll))}),t(this).on("carouselPrev",function(t,e){void 0===e&&(e=1),g=c*Math.round(s/c)-c*e,s!==g&&(p=g-s,x=Date.now(),requestAnimationFrame(autoScroll))}),t(this).on("carouselSet",function(t,e){void 0===e&&(e=0),cycleTo(e)})})},next:function(e){t(this).trigger("carouselNext",[e])},prev:function(e){t(this).trigger("carouselPrev",[e])},set:function(e){t(this).trigger("carouselSet",[e])}};t.fn.carousel=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.carousel"):e.init.apply(this,arguments)}}(C),function(t){var e={init:function(e){return this.each(function(){var n=t("#"+t(this).attr("data-activates")),i=(t("body"),t(this)),r=i.parent(".tap-target-wrapper"),o=r.find(".tap-target-wave"),a=r.find(".tap-target-origin"),s=i.find(".tap-target-content");r.length||(r=i.wrap(t('<div class="tap-target-wrapper"></div>')).parent()),s.length||(s=t('<div class="tap-target-content"></div>'),i.append(s)),o.length||(o=t('<div class="tap-target-wave"></div>'),a.length||(a=n.clone(!0,!0),a.addClass("tap-target-origin"),a.removeAttr("id"),a.removeAttr("style"),o.append(a)),r.append(o));var l=function(){r.is(".open")&&(r.removeClass("open"),a.off("click.tapTarget"),t(document).off("click.tapTarget"),t(window).off("resize.tapTarget"))},u=function(){var e="fixed"===n.css("position");if(!e)for(var a=n.parents(),l=0;l<a.length&&!(e="fixed"==t(a[l]).css("position"));l++);var u=n.outerWidth(),c=n.outerHeight(),d=e?n.offset().top-t(document).scrollTop():n.offset().top,f=e?n.offset().left-t(document).scrollLeft():n.offset().left,h=t(window).width(),p=t(window).height(),g=h/2,v=p/2,m=f<=g,y=f>g,b=d<=v,w=d>v,x=f>=.25*h&&f<=.75*h,T=i.outerWidth(),C=i.outerHeight(),k=d+c/2-C/2,E=f+u/2-T/2,S=e?"fixed":"absolute",_=x?T:T/2+u,A=C/2,P=b?C/2:0,D=m&&!x?T/2-u:0,O=u,N=w?"bottom":"top",M=2*u,I=M,R=C/2-I/2,L=T/2-M/2,z={};z.top=b?k:"",z.right=y?h-E-T:"",z.bottom=w?p-k-C:"",z.left=m?E:"",z.position=S,r.css(z),s.css({width:_,height:A,top:P,right:0,bottom:0,left:D,padding:O,verticalAlign:N}),o.css({top:R,left:L,width:M,height:I})};"open"==e&&(u(),function(){r.is(".open")||(r.addClass("open"),setTimeout(function(){a.off("click.tapTarget").on("click.tapTarget",function(t){l(),a.off("click.tapTarget")}),t(document).off("click.tapTarget").on("click.tapTarget",function(e){l(),t(document).off("click.tapTarget")});var e=Materialize.throttle(function(){u()},200);t(window).off("resize.tapTarget").on("resize.tapTarget",e)},0))}()),"close"==e&&l()})},open:function(){},close:function(){}};t.fn.tapTarget=function(n){if(e[n]||"object"==typeof n)return e.init.apply(this,arguments);t.error("Method "+n+" does not exist on jQuery.tap-target")}}(C)}).call(i,a(0),a(0))},,function(t,e,n){"use strict";var i=n(0),r=function(t){return t&&t.__esModule?t:{default:t}}(i);n(48),n(49),n(21);var o=n(45);n(44),n(43),n(47),(0,r.default)(document).ready(function(){(0,r.default)(".button-collapse").sideNav(),(0,r.default)("select").material_select(),(0,r.default)(".collapsible").collapsible({accordion:!1}),(0,r.default)(".datepicker").pickadate({selectMonths:!0,selectYears:15,formatSubmit:"dd/mm/yyyy",hiddenName:!0,format:"dd/mm/yyyy",container:"body"}),(0,o.initFilters)(),(0,o.initExport)(),(0,r.default)("#nav-btn-add-tag").on("click",function(){return(0,r.default)(".nav-panel-add-tag").toggle(100),(0,r.default)(".nav-panel-menu").addClass("hidden"),(0,r.default)("#tag_label").focus(),!1}),(0,r.default)("#nav-btn-add").on("click",function(){return(0,r.default)(".nav-panel-buttom").hide(100),(0,r.default)(".nav-panel-add").show(100),(0,r.default)(".nav-panels .action").hide(100),(0,r.default)(".nav-panel-menu").addClass("hidden"),(0,r.default)(".nav-panels").css("background","white"),(0,r.default)("#entry_url").focus(),!1}),(0,r.default)("#nav-btn-search").on("click",function(){return(0,r.default)(".nav-panel-buttom").hide(100),(0,r.default)(".nav-panel-search").show(100),(0,r.default)(".nav-panels .action").hide(100),(0,r.default)(".nav-panel-menu").addClass("hidden"),(0,r.default)(".nav-panels").css("background","white"),(0,r.default)("#search_entry_term").focus(),!1}),(0,r.default)(".close").on("click",function(){return(0,r.default)(".nav-panel-add").hide(100),(0,r.default)(".nav-panel-search").hide(100),(0,r.default)(".nav-panel-buttom").show(100),(0,r.default)(".nav-panels .action").show(100),(0,r.default)(".nav-panel-menu").removeClass("hidden"),(0,r.default)(".nav-panels").css("background","transparent"),!1}),(0,r.default)(window).scroll(function(){var t=(0,r.default)(window).scrollTop(),e=(0,r.default)(document).height(),n=(0,r.default)(window).height(),i=t/(e-n)*100;(0,r.default)(".progress .determinate").css("width",i+"%")})})},function(t,e,n){var i;!function(r,o,a,s){"use strict";function setTimeoutContext(t,e,n){return setTimeout(bindFn(t,n),e)}function invokeArrayArg(t,e,n){return!!Array.isArray(t)&&(each(t,n[e],n),!0)}function each(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function deprecate(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}function inherit(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&l(i,n)}function bindFn(t,e){return function(){return t.apply(e,arguments)}}function boolOrFn(t,e){return typeof t==d?t.apply(e?e[0]||s:s,e):t}function ifUndefined(t,e){return t===s?e:t}function addEventListeners(t,e,n){each(splitStr(e),function(e){t.addEventListener(e,n,!1)})}function removeEventListeners(t,e,n){each(splitStr(e),function(e){t.removeEventListener(e,n,!1)})}function hasParent(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function inStr(t,e){return t.indexOf(e)>-1}function splitStr(t){return t.trim().split(/\s+/g)}function inArray(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function toArray(t){return Array.prototype.slice.call(t,0)}function uniqueArray(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];inArray(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function prefixed(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<u.length;){if(n=u[o],(i=n?n+r:e)in t)return i;o++}return s}function uniqueId(){return m++}function getWindowForElement(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function Input(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){boolOrFn(t.options.enable,[t])&&n.handler(e)},this.init()}function createInputInstance(t){var e=t.options.inputClass;return new(e||(w?PointerEventInput:x?TouchInput:b?TouchMouseInput:MouseInput))(t,inputHandler)}function inputHandler(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&C&&i-r==0,a=e&(E|S)&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,computeInputData(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function computeInputData(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=simpleCloneInputData(e)),r>1&&!n.firstMultiple?n.firstMultiple=simpleCloneInputData(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=getCenter(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=getAngle(s,l),e.distance=getDistance(s,l),computeDeltaXY(n,e),e.offsetDirection=getDirection(e.deltaX,e.deltaY);var u=getVelocity(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=h(u.x)>h(u.y)?u.x:u.y,e.scale=a?getScale(a.pointers,i):1,e.rotation=a?getRotation(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,computeIntervalInputData(n,e);var c=t.element;hasParent(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function computeDeltaXY(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==C&&o.eventType!==E||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function computeIntervalInputData(t,e){var n,i,r,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=S&&(l>T||a.velocity===s)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,d=getVelocity(l,u,c);i=d.x,r=d.y,n=h(d.x)>h(d.y)?d.x:d.y,o=getDirection(u,c),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function simpleCloneInputData(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:f(t.pointers[n].clientX),clientY:f(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:getCenter(e),deltaX:t.deltaX,deltaY:t.deltaY}}function getCenter(t){var e=t.length;if(1===e)return{x:f(t[0].clientX),y:f(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:f(n/e),y:f(i/e)}}function getVelocity(t,e,n){return{x:e/t||0,y:n/t||0}}function getDirection(t,e){return t===e?_:h(t)>=h(e)?t<0?A:P:e<0?D:O}function getDistance(t,e,n){n||(n=R);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function getAngle(t,e,n){n||(n=R);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function getRotation(t,e){return getAngle(e[1],e[0],L)+getAngle(t[1],t[0],L)}function getScale(t,e){return getDistance(e[0],e[1],L)/getDistance(t[0],t[1],L)}function MouseInput(){this.evEl=F,this.evWin=q,this.pressed=!1,Input.apply(this,arguments)}function PointerEventInput(){this.evEl=W,this.evWin=B,Input.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function SingleTouchInput(){this.evTarget=X,this.evWin=$,this.started=!1,Input.apply(this,arguments)}function normalizeSingleTouches(t,e){var n=toArray(t.touches),i=toArray(t.changedTouches);return e&(E|S)&&(n=uniqueArray(n.concat(i),"identifier",!0)),[n,i]}function TouchInput(){this.evTarget=U,this.targetIds={},Input.apply(this,arguments)}function getTouches(t,e){var n=toArray(t.touches),i=this.targetIds;if(e&(C|k)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=toArray(t.changedTouches),s=[],l=this.target;if(o=n.filter(function(t){return hasParent(t.target,l)}),e===C)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(E|S)&&delete i[a[r].identifier],r++;return s.length?[uniqueArray(o.concat(s),"identifier",!0),s]:void 0}function TouchMouseInput(){Input.apply(this,arguments);var t=bindFn(this.handler,this);this.touch=new TouchInput(this.manager,t),this.mouse=new MouseInput(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function recordTouches(t,e){t&C?(this.primaryTouch=e.changedPointers[0].identifier,setLastTouch.call(this,e)):t&(E|S)&&setLastTouch.call(this,e)}function setLastTouch(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,Q)}}function isSyntheticEvent(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),a=Math.abs(n-r.y);if(o<=G&&a<=G)return!0}return!1}function TouchAction(t,e){this.manager=t,this.set(e)}function cleanTouchActions(t){if(inStr(t,et))return et;var e=inStr(t,nt),n=inStr(t,it);return e&&n?et:e||n?e?nt:it:inStr(t,tt)?tt:J}function Recognizer(t){this.options=l({},this.defaults,t||{}),this.id=uniqueId(),this.manager=null,this.options.enable=ifUndefined(this.options.enable,!0),this.state=ot,this.simultaneous={},this.requireFail=[]}function stateStr(t){return t&ct?"cancel":t<?"end":t&st?"move":t&at?"start":""}function directionStr(t){return t==O?"down":t==D?"up":t==A?"left":t==P?"right":""}function getRecognizerByNameIfManager(t,e){var n=e.manager;return n?n.get(t):t}function AttrRecognizer(){Recognizer.apply(this,arguments)}function PanRecognizer(){AttrRecognizer.apply(this,arguments),this.pX=null,this.pY=null}function PinchRecognizer(){AttrRecognizer.apply(this,arguments)}function PressRecognizer(){Recognizer.apply(this,arguments),this._timer=null,this._input=null}function RotateRecognizer(){AttrRecognizer.apply(this,arguments)}function SwipeRecognizer(){AttrRecognizer.apply(this,arguments)}function TapRecognizer(){Recognizer.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Hammer(t,e){return e=e||{},e.recognizers=ifUndefined(e.recognizers,Hammer.defaults.preset),new Manager(t,e)}function Manager(t,e){this.options=l({},Hammer.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=createInputInstance(this),this.touchAction=new TouchAction(this,this.options.touchAction),toggleCssProps(this,!0),each(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function toggleCssProps(t,e){var n=t.element;if(n.style){var i;each(t.options.cssProps,function(r,o){i=prefixed(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function triggerDomEvent(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var l,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),d="function",f=Math.round,h=Math.abs,p=Date.now;l="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var g=deprecate(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===s)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),v=deprecate(function(t,e){return g(t,e,!0)},"merge","Use `assign`."),m=1,y=/mobile|tablet|ip(ad|hone|od)|android/i,b="ontouchstart"in r,w=prefixed(r,"PointerEvent")!==s,x=b&&y.test(navigator.userAgent),T=25,C=1,k=2,E=4,S=8,_=1,A=2,P=4,D=8,O=16,N=A|P,M=D|O,I=N|M,R=["x","y"],L=["clientX","clientY"];Input.prototype={handler:function(){},init:function(){this.evEl&&addEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&addEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&addEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&removeEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&removeEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&removeEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)}};var z={mousedown:C,mousemove:k,mouseup:E},F="mousedown",q="mousemove mouseup";inherit(MouseInput,Input,{handler:function(t){var e=z[t.type];e&C&&0===t.button&&(this.pressed=!0),e&k&&1!==t.which&&(e=E),this.pressed&&(e&E&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var H={pointerdown:C,pointermove:k,pointerup:E,pointercancel:S,pointerout:S},j={2:"touch",3:"pen",4:"mouse",5:"kinect"},W="pointerdown",B="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(W="MSPointerDown",B="MSPointerMove MSPointerUp MSPointerCancel"),inherit(PointerEventInput,Input,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=H[i],o=j[t.pointerType]||t.pointerType,a="touch"==o,s=inArray(e,t.pointerId,"pointerId");r&C&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(E|S)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var V={touchstart:C,touchmove:k,touchend:E,touchcancel:S},X="touchstart",$="touchstart touchmove touchend touchcancel";inherit(SingleTouchInput,Input,{handler:function(t){var e=V[t.type];if(e===C&&(this.started=!0),this.started){var n=normalizeSingleTouches.call(this,t,e);e&(E|S)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Y={touchstart:C,touchmove:k,touchend:E,touchcancel:S},U="touchstart touchmove touchend touchcancel";inherit(TouchInput,Input,{handler:function(t){var e=Y[t.type],n=getTouches.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var Q=2500,G=25;inherit(TouchMouseInput,Input,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)recordTouches.call(this,e,n);else if(r&&isSyntheticEvent.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var K=prefixed(c.style,"touchAction"),Z=K!==s,J="auto",tt="manipulation",et="none",nt="pan-x",it="pan-y",rt=function(){if(!Z)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();TouchAction.prototype={set:function(t){"compute"==t&&(t=this.compute()),Z&&this.manager.element.style&&rt[t]&&(this.manager.element.style[K]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return each(this.manager.recognizers,function(e){boolOrFn(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),cleanTouchActions(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=inStr(i,et)&&!rt[et],o=inStr(i,it)&&!rt[it],a=inStr(i,nt)&&!rt[nt];if(r){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)return}return a&&o?void 0:r||o&&n&N||a&&n&M?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ot=1,at=2,st=4,lt=8,ut=lt,ct=16;Recognizer.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(invokeArrayArg(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=getRecognizerByNameIfManager(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return invokeArrayArg(t,"dropRecognizeWith",this)?this:(t=getRecognizerByNameIfManager(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(invokeArrayArg(t,"requireFailure",this))return this;var e=this.requireFail;return t=getRecognizerByNameIfManager(t,this),-1===inArray(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(invokeArrayArg(t,"dropRequireFailure",this))return this;t=getRecognizerByNameIfManager(t,this);var e=inArray(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function emit(n){e.manager.emit(n,t)}var e=this,n=this.state;n<lt&&emit(e.options.event+stateStr(n)),emit(e.options.event),t.additionalEvent&&emit(t.additionalEvent),n>=lt&&emit(e.options.event+stateStr(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|ot)))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!boolOrFn(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ut|ct|32)&&(this.state=ot),this.state=this.process(e),this.state&(at|st|lt|ct)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},inherit(AttrRecognizer,Recognizer,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(at|st),r=this.attrTest(t);return i&&(n&S||!r)?e|ct:i||r?n&E?e|lt:e&at?e|st:at:32}}),inherit(PanRecognizer,AttrRecognizer,{defaults:{event:"pan",threshold:10,pointers:1,direction:I},getTouchAction:function(){var t=this.options.direction,e=[];return t&N&&e.push(it),t&M&&e.push(nt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&N?(r=0===o?_:o<0?A:P,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?_:a<0?D:O,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return AttrRecognizer.prototype.attrTest.call(this,t)&&(this.state&at||!(this.state&at)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=directionStr(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[et]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&at)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),inherit(PressRecognizer,Recognizer,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[J]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(E|S)&&!r)this.reset();else if(t.eventType&C)this.reset(),this._timer=setTimeoutContext(function(){this.state=ut,this.tryEmit()},e.time,this);else if(t.eventType&E)return ut;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ut&&(t&&t.eventType&E?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[et]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&at)}}),inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:N|M,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(N|M)?e=t.overallVelocity:n&N?e=t.overallVelocityX:n&M&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&t.eventType&E},emit:function(t){var e=directionStr(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),inherit(TapRecognizer,Recognizer,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&C&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=E)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||getDistance(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=setTimeoutContext(function(){this.state=ut,this.tryEmit()},e.interval,this),at):ut}return 32},failTimeout:function(){return this._timer=setTimeoutContext(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ut&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Hammer.VERSION="2.0.7",Hammer.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[RotateRecognizer,{enable:!1}],[PinchRecognizer,{enable:!1},["rotate"]],[SwipeRecognizer,{direction:N}],[PanRecognizer,{direction:N},["swipe"]],[TapRecognizer],[TapRecognizer,{event:"doubletap",taps:2},["tap"]],[PressRecognizer]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Manager.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ut)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(at|st|lt)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Recognizer)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(invokeArrayArg(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(invokeArrayArg(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=inArray(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return each(splitStr(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==s){var n=this.handlers;return each(splitStr(t),function(t){e?n[t]&&n[t].splice(inArray(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&triggerDomEvent(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&toggleCssProps(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Hammer,{INPUT_START:C,INPUT_MOVE:k,INPUT_END:E,INPUT_CANCEL:S,STATE_POSSIBLE:ot,STATE_BEGAN:at,STATE_CHANGED:st,STATE_ENDED:lt,STATE_RECOGNIZED:ut,STATE_CANCELLED:ct,STATE_FAILED:32,DIRECTION_NONE:_,DIRECTION_LEFT:A,DIRECTION_RIGHT:P,DIRECTION_UP:D,DIRECTION_DOWN:O,DIRECTION_HORIZONTAL:N,DIRECTION_VERTICAL:M,DIRECTION_ALL:I,Manager:Manager,Input:Input,TouchAction:TouchAction,TouchInput:TouchInput,MouseInput:MouseInput,PointerEventInput:PointerEventInput,TouchMouseInput:TouchMouseInput,SingleTouchInput:SingleTouchInput,Recognizer:Recognizer,AttrRecognizer:AttrRecognizer,Tap:TapRecognizer,Pan:PanRecognizer,Swipe:SwipeRecognizer,Pinch:PinchRecognizer,Rotate:RotateRecognizer,Press:PressRecognizer,on:addEventListeners,off:removeEventListeners,each:each,merge:v,extend:g,assign:l,inherit:inherit,bindFn:bindFn,prefixed:prefixed}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Hammer,(i=function(){return Hammer}.call(e,n,e,t))!==s&&(t.exports=i)}(window,document)},function(t,e){(function(e){t.exports=e}).call(e,{})}]); \ No newline at end of file | ||