if(!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function ir(n,t){t=t||u;var i=t.createElement("script");i.text=n;t.head.appendChild(i).parentNode.removeChild(i)}function fi(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"!==r&&!i.isWindow(n)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n)}function l(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function oi(n,t,r){return i.isFunction(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return ot.call(t,n)>-1!==r}):er.test(t)?i.filter(t,n,r):(t=i.filter(t,n),i.grep(n,function(n){return ot.call(t,n)>-1!==r&&1===n.nodeType}))}function ar(n,t){while((n=n[t])&&1!==n.nodeType);return n}function ne(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function nt(n){return n}function pt(n){throw n;}function vr(n,t,r,u){var f;try{n&&i.isFunction(f=n.promise)?f.call(n).done(t).fail(r):n&&i.isFunction(f=n.then)?f.call(n,t,r):t.apply(void 0,[n].slice(u))}catch(n){r.apply(void 0,[n])}}function bt(){u.removeEventListener("DOMContentLoaded",bt);n.removeEventListener("load",bt);i.ready()}function ht(){this.expando=i.expando+ht.uid++}function re(n){return"true"===n||"false"!==n&&("null"===n?null:n===+n+""?+n:te.test(n)?JSON.parse(n):n)}function pr(n,t,i){var r;if(void 0===i&&1===n.nodeType)if(r="data-"+t.replace(ie,"-$&").toLowerCase(),i=n.getAttribute(r),"string"==typeof i){try{i=re(i)}catch(u){}e.set(n,t,i)}else i=void 0;return i}function kr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&ct.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ue(n){var r,f=n.ownerDocument,u=n.nodeName,t=si[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),"none"===t&&(t="block"),si[u]=t,t)}function tt(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)u=n[i],u.style&&(e=u.style.display,t?("none"===e&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),""===u.style.display&&kt(u)&&(f[i]=ue(u))):"none"!==e&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)null!=f[i]&&(n[i].style.display=f[i]);return n}function o(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&l(n,t)?i.merge([n],r):r}function hi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function iu(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||0===e)if("object"===i.type(e))i.merge(y,e.nodeType?[e]:e);else if(tu.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(gr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];)if(u&&i.inArray(e,u)>-1)f&&f.push(e);else if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&hi(s),r)for(v=0;e=s[v++];)nu.test(e.type||"")&&r.push(e);return h}function gt(){return!0}function it(){return!1}function uu(){try{return u.activeElement}catch(n){}}function ci(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)ci(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=it;else if(!f)return n;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function fu(n,t){return l(n,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")?i(">tbody",n)[0]||n:n}function ae(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function ve(n){var t=ce.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function eu(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;u<c;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function ye(n,t){var i=t.nodeName.toLowerCase();"input"===i&&dr.test(n.type)?t.checked=n.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=n.defaultValue)}function rt(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&"string"==typeof y&&!f.checkClone&&he.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html()));rt(r,t,u,e)});if(v&&(l=iu(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,1===l.childNodes.length&&(l=p),p||e)){for(c=i.map(o(l,"script"),ae),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ve),h=0;h<a;h++)s=c[h],nu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):ir(s.textContent.replace(le,""),w))}return n}function ou(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&hi(o(u,"script")),u.parentNode.removeChild(u));return n}function lt(n,t,r){var o,s,h,u,e=n.style;return r=r||ni(n),r&&(u=r.getPropertyValue(t)||r[t],""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&li.test(u)&&su.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),void 0!==u?u+"":u}function hu(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function be(n){if(n in vu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=au.length;t--;)if(n=au[t]+i,n in vu)return n}function yu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=be(n)||n),t}function pu(n,t,i){var r=ct.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wu(n,t,r,u,f){for(var o=0,e=r===(u?"border":"content")?4:"width"===t?1:0;e<4;e+=2)"margin"===r&&(o+=i.css(n,r+b[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+b[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function bu(n,t,r){var o,e=ni(n),u=lt(n,t,e),s="border-box"===i.css(n,"boxSizing",!1,e);return li.test(u)?u:(o=s&&(f.boxSizingReliable()||u===n.style[t]),"auto"===u&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)]),u=parseFloat(u)||0,u+wu(n,t,r||(s?"border":"content"),o,e)+"px")}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function ai(){ti&&(u.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ai):n.setTimeout(ai,i.fx.interval),i.fx.tick())}function gu(){return n.setTimeout(function(){ut=void 0}),ut=i.now()}function ii(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function nf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ke(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),null==c.unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],ku.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&1===n.nodeType&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,null==o&&(o=r.get(n,"display")),l=i.css(n,"display"),"none"===l&&(o?l=o:(tt([n],!0),o=n.style.display||o,l=i.css(n,"display"),tt([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(s||(v.done(function(){h.display=o}),null==o&&(l=h.display,o="none"===l?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&tt([n],!0),v.done(function(){a||tt([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=nf(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function de(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var e,o,s=0,l=a.prefilters.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=ut||gu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(e||f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||gu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),h=u.props;for(de(h,u.opts.specialEasing);s<l;s++)if(e=a.prefilters[s].call(u,n,h,u.opts))return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(h,nf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u}function k(n){var t=n.match(h)||[];return t.join(" ")}function d(n){return n.getAttribute&&n.getAttribute("class")||""}function pi(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):pi(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)pi(n+"["+f+"]",t[f],r,u)}function cf(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function lf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===wi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function so(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function ho(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var p=[],u=n.document,pf=Object.getPrototypeOf,w=p.slice,gi=p.concat,ui=p.push,ot=p.indexOf,vt={},nr=vt.toString,yt=vt.hasOwnProperty,tr=yt.toString,wf=tr.call(Object),f={},rr="3.2.1",i=function(n,t){return new i.fn.init(n,t)},bf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,kf=/^-ms-/,df=/-([a-z])/g,gf=function(n,t){return t.toUpperCase()},y,ei,er,or,sr,hr,cr,lr,h,yr,wt,v,st,si,tu,ut,ti,ku,du,tf,ft,rf,uf,ff,vi,af,et,di,ri,vf,yf;i.fn=i.prototype={jquery:rr,constructor:i,length:0,toArray:function(){return w.call(this)},get:function(n){return null==n?w.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ui,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if(null!=(e=arguments[u]))for(f in e)r=n[f],t=e[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(o?(o=!1,s=r&&Array.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(rr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isWindow:function(n){return null!=n&&n===n.window},isNumeric:function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==nr.call(n))&&(!(t=pf(n))||(i=yt.call(t,"constructor")&&t.constructor,"function"==typeof i&&tr.call(i)===wf))},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?vt[nr.call(n)]||"object":typeof n},globalEval:function(n){ir(n)},camelCase:function(n){return n.replace(kf,"ms-").replace(df,gf)},each:function(n,t){var r,i=0;if(fi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(bf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(fi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ui.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ot.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(fi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;if("string"==typeof t&&(u=n[t],t=n,n=u),i.isFunction(n))return f=w.call(arguments,2),r=function(){return n.apply(t||this,f.concat(w.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r},now:Date.now,support:f});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()});y=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(d=cr.exec(n)))if(s=d[1]){if(9===v){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=di++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:wt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(f){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(f=s[0]=s[0].slice(0),f.length>2&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;i.escapeSelector=y.escape;var g=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},ur=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},fr=i.expr.match.needsContext;ei=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;er=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(oi(this,n||[],!1))},not:function(n){return this.pushStack(oi(this,n||[],!0))},is:function(n){return!!oi(this,"string"==typeof n&&fr.test(n)?i(n):n||[],!1).length}});sr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;hr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||or,"string"==typeof n){if(f="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:sr.exec(n),!f||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),ei.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)};hr.prototype=i.fn;or=i(u);cr=/^(?:parents|prev(?:Until|All))/;lr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!fr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ot.call(i(n),this[0]):ot.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return g(n,"parentNode")},parentsUntil:function(n,t,i){return g(n,"parentNode",i)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return g(n,"nextSibling")},prevAll:function(n){return g(n,"previousSibling")},nextUntil:function(n,t,i){return g(n,"nextSibling",i)},prevUntil:function(n,t,i){return g(n,"previousSibling",i)},siblings:function(n){return ur((n.parentNode||{}).firstChild,n)},children:function(n){return ur(n.firstChild)},contents:function(n){return l(n,"iframe")?n.contentDocument:(l(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(lr[n]||i.uniqueSort(f),cr.test(n)&&f.reverse()),this.pushStack(f)}});h=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n="string"==typeof n?ne(n):i.extend({},n);var e,r,h,u,t=[],o=[],f=-1,c=function(){for(u=u||n.once,h=e=!0;o.length;f=-1)for(r=o.shift();++f<t.length;)t[f].apply(r[0],r[1])===!1&&n.stopOnFalse&&(f=t.length,r=!1);n.memory||(r=!1);e=!1;u&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(f=t.length-1,o.push(r)),function u(r){i.each(r,function(r,f){i.isFunction(f)?n.unique&&s.has(f)||t.push(f):f&&f.length&&"string"!==i.type(f)&&u(f)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=f&&f--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return u=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=o=[],r||e||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then;i.isFunction(c)?f?c.call(n,o(e,r,nt,f),o(e,r,pt,f)):(e++,c.call(n,o(e,r,nt,f),o(e,r,pt,f),o(e,r,nt,r.notifyWith))):(u!==nt&&(s=void 0,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace);t+1>=e&&(u!==pt&&(s=void 0,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:nt,n.notifyWith));u[1][3].add(o(0,n,i.isFunction(t)?t:nt));u[2][3].add(o(0,n,i.isFunction(r)?r:pt))}).promise()},promise:function(n){return null!=n?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add;o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=w.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this;u[n]=arguments.length>1?w.call(arguments):t;--f||r.resolveWith(e,u)}};if(f<=1&&(vr(n,r.done(o(t)).resolve,r.reject,!f),"pending"===r.state()||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)vr(u[t],o(t),r.reject);return r.promise()}});yr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&yr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};wt=i.Deferred();i.fn.ready=function(n){return wt.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||wt.resolveWith(u,[i]))}});i.ready.then=wt.then;"complete"===u.readyState||"loading"!==u.readyState&&!u.documentElement.doScroll?n.setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",bt),n.addEventListener("load",bt));v=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)v(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};st=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};ht.uid=1;ht.prototype={cache:function(n){var t=n[this.expando];return t||(t={},st(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if("string"==typeof t)f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(Array.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=(t in r)?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new ht,e=new ht,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(void 0===n){if(this.length&&(s=e.get(u),1===u.nodeType&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),pr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return"object"==typeof n?this.each(function(){e.set(this,n)}):v(this,function(t){var i;if(u&&void 0===t){if((i=e.get(u,n),void 0!==i)||(i=pr(u,n),void 0!==i))return i}else this.each(function(){e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var wr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+wr+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],kt=function(n,t){return n=t||n,"none"===n.style.display||""===n.style.display&&i.contains(n.ownerDocument,n)&&"none"===i.css(n,"display")},br=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};si={};i.fn.extend({show:function(){return tt(this,!0)},hide:function(){return tt(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dr=/^(?:checkbox|radio)$/i,gr=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,nu=/^$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;tu=/<|&#?\w+;/;!function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var dt=u.documentElement,fe=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ru=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(dt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),t=(t||"").match(h)||[""],b=t.length;b--;)w=ru.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(c=ru.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),o){for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==s&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!("click"===n.type&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||r.disabled!==!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",void 0===s[u]&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==uu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===uu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&l(this,"input"))return this.click(),!1},_default:function(n){return l(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?gt:it,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={constructor:i.Event,isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=gt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=gt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=gt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return null==n.which&&fe.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&ee.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return ci(this,n,t,i,r)},one:function(n,t,i,r){return ci(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return t!==!1&&"function"!=typeof t||(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})}});var oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,se=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(oe,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(f.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)ye(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)eu(s[u],e[u]);else eu(n,h);return e=o(h,"script"),e.length>0&&hi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;void 0!==(t=n[o]);o++)if(st(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[e.expando]&&(t[e.expando]=void 0)}}});i.fn.extend({detach:function(n){return ou(this,n,!0)},remove:function(n){return ou(this,n)},text:function(n){return v(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return rt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fu(this,n);t.appendChild(n)}})},prepend:function(){return rt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=fu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return v(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!se.test(n)&&!c[(gr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},1===t.nodeType&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return rt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ui.apply(f,u.get());return this.pushStack(f)}});var su=/^margin/,li=new RegExp("^("+wr+")(?!px)[a-z%]+$","i"),ni=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};!function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";dt.appendChild(e);var i=n.getComputedStyle(t);o="1%"!==i.top;c="2px"===i.marginLeft;s="4px"===i.width;t.style.marginRight="50%";h="4px"===i.marginRight;dt.removeChild(e);t=null}}var o,s,h,c,e=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===t.style.backgroundClip,e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))}();var pe=/^(none|table(?!-c[ea]).+)/,cu=/^--/,we={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"},au=["Webkit","Moz","ms"],vu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=lt(n,"opacity");return""===i?"1":i}}}},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(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,s,o,c=i.camelCase(t),l=cu.test(t),h=n.style;return l||(t=yu(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r?o&&"get"in o&&void 0!==(e=o.get(n,!1,u))?e:h[t]:(s=typeof r,"string"===s&&(e=ct.exec(r))&&e[1]&&(r=kr(n,t,e),s="number"),null!=r&&r===r&&("number"===s&&(r+=e&&e[3]||(i.cssNumber[c]?"":"px")),f.clearCloneStyle||""!==r||0!==t.indexOf("background")||(h[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?h.setProperty(t,r):h[t]=r)),void 0)}},css:function(n,t,r,u){var f,o,e,s=i.camelCase(t),h=cu.test(t);return h||(t=yu(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=lt(n,t,u)),"normal"===f&&t in lu&&(f=lu[t]),""===r||r?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!pe.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?bu(n,t,u):br(n,we,function(){return bu(n,t,u)})},set:function(n,r,u){var f,e=u&&ni(n),o=u&&wu(n,t,u,"border-box"===i.css(n,"boxSizing",!1,e),e);return o&&(f=ct.exec(r))&&"px"!==(f[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),pu(n,r,o)}}});i.cssHooks.marginLeft=hu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(lt(n,"marginLeft"))||n.getBoundingClientRect().left-br(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};su.test(n)||(i.cssHooks[n+t].set=pu)});i.fn.extend({css:function(n,t){return v(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ni(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};ku=/^(?:toggle|show|hide)$/;du=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return kr(i.elem,n,ct.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],a.tweeners[r]=a.tweeners[r]||[],a.tweeners[r].unshift(t)},prefilters:[ke],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return i.fx.off?u.duration=0:"number"!=typeof u.duration&&(u.duration=u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default),null!=u.queue&&u.queue!==!0||(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&du.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ii(t,!0),n,i,u)}});i.each({slideDown:ii("show"),slideUp:ii("hide"),slideToggle:ii("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(ut=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ut=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){ti||(ti=!0,ai())};i.fx.stop=function(){ti=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=""!==n.value;f.optSelected=i.selected;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue="t"===n.value}();ft=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return v(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?tf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):f&&"set"in f&&void 0!==(u=f.set(n,r,t))?u:(n.setAttribute(t,r+""),r):f&&"get"in f&&null!==(u=f.get(n,t))?u:(u=i.find.attr(n,t),null==u?void 0:u))},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&"radio"===t&&l(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});tf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ft[t]||i.find.attr;ft[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ft[u],ft[u]=f,f=null!=r(n,t,i)?u:null,ft[u]=e),f}});rf=/^(?:input|select|textarea|button)$/i;uf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return v(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):rf.test(n.nodeName)||uf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,d(this)))});if("string"==typeof n&&n)for(o=n.match(h)||[];t=this[c++];)if(u=d(t),r=1===t.nodeType&&" "+k(u)+" "){for(s=0;f=o[s++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=k(r);u!==e&&t.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,d(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=1===r.nodeType&&" "+k(u)+" "){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return"boolean"==typeof t&&"string"===u?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,d(this),t),t)}):this.each(function(){var t,e,f,o;if("string"===u)for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else void 0!==n&&"boolean"!==u||(t=d(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+k(d(t))+" ").indexOf(i)>-1)return!0;return!1}});ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(ff,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:k(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});vi=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if(s=c=e=e||u,3!==e.nodeType&&8!==e.nodeType&&!vi.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),f=null==f?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,vi.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&st(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||l._default&&l._default.apply(p.pop(),f)!==!1||!st(e)||a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=void 0,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var at=n.location,ef=i.now(),yi=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var ge=/\[\]$/,of=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==r?"":r)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)pi(r,n[r],t,f);return u.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!dr.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(of,"\r\n")}}):{name:t.name,value:r.replace(of,"\r\n")}}).get()}});var io=/%20/g,ro=/#.*$/,uo=/([?&])_=[^&]*/,fo=/^(.*?):[ \t]*([^\r\n]*)$/gm,eo=/^(?:GET|HEAD)$/,oo=/^\/\//,sf={},wi={},hf="*/".concat("*"),bi=u.createElement("a");return bi.href=at.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:cf(sf),ajaxTransport:cf(wi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||304===t,u&&(p=so(f,e,u)),p=ho(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),204===t||"HEAD"===f.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,g=p.error,y=!g)):(g=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",y?tt.resolveWith(c,[rt,l,e]):tt.rejectWith(c,[e,l,g]),e.statusCode(w),w=void 0,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,l]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,y,d,l,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=fo.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||at.href)+"").replace(oo,at.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],null==f.crossDomain){l=u.createElement("a");try{l.href=f.url;l.href=l.href;f.crossDomain=bi.protocol+"//"+bi.host!=l.protocol+"//"+l.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=i.param(f.data,f.traditional)),lf(sf,f,r,e),s)return e;v=i.event&&f.global;v&&0==i.active++&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!eo.test(f.type);o=f.url.replace(ro,"");f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(io,"+")):(p=f.url.slice(o.length),f.data&&(o+=(yi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(uo,"$1"),p=(yi.test(o)?"&":"?")+"_="+ef+++p),f.url=o+p);f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+hf+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),a=lf(wi,f,r,e)){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;a.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},af={0:200,1223:204},et=i.ajaxSettings.xhr(),f.cors=!!et&&"withCredentials"in et,f.ajax=et=!!et,i.ajaxTransport(function(t){var i,r;if(f.cors||et&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(af[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),di=[],ri=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=di.pop()||i.expando+"_"+ef++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ri.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ri.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ri,"$1"+f):t.jsonp!==!1&&(t.url+=(yi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,di.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=void 0}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",2===n.childNodes.length}(),i.parseHTML=function(n,t,r){if("string"!=typeof n)return[];"boolean"==typeof t&&(r=t,t=!1);var s,e,o;return t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=ei.exec(n),o=!r&&[],e?[t.createElement(e[1])]:(e=iu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=k(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,f,e,t=this[0];if(t)return t.getClientRects().length?(f=t.getBoundingClientRect(),r=t.ownerDocument,u=r.documentElement,e=r.defaultView,{top:f.top+e.pageYOffset-u.clientTop,left:f.left+e.pageXOffset-u.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),l(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||dt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(u){return v(this,function(n,u,f){var e;return i.isWindow(n)?e=n:9===n.nodeType&&(e=n.defaultView),void 0===f?e?e[t]:n[u]:void(e?e.scrollTo(r?e.pageXOffset:f,r?f:e.pageYOffset):n[u]=f)},n,u,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=hu(f.pixelPosition,function(n,r){if(r)return r=lt(n,t),li.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(f===!0||e===!0?"margin":"border");return v(this,function(t,r,f){var e;return i.isWindow(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=l,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),vf=n.jQuery,yf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=yf),t&&n.jQuery===i&&(n.jQuery=vf),i},t||(n.jQuery=n.$=i),i}),!function(n,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t(require,exports,module):n.Tether=t()}(this,function(){"use strict";function it(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function n(n){var f=getComputedStyle(n)||{},u=f.position,t,i;if("fixed"===u)return n;for(t=n;t=t.parentNode;){i=void 0;try{i=getComputedStyle(t)}catch(h){}if("undefined"==typeof i||null===i)return t;var r=i,e=r.overflow,o=r.overflowX,s=r.overflowY;if(/(auto|scroll)/.test(e+s+o)&&("absolute"!==u||["relative","absolute","fixed"].indexOf(i.position)>=0))return t}return document.body}function r(n){var i=void 0,r,u;n===document?(i=document,n=document.documentElement):i=n.ownerDocument;var f=i.documentElement,t={},e=n.getBoundingClientRect();for(r in e)t[r]=e[r];return u=vt(i),t.top-=u.top,t.left-=u.left,"undefined"==typeof t.width&&(t.width=document.body.scrollWidth-t.left-t.right),"undefined"==typeof t.height&&(t.height=document.body.scrollHeight-t.top-t.bottom),t.top=t.top-f.clientTop,t.left=t.left-f.clientLeft,t.right=i.body.clientWidth-t.width-t.left,t.bottom=i.body.clientHeight-t.height-t.top,t}function s(n){return n.offsetParent||document.documentElement}function a(){var t=document.createElement("div"),n,r,i,u;return t.style.width="100%",t.style.height="200px",n=document.createElement("div"),f(n.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.appendChild(t),document.body.appendChild(n),r=t.offsetWidth,n.style.overflow="scroll",i=t.offsetWidth,r===i&&(i=n.clientWidth),document.body.removeChild(n),u=r-i,{width:u,height:u}}function f(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach(function(t){if(t)for(var i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=t[i])}),n}function h(n,t){if("undefined"!=typeof n.classList)t.split(" ").forEach(function(t){t.trim()&&n.classList.remove(t)});else{var i=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=d(n).replace(i," ");rt(n,r)}}function l(n,t){if("undefined"!=typeof n.classList)t.split(" ").forEach(function(t){t.trim()&&n.classList.add(t)});else{h(n,t);var i=d(n)+(" "+t);rt(n,i)}}function k(n,t){if("undefined"!=typeof n.classList)return n.classList.contains(t);var i=d(n);return new RegExp("(^| )"+t+"( |$)","gi").test(i)}function d(n){return n.className instanceof SVGAnimatedString?n.className.baseVal:n.className}function rt(n,t){n.setAttribute("class",t)}function c(n,t,i){i.forEach(function(i){-1===t.indexOf(i)&&k(n,i)&&h(n,i)});t.forEach(function(t){k(n,t)||l(n,t)})}function it(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function lt(n,t){var i=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return n+i>=t&&t>=n-i}function g(){return"undefined"!=typeof performance&&"undefined"!=typeof performance.now?performance.now():+new Date}function ut(){for(var t={top:0,left:0},i=arguments.length,r=Array(i),n=0;i>n;n++)r[n]=arguments[n];return r.forEach(function(n){var i=n.top,r=n.left;"string"==typeof i&&(i=parseFloat(i,10));"string"==typeof r&&(r=parseFloat(r,10));t.top+=i;t.left+=r}),t}function v(n,t){return"string"==typeof n.left&&-1!==n.left.indexOf("%")&&(n.left=parseFloat(n.left,10)/100*t.width),"string"==typeof n.top&&-1!==n.top.indexOf("%")&&(n.top=parseFloat(n.top,10)/100*t.height),n}function at(n,t){return"scrollParent"===t?t=n.scrollParent:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),"undefined"!=typeof t.nodeType&&!function(){var i=r(t),n=i,r=getComputedStyle(t);t=[n.left,n.top,i.width+n.left,i.height+n.top];dt.forEach(function(n,i){n=n[0].toUpperCase()+n.substr(1);"Top"===n||"Left"===n?t[i]+=parseFloat(r["border"+n+"Width"]):t[i]-=parseFloat(r["border"+n+"Width"])})}(),t}var y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),i=void 0,e;"undefined"==typeof i&&(i={modules:[]});var ft=function(){var n=0;return function(){return++n}}(),o={},vt=function(n){var t=n._tetherZeroElement,i,r,f;if("undefined"==typeof t&&(t=n.createElement("div"),t.setAttribute("data-tether-id",ft()),f(t.style,{top:0,left:0,position:"absolute"}),n.body.appendChild(t),n._tetherZeroElement=t),i=t.getAttribute("data-tether-id"),"undefined"==typeof o[i]){o[i]={};r=t.getBoundingClientRect();for(f in r)o[i][f]=r[f];u(function(){delete o[i]})}return o[i]},et=[],u=function(n){et.push(n)},p=function(){for(var n=void 0;n=et.pop();)n()},yt=function(){function n(){it(this,n)}return y(n,[{key:"on",value:function(n,t,i){var r=arguments.length<=3||void 0===arguments[3]?!1:arguments[3];"undefined"==typeof this.bindings&&(this.bindings={});"undefined"==typeof this.bindings[n]&&(this.bindings[n]=[]);this.bindings[n].push({handler:t,ctx:i,once:r})}},{key:"once",value:function(n,t,i){this.on(n,t,i,!0)}},{key:"off",value:function(n,t){if("undefined"==typeof this.bindings||"undefined"==typeof this.bindings[n])if("undefined"==typeof t)delete this.bindings[n];else for(var i=0;i<this.bindings[n].length;)this.bindings[n][i].handler===t?this.bindings[n].splice(i,1):++i}},{key:"trigger",value:function(n){if("undefined"!=typeof this.bindings&&this.bindings[n]){for(var t=0,r=arguments.length,e=Array(r>1?r-1:0),i=1;r>i;i++)e[i-1]=arguments[i];for(;t<this.bindings[n].length;){var u=this.bindings[n][t],o=u.handler,s=u.ctx,h=u.once,f=s;"undefined"==typeof f&&(f=this);o.apply(f,e);h?this.bindings[n].splice(t,1):++t}}}}]),n}();if(i.Utils={getScrollParent:n,getBounds:r,getOffsetParent:s,extend:f,addClass:l,removeClass:h,hasClass:k,updateClasses:c,defer:u,flush:p,uniqueId:ft,Evented:yt,getScrollBarSize:a},e=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),"undefined"==typeof i)throw new Error("You must include the utils.js file before tether.js");var t=i.Utils,n=t.getScrollParent,r=t.getBounds,s=t.getOffsetParent,f=t.extend,l=t.addClass,h=t.removeClass,c=t.updateClasses,u=t.defer,p=t.flush,a=t.getScrollBarSize,nt=function(){var t;if("undefined"==typeof document)return"";for(var r=document.createElement("div"),i=["transform","webkitTransform","OTransform","MozTransform","msTransform"],n=0;n<i.length;++n)if(t=i[n],void 0!==r.style[t])return t}(),w=[],ot=function(){w.forEach(function(n){n.position(!1)});p()};!function(){var t=null,n=null,i=null,r=function u(){return"undefined"!=typeof n&&n>16?(n=Math.min(n-16,250),void(i=setTimeout(u,250))):void("undefined"!=typeof t&&g()-t<10||("undefined"!=typeof i&&(clearTimeout(i),i=null),t=g(),ot(),n=g()-t))};"undefined"!=typeof window&&["resize","scroll","touchmove"].forEach(function(n){window.addEventListener(n,r)})}();var pt={center:"center",left:"right",right:"left"},wt={middle:"middle",top:"bottom",bottom:"top"},b={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},bt=function(n,t){var i=n.left,r=n.top;return"auto"===i&&(i=pt[t.left]),"auto"===r&&(r=wt[t.top]),{left:i,top:r}},st=function(n){var t=n.left,i=n.top;return"undefined"!=typeof b[n.left]&&(t=b[n.left]),"undefined"!=typeof b[n.top]&&(i=b[n.top]),{left:t,top:i}},tt=function(n){var i=n.split(" "),t=e(i,2),r=t[0],u=t[1];return{top:r,left:u}},ht=tt,ct=function(){function n(t){var r=this;it(this,n);this.position=this.position.bind(this);w.push(this);this.history=[];this.setOptions(t,!1);i.modules.forEach(function(n){"undefined"!=typeof n.initialize&&n.initialize.call(r)});this.position()}return y(n,[{key:"getClass",value:function(){var n=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return"undefined"!=typeof t&&t[n]?this.options.classes[n]:this.options.classPrefix?this.options.classPrefix+"-"+n:n}},{key:"setOptions",value:function(n){var t=this,r=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];this.options=f({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},n);var i=this.options,u=i.element,f=i.target,e=i.targetModifier;if(this.element=u,this.target=f,this.targetModifier=e,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(n){if("undefined"==typeof t[n])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof t[n].jquery?t[n]=t[n][0]:"string"==typeof t[n]&&(t[n]=document.querySelector(t[n]))}),l(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&l(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=ht(this.options.targetAttachment);this.attachment=ht(this.options.attachment);this.offset=tt(this.options.offset);this.targetOffset=tt(this.options.targetOffset);"undefined"!=typeof this.scrollParent&&this.disable();this.scrollParent="scroll-handle"===this.targetModifier?this.target:n(this.target);this.options.enabled!==!1&&this.enable(r)}},{key:"getTargetBounds",value:function(){var n,t,i,o;if("undefined"==typeof this.targetModifier)return r(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:(t=r(this.target),n={height:t.height,width:t.width,top:t.top,left:t.left},n.height=Math.min(n.height,t.height-(pageYOffset-t.top)),n.height=Math.min(n.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),n.height=Math.min(innerHeight,n.height),n.height-=2,n.width=Math.min(n.width,t.width-(pageXOffset-t.left)),n.width=Math.min(n.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),n.width=Math.min(innerWidth,n.width),n.width-=2,n.top<pageYOffset&&(n.top=pageYOffset),n.left<pageXOffset&&(n.left=pageXOffset),n);if("scroll-handle"===this.targetModifier){t=void 0;i=this.target;i===document.body?(i=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=r(i);var u=getComputedStyle(i),s=i.scrollWidth>i.clientWidth||[u.overflow,u.overflowX].indexOf("scroll")>=0||this.target!==document.body,f=0;s&&(f=15);var r=t.height-parseFloat(u.borderTopWidth)-parseFloat(u.borderBottomWidth)-f,n={width:15,height:.975*r*(r/i.scrollHeight),left:t.left+t.width-parseFloat(u.borderLeftWidth)-15},e=0;return 408>r&&this.target===document.body&&(e=-.00011*Math.pow(r,2)-.00727*r+22.58),this.target!==document.body&&(n.height=Math.max(n.height,24)),o=this.target.scrollTop/(i.scrollHeight-r),n.top=o*(r-n.height-e)+t.top+parseFloat(u.borderTopWidth),this.target===document.body&&(n.height=Math.max(n.height,24)),n}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(n,t){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[n]&&(this._cache[n]=t.call(this)),this._cache[n]}},{key:"enable",value:function(){var n=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];this.options.addTargetClasses!==!1&&l(this.target,this.getClass("enabled"));l(this.element,this.getClass("enabled"));this.enabled=!0;this.scrollParent!==document&&this.scrollParent.addEventListener("scroll",this.position);n&&this.position()}},{key:"disable",value:function(){h(this.target,this.getClass("enabled"));h(this.element,this.getClass("enabled"));this.enabled=!1;"undefined"!=typeof this.scrollParent&&this.scrollParent.removeEventListener("scroll",this.position)}},{key:"destroy",value:function(){var n=this;this.disable();w.forEach(function(t,i){t===n})}},{key:"updateAttachClasses",value:function(n,t){var i=this,e,r,f;n=n||this.attachment;t=t||this.targetAttachment;e=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length);"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);r=this._addAttachClasses;n.top&&r.push(this.getClass("element-attached")+"-"+n.top);n.left&&r.push(this.getClass("element-attached")+"-"+n.left);t.top&&r.push(this.getClass("target-attached")+"-"+t.top);t.left&&r.push(this.getClass("target-attached")+"-"+t.left);f=[];e.forEach(function(n){f.push(i.getClass("element-attached")+"-"+n);f.push(i.getClass("target-attached")+"-"+n)});u(function(){"undefined"!=typeof i._addAttachClasses&&(c(i.element,i._addAttachClasses,f),i.options.addTargetClasses!==!1&&c(i.target,i._addAttachClasses,f),delete i._addAttachClasses)})}},{key:"position",value:function(){var s=this,tt=arguments.length<=0||void 0===arguments[0]?!0:arguments[0],l,w,nt,e,n,o;if(this.enabled){this.clearCache();l=bt(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,l);var y=this.cache("element-bounds",function(){return r(s.element)}),t=y.width,r=y.height;0===t&&0===r&&"undefined"!=typeof this.lastSize?(w=this.lastSize,t=w.width,r=w.height):this.lastSize={width:t,height:r};var a=this.cache("target-bounds",function(){return s.getTargetBounds()}),k=a,h=v(st(this.attachment),{width:t,height:r}),c=v(st(l),k),d=v(this.offset,{width:t,height:r}),g=v(this.targetOffset,k);h=ut(h,d);c=ut(c,g);for(var u=a.left+c.left-h.left,f=a.top+c.top-h.top,b=0;b<i.modules.length;++b){if(nt=i.modules[b],e=nt.position.call(this,{left:u,top:f,targetAttachment:l,targetPos:a,elementPos:y,offset:h,targetOffset:c,manualOffset:d,manualTargetOffset:g,scrollbarSize:o,attachment:this.attachment}),e===!1)return!1;"undefined"!=typeof e&&"object"==typeof e&&(f=e.top,u=e.left)}return n={page:{top:f,left:u},viewport:{top:f-pageYOffset,bottom:pageYOffset-f-r+innerHeight,left:u-pageXOffset,right:pageXOffset-u-t+innerWidth}},o=void 0,document.body.scrollWidth>window.innerWidth&&(o=this.cache("scrollbar-size",a),n.viewport.bottom-=o.height),document.body.scrollHeight>window.innerHeight&&(o=this.cache("scrollbar-size",a),n.viewport.right-=o.width),(-1===["","static"].indexOf(document.body.style.position)||-1===["","static"].indexOf(document.body.parentElement.style.position))&&(n.page.bottom=document.body.scrollHeight-f-r,n.page.right=document.body.scrollWidth-u-t),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var r=s.cache("target-offsetparent",function(){return s(s.target)}),t=s.cache("target-offsetparent-bounds",function(){return r(r)}),o=getComputedStyle(r),u=t,i={},f,e;(["Top","Left","Bottom","Right"].forEach(function(n){i[n.toLowerCase()]=parseFloat(o["border"+n+"Width"])}),t.right=document.body.scrollWidth-t.left-u.width+i.right,t.bottom=document.body.scrollHeight-t.top-u.height+i.bottom,n.page.top>=t.top+i.top&&n.page.bottom>=t.bottom&&n.page.left>=t.left+i.left&&n.page.right>=t.right)&&(f=r.scrollTop,e=r.scrollLeft,n.offset={top:n.page.top-t.top+f-i.top,left:n.page.left-t.left+e-i.left})}(),this.move(n),this.history.unshift(n),this.history.length>3&&this.history.pop(),tt&&p(),!0}}},{key:"move",value:function(n){var r=this,t,e,a,c,v,y,o,p,w,f,s,h;if("undefined"!=typeof this.element.parentNode){t={};for(e in n){t[e]={};for(f in n[e]){for(a=!1,c=0;c<this.history.length;++c)if(v=this.history[c],"undefined"!=typeof v[e]&&!lt(v[e][f],n[e][f])){a=!0;break}a||(t[e][f]=!0)}}var i={top:"",left:"",right:"",bottom:""},l=function(n,t){var e="undefined"!=typeof r.options.optimizations,o=e?r.options.optimizations.gpu:null,u,f;o!==!1?(u=void 0,f=void 0,n.top?(i.top=0,u=t.top):(i.bottom=0,u=-t.bottom),n.left?(i.left=0,f=t.left):(i.right=0,f=-t.right),i[nt]="translateX("+Math.round(f)+"px) translateY("+Math.round(u)+"px)","msTransform"!==nt&&(i[nt]+=" translateZ(0)")):(n.top?i.top=t.top+"px":i.bottom=t.bottom+"px",n.left?i.left=t.left+"px":i.right=t.right+"px")},b=!1;if((t.page.top||t.page.bottom)&&(t.page.left||t.page.right)?(i.position="absolute",l(t.page,n.page)):(t.viewport.top||t.viewport.bottom)&&(t.viewport.left||t.viewport.right)?(i.position="fixed",l(t.viewport,n.viewport)):"undefined"!=typeof t.offset&&t.offset.top&&t.offset.left?!function(){i.position="absolute";var f=r.cache("target-offsetparent",function(){return s(r.target)});s(r.element)!==f&&u(function(){r.element.parentNode.removeChild(r.element);f.appendChild(r.element)});l(t.offset,n.offset);b=!0}():(i.position="absolute",l({top:!0,left:!0},n.page)),!b){for(y=!0,o=this.element.parentNode;o&&"BODY"!==o.tagName;){if("static"!==getComputedStyle(o).position){y=!1;break}o=o.parentNode}y||(this.element.parentNode.removeChild(this.element),document.body.appendChild(this.element))}p={};w=!1;for(f in i)s=i[f],h=this.element.style[f],""!==h&&""!==s&&["top","left","bottom","right"].indexOf(f)>=0&&(h=parseFloat(h),s=parseFloat(s)),h!==s&&(w=!0,p[f]=s);w&&u(function(){f(r.element.style,p)})}}}]),n}();ct.modules=[];i.position=ot;var kt=f(ct,i),e=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),t=i.Utils,r=t.getBounds,f=t.extend,c=t.updateClasses,u=t.defer,dt=["left","top","right","bottom"];i.modules.push({position:function(n){var h=this,r=n.top,i=n.left,y=n.targetAttachment,p;if(!this.options.constraints)return!0;var w=this.cache("element-bounds",function(){return r(h.element)}),s=w.height,o=w.width;0===o&&0===s&&"undefined"!=typeof this.lastSize&&(p=this.lastSize,o=p.width,s=p.height);var b=this.cache("target-bounds",function(){return h.getTargetBounds()}),c=b.height,l=b.width,a=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(n){var t=n.outOfBoundsClass,i=n.pinnedClass;t&&a.push(t);i&&a.push(i)});a.forEach(function(n){["left","top","right","bottom"].forEach(function(t){a.push(n+"-"+t)})});var v=[],f=f({},y),t=f({},this.attachment);return this.options.constraints.forEach(function(n){var tt=n.to,d=n.attachment,a=n.pin,w,b,nt,g,u,p,k;"undefined"==typeof d&&(d="");w=void 0;b=void 0;d.indexOf(" ")>=0?(nt=d.split(" "),g=e(nt,2),b=g[0],w=g[1]):w=b=d;u=at(h,tt);("target"===b||"both"===b)&&(r<u[1]&&"top"===f.top&&(r+=c,f.top="bottom"),r+s>u[3]&&"bottom"===f.top&&(r-=c,f.top="top"));"together"===b&&(r<u[1]&&"top"===f.top&&("bottom"===t.top?(r+=c,f.top="bottom",r+=s,t.top="top"):"top"===t.top&&(r+=c,f.top="bottom",r-=s,t.top="bottom")),r+s>u[3]&&"bottom"===f.top&&("top"===t.top?(r-=c,f.top="top",r-=s,t.top="bottom"):"bottom"===t.top&&(r-=c,f.top="top",r+=s,t.top="top")),"middle"===f.top&&(r+s>u[3]&&"top"===t.top?(r-=s,t.top="bottom"):r<u[1]&&"bottom"===t.top&&(r+=s,t.top="top")));("target"===w||"both"===w)&&(i<u[0]&&"left"===f.left&&(i+=l,f.left="right"),i+o>u[2]&&"right"===f.left&&(i-=l,f.left="left"));"together"===w&&(i<u[0]&&"left"===f.left?"right"===t.left?(i+=l,f.left="right",i+=o,t.left="left"):"left"===t.left&&(i+=l,f.left="right",i-=o,t.left="right"):i+o>u[2]&&"right"===f.left?"left"===t.left?(i-=l,f.left="left",i-=o,t.left="right"):"right"===t.left&&(i-=l,f.left="left",i+=o,t.left="left"):"center"===f.left&&(i+o>u[2]&&"left"===t.left?(i-=o,t.left="right"):i<u[0]&&"right"===t.left&&(i+=o,t.left="left")));("element"===b||"both"===b)&&(r<u[1]&&"bottom"===t.top&&(r+=s,t.top="top"),r+s>u[3]&&"top"===t.top&&(r-=s,t.top="bottom"));("element"===w||"both"===w)&&(i<u[0]&&("right"===t.left?(i+=o,t.left="left"):"center"===t.left&&(i+=o/2,t.left="left")),i+o>u[2]&&("left"===t.left?(i-=o,t.left="right"):"center"===t.left&&(i-=o/2,t.left="right")));"string"==typeof a?a=a.split(",").map(function(n){return n.trim()}):a===!0&&(a=["top","left","right","bottom"]);a=a||[];p=[];k=[];r<u[1]&&(a.indexOf("top")>=0?(r=u[1],p.push("top")):k.push("top"));r+s>u[3]&&(a.indexOf("bottom")>=0?(r=u[3]-s,p.push("bottom")):k.push("bottom"));i<u[0]&&(a.indexOf("left")>=0?(i=u[0],p.push("left")):k.push("left"));i+o>u[2]&&(a.indexOf("right")>=0?(i=u[2]-o,p.push("right")):k.push("right"));p.length&&!function(){var n=void 0;n="undefined"!=typeof h.options.pinnedClass?h.options.pinnedClass:h.getClass("pinned");v.push(n);p.forEach(function(t){v.push(n+"-"+t)})}();k.length&&!function(){var n=void 0;n="undefined"!=typeof h.options.outOfBoundsClass?h.options.outOfBoundsClass:h.getClass("out-of-bounds");v.push(n);k.forEach(function(t){v.push(n+"-"+t)})}();(p.indexOf("left")>=0||p.indexOf("right")>=0)&&(t.left=f.left=!1);(p.indexOf("top")>=0||p.indexOf("bottom")>=0)&&(t.top=f.top=!1);(f.top!==y.top||f.left!==y.left||t.top!==h.attachment.top||t.left!==h.attachment.left)&&h.updateAttachClasses(t,f)}),u(function(){h.options.addTargetClasses!==!1&&c(h.target,v,a);c(h.element,v,a)}),{top:r,left:i}}});var t=i.Utils,r=t.getBounds,c=t.updateClasses,u=t.defer;return i.modules.push({position:function(n){var t=this,o=n.top,s=n.left,h=this.cache("element-bounds",function(){return r(t.element)}),a=h.height,v=h.width,i=this.getTargetBounds(),c=o+a,l=s+v,r=[];o<=i.bottom&&c>=i.top&&["left","right"].forEach(function(n){var t=i[n];(t===s||t===l)&&r.push(n)});s<=i.right&&l>=i.left&&["top","bottom"].forEach(function(n){var t=i[n];(t===o||t===c)&&r.push(n)});var f=[],e=[];return f.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(n){f.push(t.getClass("abutted")+"-"+n)}),r.length&&e.push(this.getClass("abutted")),r.forEach(function(n){e.push(t.getClass("abutted")+"-"+n)}),u(function(){t.options.addTargetClasses!==!1&&c(t.target,e,f);c(t.element,e,f)}),!0}}),e=function(){function n(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),i.modules.push({position:function(n){var u=n.top,f=n.left,t,i,r,s,o;if(this.options.shift)return t=this.options.shift,"function"==typeof this.options.shift&&(t=this.options.shift.call(this,{top:u,left:f})),i=void 0,r=void 0,"string"==typeof t?(t=t.split(" "),t[1]=t[1]||t[0],s=t,o=e(s,2),i=o[0],r=o[1],i=parseFloat(i,10),r=parseFloat(r,10)):(i=t.top,r=t.left),u+=i,f+=r,{top:u,left:f}}}),kt}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");+function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}(jQuery);+function(){function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),n=function(n){function u(n){return{}.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function f(n){return(n[0]||n).nodeType}function e(){return{bindType:t.end,delegateType:t.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function o(){var t,n;if(window.QUnit)return!1;t=document.createElement("bootstrap");for(n in r)if(void 0!==t.style[n])return{end:r[n]};return!1}function s(t){var u=this,r=!1;return n(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(u)},t),this}function h(){t=o();n.fn.emulateTransitionEnd=s;i.supportsTransitionEnd()&&(n.event.special[i.TRANSITION_END]=e())}var t=!1,c=1e6,r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*c);while(document.getElementById(n));return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target");return t||(t=n.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(i){n(i).trigger(t.end)},supportsTransitionEnd:function(){return Boolean(t)},typeCheckConfig:function(n,t,i){var r;for(r in i)if(i.hasOwnProperty(r)){var o=i[r],e=t[r],s=e&&f(e)?"element":u(e);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+": "+('Option "'+r+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return h(),i}(jQuery),u=(function(r){var f="alert",c="4.0.0-alpha.6",e="bs.alert",o="."+e,l=r.fn[f],a=150,s={CLOSE:"close"+o,CLOSED:"closed"+o,CLICK_DATA_API:"click"+o+".data-api"},h={ALERT:"alert",FADE:"fade",SHOW:"show"},u=function(){function u(n){t(this,u);this._element=n}return u.prototype.close=function(n){n=n||this._element;var t=this._getRootElement(n),i=this._triggerCloseEvent(t);i.isDefaultPrevented()||this._removeElement(t)},u.prototype.dispose=function(){r.removeData(this._element,e);this._element=null},u.prototype._getRootElement=function(t){var u=n.getSelectorFromElement(t),i=!1;return u&&(i=r(u)[0]),i||(i=r(t).closest("."+h.ALERT)[0]),i},u.prototype._triggerCloseEvent=function(n){var t=r.Event(s.CLOSE);return r(n).trigger(t),t},u.prototype._removeElement=function(t){var i=this;return r(t).removeClass(h.SHOW),n.supportsTransitionEnd()&&r(t).hasClass(h.FADE)?void r(t).one(n.TRANSITION_END,function(n){return i._destroyElement(t,n)}).emulateTransitionEnd(a):void this._destroyElement(t)},u.prototype._destroyElement=function(n){r(n).detach().trigger(s.CLOSED).remove()},u._jQueryInterface=function(n){return this.each(function(){var i=r(this),t=i.data(e);t||(t=new u(this),i.data(e,t));"close"===n&&t[n](this)})},u._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},i(u,null,[{key:"VERSION",get:function(){return c}}]),u}();return r(document).on(s.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,u._handleDismiss(new u)),r.fn[f]=u._jQueryInterface,r.fn[f].Constructor=u,r.fn[f].noConflict=function(){return r.fn[f]=l,u._jQueryInterface},u}(jQuery),function(n){var f="button",l="4.0.0-alpha.6",o="bs.button",s="."+o,h=".data-api",a=n.fn[f],r={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},c={CLICK_DATA_API:"click"+s+h,FOCUS_BLUR_DATA_API:"focus"+s+h+" "+("blur"+s+h)},e=function(){function f(n){t(this,f);this._element=n}return f.prototype.toggle=function(){var i=!0,e=n(this._element).closest(u.DATA_TOGGLE)[0],t,f;e&&(t=n(this._element).find(u.INPUT)[0],t&&("radio"===t.type&&(t.checked&&n(this._element).hasClass(r.ACTIVE)?i=!1:(f=n(e).find(u.ACTIVE)[0],f&&n(f).removeClass(r.ACTIVE))),i&&(t.checked=!n(this._element).hasClass(r.ACTIVE),n(t).trigger("change")),t.focus()));this._element.setAttribute("aria-pressed",!n(this._element).hasClass(r.ACTIVE));i&&n(this._element).toggleClass(r.ACTIVE)},f.prototype.dispose=function(){n.removeData(this._element,o);this._element=null},f._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(o);i||(i=new f(this),n(this).data(o,i));"toggle"===t&&i[t]()})},i(f,null,[{key:"VERSION",get:function(){return l}}]),f}();return n(document).on(c.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var i=t.target;n(i).hasClass(r.BUTTON)||(i=n(i).closest(u.BUTTON));e._jQueryInterface.call(n(i),"toggle")}).on(c.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(t){var i=n(t.target).closest(u.BUTTON)[0];n(i).toggleClass(r.FOCUS,/^focus(in)?$/.test(t.type))}),n.fn[f]=e._jQueryInterface,n.fn[f].Constructor=e,n.fn[f].noConflict=function(){return n.fn[f]=a,e._jQueryInterface},e}(jQuery),function(u){var c="carousel",p="4.0.0-alpha.6",a="bs.carousel",o="."+a,y=".data-api",w=u.fn[c],b=600,k=37,d=39,v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},g={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},e={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},s={SLIDE:"slide"+o,SLID:"slid"+o,KEYDOWN:"keydown"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o,LOAD_DATA_API:"load"+o+y,CLICK_DATA_API:"click"+o+y},f={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},h={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},l=function(){function l(n,i){t(this,l);this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this._config=this._getConfig(i);this._element=u(n)[0];this._indicatorsElement=u(this._element).find(h.INDICATORS)[0];this._addEventListeners()}return l.prototype.next=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(e.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(e.PREVIOUS)},l.prototype.pause=function(t){t||(this._isPaused=!0);u(this._element).find(h.NEXT_PREV)[0]&&n.supportsTransitionEnd()&&(n.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},l.prototype.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.prototype.to=function(n){var r=this,t,i;if(this._activeElement=u(this._element).find(h.ACTIVE_ITEM)[0],t=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0)){if(this._isSliding)return void u(this._element).one(s.SLID,function(){return r.to(n)});if(t===n)return this.pause(),void this.cycle();i=n>t?e.NEXT:e.PREVIOUS;this._slide(i,this._items[n])}},l.prototype.dispose=function(){u(this._element).off(o);u.removeData(this._element,a);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},l.prototype._getConfig=function(t){return t=u.extend({},v,t),n.typeCheckConfig(c,t,g),t},l.prototype._addEventListeners=function(){var n=this;this._config.keyboard&&u(this._element).on(s.KEYDOWN,function(t){return n._keydown(t)});"hover"!==this._config.pause||"ontouchstart"in document.documentElement||u(this._element).on(s.MOUSEENTER,function(t){return n.pause(t)}).on(s.MOUSELEAVE,function(t){return n.cycle(t)})},l.prototype._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case k:n.preventDefault();this.prev();break;case d:n.preventDefault();this.next();break;default:return}},l.prototype._getItemIndex=function(n){return this._items=u.makeArray(u(n).parent().find(h.ITEM)),this._items.indexOf(n)},l.prototype._getItemByDirection=function(n,t){var f=n===e.NEXT,o=n===e.PREVIOUS,i=this._getItemIndex(t),s=this._items.length-1,h=o&&0===i||f&&i===s,u,r;return h&&!this._config.wrap?t:(u=n===e.PREVIOUS?-1:1,r=(i+u)%this._items.length,r===-1?this._items[this._items.length-1]:this._items[r])},l.prototype._triggerSlideEvent=function(n,t){var i=u.Event(s.SLIDE,{relatedTarget:n,direction:t});return u(this._element).trigger(i),i},l.prototype._setActiveIndicatorElement=function(n){if(this._indicatorsElement){u(this._indicatorsElement).find(h.ACTIVE).removeClass(f.ACTIVE);var t=this._indicatorsElement.children[this._getItemIndex(n)];t&&u(t).addClass(f.ACTIVE)}},l.prototype._slide=function(t,i){var y=this,o=u(this._element).find(h.ACTIVE_ITEM)[0],r=i||o&&this._getItemByDirection(t,o),p=Boolean(this._interval),c=void 0,l=void 0,a=void 0,w,v;if(t===e.NEXT?(c=f.LEFT,l=f.NEXT,a=e.LEFT):(c=f.RIGHT,l=f.PREV,a=e.RIGHT),r&&u(r).hasClass(f.ACTIVE))return void(this._isSliding=!1);w=this._triggerSlideEvent(r,a);!w.isDefaultPrevented()&&o&&r&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(r),v=u.Event(s.SLID,{relatedTarget:r,direction:a}),n.supportsTransitionEnd()&&u(this._element).hasClass(f.SLIDE)?(u(r).addClass(l),n.reflow(r),u(o).addClass(c),u(r).addClass(c),u(o).one(n.TRANSITION_END,function(){u(r).removeClass(c+" "+l).addClass(f.ACTIVE);u(o).removeClass(f.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return u(y._element).trigger(v)},0)}).emulateTransitionEnd(b)):(u(o).removeClass(f.ACTIVE),u(r).addClass(f.ACTIVE),this._isSliding=!1,u(this._element).trigger(v)),p&&this.cycle())},l._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(a),f=u.extend({},v,u(this).data()),i;if("object"===("undefined"==typeof n?"undefined":r(n))&&u.extend(f,n),i="string"==typeof n?n:f.slide,t||(t=new l(this,f),u(this).data(a,t)),"number"==typeof n)t.to(n);else if("string"==typeof i){if(void 0===t[i])throw new Error('No method named "'+i+'"');t[i]()}else f.interval&&(t.pause(),t.cycle())})},l._dataApiClickHandler=function(t){var o=n.getSelectorFromElement(this),i,e,r;o&&(i=u(o)[0],i&&u(i).hasClass(f.CAROUSEL)&&(e=u.extend({},u(i).data(),u(this).data()),r=this.getAttribute("data-slide-to"),r&&(e.interval=!1),l._jQueryInterface.call(u(i),e),r&&u(i).data(a).to(r),t.preventDefault()))},i(l,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return v}}]),l}();return u(document).on(s.CLICK_DATA_API,h.DATA_SLIDE,l._dataApiClickHandler),u(window).on(s.LOAD_DATA_API,function(){u(h.DATA_RIDE).each(function(){var n=u(this);l._jQueryInterface.call(n,n.data())})}),u.fn[c]=l._jQueryInterface,u.fn[c].Constructor=l,u.fn[c].noConflict=function(){return u.fn[c]=w,l._jQueryInterface},l}(jQuery),function(u){var o="collapse",p="4.0.0-alpha.6",e="bs.collapse",h="."+e,w=u.fn[o],v=600,a={toggle:!0,parent:""},b={toggle:"boolean",parent:"string"},c={SHOW:"show"+h,SHOWN:"shown"+h,HIDE:"hide"+h,HIDDEN:"hidden"+h,CLICK_DATA_API:"click"+h+".data-api"},f={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},l={WIDTH:"width",HEIGHT:"height"},y={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},s=function(){function s(n,i){t(this,s);this._isTransitioning=!1;this._element=n;this._config=this._getConfig(i);this._triggerArray=u.makeArray(u('[data-toggle="collapse"][href="#'+n.id+'"],'+('[data-toggle="collapse"][data-target="#'+n.id+'"]')));this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}return s.prototype.toggle=function(){u(this._element).hasClass(f.SHOW)?this.hide():this.show()},s.prototype.show=function(){var o=this,t,r,h,i,l,a,p;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!u(this._element).hasClass(f.SHOW)&&(t=void 0,r=void 0,(this._parent&&(t=u.makeArray(u(this._parent).find(y.ACTIVES)),t.length||(t=null)),!(t&&(r=u(t).data(e),r&&r._isTransitioning)))&&(h=u.Event(c.SHOW),u(this._element).trigger(h),!h.isDefaultPrevented()))){if(t&&(s._jQueryInterface.call(u(t),"hide"),r||u(t).data(e,null)),i=this._getDimension(),u(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[i]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&u(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),l=function(){u(o._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW);o._element.style[i]="";o.setTransitioning(!1);u(o._element).trigger(c.SHOWN)},!n.supportsTransitionEnd())return void l();a=i[0].toUpperCase()+i.slice(1);p="scroll"+a;u(this._element).one(n.TRANSITION_END,l).emulateTransitionEnd(v);this._element.style[i]=this._element[p]+"px"}},s.prototype.hide=function(){var e=this,i,t,o,r;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(u(this._element).hasClass(f.SHOW)&&(i=u.Event(c.HIDE),u(this._element).trigger(i),!i.isDefaultPrevented()))return t=this._getDimension(),o=t===l.WIDTH?"offsetWidth":"offsetHeight",this._element.style[t]=this._element[o]+"px",n.reflow(this._element),u(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&u(this._triggerArray).addClass(f.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0),r=function(){e.setTransitioning(!1);u(e._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(c.HIDDEN)},this._element.style[t]="",n.supportsTransitionEnd()?void u(this._element).one(n.TRANSITION_END,r).emulateTransitionEnd(v):void r()},s.prototype.setTransitioning=function(n){this._isTransitioning=n},s.prototype.dispose=function(){u.removeData(this._element,e);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},s.prototype._getConfig=function(t){return t=u.extend({},a,t),t.toggle=Boolean(t.toggle),n.typeCheckConfig(o,t,b),t},s.prototype._getDimension=function(){var n=u(this._element).hasClass(l.WIDTH);return n?l.WIDTH:l.HEIGHT},s.prototype._getParent=function(){var t=this,n=u(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return u(n).find(i).each(function(n,i){t._addAriaAndCollapsedClass(s._getTargetFromElement(i),[i])}),n},s.prototype._addAriaAndCollapsedClass=function(n,t){if(n){var i=u(n).hasClass(f.SHOW);n.setAttribute("aria-expanded",i);t.length&&u(t).toggleClass(f.COLLAPSED,!i).attr("aria-expanded",i)}},s._getTargetFromElement=function(t){var i=n.getSelectorFromElement(t);return i?u(i)[0]:null},s._jQueryInterface=function(n){return this.each(function(){var i=u(this),t=i.data(e),f=u.extend({},a,i.data(),"object"===("undefined"==typeof n?"undefined":r(n))&&n);if(!t&&f.toggle&&/show|hide/.test(n)&&(f.toggle=!1),t||(t=new s(this,f),i.data(e,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(s,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return a}}]),s}();return u(document).on(c.CLICK_DATA_API,y.DATA_TOGGLE,function(n){n.preventDefault();var t=s._getTargetFromElement(this),i=u(t).data(e),r=i?"toggle":u(this).data();s._jQueryInterface.call(u(t),r)}),u.fn[o]=s._jQueryInterface,u.fn[o].Constructor=s,u.fn[o].noConflict=function(){return u.fn[o]=w,s._jQueryInterface},s}(jQuery),function(r){var h="dropdown",v="4.0.0-alpha.6",c="bs.dropdown",e="."+c,l=".data-api",y=r.fn[h],a=27,p=38,w=40,b=3,u={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK:"click"+e,CLICK_DATA_API:"click"+e+l,FOCUSIN_DATA_API:"focusin"+e+l,KEYDOWN_DATA_API:"keydown"+e+l},s={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},f={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},o=function(){function o(n){t(this,o);this._element=n;this._addEventListeners()}return o.prototype.toggle=function(){var n,h,t,i,e;return this.disabled||r(this).hasClass(s.DISABLED)?!1:(n=o._getParentFromElement(this),h=r(n).hasClass(s.SHOW),o._clearMenus(),h)?!1:("ontouchstart"in document.documentElement&&!r(n).closest(f.NAVBAR_NAV).length&&(t=document.createElement("div"),t.className=s.BACKDROP,r(t).insertBefore(this),r(t).on("click",o._clearMenus)),i={relatedTarget:this},e=r.Event(u.SHOW,i),r(n).trigger(e),!e.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),r(n).toggleClass(s.SHOW),r(n).trigger(r.Event(u.SHOWN,i)),!1))},o.prototype.dispose=function(){r.removeData(this._element,c);r(this._element).off(e);this._element=null},o.prototype._addEventListeners=function(){r(this._element).on(u.CLICK,this.toggle)},o._jQueryInterface=function(n){return this.each(function(){var t=r(this).data(c);if(t||(t=new o(this),r(this).data(c,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n].call(this)}})},o._clearMenus=function(n){var h,i,t,e,c,l;if(!n||n.which!==b)for(h=r(f.BACKDROP)[0],h&&h.parentNode.removeChild(h),i=r.makeArray(r(f.DATA_TOGGLE)),t=0;t<i.length;t++)e=o._getParentFromElement(i[t]),c={relatedTarget:i[t]},!r(e).hasClass(s.SHOW)||n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"focusin"===n.type)&&r.contains(e,n.target)||(l=r.Event(u.HIDE,c),r(e).trigger(l),l.isDefaultPrevented()||(i[t].setAttribute("aria-expanded","false"),r(e).removeClass(s.SHOW).trigger(r.Event(u.HIDDEN,c))))},o._getParentFromElement=function(t){var i=void 0,u=n.getSelectorFromElement(t);return u&&(i=r(u)[0]),i||t.parentNode},o._dataApiKeydownHandler=function(n){var u,e,h,i,t;if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!r(this).hasClass(s.DISABLED))){if(u=o._getParentFromElement(this),e=r(u).hasClass(s.SHOW),!e&&n.which!==a||e&&n.which===a)return n.which===a&&(h=r(u).find(f.DATA_TOGGLE)[0],r(h).trigger("focus")),void r(this).trigger("click");i=r(u).find(f.VISIBLE_ITEMS).get();i.length&&(t=i.indexOf(n.target),n.which===p&&t>0&&t--,n.which===w&&t<i.length-1&&t++,t<0&&(t=0),i[t].focus())}},i(o,null,[{key:"VERSION",get:function(){return v}}]),o}();return r(document).on(u.KEYDOWN_DATA_API,f.DATA_TOGGLE,o._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,f.ROLE_MENU,o._dataApiKeydownHandler).on(u.KEYDOWN_DATA_API,f.ROLE_LISTBOX,o._dataApiKeydownHandler).on(u.CLICK_DATA_API+" "+u.FOCUSIN_DATA_API,o._clearMenus).on(u.CLICK_DATA_API,f.DATA_TOGGLE,o.prototype.toggle).on(u.CLICK_DATA_API,f.FORM_CHILD,function(n){n.stopPropagation()}),r.fn[h]=o._jQueryInterface,r.fn[h].Constructor=o,r.fn[h].noConflict=function(){return r.fn[h]=y,o._jQueryInterface},o}(jQuery),function(u){var s="modal",p="4.0.0-alpha.6",h="bs.modal",o="."+h,w=u.fn[s],a=300,v=150,b=27,y={backdrop:!0,keyboard:!0,focus:!0,show:!0},k={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},f={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,FOCUSIN:"focusin"+o,RESIZE:"resize"+o,CLICK_DISMISS:"click.dismiss"+o,KEYDOWN_DISMISS:"keydown.dismiss"+o,MOUSEUP_DISMISS:"mouseup.dismiss"+o,MOUSEDOWN_DISMISS:"mousedown.dismiss"+o,CLICK_DATA_API:"click"+o+".data-api"},e={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},l={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"},c=function(){function c(n,i){t(this,c);this._config=this._getConfig(i);this._element=n;this._dialog=u(n).find(l.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1;this._originalBodyPadding=0;this._scrollbarWidth=0}return c.prototype.toggle=function(n){return this._isShown?this.hide():this.show(n)},c.prototype.show=function(t){var i=this,r;if(this._isTransitioning)throw new Error("Modal is transitioning");n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE)&&(this._isTransitioning=!0);r=u.Event(f.SHOW,{relatedTarget:t});u(this._element).trigger(r);this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),u(document.body).addClass(e.OPEN),this._setEscapeEvent(),this._setResizeEvent(),u(this._element).on(f.CLICK_DISMISS,l.DATA_DISMISS,function(n){return i.hide(n)}),u(this._dialog).on(f.MOUSEDOWN_DISMISS,function(){u(i._element).one(f.MOUSEUP_DISMISS,function(n){u(n.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(t)}))},c.prototype.hide=function(t){var o=this,i,r;if(t&&t.preventDefault(),this._isTransitioning)throw new Error("Modal is transitioning");i=n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE);i&&(this._isTransitioning=!0);r=u.Event(f.HIDE);u(this._element).trigger(r);this._isShown&&!r.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),u(document).off(f.FOCUSIN),u(this._element).removeClass(e.SHOW),u(this._element).off(f.CLICK_DISMISS),u(this._dialog).off(f.MOUSEDOWN_DISMISS),i?u(this._element).one(n.TRANSITION_END,function(n){return o._hideModal(n)}).emulateTransitionEnd(a):this._hideModal())},c.prototype.dispose=function(){u.removeData(this._element,h);u(window,document,this._element,this._backdrop).off(o);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._originalBodyPadding=null;this._scrollbarWidth=null},c.prototype._getConfig=function(t){return t=u.extend({},y,t),n.typeCheckConfig(s,t,k),t},c.prototype._showElement=function(t){var i=this,o=n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE),s,r;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&n.reflow(this._element);u(this._element).addClass(e.SHOW);this._config.focus&&this._enforceFocus();s=u.Event(f.SHOWN,{relatedTarget:t});r=function(){i._config.focus&&i._element.focus();i._isTransitioning=!1;u(i._element).trigger(s)};o?u(this._dialog).one(n.TRANSITION_END,r).emulateTransitionEnd(a):r()},c.prototype._enforceFocus=function(){var n=this;u(document).off(f.FOCUSIN).on(f.FOCUSIN,function(t){document===t.target||n._element===t.target||u(n._element).has(t.target).length||n._element.focus()})},c.prototype._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?u(this._element).on(f.KEYDOWN_DISMISS,function(t){t.which===b&&n.hide()}):this._isShown||u(this._element).off(f.KEYDOWN_DISMISS)},c.prototype._setResizeEvent=function(){var n=this;this._isShown?u(window).on(f.RESIZE,function(t){return n._handleUpdate(t)}):u(window).off(f.RESIZE)},c.prototype._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden","true");this._isTransitioning=!1;this._showBackdrop(function(){u(document.body).removeClass(e.OPEN);n._resetAdjustments();n._resetScrollbar();u(n._element).trigger(f.HIDDEN)})},c.prototype._removeBackdrop=function(){this._backdrop&&(u(this._backdrop).remove(),this._backdrop=null)},c.prototype._showBackdrop=function(t){var i=this,r=u(this._element).hasClass(e.FADE)?e.FADE:"",o,s;if(this._isShown&&this._config.backdrop){if(o=n.supportsTransitionEnd()&&r,this._backdrop=document.createElement("div"),this._backdrop.className=e.BACKDROP,r&&u(this._backdrop).addClass(r),u(this._backdrop).appendTo(document.body),u(this._element).on(f.CLICK_DISMISS,function(n){return i._ignoreBackdropClick?void(i._ignoreBackdropClick=!1):void(n.target===n.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide()))}),o&&n.reflow(this._backdrop),u(this._backdrop).addClass(e.SHOW),!t)return;if(!o)return void t();u(this._backdrop).one(n.TRANSITION_END,t).emulateTransitionEnd(v)}else!this._isShown&&this._backdrop?(u(this._backdrop).removeClass(e.SHOW),s=function(){i._removeBackdrop();t&&t()},n.supportsTransitionEnd()&&u(this._element).hasClass(e.FADE)?u(this._backdrop).one(n.TRANSITION_END,s).emulateTransitionEnd(v):s()):t&&t()},c.prototype._handleUpdate=function(){this._adjustDialog()},c.prototype._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},c.prototype._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},c.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},c.prototype._setScrollbar=function(){var n=parseInt(u(l.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"";this._isBodyOverflowing&&(document.body.style.paddingRight=n+this._scrollbarWidth+"px")},c.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},c.prototype._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=e.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.offsetWidth-n.clientWidth,document.body.removeChild(n),t},c._jQueryInterface=function(n,t){return this.each(function(){var i=u(this).data(h),f=u.extend({},c.Default,u(this).data(),"object"===("undefined"==typeof n?"undefined":r(n))&&n);if(i||(i=new c(this,f),u(this).data(h,i)),"string"==typeof n){if(void 0===i[n])throw new Error('No method named "'+n+'"');i[n](t)}else f.show&&i.show(t)})},i(c,null,[{key:"VERSION",get:function(){return p}},{key:"Default",get:function(){return y}}]),c}();return u(document).on(f.CLICK_DATA_API,l.DATA_TOGGLE,function(t){var r=this,i=void 0,e=n.getSelectorFromElement(this),o,s;e&&(i=u(e)[0]);o=u(i).data(h)?"toggle":u.extend({},u(i).data(),u(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();s=u(i).one(f.SHOW,function(n){n.isDefaultPrevented()||s.one(f.HIDDEN,function(){u(r).is(":visible")&&r.focus()})});c._jQueryInterface.call(u(i),o,this)}),u.fn[s]=c._jQueryInterface,u.fn[s].Constructor=c,u.fn[s].noConflict=function(){return u.fn[s]=w,c._jQueryInterface},c}(jQuery),function(u){var e="scrollspy",y="4.0.0-alpha.6",h="bs.scrollspy",c="."+h,p=u.fn[e],v={offset:10,method:"auto",target:""},w={offset:"number",method:"string",target:"(string|element)"},l={ACTIVATE:"activate"+c,SCROLL:"scroll"+c,LOAD_DATA_API:"load"+c+".data-api"},o={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},a={OFFSET:"offset",POSITION:"position"},s=function(){function s(n,i){var r=this;t(this,s);this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(i);this._selector=this._config.target+" "+f.NAV_LINKS+","+(this._config.target+" "+f.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;u(this._scrollElement).on(l.SCROLL,function(n){return r._process(n)});this.refresh();this._process()}return s.prototype.refresh=function(){var t=this,f=this._scrollElement!==this._scrollElement.window?a.POSITION:a.OFFSET,i="auto"===this._config.method?f:this._config.method,e=i===a.POSITION?this._getScrollTop():0,r;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();r=u.makeArray(u(this._selector));r.map(function(t){var r=void 0,f=n.getSelectorFromElement(t);return f&&(r=u(f)[0]),r&&(r.offsetWidth||r.offsetHeight)?[u(r)[i]().top+e,f]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(n){t._offsets.push(n[0]);t._targets.push(n[1])})},s.prototype.dispose=function(){u.removeData(this._element,h);u(this._scrollElement).off(c);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},s.prototype._getConfig=function(t){if(t=u.extend({},v,t),"string"!=typeof t.target){var i=u(t.target).attr("id");i||(i=n.getUID(e),u(t.target).attr("id",i));t.target="#"+i}return n.typeCheckConfig(e,t,w),t},s.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},s.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},s.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.offsetHeight},s.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),f=this._config.offset+r-this._getOffsetHeight(),i,n,u;if(this._scrollHeight!==r&&this.refresh(),t>=f)return i=this._targets[this._targets.length-1],void(this._activeTarget!==i&&this._activate(i));if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)u=this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(void 0===this._offsets[n+1]||t<this._offsets[n+1]),u&&this._activate(this._targets[n])},s.prototype._activate=function(n){var i,t;this._activeTarget=n;this._clear();i=this._selector.split(",");i=i.map(function(t){return t+'[data-target="'+n+'"],'+(t+'[href="'+n+'"]')});t=u(i.join(","));t.hasClass(o.DROPDOWN_ITEM)?(t.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(o.ACTIVE),t.addClass(o.ACTIVE)):t.parents(f.LI).find("> "+f.NAV_LINKS).addClass(o.ACTIVE);u(this._scrollElement).trigger(l.ACTIVATE,{relatedTarget:n})},s.prototype._clear=function(){u(this._selector).filter(f.ACTIVE).removeClass(o.ACTIVE)},s._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(h),i="object"===("undefined"==typeof n?"undefined":r(n))&&n;if(t||(t=new s(this,i),u(this).data(h,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(s,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return v}}]),s}();return u(window).on(l.LOAD_DATA_API,function(){for(var i,n=u.makeArray(u(f.DATA_SPY)),t=n.length;t--;)i=u(n[t]),s._jQueryInterface.call(i,i.data())}),u.fn[e]=s._jQueryInterface,u.fn[e].Constructor=s,u.fn[e].noConflict=function(){return u.fn[e]=p,s._jQueryInterface},s}(jQuery),function(r){var e="tab",l="4.0.0-alpha.6",c="bs.tab",o="."+c,a=r.fn[e],v=150,s={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK_DATA_API:"click"+o+".data-api"},u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},f={A:"a",LI:"li",DROPDOWN:".dropdown",LIST:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},h=function(){function e(n){t(this,e);this._element=n}return e.prototype.show=function(){var l=this,o,h,c;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r(this._element).hasClass(u.ACTIVE)||r(this._element).hasClass(u.DISABLED))){var i=void 0,t=void 0,e=r(this._element).closest(f.LIST)[0],a=n.getSelectorFromElement(this._element);e&&(t=r.makeArray(r(e).find(f.ACTIVE)),t=t[t.length-1]);o=r.Event(s.HIDE,{relatedTarget:this._element});h=r.Event(s.SHOW,{relatedTarget:t});(t&&r(t).trigger(o),r(this._element).trigger(h),h.isDefaultPrevented()||o.isDefaultPrevented())||(a&&(i=r(a)[0]),this._activate(this._element,e),c=function(){var n=r.Event(s.HIDDEN,{relatedTarget:l._element}),i=r.Event(s.SHOWN,{relatedTarget:t});r(t).trigger(n);r(l._element).trigger(i)},i?this._activate(i,i.parentNode,c):c())}},e.prototype.dispose=function(){r.removeClass(this._element,c);this._element=null},e.prototype._activate=function(t,i,e){var c=this,o=r(i).find(f.ACTIVE_CHILD)[0],s=e&&n.supportsTransitionEnd()&&(o&&r(o).hasClass(u.FADE)||Boolean(r(i).find(f.FADE_CHILD)[0])),h=function(){return c._transitionComplete(t,o,s,e)};o&&s?r(o).one(n.TRANSITION_END,h).emulateTransitionEnd(v):h();o&&r(o).removeClass(u.SHOW)},e.prototype._transitionComplete=function(t,i,e,o){var s,h;i&&(r(i).removeClass(u.ACTIVE),s=r(i.parentNode).find(f.DROPDOWN_ACTIVE_CHILD)[0],s&&r(s).removeClass(u.ACTIVE),i.setAttribute("aria-expanded",!1));(r(t).addClass(u.ACTIVE),t.setAttribute("aria-expanded",!0),e?(n.reflow(t),r(t).addClass(u.SHOW)):r(t).removeClass(u.FADE),t.parentNode&&r(t.parentNode).hasClass(u.DROPDOWN_MENU))&&(h=r(t).closest(f.DROPDOWN)[0],h&&r(h).find(f.DROPDOWN_TOGGLE).addClass(u.ACTIVE),t.setAttribute("aria-expanded",!0));o&&o()},e._jQueryInterface=function(n){return this.each(function(){var i=r(this),t=i.data(c);if(t||(t=new e(this),i.data(c,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(e,null,[{key:"VERSION",get:function(){return l}}]),e}();return r(document).on(s.CLICK_DATA_API,f.DATA_TOGGLE,function(n){n.preventDefault();h._jQueryInterface.call(r(this),"show")}),r.fn[e]=h._jQueryInterface,r.fn[e].Constructor=h,r.fn[e].noConflict=function(){return r.fn[e]=a,h._jQueryInterface},h}(jQuery),function(u){if("undefined"==typeof Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var h="tooltip",a="4.0.0-alpha.6",c="bs.tooltip",f="."+c,v=u.fn[h],y=150,p="bs-tether",w={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},b={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array",container:"(string|element|boolean)"},k={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},s={SHOW:"show",OUT:"out"},d={HIDE:"hide"+f,HIDDEN:"hidden"+f,SHOW:"show"+f,SHOWN:"shown"+f,INSERTED:"inserted"+f,CLICK:"click"+f,FOCUSIN:"focusin"+f,FOCUSOUT:"focusout"+f,MOUSEENTER:"mouseenter"+f,MOUSELEAVE:"mouseleave"+f},o={FADE:"fade",SHOW:"show"},g={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},nt={element:!1,enabled:!1},e={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},l=function(){function l(n,i){t(this,l);this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._isTransitioning=!1;this._tether=null;this.element=n;this.config=this._getConfig(i);this.tip=null;this._setListeners()}return l.prototype.enable=function(){this._isEnabled=!0},l.prototype.disable=function(){this._isEnabled=!1},l.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.prototype.toggle=function(n){if(n){var i=this.constructor.DATA_KEY,t=u(n.currentTarget).data(i);t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));t._activeTrigger.click=!t._activeTrigger.click;t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(u(this.getTipElement()).hasClass(o.SHOW))return void this._leave(null,this);this._enter(null,this)}},l.prototype.dispose=function(){clearTimeout(this._timeout);this.cleanupTether();u.removeData(this.element,this.constructor.DATA_KEY);u(this.element).off(this.constructor.EVENT_KEY);u(this.element).closest(".modal").off("hide.bs.modal");this.tip&&u(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._tether=null;this.element=null;this.config=null;this.tip=null},l.prototype.show=function(){var i=this,r,h,t,f,e;if("none"===u(this.element).css("display"))throw new Error("Please use show on visible elements");if(r=u.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");if(u(this.element).trigger(r),h=u.contains(this.element.ownerDocument.documentElement,this.element),r.isDefaultPrevented()||!h)return;t=this.getTipElement();f=n.getUID(this.constructor.NAME);t.setAttribute("id",f);this.element.setAttribute("aria-describedby",f);this.setContent();this.config.animation&&u(t).addClass(o.FADE);var c="function"==typeof this.config.placement?this.config.placement.call(this,t,this.element):this.config.placement,a=this._getAttachment(c),v=this.config.container===!1?document.body:u(this.config.container);if(u(t).data(this.constructor.DATA_KEY,this).appendTo(v),u(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:a,element:t,target:this.element,classes:nt,classPrefix:p,offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),n.reflow(t),this._tether.position(),u(t).addClass(o.SHOW),e=function(){var n=i._hoverState;i._hoverState=null;i._isTransitioning=!1;u(i.element).trigger(i.constructor.Event.SHOWN);n===s.OUT&&i._leave(null,i)},n.supportsTransitionEnd()&&u(this.tip).hasClass(o.FADE))return this._isTransitioning=!0,void u(this.tip).one(n.TRANSITION_END,e).emulateTransitionEnd(l._TRANSITION_DURATION);e()}},l.prototype.hide=function(t){var i=this,r=this.getTipElement(),h=u.Event(this.constructor.Event.HIDE),f;if(this._isTransitioning)throw new Error("Tooltip is transitioning");f=function(){i._hoverState!==s.SHOW&&r.parentNode&&r.parentNode.removeChild(r);i.element.removeAttribute("aria-describedby");u(i.element).trigger(i.constructor.Event.HIDDEN);i._isTransitioning=!1;i.cleanupTether();t&&t()};u(this.element).trigger(h);h.isDefaultPrevented()||(u(r).removeClass(o.SHOW),this._activeTrigger[e.CLICK]=!1,this._activeTrigger[e.FOCUS]=!1,this._activeTrigger[e.HOVER]=!1,n.supportsTransitionEnd()&&u(this.tip).hasClass(o.FADE)?(this._isTransitioning=!0,u(r).one(n.TRANSITION_END,f).emulateTransitionEnd(y)):f(),this._hoverState="")},l.prototype.isWithContent=function(){return Boolean(this.getTitle())},l.prototype.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0]},l.prototype.setContent=function(){var n=u(this.getTipElement());this.setElementContent(n.find(g.TOOLTIP_INNER),this.getTitle());n.removeClass(o.FADE+" "+o.SHOW);this.cleanupTether()},l.prototype.setElementContent=function(n,t){var i=this.config.html;"object"===("undefined"==typeof t?"undefined":r(t))&&(t.nodeType||t.jquery)?i?u(t).parent().is(n)||n.empty().append(t):n.text(u(t).text()):n[i?"html":"text"](t)},l.prototype.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},l.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},l.prototype._getAttachment=function(n){return k[n.toUpperCase()]},l.prototype._setListeners=function(){var n=this,t=this.config.trigger.split(" ");t.forEach(function(t){if("click"===t)u(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==e.MANUAL){var i=t===e.HOVER?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,r=t===e.HOVER?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;u(n.element).on(i,n.config.selector,function(t){return n._enter(t)}).on(r,n.config.selector,function(t){return n._leave(t)})}u(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=u.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l.prototype._fixTitle=function(){var n=r(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l.prototype._enter=function(n,t){var i=this.constructor.DATA_KEY;return t=t||u(n.currentTarget).data(i),t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t)),n&&(t._activeTrigger["focusin"===n.type?e.FOCUS:e.HOVER]=!0),u(t.getTipElement()).hasClass(o.SHOW)||t._hoverState===s.SHOW?void(t._hoverState=s.SHOW):(clearTimeout(t._timeout),t._hoverState=s.SHOW,t.config.delay&&t.config.delay.show?void(t._timeout=setTimeout(function(){t._hoverState===s.SHOW&&t.show()},t.config.delay.show)):void t.show())},l.prototype._leave=function(n,t){var i=this.constructor.DATA_KEY;if(t=t||u(n.currentTarget).data(i),t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t)),n&&(t._activeTrigger["focusout"===n.type?e.FOCUS:e.HOVER]=!1),!t._isWithActiveTrigger())return clearTimeout(t._timeout),t._hoverState=s.OUT,t.config.delay&&t.config.delay.hide?void(t._timeout=setTimeout(function(){t._hoverState===s.OUT&&t.hide()},t.config.delay.hide)):void t.hide()},l.prototype._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},l.prototype._getConfig=function(t){return t=u.extend({},this.constructor.Default,u(this.element).data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),n.typeCheckConfig(h,t,this.constructor.DefaultType),t},l.prototype._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},l._jQueryInterface=function(n){return this.each(function(){var t=u(this).data(c),i="object"===("undefined"==typeof n?"undefined":r(n))&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new l(this,i),u(this).data(c,t)),"string"==typeof n)){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},i(l,null,[{key:"VERSION",get:function(){return a}},{key:"Default",get:function(){return w}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return c}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return f}},{key:"DefaultType",get:function(){return b}}]),l}();return u.fn[h]=l._jQueryInterface,u.fn[h].Constructor=l,u.fn[h].noConflict=function(){return u.fn[h]=v,l._jQueryInterface},l}(jQuery));(function(n){var s="popover",v="4.0.0-alpha.6",h="bs.popover",o="."+h,y=n.fn[s],p=n.extend({},u.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'}),w=n.extend({},u.DefaultType,{content:"(string|element|function)"}),l={FADE:"fade",SHOW:"show"},a={TITLE:".popover-title",CONTENT:".popover-content"},b={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},c=function(u){function c(){return t(this,c),f(this,u.apply(this,arguments))}return e(c,u),c.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},c.prototype.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0]},c.prototype.setContent=function(){var t=n(this.getTipElement());this.setElementContent(t.find(a.TITLE),this.getTitle());this.setElementContent(t.find(a.CONTENT),this._getContent());t.removeClass(l.FADE+" "+l.SHOW);this.cleanupTether()},c.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},c._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(h),u="object"===("undefined"==typeof t?"undefined":r(t))?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new c(this,u),n(this).data(h,i)),"string"==typeof t)){if(void 0===i[t])throw new Error('No method named "'+t+'"');i[t]()}})},i(c,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return s}},{key:"DATA_KEY",get:function(){return h}},{key:"Event",get:function(){return b}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return w}}]),c}(u);return n.fn[s]=c._jQueryInterface,n.fn[s].Constructor=c,n.fn[s].noConflict=function(){return n.fn[s]=y,c._jQueryInterface},c})(jQuery)}();!function(n,t){"function"==typeof define&&define.amd?define(function(){return t(n)}):"object"==typeof exports?module.exports=t:n.echo=t(n)}(this,function(n){"use strict";var r,u,o,s,f,t={},e=function(){},h=function(n){return null===n.offsetParent},c=function(n,t){if(h(n))return!1;var i=n.getBoundingClientRect();return i.right>=t.l&&i.bottom>=t.t&&i.left<=t.r&&i.top<=t.b},i=function(){(s||!u)&&(clearTimeout(u),u=setTimeout(function(){t.render();u=null},o))};return t.init=function(u){u=u||{};var c=u.offset||0,l=u.offsetVertical||c,a=u.offsetHorizontal||c,h=function(n,t){return parseInt(n||t,10)};r={t:h(u.offsetTop,l),b:h(u.offsetBottom,l),l:h(u.offsetLeft,a),r:h(u.offsetRight,a)};o=h(u.throttle,250);s=u.debounce!==!1;f=!!u.unload;e=u.callback||e;t.render();document.addEventListener?(n.addEventListener("scroll",i,!1),n.addEventListener("load",i,!1)):(n.attachEvent("onscroll",i),n.attachEvent("onload",i))},t.render=function(i){for(var o,u,h=(i||document).querySelectorAll("[data-echo], [data-echo-background]"),l=h.length,a={l:0-r.l,t:0-r.t,b:(n.innerHeight||document.documentElement.clientHeight)+r.b,r:(n.innerWidth||document.documentElement.clientWidth)+r.r},s=0;l>s;s++)u=h[s],c(u,a)?(f&&u.setAttribute("data-echo-placeholder",u.src),null!==u.getAttribute("data-echo-background")?u.style.backgroundImage="url("+u.getAttribute("data-echo-background")+")":u.src!==(o=u.getAttribute("data-echo"))&&(u.src=o),f||(u.removeAttribute("data-echo"),u.removeAttribute("data-echo-background")),e(u,"load")):f&&(o=u.getAttribute("data-echo-placeholder"))&&(null!==u.getAttribute("data-echo-background")?u.style.backgroundImage="url("+o+")":u.src=o,u.removeAttribute("data-echo-placeholder"),e(u,"unload"));l||t.detach()},t.detach=function(){document.removeEventListener?n.removeEventListener("scroll",i):n.detachEvent("onscroll",i);clearTimeout(u)},t}),function(){(function(n){var r=this||eval("this"),t=r.document,f=r.navigator,i=r.jQuery,u=r.JSON;(function(n){"function"==typeof define&&define.amd?define(["exports","require"],n):"object"==typeof exports&&"object"==typeof module?n(module.exports||exports):n(r.ko={})})(function(e,o){function b(n,t){return null===n||typeof n in nt?n===t:!1}function tt(t,i){var r;return function(){r||(r=s.a.setTimeout(function(){r=n;t()},i))}}function it(n,t){var i;return function(){clearTimeout(i);i=s.a.setTimeout(n,t)}}function rt(n,t){t&&t!==v?"beforeChange"===t?this.Ob(n):this.Ja(n,t):this.Pb(n)}function ut(n,t){null!==t&&t.k&&t.k()}function ft(n,t){var i=this.Mc,r=i[h];r.T||(this.ob&&this.Oa[t]?(i.Sb(t,n,this.Oa[t]),this.Oa[t]=null,--this.ob):r.s[t]||i.Sb(t,n,r.t?{$:n}:i.yc(n)),n.Ha&&n.Hc())}function k(n,t,i,r){s.d[n]={init:function(n,u,f,e,o){var c,h;return s.m(function(){var l=u(),f=s.a.c(l),f=!i!=!f,e=!h;(e||t||f!==c)&&(e&&s.xa.Ca()&&(h=s.a.wa(s.f.childNodes(n),!0)),f?(e||s.f.fa(n,s.a.wa(h)),s.hb(r?r(o,l):o,n)):s.f.za(n),c=f)},null,{i:n}),{controlsDescendantBindings:!0}}};s.h.va[n]=!1;s.f.aa[n]=!0}var s="undefined"!=typeof e?e:{},nt,v,l,y,a,p,h,d,g,w;s.b=function(n,t){for(var i=n.split("."),r=s,u=0;u<i.length-1;u++)r=r[i[u]];r[i[i.length-1]]=t};s.H=function(n,t,i){n[t]=i};s.version="3.4.2";s.b("version",s.version);s.options={deferUpdates:!1,useOnlyNativeEvents:!1};s.a=function(){function o(n,t){for(var i in n)n.hasOwnProperty(i)&&t(i,n[i])}function l(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function a(n,t){return n.__proto__=t,n}function v(n,t,i,r){var u=n[t].match(c)||[];s.a.r(i.match(c),function(n){s.a.ra(u,n,r)});n[t]=u.join(" ")}var y={__proto__:[]}instanceof Array,w="function"==typeof Symbol,h={},p={};h[f&&/Firefox\/2/i.test(f.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"];h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" ");o(h,function(n,t){if(t.length)for(var i=0,r=t.length;i<r;i++)p[t[i]]=n});var b={propertychange:!0},e=t&&function(){for(var i=3,r=t.createElement("div"),u=r.getElementsByTagName("i");r.innerHTML="<!--[if gt IE "+ ++i+"]><i><\/i><![endif]-->",u[0];);return 4<i?i:n}(),c=/\S+/g;return{gc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],r:function(n,t){for(var i=0,r=n.length;i<r;i++)t(n[i],i)},o:function(n,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(n,t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},Vb:function(n,t,i){for(var r=0,u=n.length;r<u;r++)if(t.call(i,n[r],r))return n[r];return null},Na:function(n,t){var i=s.a.o(n,t);0<i?n.splice(i,1):0===i&&n.shift()},Wb:function(n){n=n||[];for(var i=[],t=0,r=n.length;t<r;t++)0>s.a.o(i,n[t])&&i.push(n[t]);return i},ib:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)r.push(t(n[i],i));return r},Ma:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)t(n[i],i)&&r.push(n[i]);return r},ta:function(n,t){if(t instanceof Array)n.push.apply(n,t);else for(var i=0,r=t.length;i<r;i++)n.push(t[i]);return n},ra:function(n,t,i){var r=s.a.o(s.a.Bb(n),t);0>r?i&&n.push(t):i||n.splice(r,1)},la:y,extend:l,$a:a,ab:y?a:l,D:o,Ea:function(n,t){if(!n)return n;var r={},i;for(i in n)n.hasOwnProperty(i)&&(r[i]=t(n[i],i,n));return r},rb:function(n){for(;n.firstChild;)s.removeNode(n.firstChild)},nc:function(n){n=s.a.W(n);for(var r=(n[0]&&n[0].ownerDocument||t).createElement("div"),i=0,u=n.length;i<u;i++)r.appendChild(s.ba(n[i]));return r},wa:function(n,t){for(var r,i=0,f=n.length,u=[];i<f;i++)r=n[i].cloneNode(!0),u.push(t?s.ba(r):r);return u},fa:function(n,t){if(s.a.rb(n),t)for(var i=0,r=t.length;i<r;i++)n.appendChild(t[i])},uc:function(n,t){var r=n.nodeType?[n]:n;if(0<r.length){for(var f=r[0],e=f.parentNode,i=0,u=t.length;i<u;i++)e.insertBefore(t[i],f);for(i=0,u=r.length;i<u;i++)s.removeNode(r[i])}},Ba:function(n,t){if(n.length){for(t=8===t.nodeType&&t.parentNode||t;n.length&&n[0].parentNode!==t;)n.splice(0,1);for(;1<n.length&&n[n.length-1].parentNode!==t;)n.length--;if(1<n.length){var i=n[0],r=n[n.length-1];for(n.length=0;i!==r;)n.push(i),i=i.nextSibling;n.push(r)}}return n},wc:function(n,t){7>e?n.setAttribute("selected",t):n.selected=t},cb:function(t){return null===t||t===n?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},sd:function(n,t){return n=n||"",t.length>n.length?!1:n.substring(0,t.length)===t},Rc:function(n,t){if(n===t)return!0;if(11===n.nodeType)return!1;if(t.contains)return t.contains(3===n.nodeType?n.parentNode:n);if(t.compareDocumentPosition)return 16==(t.compareDocumentPosition(n)&16);for(;n&&n!=t;)n=n.parentNode;return!!n},qb:function(n){return s.a.Rc(n,n.ownerDocument.documentElement)},Tb:function(n){return!!s.a.Vb(n,s.a.qb)},A:function(n){return n&&n.tagName&&n.tagName.toLowerCase()},Zb:function(n){return s.onError?function(){try{return n.apply(this,arguments)}catch(t){throw s.onError&&s.onError(t),t;}}:n},setTimeout:function(n,t){return setTimeout(s.a.Zb(n),t)},dc:function(n){setTimeout(function(){s.onError&&s.onError(n);throw n;},0)},q:function(n,t,r){var u=s.a.Zb(r),f,o;if(r=e&&b[t],s.options.useOnlyNativeEvents||r||!i)if(r||"function"!=typeof n.addEventListener)if("undefined"!=typeof n.attachEvent)f=function(t){u.call(n,t)},o="on"+t,n.attachEvent(o,f),s.a.G.qa(n,function(){n.detachEvent(o,f)});else throw Error("Browser doesn't support addEventListener or attachEvent");else n.addEventListener(t,u,!1);else i(n).bind(t,u)},Fa:function(n,u){if(!n||!n.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var f;if("input"===s.a.A(n)&&n.type&&"click"==u.toLowerCase()?(f=n.type,f="checkbox"==f||"radio"==f):f=!1,s.options.useOnlyNativeEvents||!i||f)if("function"==typeof t.createEvent)if("function"==typeof n.dispatchEvent)f=t.createEvent(p[u]||"HTMLEvents"),f.initEvent(u,!0,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,n),n.dispatchEvent(f);else throw Error("The supplied element doesn't support dispatchEvent");else if(f&&n.click)n.click();else if("undefined"!=typeof n.fireEvent)n.fireEvent("on"+u);else throw Error("Browser doesn't support triggering events");else i(n).trigger(u)},c:function(n){return s.I(n)?n():n},Bb:function(n){return s.I(n)?n.p():n},fb:function(n,t,i){var r;t&&("object"==typeof n.classList?(r=n.classList[i?"add":"remove"],s.a.r(t.match(c),function(t){r.call(n.classList,t)})):"string"==typeof n.className.baseVal?v(n.className,"baseVal",t,i):v(n,"className",t,i))},bb:function(t,i){var r=s.a.c(i),u;(null===r||r===n)&&(r="");u=s.f.firstChild(t);!u||3!=u.nodeType||s.f.nextSibling(u)?s.f.fa(t,[t.ownerDocument.createTextNode(r)]):u.data=r;s.a.Wc(t)},vc:function(n,i){if(n.name=i,7>=e)try{n.mergeAttributes(t.createElement("<input name='"+n.name+"'/>"),!1)}catch(r){}},Wc:function(n){9<=e&&(n=1==n.nodeType?n:n.parentNode,n.style&&(n.style.zoom=n.style.zoom))},Sc:function(n){if(e){var t=n.style.width;n.style.width=0;n.style.width=t}},nd:function(n,t){n=s.a.c(n);t=s.a.c(t);for(var r=[],i=n;i<=t;i++)r.push(i);return r},W:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n[t]);return i},bc:function(n){return w?Symbol(n):n},xd:6===e,yd:7===e,C:e,ic:function(n,t){for(var r=s.a.W(n.getElementsByTagName("input")).concat(s.a.W(n.getElementsByTagName("textarea"))),f="string"==typeof t?function(n){return n.name===t}:function(n){return t.test(n.name)},u=[],i=r.length-1;0<=i;i--)f(r[i])&&u.push(r[i]);return u},kd:function(n){return"string"==typeof n&&(n=s.a.cb(n))?u&&u.parse?u.parse(n):new Function("return "+n)():null},Gb:function(n,t,i){if(!u||!u.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return u.stringify(s.a.c(n),t,i)},ld:function(n,i,r){var c,e,h,f,u,l;r=r||{};var a=r.params||{},v=r.includeFields||this.gc,c=n;if("object"==typeof n&&"form"===s.a.A(n))for(c=n.action,e=v.length-1;0<=e;e--)for(h=s.a.ic(n,v[e]),f=h.length-1;0<=f;f--)a[h[f].name]=h[f].value;i=s.a.c(i);u=t.createElement("form");u.style.display="none";u.action=c;u.method="post";for(l in i)n=t.createElement("input"),n.type="hidden",n.name=l,n.value=s.a.Gb(s.a.c(i[l])),u.appendChild(n);o(a,function(n,i){var r=t.createElement("input");r.type="hidden";r.name=n;r.value=i;u.appendChild(r)});t.body.appendChild(u);r.submitter?r.submitter(u):u.submit();setTimeout(function(){u.parentNode.removeChild(u)},0)}}}();s.b("utils",s.a);s.b("utils.arrayForEach",s.a.r);s.b("utils.arrayFirst",s.a.Vb);s.b("utils.arrayFilter",s.a.Ma);s.b("utils.arrayGetDistinctValues",s.a.Wb);s.b("utils.arrayIndexOf",s.a.o);s.b("utils.arrayMap",s.a.ib);s.b("utils.arrayPushAll",s.a.ta);s.b("utils.arrayRemoveItem",s.a.Na);s.b("utils.extend",s.a.extend);s.b("utils.fieldsIncludedWithJsonPost",s.a.gc);s.b("utils.getFormFields",s.a.ic);s.b("utils.peekObservable",s.a.Bb);s.b("utils.postJson",s.a.ld);s.b("utils.parseJson",s.a.kd);s.b("utils.registerEventHandler",s.a.q);s.b("utils.stringifyJson",s.a.Gb);s.b("utils.range",s.a.nd);s.b("utils.toggleDomNodeCssClass",s.a.fb);s.b("utils.triggerEvent",s.a.Fa);s.b("utils.unwrapObservable",s.a.c);s.b("utils.objectForEach",s.a.D);s.b("utils.addOrRemoveItem",s.a.ra);s.b("utils.setTextContent",s.a.bb);s.b("unwrap",s.a.c);Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i;return 1===arguments.length?function(){return t.apply(n,arguments)}:(i=Array.prototype.slice.call(arguments,1),function(){var r=i.slice(0);return r.push.apply(r,arguments),t.apply(n,r)})});s.a.e=new function(){function r(r,f){var e=r[t];if(!e||"null"===e||!i[e]){if(!f)return n;e=r[t]="ko"+u++;i[e]={}}return i[e]}var u=0,t="__ko__"+(new Date).getTime(),i={};return{get:function(t,i){var u=r(t,!1);return u===n?n:u[i]},set:function(t,i,u){(u!==n||r(t,!1)!==n)&&(r(t,!0)[i]=u)},clear:function(n){var r=n[t];return r?(delete i[r],n[t]=null,!0):!1},J:function(){return u+++t}}};s.b("utils.domData",s.a.e);s.b("utils.domData.clear",s.a.e.clear);s.a.G=new function(){function t(t,i){var r=s.a.e.get(t,u);return r===n&&i&&(r=[],s.a.e.set(t,u,r)),r}function r(n){var i=t(n,!1),u;if(i)for(i=i.slice(0),u=0;u<i.length;u++)i[u](n);if(s.a.e.clear(n),s.a.G.cleanExternalData(n),f[n.nodeType])for(i=n.firstChild;n=i;)i=n.nextSibling,8===n.nodeType&&r(n)}var u=s.a.e.J(),e={1:!0,8:!0,9:!0},f={1:!0,9:!0};return{qa:function(n,i){if("function"!=typeof i)throw Error("Callback must be a function");t(n,!0).push(i)},tc:function(i,r){var f=t(i,!1);f&&(s.a.Na(f,r),0==f.length&&s.a.e.set(i,u,n))},ba:function(n){var t,i,u;if(e[n.nodeType]&&(r(n),f[n.nodeType]))for(t=[],s.a.ta(t,n.getElementsByTagName("*")),i=0,u=t.length;i<u;i++)r(t[i]);return n},removeNode:function(n){s.ba(n);n.parentNode&&n.parentNode.removeChild(n)},cleanExternalData:function(n){i&&"function"==typeof i.cleanData&&i.cleanData([n])}}};s.ba=s.a.G.ba;s.removeNode=s.a.G.removeNode;s.b("cleanNode",s.ba);s.b("removeNode",s.removeNode);s.b("utils.domNodeDisposal",s.a.G);s.b("utils.domNodeDisposal.addDisposeCallback",s.a.G.qa);s.b("utils.domNodeDisposal.removeDisposeCallback",s.a.G.tc),function(){var h=[0,"",""],u=[1,"<table>","<\/table>"],f=[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],e=[1,"<select multiple='multiple'>","<\/select>"],c={thead:u,tbody:u,tfoot:u,tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:f,th:f,option:e,optgroup:e},o=8>=s.a.C;s.a.na=function(n,u){var f,e;if(i){if(i.parseHTML)f=i.parseHTML(n,u)||[];else if((f=i.clean([n],u))&&f[0]){for(e=f[0];e.parentNode&&11!==e.parentNode.nodeType;)e=e.parentNode;e.parentNode&&e.parentNode.removeChild(e)}}else{(f=u)||(f=t);var e=f.parentWindow||f.defaultView||r,v=s.a.cb(n).toLowerCase(),l=f.createElement("div"),a;for(a=(v=v.match(/^<([a-z]+)[ >]/))&&c[v[1]]||h,v=a[0],a="ignored<div>"+a[1]+n+a[2]+"<\/div>","function"==typeof e.innerShiv?l.appendChild(e.innerShiv(a)):(o&&f.appendChild(l),l.innerHTML=a,o&&l.parentNode.removeChild(l));v--;)l=l.lastChild;f=s.a.W(l.lastChild.childNodes)}return f};s.a.Eb=function(t,r){if(s.a.rb(t),r=s.a.c(r),null!==r&&r!==n)if("string"!=typeof r&&(r=r.toString()),i)i(t).html(r);else for(var f=s.a.na(r,t.ownerDocument),u=0;u<f.length;u++)t.appendChild(f[u])}}();s.b("utils.parseHtmlFragment",s.a.na);s.b("utils.setHtml",s.a.Eb);s.N=function(){function i(n,t){var r;if(n)if(8==n.nodeType)r=s.N.pc(n.nodeValue),null!=r&&t.push({Qc:n,hd:r});else if(1==n.nodeType)for(var r=0,u=n.childNodes,f=u.length;r<f;r++)i(u[r],t)}var t={};return{yb:function(n){if("function"!=typeof n)throw Error("You can only pass a function to ko.memoization.memoize()");var i=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[i]=n,"<!--[ko_memo:"+i+"]-->"},Bc:function(i,r){var u=t[i];if(u===n)throw Error("Couldn't find any memo with ID "+i+". Perhaps it's already been unmemoized.");try{return u.apply(null,r||[]),!0}finally{delete t[i]}},Cc:function(n,t){var f=[],u,o,r,e;for(i(n,f),u=0,o=f.length;u<o;u++)r=f[u].Qc,e=[r],t&&s.a.ta(e,t),s.N.Bc(f[u].hd,e),r.nodeValue="",r.parentNode&&r.parentNode.removeChild(r)},pc:function(n){return(n=n.match(/^\[ko_memo\:(.*?)\]$/))?n[1]:null}}}();s.b("memoization",s.N);s.b("memoization.memoize",s.N.yb);s.b("memoization.unmemoize",s.N.Bc);s.b("memoization.parseMemoText",s.N.pc);s.b("memoization.unmemoizeDomNodeAndDescendants",s.N.Cc);s.Z=function(){function f(){if(n)for(var t=n,r=0,f;i<n;)if(f=u[i++]){if(i>t){if(5e3<=++r){i=n;s.a.dc(Error("'Too much recursion' after processing "+r+" task groups."));break}t=n}try{f()}catch(e){s.a.dc(e)}}}function e(){f();i=n=u.length=0}var u=[],n=0,o=1,i=0;return{scheduler:r.MutationObserver?function(n){var i=t.createElement("div");return new MutationObserver(n).observe(i,{attributes:!0}),function(){i.classList.toggle("foo")}}(e):t&&"onreadystatechange"in t.createElement("script")?function(n){var i=t.createElement("script");i.onreadystatechange=function(){i.onreadystatechange=null;t.documentElement.removeChild(i);i=null;n()};t.documentElement.appendChild(i)}:function(n){setTimeout(n,0)},Za:function(t){return n||s.Z.scheduler(e),u[n++]=t,o++},cancel:function(t){t-=o-n;t>=i&&t<n&&(u[t]=null)},resetForTesting:function(){var t=n-i;return i=n=u.length=0,t},rd:f}}();s.b("tasks",s.Z);s.b("tasks.schedule",s.Z.Za);s.b("tasks.runEarly",s.Z.rd);s.Aa={throttle:function(n,t){n.throttleEvaluation=t;var i=null;return s.B({read:n,write:function(r){clearTimeout(i);i=s.a.setTimeout(function(){n(r)},t)}})},rateLimit:function(n,t){var i,r,u;"number"==typeof t?i=t:(i=t.timeout,r=t.method);n.gb=!1;u="notifyWhenChangesStop"==r?it:tt;n.Wa(function(n){return u(n,i)})},deferred:function(t,i){if(!0!==i)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");t.gb||(t.gb=!0,t.Wa(function(i){var u,r=!1;return function(){if(!r){s.Z.cancel(u);u=s.Z.Za(i);try{r=!0;t.notifySubscribers(n,"dirty")}finally{r=!1}}}}))},notify:function(n,t){n.equalityComparer="always"==t?null:b}};nt={undefined:1,boolean:1,number:1,string:1};s.b("extenders",s.Aa);s.zc=function(n,t,i){this.$=n;this.jb=t;this.Pc=i;this.T=!1;s.H(this,"dispose",this.k)};s.zc.prototype.k=function(){this.T=!0;this.Pc()};s.K=function(){s.a.ab(this,l);l.ub(this)};v="change";l={ub:function(n){n.F={change:[]};n.Qb=1},Y:function(n,t,i){var r=this,u;return i=i||v,u=new s.zc(r,t?n.bind(t):n,function(){s.a.Na(r.F[i],u);r.Ka&&r.Ka(i)}),r.ua&&r.ua(i),r.F[i]||(r.F[i]=[]),r.F[i].push(u),u},notifySubscribers:function(n,t){var u,i,r;if(t=t||v,t===v&&this.Kb(),this.Ra(t)){u=t===v&&this.Fc||this.F[t].slice(0);try{for(s.l.Xb(),i=0;r=u[i];++i)r.T||r.jb(n)}finally{s.l.end()}}},Pa:function(){return this.Qb},Zc:function(n){return this.Pa()!==n},Kb:function(){++this.Qb},Wa:function(n){var t=this,o=s.I(t),u,f,r,i,e;t.Ja||(t.Ja=t.notifySubscribers,t.notifySubscribers=rt);e=n(function(){t.Ha=!1;o&&i===t&&(i=t.Mb?t.Mb():t());var n=f||t.Ua(r,i);f=u=!1;n&&t.Ja(r=i)});t.Pb=function(n){t.Fc=t.F[v].slice(0);t.Ha=u=!0;i=n;e()};t.Ob=function(n){u||(r=n,t.Ja(n,"beforeChange"))};t.Hc=function(){t.Ua(r,t.p(!0))&&(f=!0)}},Ra:function(n){return this.F[n]&&this.F[n].length},Xc:function(n){if(n)return this.F[n]&&this.F[n].length||0;var t=0;return s.a.D(this.F,function(n,i){"dirty"!==n&&(t+=i.length)}),t},Ua:function(n,t){return!this.equalityComparer||!this.equalityComparer(n,t)},extend:function(n){var t=this;return n&&s.a.D(n,function(n,i){var r=s.Aa[n];"function"==typeof r&&(t=r(t,i)||t)}),t}};s.H(l,"subscribe",l.Y);s.H(l,"extend",l.extend);s.H(l,"getSubscriptionsCount",l.Xc);s.a.la&&s.a.$a(l,Function.prototype);s.K.fn=l;s.lc=function(n){return null!=n&&"function"==typeof n.Y&&"function"==typeof n.notifySubscribers};s.b("subscribable",s.K);s.b("isSubscribable",s.lc);s.xa=s.l=function(){function t(t){r.push(n);n=t}function i(){n=r.pop()}var r=[],n,u=0;return{Xb:t,end:i,sc:function(t){if(n){if(!s.lc(t))throw Error("Only subscribable things can act as dependencies");n.jb.call(n.Lc,t,t.Gc||(t.Gc=++u))}},w:function(n,r,u){try{return t(),n.apply(r,u||[])}finally{i()}},Ca:function(){if(n)return n.m.Ca()},Va:function(){if(n)return n.Va}}}();s.b("computedContext",s.xa);s.b("computedContext.getDependenciesCount",s.xa.Ca);s.b("computedContext.isInitial",s.xa.Va);s.b("ignoreDependencies",s.wd=s.l.w);y=s.a.bc("_latestValue");s.O=function(n){function t(){return 0<arguments.length?(t.Ua(t[y],arguments[0])&&(t.ia(),t[y]=arguments[0],t.ha()),this):(s.l.sc(t),t[y])}return t[y]=n,s.a.la||s.a.extend(t,s.K.fn),s.K.fn.ub(t),s.a.ab(t,a),s.options.deferUpdates&&s.Aa.deferred(t,!0),t};a={equalityComparer:b,p:function(){return this[y]},ha:function(){this.notifySubscribers(this[y])},ia:function(){this.notifySubscribers(this[y],"beforeChange")}};s.a.la&&s.a.$a(a,s.K.fn);p=s.O.md="__ko_proto__";a[p]=s.O;s.Qa=function(t,i){return null===t||t===n||t[p]===n?!1:t[p]===i?!0:s.Qa(t[p],i)};s.I=function(n){return s.Qa(n,s.O)};s.Da=function(n){return"function"==typeof n&&n[p]===s.O||"function"==typeof n&&n[p]===s.B&&n.$c?!0:!1};s.b("observable",s.O);s.b("isObservable",s.I);s.b("isWriteableObservable",s.Da);s.b("isWritableObservable",s.Da);s.b("observable.fn",a);s.H(a,"peek",a.p);s.H(a,"valueHasMutated",a.ha);s.H(a,"valueWillMutate",a.ia);s.ma=function(n){if(n=n||[],"object"!=typeof n||!("length"in n))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return n=s.O(n),s.a.ab(n,s.ma.fn),n.extend({trackArrayChanges:!0})};s.ma.fn={remove:function(n){for(var u,r=this.p(),i=[],f="function"!=typeof n||s.I(n)?function(t){return t===n}:n,t=0;t<r.length;t++)u=r[t],f(u)&&(0===i.length&&this.ia(),i.push(u),r.splice(t,1),t--);return i.length&&this.ha(),i},removeAll:function(t){if(t===n){var i=this.p(),r=i.slice(0);return this.ia(),i.splice(0,i.length),this.ha(),r}return t?this.remove(function(n){return 0<=s.a.o(t,n)}):[]},destroy:function(n){var i=this.p(),r="function"!=typeof n||s.I(n)?function(t){return t===n}:n,t;for(this.ia(),t=i.length-1;0<=t;t--)r(i[t])&&(i[t]._destroy=!0);this.ha()},destroyAll:function(t){return t===n?this.destroy(function(){return!0}):t?this.destroy(function(n){return 0<=s.a.o(t,n)}):[]},indexOf:function(n){var t=this();return s.a.o(t,n)},replace:function(n,t){var i=this.indexOf(n);0<=i&&(this.ia(),this.p()[i]=t,this.ha())}};s.a.la&&s.a.$a(s.ma.fn,s.O.fn);s.a.r("pop push reverse shift sort splice unshift".split(" "),function(n){s.ma.fn[n]=function(){var t=this.p(),i;return this.ia(),this.Yb(t,n,arguments),i=t[n].apply(t,arguments),this.ha(),i===t?this:i}});s.a.r(["slice"],function(n){s.ma.fn[n]=function(){var t=this();return t[n].apply(t,arguments)}});s.b("observableArray",s.ma);s.Aa.trackArrayChanges=function(t,i){function l(){if(!f){f=!0;u=t.notifySubscribers;t.notifySubscribers=function(n,t){return t&&t!==v||++e,u.apply(this,arguments)};var n=[].concat(t.p()||[]);r=null;o=t.Y(function(i){if(i=[].concat(i||[]),t.Ra("arrayChange")){var u;(!r||1<e)&&(r=s.a.lb(n,i,t.kb));u=r}n=i;r=null;e=0;u&&u.length&&t.notifySubscribers(u,"arrayChange")})}}if(t.kb={},i&&"object"==typeof i&&s.a.extend(t.kb,i),t.kb.sparse=!0,!t.Yb){var f=!1,r=null,o,e=0,u,h=t.ua,c=t.Ka;t.ua=function(n){h&&h.call(t,n);"arrayChange"===n&&l()};t.Ka=function(i){c&&c.call(t,i);"arrayChange"!==i||t.Ra("arrayChange")||(u&&(t.notifySubscribers=u,u=n),o.k(),f=!1)};t.Yb=function(n,t,i){function c(n,t,i){return l[l.length]={status:n,value:t,index:i}}if(f&&!e){var l=[],u=n.length,h=i.length,o=0;switch(t){case"push":o=u;case"unshift":for(t=0;t<h;t++)c("added",i[t],o+t);break;case"pop":o=u-1;case"shift":u&&c("deleted",n[o],o);break;case"splice":t=Math.min(Math.max(0,0>i[0]?u+i[0]:i[0]),u);for(var u=1===h?u:Math.min(t+(i[1]||0),u),h=t+h-2,o=Math.max(u,h),a=[],v=[],y=2;t<o;++t,++y)t<u&&v.push(c("deleted",n[t],t)),t<h&&a.push(c("added",i[y],t));s.a.hc(v,a);break;default:return}r=l}}}};h=s.a.bc("_state");s.m=s.B=function(t,i,r){function u(){if(0<arguments.length){if("function"==typeof e)e.apply(f.sb,arguments);else throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return this}return s.l.sc(u),(f.V||f.t&&u.Sa())&&u.U(),f.M}if("object"==typeof t?r=t:(r=r||{},t&&(r.read=t)),"function"!=typeof r.read)throw Error("Pass a function that returns the value of the ko.computed");var e=r.write,f={M:n,da:!0,V:!0,Ta:!1,Hb:!1,T:!1,Ya:!1,t:!1,od:r.read,sb:i||r.owner,i:r.disposeWhenNodeIsRemoved||r.i||null,ya:r.disposeWhen||r.ya,pb:null,s:{},L:0,fc:null};return u[h]=f,u.$c="function"==typeof e,s.a.la||s.a.extend(u,s.K.fn),s.K.fn.ub(u),s.a.ab(u,c),r.pure?(f.Ya=!0,f.t=!0,s.a.extend(u,et)):r.deferEvaluation&&s.a.extend(u,ot),s.options.deferUpdates&&s.Aa.deferred(u,!0),f.i&&(f.Hb=!0,f.i.nodeType||(f.i=null)),f.t||r.deferEvaluation||u.U(),f.i&&u.ca()&&s.a.G.qa(f.i,f.pb=function(){u.k()}),u};var c={equalityComparer:b,Ca:function(){return this[h].L},Sb:function(n,t,i){if(this[h].Ya&&t===this)throw Error("A 'pure' computed must not be called recursively");this[h].s[n]=i;i.Ia=this[h].L++;i.pa=t.Pa()},Sa:function(){var t,n,i=this[h].s;for(t in i)if(i.hasOwnProperty(t)&&(n=i[t],this.oa&&n.$.Ha||n.$.Zc(n.pa)))return!0},gd:function(){this.oa&&!this[h].Ta&&this.oa(!1)},ca:function(){var n=this[h];return n.V||0<n.L},qd:function(){this.Ha?this[h].V&&(this[h].da=!0):this.ec()},yc:function(n){if(n.gb&&!this[h].i){var t=n.Y(this.gd,this,"dirty"),i=n.Y(this.qd,this);return{$:n,k:function(){t.k();i.k()}}}return n.Y(this.ec,this)},ec:function(){var n=this,t=n.throttleEvaluation;t&&0<=t?(clearTimeout(this[h].fc),this[h].fc=s.a.setTimeout(function(){n.U(!0)},t)):n.oa?n.oa(!0):n.U(!0)},U:function(n){var t=this[h],i=t.ya,r=!1;if(!t.Ta&&!t.T){if(t.i&&!s.a.qb(t.i)||i&&i()){if(!t.Hb){this.k();return}}else t.Hb=!1;t.Ta=!0;try{r=this.Vc(n)}finally{t.Ta=!1}return t.L||this.k(),r}},Vc:function(t){var i=this[h],u=!1,f=i.Ya?n:!i.L,r={Mc:this,Oa:i.s,ob:i.L};return s.l.Xb({Lc:r,jb:ft,m:this,Va:f}),i.s={},i.L=0,r=this.Uc(i,r),this.Ua(i.M,r)&&(i.t||this.notifySubscribers(i.M,"beforeChange"),i.M=r,i.t?this.Kb():t&&this.notifySubscribers(i.M),u=!0),f&&this.notifySubscribers(i.M,"awake"),u},Uc:function(n,t){try{var i=n.od;return n.sb?i.call(n.sb):i()}finally{s.l.end();t.ob&&!n.t&&s.a.D(t.Oa,ut);n.da=n.V=!1}},p:function(n){var t=this[h];return(t.V&&(n||!t.L)||t.t&&this.Sa())&&this.U(),t.M},Wa:function(n){s.K.fn.Wa.call(this,n);this.Mb=function(){return this[h].da?this.U():this[h].V=!1,this[h].M};this.oa=function(n){this.Ob(this[h].M);this[h].V=!0;n&&(this[h].da=!0);this.Pb(this)}},k:function(){var n=this[h];!n.t&&n.s&&s.a.D(n.s,function(n,t){t.k&&t.k()});n.i&&n.pb&&s.a.G.tc(n.i,n.pb);n.s=null;n.L=0;n.T=!0;n.da=!1;n.V=!1;n.t=!1;n.i=null}},et={ua:function(n){var i=this,t=i[h],r;!t.T&&t.t&&"change"==n&&(t.t=!1,t.da||i.Sa()?(t.s=null,t.L=0,i.U()&&i.Kb()):(r=[],s.a.D(t.s,function(n,t){r[t.Ia]=n}),s.a.r(r,function(n,r){var f=t.s[n],u=i.yc(f.$);u.Ia=r;u.pa=f.pa;t.s[n]=u})),t.T||i.notifySubscribers(t.M,"awake"))},Ka:function(t){var i=this[h];i.T||"change"!=t||this.Ra("change")||(s.a.D(i.s,function(n,t){t.k&&(i.s[n]={$:t.$,Ia:t.Ia,pa:t.pa},t.k())}),i.t=!0,this.notifySubscribers(n,"asleep"))},Pa:function(){var n=this[h];return n.t&&(n.da||this.Sa())&&this.U(),s.K.fn.Pa.call(this)}},ot={ua:function(n){"change"!=n&&"beforeChange"!=n||this.p()}};s.a.la&&s.a.$a(c,s.K.fn);d=s.O.md;s.m[d]=s.O;c[d]=s.m;s.bd=function(n){return s.Qa(n,s.m)};s.cd=function(n){return s.Qa(n,s.m)&&n[h]&&n[h].Ya};s.b("computed",s.m);s.b("dependentObservable",s.m);s.b("isComputed",s.bd);s.b("isPureComputed",s.cd);s.b("computed.fn",c);s.H(c,"peek",c.p);s.H(c,"dispose",c.k);s.H(c,"isActive",c.ca);s.H(c,"getDependenciesCount",c.Ca);s.rc=function(n,t){return"function"==typeof n?s.m(n,t,{pure:!0}):(n=s.a.extend({},n),n.pure=!0,s.m(n,t))};s.b("pureComputed",s.rc),function(){function t(u,f,e){if(e=e||new i,u=f(u),"object"!=typeof u||null===u||u===n||u instanceof RegExp||u instanceof Date||u instanceof String||u instanceof Number||u instanceof Boolean)return u;var o=u instanceof Array?[]:{};return e.save(u,o),r(u,function(i){var r=f(u[i]),s;switch(typeof r){case"boolean":case"number":case"string":case"function":o[i]=r;break;case"object":case"undefined":s=e.get(r);o[i]=s!==n?s:t(r,f,e)}}),o}function r(n,t){if(n instanceof Array){for(var i=0;i<n.length;i++)t(i);"function"==typeof n.toJSON&&t("toJSON")}else for(i in n)t(i)}function i(){this.keys=[];this.Lb=[]}s.Ac=function(n){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(n,function(n){for(var t=0;s.I(n)&&10>t;t++)n=n();return n})};s.toJSON=function(n,t,i){return n=s.Ac(n),s.a.Gb(n,t,i)};i.prototype={save:function(n,t){var i=s.a.o(this.keys,n);0<=i?this.Lb[i]=t:(this.keys.push(n),this.Lb.push(t))},get:function(t){return t=s.a.o(this.keys,t),0<=t?this.Lb[t]:n}}}();s.b("toJS",s.Ac);s.b("toJSON",s.toJSON),function(){s.j={u:function(t){switch(s.a.A(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?s.a.e.get(t,s.d.options.zb):7>=s.a.C?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?s.j.u(t.options[t.selectedIndex]):n;default:return t.value}},ja:function(t,i,r){switch(s.a.A(t)){case"option":switch(typeof i){case"string":s.a.e.set(t,s.d.options.zb,n);"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__;t.value=i;break;default:s.a.e.set(t,s.d.options.zb,i);t.__ko__hasDomDataOptionValue__=!0;t.value="number"==typeof i?i:""}break;case"select":(""===i||null===i)&&(i=n);for(var f=-1,u=0,o=t.options.length,e;u<o;++u)if(e=s.j.u(t.options[u]),e==i||""==e&&i===n){f=u;break}(r||0<=f||i===n&&1<t.size)&&(t.selectedIndex=f);break;default:(null===i||i===n)&&(i="");t.value=i}}}}();s.b("selectExtensions",s.j);s.b("selectExtensions.readValue",s.j.u);s.b("selectExtensions.writeValue",s.j.ja);s.h=function(){function n(n){var c,u,i;n=s.a.cb(n);123===n.charCodeAt(0)&&(n=n.slice(1,-1));var a=[],h=n.match(t),o,r=[],l=0;if(h)for(h.push(","),c=0;u=h[c];++c){if(i=u.charCodeAt(0),44===i){if(0>=l){a.push(o&&r.length?{key:o,value:r.join("")}:{unknown:o||r.join("")});o=l=0;r=[];continue}}else if(58===i){if(!l&&!o&&1===r.length){o=r.pop();continue}}else 47===i&&c&&1<u.length?(i=h[c-1].match(f))&&!e[i[0]]&&(n=n.substr(n.indexOf(u)+1),h=n.match(t),h.push(","),c=-1,u="/"):40===i||123===i||91===i?++l:41===i||125===i||93===i?--l:o||r.length||34!==i&&39!==i||(u=u.slice(1,-1));r.push(u)}return a}var r=["true","false","null","undefined"],u=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,t=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),f=/[\])"'A-Za-z0-9_$]+$/,e={"in":1,"return":1,"typeof":1},i={};return{va:[],ga:i,Ab:n,Xa:function(t,f){function e(n,t){var a,f;if(!l){if(f=s.getBindingHandler(n),f&&f.preprocess&&!(t=f.preprocess(t,n,e)))return;(f=i[n])&&(a=t,0<=s.a.o(r,a)?a=!1:(f=a.match(u),a=null===f?!1:f[1]?"Object("+f[1]+")"+f[2]:a),f=a);f&&o.push("'"+n+"':function(_z){"+a+"=_z}")}c&&(t="function(){return "+t+" }");h.push("'"+n+"':"+t)}f=f||{};var h=[],o=[],c=f.valueAccessors,l=f.bindingParams,a="string"==typeof t?n(t):t;return s.a.r(a,function(n){e(n.key||n.unknown,n.value)}),o.length&&e("_ko_property_writers","{"+o.join(",")+" }"),h.join(",")},fd:function(n,t){for(var i=0;i<n.length;i++)if(n[i].key==t)return!0;return!1},Ga:function(n,t,i,r,u){n&&s.I(n)?!s.Da(n)||u&&n.p()===r||n(r):(n=t.get("_ko_property_writers"))&&n[i]&&n[i](r)}}}();s.b("expressionRewriting",s.h);s.b("expressionRewriting.bindingRewriteValidators",s.h.va);s.b("expressionRewriting.parseObjectLiteral",s.h.Ab);s.b("expressionRewriting.preProcessBindings",s.h.Xa);s.b("expressionRewriting._twoWayBindings",s.h.ga);s.b("jsonExpressionRewriting",s.h);s.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",s.h.Xa),function(){function n(n){return 8==n.nodeType&&e.test(i?n.text:n.nodeValue)}function r(n){return 8==n.nodeType&&o.test(i?n.text:n.nodeValue)}function u(t,i){for(var u=t,f=1,e=[];u=u.nextSibling;){if(r(u)&&(f--,0===f))return e;e.push(u);n(u)&&f++}if(!i)throw Error("Cannot find closing comment tag to match: "+t.nodeValue);return null}function f(n,t){var i=u(n,t);return i?0<i.length?i[i.length-1].nextSibling:n.nextSibling:null}var i=t&&"<!--test-->"===t.createComment("test").text,e=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,o=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,h={ul:!0,ol:!0};s.f={aa:{},childNodes:function(t){return n(t)?u(t):t.childNodes},za:function(t){if(n(t)){t=s.f.childNodes(t);for(var i=0,r=t.length;i<r;i++)s.removeNode(t[i])}else s.a.rb(t)},fa:function(t,i){if(n(t)){s.f.za(t);for(var u=t.nextSibling,r=0,f=i.length;r<f;r++)u.parentNode.insertBefore(i[r],u)}else s.a.fa(t,i)},qc:function(t,i){n(t)?t.parentNode.insertBefore(i,t.nextSibling):t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},kc:function(t,i,r){r?n(t)?t.parentNode.insertBefore(i,r.nextSibling):r.nextSibling?t.insertBefore(i,r.nextSibling):t.appendChild(i):s.f.qc(t,i)},firstChild:function(t){return n(t)?!t.nextSibling||r(t.nextSibling)?null:t.nextSibling:t.firstChild},nextSibling:function(t){return n(t)&&(t=f(t)),t.nextSibling&&r(t.nextSibling)?null:t.nextSibling},Yc:n,vd:function(n){return(n=(i?n.text:n.nodeValue).match(e))?n[1]:null},oc:function(t){var o,i,u,e;if(h[s.a.A(t)]&&(o=t.firstChild,o))do if(1===o.nodeType){if(i=o.firstChild,u=null,i)do u?u.push(i):n(i)?(e=f(i,!0),e?i=e:u=[i]):r(i)&&(u=[i]);while(i=i.nextSibling);if(i=u)for(u=o.nextSibling,e=0;e<i.length;e++)u?t.insertBefore(i[e],u):t.appendChild(i[e])}while(o=o.nextSibling)}}}();s.b("virtualElements",s.f);s.b("virtualElements.allowedBindings",s.f.aa);s.b("virtualElements.emptyNode",s.f.za);s.b("virtualElements.insertAfter",s.f.kc);s.b("virtualElements.prepend",s.f.qc);s.b("virtualElements.setDomNodeChildren",s.f.fa),function(){s.S=function(){this.Kc={}};s.a.extend(s.S.prototype,{nodeHasBindings:function(n){switch(n.nodeType){case 1:return null!=n.getAttribute("data-bind")||s.g.getComponentNameForNode(n);case 8:return s.f.Yc(n);default:return!1}},getBindings:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n):null;return s.g.Rb(i,n,t,!1)},getBindingAccessors:function(n,t){var i=this.getBindingsString(n,t),i=i?this.parseBindingsString(i,t,n,{valueAccessors:!0}):null;return s.g.Rb(i,n,t,!0)},getBindingsString:function(n){switch(n.nodeType){case 1:return n.getAttribute("data-bind");case 8:return s.f.vd(n);default:return null}},parseBindingsString:function(n,t,i,r){var u,f,e,h,c;try{return u=this.Kc,f=n+(r&&r.valueAccessors||""),(e=u[f])||(c="with($context){with($data||{}){return{"+s.h.Xa(n,r)+"}}}",h=new Function("$context","$element",c),e=u[f]=h),e(t,i)}catch(o){throw o.message="Unable to parse bindings.\nBindings value: "+n+"\nMessage: "+o.message,o;}}});s.S.instance=new s.S}();s.b("bindingProvider",s.S),function(){function v(n){return function(){return n}}function u(n){return n()}function o(n){return s.a.Ea(s.l.w(n),function(t,i){return function(){return n()[i]}})}function y(n,t,i){return"function"==typeof n?o(n.bind(null,t,i)):s.a.Ea(n,v)}function p(n,t){return o(this.getBindings.bind(this,n,t))}function h(n,t,i){var r,u=s.f.firstChild(t),f=s.S.instance,e=f.preprocessNode;if(e){for(;r=u;)u=s.f.nextSibling(r),e.call(f,r);u=s.f.firstChild(t)}for(;r=u;)u=s.f.nextSibling(r),c(n,r,i)}function c(n,t,i){var u=!0,r=1===t.nodeType;r&&s.f.oc(t);(r&&i||s.S.instance.nodeHasBindings(t))&&(u=l(t,null,n,i).shouldBindDescendants);u&&!a[s.a.A(t)]&&h(n,t,!r)}function w(n){var i=[],r={},t=[];return s.a.D(n,function u(f){if(!r[f]){var e=s.getBindingHandler(f);e&&(e.after&&(t.push(f),s.a.r(e.after,function(i){if(n[i]){if(-1!==s.a.o(t,i))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+t.join(", "));u(i)}}),t.length--),i.push({key:f,jc:e}));r[f]=!0}}),i}function l(t,i,r,e){var v=s.a.e.get(t,f),o,l,a,c;if(!i){if(v)throw Error("You cannot apply bindings multiple times to the same element.");s.a.e.set(t,f,!0)}if(!v&&e&&s.xc(t,r),i&&"function"!=typeof i)o=i;else{var y=s.S.instance,b=y.getBindingAccessors||p,h=s.B(function(){return(o=i?i(r,t):b.call(y,t,r))&&r.Q&&r.Q(),o},null,{i:t});o&&h.ca()||(h=null)}return o&&(a=h?function(n){return function(){return u(h()[n])}}:function(n){return o[n]},c=function(){return s.a.Ea(h?h():o,u)},c.get=function(n){return o[n]&&u(a(n))},c.has=function(n){return n in o},e=w(o),s.a.r(e,function(i){var e=i.jc.init,h=i.jc.update,u=i.key;if(8===t.nodeType&&!s.f.aa[u])throw Error("The binding '"+u+"' cannot be used with virtual elements");try{"function"==typeof e&&s.l.w(function(){var i=e(t,a(u),c,r.$data,r);if(i&&i.controlsDescendantBindings){if(l!==n)throw Error("Multiple bindings ("+l+" and "+u+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");l=u}});"function"==typeof h&&s.B(function(){h(t,a(u),c,r.$data,r)},null,{i:t})}catch(f){throw f.message='Unable to process binding "'+u+": "+o[u]+'"\nMessage: '+f.message,f;}})),{shouldBindDescendants:l===n}}function t(n){return n&&n instanceof s.R?n:new s.R(n)}var a,f,e;s.d={};a={script:!0,textarea:!0,template:!0};s.getBindingHandler=function(n){return s.d[n]};s.R=function(t,i,r,u,f){function c(){var f=a?t():t,n=s.a.c(f);return i?(i.Q&&i.Q(),s.a.extend(e,i),e.Q=o):(e.$parents=[],e.$root=n,e.ko=s),e.$rawData=f,e.$data=n,r&&(e[r]=n),u&&u(e,i,n),e.$data}function l(){return h&&!s.a.Tb(h)}var e=this,a="function"==typeof t&&!s.I(t),h,o;f&&f.exportDependencies?c():(o=s.B(c,null,{ya:l,i:!0}),o.ca()&&(e.Q=o,o.equalityComparer=null,h=[],o.Dc=function(t){h.push(t);s.a.G.qa(t,function(t){s.a.Na(h,t);h.length||(o.k(),e.Q=o=n)})}))};s.R.prototype.createChildContext=function(n,t,i,r){return new s.R(n,this,t,function(n,t){n.$parentContext=t;n.$parent=t.$data;n.$parents=(t.$parents||[]).slice(0);n.$parents.unshift(n.$parent);i&&i(n)},r)};s.R.prototype.extend=function(n){return new s.R(this.Q||this.$data,this,null,function(t,i){t.$rawData=i.$rawData;s.a.extend(t,"function"==typeof n?n():n)})};s.R.prototype.ac=function(n,t){return this.createChildContext(n,t,null,{exportDependencies:!0})};f=s.a.e.J();e=s.a.e.J();s.xc=function(n,t){if(2==arguments.length)s.a.e.set(n,e,t),t.Q&&t.Q.Dc(n);else return s.a.e.get(n,e)};s.La=function(n,i,r){return 1===n.nodeType&&s.f.oc(n),l(n,i,t(r),!0)};s.Ic=function(n,i,r){return r=t(r),s.La(n,y(i,r,n),r)};s.hb=function(n,i){1!==i.nodeType&&8!==i.nodeType||h(t(n),i,!0)};s.Ub=function(n,u){if(!i&&r.jQuery&&(i=r.jQuery),u&&1!==u.nodeType&&8!==u.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");u=u||r.document.body;c(t(n),u,!0)};s.nb=function(t){switch(t.nodeType){case 1:case 8:var i=s.xc(t);if(i)return i;if(t.parentNode)return s.nb(t.parentNode)}return n};s.Oc=function(t){return(t=s.nb(t))?t.$data:n};s.b("bindingHandlers",s.d);s.b("applyBindings",s.Ub);s.b("applyBindingsToDescendants",s.hb);s.b("applyBindingAccessorsToNode",s.La);s.b("applyBindingsToNode",s.Ic);s.b("contextFor",s.nb);s.b("dataFor",s.Oc)}(),function(n){function u(t,u){var e=i.hasOwnProperty(t)?i[t]:n,o;e?e.Y(u):(e=i[t]=new s.K,e.Y(u),f(t,function(n,u){var f=!(!u||!u.synchronous);r[t]={definition:n,dd:f};delete i[t];o||f?e.notifySubscribers(n):s.Z.Za(function(){e.notifySubscribers(n)})}),o=!0)}function f(n,i){t("getConfig",[n],function(r){r?t("loadComponent",[n,r],function(n){i(n,r)}):i(null,null)})}function t(i,r,u,f){var e,o,h;if(f||(f=s.g.loaders.slice(0)),e=f.shift(),e)if(o=e[i],o){if(h=!1,o.apply(e,r.concat(function(n){h?u(null):null!==n?u(n):t(i,r,u,f)}))!==n&&(h=!0,!e.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.");}else t(i,r,u,f);else u(null)}var i={},r={};s.g={get:function(t,i){var f=r.hasOwnProperty(t)?r[t]:n;f?f.dd?s.l.w(function(){i(f.definition)}):s.Z.Za(function(){i(f.definition)}):u(t,i)},$b:function(n){delete r[n]},Nb:t};s.g.loaders=[];s.b("components",s.g);s.b("components.get",s.g.get);s.b("components.clearCachedDefinition",s.g.$b)}(),function(){function l(n,t,r,f){function e(){0==--c&&f(o)}var o={},c=2,h=r.template;r=r.viewModel;h?u(t,h,function(t){s.g.Nb("loadTemplate",[n,t],function(n){o.template=n;e()})}):e();r?u(t,r,function(t){s.g.Nb("loadViewModel",[n,t],function(n){o[i]=n;e()})}):e()}function e(n,t,r){if("function"==typeof t)r(function(n){return new t(n)});else if("function"==typeof t[i])r(t[i]);else if("instance"in t){var u=t.instance;r(function(){return u})}else"viewModel"in t?e(n,t.viewModel,r):n("Unknown viewModel value: "+t)}function h(n){switch(s.a.A(n)){case"script":return s.a.na(n.text);case"textarea":return s.a.na(n.value);case"template":if(c(n.content))return s.a.wa(n.content.childNodes)}return s.a.wa(n.childNodes)}function c(n){return r.DocumentFragment?n instanceof DocumentFragment:n&&11===n.nodeType}function u(n,t,i){"string"==typeof t.require?o||r.require?(o||r.require)([t.require],i):n("Uses require, but no AMD loader is present"):i(t)}function f(n){return function(t){throw Error("Component '"+n+"': "+t);}}var n={},i;s.g.register=function(t,i){if(!i)throw Error("Invalid configuration for "+t);if(s.g.wb(t))throw Error("Component "+t+" is already registered");n[t]=i};s.g.wb=function(t){return n.hasOwnProperty(t)};s.g.ud=function(t){delete n[t];s.g.$b(t)};s.g.cc={getConfig:function(t,i){i(n.hasOwnProperty(t)?n[t]:null)},loadComponent:function(n,t,i){var r=f(n);u(r,t,function(t){l(n,r,t,i)})},loadTemplate:function(n,i,u){if(n=f(n),"string"==typeof i)u(s.a.na(i));else if(i instanceof Array)u(i);else if(c(i))u(s.a.W(i.childNodes));else if(i.element)if(i=i.element,r.HTMLElement?i instanceof HTMLElement:i&&i.tagName&&1===i.nodeType)u(h(i));else if("string"==typeof i){var e=t.getElementById(i);e?u(h(e)):n("Cannot find element with ID "+i)}else n("Unknown element type: "+i);else n("Unknown template value: "+i)},loadViewModel:function(n,t,i){e(f(n),t,i)}};i="createViewModel";s.b("components.register",s.g.register);s.b("components.isRegistered",s.g.wb);s.b("components.unregister",s.g.ud);s.b("components.defaultLoader",s.g.cc);s.g.loaders.push(s.g.cc);s.g.Ec=n}(),function(){function n(n,t){var r=n.getAttribute("params");if(r){var r=i.parseBindingsString(r,t,n,{valueAccessors:!0,bindingParams:!0}),r=s.a.Ea(r,function(t){return s.m(t,null,{i:n})}),u=s.a.Ea(r,function(t){var i=t.p();return t.ca()?s.m({read:function(){return s.a.c(t())},write:s.Da(i)&&function(n){t()(n)},i:n}):i});return u.hasOwnProperty("$raw")||(u.$raw=r),u}return{$raw:{}}}s.g.getComponentNameForNode=function(n){var t=s.a.A(n);if(s.g.wb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+n||8>=s.a.C&&n.tagName===t))return t};s.g.Rb=function(t,i,r,u){var f,e;if(1===i.nodeType&&(f=s.g.getComponentNameForNode(i),f)){if(t=t||{},t.component)throw Error('Cannot use the "component" binding on a custom element matching a component');e={name:f,params:n(i,r)};t.component=u?function(){return e}:e}return t};var i=new s.S;9>s.a.C&&(s.g.register=function(n){return function(i){return t.createElement(i),n.apply(this,arguments)}}(s.g.register),t.createDocumentFragment=function(n){return function(){var i=n(),r=s.g.Ec,t;for(t in r)r.hasOwnProperty(t)&&i.createElement(t);return i}}(t.createDocumentFragment))}(),function(n){function t(n,t,i){if(t=t.template,!t)throw Error("Component '"+n+"' has no template");n=s.a.wa(t);s.f.fa(i,n)}function i(n,t,i,r){var u=n.createViewModel;return u?u.call(n,r,{element:t,templateNodes:i}):r}var r=0;s.d.component={init:function(u,f,e,o,h){function a(){var n=c&&c.dispose;"function"==typeof n&&n.call(c);l=c=null}var c,l,v=s.a.W(s.f.childNodes(u));return s.a.G.qa(u,a),s.m(function(){var o=s.a.c(f()),e,y,p;if("string"==typeof o?e=o:(e=s.a.c(o.name),y=s.a.c(o.params)),!e)throw Error("No component name specified");p=l=++r;s.g.get(e,function(r){if(l===p){if(a(),!r)throw Error("Unknown component '"+e+"'");t(e,r,u);var f=i(r,u,v,y);r=h.createChildContext(f,n,function(n){n.$component=f;n.$componentTemplateNodes=v});c=f;s.hb(r,u)}})},null,{i:u}),{controlsDescendantBindings:!0}}};s.f.aa.component=!0}();g={"class":"className","for":"htmlFor"};s.d.attr={update:function(t,i){var r=s.a.c(i())||{};s.a.D(r,function(i,r){r=s.a.c(r);var u=!1===r||null===r||r===n;u&&t.removeAttribute(i);8>=s.a.C&&i in g?(i=g[i],u?t.removeAttribute(i):t[i]=r):u||t.setAttribute(i,r.toString());"name"===i&&s.a.vc(t,u?"":r.toString())})}},function(){s.d.checked={after:["value","attr"],init:function(t,i,r){function l(){var l=t.checked,o=y?f():l,n,h;s.xa.Va()||e&&!l||(n=s.l.w(i),u?(h=a?n.p():n,c!==o?(l&&(s.a.ra(h,o,!0),s.a.ra(h,c,!1)),c=o):s.a.ra(h,o,l),a&&s.Da(n)&&n(h)):s.h.Ga(n,r,"checked",o,!0))}function v(){var n=s.a.c(i());t.checked=u?0<=s.a.o(n,f()):h?n:f()===n}var f=s.rc(function(){return r.has("checkedValue")?s.a.c(r.get("checkedValue")):r.has("value")?s.a.c(r.get("value")):t.value}),h="checkbox"==t.type,e="radio"==t.type;if(h||e){var o=i(),u=h&&s.a.c(o)instanceof Array,a=!(u&&o.push&&o.splice),c=u?f():n,y=e||u;e&&!t.name&&s.d.uniqueName.init(t,function(){return!0});s.m(l,null,{i:t});s.a.q(t,"click",l);s.m(v,null,{i:t});o=n}}};s.h.ga.checked=!0;s.d.checkedValue={update:function(n,t){n.value=s.a.c(t())}}}();s.d.css={update:function(n,t){var i=s.a.c(t());null!==i&&"object"==typeof i?s.a.D(i,function(t,i){i=s.a.c(i);s.a.fb(n,t,i)}):(i=s.a.cb(String(i||"")),s.a.fb(n,n.__ko__cssValue,!1),n.__ko__cssValue=i,s.a.fb(n,i,!0))}};s.d.enable={update:function(n,t){var i=s.a.c(t());i&&n.disabled?n.removeAttribute("disabled"):i||n.disabled||(n.disabled=!0)}};s.d.disable={update:function(n,t){s.d.enable.update(n,function(){return!s.a.c(t())})}};s.d.event={init:function(n,t,i,r,u){var f=t()||{};s.a.D(f,function(f){"string"==typeof f&&s.a.q(n,f,function(n){var o,h=t()[f],e;if(h){try{e=s.a.W(arguments);r=u.$data;e.unshift(r);o=h.apply(r,e)}finally{!0!==o&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}!1===i.get(f+"Bubble")&&(n.cancelBubble=!0,n.stopPropagation&&n.stopPropagation())}})})}};s.d.foreach={mc:function(n){return function(){var i=n(),t=s.a.Bb(i);return!t||"number"==typeof t.length?{foreach:i,templateEngine:s.X.vb}:(s.a.c(i),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:s.X.vb})}},init:function(n,t){return s.d.template.init(n,s.d.foreach.mc(t))},update:function(n,t,i,r,u){return s.d.template.update(n,s.d.foreach.mc(t),i,r,u)}};s.h.va.foreach=!1;s.f.aa.foreach=!0;s.d.hasfocus={init:function(n,t,i){function r(r){var u,f;if(n.__ko_hasfocusUpdating=!0,u=n.ownerDocument,"activeElement"in u){try{f=u.activeElement}catch(e){f=u.body}r=f===n}u=t();s.h.Ga(u,i,"hasfocus",r,!0);n.__ko_hasfocusLastValue=r;n.__ko_hasfocusUpdating=!1}var u=r.bind(null,!0),f=r.bind(null,!1);s.a.q(n,"focus",u);s.a.q(n,"focusin",u);s.a.q(n,"blur",f);s.a.q(n,"focusout",f)},update:function(n,t){var i=!!s.a.c(t());n.__ko_hasfocusUpdating||n.__ko_hasfocusLastValue===i||(i?n.focus():n.blur(),!i&&n.__ko_hasfocusLastValue&&n.ownerDocument.body.focus(),s.l.w(s.a.Fa,null,[n,i?"focusin":"focusout"]))}};s.h.ga.hasfocus=!0;s.d.hasFocus=s.d.hasfocus;s.h.ga.hasFocus=!0;s.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.Eb(n,t())}};k("if");k("ifnot",!1,!0);k("with",!0,!1,function(n,t){return n.ac(t)});w={};s.d.options={init:function(n){if("select"!==s.a.A(n))throw Error("options binding applies only to SELECT elements");for(;0<n.length;)n.remove(0);return{controlsDescendantBindings:!0}},update:function(t,i,r){function a(){return s.a.Ma(t.options,function(n){return n.selected})}function v(n,t,i){var r=typeof t;return"function"==r?t(n):"string"==r?n[t]:i}function y(n,i){if(o&&e)s.j.ja(t,s.a.c(r.get("value")),!0);else if(f.length){var u=0<=s.a.o(f,s.j.u(i[0]));s.a.wc(i[0],u);o&&!u&&s.l.w(s.a.Fa,null,[t,"change"])}}var h=t.multiple,c=0!=t.length&&h?t.scrollTop:null,u=s.a.c(i()),e=r.get("valueAllowUnset")&&r.has("value"),p=r.get("optionsIncludeDestroyed"),l,f,o;i={};f=[];e||(h?f=s.a.ib(a(),s.j.u):0<=t.selectedIndex&&f.push(s.j.u(t.options[t.selectedIndex])));u&&("undefined"==typeof u.length&&(u=[u]),l=s.a.Ma(u,function(t){return p||t===n||null===t||!s.a.c(t._destroy)}),r.has("optionsCaption")&&(u=s.a.c(r.get("optionsCaption")),null!==u&&u!==n&&l.unshift(w)));o=!1;i.beforeRemove=function(n){t.removeChild(n)};u=y;r.has("optionsAfterRender")&&"function"==typeof r.get("optionsAfterRender")&&(u=function(t,i){y(0,i);s.l.w(r.get("optionsAfterRender"),null,[i[0],t!==w?t:n])});s.a.Db(t,l,function(i,u,h){return h.length&&(f=!e&&h[0].selected?[s.j.u(h[0])]:[],o=!0),u=t.ownerDocument.createElement("option"),i===w?(s.a.bb(u,r.get("optionsCaption")),s.j.ja(u,n)):(h=v(i,r.get("optionsValue"),i),s.j.ja(u,s.a.c(h)),i=v(i,r.get("optionsText"),h),s.a.bb(u,i)),[u]},i,u);s.l.w(function(){e?s.j.ja(t,s.a.c(r.get("value")),!0):(h?f.length&&a().length<f.length:f.length&&0<=t.selectedIndex?s.j.u(t.options[t.selectedIndex])!==f[0]:f.length||0<=t.selectedIndex)&&s.a.Fa(t,"change")});s.a.Sc(t);c&&20<Math.abs(c-t.scrollTop)&&(t.scrollTop=c)}};s.d.options.zb=s.a.e.J();s.d.selectedOptions={after:["options","foreach"],init:function(n,t,i){s.a.q(n,"change",function(){var u=t(),r=[];s.a.r(n.getElementsByTagName("option"),function(n){n.selected&&r.push(s.j.u(n))});s.h.Ga(u,i,"selectedOptions",r)})},update:function(n,t){if("select"!=s.a.A(n))throw Error("values binding applies only to SELECT elements");var i=s.a.c(t()),r=n.scrollTop;i&&"number"==typeof i.length&&s.a.r(n.getElementsByTagName("option"),function(n){var t=0<=s.a.o(i,s.j.u(n));n.selected!=t&&s.a.wc(n,t)});n.scrollTop=r}};s.h.ga.selectedOptions=!0;s.d.style={update:function(t,i){var r=s.a.c(i()||{});s.a.D(r,function(i,r){r=s.a.c(r);(null===r||r===n||!1===r)&&(r="");t.style[i]=r})}};s.d.submit={init:function(n,t,i,r,u){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");s.a.q(n,"submit",function(i){var r,f=t();try{r=f.call(u.$data,n)}finally{!0!==r&&(i.preventDefault?i.preventDefault():i.returnValue=!1)}})}};s.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(n,t){s.a.bb(n,t())}};s.f.aa.text=!0,function(){if(r&&r.navigator)var t=function(n){if(n)return parseFloat(n[1])},e=r.opera&&r.opera.version&&parseInt(r.opera.version()),i=r.navigator.userAgent,o=t(i.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),h=t(i.match(/Firefox\/([^ ]*)/));if(10>s.a.C)var u=s.a.e.J(),f=s.a.e.J(),c=function(n){var t=this.activeElement;(t=t&&s.a.e.get(t,f))&&t(n)},l=function(n,t){var i=n.ownerDocument;s.a.e.get(i,u)||(s.a.e.set(i,u,!0),s.a.q(i,"selectionchange",c));s.a.e.set(n,f,t)};s.d.textInput={init:function(t,i,r){function u(n,i){s.a.q(t,n,i)}function p(){var r=s.a.c(i());(null===r||r===n)&&(r="");v!==n&&r===v?s.a.setTimeout(p,4):t.value!==r&&(y=r,t.value=r)}function c(){a||(v=t.value,a=s.a.setTimeout(f,4))}function f(){clearTimeout(a);v=a=n;var u=t.value;y!==u&&(y=u,s.h.Ga(i(),r,"textInput",u))}var y=t.value,a,v,w=9==s.a.C?c:f;10>s.a.C?(u("propertychange",function(n){"value"===n.propertyName&&w(n)}),8==s.a.C&&(u("keyup",f),u("keydown",f)),8<=s.a.C&&(l(t,w),u("dragend",c))):(u("input",f),5>o&&"textarea"===s.a.A(t)?(u("keydown",c),u("paste",c),u("cut",c)):11>e?u("keydown",c):4>h&&(u("DOMAutoComplete",f),u("dragdrop",f),u("drop",f)));u("change",f);s.m(p,null,{i:t})}};s.h.ga.textInput=!0;s.d.textinput={preprocess:function(n,t,i){i("textInput",n)}}}();s.d.uniqueName={init:function(n,t){if(t()){var i="ko_unique_"+ ++s.d.uniqueName.Nc;s.a.vc(n,i)}}};s.d.uniqueName.Nc=0;s.d.value={after:["options","foreach"],init:function(n,t,i){var o,h;if("input"!=n.tagName.toLowerCase()||"checkbox"!=n.type&&"radio"!=n.type){var r=["change"],u=i.get("valueUpdate"),f=!1,e=null;u&&("string"==typeof u&&(u=[u]),s.a.ta(r,u),r=s.a.Wb(r));o=function(){e=null;f=!1;var r=t(),u=s.j.u(n);s.h.Ga(r,i,"value",u)};!s.a.C||"input"!=n.tagName.toLowerCase()||"text"!=n.type||"off"==n.autocomplete||n.form&&"off"==n.form.autocomplete||-1!=s.a.o(r,"propertychange")||(s.a.q(n,"propertychange",function(){f=!0}),s.a.q(n,"focus",function(){f=!1}),s.a.q(n,"blur",function(){f&&o()}));s.a.r(r,function(t){var i=o;s.a.sd(t,"after")&&(i=function(){e=s.j.u(n);s.a.setTimeout(o,0)},t=t.substring(5));s.a.q(n,t,i)});h=function(){var r=s.a.c(t()),u=s.j.u(n),f;null!==e&&r===e?s.a.setTimeout(h,0):r!==u&&("select"===s.a.A(n)?(f=i.get("valueAllowUnset"),u=function(){s.j.ja(n,r,f)},u(),f||r===s.j.u(n)?s.a.setTimeout(u,0):s.l.w(s.a.Fa,null,[n,"change"])):s.j.ja(n,r))};s.m(h,null,{i:n})}else s.La(n,{checkedValue:t})},update:function(){}};s.h.ga.value=!0;s.d.visible={update:function(n,t){var i=s.a.c(t()),r="none"!=n.style.display;i&&!r?n.style.display="":!i&&r&&(n.style.display="none")}},function(n){s.d[n]={init:function(t,i,r,u,f){return s.d.event.init.call(this,t,function(){var t={};return t[n]=i(),t},r,u,f)}}}("click");s.P=function(){};s.P.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource");};s.P.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock");};s.P.prototype.makeTemplateSource=function(n,i){if("string"==typeof n){i=i||t;var r=i.getElementById(n);if(!r)throw Error("Cannot find template with ID "+n);return new s.v.n(r)}if(1==n.nodeType||8==n.nodeType)return new s.v.sa(n);throw Error("Unknown template type: "+n);};s.P.prototype.renderTemplate=function(n,t,i,r){return n=this.makeTemplateSource(n,r),this.renderTemplateSource(n,t,i,r)};s.P.prototype.isTemplateRewritten=function(n,t){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(n,t).data("isRewritten")};s.P.prototype.rewriteTemplate=function(n,t,i){n=this.makeTemplateSource(n,i);t=t(n.text());n.text(t);n.data("isRewritten",!0)};s.b("templateEngine",s.P);s.Ib=function(){function n(n,t,i,r){var o,f,u,e;for(n=s.h.Ab(n),o=s.h.va,f=0;f<n.length;f++)if(u=n[f].key,o.hasOwnProperty(u))if(e=o[u],"function"==typeof e){if(u=e(n[f].value))throw Error(u);}else if(!e)throw Error("This template engine does not support the '"+u+"' binding within its templates");return i="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+s.h.Xa(n,{valueAccessors:!0})+" } })()},'"+i.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(i)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,i=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Tc:function(n,t,i){t.isTemplateRewritten(n,i)||t.rewriteTemplate(n,function(n){return s.Ib.jd(n,t)},i)},jd:function(r,u){return r.replace(t,function(t,i,r,f,e){return n(e,i,r,u)}).replace(i,function(t,i){return n(i,"<!-- ko -->","#comment",u)})},Jc:function(n,t){return s.N.yb(function(i,r){var u=i.nextSibling;u&&u.nodeName.toLowerCase()===t&&s.La(u,n,r)})}}}();s.b("__tr_ambtns",s.Ib.Jc),function(){var i,t;s.v={};s.v.n=function(n){if(this.n=n){var t=s.a.A(n);this.eb="script"===t?1:"textarea"===t?2:"template"==t&&n.content&&11===n.content.nodeType?3:4}};s.v.n.prototype.text=function(){var n=1===this.eb?"text":2===this.eb?"value":"innerHTML",t;if(0==arguments.length)return this.n[n];t=arguments[0];"innerHTML"===n?s.a.Eb(this.n,t):this.n[n]=t};i=s.a.e.J()+"_";s.v.n.prototype.data=function(n){if(1===arguments.length)return s.a.e.get(this.n,i+n);s.a.e.set(this.n,i+n,arguments[1])};t=s.a.e.J();s.v.n.prototype.nodes=function(){var i=this.n;if(0==arguments.length)return(s.a.e.get(i,t)||{}).mb||(3===this.eb?i.content:4===this.eb?i:n);s.a.e.set(i,t,{mb:arguments[0]})};s.v.sa=function(n){this.n=n};s.v.sa.prototype=new s.v.n;s.v.sa.prototype.text=function(){if(0==arguments.length){var i=s.a.e.get(this.n,t)||{};return i.Jb===n&&i.mb&&(i.Jb=i.mb.innerHTML),i.Jb}s.a.e.set(this.n,t,{Jb:arguments[0]})};s.b("templateSources",s.v);s.b("templateSources.domElement",s.v.n);s.b("templateSources.anonymousTemplate",s.v.sa)}(),function(){function t(n,t,i){var r;for(t=s.f.nextSibling(t);n&&(r=n)!==t;)n=s.f.nextSibling(r),i(r,n)}function f(n,i){if(n.length){var r=n[0],u=n[n.length-1],f=r.parentNode,e=s.S.instance,o=e.preprocessNode;if(o){if(t(r,u,function(n,t){var f=n.previousSibling,i=o.call(e,n);i&&(n===r&&(r=i[0]||t),n===u&&(u=i[i.length-1]||f))}),n.length=0,!r)return;r===u?n.push(r):(n.push(r,u),s.a.Ba(n,f))}t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.Ub(i,n)});t(r,u,function(n){1!==n.nodeType&&8!==n.nodeType||s.N.Cc(n,[i])});s.a.Ba(n,f)}}function i(n){return n.nodeType?n:0<n.length?n[0]:null}function e(n,t,u,e,o){o=o||{};var h=(n&&i(n)||u||{}).ownerDocument,c=o.templateEngine||r;if(s.Ib.Tc(u,c,h),u=c.renderTemplate(u,e,o,h),"number"!=typeof u.length||0<u.length&&"number"!=typeof u[0].nodeType)throw Error("Template engine must return an array of DOM nodes");h=!1;switch(t){case"replaceChildren":s.f.fa(n,u);h=!0;break;case"replaceNode":s.a.uc(n,u);h=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t);}return h&&(f(u,e),o.afterRender&&s.l.w(o.afterRender,null,[u,e.$data])),u}function o(n,t,i){return s.I(n)?n():"function"==typeof n?n(t,i):n}var r,u;s.Fb=function(t){if(t!=n&&!(t instanceof s.P))throw Error("templateEngine must inherit from ko.templateEngine");r=t};s.Cb=function(t,u,f,h,c){if(f=f||{},(f.templateEngine||r)==n)throw Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",h){var l=i(h);return s.B(function(){var n=u&&u instanceof s.R?u:new s.R(u,null,null,null,{exportDependencies:!0}),r=o(t,n.$data,n),n=e(h,c,r,n,f);"replaceNode"==c&&(h=n,l=i(h))},null,{ya:function(){return!l||!s.a.qb(l)},i:l&&"replaceNode"==c?l.parentNode:l})}return s.N.yb(function(n){s.Cb(t,u,f,n,"replaceNode")})};s.pd=function(t,i,r,u,h){function l(n,t){f(t,c);r.afterRender&&r.afterRender(t,n);c=null}function a(n,i){c=h.createChildContext(n,r.as,function(n){n.$index=i});var u=o(t,n,c);return e(null,"ignoreTargetNode",u,c,r)}var c;return s.B(function(){var t=s.a.c(i)||[];"undefined"==typeof t.length&&(t=[t]);t=s.a.Ma(t,function(t){return r.includeDestroyed||t===n||null===t||!s.a.c(t._destroy)});s.l.w(s.a.Db,null,[u,t,a,r,l])},null,{i:u})};u=s.a.e.J();s.d.template={init:function(n,t){var i=s.a.c(t());if("string"==typeof i||i.name)s.f.za(n);else{if("nodes"in i){if(i=i.nodes||[],s.I(i))throw Error('The "nodes" option must be a plain, non-observable array.');}else i=s.f.childNodes(n);i=s.a.nc(i);new s.v.sa(n).nodes(i)}return{controlsDescendantBindings:!0}},update:function(t,i,r,f,e){var o=i();i=s.a.c(o);r=!0;f=null;"string"==typeof i?i={}:(o=i.name,"if"in i&&(r=s.a.c(i["if"])),r&&"ifnot"in i&&(r=!s.a.c(i.ifnot)));"foreach"in i?f=s.pd(o||t,r&&i.foreach||[],i,t,e):r?(e="data"in i?e.ac(i.data,i.as):e,f=s.Cb(o||t,e,i,t)):s.f.za(t);e=f;(i=s.a.e.get(t,u))&&"function"==typeof i.k&&i.k();s.a.e.set(t,u,e&&e.ca()?e:n)}};s.h.va.template=function(n){return n=s.h.Ab(n),1==n.length&&n[0].unknown||s.h.fd(n,"name")?null:"This template engine does not support anonymous templates nested within its templates"};s.f.aa.template=!0}();s.b("setTemplateEngine",s.Fb);s.b("renderTemplate",s.Cb);s.a.hc=function(n,t,i){if(n.length&&t.length)for(var o,r,f,e,u=o=0;(!i||u<i)&&(f=n[o]);++o){for(r=0;e=t[r];++r)if(f.value===e.value){f.moved=e.index;e.moved=f.index;t.splice(r,1);u=r=0;break}u+=r}};s.a.lb=function(){function n(n,t,i,r,u){for(var o=Math.min,l=Math.max,a=[],c=n.length,f,h=t.length,v=h-c||1,w=c+h+1,y,p,b,e=0;e<=c;e++)for(p=y,a.push(y=[]),b=o(h,e+v),f=l(0,e-1);f<=b;f++)y[f]=f?e?n[e-1]===t[f-1]?p[f-1]:o(p[f]||w,y[f-1]||w)+1:f+1:e+1;for(o=[],l=[],v=[],e=c,f=h;e||f;)h=a[e][f]-1,f&&h===a[e][f-1]?l.push(o[o.length]={status:i,value:t[--f],index:f}):e&&h===a[e-1][f]?v.push(o[o.length]={status:r,value:n[--e],index:e}):(--f,--e,u.sparse||o.push({status:"retained",value:t[f]}));return s.a.hc(v,l,!u.dontLimitMoves&&10*c),o.reverse()}return function(t,i,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},t=t||[],i=i||[],t.length<i.length?n(t,i,"added","deleted",r):n(i,t,"deleted","added",r)}}();s.b("utils.compareArrays",s.a.lb),function(){function r(t,i,r,u,f){var e=[],o=s.B(function(){var n=i(r,f,s.a.Ba(e,t))||[];0<e.length&&(s.a.uc(e,n),u&&s.l.w(u,null,[r,n,f]));e.length=0;s.a.ta(e,n)},null,{i:t,ya:function(){return!s.a.Tb(e)}});return{ea:e,B:o.ca()?o:n}}var t=s.a.e.J(),i=s.a.e.J();s.a.Db=function(u,f,e,o,h){function ut(n,t){c=nt[t];tt!==t&&(rt[n]=c);c.tb(tt++);s.a.Ba(c.ea,u);b.push(c);k.push(c)}function p(n,t){if(n)for(var i=0,r=t.length;i<r;i++)t[i]&&s.a.r(t[i].ea,function(r){n(r,i,t[i].ka)})}var l,y,ft;f=f||[];o=o||{};var y=s.a.e.get(u,t)===n,nt=s.a.e.get(u,t)||[],w=s.a.ib(nt,function(n){return n.ka}),a=s.a.lb(w,f,o.dontLimitMoves),b=[],v=0,tt=0,it=[],k=[];f=[];for(var rt=[],w=[],c,l=0,d,g;d=a[l];l++)switch(g=d.moved,d.status){case"deleted":g===n&&(c=nt[v],c.B&&(c.B.k(),c.B=n),s.a.Ba(c.ea,u).length&&(o.beforeRemove&&(b.push(c),k.push(c),c.ka===i?c=null:f[l]=c),c&&it.push.apply(it,c.ea)));v++;break;case"retained":ut(l,v++);break;case"added":g!==n?ut(l,g):(c={ka:d.value,tb:s.O(tt++)},b.push(c),k.push(c),y||(w[l]=c))}for(s.a.e.set(u,t,b),p(o.beforeMove,rt),s.a.r(it,o.beforeRemove?s.ba:s.removeNode),l=0,y=s.f.firstChild(u);c=k[l];l++){for(c.ea||s.a.extend(c,r(u,e,c.ka,h,c.tb)),v=0;a=c.ea[v];y=a.nextSibling,ft=a,v++)a!==y&&s.f.kc(u,a,ft);!c.ad&&h&&(h(c.ka,c.ea,c.tb),c.ad=!0)}for(p(o.beforeRemove,f),l=0;l<f.length;++l)f[l]&&(f[l].ka=i);p(o.afterMove,rt);p(o.afterAdd,w)}}();s.b("utils.setDomNodeChildrenFromArrayMapping",s.a.Db);s.X=function(){this.allowTemplateRewriting=!1};s.X.prototype=new s.P;s.X.prototype.renderTemplateSource=function(n,t,i,r){return(t=(9>s.a.C?0:n.nodes)?n.nodes():null)?s.a.W(t.cloneNode(!0).childNodes):(n=n.text(),s.a.na(n,r))};s.X.vb=new s.X;s.Fb(s.X.vb);s.b("nativeTemplateEngine",s.X),function(){s.xb=function(){var n=this.ed=function(){if(!i||!i.tmpl)return 0;try{if(0<=i.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(n){}return 1}();this.renderTemplateSource=function(r,u,f,e){if(e=e||t,f=f||{},2>n)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=r.data("precompiled");return o||(o=r.text()||"",o=i.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),r.data("precompiled",o)),r=[u.$data],u=i.extend({koBindingContext:u},f.templateOptions),u=i.tmpl(o,r,u),u.appendTo(e.createElement("div")),i.fragments={},u};this.createJavaScriptEvaluatorBlock=function(n){return"{{ko_code ((function() { return "+n+" })()) }}"};this.addTemplate=function(n,i){t.write("<script type='text/html' id='"+n+"'>"+i+"<\/script>")};0<n&&(i.tmpl.tag.ko_code={open:"__.push($1 || '');"},i.tmpl.tag.ko_with={open:"with($1) {",close:"} "})};s.xb.prototype=new s.P;var n=new s.xb;0<n.ed&&s.Fb(n);s.b("jqueryTmplTemplateEngine",s.xb)}()})})()}(),function(n){n.fn.multilevelpushmenu=function(t){"use strict";var r=arguments,i=null;return this.each(function(){function p(t,i){if(t==undefined||i==undefined)return!1;t.on(i,function(r,u){t.hide();try{if(!r.pageX||!r.pageY)return!1;u=u||{pageX:r.pageX,pageY:r.pageY};var f=document.elementFromPoint(u.pageX,u.pageY);f=f.nodeType===3?f.parentNode:f;n(f).trigger(i,u)}catch(e){n.error("Error while propagating event: "+e.message)}finally{t.show()}})}function e(n){n.stopPropagation&&n.preventDefault?(n.stopPropagation(),n.preventDefault()):(n.cancelBubble=!0,n.returnValue=!1)}function nt(n){return typeof n=="number"&&parseFloat(n)==parseInt(n,10)&&!isNaN(n)}function w(){var n,i=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(t.hasOwnProperty(n)&&i.style[n]!==undefined)return t[n]}function s(t,i){var r=!0;n.each(t,function(n,t){r=r&&t});r&&window.setTimeout(function(){n.each(i,function(n,t){t.method.apply(this,Array.prototype.slice.call(t.args))})},1)}function l(){var t=arguments[0],r,f=u.settings.container.find("#"+u.settings.menuID+" div.levelHolder").filter(function(){var i=n(this).children("h2").text();return Object.prototype.toString.call(t)==="[object RegExp]"?i.match(t):i===t.toString()});return f.length>0?(i=f,r=i):(i=!1,r=i),r}function b(){var t=arguments[0],r,u;return t==undefined||t.length!==1?i=!1:(r=t.parents("div.levelHolder"),u=n.merge(r.get().reverse(),t.get()),i=u)}function v(){var t=u.settings.container.find("#"+u.settings.menuID+" div.levelHolder").filter(function(){return n(this).hasClass(u.settings.menuActiveClass)}),r=Math.max.apply(null,t.map(function(){return n(this).attr("data-level")}).get()),f=t.filter(function(){return n(this).attr("data-level")===r});return i=f}function k(){var t=arguments[0],r=arguments[1],c=arguments[2]!=undefined?arguments[2]:!1;if(t==undefined||r==undefined)return i=!1;var e=t.length===1?t.parents("div.levelHolder"):null,o=r.length===1?r.parents("div.levelHolder"):null,u=e!=null?n.merge(e.get().reverse(),t.get()):[],f=o!=null?n.merge(o.get().reverse(),r.get()):[],s=u.length>=f.length?u:f,h=s===u?f:u,l=n(s).filter(function(){return c?n.inArray(this,h)!==-1:n.inArray(this,h)===-1});return i=l}function tt(n,t){var f=u.settings.onMenuSwipe.apply(this,Array.prototype.slice.call([n,t,u.settings])),i,r;f&&!u.settings.isAnimating&&(n.type==="touchmove"&&(u.settings.swipe==="touchscreen"||u.settings.swipe==="both")?(e(n),n=n.touches?n:n.originalEvent,(n.touches||n.touches.length>0)&&(r=n.touches[0],u.settings.container.unbind("touchend"),u.settings.container.bind("touchend",function(n){e(n);t.significance=0;t.swipeStart=0;u.settings.container.unbind("touchend")}),t.swipeStart!=undefined&&t.swipeStart!==0?t.significance=r.pageX-t.swipeStart:(t.significance=0,t.swipeStart=r.pageX),Math.abs(t.significance)>u.settings.overlapWidth*.3&&(t.significance>0?h(level==undefined?level:t):o(level),t.significance=0,t.swipeStart=0))):n.type==="mousedown"&&(u.settings.swipe==="desktop"||u.settings.swipe==="both")&&(i=0,e(n),t.unbind("mousemove"),t.bind("mousemove",function(r){i=r.clientX-n.clientX;Math.abs(i)>u.settings.overlapWidth*.3&&(t.unbind("mousemove"),i>0?h(level==undefined?level:t):o(level))}),u.settings.container.unbind("mouseup"),u.settings.container.bind("mouseup",function(n){e(n);t.unbind("mousemove");u.settings.container.unbind("mouseup")})))}function it(n,t,i){u.settings.isAnimating||(u.settings.onGroupItemClick.apply(this,Array.prototype.slice.call([n,t,i,u.settings])),h(i.find("div:first")),u.settings.preventGroupItemClick&&e(n))}function rt(n,t,i){u.settings.onItemClick.apply(this,Array.prototype.slice.call([n,t,i,u.settings]));u.settings.preventItemClick&&e(n)}function ut(n,t){u.settings.isAnimating||(u.settings.onBackItemClick.apply(this,Array.prototype.slice.call([n,t,u.settings])),e(n),o(parseInt(t.attr("data-level")-1)))}function o(){var e,h,o;if(!u.settings.isAnimating){u.settings.onCollapseMenuStart.apply(this,Array.prototype.slice.call([u.settings]));var t=arguments[0],r=arguments[1],i={},f=n("#"+u.settings.menuID+" div.levelHolder:first"),v=t==undefined?!0:!1,c=w();i.collapsingEnded=!1;typeof t=="object"?t=t.attr("data-level"):typeof t=="string"?(e=l(t),t=e&&e.length===1?e.attr("data-level"):f.attr("data-level")):(t==undefined||!nt(t)||t<0)&&(t=f.attr("data-level"));r==undefined&&typeof r!="object"?r=[{method:u.settings.onCollapseMenuEnd,args:[u.settings]}]:n.merge(r,[{method:u.settings.onCollapseMenuEnd,args:[u.settings]}]);h=u.settings.container.find("#"+u.settings.menuID+" div.levelHolder").filter(function(){return n(this).attr("data-level")>t&&n(this).hasClass(u.settings.menuActiveClass)});o=u.settings.container.find("#"+u.settings.menuID+" div.levelHolder").filter(function(){return n(this).attr("data-level")<=t&&n(this).hasClass(u.settings.menuActiveClass)});o.length>0&&(i.prevAnimEnded=!1,h.each(function(t,f){n(f).removeClass(u.settings.menuActiveClass).one(c,function(){i.nextAnimEnded=!0;s(i,r)})}),i.nextAnimEnded=h.length>0?!1:!0,o.each(function(e,h){var l=o.filter(function(){return n(this).attr("data-level")===t});if(l.css("visibility","visible"),l.find("."+u.settings.backItemClass).css("visibility","visible"),l.find("ul").css("visibility","visible"),l.removeClass(u.settings.menuInactiveClass),n(h).attr("data-level")===f.attr("data-level")&&v)n(h).removeClass(u.settings.menuActiveClass).one(c,function(){f.addClass(u.settings.menuInactiveClass);i.prevAnimEnded=!0;s(i,r);n("#"+u.settings.menuID).removeClass("Active");n("html").css("overflow","");n(".hamburger").removeClass("active")})}));i.collapsingEnded=!0;s(i,r)}return a}function h(){var t=arguments[0],i,s=v(),r,f,e;return typeof t=="object"?i=t:typeof t=="string"?(r=l(t),r?i=r.eq(0):n.error(t+" menu level does not exist!")):i=n("#"+u.settings.menuID+" div.levelHolder:first"),f=k(i,s,!0),e=f.length>0?Math.max.apply(null,f.map(function(){return n(this).attr("data-level")}).get()):0,e<s.attr("data-level")?o(e,[{method:d,args:arguments}]):d.apply(this,Array.prototype.slice.call(arguments)),a}function d(){var f=arguments[0],r=arguments[1],i={},h=w(),c=n("#"+u.settings.menuID+" div.levelHolder:first"),a=f==undefined?!0:!1,o,y,p,e,k,t;if(!u.settings.isAnimating){if(u.settings.onExpandMenuStart.apply(this,Array.prototype.slice.call([u.settings])),i.expandingEnded=!1,r==undefined&&typeof r!="object"?r=[{method:u.settings.onExpandMenuEnd,args:[u.settings]}]:n.merge(r,[{method:u.settings.onExpandMenuEnd,args:[u.settings]}]),a){i.baseAnimEnded=!1;n("#"+u.settings.menuID).addClass("Active");n("html").css("overflow","hidden");n(".hamburger").addClass("active");c.addClass(u.settings.menuActiveClass).one(h,function(){u.settings.isAnimating=!1;i.baseAnimEnded=!0;s(i,r)})}else typeof f=="object"?t=f:typeof f=="string"?t=l(f):(t=null,n.error("Provided menu selector is not valid")),t&&t.length===1?(o=v(),y=o.length===1?o.attr("data-level"):0,p=t.width(),e=b(t),i.setToOpenAnimEnded=!1,e?(k=n(e).length-1,c.find("ul").each(function(){n(this).show(0)}),n(e).each(function(t,i){n(i).addClass(u.settings.menuActiveClass).one(h,function(){u.settings.isAnimating=!1;n(i).addClass(u.settings.menuInactiveClass)})}),n(e).last().queue(function(){n(this).removeClass(u.settings.menuInactiveClass);i.setToOpenAnimEnded=!0;s(i,r)}),t.css("visibility","visible"),t.find("."+u.settings.backItemClass).css("visibility","visible"),t.find("ul").css("visibility","visible"),t.removeClass(u.settings.menuInactiveClass)):n.error("Invalid menu object provided")):n.error("No or too many menus named "+f);i.expandingEnded=!0;s(i,r)}}function ft(){function t(t,i){t.level==undefined&&(t.level=0);n.each(t,function(){var o=n("<div />").attr({"class":"levelHolder "+u.settings.direction+(t.level===0&&!u.settings.collapsed?"":" "),"data-level":t.level}).bind(f.eventType.dragEventType,function(n){tt(n,o)}).appendTo(i),s;this.id!=undefined&&o.attr({id:this.id});this.title!==""&&(s=n("<h2 />").text(this.title),s.appendTo(o));t.level>0&&e(o);n("<ul />").appendTo(o);n.each(this.items,function(){r(this,o,-1)})})}function i(t){n("<span />",{"class":"anchorItem"}).append(n("<i />").attr({"class":"icon "+u.settings.groupIcon})).appendTo(t)}function r(){var r=arguments[0],e=arguments[1],s=arguments[2],h=e.find("ul:first"),u=n("<li />"),o;s<h.children("li").length&&s>=0?u.insertBefore(h.children("li").eq(s)):u.appendTo(h);r.id!=undefined&&u.attr({id:r.id});o=n("<a />").prop({href:r.link}).text(r.title).appendTo(u);r.items&&r.items.length>0?(o.bind(f.eventType.clickEventType,function(n){it(n,e,u)}),i(o),r.items.level=parseInt(e.attr("data-level"),10)+1,t(r.items,u)):o.bind(f.eventType.clickEventType,function(n){rt(n,e,u)})}function e(t){var r=n("<div />").attr({"class":u.settings.backItemClass}).appendTo(t),i=n("<a />").prop({href:"#"}).text(u.settings.backText).appendTo(r);n("<i />").prop({"class":u.settings.backItemIcon}).prependTo(i);i.bind(f.eventType.clickEventType,function(n){ut(n,t)})}var o=n("<nav />").prop({id:u.settings.menuID,className:u.settings.wrapperClass}).appendTo(u.settings.container);t(u.settings.menu,o)}var u=this,a=n(this),c=n(this),g=t.menu,f=n.extend({IsAnimating:!1,container:c,containersToPush:null,menuID:(c.prop("id")!=undefined&&c.prop("id")!==""?c.prop("id"):this.nodeName.toLowerCase())+"_multilevelpushmenu",wrapperClass:"menu_wrapper",menuInactiveClass:"menu_inactive",menuActiveClass:"menu_Active",isMobile:!1,menu:g,collapsed:!1,direction:"ltr",backText:"Back",backItemClass:"backItemClass",backItemIcon:"icon backIcon fa fa-angle-left",groupIcon:"icon groupIcon fa fa-angle-right",mode:"overlap",overlapWidth:40,preventItemClick:!1,preventGroupItemClick:!0,swipe:"both",eventType:{clickEventType:"click",dragEventType:"mousedown"},onCollapseMenuStart:function(){},onCollapseMenuEnd:function(){},onExpandMenuStart:function(){},onExpandMenuEnd:function(){},onGroupItemClick:function(){},onItemClick:function(){},onTitleItemClick:function(){},onBackItemClick:function(){},onMenuReady:function(){},onMenuSwipe:function(){}},t),et=function(){return ft(),p(u.settings.container,f.eventType.clickEventType),u.settings.onMenuReady.apply(this,Array.prototype.slice.call([u.settings])),a},ot=function(){n.data(u,"plugin_multilevelpushmenu")||(n.data(u,"plugin_multilevelpushmenu",f),u.settings=n.data(u,"plugin_multilevelpushmenu"));y[t]?i=y[t].apply(this,Array.prototype.slice.call(r,1)):typeof t!="object"&&t?n.error("No "+t+" method found in jQuery.multilevelpushmenu"):i=y.init.apply(this,arguments);i||(i=this)},y={init:function(){return et.apply(this,Array.prototype.slice.call(arguments))},propagateevent:function(){return p.apply(this,Array.prototype.slice.call(arguments))},collapse:function(){return o.apply(this,Array.prototype.slice.call(arguments))},expand:function(){return h.apply(this,Array.prototype.slice.call(arguments))},activemenu:function(){return v.apply(this,Array.prototype.slice.call(arguments))},findmenusbytitle:function(){return l.apply(this,Array.prototype.slice.call(arguments))},pathtoroot:function(){return b.apply(this,Array.prototype.slice.call(arguments))},comparepaths:function(){return k.apply(this,Array.prototype.slice.call(arguments))}};ot()}),i}}(jQuery)