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 kr(n,t,i){var r,e,u=(i=i||f).createElement("script");if(u.text=n,t)for(r in oe)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function ut(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ri[wr.call(n)]||"object":typeof n}function pi(n){var t=!!n&&"length"in n&&n.length,i=ut(n);return!u(n)&&!rt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function c(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function bi(n,t,r){return u(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-1<ii.call(t,n)!==r}):i.filter(t,n,r)}function fu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function et(n){return n}function fi(n){throw n;}function eu(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function oi(){f.removeEventListener("DOMContentLoaded",oi);n.removeEventListener("load",oi);i.ready()}function ce(n,t){return t.toUpperCase()}function y(n){return n.replace(se,"ms-").replace(he,ce)}function bt(){this.expando=i.expando+bt.uid++}function su(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:le.test(r)?JSON.parse(r):r)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function cu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&kt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function ht(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&dt(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=ki[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),ki[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&c(n,t)?i.merge([n],r):r}function di(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function yu(n,t,r,u,f){for(var e,o,p,a,w,v,c=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===ut(e))i.merge(y,e.nodeType?[e]:e);else if(vu.test(e)){for(o=o||c.appendChild(t.createElement("div")),p=(lu.exec(e)||["",""])[1].toLowerCase(),a=h[p]||h._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=c.firstChild).textContent=""}else y.push(t.createTextNode(e));for(c.textContent="",l=0;e=y[l++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=st(e),o=s(c.appendChild(e),"script"),w&&di(o),r)for(v=0;e=o[v++];)au.test(e.type||"")&&r.push(e);return c}function ct(){return!0}function lt(){return!1}function ye(n,t){return n===function(){try{return f.activeElement}catch(n){}}()==("focus"===t)}function nr(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)nr(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)),!1===f)f=lt;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=k.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e&&e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,ct)}function pu(n,t){return c(n,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function ke(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function de(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function wu(n,t){var u,s,f,h,c,e;if(1===t.nodeType){if(r.hasData(n)&&(e=r.get(n).events))for(f in r.remove(t,"handle events"),e)for(u=0,s=e[f].length;u<s;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(h=o.access(n),c=i.extend({},h),o.set(t,c))}}function at(n,t,f,o){t=pr(t);var a,b,l,v,h,y,c=0,p=n.length,d=p-1,w=t[0],k=u(w);if(k||1<p&&"string"==typeof w&&!e.checkClone&&we.test(w))return n.each(function(i){var r=n.eq(i);k&&(t[0]=w.call(this,i,r.html()));at(r,t,f,o)});if(p&&(b=(a=yu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=b),b||o)){for(v=(l=i.map(s(a,"script"),ke)).length;c<p;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(y=l[l.length-1].ownerDocument,i.map(l,de),c=0;c<v;c++)h=l[c],au.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(y,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},y):kr(h.textContent.replace(be,""),h,y))}return n}function bu(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(s(u)),u.parentNode&&(r&&st(u)&&di(s(u,"script")),u.parentNode.removeChild(u));return n}function ni(n,t,r){var o,s,h,f,u=n.style;return(r=r||ci(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||st(n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&tr.test(f)&&ge.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function du(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function ir(n){var t=i.cssProps[n]||tf[n];return t||(n in nf?n:tf[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=gu.length;t--;)if((n=gu[t]+i)in nf)return n}(n)||n)}function ff(n,t,i){var r=kt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function rr(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+b[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+b[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+b[o]+"Width",!0,f))):(s+=i.css(n,"padding"+b[o],!0,f),"padding"!==r?s+=i.css(n,"border"+b[o]+"Width",!0,f):h+=i.css(n,"border"+b[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function ef(n,t,r){var f=ci(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=ni(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(tr.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||!e.reliableTrDimensions()&&c(n,"tr")||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+rr(n,t,r||(o?"border":"content"),s,f,u)+"px"}function a(n,t,i,r,u){return new a.prototype.init(n,t,i,r,u)}function ur(){li&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ur):n.setTimeout(ur,i.fx.interval),i.fx.tick())}function cf(){return n.setTimeout(function(){vt=void 0}),vt=Date.now()}function ai(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=b[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function lf(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=vt||cf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:vt||cf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],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])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,lf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function tt(n){return(n.match(l)||[]).join(" ")}function it(n){return n.getAttribute&&n.getAttribute("class")||""}function fr(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function hr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||io.test(n)?u(n,i):hr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==ut(t))u(n,t);else for(f in t)hr(n+"["+f+"]",t[f],r,u)}function gf(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function ne(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===cr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ar(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}var p=[],yr=Object.getPrototypeOf,k=p.slice,pr=p.flat?function(n){return p.flat.call(n)}:function(n){return p.concat.apply([],n)},yi=p.push,ii=p.indexOf,ri={},wr=ri.toString,ui=ri.hasOwnProperty,br=ui.toString,ee=br.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType&&"function"!=typeof n.item},rt=function(n){return null!=n&&n===n.window},f=n.document,oe={type:!0,src:!0,nonce:!0,noModule:!0},dr="3.6.0",i=function(n,t){return new i.fn.init(n,t)},d,wi,tu,iu,ru,uu,l,ou,ei,ot,dt,ki,h,vu,gi,vt,li,yt,of,sf,hf,af,pt,vf,yf,pf,er,or,te,wt,ie,vr,vi,re,ue,fe;i.fn=i.prototype={jquery:dr,constructor:i,length:0,toArray:function(){return k.call(this)},get:function(n){return null==n?k.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(k.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(n,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(n,t){return t%2}))},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:yi,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(f in s)t=s[f],"__proto__"!==f&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(dr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==wr.call(n))&&(!(t=yr(n))||"function"==typeof(i=ui.call(t,"constructor")&&t.constructor)&&br.call(i)===ee)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n,t,i){kr(n,{nonce:t&&t.nonce},i)},each:function(n,t){var r,i=0;if(pi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},makeArray:function(n,t){var r=t||[];return null!=n&&(pi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):yi.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ii.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=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(pi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return pr(f)},guid:1,support:e});"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){ri["[object "+t+"]"]=t.toLowerCase()});d=function(n){function u(n,t,r,u){var s,y,c,l,p,w,d,v=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!u&&(b(t),t=t||i,h)){if(11!==a&&(p=ar.exec(n)))if(s=p[1]){if(9===a){if(!(c=t.getElementById(s)))return r;if(c.id===s)return r.push(c),r}else if(v&&(c=v.getElementById(s))&&et(t,c)&&c.id===s)return r.push(c),r}else{if(p[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=p[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(d=n,v=t,1===a&&(er.test(n)||yi.test(n))){for((v=ti.test(n)&&ri(t.parentNode)||t)===t&&f.scope||((l=t.getAttribute("id"))?l=l.replace(pi,wi):t.setAttribute("id",l=e)),y=(w=ft(n)).length;y--;)w[y]=(l?"#"+l:":scope")+" "+pt(w[y]);d=w.join(",")}try{return k.apply(r,v.querySelectorAll(d)),r}catch(t){lt(n,!0)}finally{l===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){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 ki(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 yr(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function di(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&vr(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 gi(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&"parentNode"===f,s=nr++;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(l=(a=t[e]||(t[e]={}))[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[f])&&c[0]===v&&c[1]===s)return y[2]=c[2];if((l[f]=y)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(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,f,o){return r&&!r[e]&&(r=fi(r)),f&&!f[e]&&(f=fi(f,o)),l(function(e,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=e||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!e&&t?d:bt(d,w,n,s,h),c=i?f||(e?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(e){if(f||n){if(f){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);f(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=f?nt(e,v):w[l])&&(e[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),f?f(null,o,c,h):k.apply(o,c)})}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=wt(function(n){return n===o},c,!0),a=wt(function(n){return-1<nt(o,n)},c,!0),f=[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])f=[wt(ui(f),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(1<i&&ui(f),1<i&&pt(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&&pt(n))}f.push(u)}return ui(f)}var rt,f,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,nr=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},tr={}.hasOwnProperty,g=[],ir=g.pop,rr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",ur=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),fr=new RegExp("^"+r+"*,"+r+"*"),yi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),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("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),p=function(n,t){var i="0x"+n.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},pi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},bi=function(){b()},vr=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){rr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in f=u.support={},oi=u.isXML=function(n){var i=n&&n.namespaceURI,t=n&&(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!=i&&9===l.nodeType&&l.documentElement&&(s=(i=l).documentElement,h=!oi(i),c!=i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",bi,!1):u.attachEvent&&u.attachEvent("onunload",bi)),f.scope=a(function(n){return s.appendChild(n).appendChild(i.createElement("div")),"undefined"!=typeof n.querySelectorAll&&!n.querySelectorAll(":scope fieldset div").length}),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.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 r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.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=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){var t;s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+gt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");(t=i.createElement("input")).setAttribute("name","");n.appendChild(t);n.querySelectorAll("[name='']").length||o.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]");n.querySelectorAll("\\\f");o.push("[\\r\\n\\f]")}),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(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",ni)}),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},dt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!f.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 ki(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?ki(f[u],e[u]):f[u]==c?-1:e[u]==c?1:0}),i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if(b(n),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){lt(t,!0)}return 0<u(t,i,null,[n]).length},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 e=t.attrHandle[r.toLowerCase()],u=e&&tr.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(pi,wi)},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=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(dt),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&&or.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&&-1<f.indexOf(i):"$="===t?i&&f.slice(-i.length)===i:"~="===t?-1<(" "+f.replace(ur," ")+" ").indexOf(i):"|="===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),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):1<r.length?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(n.replace(at,"$1"));return i[e]?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 0<u(n,t).length}}),contains:l(function(n){return n=n.replace(y,p),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:l(function(n){return sr.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())===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:di(!1),disabled:di(!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,!0===n.selected},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 lr.test(n.nodeName)},input:function(n){return cr.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:t<i?t:i;0<=--r;)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})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return gi.prototype=t.filters=t.pseudos,t.setFilters=new gi,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;){for(o in e&&!(f=fr.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=yi.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),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)},kt=u.compile=function(n,r){var s,c,a,o,y,p,w=[],d=[],f=li[n+" "];if(!f){for(r||(r=ft(n)),s=r.length;s--;)(f=ei(r[s]))[e]?w.push(f):d.push(f);(f=li(n,(c=d,o=0<(a=w).length,y=0<c.length,p=function(n,r,f,e,s){var l,nt,d,g=0,p="0",tt=n&&[],w=[],it=ht,rt=n||y&&t.find.TAG("*",s),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ht=r==i||r||s);p!==ft&&null!=(l=rt[p]);p++){if(y&&l){for(nt=0,r||l.ownerDocument==i||(b(l),f=!h);d=c[nt++];)if(d(l,r||i,f)){e.push(l);break}s&&(v=ut)}o&&((l=!d&&l)&&g--,n&&tt.push(l))}if(g+=p,o&&p!==g){for(nt=0;d=a[nt++];)d(tt,w,r,f);if(n){if(0<g)while(p--)tt[p]||w[p]||(w[p]=ir.call(e));w=bt(w)}k.apply(e,w);s&&!n&&0<w.length&&1<g+a.length&&u.uniqueSort(e)}return s&&(v=ut,ht=it),tt},o?l(p):p))).selector=n}return f},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(2<(f=s[0]=s[0].slice(0)).length&&"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]))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),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},f.sortStable=e.split("").sort(dt).join("")===e,f.detectDuplicates=!!ut,b(),f.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)}),f.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(gt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=d;i.expr=d.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=d.uniqueSort;i.text=d.getText;i.isXMLDoc=d.isXML;i.contains=d.contains;i.escapeSelector=d.escape;var ft=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},gr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},nu=i.expr.match.needsContext;wi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;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 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(bi(this,n||[],!1))},not:function(n){return this.pushStack(bi(this,n||[],!0))},is:function(n){return!!bi(this,"string"==typeof n&&nu.test(n)?i(n):n||[],!1).length}});iu=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||tu,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:iu.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),wi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;tu=i(f);ru=/^(?:parents|prev(?:Until|All))/;uu={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(!nu.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ii.call(i(n),this[0]):ii.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 ft(n,"parentNode")},parentsUntil:function(n,t,i){return ft(n,"parentNode",i)},next:function(n){return fu(n,"nextSibling")},prev:function(n){return fu(n,"previousSibling")},nextAll:function(n){return ft(n,"nextSibling")},prevAll:function(n){return ft(n,"previousSibling")},nextUntil:function(n,t,i){return ft(n,"nextSibling",i)},prevUntil:function(n,t,i){return ft(n,"previousSibling",i)},siblings:function(n){return gr((n.parentNode||{}).firstChild,n)},children:function(n){return gr(n.firstChild)},contents:function(n){return null!=n.contentDocument&&yr(n.contentDocument)?n.contentDocument:(c(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)),1<this.length&&(uu[n]||i.uniqueSort(f),ru.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var a,h;n="string"==typeof n?(a=n,h={},i.each(a.match(l)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,f,t=[],s=[],e=-1,y=function(){for(f=f||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==ut(r)&&f(r)})}(arguments),r&&!o&&y()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||y()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};i.extend({Deferred:function(t){var f=[["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"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(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,e){function s(t,r,f,e){return function(){var h=this,c=arguments,l=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,et,e),s(o,r,fi,e)):(o++,i.call(n,s(o,r,et,e),s(o,r,fi,e),s(o,r,et,r.notifyWith))):(f!==et&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(f!==fi&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:et,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:et));f[2][3].add(s(0,n,u(r)?r:fi))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].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}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=k.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=1<arguments.length?k.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(eu(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)eu(f[t],s(t),r.reject);return r.promise()}});ou=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&ou.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ei=i.Deferred();i.fn.ready=function(n){return ei.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ei.resolveWith(f,[i])}});i.ready.then=ei.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",oi),n.addEventListener("load",oi));var w=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===ut(r))for(h in e=!0,r)w(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},se=/^-ms-/,he=/-([a-z])/g;ot=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};bt.uid=1;bt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},ot(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(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(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).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 bt,o=new bt,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.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 f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),su(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):w(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=su(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){o.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);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},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.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var hu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kt=new RegExp("^(?:([+-])=|)("+hu+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],g=f.documentElement,st=function(n){return i.contains(n.ownerDocument,n)},ve={composed:!0};g.getRootNode&&(st=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(ve)===n.ownerDocument});dt=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&st(n)&&"none"===i.css(n,"display")};ki={};i.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){dt(this)?i(this).show():i(this).hide()})}});var nt,si,gt=/^(?:checkbox|radio)$/i,lu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,au=/^$|^module$|\/(?:java|ecma)script/i;nt=f.createDocumentFragment().appendChild(f.createElement("div"));(si=f.createElement("input")).setAttribute("type","radio");si.setAttribute("checked","checked");si.setAttribute("name","t");nt.appendChild(si);e.checkClone=nt.cloneNode(!0).cloneNode(!0).lastChild.checked;nt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!nt.cloneNode(!0).lastChild.defaultValue;nt.innerHTML="<option><\/option>";e.option=!!nt.lastChild;h={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,"",""]};h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;e.option||(h.optgroup=h.option=[1,"<select multiple='multiple'>","<\/select>"]);vu=/<|&#?\w+;/;gi=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,a,k,v,w,h,s,c,o,b,d,y=r.get(n);if(ot(n))for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(g,e),u.guid||(u.guid=i.guid++),(v=y.events)||(v=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=gi.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=v[o])||((c=v[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,a)||n.addEventListener&&n.addEventListener(o,a)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=gi.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||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--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||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 u,h,c,e,f,l,s=new Array(arguments.length),t=i.event.fix(n),a=(r.get(this,"events")||Object.create(null))[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(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},click:{setup:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click",ct),!1},trigger:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click"),!0},_default:function(n){var t=n.target;return gt.test(t.type)&&t.click&&c(t,"input")&&r.get(t,"click")||c(t,"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){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ct:lt,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||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:lt,isPropagationStopped:lt,isImmediatePropagationStopped:lt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ct;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,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return hi(this,n,ye),!1},trigger:function(){return hi(this,n),!0},_default:function(){return!0},delegateType:t}});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,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return nr(this,n,t,i,r)},one:function(n,t,i,r){return nr(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!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=lt),this.each(function(){i.event.remove(this,n,r,t)})}});var pe=/<script|<style|<link/i,we=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=st(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&gt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)wu(o[u],f[u]);else wu(n,h);return 0<(f=s(h,"script")).length&&di(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(ot(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[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return bu(this,n,!0)},remove:function(n){return bu(this,n)},text:function(n){return w(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 at(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pu(this,n).appendChild(n)})},prepend:function(){return at(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return at(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(s(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 w(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&&!pe.test(n)&&!h[(lu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return at(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(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),yi.apply(f,u.get());return this.pushStack(f)}});var tr=new RegExp("^("+hu+")(?!px)[a-z%]+$","i"),ci=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},ku=function(n,t,i){var u,r,f={};for(r in t)f[r]=n.style[r],n.style[r]=t[r];for(r in u=i.call(n),t)n.style[r]=f[r];return u},ge=new RegExp(b.join("|"),"i");!function(){function r(){if(t){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";g.appendChild(s).appendChild(t);var i=n.getComputedStyle(t);h="1%"!==i.top;v=12===u(i.marginLeft);t.style.right="60%";a=36===u(i.right);c=36===u(i.width);t.style.position="absolute";l=12===u(t.offsetWidth/3);g.removeChild(s);t=null}}function u(n){return Math.round(parseFloat(n))}var h,c,l,a,o,v,s=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),c},pixelBoxStyles:function(){return r(),a},pixelPosition:function(){return r(),h},reliableMarginLeft:function(){return r(),v},scrollboxSize:function(){return r(),l},reliableTrDimensions:function(){var i,t,r,u;return null==o&&(i=f.createElement("table"),t=f.createElement("tr"),r=f.createElement("div"),i.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",g.appendChild(i).appendChild(t).appendChild(r),u=n.getComputedStyle(t),o=parseInt(u.height,10)+parseInt(u.borderTopWidth,10)+parseInt(u.borderBottomWidth,10)===t.offsetHeight,g.removeChild(i)),o}}))}();var gu=["Webkit","Moz","ms"],nf=f.createElement("div").style,tf={};var no=/^(none|table(?!-c[ea]).+)/,rf=/^--/,to={position:"absolute",visibility:"hidden",display:"block"},uf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ni(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=rf.test(t),s=n.style;if(l||(t=ir(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=kt.exec(r))&&f[1]&&(r=cu(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return rf.test(t)||(t=ir(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ni(n,t,u)),"normal"===f&&t in uf&&(f=uf[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!no.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ef(n,t,u):ku(n,to,function(){return ef(n,t,u)})},set:function(n,r,u){var s,f=ci(n),h=!e.scrollboxSize()&&"absolute"===f.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,f),o=u?rr(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-rr(n,t,"border",!1,f)-.5)),o&&(s=kt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),ff(0,r,o)}}});i.cssHooks.marginLeft=du(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ni(n,"marginLeft"))||n.getBoundingClientRect().left-ku(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}};"margin"!==n&&(i.cssHooks[n+t].set=ff)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ci(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,1<arguments.length)}});((i.Tween=a).prototype={constructor:a,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=a.propHooks[this.prop];return n&&n.get?n.get(this):a.propHooks._default.get(this)},run:function(n){var t,r=a.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):a.propHooks._default.set(this),this}}).init.prototype=a.prototype;(a.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,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[ir(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=a.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=a.prototype.init;i.fx.step={};sf=/^(?:toggle|show|hide)$/;hf=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return cu(i.elem,n,kt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&dt(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).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()})})),t)if(y=t[f],sf.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((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(ht([n],!0),o=n.style.display||o,l=i.css(n,"display"),ht([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ht([n],!0),v.done(function(){for(f in a||ht([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=lf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(dt).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=v(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?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&&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&&hf.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!1!==n&&(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(ai(t,!0),n,i,u)}});i.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("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(vt=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();vt=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){li||(li=!0,ur())};i.fx.stop=function(){li=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,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};yt=f.createElement("input");of=f.createElement("select").appendChild(f.createElement("option"));yt.type="checkbox";e.checkOn=""!==yt.value;e.optSelected=of.selected;(yt=f.createElement("input")).value="t";yt.type="radio";e.radioValue="t"===yt.value;pt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return w(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,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)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?af:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&c(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(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});af={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=pt[t]||i.find.attr;pt[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=pt[u],pt[u]=f,f=null!=r(n,t,i)?u:null,pt[u]=e),f}});vf=/^(?:input|select|textarea|button)$/i;yf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(this,i.prop,n,t,1<arguments.length)},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):vf.test(n.nodeName)||yf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.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,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,it(this)))});if((o=fr(n)).length)while(t=this[c++])if(f=it(t),r=1===t.nodeType&&" "+tt(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=tt(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if((o=fr(n)).length)while(r=this[c++])if(f=it(r),t=1===r.nodeType&&" "+tt(f)+" "){for(s=0;e=o[s++];)while(-1<t.indexOf(" "+e+" "))t=t.replace(" "+e+" "," ");f!==(h=tt(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,it(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=fr(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=it(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+tt(it(t))+" ").indexOf(i))return!0;return!1}});pf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?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()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(pf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:tt(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]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!c(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;er=/^(?:focusinfocus|focusoutblur)$/;or=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=ui.call(t,"type")?t.type:t,b=ui.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!er.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!rt(o)){for(d=a.delegateType||h,er.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||Object.create(null))[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&ot(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!ot(o)||v&&u(o[h])&&!rt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,or),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,or),i.event.triggered=void 0,l&&(o[v]=l)),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)}});e.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.document||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.document||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ti=n.location,wf={guid:Date.now()},sr=/\?/;i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return u=r&&r.getElementsByTagName("parsererror")[0],r&&!u||i.error("Invalid XML: "+(u?i.map(u.childNodes,function(n){return n.textContent}).join("\n"):t)),r};var io=/\[\]$/,bf=/\r?\n/g,ro=/^(?:submit|button|image|reset|file)$/i,uo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)hr(r,n[r],t,e);return f.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")&&uo.test(this.nodeName)&&!ro.test(n)&&(this.checked||!gt.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(bf,"\r\n")}}):{name:t.name,value:r.replace(bf,"\r\n")}}).get()}});var fo=/%20/g,eo=/#.*$/,oo=/([?&])_=[^&]*/,so=/^(.*?):[ \t]*([^\r\n]*)$/gm,ho=/^(?:GET|HEAD)$/,co=/^\/\//,kf={},cr={},df="*/".concat("*"),lr=f.createElement("a");return lr.href=ti.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ti.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":df,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?ar(ar(n,i.ajaxSettings),t):ar(i.ajaxSettings,n)},ajaxPrefilter:gf(kf),ajaxTransport:gf(cr),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=0<t?4:0,v=200<=t&&t<300||304===t,f&&(p=function(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]}(u,e,f)),!v&&-1<i.inArray("script",u.dataTypes)&&i.inArray("json",u.dataTypes)<0&&(u.converters["text script"]=function(){}),p=function(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]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=so.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},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&&(u.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),u.url=((t||u.url||ti.href)+"").replace(co,ti.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=lr.protocol+"//"+lr.host!=c.protocol+"//"+c.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),ne(kf,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!ho.test(u.type),o=u.url.replace(eo,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(fo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(sr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(oo,"$1"),p=(sr.test(o)?"&":"?")+"_="+wf.guid+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+df+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=ne(cr,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&0<u.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}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,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(n){for(var t in n.headers)"content-type"===t.toLowerCase()&&(n.contentType=n.headers[t]||"")}),i._evalUrl=function(n,t,r){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t,r)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(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 u(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=u(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){}},te={0:200,1223:204},wt=i.ajaxSettings.xhr(),e.cors=!!wt&&"withCredentials"in wt,e.ajax=wt=!!wt,i.ajaxTransport(function(t){var i,r;if(e.cors||wt&&!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];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(te[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=e.ontimeout=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(u){if(i)throw u;}},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){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).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)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),vr=[],vi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=vr.pop()||i.expando+"_"+wf.guid++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(vi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(vi,"$1"+e):!1!==t.jsonp&&(t.url+=(sr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,vr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((ie=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===ie.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=wi.exec(n))?[t.createElement(o[1])]:(o=yu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return-1<o&&(f=tt(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<e.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},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 v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},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,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||g})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return w(this,function(n,i,u){var f;if(rt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=du(e.pixelPosition,function(n,r){if(r)return r=ni(n,t),tr.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||(!0===f||!0===e?"margin":"border");return w(this,function(t,r,f){var e;return rt(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.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),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)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),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 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),re=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=k.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(k.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=c,i.isFunction=u,i.isWindow=rt,i.camelCase=y,i.type=ut,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},i.trim=function(n){return null==n?"":(n+"").replace(re,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),ue=n.jQuery,fe=n.$,i.noConflict=function(t){return n.$===i&&(n.$=fe),t&&n.jQuery===i&&(n.jQuery=ue),i},"undefined"==typeof t&&(n.jQuery=n.$=i),i}),"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,window)}):"object"==typeof module&&module.exports?module.exports=n(require("jquery"),window):n(jQuery,window)}(function(n,t){"use strict";function u(t){return 0<=function(n,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,u=r.exec(n)||[],f=r.exec(t)||[],i=1;i<=3;i++){if(+f[i]<+u[i])return 1;if(+u[i]<+f[i])return-1}return 0}(n.fn.jquery,t)}function i(i){var r=t.console;n.migrateDeduplicateWarnings&&e[i]||(e[i]=!0,n.migrateWarnings.push(i),r&&r.warn&&!n.migrateMute&&(r.warn("JQMIGRATE: "+i),n.migrateTrace&&r.trace&&r.trace()))}function h(n,t,r,u){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){return i(u),r},set:function(n){i(u);r=n}})}function r(n,t,r,u){n[t]=function(){return i(u),r.apply(this,arguments)}}function l(n){return n.replace(/-([a-z])/g,function(n,t){return t.toUpperCase()})}function tt(n){var i=t.document.implementation.createHTMLDocument("");return i.body.innerHTML=n,i.body&&i.body.innerHTML}function it(n){var t=n.replace(p,"<$1><\/$2>");t!==n&&tt(n)!==tt(t)&&i("HTML tags must be properly nested and closed: "+n)}var e,v,y,g,nt,f,p,rt,ut,ft,w,et,ot;n.migrateVersion="3.3.2";t.console&&t.console.log&&(n&&u("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),n.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(n.migrateMute?"":" with logging active")+", version "+n.migrateVersion));e={};n.migrateDeduplicateWarnings=!0;n.migrateWarnings=[];void 0===n.migrateTrace&&(n.migrateTrace=!0);n.migrateReset=function(){e={};n.migrateWarnings.length=0};"BackCompat"===t.document.compatMode&&i("jQuery is not compatible with Quirks Mode");var o,b,c,k={},st=n.fn.init,s=n.find,ht=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,ct=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,lt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(o in n.fn.init=function(n){var t=Array.prototype.slice.call(arguments);return"string"==typeof n&&"#"===n&&(i("jQuery( '#' ) is not a valid selector"),t[0]=[]),st.apply(this,t)},n.fn.init.prototype=n.fn,n.find=function(n){var r=Array.prototype.slice.call(arguments);if("string"==typeof n&&ht.test(n))try{t.document.querySelector(n)}catch(u){n=n.replace(ct,function(n,t,i,r){return"["+t+i+'"'+r+'"]'});try{t.document.querySelector(n);i("Attribute selector with '#' must be quoted: "+r[0]);r[0]=n}catch(u){i("Attribute selector with '#' was not fixed: "+r[0])}}return s.apply(this,r)},s)Object.prototype.hasOwnProperty.call(s,o)&&(n.find[o]=s[o]);r(n.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property");r(n,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse");r(n,"holdReady",n.holdReady,"jQuery.holdReady is deprecated");r(n,"unique",n.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort");h(n.expr,"filters",n.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos");h(n.expr,":",n.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");u("3.1.1")&&r(n,"trim",function(n){return null==n?"":(n+"").replace(lt,"")},"jQuery.trim is deprecated; use String.prototype.trim");u("3.2.0")&&(r(n,"nodeName",function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),r(n,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray"));u("3.3.0")&&(r(n,"isNumeric",function(n){var t=typeof n;return("number"==t||"string"==t)&&!isNaN(n-parseFloat(n))},"jQuery.isNumeric() is deprecated"),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){k["[object "+t+"]"]=t.toLowerCase()}),r(n,"type",function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?k[Object.prototype.toString.call(n)]||"object":typeof n},"jQuery.type is deprecated"),r(n,"isFunction",function(n){return"function"==typeof n},"jQuery.isFunction() is deprecated"),r(n,"isWindow",function(n){return null!=n&&n===n.window},"jQuery.isWindow() is deprecated"));n.ajax&&(b=n.ajax,c=/(=)\?(?=&|$)|\?\?/,n.ajax=function(){var n=b.apply(this,arguments);return n.promise&&(r(n,"success",n.done,"jQXHR.success is deprecated and removed"),r(n,"error",n.fail,"jQXHR.error is deprecated and removed"),r(n,"complete",n.always,"jQXHR.complete is deprecated and removed")),n},u("4.0.0")||n.ajaxPrefilter("+json",function(n){!1!==n.jsonp&&(c.test(n.url)||"string"==typeof n.data&&0===(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&c.test(n.data))&&i("JSON-to-JSONP auto-promotion is deprecated")}));var at=n.fn.removeAttr,vt=n.fn.toggleClass,yt=/\S+/g;n.fn.removeAttr=function(t){var r=this;return n.each(t.match(yt),function(t,u){n.expr.match.bool.test(u)&&(i("jQuery.fn.removeAttr no longer sets boolean properties: "+u),r.prop(u,!1))}),at.apply(this,arguments)};var d,a=!(n.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?vt.apply(this,arguments):(i("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var i=this.getAttribute&&this.getAttribute("class")||"";i&&n.data(this,"__className__",i);this.setAttribute&&this.setAttribute("class",!i&&!1!==t&&n.data(this,"__className__")||"")}))}),pt=/^[a-z]/,wt=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;n.swap&&n.each(["height","width","reliableMarginRight"],function(t,i){var r=n.cssHooks[i]&&n.cssHooks[i].get;r&&(n.cssHooks[i].get=function(){var n;return a=!0,n=r.apply(this,arguments),a=!1,n})});n.swap=function(n,t,r,u){var e,f,o={};for(f in a||i("jQuery.swap() is undocumented and deprecated"),t)o[f]=n.style[f],n.style[f]=t[f];for(f in e=r.apply(n,u||[]),t)n.style[f]=o[f];return e};u("3.4.0")&&"undefined"!=typeof Proxy&&(n.cssProps=new Proxy(n.cssProps||{},{set:function(){return i("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}}));n.cssNumber||(n.cssNumber={});d=n.fn.css;n.fn.css=function(t,r){var f,u,e=this;return t&&"object"==typeof t&&!Array.isArray(t)?(n.each(t,function(t,i){n.fn.css.call(e,t,i)}),this):("number"==typeof r&&(f=l(t),u=f,pt.test(u)&&wt.test(u[0].toUpperCase()+u.slice(1))||n.cssNumber[f]||i('Number-typed values are deprecated for jQuery.fn.css( "'+t+'", value )')),d.apply(this,arguments))};f=n.data;n.data=function(t,r,u){var o,s,e;if(r&&"object"==typeof r&&2===arguments.length){for(e in o=n.hasData(t)&&f.call(this,t),s={},r)e!==l(e)?(i("jQuery.data() always sets/gets camelCased names: "+e),o[e]=r[e]):s[e]=r[e];return f.call(this,t,s),r}return r&&"string"==typeof r&&r!==l(r)&&(o=n.hasData(t)&&f.call(this,t))&&r in o?(i("jQuery.data() always sets/gets camelCased names: "+r),2<arguments.length&&(o[r]=u),o[r]):f.apply(this,arguments)};n.fx&&(g=n.Tween.prototype.run,nt=function(n){return n},n.Tween.prototype.run=function(){1<n.easing[this.easing].length&&(i("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),n.easing[this.easing]=nt);g.apply(this,arguments)},v=n.fx.interval||13,y="jQuery.fx.interval is deprecated",t.requestAnimationFrame&&Object.defineProperty(n.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return t.document.hidden||i(y),v},set:function(n){i(y);v=n}}));var bt=n.fn.load,kt=n.event.add,dt=n.event.fix;return n.event.props=[],n.event.fixHooks={},h(n.event.props,"concat",n.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),n.event.fix=function(t){var f,e=t.type,u=this.fixHooks[e],r=n.event.props;if(r.length)for(i("jQuery.event.props are deprecated and removed: "+r.join());r.length;)n.event.addProp(r.pop());if(u&&!u._migrated_&&(u._migrated_=!0,i("jQuery.event.fixHooks are deprecated and removed: "+e),(r=u.props)&&r.length))while(r.length)n.event.addProp(r.pop());return f=dt.call(this,t),u&&u.filter?u.filter(f,t):f},n.event.add=function(n,r){return n===t&&"load"===r&&"complete"===t.document.readyState&&i("jQuery(window).on('load'...) called after load event occurred"),kt.apply(this,arguments)},n.each(["load","unload","error"],function(t,r){n.fn[r]=function(){var n=Array.prototype.slice.call(arguments,0);return"load"===r&&"string"==typeof n[0]?bt.apply(this,n):(i("jQuery.fn."+r+"() is deprecated"),n.splice(0,0,r),arguments.length?this.on.apply(this,n):(this.triggerHandler.apply(this,n),this))}}),n.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,r){n.fn[r]=function(n,t){return i("jQuery.fn."+r+"() event shorthand is deprecated"),0<arguments.length?this.on(r,null,n,t):this.trigger(r)}}),n(function(){n(t.document).triggerHandler("ready")}),n.event.special.ready={setup:function(){this===t.document&&i("'ready' event is deprecated")}},n.fn.extend({bind:function(n,t,r){return i("jQuery.fn.bind() is deprecated"),this.on(n,null,t,r)},unbind:function(n,t){return i("jQuery.fn.unbind() is deprecated"),this.off(n,null,t)},delegate:function(n,t,r,u){return i("jQuery.fn.delegate() is deprecated"),this.on(t,n,r,u)},undelegate:function(n,t,r){return i("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(n,"**"):this.off(t,n||"**",r)},hover:function(n,t){return i("jQuery.fn.hover() is deprecated"),this.on("mouseenter",n).on("mouseleave",t||n)}}),p=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,rt=n.htmlPrefilter,n.UNSAFE_restoreLegacyHtmlPrefilter=function(){n.htmlPrefilter=function(n){return it(n),n.replace(p,"<$1><\/$2>")}},n.htmlPrefilter=function(n){return it(n),rt(n)},ft=n.fn.offset,n.fn.offset=function(){var n=this[0];return!n||n.nodeType&&n.getBoundingClientRect?ft.apply(this,arguments):(i("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},n.ajax&&(ut=n.param,n.param=function(t,r){var u=n.ajaxSettings&&n.ajaxSettings.traditional;return void 0===r&&u&&(i("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),r=u),ut.call(this,t,r)}),ot=n.fn.andSelf||n.fn.addBack,n.fn.andSelf=function(){return i("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),ot.apply(this,arguments)},n.Deferred&&(w=n.Deferred,et=[["resolve","done",n.Callbacks("once memory"),n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory"),n.Callbacks("memory")]],n.Deferred=function(t){var r=w(),u=r.promise();return r.pipe=u.pipe=function(){var t=arguments;return i("deferred.pipe() is deprecated"),n.Deferred(function(i){n.each(et,function(n,f){var e="function"==typeof t[n]&&t[n];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&"function"==typeof n.promise?n.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[f[0]+"With"](this===u?i.promise():this,e?[n]:arguments)})});t=null}).promise()},t&&t.call(r,r),r},n.Deferred.exceptionHook=w.exceptionHook),n}),function(n,t){"use strict";function f(i){var r=t.console;u[i]||(u[i]=!0,n.migrateWarnings.push(i),r&&r.warn&&!n.migrateMute&&(r.warn("JQMIGRATE: "+i),n.migrateTrace&&r.trace&&r.trace()))}function e(t,i,r,u){if(Object.defineProperty)try{Object.defineProperty(t,i,{configurable:!0,enumerable:!0,get:function(){return f(u),r},set:function(n){f(u);r=n}});return}catch(e){}n._definePropertyBroken=!0;t[i]=r}var r,i,u={};n.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}};n.browser||(r=n.uaMatch(navigator.userAgent),i={},r.browser&&(i[r.browser]=!0,i.version=r.version),i.chrome?i.webkit=!0:i.webkit&&(i.safari=!0),n.browser=i);e(n,"browser",n.browser,"jQuery.browser is deprecated");n.curCSS=function(t,i,r){return n(t).css(i,r)}}(jQuery,window),function(){for(var n,u=function(){},t=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],i=t.length,r=window.console=window.console||{};i--;)n=t[i],r[n]||(r[n]=u)}(),window.Modernizr=function(n,t,i){function a(n){h.cssText=n}function at(n,t){return a(y.join(n+";")+(t||""))}function c(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function ht(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&h[r]!==i)return t=="pfx"?r:!0;return!1}function vt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:c(u,"function")?u.bind(r||t):u;return!1}function e(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ft.join(r+" ")+r).split(" ");return c(t,"string")||c(t,"undefined")?ht(u,t):(u=(n+" "+et.join(r+" ")+r).split(" "),vt(u,t,i))}function yt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)p[i[r]]=!!(i[r]in f);return p.list&&(p.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),p}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,e,o,h=n.length;u<h;u++)f.setAttribute("type",e=n[u]),r=f.type!=="text",r&&(f.value=d,f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&f.style.WebkitAppearance!==i?(s.appendChild(f),o=t.defaultView,r=o.getComputedStyle&&o.getComputedStyle(f,null).WebkitAppearance!=="textfield"&&f.offsetHeight!==0,s.removeChild(f)):/^(search|tel)$/.test(e)||(r=/^(url|email)$/.test(e)?f.checkValidity&&f.checkValidity()===!1:f.value!=d)),ot[n[u]]=!!r;return ot}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},k=!0,s=t.documentElement,o="modernizr",rt=t.createElement(o),h=rt.style,f=t.createElement("input"),d=":)",pt={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),ut="Webkit Moz O ms",ft=ut.split(" "),et=ut.toLowerCase().split(" "),ct={svg:"http://www.w3.org/2000/svg"},r={},ot={},p={},g=[],nt=g.slice,w,l=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,e=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:o+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',o,'">',n,"<\/style>"].join(""),f.id=o,(h?f:e).innerHTML+=l,e.appendChild(f),h||(e.style.background="",e.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(e)),a=i(f,n),h?f.parentNode.removeChild(f):(e.parentNode.removeChild(e),s.style.overflow=v),!!a},lt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(l("@media "+t+" { #"+o+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},st=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=c(u[r],"function"),c(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),tt={}.hasOwnProperty,it,b;it=c(tt,"undefined")||c(tt.call,"undefined")?function(n,t){return t in n&&c(n.constructor.prototype[t],"undefined")}:function(n,t){return tt.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=nt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(nt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(nt.call(arguments)))},r});r.flexbox=function(){return e("flexWrap")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:l(["@media (",y.join("touch-enabled),("),o,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.hashchange=function(){return st("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return a("background-color:rgba(150,255,150,.5)"),v(h.backgroundColor,"rgba")};r.hsla=function(){return a("background-color:hsla(120,40%,100%,.5)"),v(h.backgroundColor,"rgba")||v(h.backgroundColor,"hsla")};r.multiplebgs=function(){return a("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(h.background)};r.backgroundsize=function(){return e("backgroundSize")};r.borderimage=function(){return e("borderImage")};r.borderradius=function(){return e("borderRadius")};r.boxshadow=function(){return e("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return at("opacity:.55"),/^0.55$/.test(h.opacity)};r.cssanimations=function(){return e("animationName")};r.csscolumns=function(){return e("columnCount")};r.cssgradients=function(){var n="background-image:";return a((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(h.backgroundImage,"gradient")};r.cssreflections=function(){return e("boxReflect")};r.csstransforms=function(){return!!e("transform")};r.csstransforms3d=function(){var n=!!e("perspective");return n&&"webkitPerspective"in s.style&&l("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return e("transition")};r.fontface=function(){var n;return l('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return l(["#",o,"{font:0/0 a}#",o,':after{content:"',d,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(n){return!1}};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==ct.svg};for(b in r)it(r,b)&&(w=b.toLowerCase(),u[w]=r[b](),g.push((u[w]?"":"no-")+w));return u.input||yt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)it(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof k!="undefined"&&k&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},a(""),rt=f=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function c(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function o(n){var t=h[n[s]];return t||(t={},e++,n[s]=e,h[e]=t),t}function l(n,r,u){if(r||(r=t),i)return r.createElement(n);u||(u=o(r));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)&&!f.tagUrn?u.frag.appendChild(f):f}function w(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||o(n);for(var f=r.frag.cloneNode(),u=0,e=c(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?l(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function a(n){n||(n=t);var u=o(n);return!r.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||b(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,s="_html5shiv",e=0,h={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){f=!0;i=!0}})();r={elements:u.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:u.shivCSS!==!1,supportsUnknownElements:i,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w};n.html5=r;a(t)}(this,t),u._version="2.7.1",u._prefixes=y,u._domPrefixes=et,u._cssomPrefixes=ft,u.mq=lt,u.hasEvent=st,u.testProp=function(n){return ht([n])},u.testAllProps=e,u.testStyles=l,u.prefixed=function(n,t,i){return t?e(n,t,i):e(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(k?" js "+g.join(" "):""),u}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,o,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:o,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in o.style,d=k&&!!t.createRange().compareNode,g=d?o:e.parentNode,o=n.opera&&"[object Opera]"==y.call(n.opera),o=!!t.attachEvent&&!o,nt=k?"object":o?"script":"img",et=o?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=f;n.yepnope.injectJs=function(n,i,r,o,h,c){var a=t.createElement("script"),v,y,o=o||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},o);h?a.onload():e.parentNode.insertBefore(a,e)};n.yepnope.injectCss=function(n,i,r,u,o,h){var u=t.createElement("link"),c,i=h?f:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(n){var t=n({});n.subscribe=function(){t.on.apply(t,arguments)};n.unsubscribe=function(){t.off.apply(t,arguments)};n.publish=function(){t.trigger.apply(t,arguments)}}(jQuery),function(){function s(n,t,i){i=(i||0)-1;for(var r=n?n.length:0;++i<r;)if(n[i]===t)return i;return-1}function g(n,t){var i=typeof t,r;return(n=n.k,"boolean"==i||null==t)?n[t]?0:-1:("number"!=i&&"string"!=i&&(i="object"),r="number"==i?t:ot+t,n=(n=n[i])&&n[r],"object"==i?n&&-1<s(n,t)?0:-1:n?0:-1)}function wt(n){var i=this.k,t=typeof n,r;"boolean"==t||null==n?i[n]=!0:("number"!=t&&"string"!=t&&(t="object"),r="number"==t?n:ot+n,i=i[t]||(i[t]={}),"object"==t?(i[r]||(i[r]=[])).push(n):i[r]=!0)}function ct(n){return n.charCodeAt(0)}function bt(n,t){var i=n.l,r=t.l;if(i!==r){if(i>r||typeof i=="undefined")return 1;if(i<r||typeof r=="undefined")return-1}return n.m-t.m}function rt(n){var u=-1,r=n.length,t=n[0],i=n[0|r/2],f=n[r-1];if(t&&typeof t=="object"&&i&&typeof i=="object"&&f&&typeof f=="object")return!1;for(t=v(),t["false"]=t["null"]=t["true"]=t.undefined=!1,i=v(),i.b=n,i.k=t,i.push=wt;++u<r;)i.push(n[u]);return i}function kt(n){return"\\"+hi[n]}function r(){return ft.pop()||[]}function v(){return et.pop()||{b:null,k:null,configurable:!1,l:null,enumerable:!1,"false":!1,m:0,leading:!1,maxWait:0,"null":!1,number:null,z:null,push:null,string:null,trailing:!1,"true":!1,undefined:!1,n:null,writable:!1}}function dt(){}function t(n){n.length=0;ft.length<lt&&ft.push(n)}function o(n){var t=n.k;t&&o(t);n.b=n.k=n.l=n.object=n.number=n.string=n.n=null;et.length<lt&&et.push(n)}function h(n,t,i){var r,u;for(t||(t=0),typeof i=="undefined"&&(i=n?n.length:0),r=-1,i=i-t||0,u=Array(0>i?0:i);++r<i;)u[r]=n[t+r];return u}function ut(a){function uu(n){if(!n||hi.call(n)!=e)return!1;var i=n.valueOf,t=typeof i=="function"&&(t=yr(i))&&yr(t);return t?n==t||yr(n)==t:ve(n)}function ft(t,i,r){if(!t||!n[typeof t])return t;i=i&&typeof r=="undefined"?i:et(i,r,3);for(var f=-1,u=n[typeof t]&&ci(t),e=u?u.length:0;++f<e&&(r=u[f],!1!==i(t[r],r,t)););return t}function nr(t,i,r){var u;if(!t||!n[typeof t])return t;i=i&&typeof r=="undefined"?i:et(i,r,3);for(u in t)if(!1===i(t[u],u,t))break;return t}function fu(t,i,r){var f,u=t,e=u;if(!u)return e;for(var s=arguments,h=0,l=typeof r=="number"?2:s.length;++h<l;)if((u=s[h])&&n[typeof u])for(var c=-1,o=n[typeof u]&&ci(u),a=o?o.length:0;++c<a;)f=o[c],"undefined"==typeof e[f]&&(e[f]=u[f]);return e}function eu(t,i,r){var o,u=t,s=u,h;if(!u)return s;var e=arguments,l=0,f=typeof r=="number"?2:e.length;for(3<f&&"function"==typeof e[f-2]?h=et(e[--f-1],e[f--],2):2<f&&"function"==typeof e[f-1]&&(h=e[--f]);++l<f;)if((u=e[l])&&n[typeof u])for(var a=-1,c=n[typeof u]&&ci(u),v=c?c.length:0;++a<v;)o=c[a],s[o]=h?h(s[o],u[o]):u[o];return s}function le(t){var i,r=[];if(!t||!n[typeof t])return r;for(i in t)wt.call(t,i)&&r.push(i);return r}function tt(n){return n&&typeof n=="object"&&!wi(n)&&wt.call(n,"__wrapped__")?n:new tr(n)}function tr(n,t){this.__chain__=!!t;this.__wrapped__=n}function ou(n,u,f,e,o){var s=n,l,a,v,y;if(f){if(s=f(s),typeof s!="undefined")return s;s=n}if(l=ai(s),l){if(a=hi.call(s),!i[a])return s;v=wi(s)}if(!l||!u)return l?v?h(s):eu({},s):s;switch(l=di[a],a){case w:case b:return new l(+s);case k:case c:return new l(s);case d:return l(s.source,ui.exec(s))}for(a=!e,e||(e=r()),o||(o=r()),y=e.length;y--;)if(e[y]==n)return o[y];return s=v?l(s.length):{},v&&(wt.call(n,"index")&&(s.index=n.index),wt.call(n,"input")&&(s.input=n.input)),e.push(n),o.push(s),(v?lt:ft)(n,function(n,t){s[t]=ou(n,u,f,e,o)}),a&&(t(e),t(o)),s}function et(n,t,i){var r,u;if(typeof n!="function")return yu;if(typeof t=="undefined"||(r=n.__bindData__||gi.funcNames&&!n.name,typeof r=="undefined"&&(u=ht&&ge.call(n),gi.funcNames||!u||fi.test(u)||(r=!0),(gi.funcNames||!r)&&(r=!gi.funcDecomp||ht.test(u),se(n,r))),!0!==r&&r&&1&r[1]))return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return gf(n,t)}function ir(n,t,i,r){var e,f,u;for(r=(r||0)-1,e=n?n.length:0,f=[];++r<e;)if(u=n[r],u&&typeof u=="object"&&typeof u.length=="number"&&(wi(u)||uf(u))){t||(u=ir(u,t,i));var o=-1,s=u.length,h=f.length;for(f.length+=s;++o<s;)f[h++]=u[o]}else i||f.push(u);return f}function or(i,u,f,o,s,h){var v,l,g,nt,a;if(f&&(a=f(i,u),typeof a!="undefined"))return!!a;if(i===u)return 0!==i||1/i==1/u;if(i===i&&!(i&&n[typeof i]||u&&n[typeof u]))return!1;if(null==i||null==u)return i===u;if(l=hi.call(i),v=hi.call(u),l==y&&(l=e),v==y&&(v=e),l!=v)return!1;switch(l){case w:case b:return+i==+u;case k:return i!=+i?u!=+u:0==i?1/i==1/u:i==+u;case d:case c:return i==ur(u)}if(v=l==p,!v){if(wt.call(i,"__wrapped__")||wt.call(u,"__wrapped__"))return or(i.__wrapped__||i,u.__wrapped__||u,f,o,s,h);if(l!=e||(l=i.constructor,g=u.constructor,l!=g&&!(it(l)&&l instanceof l&&it(g)&&g instanceof g)))return!1}for(g=!s,s||(s=r()),h||(h=r()),l=s.length;l--;)if(s[l]==i)return h[l]==u;if(nt=0,a=!0,s.push(i),h.push(u),v){if(l=i.length,nt=u.length,a=nt==i.length,!a&&!o)return a;for(;nt--;)if(v=l,g=u[nt],o)for(;v--&&!(a=or(i[v],g,f,o,s,h)););else if(!(a=or(i[nt],g,f,o,s,h)))break;return a}return nr(u,function(n,t,r){if(wt.call(r,t))return(nt++,a=wt.call(i,t)&&or(i[t],n,f,o,s,h))}),a&&!o&&nr(i,function(n,t,i){if(wt.call(i,t))return a=-1<--nt}),g&&(t(s),t(h)),a}function tf(n,t,i,r,u){(wi(t)?lt:ft)(t,function(t,f){var h,c,o=t,e=n[f],s;if(t&&((c=wi(t))||uu(t))){for(o=r.length;o--;)if(h=r[o]==t){e=u[o];break}h||(i&&(o=i(e,t),s=typeof o!="undefined")&&(e=o),s||(e=c?wi(e)?e:[]:uu(e)?e:{}),r.push(t),u.push(e),s||tf(e,t,i,r,u))}else i&&(o=i(e,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(e=o);n[f]=e})}function rf(n,i,u){var c=-1,v=cr(),y=n?n.length:0,l=[],h=!i&&y>=st&&v===s,f=u||h?r():l,e,a;for(h&&(e=rt(f),e?(v=g,f=e):(h=!1,f=u?f:(t(f),l)));++c<y;)e=n[c],a=u?u(e,c,n):e,(i?!c||f[f.length-1]!==a:0>v(f,a))&&((u||h)&&f.push(a),l.push(e));return h?(t(f.b),o(f)):u&&t(f),l}function su(n){return function(t,i,r){var u={},f,e;if(i=tt.createCallback(i,r,3),r=-1,f=t?t.length:0,typeof f=="number")for(;++r<f;)e=t[r],n(u,e,i(e,r,t),t);else ft(t,function(t,r,f){n(u,t,i(t,r,f),f)});return u}}function bi(n,t,i,r,u,f){var c=1&t,a=2&t,l=4&t,y=8&t,o=16&t,s=32&t,p=n,e,v,h;if(!a&&!it(n))throw new vi;return(o&&!i.length&&(t&=-17,o=i=!1),s&&!r.length&&(t&=-33,s=r=!1),e=n&&n.__bindData__,e)?(!c||1&e[1]||(e[4]=u),!c&&1&e[1]&&(t|=8),!l||4&e[1]||(e[5]=f),o&&er.apply(e[2]||(e[2]=[]),i),s&&er.apply(e[3]||(e[3]=[]),r),e[1]|=t,bi.apply(null,e)):(c&&!a&&!l&&!s&&(gi.fastBind||rr&&o)?(o&&(v=[u],er.apply(v,i)),h=o?rr.apply(n,v):rr.call(n,u)):h=function(){var e=arguments,v=c?u:this;return(l||o||s)&&(e=pi.call(e),o&&no.apply(e,i),s&&er.apply(e,r),l&&e.length<f)?(t|=16,bi(n,y?t:-4&t,e,null,u,f)):(a&&(n=v[p]),this instanceof h?(v=ai(n.prototype)?iu(n.prototype):{},e=n.apply(v,e),ai(e)?e:v):n.apply(v,e))},se(h,pi.call(arguments)),h)}function ae(n){return nf[n]}function cr(){var n=(n=tt.indexOf)===pf?s:n;return n}function ve(n){var t,i;return n&&hi.call(n)==e&&(t=n.constructor,!it(t)||t instanceof t)?(nr(n,function(n,t){i=t}),typeof i=="undefined"||wt.call(n,i)):!1}function ye(n){return he[n]}function uf(n){return n&&typeof n=="object"&&typeof n.length=="number"&&hi.call(n)==y||!1}function ff(n,t,i){var r=ci(n),u=r.length;for(t=et(t,i,3);u--&&(i=r[u],!1!==t(n[i],i,n)););return n}function br(n){var t=[];return nr(n,function(n,i){it(n)&&t.push(i)}),t.sort()}function ef(n){for(var t,i=-1,r=ci(n),f=r.length,u={};++i<f;)t=r[i],u[n[t]]=t;return u}function it(n){return typeof n=="function"}function ai(t){return!(!t||!n[typeof t])}function of(n){return typeof n=="number"||hi.call(n)==k}function lr(n){return typeof n=="string"||hi.call(n)==c}function kr(n){for(var t=-1,i=ci(n),r=i.length,u=li(r);++t<r;)u[t]=n[i[t]];return u}function sf(n,t,i){var e=-1,u=cr(),f=n?n.length:0,r=!1;return i=(0>i?yi(0,f+i):i)||0,wi(n)?r=-1<u(n,t,i):typeof f=="number"?r=-1<(lr(n)?n.indexOf(t,i):u(n,t,i)):ft(n,function(n){if(!(++e<i))return!(r=n===t)}),r}function hf(n,t,i){var r=!0,u;if(t=tt.createCallback(t,i,3),i=-1,u=n?n.length:0,typeof u=="number")for(;++i<u&&(r=!!t(n[i],i,n)););else ft(n,function(n,i,u){return r=!!t(n,i,u)});return r}function dr(n,t,i){var r=[],u,f;if(t=tt.createCallback(t,i,3),i=-1,u=n?n.length:0,typeof u=="number")for(;++i<u;)f=n[i],t(f,i,n)&&r.push(f);else ft(n,function(n,i,u){t(n,i,u)&&r.push(n)});return r}function hu(n,t,i){var r,f,u;if(t=tt.createCallback(t,i,3),i=-1,r=n?n.length:0,typeof r!="number")return ft(n,function(n,i,r){if(t(n,i,r))return(f=n,!1)}),f;for(;++i<r;)if(u=n[i],t(u,i,n))return u}function lt(n,t,i){var r=-1,u=n?n.length:0;if(t=t&&typeof i=="undefined"?t:et(t,i,3),typeof u=="number")for(;++r<u&&!1!==t(n[r],r,n););else ft(n,t);return n}function gr(n,t,i){var r=n?n.length:0,u;if(t=t&&typeof i=="undefined"?t:et(t,i,3),typeof r=="number")for(;r--&&!1!==t(n[r],r,n););else u=ci(n),r=u.length,ft(n,function(n,i,f){return i=u?u[--r]:--r,t(f[i],i,f)});return n}function nu(n,t,i){var r=-1,f=n?n.length:0,u;if(t=tt.createCallback(t,i,3),typeof f=="number")for(u=li(f);++r<f;)u[r]=t(n[r],r,n);else u=[],ft(n,function(n,i,f){u[++r]=t(n,i,f)});return u}function cf(n,t,i){var u=-1/0,r=u,e,f;if(!t&&wi(n))for(i=-1,e=n.length;++i<e;)f=n[i],f>r&&(r=f);else t=!t&&lr(n)?ct:tt.createCallback(t,i,3),lt(n,function(n,i,f){i=t(n,i,f);i>u&&(u=i,r=n)});return r}function cu(n,t){var i=-1,r=n?n.length:0,u;if(typeof r=="number")for(u=li(r);++i<r;)u[i]=n[i][t];return u||nu(n,t)}function lu(n,t,i,r){var f,u,e;if(!n)return i;if(f=3>arguments.length,t=et(t,r,4),u=-1,e=n.length,typeof e=="number")for(f&&(i=n[++u]);++u<e;)i=t(i,n[u],u,n);else ft(n,function(n,r,u){i=f?(f=!1,n):t(i,n,r,u)});return i}function lf(n,t,i,r){var u=3>arguments.length;return t=et(t,r,4),gr(n,function(n,r,f){i=u?(u=!1,n):t(i,n,r,f)}),i}function af(n){var i=-1,r=n?n.length:0,t=li(typeof r=="number"?r:0);return lt(n,function(n){var r=pu(++i);t[i]=t[r];t[r]=n}),t}function vf(n,t,i){var r,u;if(t=tt.createCallback(t,i,3),i=-1,u=n?n.length:0,typeof u=="number")for(;++i<u&&!(r=t(n[i],i,n)););else ft(n,function(n,i,u){return!(r=t(n,i,u))});return!!r}function yf(n){var f=-1,r=cr(),e=n?n.length:0,i=ir(arguments,!0,!0,1),h=[],u=e>=st&&r===s,t;for(u&&(t=rt(i),t?(r=g,i=t):u=!1);++f<e;)t=n[f],0>r(i,t)&&h.push(t);return u&&o(i),h}function au(n,t,i){var r=0,e=n?n.length:0,u;if(typeof t!="number"&&null!=t)for(u=-1,t=tt.createCallback(t,i,3);++u<e&&t(n[u],u,n);)r++;else if(r=t,null==r||i)return n?n[0]:f;return h(n,0,wr(yi(0,r),e))}function pf(n,t,i){if(typeof i=="number"){var r=n?n.length:0;i=0>i?yi(0,r+i):i||0}else if(i)return i=wf(n,t),n[i]===t?i:-1;return s(n,t,i)}function vu(n,t,i){if(typeof t!="number"&&null!=t){var r=0,u=-1,f=n?n.length:0;for(t=tt.createCallback(t,i,3);++u<f&&t(n[u],u,n);)r++}else r=null==t||i?1:yi(0,t);return h(n,r)}function wf(n,t,i,r){var u=0,f=n?n.length:u;for(i=i?tt.createCallback(i,r,1):yu,t=i(t);u<f;)r=u+f>>>1,i(n[r])<t?u=r+1:f=r;return u}function bf(n,t,i,r){return typeof t!="boolean"&&null!=t&&(i=(r=i)&&r[t]===n?null:t,t=!1),null!=i&&(i=tt.createCallback(i,r,3)),rf(n,t,i)}function kf(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,i=n?cf(cu(n,"length")):0,r=li(0>i?0:i);++t<i;)r[t]=cu(n,t);return r}function df(n,t){for(var i,r=-1,f=n?n.length:0,u={};++r<f;)i=n[r],t?u[i]=t[r]:i&&(u[i[0]]=i[1]);return u}function gf(n,t){return 2<arguments.length?bi(n,17,pi.call(arguments,2),null,t):bi(n,1,null,null,t)}function ne(n,t,i){function w(){u&&ku(u);r=u=y=f;(a||l!==t)&&(c=hr(),o=n.apply(h,e))}function p(){var i=t-(hr()-s);0<i?u=pr(p,i):(r&&ku(r),i=y,r=u=y=f,i&&(c=hr(),o=n.apply(h,e)))}var e,r,o,s,h,u,y,c=0,l=!1,a=!0,v;if(!it(n))throw new vi;return(t=yi(0,t)||0,!0===i)?(v=!0,a=!1):ai(i)&&(v=i.leading,l="maxWait"in i&&(yi(t,i.maxWait)||0),a="trailing"in i?i.trailing:a),function(){var f,i;return(e=arguments,s=hr(),h=this,y=a&&(u||!v),!1===l)?f=v&&!u:(r||v||(c=s),i=l-(s-c),0<i?r||(r=pr(w,i)):(r&&(r=ku(r)),c=s,o=n.apply(h,e))),u||t===l||(u=pr(p,t)),f&&(o=n.apply(h,e)),o}}function te(n){if(!it(n))throw new vi;var t=pi.call(arguments,1);return pr(function(){n.apply(f,t)},1)}function yu(n){return n}function ie(n,t){var i=n,r=!t||it(i);t||(i=tr,t=n,n=tt);lt(br(t),function(u){var f=n[u]=t[u];r&&(i.prototype[u]=function(){var r=this.__wrapped__,t=[r];return er.apply(t,arguments),t=f.apply(n,t),r&&typeof r=="object"&&r===t?this:new i(t)})})}function pu(n,t,i){var r=null==n,u=null==t;return null==i&&(typeof n=="boolean"&&u?(i=n,n=1):u||typeof t!="boolean"||(i=t,u=!0)),r&&u&&(t=1),n=+n||0,u?(t=n,n=0):t=+t||0,r=ro(),i||n%1||t%1?n+wr(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+de(r*(t-n+1))}function re(){return this.__wrapped__}var gi,ce;a=a?u.defaults(l.Object(),a,u.pick(l,si)):l;var li=a.Array,pe=a.Boolean,wu=a.Date,tu=a.Function,ar=a.Math,we=a.Number,sr=a.Object,vr=a.RegExp,ur=a.String,vi=a.TypeError,fr=[],bu=sr.prototype,be=a._,ki=vr("^"+ur(bu.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ke=ar.ceil,ku=a.clearTimeout,de=ar.floor,ge=tu.prototype.toString,yr=ki.test(yr=sr.getPrototypeOf)&&yr,wt=bu.hasOwnProperty,hr=ki.test(hr=wu.now)&&hr||function(){return+new wu},er=fr.push,ue=a.setImmediate,pr=a.setTimeout,fe=fr.splice,hi=bu.toString,no=fr.unshift,ee=function(){try{var t={},n=ki.test(n=sr.defineProperty)&&n,i=n(t,t,t)&&n}catch(r){}return i}(),rr=ki.test(rr=hi.bind)&&rr,iu=ki.test(iu=sr.create)&&iu,du=ki.test(du=li.isArray)&&du,to=a.isFinite,io=a.isNaN,ru=ki.test(ru=sr.keys)&&ru,yi=ar.max,wr=ar.min,gu=a.parseInt,ro=ar.random,pi=fr.slice,uo=ki.test(a.attachEvent),oe=rr&&!/\n|true/.test(rr+uo),di={};di[p]=li;di[w]=pe;di[b]=wu;di[yt]=tu;di[e]=sr;di[k]=we;di[d]=vr;di[c]=ur;tr.prototype=tt.prototype;gi=tt.support={};gi.fastBind=rr&&!oe;gi.funcDecomp=!ki.test(a.a)&&ht.test(ut);gi.funcNames=typeof tu.name=="string";tt.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:vt,variable:"",imports:{_:tt}};var se=ee?function(n,t){var i=v();i.value=t;ee(n,"__bindData__",i);o(i)}:dt,wi=du||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&hi.call(n)==p||!1},ci=ru?function(n){return ai(n)?ru(n):[]}:le,nf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},he=ef(nf),fo=vr("("+ci(he).join("|")+")","g"),eo=vr("["+ci(nf).join("")+"]","g"),oo=su(function(n,t,i){wt.call(n,i)?n[i]++:n[i]=1}),so=su(function(n,t,i){(wt.call(n,i)?n[i]:n[i]=[]).push(t)}),ho=su(function(n,t,i){n[i]=t});return oe&&pt&&typeof ue=="function"&&(te=function(n){if(!it(n))throw new vi;return ue.apply(a,arguments)}),ce=8==gu(at+"08")?gu:function(n,t){return gu(lr(n)?n.replace(ei,""):n,t||0)},tt.after=function(n,t){if(!it(t))throw new vi;return function(){if(1>--n)return t.apply(this,arguments)}},tt.assign=eu,tt.at=function(n){for(var t=arguments,i=-1,r=ir(t,!0,!1,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=li(t);++i<t;)u[i]=n[r[i]];return u},tt.bind=gf,tt.bindAll=function(n){for(var t,i=1<arguments.length?ir(arguments,!0,!1,1):br(n),r=-1,u=i.length;++r<u;)t=i[r],n[t]=bi(n[t],1,null,null,n);return n},tt.bindKey=function(n,t){return 2<arguments.length?bi(t,19,pi.call(arguments,2),null,n):bi(t,3,null,null,n)},tt.chain=function(n){return n=new tr(n),n.__chain__=!0,n},tt.compact=function(n){for(var t,i=-1,u=n?n.length:0,r=[];++i<u;)t=n[i],t&&r.push(t);return r},tt.compose=function(){for(var n=arguments,t=n.length;t--;)if(!it(n[t]))throw new vi;return function(){for(var t=arguments,i=n.length;i--;)t=[n[i].apply(this,t)];return t[0]}},tt.countBy=oo,tt.createCallback=function(n,t,i){var f=typeof n;if(null==n||"function"==f)return et(n,t,i);if("object"!=f)return function(t){return t[n]};var u=ci(n),e=u[0],r=n[e];return 1!=u.length||r!==r||ai(r)?function(t){for(var i=u.length,r=!1;i--&&(r=or(t[u[i]],n[u[i]],null,!0)););return r}:function(n){return n=n[e],r===n&&(0!==r||1/r==1/n)}},tt.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,bi(n,4,null,null,null,t)},tt.debounce=ne,tt.defaults=fu,tt.defer=te,tt.delay=function(n,t){if(!it(n))throw new vi;var i=pi.call(arguments,2);return pr(function(){n.apply(f,i)},t)},tt.difference=yf,tt.filter=dr,tt.flatten=function(n,t,i,r){return typeof t!="boolean"&&null!=t&&(i=(r=i)&&r[t]===n?null:t,t=!1),null!=i&&(n=nu(n,i,r)),ir(n,t)},tt.forEach=lt,tt.forEachRight=gr,tt.forIn=nr,tt.forInRight=function(n,t,i){var r=[],u;for(nr(n,function(n,t){r.push(t,n)}),u=r.length,t=et(t,i,3);u--&&!1!==t(r[u--],r[u],n););return n},tt.forOwn=ft,tt.forOwnRight=ff,tt.functions=br,tt.groupBy=so,tt.indexBy=ho,tt.initial=function(n,t,i){var r=0,f=n?n.length:0,u;if(typeof t!="number"&&null!=t)for(u=f,t=tt.createCallback(t,i,3);u--&&t(n[u],u,n);)r++;else r=null==t||i?1:t||r;return h(n,0,wr(yi(0,f-r),f))},tt.intersection=function(n){for(var f,i,h=arguments,c=h.length,u=-1,e=r(),v=-1,a=cr(),p=n?n.length:0,y=[],l=r();++u<c;)i=h[u],e[u]=a===s&&(i?i.length:0)>=st&&rt(u?h[u]:l);n:for(;++v<p;)if(f=e[0],i=n[v],0>(f?g(f,i):a(l,i))){for(u=c,(f||l).push(i);--u;)if(f=e[u],0>(f?g(f,i):a(h[u],i)))continue n;y.push(i)}for(;c--;)(f=e[c])&&o(f);return t(e),t(l),y},tt.invert=ef,tt.invoke=function(n,t){var u=pi.call(arguments,2),f=-1,e=typeof t=="function",i=n?n.length:0,r=li(typeof i=="number"?i:0);return lt(n,function(n){r[++f]=(e?t:n[t]).apply(n,u)}),r},tt.keys=ci,tt.map=nu,tt.max=cf,tt.memoize=function(n,t){function i(){var r=i.cache,u=t?t.apply(this,arguments):ot+arguments[0];return wt.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!it(n))throw new vi;return i.cache={},i},tt.merge=function(n){var u=arguments,i=2,f;if(!ai(n))return n;("number"!=typeof u[2]&&(i=u.length),3<i&&"function"==typeof u[i-2])?f=et(u[--i-1],u[i--],2):2<i&&"function"==typeof u[i-1]&&(f=u[--i]);for(var u=pi.call(arguments,1,i),e=-1,o=r(),s=r();++e<i;)tf(n,u[e],f,o,s);return t(o),t(s),n},tt.min=function(n,t,i){var u=1/0,r=u,e,f;if(!t&&wi(n))for(i=-1,e=n.length;++i<e;)f=n[i],f<r&&(r=f);else t=!t&&lr(n)?ct:tt.createCallback(t,i,3),lt(n,function(n,i,f){i=t(n,i,f);i<u&&(u=i,r=n)});return r},tt.omit=function(n,t,i){var e=cr(),r=typeof t=="function",u={},f;return r?t=tt.createCallback(t,i,3):f=ir(arguments,!0,!1,1),nr(n,function(n,i,o){(r?!t(n,i,o):0>e(f,i))&&(u[i]=n)}),u},tt.once=function(n){var i,t;if(!it(n))throw new vi;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}},tt.pairs=function(n){for(var i,t=-1,r=ci(n),u=r.length,f=li(u);++t<u;)i=r[t],f[t]=[i,n[i]];return f},tt.partial=function(n){return bi(n,16,pi.call(arguments,1))},tt.partialRight=function(n){return bi(n,32,null,pi.call(arguments,1))},tt.pick=function(n,t,i){var u={},r;if(typeof t!="function")for(var f=-1,e=ir(arguments,!0,!1,1),o=ai(n)?e.length:0;++f<o;)r=e[f],r in n&&(u[r]=n[r]);else t=tt.createCallback(t,i,3),nr(n,function(n,i,r){t(n,i,r)&&(u[i]=n)});return u},tt.pluck=cu,tt.pull=function(n){for(var t,f,i=arguments,r=0,e=i.length,u=n?n.length:0;++r<e;)for(t=-1,f=i[r];++t<u;)n[t]===f&&(fe.call(n,t--,1),u--);return n},tt.range=function(n,t,i){var r,u;for(n=+n||0,i=typeof i=="number"?i:+i||1,null==t&&(t=n,n=0),r=-1,t=yi(0,ke((t-n)/(i||1))),u=li(t);++r<t;)u[r]=n,n+=i;return u},tt.reject=function(n,t,i){return t=tt.createCallback(t,i,3),dr(n,function(n,i,r){return!t(n,i,r)})},tt.remove=function(n,t,i){var r=-1,u=n?n.length:0,f=[];for(t=tt.createCallback(t,i,3);++r<u;)i=n[r],t(i,r,n)&&(f.push(i),fe.call(n,r--,1),u--);return f},tt.rest=vu,tt.shuffle=af,tt.sortBy=function(n,t,i){var f=-1,r=n?n.length:0,u=li(typeof r=="number"?r:0);for(t=tt.createCallback(t,i,3),lt(n,function(n,i,r){var e=u[++f]=v();e.l=t(n,i,r);e.m=f;e.n=n}),r=u.length,u.sort(bt);r--;)n=u[r],u[r]=n.n,o(n);return u},tt.tap=function(n,t){return t(n),n},tt.throttle=function(n,t,i){var r=!0,u=!0;if(!it(n))throw new vi;return!1===i?r=!1:ai(i)&&(r="leading"in i?i.leading:r,u="trailing"in i?i.trailing:u),i=v(),i.leading=r,i.maxWait=t,i.trailing=u,n=ne(n,t,i),o(i),n},tt.times=function(n,t,i){n=-1<(n=+n)?n:0;var r=-1,u=li(n);for(t=et(t,i,1);++r<n;)u[r]=t(r);return u},tt.toArray=function(n){return n&&typeof n.length=="number"?h(n):kr(n)},tt.transform=function(n,t,i,r){var u=wi(n);return t=et(t,r,4),null==i&&(u?i=[]:(r=n&&n.constructor,i=ai(r&&r.prototype)?iu(r&&r.prototype):{})),(u?lt:ft)(n,function(n,r,u){return t(i,n,r,u)}),i},tt.union=function(){return rf(ir(arguments,!0,!0))},tt.uniq=bf,tt.values=kr,tt.where=dr,tt.without=function(n){return yf(n,pi.call(arguments,1))},tt.wrap=function(n,t){if(!it(t))throw new vi;return function(){var i=[n];return er.apply(i,arguments),t.apply(this,i)}},tt.zip=kf,tt.zipObject=df,tt.collect=nu,tt.drop=vu,tt.each=lt,tt.c=gr,tt.extend=eu,tt.methods=br,tt.object=df,tt.select=dr,tt.tail=vu,tt.unique=bf,tt.unzip=kf,ie(tt),tt.clone=function(n,t,i,r){return typeof t!="boolean"&&null!=t&&(r=i,i=t,t=!1),ou(n,t,typeof i=="function"&&et(i,r,1))},tt.cloneDeep=function(n,t,i){return ou(n,!0,typeof t=="function"&&et(t,i,1))},tt.contains=sf,tt.escape=function(n){return null==n?"":ur(n).replace(eo,ae)},tt.every=hf,tt.find=hu,tt.findIndex=function(n,t,i){var r=-1,u=n?n.length:0;for(t=tt.createCallback(t,i,3);++r<u;)if(t(n[r],r,n))return r;return-1},tt.findKey=function(n,t,i){var r;return t=tt.createCallback(t,i,3),ft(n,function(n,i,u){if(t(n,i,u))return(r=i,!1)}),r},tt.findLast=function(n,t,i){var r;return t=tt.createCallback(t,i,3),gr(n,function(n,i,u){if(t(n,i,u))return(r=n,!1)}),r},tt.findLastIndex=function(n,t,i){var r=n?n.length:0;for(t=tt.createCallback(t,i,3);r--;)if(t(n[r],r,n))return r;return-1},tt.findLastKey=function(n,t,i){var r;return t=tt.createCallback(t,i,3),ff(n,function(n,i,u){if(t(n,i,u))return(r=i,!1)}),r},tt.has=function(n,t){return n?wt.call(n,t):!1},tt.identity=yu,tt.indexOf=pf,tt.isArguments=uf,tt.isArray=wi,tt.isBoolean=function(n){return!0===n||!1===n||hi.call(n)==w},tt.isDate=function(n){return n?typeof n=="object"&&hi.call(n)==b:!1},tt.isElement=function(n){return n?1===n.nodeType:!1},tt.isEmpty=function(n){var i=!0,t,r;return n?(t=hi.call(n),r=n.length,t==p||t==c||t==y||t==e&&typeof r=="number"&&it(n.splice)?!r:(ft(n,function(){return i=!1}),i)):i},tt.isEqual=function(n,t,i,r){return or(n,t,typeof i=="function"&&et(i,r,2))},tt.isFinite=function(n){return to(n)&&!io(parseFloat(n))},tt.isFunction=it,tt.isNaN=function(n){return of(n)&&n!=+n},tt.isNull=function(n){return null===n},tt.isNumber=of,tt.isObject=ai,tt.isPlainObject=uu,tt.isRegExp=function(n){return n?typeof n=="object"&&hi.call(n)==d:!1},tt.isString=lr,tt.isUndefined=function(n){return typeof n=="undefined"},tt.lastIndexOf=function(n,t,i){var r=n?n.length:0;for(typeof i=="number"&&(r=(0>i?yi(0,r+i):wr(i,r-1))+1);r--;)if(n[r]===t)return r;return-1},tt.mixin=ie,tt.noConflict=function(){return a._=be,this},tt.parseInt=ce,tt.random=pu,tt.reduce=lu,tt.reduceRight=lf,tt.result=function(n,t){if(n){var i=n[t];return it(i)?n[t]():i}},tt.runInContext=ut,tt.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:ci(n).length},tt.some=vf,tt.sortedIndex=wf,tt.template=function(n,t,i){var o=tt.templateSettings,e;n||(n="");i=fu({},i,o);var s,h=fu({},i.imports,o.imports),o=ci(h),h=kr(h),c=0,u=i.interpolate||nt,r="__p+='",u=vr((i.escape||nt).source+"|"+u.source+"|"+(u===vt?ri:nt).source+"|"+(i.evaluate||nt).source+"|$","g");n.replace(u,function(t,i,u,f,e,o){return u||(u=f),r+=n.slice(c,o).replace(oi,kt),i&&(r+="'+__e("+i+")+'"),e&&(s=!0,r+="';"+e+";__p+='"),u&&(r+="'+((__t=("+u+"))==null?'':__t)+'"),c=o+t.length,t});r+="';\n";u=i=i.variable;u||(i="obj",r="with("+i+"){"+r+"}");r=(s?r.replace(ni,""):r).replace(ti,"$1").replace(ii,"$1;");r="function("+i+"){"+(u?"":i+"||("+i+"={});")+"var __t,__p='',__e=_.escape"+(s?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+r+"return __p}";try{e=tu(o,"return "+r).apply(f,h)}catch(l){throw l.source=r,l;}return t?e(t):(e.source=r,e)},tt.unescape=function(n){return null==n?"":ur(n).replace(fo,ye)},tt.uniqueId=function(n){var t=++gt;return ur(null==n?"":n)+t},tt.all=hf,tt.any=vf,tt.detect=hu,tt.findWhere=hu,tt.foldl=lu,tt.foldr=lf,tt.include=sf,tt.inject=lu,ft(tt,function(n,t){tt.prototype[t]||(tt.prototype[t]=function(){var t=[this.__wrapped__],i=this.__chain__;return er.apply(t,arguments),t=n.apply(tt,t),i?new tr(t,i):t})}),tt.first=au,tt.last=function(n,t,i){var r=0,e=n?n.length:0,u;if(typeof t!="number"&&null!=t)for(u=e,t=tt.createCallback(t,i,3);u--&&t(n[u],u,n);)r++;else if(r=t,null==r||i)return n?n[e-1]:f;return h(n,yi(0,e-r))},tt.sample=function(n,t,i){var r=n?n.length:0;return typeof r!="number"&&(n=kr(n)),null==t||i?n?n[pu(r-1)]:f:(n=af(n),n.length=wr(yi(0,t),n.length),n)},tt.take=au,tt.head=au,ft(tt,function(n,t){var i="sample"!==t;tt.prototype[t]||(tt.prototype[t]=function(t,r){var u=this.__chain__,f=n(this.__wrapped__,t,r);return u||null!=t&&(!r||i&&typeof t=="function")?new tr(f,u):f})}),tt.VERSION="2.1.0",tt.prototype.chain=function(){return this.__chain__=!0,this},tt.prototype.toString=function(){return ur(this.__wrapped__)},tt.prototype.value=re,tt.prototype.valueOf=re,lt(["join","pop","shift"],function(n){var t=fr[n];tt.prototype[n]=function(){var n=this.__chain__,i=t.apply(this.__wrapped__,arguments);return n?new tr(i,n):i}}),lt(["push","reverse","sort","unshift"],function(n){var t=fr[n];tt.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),lt(["concat","slice","splice"],function(n){var t=fr[n];tt.prototype[n]=function(){return new tr(t.apply(this.__wrapped__,arguments),this.__chain__)}}),tt}var f,ft=[],et=[],gt=0,ot=+new Date+"",st=75,lt=40,at=" \t\x0b\f ﻿\n\r\u2028\u2029 ᠎             　",ni=/\b__p\+='';/g,ti=/\b(__p\+=)''\+/g,ii=/(__e\(.*?\)|\b__t\))\+'';/g,ri=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ui=/\w*$/,fi=/^function[ \n\r\t]+\w/,vt=/<%=([\s\S]+?)%>/g,ei=RegExp("^["+at+"]*0+(?=.$)"),nt=/($^)/,ht=/\bthis\b/,oi=/['\n\r\t\u2028\u2029\\]/g,si="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),y="[object Arguments]",p="[object Array]",w="[object Boolean]",b="[object Date]",yt="[object Function]",k="[object Number]",e="[object Object]",d="[object RegExp]",c="[object String]",i={},u;i[yt]=!1;i[y]=i[p]=i[w]=i[b]=i[k]=i[e]=i[d]=i[c]=!0;var n={boolean:!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},hi={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},l=n[typeof window]&&window||this,tt=n[typeof exports]&&exports&&!exports.nodeType&&exports,it=n[typeof module]&&module&&!module.nodeType&&module,pt=it&&it.exports===tt&&tt,a=n[typeof global]&&global;a&&(a.global===a||a.window===a)&&(l=a);u=ut();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(l._=u,define(function(){return u})):tt&&it?pt?(it.exports=u)._=u:tt._=u:l._=u}.call(this),function(n){function at(n,t){return function(i){return u(n.call(this,i),t)}}function wi(n,t){return function(i){return this.lang().ordinal(n.call(this,i),t)}}function vt(){}function nt(n){dt(n);s(this,n)}function tt(n){var t=pt(n),i=t.year||0,r=t.month||0,u=t.week||0,f=t.day||0,e=t.hour||0,o=t.minute||0,s=t.second||0,h=t.millisecond||0;this._input=n;this._milliseconds=+h+1e3*s+6e4*o+36e5*e;this._days=+f+7*u;this._months=+r+12*i;this._data={};this._bubble()}function s(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.hasOwnProperty("toString")&&(n.toString=t.toString),t.hasOwnProperty("valueOf")&&(n.valueOf=t.valueOf),n}function a(n){return 0>n?Math.ceil(n):Math.floor(n)}function u(n,t){for(var i=n+"";i.length<t;)i="0"+i;return i}function it(n,i,r,u){var s,h,o=i._milliseconds,f=i._days,e=i._months;o&&n._d.setTime(+n._d+o*r);(f||e)&&(s=n.minute(),h=n.hour());f&&n.date(n.date()+f*r);e&&n.month(n.month()+e*r);o&&!u&&t.updateOffset(n);(f||e)&&(n.minute(s),n.hour(h))}function rt(n){return"[object Array]"===Object.prototype.toString.call(n)}function bi(n){return"[object Date]"===Object.prototype.toString.call(n)}function yt(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;e>u;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function h(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=su[n]||hu[t]||t}return n}function pt(n){var i,t,r={};for(t in n)n.hasOwnProperty(t)&&(i=h(t),i&&(r[i]=n[t]));return r}function ki(i){var r,u;if(0===i.indexOf("week"))r=7,u="day";else{if(0!==i.indexOf("month"))return;r=12;u="month"}t[i]=function(f,e){var o,s,c=t.fn._lang[i],h=[];if("number"==typeof f&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t.fn._lang,i,f||"")},null!=e)return s(e);for(o=0;r>o;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function wt(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function bt(n){return kt(n)?366:365}function kt(n){return 0==n%4&&0!=n%100||0==n%400}function dt(n){var t;n._a&&-2===n._pf.overflow&&(t=n._a[v]<0||n._a[v]>11?v:n._a[c]<1||n._a[c]>wt(n._a[e],n._a[v])?c:n._a[o]<0||n._a[o]>23?o:n._a[w]<0||n._a[w]>59?w:n._a[b]<0||n._a[b]>59?b:n._a[k]<0||n._a[k]>999?k:-1,n._pf._overflowDayOfYear&&(e>t||t>c)&&(t=c),n._pf.overflow=t)}function gt(n){n._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1}}function ni(n){return null==n._isValid&&(n._isValid=!isNaN(n._d.getTime())&&n._pf.overflow<0&&!n._pf.empty&&!n._pf.invalidMonth&&!n._pf.nullInput&&!n._pf.invalidFormat&&!n._pf.userInvalidated,n._strict&&(n._isValid=n._isValid&&0===n._pf.charsLeftOver&&0===n._pf.unusedTokens.length)),n._isValid}function ut(n){return n?n.toLowerCase().replace("_","-"):n}function di(n,t){return t.abbr=n,y[n]||(y[n]=new vt),y[n].set(t),y[n]}function gi(n){delete y[n]}function f(n){var r,u,i,f,e=0,o=function(n){if(!y[n]&&ci)try{require("./lang/"+n)}catch(t){}return y[n]};if(!n)return t.fn._lang;if(!rt(n)){if(u=o(n))return u;n=[n]}for(;e<n.length;){for(f=ut(n[e]).split("-"),r=f.length,i=ut(n[e+1]),i=i?i.split("-"):null;r>0;){if(u=o(f.slice(0,r).join("-")))return u;if(i&&i.length>=r&&yt(f,i,!0)>=r-1)break;r--}e++}return t.fn._lang}function nr(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function tr(n){for(var i=n.match(li),t=0,r=i.length;r>t;t++)i[t]=l[i[t]]?l[i[t]]:nr(i[t]);return function(u){var f="";for(t=0;r>t;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function ti(n,t){return n.isValid()?(t=ii(t,n.lang()),lt[t]||(lt[t]=tr(t)),lt[t](n)):n.lang().invalidDate()}function ii(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(g.lastIndex=0;i>=0&&g.test(n);)n=n.replace(g,r),g.lastIndex=0,i-=1;return n}function ir(n,t){switch(n){case"DDDD":return gr;case"YYYY":case"GGGG":case"gggg":return nu;case"YYYYY":case"GGGGG":case"ggggg":return tu;case"S":case"SS":case"SSS":case"DDD":return dr;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return iu;case"a":case"A":return f(t._l)._meridiemParse;case"X":return uu;case"Z":case"ZZ":return st;case"T":return ru;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"ww":case"W":case"WW":case"e":case"E":return kr;default:return new RegExp(or(er(n.replace("\\","")),"i"))}}function ri(n){var u=(st.exec(n)||[])[0],t=(u+"").match(ou)||["-",0,0],r=+(60*t[1])+i(t[2]);return"+"===t[0]?-r:r}function rr(n,t,r){var s,u=r._a;switch(n){case"M":case"MM":null!=t&&(u[v]=i(t)-1);break;case"MMM":case"MMMM":s=f(r._l).monthsParse(t);null!=s?u[v]=s:r._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(u[c]=i(t));break;case"DDD":case"DDDD":null!=t&&(r._dayOfYear=i(t));break;case"YY":u[e]=i(t)+(i(t)>68?1900:2e3);break;case"YYYY":case"YYYYY":u[e]=i(t);break;case"a":case"A":r._isPm=f(r._l).isPM(t);break;case"H":case"HH":case"h":case"hh":u[o]=i(t);break;case"m":case"mm":u[w]=i(t);break;case"s":case"ss":u[b]=i(t);break;case"S":case"SS":case"SSS":u[k]=i(1e3*("0."+t));break;case"X":r._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":r._useUTC=!0;r._tzm=ri(t);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":n=n.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":n=n.substr(0,2);t&&(r._w=r._w||{},r._w[n]=t)}}function ft(n){var r,a,y,p,b,u,l,s,k,d,h=[];if(!n._d){for(y=fr(n),n._w&&null==n._a[c]&&null==n._a[v]&&(b=function(i){return i?i.length<3?parseInt(i,10)>68?"19"+i:"20"+i:i:null==n._a[e]?t().weekYear():n._a[e]},u=n._w,null!=u.GG||null!=u.W||null!=u.E?l=ei(b(u.GG),u.W||1,u.E,4,1):(s=f(n._l),k=null!=u.d?fi(u.d,s):null!=u.e?parseInt(u.e,10)+s._week.dow:0,d=parseInt(u.w,10)||1,null!=u.d&&k<s._week.dow&&d++,l=ei(b(u.gg),d,k,s._week.doy,s._week.dow)),n._a[e]=l.year,n._dayOfYear=l.dayOfYear),n._dayOfYear&&(p=null==n._a[e]?y[e]:n._a[e],n._dayOfYear>bt(p)&&(n._pf._overflowDayOfYear=!0),a=ui(p,0,n._dayOfYear),n._a[v]=a.getUTCMonth(),n._a[c]=a.getUTCDate()),r=0;3>r&&null==n._a[r];++r)n._a[r]=h[r]=y[r];for(;7>r;r++)n._a[r]=h[r]=null==n._a[r]?2===r?1:0:n._a[r];h[o]+=i((n._tzm||0)/60);h[w]+=i((n._tzm||0)%60);n._d=(n._useUTC?ui:lr).apply(null,h)}}function ur(n){var t;n._d||(t=pt(n._i),n._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],ft(n))}function fr(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function et(n){n._a=[];n._pf.empty=!0;for(var t,r,s,c=f(n._l),i=""+n._i,a=i.length,h=0,e=ii(n._f,c).match(li)||[],u=0;u<e.length;u++)r=e[u],t=(ir(r,n).exec(i)||[])[0],t&&(s=i.substr(0,i.indexOf(t)),s.length>0&&n._pf.unusedInput.push(s),i=i.slice(i.indexOf(t)+t.length),h+=t.length),l[r]?(t?n._pf.empty=!1:n._pf.unusedTokens.push(r),rr(r,t,n)):n._strict&&!t&&n._pf.unusedTokens.push(r);n._pf.charsLeftOver=a-h;i.length>0&&n._pf.unusedInput.push(i);n._isPm&&n._a[o]<12&&(n._a[o]+=12);n._isPm===!1&&12===n._a[o]&&(n._a[o]=0);ft(n);dt(n)}function er(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function or(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function sr(n){var t,f,u,r,i;if(0===n._f.length)return n._pf.invalidFormat=!0,n._d=new Date(NaN),void 0;for(r=0;r<n._f.length;r++)i=0,t=s({},n),gt(t),t._f=n._f[r],et(t),ni(t)&&(i+=t._pf.charsLeftOver,i+=10*t._pf.unusedTokens.length,t._pf.score=i,(null==u||u>i)&&(u=i,f=t));s(n,f||t)}function hr(n){var t,i=n._i,r=fu.exec(i);if(r){for(t=4;t>0;t--)if(r[t]){n._f=eu[t-1]+(r[6]||" ");break}for(t=0;4>t;t++)if(ai[t][1].exec(i)){n._f+=ai[t][0];break}st.exec(i)&&(n._f+=" Z");et(n)}else n._d=new Date(i)}function cr(t){var i=t._i,r=pr.exec(i);i===n?t._d=new Date:r?t._d=new Date(+r[1]):"string"==typeof i?hr(t):rt(i)?(t._a=i.slice(0),ft(t)):bi(i)?t._d=new Date(+i):"object"==typeof i?ur(t):t._d=new Date(i)}function lr(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 1970>n&&o.setFullYear(n),o}function ui(n){var t=new Date(Date.UTC.apply(null,arguments));return 1970>n&&t.setUTCFullYear(n),t}function fi(n,t){if("string"==typeof n)if(isNaN(n)){if(n=t.weekdaysParse(n),"number"!=typeof n)return null}else n=parseInt(n,10);return n}function ar(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function vr(n,t,i){var o=p(Math.abs(n)/1e3),u=p(o/60),f=p(u/60),r=p(f/24),s=p(r/365),e=45>o&&["s",o]||1===u&&["m"]||45>u&&["mm",u]||1===f&&["h"]||22>f&&["hh",f]||1===r&&["d"]||25>=r&&["dd",r]||45>=r&&["M"]||345>r&&["MM",p(r/30)]||1===s&&["y"]||["yy",s];return e[2]=t,e[3]=n>0,e[4]=i,ar.apply({},e)}function d(n,i,r){var f,e=r-i,u=r-n.day();return u>e&&(u-=7),e-7>u&&(u+=7),f=t(n).add("d",u),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function ei(n,t,i,r,u){var e,f,o=new Date(Date.UTC(n,0)).getUTCDay();return i=null!=i?i:u,e=u-o+(o>r?7:0),f=7*(t-1)+(i-u)+e+1,{year:f>0?n:n-1,dayOfYear:f>0?f:bt(n-1)+f}}function oi(n){var i=n._i,r=n._f;return"undefined"==typeof n._pf&&gt(n),null===i?t.invalid({nullInput:!0}):("string"==typeof i&&(n._i=i=f().preparse(i)),t.isMoment(i)?(n=s({},i),n._d=new Date(+i._d)):r?rt(r)?sr(n):et(n):cr(n),new nt(n))}function si(n,i){t.fn[n]=t.fn[n+"s"]=function(n){var r=this._isUTC?"UTC":"";return null!=n?(this._d["set"+r+i](n),t.updateOffset(this),this):this._d["get"+r+i]()}}function yr(n){t.duration.fn[n]=function(){return this._data[n]}}function hi(n,i){t.duration.fn["as"+n]=function(){return+this/i}}function ot(){"undefined"==typeof ender&&(this.moment=t)}for(var t,r,p=Math.round,e=0,v=1,c=2,o=3,w=4,b=5,k=6,y={},ci="undefined"!=typeof module&&module.exports,pr=/^\/?Date\((\-?\d+)/i,wr=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,br=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,li=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g,g=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,kr=/\d\d?/,dr=/\d{1,3}/,gr=/\d{3}/,nu=/\d{1,4}/,tu=/[+\-]?\d{1,6}/,iu=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,st=/Z|[\+\-]\d\d:?\d\d/i,ru=/T/i,uu=/[\+\-]?\d+(\.\d{1,3})?/,fu=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?$/,eu=["YYYY-MM-DD","GGGG-[W]WW","GGGG-[W]WW-E","YYYY-DDD"],ai=[["HH:mm:ss.S",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ou=/([\+\-]|\d\d)/gi,ht="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),ct={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},su={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},hu={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},lt={},vi="DDD w W M D d".split(" "),yi="M D H h m s w W".split(" "),l={M:function(){return this.month()+1},MMM:function(n){return this.lang().monthsShort(this,n)},MMMM:function(n){return this.lang().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.lang().weekdaysMin(this,n)},ddd:function(n){return this.lang().weekdaysShort(this,n)},dddd:function(n){return this.lang().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},gg:function(){return u(this.weekYear()%100,2)},gggg:function(){return this.weekYear()},ggggg:function(){return u(this.weekYear(),5)},GG:function(){return u(this.isoWeekYear()%100,2)},GGGG:function(){return this.isoWeekYear()},GGGGG:function(){return u(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return u(i(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},Z:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+u(i(n/60),2)+":"+u(i(n)%60,2)},ZZ:function(){var n=-this.zone(),t="+";return 0>n&&(n=-n,t="-"),t+u(i(10*n/6),4)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()}},pi=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];vi.length;)r=vi.pop(),l[r+"o"]=wi(l[r],r);for(;yi.length;)r=yi.pop(),l[r+r]=at(l[r],2);for(l.DDDD=at(l.DDD,3),s(vt.prototype,{set:function(n){var t;for(var i in n)t=n[i],"function"==typeof t?this[i]=t:this["_"+i]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n){var i,r,u;for(this._monthsParse||(this._monthsParse=[]),i=0;12>i;i++)if(this._monthsParse[i]||(r=t.utc([2e3,i]),u="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),this._monthsParse[i].test(n))return i},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;7>i;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return"p"===(n+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t){var i=this._calendar[n];return"function"==typeof i?i.apply(t):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return"function"==typeof u?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return"function"==typeof i?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",preparse:function(n){return n},postformat:function(n){return n},week:function(n){return d(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){return"boolean"==typeof r&&(u=r,r=n),oi({_i:t,_f:i,_l:r,_strict:u,_isUTC:!1})},t.utc=function(t,i,r,u){var f;return"boolean"==typeof r&&(u=r,r=n),f=oi({_useUTC:!0,_isUTC:!0,_l:r,_i:t,_f:i,_strict:u}).utc()},t.unix=function(n){return t(1e3*n)},t.duration=function(n,r){var f,h,e,l=t.isDuration(n),a="number"==typeof n,s=l?n._input:a?{}:n,u=null;return a?r?s[r]=n:s.milliseconds=n:(u=wr.exec(n))?(f="-"===u[1]?-1:1,s={y:0,d:i(u[c])*f,h:i(u[o])*f,m:i(u[w])*f,s:i(u[b])*f,ms:i(u[k])*f}):(u=br.exec(n))&&(f="-"===u[1]?-1:1,e=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*f},s={y:e(u[2]),M:e(u[3]),d:e(u[4]),h:e(u[5]),m:e(u[6]),s:e(u[7]),w:e(u[8])}),h=new tt(s),l&&n.hasOwnProperty("_lang")&&(h._lang=n._lang),h},t.version="2.3.1",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.updateOffset=function(){},t.lang=function(n,i){var r;return n?(i?di(ut(n),i):null===i?(gi(n),n="en"):y[n]||f(n),r=t.duration.fn._lang=t.fn._lang=f(n),r._abbr):t.fn._lang._abbr},t.langData=function(n){return n&&n._lang&&n._lang._abbr&&(n=n._lang._abbr),f(n)},t.isMoment=function(n){return n instanceof nt},t.isDuration=function(n){return n instanceof tt},r=pi.length-1;r>=0;--r)ki(pi[r]);for(t.normalizeUnits=function(n){return h(n)},t.invalid=function(n){var i=t.utc(NaN);return null!=n?s(i._pf,n):i._pf.userInvalidated=!0,i},t.parseZone=function(n){return t(n).parseZone()},s(t.fn=nt.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){return ti(t(this).utc(),"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return ni(this)},isDSTShifted:function(){return this._a?this.isValid()&&yt(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return s({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(n){var i=ti(this,n||t.defaultFormat);return this.lang().postformat(i)},add:function(n,i){var r;return r="string"==typeof n?t.duration(+i,n):t.duration(n,i),it(this,r,1),this},subtract:function(n,i){var r;return r="string"==typeof n?t.duration(+i,n):t.duration(n,i),it(this,r,-1),this},diff:function(n,i,r){var u,e,f=this._isUTC?t(n).zone(this._offset||0):t(n).local(),o=6e4*(this.zone()-f.zone());return i=h(i),"year"===i||"month"===i?(u=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-t(this).startOf("month")-(f-t(f).startOf("month")))/u,e-=6e4*(this.zone()-t(this).startOf("month").zone()-(f.zone()-t(f).startOf("month").zone()))/u,"year"===i&&(e/=12)):(u=this-f,e="second"===i?u/1e3:"minute"===i?u/6e4:"hour"===i?u/36e5:"day"===i?(u-o)/864e5:"week"===i?(u-o)/6048e5:u),r?e:a(e)},from:function(n,i){return t.duration(this.diff(n)).lang(this.lang()._abbr).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(){var n=this.diff(t().zone(this.zone()).startOf("day"),"days",!0),i=-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse";return this.format(this.lang().calendar(i,this))},isLeapYear:function(){return kt(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=fi(n,this.lang()),this.add({d:n-t})):t},month:function(n){var i,r=this._isUTC?"UTC":"";return null!=n?"string"==typeof n&&(n=this.lang().monthsParse(n),"number"!=typeof n)?this:(i=this.date(),this.date(1),this._d["set"+r+"Month"](n),this.date(Math.min(i,this.daysInMonth())),t.updateOffset(this),this):this._d["get"+r+"Month"]()},startOf:function(n){switch(n=h(n)){case"year":this.month(0);case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n?this.weekday(0):"isoWeek"===n&&this.isoWeekday(1),this},endOf:function(n){return n=h(n),this.startOf(n).add("isoWeek"===n?"week":n,1).subtract("ms",1)},isAfter:function(n,i){return i="undefined"!=typeof i?i:"millisecond",+this.clone().startOf(i)>+t(n).startOf(i)},isBefore:function(n,i){return i="undefined"!=typeof i?i:"millisecond",+this.clone().startOf(i)<+t(n).startOf(i)},isSame:function(n,i){return i="undefined"!=typeof i?i:"millisecond",+this.clone().startOf(i)==+t(n).startOf(i)},min:function(n){return n=t.apply(null,arguments),this>n?this:n},max:function(n){return n=t.apply(null,arguments),n>this?this:n},zone:function(n){var i=this._offset||0;return null==n?this._isUTC?i:this._d.getTimezoneOffset():("string"==typeof n&&(n=ri(n)),Math.abs(n)<16&&(n=60*n),this._offset=n,this._isUTC=!0,i!==n&&it(this,t.duration(i-n,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(n){return n=n?t(n).zone():0,0==(this.zone()-n)%60},daysInMonth:function(){return wt(this.year(),this.month())},dayOfYear:function(n){var i=p((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return null==n?i:this.add("d",n-i)},weekYear:function(n){var t=d(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==n?t:this.add("y",n-t)},isoWeekYear:function(n){var t=d(this,1,4).year;return null==n?t:this.add("y",n-t)},week:function(n){var t=this.lang().week(this);return null==n?t:this.add("d",7*(n-t))},isoWeek:function(n){var t=d(this,1,4).week;return null==n?t:this.add("d",7*(n-t))},weekday:function(n){var t=(this.day()+7-this.lang()._week.dow)%7;return null==n?t:this.add("d",n-t)},isoWeekday:function(n){return null==n?this.day()||7:this.day(this.day()%7?n:n-7)},get:function(n){return n=h(n),this[n]()},set:function(n,t){return n=h(n),"function"==typeof this[n]&&this[n](t),this},lang:function(t){return t===n?this._lang:(this._lang=f(t),this)}}),r=0;r<ht.length;r++)si(ht[r].toLowerCase().replace(/s$/,""),ht[r]);si("year","FullYear");t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.toJSON=t.fn.toISOString;s(t.duration.fn=tt.prototype,{_bubble:function(){var t,i,r,e,o=this._milliseconds,u=this._days,f=this._months,n=this._data;n.milliseconds=o%1e3;t=a(o/1e3);n.seconds=t%60;i=a(t/60);n.minutes=i%60;r=a(i/60);n.hours=r%24;u+=a(r/24);n.days=u%30;f+=a(u/30);n.months=f%12;e=a(f/12);n.years=e},weeks:function(){return a(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*i(this._months/12)},humanize:function(n){var i=+this,t=vr(i,!n,this.lang());return n&&(t=this.lang().pastFuture(i,t)),this.lang().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=h(n),this[n.toLowerCase()+"s"]()},as:function(n){return n=h(n),this["as"+n.charAt(0).toUpperCase()+n.slice(1)+"s"]()},lang:t.fn.lang,toIsoString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"}});for(r in ct)ct.hasOwnProperty(r)&&(hi(r,ct[r]),yr(r.toLowerCase()));hi("Weeks",6048e5);t.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()};t.lang("en",{ordinal:function(n){var t=n%10,r=1===i(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+r}});ci?(module.exports=t,ot()):"function"==typeof define&&define.amd?define("moment",function(n,i,r){return r.config().noGlobal!==!0&&ot(),t}):ot()}.call(this),typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(jQuery);+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;(r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=n(r),t&&t.preventDefault(),i.length||(i=u.hasClass("alert")?u:u.parent()),i.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented())||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,u=i.is("input")?"val":"html",f=i.data();t=t+"Text";f.resetText||i.data("resetText",i[u]());i[u](f[t]||this.options[t]);setTimeout(n.proxy(function(){t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length&&(n=this.$element.find("input"),n.prop("type")=="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.pause=="hover"&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f=t=="next"?"left":"right",h=t=="next"?"first":"last",e=this,o;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}if(r.hasClass("active"))return this.sliding=!1;if(o=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),this.$element.trigger(o),!o.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid.bs.carousel",function(){var t=n(e.$indicators.children()[e.getActiveIndex()]);t&&t.addClass("active")})}return n.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,u.addClass(f),r.addClass(f),u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));e.sliding=!1;setTimeout(function(){e.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(u.css("transition-duration").slice(0,-1)*1e3)):(u.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),s&&this.cycle(),this}};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=n(this),f,r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented())){if(t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},!n.support.transition)return r.call(this);this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&i=="show"&&(i=!i);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var i=n(this),e,s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(jQuery);+function(n){"use strict";function r(t){n(e).remove();n(i).each(function(){var i=u(n(this)),r={relatedTarget:this};i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown",r)),t.isDefaultPrevented())||i.removeClass("open").trigger("hidden.bs.dropdown",r))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown",e);f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&t.keyCode==27)return t.which==27&&o.find(i).focus(),e.click();(h=" li:not(.divider):visible a",f=o.find("[role=menu]"+h+", [role=listbox]"+h),f.length)&&(r=f.index(f.filter(":focus")),t.keyCode==38&&r>0&&r--,t.keyCode==40&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu], [role=listbox]",t.prototype.keydown)}(jQuery);+function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});if(this.$element.trigger(r),!this.isShown&&!r.isDefaultPrevented()){this.isShown=!0;this.escape();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show().scrollTop(0);u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)})}};t.prototype.hide=function(t){(t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.removeBackdrop();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){i=n.support.transition&&r;this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this));if(i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());i.is("a")&&t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})});n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(jQuery);+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var h=n.Event("show.bs."+this.type),u,i,v,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(h),h.isDefaultPrevented())return;u=this;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,l=c.test(t);l&&(t=t.replace(c,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),f=i[0].offsetWidth,e=i[0].offsetHeight;if(l){var o=this.$element.parent(),y=t,a=document.documentElement.scrollTop||document.body.scrollTop,p=this.options.container=="body"?window.innerWidth:o.outerWidth(),w=this.options.container=="body"?window.innerHeight:o.outerHeight(),b=this.options.container=="body"?0:o.offset().left;t=t=="bottom"&&r.top+r.height+e-a>w?"top":t=="top"&&r.top-a-e<0?"bottom":t=="right"&&r.right+f>p?"left":t=="left"&&r.left-f<b?"right":t;i.removeClass(y).addClass(t)}v=this.getCalculatedOffset(t,r,f,e);this.applyPlacement(v,t);this.hoverState=null;s=function(){u.$element.trigger("shown.bs."+u.type)};n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,s).emulateTransitionEnd(150):s()}};t.prototype.applyPlacement=function(t,i){var c,r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),f,u,h;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");f=r[0].offsetWidth;u=r[0].offsetHeight;i=="top"&&u!=e&&(c=!0,t.top=t.top+e-u);/bottom|top/.test(i)?(h=0,t.left<0&&(h=t.left*-2,t.left=0,r.offset(t),f=r[0].offsetWidth,u=r[0].offsetHeight),this.replaceArrow(h-l+f,f,"left")):this.replaceArrow(u-e,u,"top");c&&r.offset(t)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function u(){t.hoverState!="in"&&i.detach();t.$element.trigger("hidden.bs."+t.type)}var t=this,i=this.tip(),r=n.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return i.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,u).emulateTransitionEnd(150):u(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content")[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i);this.$body=n("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=n([]);this.targets=n([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t,r;this.offsets=n([]);this.targets=n([]);t=this;r=this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),r=/^#./.test(u)&&n(u);return r&&r.length&&r.is(":visible")&&[[r[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);if(u&&i<=t[0])return u!=(n=r[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this};n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})}))};t.prototype.activate=function(t,i,r){function e(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");f?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),f=r&&n.support.transition&&u.hasClass("fade");f?u.one(n.support.transition.end,e).emulateTransitionEnd(150):e();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(jQuery);+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$window.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,h;if(this.$element.is(":visible")){var c=n(document).height(),o=this.$window.scrollTop(),s=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;(this.affixed=="top"&&(s.top+=o),typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.unpin!=null&&o+this.unpin<=s.top?!1:u!=null&&s.top+this.$element.height()>=c-u?"bottom":f!=null&&o<=f?"top":!1,this.affixed!==i)&&((this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),h=n.Event(e+".bs.affix"),this.$element.trigger(h),h.isDefaultPrevented())||(this.affixed=i,this.unpin=i=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(n.Event(e.replace("affix","affixed"))),i=="bottom"&&this.$element.offset({top:c-u-this.$element.height()})))}};i=n.fn.affix;n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.affix(t)})})}(jQuery),function(n){function r(){return new Date(Date.UTC.apply(Date,arguments))}function c(t,i){var u=n(t).data(),f={},e,o=new RegExp("^"+i.toLowerCase()+"([A-Z])"),i=new RegExp("^"+i.toLowerCase());for(var r in u)i.test(r)&&(e=r.replace(o,function(n,t){return t.toLowerCase()}),f[e]=u[r]);return f}function l(t){var u={},r;if(i[t]||(t=t.split("-")[0],i[t]))return r=i[t],n.each(h,function(n,t){t in r&&(u[t]=r[t])}),u}var e=n(window),u=function(i,r){var u=this;this._process_options(r);this.element=n(i);this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.is(".date")?this.element.find(".add-on, .input-group-addon, .btn"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&this.component.length===0&&(this.component=!1);this.picker=n(t.template);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right"));this.viewMode=this.o.startView;this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(n,t){return parseInt(t)+1});this._allow_update=!1;this.setStartDate(this._o.startDate);this.setEndDate(this._o.endDate);this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);this.fillDow();this.fillMonths();this._allow_update=!0;this.update();this.showMode();this.isInline&&this.show()},o,s,f,h,i,t;u.prototype={constructor:u,_process_options:function(r){var u,o,h,e,s;this._o=n.extend({},this._o,r);u=this.o=n.extend({},this._o);o=u.language;i[o]||(o=o.split("-")[0],i[o]||(o=f.language));u.language=o;switch(u.startView){case 2:case"decade":u.startView=2;break;case 1:case"year":u.startView=1;break;default:u.startView=0}switch(u.minViewMode){case 1:case"months":u.minViewMode=1;break;case 2:case"years":u.minViewMode=2;break;default:u.minViewMode=0}if(u.startView=Math.max(u.startView,u.minViewMode),u.weekStart%=7,u.weekEnd=(u.weekStart+6)%7,h=t.parseFormat(u.format),u.startDate!==-Infinity&&(u.startDate=u.startDate?u.startDate instanceof Date?this._local_to_utc(this._zero_time(u.startDate)):t.parseDate(u.startDate,h,u.language):-Infinity),u.endDate!==Infinity&&(u.endDate=u.endDate?u.endDate instanceof Date?this._local_to_utc(this._zero_time(u.endDate)):t.parseDate(u.endDate,h,u.language):Infinity),u.daysOfWeekDisabled=u.daysOfWeekDisabled||[],n.isArray(u.daysOfWeekDisabled)||(u.daysOfWeekDisabled=u.daysOfWeekDisabled.split(/[,\s]*/)),u.daysOfWeekDisabled=n.map(u.daysOfWeekDisabled,function(n){return parseInt(n,10)}),e=String(u.orientation).toLowerCase().split(/\s+/g),s=u.orientation.toLowerCase(),e=n.grep(e,function(n){return/^auto|left|right|top|bottom$/.test(n)}),u.orientation={x:"auto",y:"auto"},s&&s!=="auto")if(e.length===1)switch(e[0]){case"top":case"bottom":u.orientation.y=e[0];break;case"left":case"right":u.orientation.x=e[0]}else s=n.grep(e,function(n){return/^left|right$/.test(n)}),u.orientation.x=s[0]||"auto",s=n.grep(e,function(n){return/^top|bottom$/.test(n)}),u.orientation.y=s[0]||"auto"},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var t=0,i,r;t<n.length;t++){i=n[t][0];r=n[t][1];i.on(r)}},_unapplyEvents:function(n){for(var t=0,i,r;t<n.length;t++)i=n[t][0],r=n[t][1],i.off(r)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:n.proxy(this.show,this),keyup:n.proxy(this.update,this),keydown:n.proxy(this.keydown,this)}],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(i,r){var u=r||this.date,f=this._utc_to_local(u);this.element.trigger({type:i,date:f,format:n.proxy(function(n){var i=n||this.o.format;return t.formatDate(u,i,this.o.language)},this)})},show:function(n){this.isInline||this.picker.appendTo("body");this.picker.show();this.height=this.component?this.component.outerHeight():this.element.outerHeight();this.place();this._attachSecondaryEvents();n&&n.preventDefault();this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide();this._detachEvents();this._detachSecondaryEvents();this.picker.remove();delete this.element.data().datepicker;this.isInput||delete this.element.data().date},_utc_to_local:function(n){return new Date(n.getTime()+n.getTimezoneOffset()*6e4)},_local_to_utc:function(n){return new Date(n.getTime()-n.getTimezoneOffset()*6e4)},_zero_time:function(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return this.date},setDate:function(n){this.setUTCDate(this._local_to_utc(n))},setUTCDate:function(n){this.date=n;this.setValue()},setValue:function(){var n=this.getFormattedDate();this.isInput?this.element.val(n).change():this.component&&this.element.find("input").val(n).change()},getFormattedDate:function(n){return n===undefined&&(n=this.o.format),t.formatDate(this.date,n,this.o.language)},setStartDate:function(n){this._process_options({startDate:n});this.update();this.updateNavArrows()},setEndDate:function(n){this._process_options({endDate:n});this.update();this.updateNavArrows()},setDaysOfWeekDisabled:function(n){this._process_options({daysOfWeekDisabled:n});this.update();this.updateNavArrows()},place:function(){var i,v,s;if(!this.isInline){var u=this.picker.outerWidth(),f=this.picker.outerHeight(),h=10,c=e.width(),y=e.height(),l=e.scrollTop(),p=parseInt(this.element.parents().filter(function(){return n(this).css("z-index")!="auto"}).first().css("z-index"))+10,t=this.component?this.component.parent().offset():this.element.offset(),a=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),w=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),r=t.left,o=t.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left");this.o.orientation.x!=="auto"?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),this.o.orientation.x==="right"&&(r-=u-w)):(this.picker.addClass("datepicker-orient-left"),t.left<0?r-=t.left-h:t.left+u>c&&(r=c-u-h));i=this.o.orientation.y;i==="auto"&&(v=-l+t.top-f,s=l+y-(t.top+a+f),i=Math.max(v,s)===s?"top":"bottom");this.picker.addClass("datepicker-orient-"+i);i==="top"?o+=a:o-=f+parseInt(this.picker.css("padding-top"));this.picker.css({top:o,left:r,zIndex:p})}},_allow_update:!0,update:function(){if(this._allow_update){var r=new Date(this.date),n,i=!1;arguments&&arguments.length&&(typeof arguments[0]=="string"||arguments[0]instanceof Date)?(n=arguments[0],n instanceof Date&&(n=this._local_to_utc(n)),i=!0):(n=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),delete this.element.data().date);this.date=t.parseDate(n,this.o.format,this.o.language);i?this.setValue():n?r.getTime()!==this.date.getTime()&&this._trigger("changeDate"):this._trigger("clearDate");this.date<this.o.startDate?(this.viewDate=new Date(this.o.startDate),this.date=new Date(this.o.startDate)):this.date>this.o.endDate?(this.viewDate=new Date(this.o.endDate),this.date=new Date(this.o.endDate)):(this.viewDate=new Date(this.date),this.date=new Date(this.date));this.fill()}},fillDow:function(){var r=this.o.weekStart,n="<tr>",t;for(this.o.calendarWeeks&&(t='<th class="cw">&nbsp;<\/th>',n+=t,this.picker.find(".datepicker-days thead tr:first-child").prepend(t));r<this.o.weekStart+7;)n+='<th class="dow">'+i[this.o.language].daysMin[r++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;t<12;)n+='<span class="month">'+i[this.o.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),e=this.date.valueOf(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()==r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()==r&&t.getUTCMonth()>f)&&i.push("new"),this.o.todayHighlight&&t.getUTCFullYear()==u.getFullYear()&&t.getUTCMonth()==u.getMonth()&&t.getUTCDate()==u.getDate()&&i.push("today"),t.valueOf()==e&&i.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&i.push("disabled"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),n.inArray(t.valueOf(),this.range)!=-1&&i.push("selected")),i},fill:function(){var k=new Date(this.viewDate),u=k.getUTCFullYear(),d=k.getUTCMonth(),v=this.o.startDate!==-Infinity?this.o.startDate.getUTCFullYear():-Infinity,it=this.o.startDate!==-Infinity?this.o.startDate.getUTCMonth():-Infinity,y=this.o.endDate!==Infinity?this.o.endDate.getUTCFullYear():Infinity,rt=this.o.endDate!==Infinity?this.o.endDate.getUTCMonth():Infinity,ft=this.date&&this.date.valueOf(),p,f,w,h,o,s,e,a,c,tt,l;for(this.picker.find(".datepicker-days thead th.datepicker-switch").text(i[this.o.language].months[d]+" "+u),this.picker.find("tfoot th.today").text(i[this.o.language].today).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(i[this.o.language].clear).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths(),f=r(u,d-1,28,0,0,0,0),w=t.getDaysInMonth(f.getUTCFullYear(),f.getUTCMonth()),f.setUTCDate(w),f.setUTCDate(w-(f.getUTCDay()-this.o.weekStart+7)%7),h=new Date(f),h.setUTCDate(h.getUTCDate()+42),h=h.valueOf(),o=[];f.valueOf()<h;){if(f.getUTCDay()==this.o.weekStart&&(o.push("<tr>"),this.o.calendarWeeks)){var g=new Date(+f+(this.o.weekStart-f.getUTCDay()-7)%7*864e5),nt=new Date(+g+(11-g.getUTCDay())%7*864e5),b=new Date(+(b=r(nt.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),ut=(nt-b)/6048e5+1;o.push('<td class="cw">'+ut+"<\/td>")}s=this.getClassNames(f);s.push("day");this.o.beforeShowDay!==n.noop&&(e=this.o.beforeShowDay(this._utc_to_local(f)),e===undefined?e={}:typeof e=="boolean"?e={enabled:e}:typeof e=="string"&&(e={classes:e}),e.enabled===!1&&s.push("disabled"),e.classes&&(s=s.concat(e.classes.split(/\s+/))),e.tooltip&&(p=e.tooltip));s=n.unique(s);o.push('<td class="'+s.join(" ")+'"'+(p?' title="'+p+'"':"")+">"+f.getUTCDate()+"<\/td>");f.getUTCDay()==this.o.weekEnd&&o.push("<\/tr>");f.setUTCDate(f.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(o.join("")),a=this.date&&this.date.getUTCFullYear(),c=this.picker.find(".datepicker-months").find("th:eq(1)").text(u).end().find("span").removeClass("active"),a&&a==u&&c.eq(this.date.getUTCMonth()).addClass("active"),(u<v||u>y)&&c.addClass("disabled"),u==v&&c.slice(0,it).addClass("disabled"),u==y&&c.slice(rt+1).addClass("disabled"),o="",u=parseInt(u/10,10)*10,tt=this.picker.find(".datepicker-years").find("th:eq(1)").text(u+"-"+(u+9)).end().find("td"),u-=1,l=-1;l<11;l++)o+='<span class="year'+(l==-1?" old":l==10?" new":"")+(a==u?" active":"")+(u<v||u>y?" disabled":"")+'">'+u+"<\/span>",u+=1;tt.html(o)},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-Infinity&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==Infinity&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-Infinity&&n<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==Infinity&&n>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(i){var u,h,e,l,s;if(i.preventDefault(),u=n(i.target).closest("span, td, th"),u.length==1)switch(u[0].nodeName.toLowerCase()){case"th":switch(u[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":h=t.modes[this.viewMode].navStep*(u[0].className=="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h);this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h);this.viewMode===1&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":e=new Date;e=r(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0);this.showMode(-2);l=this.o.todayBtn=="linked"?null:"view";this._setDate(e,l);break;case"clear":this.isInput?s=this.element:this.component&&(s=this.element.find("input"));s&&s.val("").change();this._trigger("changeDate");this.update();this.o.autoclose&&this.hide()}break;case"span":if(!u.is(".disabled")){if(this.viewDate.setUTCDate(1),u.is(".month")){var c=1,f=u.parent().find("span").index(u),o=this.viewDate.getUTCFullYear();this.viewDate.setUTCMonth(f);this._trigger("changeMonth",this.viewDate);this.o.minViewMode===1&&this._setDate(r(o,f,c,0,0,0,0))}else{var o=parseInt(u.text(),10)||0,c=1,f=0;this.viewDate.setUTCFullYear(o);this._trigger("changeYear",this.viewDate);this.o.minViewMode===2&&this._setDate(r(o,f,c,0,0,0,0))}this.showMode(-1);this.fill()}break;case"td":if(u.is(".day")&&!u.is(".disabled")){var c=parseInt(u.text(),10)||1,o=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth();u.is(".old")?f===0?(f=11,o-=1):f-=1:u.is(".new")&&(f==11?(f=0,o+=1):f+=1);this._setDate(r(o,f,c,0,0,0,0))}}},_setDate:function(n,t){t&&t!="date"||(this.date=new Date(n));t&&t!="view"||(this.viewDate=new Date(n));this.fill();this.setValue();this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();this.o.autoclose&&(!t||t=="date")&&this.hide()},moveMonth:function(n,t){var f;if(!t)return n;var i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t),r,u;if(t=t>0?1:-1,s==1)u=t==-1?function(){return i.getUTCMonth()==o}:function(){return i.getUTCMonth()!=r},r=o+t,i.setUTCMonth(r),(r<0||r>11)&&(r=(r+12)%12);else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!=i.getUTCMonth()}}while(u())i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,t*12)},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var u,t,i,r,f;if(this.picker.is(":not(:visible)")){n.keyCode==27&&this.show();return}u=!1;switch(n.keyCode){case 27:this.hide();n.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=n.keyCode==37?-1:1;n.ctrlKey?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t),this._trigger("changeMonth",this.viewDate)):(i=new Date(this.date),i.setUTCDate(this.date.getUTCDate()+t),r=new Date(this.viewDate),r.setUTCDate(this.viewDate.getUTCDate()+t));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=n.keyCode==38?-1:1;n.ctrlKey?(i=this.moveYear(this.date,t),r=this.moveYear(this.viewDate,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveMonth(this.date,t),r=this.moveMonth(this.viewDate,t),this._trigger("changeMonth",this.viewDate)):(i=new Date(this.date),i.setUTCDate(this.date.getUTCDate()+t*7),r=new Date(this.viewDate),r.setUTCDate(this.viewDate.getUTCDate()+t*7));this.dateWithinRange(i)&&(this.date=i,this.viewDate=r,this.setValue(),this.update(),n.preventDefault(),u=!0);break;case 13:this.hide();n.preventDefault();break;case 9:this.hide()}u&&(this._trigger("changeDate"),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+n)));this.picker.find(">div").hide().filter(".datepicker-"+t.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};o=function(t,i){this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;n(this.inputs).datepicker(i).bind("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")});this.updateDates()};o.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.date});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){var u=n(t.target).data("datepicker"),r=u.getUTCDate(),i=n.inArray(t.target,this.inputs),f=this.inputs.length;if(i!=-1){if(r<this.dates[i])while(i>=0&&r<this.dates[i])this.pickers[i--].setUTCDate(r);else if(r>this.dates[i])while(i<f&&r>this.dates[i])this.pickers[i++].setUTCDate(r);this.updateDates()}},remove:function(){n.map(this.pickers,function(n){n.remove()});delete this.element.data().datepicker}};s=n.fn.datepicker;n.fn.datepicker=function(t){var r=Array.apply(null,arguments),i;return r.shift(),this.each(function(){var s=n(this),e=s.data("datepicker"),a=typeof t=="object"&&t,y;if(!e){var v=c(this,"date"),p=n.extend({},f,v,a),w=l(p.language),h=n.extend({},f,w,v,a);s.is(".input-daterange")||h.inputs?(y={inputs:h.inputs||s.find("input").toArray()},s.data("datepicker",e=new o(this,n.extend(h,y)))):s.data("datepicker",e=new u(this,h))}if(typeof t=="string"&&typeof e[t]=="function"&&(i=e[t].apply(e,r),i!==undefined))return!1}),i!==undefined?i:this};f=n.fn.datepicker.defaults={autoclose:!1,beforeShowDay:n.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:Infinity,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,orientation:"auto",rtl:!1,startDate:-Infinity,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0};h=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=u;i=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}};t={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,i){return[31,t.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][i]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,'\0').split('\0'),i=n.match(this.validParts);if(!t||!t.length||!i||i.length===0)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(f,e,o){var g,h,a,v,l,nt,s,k,p;if(f instanceof Date)return f;if(typeof e=="string"&&(e=t.parseFormat(e)),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(f)){for(g=/([\-+]\d+)([dmwy])/,h=f.match(/([\-+]\d+)([dmwy])/g),f=new Date,s=0;s<h.length;s++){a=g.exec(h[s]);v=parseInt(a[1]);switch(a[2]){case"d":f.setUTCDate(f.getUTCDate()+v);break;case"m":f=u.prototype.moveMonth.call(u.prototype,f,v);break;case"w":f.setUTCDate(f.getUTCDate()+v*7);break;case"y":f=u.prototype.moveYear.call(u.prototype,f,v)}}return r(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),0,0,0)}var h=f&&f.match(this.nonpunctuation)||[],f=new Date,w={},d=["yyyy","yy","M","MM","m","mm","d","dd"],c={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!=t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}},y,b,a;if(c.M=c.MM=c.mm=c.m,c.dd=c.d,f=r(f.getFullYear(),f.getMonth(),f.getDate(),0,0,0),l=e.parts.slice(),h.length!=l.length&&(l=n(l).filter(function(t,i){return n.inArray(i,d)!==-1}).toArray()),h.length==l.length){for(s=0,nt=l.length;s<nt;s++){if(y=parseInt(h[s],10),a=l[s],isNaN(y))switch(a){case"MM":b=n(i[o].months).filter(function(){var n=this.slice(0,h[s].length),t=h[s].slice(0,n.length);return n==t});y=n.inArray(b[0],i[o].months)+1;break;case"M":b=n(i[o].monthsShort).filter(function(){var n=this.slice(0,h[s].length),t=h[s].slice(0,n.length);return n==t});y=n.inArray(b[0],i[o].monthsShort)+1}w[a]=y}for(s=0;s<d.length;s++)p=d[s],p in w&&!isNaN(w[p])&&(k=new Date(f),c[p](k,w[p]),isNaN(k)||(f=k))}return f},formatDate:function(r,u,f){var e,r,s,o,h;for(typeof u=="string"&&(u=t.parseFormat(u)),e={d:r.getUTCDate(),D:i[f].daysShort[r.getUTCDay()],DD:i[f].days[r.getUTCDay()],m:r.getUTCMonth()+1,M:i[f].monthsShort[r.getUTCMonth()],MM:i[f].months[r.getUTCMonth()],yy:r.getUTCFullYear().toString().substring(2),yyyy:r.getUTCFullYear()},e.dd=(e.d<10?"0":"")+e.d,e.mm=(e.m<10?"0":"")+e.m,r=[],s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&r.push(s.shift()),r.push(e[u.parts[o]]);return r.join("")},headTemplate:'<thead><tr><th class="prev">&laquo;<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">&raquo;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};t.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+t.headTemplate+"<tbody><\/tbody>"+t.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+t.headTemplate+t.contTemplate+t.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=t;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=s,this};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),i.datepicker("show"))});n(function(){n('[data-provide="datepicker-inline"]').datepicker()})}(window.jQuery),function(n,t,i){"use strict";function p(n){return function(){for(var i=arguments[0],i="["+(n?n+":":"")+i+"] http://errors.angularjs.org/1.2.29/"+(n?n+"/":"")+i,t=1;t<arguments.length;t++)i=i+(1==t?"?":"&")+"p"+(t-1)+"="+encodeURIComponent("function"==typeof arguments[t]?arguments[t].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[t]?"undefined":"string"!=typeof arguments[t]?JSON.stringify(arguments[t]):arguments[t]);return Error(i)}}function bi(n){if(null==n||si(n))return!1;var t=n.length;return 1===n.nodeType&&t?!0:e(n)||o(n)||0===t||"number"==typeof t&&0<t&&t-1 in n}function r(n,t,i){var u;if(n)if(h(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||t.call(i,n[u],u);else if(o(n)||bi(n))for(u=0;u<n.length;u++)t.call(i,n[u],u);else if(n.forEach&&n.forEach!==r)n.forEach(t,i);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u);return n}function lf(n){var t=[];for(var i in n)n.hasOwnProperty(i)&&t.push(i);return t.sort()}function ns(n,t,i){for(var r=lf(n),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function af(n){return function(t,i){n(i,t)}}function vr(){for(var n=pt.length,t;n;){if(n--,t=pt[n].charCodeAt(0),57==t)return pt[n]="A",pt.join("");if(90==t)pt[n]="0";else return pt[n]=String.fromCharCode(t+1),pt.join("")}return pt.unshift("0"),pt.join("")}function vf(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function c(n){var t=n.$$hashKey;return r(arguments,function(t){t!==n&&r(t,function(t,i){n[i]=t})}),vf(n,t),n}function b(n){return parseInt(n,10)}function yf(n,t){return c(new(c(function(){},{prototype:n})),t)}function s(){}function ut(n){return n}function nt(n){return function(){return n}}function l(n){return"undefined"==typeof n}function f(n){return"undefined"!=typeof n}function a(n){return null!=n&&"object"==typeof n}function e(n){return"string"==typeof n}function yr(n){return"number"==typeof n}function wt(n){return"[object Date]"===ei.call(n)}function h(n){return"function"==typeof n}function pr(n){return"[object RegExp]"===ei.call(n)}function si(n){return n&&n.document&&n.location&&n.alert&&n.setInterval}function ts(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function is(n,t,i){var u=[];return r(n,function(n,r,f){u.push(t.call(i,n,r,f))}),u}function ki(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0;i<n.length;i++)if(t===n[i])return i;return-1}function di(n,t){var i=ki(n,t);return 0<=i&&n.splice(i,1),t}function hi(n,t,i,u){var e,f,s;if(si(n)||n&&n.$evalAsync&&n.$watch)throw rr("cpws");if(t){if(n===t)throw rr("cpi");if(i=i||[],u=u||[],a(n)){if(e=ki(i,n),-1!==e)return u[e];i.push(n);u.push(t)}if(o(n))for(f=t.length=0;f<n.length;f++)e=hi(n[f],null,i,u),a(n[f])&&(i.push(n[f]),u.push(e)),t.push(e);else{s=t.$$hashKey;o(t)?t.length=0:r(t,function(n,i){delete t[i]});for(f in n)e=hi(n[f],null,i,u),a(n[f])&&(i.push(n[f]),u.push(e)),t[f]=e;vf(t,s)}}else(t=n)&&(o(n)?t=hi(n,[],i,u):wt(n)?t=new Date(n.getTime()):pr(n)?(t=RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),t.lastIndex=n.lastIndex):a(n)&&(t=hi(n,{},i,u)));return t}function ft(n,t){if(o(n)){t=t||[];for(var i=0;i<n.length;i++)t[i]=n[i]}else if(a(n))for(i in t=t||{},n)uu.call(n,i)&&("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t||n}function ti(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var u=typeof n,r;if(u==typeof t&&"object"==u)if(o(n)){if(!o(t))return!1;if((u=n.length)==t.length){for(r=0;r<u;r++)if(!ti(n[r],t[r]))return!1;return!0}}else{if(wt(n))return wt(t)?isNaN(n.getTime())&&isNaN(t.getTime())||n.getTime()===t.getTime():!1;if(pr(n)&&pr(t))return n.toString()==t.toString();if(n&&n.$evalAsync&&n.$watch||t&&t.$evalAsync&&t.$watch||si(n)||si(t)||o(t))return!1;u={};for(r in n)if("$"!==r.charAt(0)&&!h(n[r])){if(!ti(n[r],t[r]))return!1;u[r]=!0}for(r in t)if(!u.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t[r]!==i&&!h(t[r]))return!1;return!0}return!1}function cu(n,t){var i=2<arguments.length?dt.call(arguments,2):[];return!h(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,i.concat(dt.call(arguments,0))):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function rs(n,r){var u=r;return"string"==typeof n&&"$"===n.charAt(0)?u=i:si(r)?u="$WINDOW":r&&t===r?u="$DOCUMENT":r&&r.$evalAsync&&r.$watch&&(u="$SCOPE"),u}function ct(n,t){return"undefined"==typeof n?i:JSON.stringify(n,rs,t?"  ":null)}function pf(n){return e(n)?JSON.parse(n):n}function gi(n){return"function"==typeof n?n=!0:n&&0!==n.length?(n=v(""+n),n=!("f"==n||"0"==n||"false"==n||"no"==n||"n"==n||"[]"==n)):n=!1,n}function et(n){n=u(n).clone();try{n.empty()}catch(i){}var t=u("<div>").append(n).html();try{return 3===n[0].nodeType?v(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+v(t)})}catch(r){return v(t)}}function wf(n){try{return decodeURIComponent(n)}catch(t){}}function bf(n){var i={},u,t;return r((n||"").split("&"),function(n){n&&(u=n.replace(/\+/g,"%20").split("="),t=wf(u[0]),f(t)&&(n=f(u[1])?wf(u[1]):!0,uu.call(i,t)?o(i[t])?i[t].push(n):i[t]=[i[t],n]:i[t]=n))}),i}function lu(n){var t=[];return r(n,function(n,i){o(n)?r(n,function(n){t.push(ii(i,!0)+(!0===n?"":"="+ii(n,!0)))}):t.push(ii(i,!0)+(!0===n?"":"="+ii(n,!0)))}),t.length?t.join("&"):""}function wr(n){return ii(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ii(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function us(n,i){function f(n){n&&s.push(n)}var s=[n],u,e,o=["ng:app","ng-app","x-ng-app","data-ng-app"],h=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;r(o,function(i){o[i]=!0;f(t.getElementById(i));i=i.replace(":","\\:");n.querySelectorAll&&(r(n.querySelectorAll("."+i),f),r(n.querySelectorAll("."+i+"\\:"),f),r(n.querySelectorAll("["+i+"]"),f))});r(s,function(n){if(!u){var t=h.exec(" "+n.className+" ");t?(u=n,e=(t[2]||"").replace(/\s+/g,",")):r(n.attributes,function(t){!u&&o[t.name]&&(u=n,e=t.value)})}});u&&i(u,e?[e]:[])}function kf(i,f){var e=function(){if(i=u(i),i.injector()){var n=i[0]===t?"document":et(i);throw rr("btstrpd",n.replace(/</,"&lt;").replace(/>/,"&gt;"));}return f=f||[],f.unshift(["$provide",function(n){n.value("$rootElement",i)}]),f.unshift("ng"),n=ue(f),n.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),n},o=/^NG_DEFER_BOOTSTRAP!/;if(n&&!o.test(n.name))return e();n.name=n.name.replace(o,"");ur.resumeBootstrap=function(n){r(n,function(n){f.push(n)});e()}}function br(n,t){return t=t||"_",n.replace(rc,function(n,i){return(i?t:"")+n.toLowerCase()})}function au(n,t,i){if(!n)throw rr("areq",t||"?",i||"required");return n}function nr(n,t,i){return i&&o(n)&&(n=n[n.length-1]),au(h(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function ri(n,t){if("hasOwnProperty"===n)throw rr("badname",t);}function df(n,t,i){if(!t)return n;t=t.split(".");for(var u,f=n,e=t.length,r=0;r<e;r++)u=t[r],n&&(n=(f=n)[u]);return!i&&h(n)?cu(f,n):n}function vu(n){var t=n[0],i;if(n=n[n.length-1],t===n)return u(t);i=[t];do{if(t=t.nextSibling,!t)break;i.push(t)}while(t!==n);return u(i)}function fs(n){var t=p("$injector"),i=p("ng");return n=n.angular||(n.angular={}),n.$$minErr=n.$$minErr||p,n.module||(n.module=function(){var n={};return function(r,u,f){if("hasOwnProperty"===r)throw i("badname","module");return u&&n.hasOwnProperty(r)&&(n[r]=null),n[r]||(n[r]=function(){function n(n,t,r){return function(){return i[r||"push"]([n,t,arguments]),s}}if(!u)throw t("nomod",r);var i=[],e=[],o=n("$injector","invoke"),s={_invokeQueue:i,_runBlocks:e,requires:u,name:r,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:n("$provide","value"),constant:n("$provide","constant","unshift"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),config:o,run:function(n){return e.push(n),this}};return f&&o(f),s}())}}())}function es(t){c(t,{bootstrap:kf,copy:hi,extend:c,equals:ti,element:u,forEach:r,injector:ue,noop:s,bind:cu,toJson:ct,fromJson:pf,identity:ut,isUndefined:l,isDefined:f,isString:e,isFunction:h,isObject:a,isNumber:yr,isElement:ts,isArray:o,version:uc,isDate:wt,lowercase:v,uppercase:vi,callbacks:{counter:0},$$minErr:p,$$csp:er});fr=fs(n);try{fr("ngLocale")}catch(i){fr("ngLocale",[]).provider("$locale",ih)}fr("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:lh});n.provider("$compile",fe).directive({a:yo,input:bo,textarea:bo,form:sl,script:tv,select:uv,style:ev,option:fv,ngBind:gl,ngBindHtml:ta,ngBindTemplate:na,ngClass:ia,ngClassEven:ua,ngClassOdd:ra,ngCloak:fa,ngController:ea,ngForm:hl,ngHide:wa,ngIf:sa,ngInclude:ha,ngInit:la,ngNonBindable:aa,ngPluralize:va,ngRepeat:ya,ngShow:pa,ngStyle:ba,ngSwitch:ka,ngSwitchWhen:da,ngSwitchDefault:ga,ngOptions:rv,ngTransclude:nv,ngModel:pl,ngList:bl,ngChange:wl,required:ko,ngRequired:ko,ngValue:dl}).directive({ngInclude:ca}).directive(eu).directive(go);n.provider({$anchorScroll:ss,$animate:bc,$browser:ls,$cacheFactory:as,$controller:ys,$document:ps,$exceptionHandler:ws,$filter:ge,$interpolate:nh,$interval:th,$http:bs,$httpBackend:ds,$location:rh,$log:uh,$parse:eh,$rootScope:ch,$q:oh,$sce:yh,$sceDelegate:vh,$sniffer:ph,$templateCache:vs,$timeout:wh,$window:bh,$$rAF:hh,$$asyncCallback:hs})}])}function tr(n){return n.replace(ec,function(n,t,i,r){return r?i.toUpperCase():i}).replace(oc,"Moz$1")}function yu(n,t,i,r){function e(n){var h=i&&n?[this.filter(n)]:[this],c=t,l,o,a,e,s,v;if(!r||null!=n)for(;h.length;)for(l=h.shift(),o=0,a=l.length;o<a;o++)for(e=u(l[o]),c?e.triggerHandler("$destroy"):c=!c,s=0,e=(v=e.children()).length;s<e;s++)h.push(fi(v[s]));return f.apply(this,arguments)}var f=fi.fn[n],f=f.$original||f;e.$original=f;fi.fn[n]=e}function w(n){var r,o,i,f;if(n instanceof w)return n;if(e(n)&&(n=g(n)),!(this instanceof w)){if(e(n)&&"<"!=n.charAt(0))throw ef("nosel");return new w(n)}if(e(n)){if(r=n,n=t,o=sc.exec(r))n=[n.createElement(o[1])];else{if(i=n,n=i.createDocumentFragment(),o=[],of.test(r)){for(i=n.appendChild(i.createElement("div")),f=(hc.exec(r)||["",""])[1].toLowerCase(),f=tt[f]||tt._default,i.innerHTML="<div>&#160;<\/div>"+f[1]+r.replace(cc,"<$1><\/$2>")+f[2],i.removeChild(i.firstChild),r=f[0];r--;)i=i.lastChild;for(r=0,f=i.childNodes.length;r<f;++r)o.push(i.childNodes[r]);i=n.firstChild;i.textContent=""}else o.push(i.createTextNode(r));n.textContent="";n.innerHTML="";n=o}du(this,n);u(t.createDocumentFragment()).append(this)}else du(this,n)}function pu(n){return n.cloneNode(!0)}function ci(n){wu(n);var t=0;for(n=n.childNodes||[];t<n.length;t++)ci(n[t])}function gf(n,t,i,u){if(f(u))throw ef("offargs");var e=lt(n,"events");lt(n,"handle")&&(l(t)?r(e,function(t,i){sr(n,i,t);delete e[i]}):r(t.split(" "),function(t){l(i)?(sr(n,t,e[t]),delete e[t]):di(e[t]||[],i)}))}function wu(n,t){var u=n.ng339,r=or[u];r&&(t?delete or[u].data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),gf(n)),delete or[u],n.ng339=i))}function lt(n,t,i){var r=n.ng339,r=or[r||-1];if(f(i))r||(n.ng339=r=++fc,r=or[r]={}),r[t]=i;else return r&&r[t]}function bu(n,t,i){var r=lt(n,"data"),u=f(i),e=!u&&f(t),o=e&&!a(t);if(r||o||lt(n,"data",r={}),u)r[t]=i;else if(e){if(o)return r&&r[t];c(r,t)}else return r}function ku(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function kr(n,t){t&&n.setAttribute&&r(t.split(" "),function(t){n.setAttribute("class",g((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+g(t)+" "," ")))})}function dr(n,t){if(t&&n.setAttribute){var i=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(n){n=g(n);-1===i.indexOf(" "+n+" ")&&(i+=n+" ")});n.setAttribute("class",g(i))}}function du(n,t){if(t){t=t.nodeName||!f(t.length)||si(t)?[t]:t;for(var i=0;i<t.length;i++)n.push(t[i])}}function ne(n,t){return gr(n,"$"+(t||"ngController")+"Controller")}function gr(n,t,r){for(9==n.nodeType&&(n=n.documentElement),t=o(t)?t:[t];n;){for(var f=0,e=t.length;f<e;f++)if((r=u.data(n,t[f]))!==i)return r;n=n.parentNode||11===n.nodeType&&n.host}}function te(n){for(var t=0,i=n.childNodes;t<i.length;t++)ci(i[t]);for(;n.firstChild;)n.removeChild(n.firstChild)}function ie(n,t){var i=hr[t.toLowerCase()];return i&&sf[n.nodeName]&&i}function os(n,i){var u=function(u,f){var e,o;u.preventDefault||(u.preventDefault=function(){u.returnValue=!1});u.stopPropagation||(u.stopPropagation=function(){u.cancelBubble=!0});u.target||(u.target=u.srcElement||t);l(u.defaultPrevented)&&(e=u.preventDefault,u.preventDefault=function(){u.defaultPrevented=!0;e.call(u)},u.defaultPrevented=!1);u.isDefaultPrevented=function(){return u.defaultPrevented||!1===u.returnValue};o=ft(i[f||u.type]||[]);r(o,function(t){t.call(n,u)});8>=y?(u.preventDefault=null,u.stopPropagation=null,u.isDefaultPrevented=null):(delete u.preventDefault,delete u.stopPropagation,delete u.isDefaultPrevented)};return u.elem=n,u}function li(n,t){var u=typeof n,r;return"function"==u||"object"==u&&null!==n?"function"==typeof(r=n.$$hashKey)?r=n.$$hashKey():r===i&&(r=n.$$hashKey=(t||vr)()):r=n,u+":"+r}function ir(n,t){if(t){var i=0;this.nextUid=function(){return++i}}r(n,this.put,this)}function re(n){var i,t;return"function"==typeof n?(i=n.$inject)||(i=[],n.length&&(t=n.toString().replace(pc,""),t=t.match(ac),r(t[1].split(vc),function(n){n.replace(yc,function(n,t,r){i.push(r)})})),n.$inject=i):o(n)?(t=n.length-1,nr(n[t],"fn"),i=n.slice(0,t)):nr(n,"fn",!0),i}function ue(n){function i(n){return function(t,i){if(a(t))r(t,af(n));else return n(t,i)}}function w(n,i){if(ri(n,"service"),(h(i)||o(i))&&(i=t.instantiate(i)),!i.$get)throw cr("pget",n);return u[n+c]=i}function v(n,t){return w(n,{$get:t})}function b(n){var i=[],u,s,f,c;return r(n,function(n){if(!d.get(n)){d.put(n,!0);try{if(e(n))for(u=fr(n),i=i.concat(b(u.requires)).concat(u._runBlocks),s=u._invokeQueue,f=0,c=s.length;f<c;f++){var l=s[f],a=t.get(l[0]);a[l[1]].apply(a,l[2])}else h(n)?i.push(t.invoke(n)):o(n)?i.push(t.invoke(n)):nr(n,"module")}catch(r){throw o(n)&&(n=n[n.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),cr("modulerr",n,r.stack||r.message||r);}}}),i}function k(n,t){function i(i){if(n.hasOwnProperty(i)){if(n[i]===y)throw cr("cdep",i+" <- "+l.join(" <- "));return n[i]}try{return l.unshift(i),n[i]=y,n[i]=t(i)}catch(r){throw n[i]===y&&delete n[i],r;}finally{l.shift()}}function r(n,t,r){for(var s=[],h=re(n),u,f=0,e=h.length;f<e;f++){if(u=h[f],"string"!=typeof u)throw cr("itkn",u);s.push(r&&r.hasOwnProperty(u)?r[u]:i(u))}return o(n)&&(n=n[e]),n.apply(t,s)}return{invoke:r,instantiate:function(n,t){var i=function(){},u;return i.prototype=(o(n)?n[n.length-1]:n).prototype,i=new i,u=r(n,i,t),a(u)||h(u)?u:i},get:i,annotate:re,has:function(t){return u.hasOwnProperty(t+c)||n.hasOwnProperty(t)}}}var y={},c="Provider",l=[],d=new ir([],!0),u={$provide:{provider:i(w),factory:i(v),service:i(function(n,t){return v(n,["$injector",function(n){return n.instantiate(t)}])}),value:i(function(n,t){return v(n,nt(t))}),constant:i(function(n,t){ri(n,"constant");u[n]=t;p[n]=t}),decorator:function(n,i){var r=t.get(n+c),u=r.$get;r.$get=function(){var n=f.invoke(u,r);return f.invoke(i,null,{$delegate:n})}}}},t=u.$injector=k(u,function(){throw cr("unpr",l.join(" <- "));}),p={},f=p.$injector=k(p,function(n){return n=t.get(n+c),f.invoke(n.$get,n)});return r(b(n),function(n){f.invoke(n||s)}),f}function ss(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,u){function o(n){var t=null;return r(n,function(n){t||"a"!==v(n.nodeName)||(t=n)}),t}function f(){var n=i.hash(),r;n?(r=e.getElementById(n))?r.scrollIntoView():(r=o(e.getElementsByName(n)))?r.scrollIntoView():"top"===n&&t.scrollTo(0,0):t.scrollTo(0,0)}var e=t.document;return n&&u.$watch(function(){return i.hash()},function(){u.$evalAsync(f)}),f}]}function hs(){this.$get=["$$rAF","$timeout",function(n,t){return n.supported?function(t){return n(t)}:function(n){return t(n,0,!1)}}]}function cs(n,t,f,o){function nt(n){try{n.apply(null,dt.call(arguments,1))}finally{if(a--,0===a)for(;k.length;)try{k.pop()()}catch(t){f.error(t)}}}function ht(n,t){(function i(){r(d,function(n){n()});et=t(i,n)})()}function y(){v!=h.url()&&(v=h.url(),r(it,function(n){n(h.url())}))}var h=this,p=t[0],c=n.location,w=n.history,ft=n.setTimeout,ct=n.clearTimeout,b={},a,k,d,et,it,rt;h.isMock=!1;a=0;k=[];h.$$completeOutstandingRequest=nt;h.$$incOutstandingRequestCount=function(){a++};h.notifyWhenNoOutstandingRequests=function(n){r(d,function(n){n()});0===a?n():k.push(n)};d=[];h.addPollFn=function(n){return l(et)&&ht(100,ft),d.push(n),n};var v=c.href,tt=t.find("base"),ot=null;h.url=function(t,i){var r,u;if(c!==n.location&&(c=n.location),w!==n.history&&(w=n.history),t){if(v!=t)return r=v&&ui(v)===ui(t),v=t,!r&&o.history?i?w.replaceState(null,"",t):(w.pushState(null,"",t),tt.attr("href",tt.attr("href"))):(r||(ot=t),i)?c.replace(t):r?(r=c,u=t.indexOf("#"),u=-1===u?"":t.substr(u+1),r.hash=u):c.href=t,h}else return ot||c.href.replace(/%27/g,"'")};it=[];rt=!1;h.onUrlChange=function(t){if(!rt){if(o.history)u(n).on("popstate",y);if(o.hashchange)u(n).on("hashchange",y);else h.addPollFn(y);rt=!0}return it.push(t),t};h.$$checkUrlChange=y;h.baseHref=function(){var n=tt.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var g={},ut="",st=h.baseHref();h.cookies=function(n,t){var r,u,o,s;if(n)t===i?p.cookie=escape(n)+"=;path="+st+";expires=Thu, 01 Jan 1970 00:00:00 GMT":e(t)&&(r=(p.cookie=escape(n)+"="+escape(t)+";path="+st).length+1,4096<r&&f.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+r+" > 4096 bytes)!"));else{if(p.cookie!==ut)for(ut=p.cookie,r=ut.split("; "),g={},o=0;o<r.length;o++)u=r[o],s=u.indexOf("="),0<s&&(n=unescape(u.substring(0,s)),g[n]===i&&(g[n]=unescape(u.substring(s+1))));return g}};h.defer=function(n,t){var i;return a++,i=ft(function(){delete b[i];nt(n)},t||0),b[i]=!0,i};h.defer.cancel=function(n){return b[n]?(delete b[n],ct(n),nt(s),!0):!1}}function ls(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new cs(n,r,t,i)}]}function as(){this.$get=function(){function t(t,i){function a(n){n!=f&&(r?r==n&&(r=n.n):r=n,h(n.n,n.p),h(n,f),f=n,f.n=null)}function h(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw p("$cacheFactory")("iid",t);var o=0,v=c({},i,{id:t}),e={},s=i&&i.capacity||Number.MAX_VALUE,u={},f=null,r=null;return n[t]={put:function(n,t){if(s<Number.MAX_VALUE){var i=u[n]||(u[n]={key:n});a(i)}if(!l(t))return n in e||o++,e[n]=t,o>s&&this.remove(r.key),t},get:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;a(t)}return e[n]},remove:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;t==f&&(f=t.p);t==r&&(r=t.n);h(t.n,t.p);delete u[n]}delete e[n];o--},removeAll:function(){e={};o=0;u={};f=r=null},destroy:function(){u=v=e=null;delete n[t]},info:function(){return c({},v,{size:o})}}}var n={};return t.info=function(){var t={};return r(n,function(n,i){t[i]=n.info()}),t},t.get=function(t){return n[t]},t}}function vs(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function fe(n,s){var l={},v="Directive",p=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,w=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,b=/^(on[a-z]+|formaction)$/;this.directive=function k(t,i){return ri(t,"directive"),e(t)?(au(i,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],n.factory(t+v,["$injector","$exceptionHandler",function(n,i){var u=[];return r(l[t],function(r,f){try{var e=n.invoke(r);h(e)?e={compile:nt(e)}:!e.compile&&e.link&&(e.compile=nt(e.link));e.priority=e.priority||0;e.index=f;e.name=e.name||t;e.require=e.require||e.controller&&e.name;e.restrict=e.restrict||"A";u.push(e)}catch(o){i(o)}}),u}])),l[t].push(i)):r(t,af(k)),this};this.aHrefSanitizationWhitelist=function(n){return f(n)?(s.aHrefSanitizationWhitelist(n),this):s.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(s.imgSrcSanitizationWhitelist(n),this):s.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(n,f,s,k,d,nt,tt,it,rt,ot,st,ct){function bt(n,t,i,f,e){n instanceof u||(n=u(n));r(n,function(t,i){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(n[i]=u(t).wrap("<span><\/span>").parent()[0])});var o=kt(n,t,n,i,f,e);return lt(n,"ng-scope"),function(t,i,u,f){var e,h,s;for(au(t,"scope"),e=i?oi.clone.call(n):n,r(u,function(n,t){e.data("$"+t+"Controller",n)}),u=0,h=e.length;u<h;u++)s=e[u].nodeType,1!==s&&9!==s||e.eq(u).data("$scope",t);return i&&i(e,t),o&&o(t,e,e,f),e}}function lt(n,t){try{n.addClass(t)}catch(i){}}function kt(n,t,r,f,e,o){function y(n,r,f,e){var s,h,l,o,y,a,p,v;for(s=r.length,v=Array(s),o=0;o<s;o++)v[o]=r[o];for(a=o=0,y=c.length;o<y;a++)h=v[a],r=c[o++],s=c[o++],r?(r.scope?(l=n.$new(),u.data(h,"$scope",l)):l=n,p=r.transcludeOnThisElement?yt(n,r.transclude,e):!r.templateOnThisElement&&e?e:!e&&t?yt(n,t):null,r(s,l,h,f,p)):s&&s(n,h.childNodes,i,e)}for(var c=[],s,l,a,v,h=0;h<n.length;h++)s=new ni,l=gt(n[h],[],s,0===h?f:i,e),(o=l.length?ui(l,n[h],s,t,r,null,[],[],o):null)&&o.scope&&lt(s.$$element,"ng-scope"),s=o&&o.terminal||!(a=n[h].childNodes)||!a.length?null:kt(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),c.push(o,s),v=v||o||s,o=null;return v?y:null}function yt(n,t,i){return function(r,u,f){var e=!1;if(r||(r=n.$new(),e=r.$$transcluded=!0),u=t(r,u,f,i),e)u.on("$destroy",function(){r.$destroy()});return u}}function gt(n,t,i,r,u){var k=i.$attr,o,l,a,b;switch(n.nodeType){case 1:pt(t,at(yi(n).toLowerCase()),"E",r,u);for(var f,s,v,h=n.attributes,c=0,d=h&&h.length;c<d;c++)l=!1,a=!1,f=h[c],(!y||8<=y||f.specified)&&(o=f.name,s=g(f.value),f=at(o),(v=ki.test(f))&&(o=br(f.substr(6),"-")),b=f.replace(/(Start|End)$/,""),f===b+"Start"&&(l=o,a=o.substr(0,o.length-5)+"end",o=o.substr(0,o.length-6)),f=at(o.toLowerCase()),k[f]=o,(v||!i.hasOwnProperty(f))&&(i[f]=s,ie(n,f)&&(i[f]=!0)),bi(n,t,s,f),pt(t,f,"A",r,u,l,a));if(n=n.className,e(n)&&""!==n)for(;o=w.exec(n);)f=at(o[2]),pt(t,f,"C",r,u)&&(i[f]=g(o[3])),n=n.substr(o.index+o[0].length);break;case 3:if(11===y)for(;n.parentNode&&n.nextSibling&&3===n.nextSibling.nodeType;)n.nodeValue+=n.nextSibling.nodeValue,n.parentNode.removeChild(n.nextSibling);pi(t,n.nodeValue);break;case 8:try{(o=p.exec(n.nodeValue))&&(f=at(o[1]),pt(t,f,"M",r,u)&&(i[f]=g(o[2])))}catch(nt){}}return t.sort(vi),t}function ii(n,t,i){var r=[],f=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw ht("uterdir",t,i);1==n.nodeType&&(n.hasAttribute(t)&&f++,n.hasAttribute(i)&&f--);r.push(n);n=n.nextSibling}while(0<f)}else r.push(n);return u(r)}function ri(n,t,i){return function(r,u,f,e,o){return u=ii(u[0],t,i),n(r,u,f,e,o)}}function ui(n,c,l,v,y,p,w,b,k){function di(n,t,i,r){n&&(i&&(n=ri(n,i,r)),n.require=d.require,n.directiveName=ot,(rt===d||d.$$isolateScope)&&(n=si(n,{isolateScope:!0})),w.push(n));t&&(i&&(t=ri(t,i,r)),t.require=d.require,t.directiveName=ot,(rt===d||d.$$isolateScope)&&(t=si(t,{isolateScope:!0})),b.push(t))}function wi(n,t,i,u){var f,s="data",h=!1;if(e(t)){for(;"^"==(f=t.charAt(0))||"?"==f;)t=t.substr(1),"^"==f&&(s="inheritedData"),h=h||"?"==f;if(f=null,u&&"data"===s&&(f=u[t]),f=f||i[s]("$"+t+"Controller"),!f&&!h)throw ht("ctreq",t,n);}else o(t)&&(f=[],r(t,function(t){f.push(wi(n,t,i,u))}));return f}function ct(n,t,e,o,h){function ot(n,t){var r;return 2>arguments.length&&(t=n,n=i),yi&&(r=d),h(n,t,r)}var v,y,it,p,k,a,d={},g,ut;for(v=c===e?l:ft(l,new ni(u(e),l.$attr)),y=v.$$element,rt&&(ut=/^\s*([@=&])(\??)\s*(\w*)\s*$/,a=t.$new(!0),!st||st!==rt&&st!==rt.$$originalDirective?y.data("$isolateScopeNoTemplate",a):y.data("$isolateScope",a),lt(y,"ng-isolate-scope"),r(rt.scope,function(n,i){var e=n.match(ut)||[],r=e[3]||i,c="?"==e[2],e=e[1],o,u,h,s;a.$$isolateBindings[i]=e+r;switch(e){case"@":v.$observe(r,function(n){a[i]=n});v.$$observers[r].$$scope=t;v[r]&&(a[i]=f(v[r])(t));break;case"=":if(c&&!v[r])break;u=nt(v[r]);s=u.literal?ti:function(n,t){return n===t||n!==n&&t!==t};h=u.assign||function(){o=a[i]=u(t);throw ht("nonassign",v[r],rt.name);};o=a[i]=u(t);a.$watch(function(){var n=u(t);return s(n,a[i])||(s(n,o)?h(t,n=a[i]):a[i]=n),o=n},null,u.literal);break;case"&":u=nt(v[r]);a[i]=function(n){return u(t,n)};break;default:throw ht("iscp",rt.name,i,n);}})),g=h&&ot,at&&r(at,function(n){var r={$scope:n===rt||n.$$isolateScope?a:t,$element:y,$attrs:v,$transclude:g},i;k=n.controller;"@"==k&&(k=v[n.name]);i=tt(k,r);d[n.name]=i;yi||y.data("$"+n.name+"Controller",i);n.controllerAs&&(r.$scope[n.controllerAs]=i)}),o=0,it=w.length;o<it;o++)try{p=w[o];p(p.isolateScope?a:t,y,v,p.require&&wi(p.directiveName,p.require,y,d),g)}catch(ct){s(ct,et(y))}for(o=t,rt&&(rt.template||null===rt.templateUrl)&&(o=a),n&&n(o,e.childNodes,i,h),o=b.length-1;0<=o;o--)try{p=b[o];p(p.isolateScope?a:t,y,v,p.require&&wi(p.directiveName,p.require,y,d),g)}catch(vt){s(vt,et(y))}}var hi,pi,gi;k=k||{};for(var ui=-Number.MAX_VALUE,ci,at=k.controllerDirectives,rt=k.newIsolateScopeDirective,st=k.templateDirective,vi=k.nonTlbTranscludeDirective,bi=!1,ki=!1,yi=k.hasElementTranscludeDirective,ut=l.$$element=u(c),d,ot,it,oi=v,pt,yt=0,kt=n.length;yt<kt;yt++){if(d=n[yt],hi=d.$$start,pi=d.$$end,hi&&(ut=ii(c,hi,pi)),it=i,ui>d.priority)break;if((it=d.scope)&&(ci=ci||d,d.templateUrl||(vt("new/isolated scope",rt,d,ut),a(it)&&(rt=d))),ot=d.name,!d.templateUrl&&d.controller&&(it=d.controller,at=at||{},vt("'"+ot+"' controller",at[ot],d,ut),at[ot]=d),(it=d.transclude)&&(bi=!0,d.$$tlb||(vt("transclusion",vi,d,ut),vi=d),"element"==it?(yi=!0,ui=d.priority,it=ut,ut=l.$$element=u(t.createComment(" "+ot+": "+l[ot]+" ")),c=ut[0],wt(y,dt.call(it,0),c),oi=bt(it,v,ui,p&&p.name,{nonTlbTranscludeDirective:vi})):(it=u(pu(c)).contents(),ut.empty(),oi=bt(it,v))),d.template)if(ki=!0,vt("template",st,d,ut),st=d,it=h(d.template)?d.template(ut,l):d.template,it=li(it),d.replace){if(p=d,it=of.test(it)?u(g(it)):[],c=it[0],1!=it.length||1!==c.nodeType)throw ht("tplrt",ot,"");wt(y,ut,c);kt={$attr:{}};it=gt(c,[],kt);gi=n.splice(yt+1,n.length-(yt+1));rt&&fi(it);n=n.concat(it).concat(gi);ei(l,kt);kt=n.length}else ut.html(it);if(d.templateUrl)ki=!0,vt("template",st,d,ut),st=d,d.replace&&(p=d),ct=ai(n.splice(yt,n.length-yt),ut,l,y,bi&&oi,w,b,{controllerDirectives:at,newIsolateScopeDirective:rt,templateDirective:st,nonTlbTranscludeDirective:vi}),kt=n.length;else if(d.compile)try{pt=d.compile(ut,l,oi);h(pt)?di(null,pt,hi,pi):pt&&di(pt.pre,pt.post,hi,pi)}catch(nr){s(nr,et(ut))}d.terminal&&(ct.terminal=!0,ui=Math.max(ui,d.priority))}return ct.scope=ci&&!0===ci.scope,ct.transcludeOnThisElement=bi,ct.templateOnThisElement=ki,ct.transclude=oi,k.hasElementTranscludeDirective=yi,ct}function fi(n){for(var t=0,i=n.length;t<i;t++)n[t]=yf(n[t],{$$isolateScope:!0})}function pt(t,r,u,f,e,o,h){var c,a,y;if(r===e)return null;if(e=null,l.hasOwnProperty(r))for(r=n.get(r+v),a=0,y=r.length;a<y;a++)try{c=r[a];(f===i||f>c.priority)&&-1!=c.restrict.indexOf(u)&&(o&&(c=yf(c,{$$start:o,$$end:h})),t.push(c),e=c)}catch(p){s(p)}return e}function ei(n,t){var u=t.$attr,f=n.$attr,i=n.$$element;r(n,function(i,r){"$"!=r.charAt(0)&&(t[r]&&t[r]!==i&&(i+=("style"===r?";":" ")+t[r]),n.$set(r,i,!0,u[r]))});r(t,function(t,r){"class"==r?(lt(i,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):"style"==r?(i.attr("style",i.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==r.charAt(0)||n.hasOwnProperty(r)||(n[r]=t,f[r]=u[r])})}function ai(n,t,i,f,e,o,s,l){var v=[],p,w,b=t[0],y=n.shift(),tt=c({},y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),nt=h(y.templateUrl)?y.templateUrl(t,i):y.templateUrl;return t.empty(),k.get(ot.getTrustedResourceUrl(nt),{cache:d}).success(function(h){var c,d,k,rt;if(h=li(h),y.replace){if(h=of.test(h)?u(g(h)):[],c=h[0],1!=h.length||1!==c.nodeType)throw ht("tplrt",y.name,nt);h={$attr:{}};wt(f,t,c);k=gt(c,[],h);a(y.scope)&&fi(k);n=k.concat(n);ei(i,h)}else c=b,t.html(h);for(n.unshift(tt),p=ui(n,c,i,e,t,y,o,s,l),r(f,function(n,i){n==c&&(f[i]=t[0])}),w=kt(t[0].childNodes,e);v.length;){h=v.shift();d=v.shift();var ut=v.shift(),it=v.shift(),k=t[0];d!==b&&(rt=d.className,l.hasElementTranscludeDirective&&y.replace||(k=pu(c)),wt(ut,u(d),k),lt(u(k),rt));d=p.transcludeOnThisElement?yt(h,p.transclude,it):it;p(w,h,k,f,d)}v=null}).error(function(n,t,i,r){throw ht("tpload",r.url);}),function(n,t,i,r,u){n=u;v?(v.push(t),v.push(i),v.push(r),v.push(n)):(p.transcludeOnThisElement&&(n=yt(t,p.transclude,u)),p(w,t,i,r,n))}}function vi(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function vt(n,t,i,r){if(t)throw ht("multidir",t.name,i.name,n,et(r));}function pi(n,t){var i=f(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent().length;return t&&lt(n.parent(),"ng-binding"),function(n,r){var u=r.parent(),f=u.data("$binding")||[];f.push(i);u.data("$binding",f);t||lt(u,"ng-binding");n.$watch(i,function(n){r[0].nodeValue=n})}}})}function wi(n,t){if("srcdoc"==t)return ot.HTML;var i=yi(n);if("xlinkHref"==t||"FORM"==i&&"action"==t||"IMG"!=i&&("src"==t||"ngSrc"==t))return ot.RESOURCE_URL}function bi(n,t,i,r){var u=f(i,!0);if(u){if("multiple"===r&&"SELECT"===yi(n))throw ht("selmulti",et(n));t.push({priority:100,compile:function(){return{pre:function(t,i,e){if(i=e.$$observers||(e.$$observers={}),b.test(r))throw ht("nodomevents");(u=f(e[r],!0,wi(n,r)))&&(e[r]=u(t),(i[r]||(i[r]=[])).$$inter=!0,(e.$$observers&&e.$$observers[r].$$scope||t).$watch(u,function(n,t){"class"===r&&n!=t?e.$updateClass(n,t):e.$set(r,n)}))}}}})}}function wt(n,i,r){var f=i[0],h=i.length,s=f.parentNode,e,o,c;if(n)for(e=0,o=n.length;e<o;e++)if(n[e]==f){for(n[e++]=r,o=e+h-1,c=n.length;e<c;e++,o++)o<c?n[e]=n[o]:delete n[e];n.length-=h-1;break}for(s&&s.replaceChild(r,f),n=t.createDocumentFragment(),n.appendChild(f),r[u.expando]=f[u.expando],f=1,h=i.length;f<h;f++)s=i[f],u(s).remove(),n.appendChild(s),delete i[f];i[0]=r;i.length=1}function si(n,t){return c(function(){return n.apply(null,arguments)},n,t)}var ni=function(n,t){this.$$element=n;this.$attr=t||{}};ni.prototype={$normalize:at,$addClass:function(n){n&&0<n.length&&st.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&st.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=ee(n,t),r=ee(t,n);0===i.length?st.removeClass(this.$$element,r):0===r.length?st.addClass(this.$$element,i):st.setClass(this.$$element,i,r)},$set:function(n,t,u,f){var e=ie(this.$$element[0],n);e&&(this.$$element.prop(n,t),f=e);this[n]=t;f?this.$attr[n]=f:(f=this.$attr[n])||(this.$attr[n]=f=br(n,"-"));e=yi(this.$$element);("A"===e&&"href"===n||"IMG"===e&&"src"===n)&&(this[n]=t=ct(t,"src"===n));!1!==u&&(null===t||t===i?this.$$element.removeAttr(f):this.$$element.attr(f,t));(u=this.$$observers)&&r(u[n],function(n){try{n(t)}catch(i){s(i)}})},$observe:function(n,t){var i=this,r=i.$$observers||(i.$$observers={}),u=r[n]||(r[n]=[]);return u.push(t),it.$evalAsync(function(){u.$$inter||t(i[n])}),t}};var hi=f.startSymbol(),ci=f.endSymbol(),li="{{"==hi||"}}"==ci?ut:function(n){return n.replace(/\{\{/g,hi).replace(/}}/g,ci)},ki=/^ngAttr[A-Z]/;return bt}]}function at(n){return tr(n.replace(kc,""))}function ee(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f==o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function ys(){var n={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,i){ri(t,"controller");a(t)?c(n,t):n[t]=i};this.$get=["$injector","$window",function(i,r){return function(u,f){var s,o,h;if(e(u)&&(s=u.match(t),o=s[1],h=s[3],u=n.hasOwnProperty(o)?n[o]:df(f.$scope,o,!0)||df(r,o,!0),nr(u,o,!0)),s=i.instantiate(u,f),h){if(!f||"object"!=typeof f.$scope)throw p("$controller")("noscp",o||u.name,h);f.$scope[h]=s}return s}}]}function ps(){this.$get=["$window",function(n){return u(n.document)}]}function ws(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function oe(n){var t={},i,u,f;return n?(r(n.split("\n"),function(n){f=n.indexOf(":");i=v(g(n.substr(0,f)));u=g(n.substr(f+1));i&&(t[i]=t[i]?t[i]+", "+u:u)}),t):t}function se(n){var t=a(n)?n:i;return function(i){return t||(t=oe(n)),i?t[v(i)]||null:t}}function he(n,t,i){return h(i)?i(n,t):(r(i,function(i){n=i(n,t)}),n)}function bs(){var u=/^\s*(\[|\{[^\{])/,s=/[\}\]]\s*$/,y=/^\)\]\}',?\n/,t={"Content-Type":"application/json;charset=utf-8"},n=this.defaults={transformResponse:[function(n){return e(n)&&(n=n.replace(y,""),u.test(n)&&s.test(n)&&(n=pf(n))),n}],transformRequest:[function(n){return a(n)&&"[object File]"!==ei.call(n)&&"[object Blob]"!==ei.call(n)?ct(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ft(t),put:ft(t),patch:ft(t)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},p=this.interceptors=[],w=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(t,u,s,y,b,k){function d(t){function s(n){var t=c({},n,{data:he(n.data,n.headers,f.transformResponse)});return 200<=n.status&&300>n.status?t:b.reject(t)}var f={method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse},e=function(t){var i=n.headers,u=c({},t.headers),f,e,i=c({},i.common,i[v(t.method)]);n:for(f in i){t=v(f);for(e in u)if(v(e)===t)continue n;u[f]=i[f]}return function(n){var t;r(n,function(i,r){h(i)&&(t=i(),null!=t?n[r]=t:delete n[r])})}(u),u}(t),o,a,u;for(c(f,t),f.headers=e,f.method=vi(f.method),o=[function(t){e=t.headers;var i=he(t.data,se(e),t.transformRequest);return l(i)&&r(e,function(n,t){"content-type"===v(t)&&delete e[t]}),l(t.withCredentials)&&!l(n.withCredentials)&&(t.withCredentials=n.withCredentials),nt(t,i,e).then(s,s)},i],u=b.when(f),r(g,function(n){(n.request||n.requestError)&&o.unshift(n.request,n.requestError);(n.response||n.responseError)&&o.push(n.response,n.responseError)});o.length;)t=o.shift(),a=o.shift(),u=u.then(t,a);return u.success=function(n){return u.then(function(t){n(t.data,t.status,t.headers,f)}),u},u.error=function(n){return u.then(null,function(t){n(t.data,t.status,t.headers,f)}),u},u}function nt(r,e,s){function rt(n,t,i,r){v&&(200<=n&&300>n?v.put(p,[n,t,oe(i),r]):v.remove(p));k(t,n,i,r);y.$$phase||y.$apply()}function k(n,t,i,u){t=Math.max(t,0);(200<=t&&300>t?g.resolve:g.reject)({data:n,status:t,headers:se(i),config:r,statusText:u})}function w(){var n=ki(d.pendingRequests,r);-1!==n&&d.pendingRequests.splice(n,1)}var g=b.defer(),nt=g.promise,v,c,p=tt(r.url,r.params);if(d.pendingRequests.push(r),nt.then(w,w),(r.cache||n.cache)&&!1!==r.cache&&("GET"===r.method||"JSONP"===r.method)&&(v=a(r.cache)?r.cache:a(n.cache)?n.cache:it),v)if(c=v.get(p),f(c)){if(c&&h(c.then))return c.then(w,w),c;o(c)?k(c[1],c[0],ft(c[2]),c[3]):k(c,200,{},"OK")}else v.put(p,nt);return l(c)&&((c=rf(r.url)?u.cookies()[r.xsrfCookieName||n.xsrfCookieName]:i)&&(s[r.xsrfHeaderName||n.xsrfHeaderName]=c),t(r.method,p,e,rt,s,r.timeout,r.withCredentials,r.responseType)),nt}function tt(n,t){if(!t)return n;var i=[];return ns(t,function(n,t){null===n||l(n)||(o(n)||(n=[n]),r(n,function(n){a(n)&&(n=wt(n)?n.toISOString():ct(n));i.push(ii(t)+"="+ii(n))}))}),0<i.length&&(n+=(-1==n.indexOf("?")?"?":"&")+i.join("&")),n}var it=s("$http"),g=[];return r(p,function(n){g.unshift(e(n)?k.get(n):k.invoke(n))}),r(w,function(n,t){var i=e(n)?k.get(n):k.invoke(n);g.splice(t,0,{response:function(n){return i(b.when(n))},responseError:function(n){return i(b.reject(n))}})}),d.pendingRequests=[],function(){r(arguments,function(n){d[n]=function(t,i){return d(c(i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){r(arguments,function(n){d[n]=function(t,i,r){return d(c(r||{},{method:n,url:t,data:i}))}})}("post","put","patch"),d.defaults=n,d}]}function ks(t){if(8>=y&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!n.XMLHttpRequest))return new n.ActiveXObject("Microsoft.XMLHTTP");if(n.XMLHttpRequest)return new n.XMLHttpRequest;throw p("$httpBackend")("noxhr");}function ds(){this.$get=["$browser","$window","$document",function(n,t,i){return gs(n,ks,n.defer,t.angular.callbacks,i[0])}]}function gs(n,t,i,u,o){function l(n,t,i){var r=o.createElement("script"),f=null;return r.type="text/javascript",r.src=n,r.async=!0,f=function(n){sr(r,"load",f);sr(r,"error",f);o.body.removeChild(r);r=null;var e=-1,s="unknown";n&&("load"!==n.type||u[t].called||(n={type:"error"}),s=n.type,e="error"===n.type?404:200);i&&i(e,s)},fu(r,"load",f),fu(r,"error",f),8>=y&&(r.onreadystatechange=function(){e(r.readyState)&&/loaded|complete/.test(r.readyState)&&(r.onreadystatechange=null,f({type:"load"}))}),o.body.appendChild(r),f}var c=-1;return function(e,o,a,p,w,b,k,d){function ut(){tt=c;it&&it();g&&g.abort()}function ft(t,r,u,f,e){rt&&i.cancel(rt);it=g=null;0===r&&(r=u?200:"file"==bt(o).protocol?404:0);t(1223===r?204:r,u,f,e||"");n.$$completeOutstandingRequest(s)}var tt,nt,it,g,rt;if(n.$$incOutstandingRequestCount(),o=o||n.url(),"jsonp"==v(e))nt="_"+(u.counter++).toString(36),u[nt]=function(n){u[nt].data=n;u[nt].called=!0},it=l(o.replace("JSON_CALLBACK","angular.callbacks."+nt),nt,function(n,t){ft(p,n,u[nt].data,"",t);u[nt]=s});else{if(g=t(e),g.open(e,o,!0),r(w,function(n,t){f(n)&&g.setRequestHeader(t,n)}),g.onreadystatechange=function(){if(g&&4==g.readyState){var n=null,t=null,i="";tt!==c&&(n=g.getAllResponseHeaders(),t="response"in g?g.response:g.responseText);tt===c&&10>y||(i=g.statusText);ft(p,tt||g.status,t,n,i)}},k&&(g.withCredentials=!0),d)try{g.responseType=d}catch(et){if("json"!==d)throw et;}g.send(a||null)}0<b?rt=i(ut,b):b&&h(b.then)&&b.then(ut)}}function nh(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,r,u){function f(f,s,h){for(var v,p,c=0,l=[],a=f.length,y=!1,w=[];c<a;)-1!=(v=f.indexOf(n,c))&&-1!=(p=f.indexOf(t,v+e))?(c!=v&&l.push(f.substring(c,v)),l.push(c=i(y=f.substring(v+e,p))),c.exp=y,c=p+o,y=!0):(c!=a&&l.push(f.substring(c)),c=a);if((a=l.length)||(l.push(""),a=1),h&&1<l.length)throw oo("noconcat",f);if(!s||y)return w.length=a,c=function(n){try{for(var i=0,e=a,t;i<e;i++){if("function"==typeof(t=l[i]))if(t=t(n),t=h?u.getTrusted(h,t):u.valueOf(t),null==t)t="";else switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=ct(t)}w[i]=t}return w.join("")}catch(o){n=oo("interr",f,o.toString());r(n)}},c.exp=f,c.parts=l,c}var e=n.length,o=t.length;return f.startSymbol=function(){return n},f.endSymbol=function(){return t},f}]}function th(){this.$get=["$rootScope","$window","$q",function(n,t,i){function u(u,e,o,s){var a=t.setInterval,v=t.clearInterval,c=i.defer(),h=c.promise,l=0,y=f(s)&&!s;return o=f(o)?o:0,h.then(null,null,u),h.$$intervalId=a(function(){c.notify(l++);0<o&&l>=o&&(c.resolve(l),v(h.$$intervalId),delete r[h.$$intervalId]);y||n.$apply()},e),r[h.$$intervalId]=c,h}var r={};return u.cancel=function(n){return n&&n.$$intervalId in r?(r[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete r[n.$$intervalId],!0):!1},u}]}function ih(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(n){return 1===n?"one":"other"}}}}function gu(n){n=n.split("/");for(var t=n.length;t--;)n[t]=wr(n[t]);return n.join("/")}function ce(n,t,i){n=bt(n,i);t.$$protocol=n.protocol;t.$$host=n.hostname;t.$$port=b(n.port)||gc[n.protocol]||null}function le(n,t,i){var r="/"!==n.charAt(0);r&&(n="/"+n);n=bt(n,i);t.$$path=decodeURIComponent(r&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname);t.$$search=bf(n.search);t.$$hash=decodeURIComponent(n.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function vt(n,t){if(0===t.indexOf(n))return t.substr(n.length)}function ui(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function ae(n){return n.replace(/(#.+)|#$/,"$1")}function nf(n){return n.substr(0,ui(n).lastIndexOf("/")+1)}function ve(n,t){this.$$html5=!0;t=t||"";var r=nf(n);ce(n,this,n);this.$$parse=function(t){var i=vt(r,t);if(!e(i))throw hf("ipthprfx",t,r);le(i,this,n);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=lu(this.$$search),t=this.$$hash?"#"+wr(this.$$hash):"";this.$$url=gu(this.$$path)+(n?"?"+n:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$parseLinkUrl=function(u){var f,e;return(f=vt(n,u))!==i?(e=f,e=(f=vt(t,f))!==i?r+(vt("/",f)||f):n+e):(f=vt(r,u))!==i?e=r+f:r==u+"/"&&(e=r),e&&this.$$parse(e),!!e}}function tf(n,t){var i=nf(n);ce(n,this,n);this.$$parse=function(r){var u=vt(n,r)||vt(i,r),u="#"==u.charAt(0)?vt(t,u):this.$$html5?u:"",f;if(!e(u))throw hf("ihshprfx",r,t);le(u,this,n);r=this.$$path;f=/^\/[A-Z]:(\/.*)/;0===u.indexOf(n)&&(u=u.replace(n,""));f.exec(u)||(r=(u=f.exec(r))?u[1]:r);this.$$path=r;this.$$compose()};this.$$compose=function(){var i=lu(this.$$search),r=this.$$hash?"#"+wr(this.$$hash):"";this.$$url=gu(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+(this.$$url?t+this.$$url:"")};this.$$parseLinkUrl=function(t){return ui(n)==ui(t)?(this.$$parse(t),!0):!1}}function ye(n,t){this.$$html5=!0;tf.apply(this,arguments);var i=nf(n);this.$$parseLinkUrl=function(r){var u,f;return n==ui(r)?u=r:(f=vt(i,r))?u=n+t+f:i===r+"/"&&(u=i),u&&this.$$parse(u),!!u};this.$$compose=function(){var i=lu(this.$$search),r=this.$$hash?"#"+wr(this.$$hash):"";this.$$url=gu(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+t+this.$$url}}function nu(n){return function(){return this[n]}}function pe(n,t){return function(i){return l(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function rh(){var t="",i=!1;this.hashPrefix=function(n){return f(n)?(t=n,this):t};this.html5Mode=function(n){return f(n)?(i=n,this):i};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,f,e,o){function y(n){r.$broadcast("$locationChangeSuccess",s.absUrl(),n)}var s,c=f.baseHref(),h=f.url(),p,l;i?(c=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(c||"/"),e=e.history?ve:ye):(c=ui(h),e=tf);s=new e(c,"#"+t);s.$$parseLinkUrl(h,h);p=/^\s*(javascript|mailto):/i;o.on("click",function(t){var i,e,h;if(!t.ctrlKey&&!t.metaKey&&2!=t.which){for(i=u(t.target);"a"!==v(i[0].nodeName);)if(i[0]===o[0]||!(i=i.parent())[0])return;e=i.prop("href");h=i.attr("href")||i.attr("xlink:href");a(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=bt(e.animVal).href);p.test(e)||!e||i.attr("target")||t.isDefaultPrevented()||!s.$$parseLinkUrl(e,h)||(t.preventDefault(),s.absUrl()!=f.url()&&(r.$apply(),n.angular["ff-684208-preventDefault"]=!0))}});s.absUrl()!=h&&f.url(s.absUrl(),!0);f.onUrlChange(function(n){s.absUrl()!=n&&(r.$evalAsync(function(){var t=s.absUrl();s.$$parse(n);r.$broadcast("$locationChangeStart",n,t).defaultPrevented?(s.$$parse(t),f.url(t)):y(t)}),r.$$phase||r.$digest())});return l=0,r.$watch(function(){var n=ae(f.url()),t=ae(s.absUrl()),i=s.$$replace;return l&&n==t||(l++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",s.absUrl(),n).defaultPrevented?s.$$parse(n):(f.url(s.absUrl(),i),y(n))})),s.$$replace=!1,l}),s}]}function uh(){var n=!0,t=this;this.debugEnabled=function(t){return f(t)?(n=t,this):n};this.$get=["$window",function(i){function f(n){return n instanceof Error&&(n.stack?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var t=i.console||{},u=t[n]||t.log||s;n=!1;try{n=!!u.apply}catch(e){}return n?function(){var n=[];return r(arguments,function(t){n.push(f(t))}),u.apply(t,n)}:function(n,t){u(n,null==t?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var i=u("debug");return function(){n&&i.apply(t,arguments)}}()}}]}function ot(n,t){if("__defineGetter__"===n||"__defineSetter__"===n||"__lookupGetter__"===n||"__lookupSetter__"===n||"__proto__"===n)throw it("isecfld",t);return n}function we(n,t){if(n+="",!e(n))throw it("iseccst",t);return n}function st(n,t){if(n){if(n.constructor===n)throw it("isecfn",t);if(n.document&&n.location&&n.alert&&n.setInterval)throw it("isecwindow",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw it("isecdom",t);if(n===Object)throw it("isecobj",t);}return n}function tu(n,t,r,u,f){var e,s,o;for(st(n,u),f=f||{},t=t.split("."),s=0;1<t.length;s++)e=ot(t.shift(),u),o=st(n[e],u),o||(o={},n[e]=o),n=o,n.then&&f.unwrapPromises&&(gt(u),"$$v"in n||function(n){n.then(function(t){n.$$v=t})}(n),n.$$v===i&&(n.$$v={}),n=n.$$v);return e=ot(t.shift(),u),st(n[e],u),n[e]=r}function ai(n){return"constructor"==n}function be(n,t,r,u,f,e,o){ot(n,e);ot(t,e);ot(r,e);ot(u,e);ot(f,e);var s=function(n){return st(n,e)},h=o.expensiveChecks,c=h||ai(n)?s:ut,l=h||ai(t)?s:ut,a=h||ai(r)?s:ut,v=h||ai(u)?s:ut,y=h||ai(f)?s:ut;return o.unwrapPromises?function(o,s){var h=s&&s.hasOwnProperty(n)?s:o,p;return null==h?h:((h=c(h[n]))&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=c(n)})),h=c(h.$$v)),!t)?h:null==h?i:((h=l(h[t]))&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=l(n)})),h=l(h.$$v)),!r)?h:null==h?i:((h=a(h[r]))&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=a(n)})),h=a(h.$$v)),!u)?h:null==h?i:((h=v(h[u]))&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=v(n)})),h=v(h.$$v)),!f)?h:null==h?i:((h=y(h[f]))&&h.then&&(gt(e),"$$v"in h||(p=h,p.$$v=i,p.then(function(n){p.$$v=y(n)})),h=y(h.$$v)),h)}:function(e,o){var s=o&&o.hasOwnProperty(n)?o:e;return null==s?s:(s=c(s[n]),!t)?s:null==s?i:(s=l(s[t]),!r)?s:null==s?i:(s=a(s[r]),!u)?s:null==s?i:(s=v(s[u]),f?null==s?i:s=y(s[f]):s)}}function fh(n,t){return function(i,r){return n(i,r,gt,st,t)}}function ke(n,t,u){var s=t.expensiveChecks,h=s?ul:rl,f,c,e,o,l;return h.hasOwnProperty(n)?h[n]:(f=n.split("."),c=f.length,t.csp?e=6>c?be(f[0],f[1],f[2],f[3],f[4],u,t):function(n,r){var e=0,o;do o=be(f[e++],f[e++],f[e++],f[e++],f[e++],u,t)(n,r),r=i,n=o;while(e<c);return o}:(o="var p;\n",s&&(o+="s = eso(s, fe);\nl = eso(l, fe);\n"),l=s,r(f,function(n,i){ot(n,u);var r=(i?"s":'((l&&l.hasOwnProperty("'+n+'"))?l:s)')+'["'+n+'"]',f=s||ai(n);f&&(r="eso("+r+", fe)",l=!0);o+="if(s == null) return undefined;\ns="+r+";\n";t.unwrapPromises&&(o+='if (s && s.then) {\n pw("'+u.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v='+(f?"eso(v)":"v")+";});\n}\n s="+(f?"eso(s.$$v)":"s.$$v")+"\n}\n")}),o+="return s;",e=new Function("s","l","pw","eso","fe",o),e.toString=nt(o),(l||t.unwrapPromises)&&(e=fh(e,u))),"hasOwnProperty"!==n&&(h[n]=e),e)}function eh(){var t={},i={},n={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0,expensiveChecks:!1};this.unwrapPromises=function(t){return f(t)?(n.unwrapPromises=!!t,this):n.unwrapPromises};this.logPromiseWarnings=function(t){return f(t)?(n.logPromiseWarnings=t,this):n.logPromiseWarnings};this.$get=["$filter","$sniffer","$log",function(r,u,f){n.csp=u.csp;var e={csp:n.csp,unwrapPromises:n.unwrapPromises,logPromiseWarnings:n.logPromiseWarnings,expensiveChecks:!0};return gt=function(t){n.logPromiseWarnings&&!so.hasOwnProperty(t)&&(so[t]=!0,f.warn("[$parse] Promise found in the expression `"+t+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(u,f){var o,h,c;switch(typeof u){case"string":return(h=f?i:t,h.hasOwnProperty(u))?h[u]:(o=f?e:n,c=new cf(o),o=new pi(c,r,o).parse(u),"hasOwnProperty"!==u&&(h[u]=o),o);case"function":return u;default:return s}}}]}function oh(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return sh(function(t){n.$evalAsync(t)},t)}]}function sh(n,t){function f(n){return n}function c(n){return s(n)}var u=function(){var r=[],o,s;return s={resolve:function(t){if(r){var u=r;r=i;o=e(t);u.length&&n(function(){for(var n,t=0,i=u.length;t<i;t++)n=u[t],o.then(n[0],n[1],n[2])})}},reject:function(n){s.resolve(l(n))},notify:function(t){if(r){var i=r;r.length&&n(function(){for(var r,n=0,u=i.length;n<u;n++)r=i[n],r[2](t)})}},promise:{then:function(n,i,e){var s=u(),l=function(i){try{s.resolve((h(n)?n:f)(i))}catch(r){s.reject(r);t(r)}},a=function(n){try{s.resolve((h(i)?i:c)(n))}catch(r){s.reject(r);t(r)}},v=function(n){try{s.notify((h(e)?e:f)(n))}catch(i){t(i)}};return r?r.push([l,a,v]):o.then(l,a,v),s.promise},"catch":function(n){return this.then(null,n)},"finally":function(n){function t(n,t){var i=u();return t?i.resolve(n):i.reject(n),i.promise}function i(i,r){var u=null;try{u=(n||f)()}catch(e){return t(e,!1)}return u&&h(u.then)?u.then(function(){return t(i,r)},function(n){return t(n,!1)}):t(i,r)}return this.then(function(n){return i(n,!0)},function(n){return i(n,!1)})}}}},e=function(t){return t&&h(t.then)?t:{then:function(i){var r=u();return n(function(){r.resolve(i(t))}),r.promise}}},s=function(n){var t=u();return t.reject(n),t.promise},l=function(i){return{then:function(r,f){var e=u();return n(function(){try{e.resolve((h(f)?f:c)(i))}catch(n){e.reject(n);t(n)}}),e.promise}}};return{defer:u,reject:s,when:function(i,r,o,l){var v=u(),a,w=function(n){try{return(h(r)?r:f)(n)}catch(i){return t(i),s(i)}},y=function(n){try{return(h(o)?o:c)(n)}catch(i){return t(i),s(i)}},p=function(n){try{return(h(l)?l:f)(n)}catch(i){t(i)}};return n(function(){e(i).then(function(n){a||(a=!0,v.resolve(e(n).then(w,y,p)))},function(n){a||(a=!0,v.resolve(y(n)))},function(n){a||v.notify(p(n))})}),v.promise},all:function(n){var i=u(),f=0,t=o(n)?[]:{};return r(n,function(n,r){f++;e(n).then(function(n){t.hasOwnProperty(r)||(t[r]=n,--f||i.resolve(t))},function(n){t.hasOwnProperty(r)||i.reject(n)})}),0===f&&i.resolve(t),i.promise}}}function hh(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function ch(){var t=10,i=p("$rootScope"),n=null;this.digestTtl=function(n){return arguments.length&&(t=n),t};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(u,f,e,o){function l(){this.$id=vr();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=!1;this.$$asyncQueue=[];this.$$postDigestQueue=[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function v(n){if(c.$$phase)throw i("inprog",c.$$phase);c.$$phase=n}function y(n,t){var i=e(n);return nr(i,t),i}function p(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function w(){}l.prototype={constructor:l,$new:function(n){return n?(n=new l,n.$root=this.$root,n.$$asyncQueue=this.$$asyncQueue,n.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=vr();this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),n=new this.$$childScopeClass),n["this"]=n,n.$parent=this,n.$$prevSibling=this.$$childTail,this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=n:this.$$childHead=this.$$childTail=n,n},$watch:function(t,i,r){var e=y(t,"watch"),f=this.$$watchers,u={fn:i,last:w,get:e,exp:t,eq:!!r},o,c;return n=null,h(i)||(o=y(i||s,"listener"),u.fn=function(n,t,i){o(i)}),"string"==typeof t&&e.constant&&(c=u.fn,u.fn=function(n,t,i){c.call(this,n,t,i);di(f,u)}),f||(f=this.$$watchers=[]),f.unshift(u),function(){di(f,u);n=null}},$watchCollection:function(n,t){var s=this,i,r,o,v=1<t.length,u=0,y=e(n),h=[],c={},l=!0,f=0;return this.$watch(function(){i=y(s);var t,n,e;if(a(i))if(bi(i))for(r!==h&&(r=h,f=r.length=0,u++),t=i.length,f!==t&&(u++,r.length=f=t),n=0;n<t;n++)e=r[n]!==r[n]&&i[n]!==i[n],e||r[n]===i[n]||(u++,r[n]=i[n]);else{r!==c&&(r=c={},f=0,u++);t=0;for(n in i)i.hasOwnProperty(n)&&(t++,r.hasOwnProperty(n)?(e=r[n]!==r[n]&&i[n]!==i[n],e||r[n]===i[n]||(u++,r[n]=i[n])):(f++,r[n]=i[n],u++));if(f>t)for(n in u++,r)r.hasOwnProperty(n)&&!i.hasOwnProperty(n)&&(f--,delete r[n])}else r!==i&&(r=i,u++);return u},function(){if(l?(l=!1,t(i,i,s)):t(i,o,s),v)if(a(i))if(bi(i)){o=Array(i.length);for(var n=0;n<i.length;n++)o[n]=i[n]}else for(n in o={},i)uu.call(i,n)&&(o[n]=i[n]);else o=i})},$digest:function(){var r,e,s,l,y=this.$$asyncQueue,tt=this.$$postDigestQueue,k,a,d=t,u,p=[],b,g,nt;v("$digest");o.$$checkUrlChange();n=null;do{for(a=!1,u=this;y.length;){try{nt=y.shift();nt.scope.$eval(nt.expression)}catch(it){c.$$phase=null;f(it)}n=null}n:do{if(l=u.$$watchers)for(k=l.length;k--;)try{if(r=l[k])if((e=r.get(u))===(s=r.last)||(r.eq?ti(e,s):"number"==typeof e&&"number"==typeof s&&isNaN(e)&&isNaN(s))){if(r===n){a=!1;break n}}else a=!0,n=r,r.last=r.eq?hi(e,null):e,r.fn(e,s===w?e:s,u),5>d&&(b=4-d,p[b]||(p[b]=[]),g=h(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,g+="; newVal: "+ct(e)+"; oldVal: "+ct(s),p[b].push(g))}catch(rt){c.$$phase=null;f(rt)}if(!(l=u.$$childHead||u!==this&&u.$$nextSibling))for(;u!==this&&!(l=u.$$nextSibling);)u=u.$parent}while(u=l);if((a||y.length)&&!d--)throw c.$$phase=null,i("infdig",t,ct(p));}while(a||y.length);for(c.$$phase=null;tt.length;)try{tt.shift()()}catch(ut){f(ut)}},$destroy:function(){if(!this.$$destroyed){var n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==c&&(r(this.$$listenerCount,cu(null,p,this)),n.$$childHead==this&&(n.$$childHead=this.$$nextSibling),n.$$childTail==this&&(n.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=s,this.$on=this.$watch=function(){return s})}},$eval:function(n,t){return e(n)(this,t)},$evalAsync:function(n){c.$$phase||c.$$asyncQueue.length||o.defer(function(){c.$$asyncQueue.length&&c.$digest()});this.$$asyncQueue.push({scope:this,expression:n})},$$postDigest:function(n){this.$$postDigestQueue.push(n)},$apply:function(n){try{return v("$apply"),this.$eval(n)}catch(i){f(i)}finally{c.$$phase=null;try{c.$digest()}catch(t){throw f(t),t;}}},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=ki(r,t);-1!==i&&(r[i]=null,p(u,1,n))}},$emit:function(n){var s=[],r,i=this,o=!1,u={name:n,targetScope:i,stopPropagation:function(){o=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},h=[u].concat(dt.call(arguments,1)),t,e;do{for(r=i.$$listeners[n]||s,u.currentScope=i,t=0,e=r.length;t<e;t++)if(r[t])try{r[t].apply(null,h)}catch(c){f(c)}else r.splice(t,1),t--,e--;if(o)break;i=i.$parent}while(i);return u},$broadcast:function(n){for(var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},o=[u].concat(dt.call(arguments,1)),r,e;t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,e=i.length;r<e;r++)if(i[r])try{i[r].apply(null,o)}catch(s){f(s)}else i.splice(r,1),r--,e--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u}};var c=new l;return c}]}function lh(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return f(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return(!y||8<=y)&&(u=bt(i).href,""!==u&&!u.match(f))?"unsafe:"+u:i}}}function ah(n){if("self"===n)return n;if(e(n)){if(-1<n.indexOf("***"))throw ni("iwcard",n);return n=n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),RegExp("^"+n+"$")}if(pr(n))return RegExp("^"+n.source+"$");throw ni("imatcher");}function de(n){var t=[];return f(n)&&r(n,function(n){t.push(ah(n))}),t}function vh(){this.SCE_CONTEXTS=rt;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=de(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=de(n)),t};this.$get=["$injector",function(r){function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var o=function(){throw ni("unsafe");},e,u;return r.has("$sanitize")&&(o=r.get("$sanitize")),e=f(),u={},u[rt.HTML]=f(e),u[rt.CSS]=f(e),u[rt.URL]=f(e),u[rt.JS]=f(e),u[rt.RESOURCE_URL]=f(u[rt.URL]),{trustAs:function(n,t){var r=u.hasOwnProperty(n)?u[n]:null;if(!r)throw ni("icontext",n,t);if(null===t||t===i||""===t)return t;if("string"!=typeof t)throw ni("itype",n);return new r(t)},getTrusted:function(r,f){var s,e,c,h;if(null===f||f===i||""===f)return f;if(s=u.hasOwnProperty(r)?u[r]:null,s&&f instanceof s)return f.$$unwrapTrustedValue();if(r===rt.RESOURCE_URL){for(s=bt(f.toString()),h=!1,e=0,c=n.length;e<c;e++)if("self"===n[e]?rf(s):n[e].exec(s.href)){h=!0;break}if(h)for(e=0,c=t.length;e<c;e++)if("self"===t[e]?rf(s):t[e].exec(s.href)){h=!1;break}if(h)return f;throw ni("insecurl",f.toString());}if(r===rt.HTML)return o(f);throw ni("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function yh(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sniffer","$sceDelegate",function(t,i,u){var f;if(n&&i.msie&&8>i.msieDocumentMode)throw ni("iequirks");f=ft(rt);f.isEnabled=function(){return n};f.trustAs=u.trustAs;f.getTrusted=u.getTrusted;f.valueOf=u.valueOf;n||(f.trustAs=f.getTrusted=function(n,t){return t},f.valueOf=ut);f.parseAs=function(n,i){var r=t(i);return r.literal&&r.constant?r:function(t,i){return f.getTrusted(n,r(t,i))}};var e=f.parseAs,o=f.getTrusted,s=f.trustAs;return r(rt,function(n,t){var i=v(t);f[tr("parse_as_"+i)]=function(t){return e(n,t)};f[tr("get_trusted_"+i)]=function(t){return o(n,t)};f[tr("trust_as_"+i)]=function(t){return s(n,t)}}),f}]}function ph(){this.$get=["$window","$document",function(n,t){var s={},h=b((/android (\d+)/.exec(v((n.navigator||{}).userAgent))||[])[1]),p=/Boxee/i.test((n.navigator||{}).userAgent),u=t[0]||{},c=u.documentMode,i,r=u.body&&u.body.style,f=!1,o=!1,a;if(r){for(a in r)if(f=/^(Moz|webkit|O|ms)(?=[A-Z])/.exec(a)){i=f[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in r&&"webkit");f=!!("transition"in r||i+"Transition"in r);o=!!("animation"in r||i+"Animation"in r);!h||f&&o||(f=e(u.body.style.webkitTransition),o=e(u.body.style.webkitAnimation))}return{history:!(!n.history||!n.history.pushState||4>h||p),hashchange:"onhashchange"in n&&(!c||7<c),hasEvent:function(n){if("input"==n&&9==y)return!1;if(l(s[n])){var t=u.createElement("div");s[n]="on"+n in t}return s[n]},csp:er(),vendorPrefix:i,transitions:f,animations:o,android:h,msie:y,msieDocumentMode:c}}]}function wh(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(n,t,i,r){function e(e,o,s){var h=i.defer(),c=h.promise,l=f(s)&&!s;return o=t.defer(function(){try{h.resolve(e())}catch(t){h.reject(t);r(t)}finally{delete u[c.$$timeoutId]}l||n.$apply()},o),c.$$timeoutId=o,u[o]=h,c}var u={};return e.cancel=function(n){return n&&n.$$timeoutId in u?(u[n.$$timeoutId].reject("canceled"),delete u[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},e}]}function bt(n){var t=n;return y&&(d.setAttribute("href",t),t=d.href),d.setAttribute("href",t),{href:d.href,protocol:d.protocol?d.protocol.replace(/:$/,""):"",host:d.host,search:d.search?d.search.replace(/^\?/,""):"",hash:d.hash?d.hash.replace(/^#/,""):"",hostname:d.hostname,port:d.port,pathname:"/"===d.pathname.charAt(0)?d.pathname:"/"+d.pathname}}function rf(n){return n=e(n)?bt(n):n,n.protocol===co.protocol&&n.host===co.host}function bh(){this.$get=nt(n)}function ge(n){function t(u,f){if(a(u)){var e={};return r(u,function(n,i){e[i]=t(i,n)}),e}return n.factory(u+i,f)}var i="Filter";this.register=t;this.$get=["$injector",function(n){return function(t){return n.get(t+i)}}];t("currency",no);t("date",ro);t("filter",kh);t("json",dh);t("limitTo",gh);t("lowercase",ao);t("number",to);t("orderBy",uo);t("uppercase",vo)}function kh(){return function(n,t,i){var u,r,e,f,s;if(!o(n))return n;u=typeof i;r=[];r.check=function(n){for(var t=0;t<r.length;t++)if(!r[t](n))return!1;return!0};"function"!==u&&(i="boolean"===u&&i?function(n,t){return ur.equals(n,t)}:function(n,t){if(n&&t&&"object"==typeof n&&"object"==typeof t){for(var r in n)if("$"!==r.charAt(0)&&uu.call(n,r)&&i(n[r],t[r]))return!0;return!1}return t=(""+t).toLowerCase(),-1<(""+n).toLowerCase().indexOf(t)});e=function(n,t){if("string"==typeof t&&"!"===t.charAt(0))return!e(n,t.substr(1));switch(typeof n){case"boolean":case"number":case"string":return i(n,t);case"object":switch(typeof t){case"object":return i(n,t);default:for(var r in n)if("$"!==r.charAt(0)&&e(n[r],t))return!0}return!1;case"array":for(r=0;r<n.length;r++)if(e(n[r],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(f in t)(function(n){"undefined"!=typeof t[n]&&r.push(function(i){return e("$"==n?i:i&&i[n],t[n])})})(f);break;case"function":r.push(t);break;default:return n}for(u=[],f=0;f<n.length;f++)s=n[f],r.check(s)&&u.push(s);return u}}function no(n){var t=n.NUMBER_FORMATS;return function(n,i){return l(i)&&(i=t.CURRENCY_SYM),io(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,i)}}function to(n){var t=n.NUMBER_FORMATS;return function(n,i){return io(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function io(n,t,i,r,u){var h,s;if(null==n||!isFinite(n)||a(n))return"";h=0>n;n=Math.abs(n);var f=n+"",o="",c=[],e=!1;if(-1!==f.indexOf("e")&&(s=f.match(/([\d\.]+)e(-?)(\d+)/),s&&"-"==s[2]&&s[3]>u+1?(f="0",n=0):(o=f,e=!0)),e)0<u&&-1<n&&1>n&&(o=n.toFixed(u));else{f=(f.split(lo)[1]||"").length;l(u)&&(u=Math.min(Math.max(t.minFrac,f),t.maxFrac));n=+(Math.round(+(n.toString()+"e"+u)).toString()+"e"+-u);0===n&&(h=!1);n=(""+n).split(lo);f=n[0];n=n[1]||"";var s=0,v=t.lgSize,y=t.gSize;if(f.length>=v+y)for(s=f.length-v,e=0;e<s;e++)0==(s-e)%y&&0!==e&&(o+=i),o+=f.charAt(e);for(e=s;e<f.length;e++)0==(f.length-e)%v&&0!==e&&(o+=i),o+=f.charAt(e);for(;n.length<u;)n+="0";u&&"0"!==u&&(o+=r+n.substr(0,u))}return c.push(h?t.negPre:t.posPre),c.push(o),c.push(h?t.negSuf:t.posSuf),c.join("")}function uf(n,t,i){var r="";for(0>n&&(r="-",n=-n),n=""+n;n.length<t;)n="0"+n;return i&&(n=n.substr(n.length-t)),r+n}function k(n,t,i,r){return i=i||0,function(u){return u=u["get"+n](),(0<i||u>-i)&&(u+=i),0===u&&-12==i&&(u=12),uf(u,t,r)}}function iu(n,t){return function(i,r){var u=i["get"+n](),f=vi(t?"SHORT"+n:n);return r[f][u]}}function ro(n){function t(n){var t;if(t=n.match(i)){n=new Date(0);var r=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(r=b(t[9]+t[10]),u=b(t[9]+t[11]));f.call(n,b(t[1]),b(t[2])-1,b(t[3]));r=b(t[4]||0)-r;u=b(t[5]||0)-u;f=b(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,r,u,f,t)}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u){var s="",f=[],o,h;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,e(i)&&(i=ol.test(i)?b(i):t(i)),yr(i)&&(i=new Date(i)),!wt(i))return i;for(;u;)(h=el.exec(u))?(f=f.concat(dt.call(h,1)),u=f.pop()):(f.push(u),u=null);return r(f,function(t){o=fl[t];s+=o?o(i,n.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function dh(){return function(n){return ct(n,!0)}}function gh(){return function(n,t){return o(n)||e(n)?(t=Infinity===Math.abs(Number(t))?Number(t):b(t))?0<t?n.slice(0,t):n.slice(t):e(n)?"":[]:n}}function uo(n){return function(t,i,r){function u(n,t){return gi(t)?function(t,i){return n(i,t)}:n}function f(n,t){var i=typeof n,r=typeof t;return i==r?(wt(n)&&wt(t)&&(n=n.valueOf(),t=t.valueOf()),"string"==i&&(n=n.toLowerCase(),t=t.toLowerCase()),n===t?0:n<t?-1:1):i<r?-1:1}return bi(t)?(i=o(i)?i:[i],0===i.length&&(i=["+"]),i=is(i,function(t){var r=!1,i=t||ut,o;if(e(t)){if(("+"==t.charAt(0)||"-"==t.charAt(0))&&(r="-"==t.charAt(0),t=t.substring(1)),""===t)return u(function(n,t){return f(n,t)},r);if(i=n(t),i.constant)return o=i(),u(function(n,t){return f(n[o],t[o])},r)}return u(function(n,t){return f(i(n),i(t))},r)}),dt.call(t).sort(u(function(n,t){for(var u,r=0;r<i.length;r++)if(u=i[r](n,t),0!==u)return u;return 0},r))):t}}function kt(n){return h(n)&&(n={link:n}),n.restrict=n.restrict||"AC",nt(n)}function fo(n,t,i,u){function e(t,i){i=i?"-"+br(i,"-"):"";u.setClass(n,(t?ou:su)+i,(t?su:ou)+i)}var f=this,o=n.parent().controller("form")||ar,s=0,h=f.$error={},c=[];f.$name=t.name||t.ngForm;f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;o.$addControl(f);n.addClass(wi);e(!0);f.$addControl=function(n){ri(n.$name,"input");c.push(n);n.$name&&(f[n.$name]=n)};f.$removeControl=function(n){n.$name&&f[n.$name]===n&&delete f[n.$name];r(h,function(t,i){f.$setValidity(i,!0,n)});di(c,n)};f.$setValidity=function(n,t,i){var r=h[n];if(t)r&&(di(r,i),r.length||(s--,s||(e(t),f.$valid=!0,f.$invalid=!1),h[n]=!1,e(!0,n),o.$setValidity(n,!0,f)));else{if(s||e(t),r){if(-1!=ki(r,i))return}else h[n]=r=[],s++,e(!1,n),o.$setValidity(n,!1,f);r.push(i);f.$valid=!1;f.$invalid=!0}};f.$setDirty=function(){u.removeClass(n,wi);u.addClass(n,hu);f.$dirty=!0;f.$pristine=!1;o.$setDirty()};f.$setPristine=function(){u.removeClass(n,hu);u.addClass(n,wi);f.$dirty=!1;f.$pristine=!0;r(c,function(n){n.$setPristine()})}}function yt(n,t,r,u){return n.$setValidity(t,r),r?u:i}function eo(n,t){var i,r;if(t)for(i=0;i<t.length;++i)if(r=t[i],n[r])return!0;return!1}function nc(n,t,i,r,u){a(u)&&(n.$$hasNativeValidators=!0,n.$parsers.push(function(f){if(n.$error[t]||eo(u,r)||!eo(u,i))return f;n.$setValidity(t,!1)}))}function ru(n,t,i,r,u,f){var l=t.prop(tc),a=t[0].placeholder,d={},nt=v(t[0].type),s,o,h,c,e,w,k;if(r.$$validityState=l,!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(u){if(!s){var f=t.val();y&&"input"===(u||d).type&&t[0].placeholder!==a?a=t[0].placeholder:("password"!==nt&&gi(i.ngTrim||"T")&&(f=g(f)),u=l&&r.$$hasNativeValidators,r.$viewValue!==f||""===f&&u)&&(n.$root.$$phase?r.$setViewValue(f):n.$apply(function(){r.$setViewValue(f)}))}},u.hasEvent("input"))t.on("input",o);else{c=function(){h||(h=f.defer(function(){o();h=null}))};t.on("keydown",function(n){n=n.keyCode;91===n||15<n&&19>n||37<=n&&40>=n||c()});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)};e=i.ngPattern;e&&((u=e.match(/^\/(.*)\/([gim]*)$/))?(e=RegExp(u[1],u[2]),u=function(n){return yt(r,"pattern",r.$isEmpty(n)||e.test(n),n)}):u=function(i){var u=n.$eval(e);if(!u||!u.test)throw p("ngPattern")("noregexp",e,u,et(t));return yt(r,"pattern",r.$isEmpty(i)||u.test(i),i)},r.$formatters.push(u),r.$parsers.push(u));i.ngMinlength&&(w=b(i.ngMinlength),u=function(n){return yt(r,"minlength",r.$isEmpty(n)||n.length>=w,n)},r.$parsers.push(u),r.$formatters.push(u));i.ngMaxlength&&(k=b(i.ngMaxlength),u=function(n){return yt(r,"maxlength",r.$isEmpty(n)||n.length<=k,n)},r.$parsers.push(u),r.$formatters.push(u))}function ff(n,t){return n="ngClass"+n,["$animate",function(i){function f(n,t){var f=[],r=0,u,i;n:for(;r<n.length;r++){for(u=n[r],i=0;i<t.length;i++)if(u==t[i])continue n;f.push(u)}return f}function u(n){if(!o(n)){if(e(n))return n.split(" ");if(a(n)){var t=[];return r(n,function(n,i){n&&(t=t.concat(i.split(" ")))}),t}}return n}return{restrict:"AC",link:function(e,o,s){function h(n,t){var i=o.data("$classCounts")||{},u=[];return r(n,function(n){(0<t||i[n])&&(i[n]=(i[n]||0)+t,i[n]===+(0<t)&&u.push(n))}),o.data("$classCounts",i),u.join(" ")}function l(n){var r,l;if(!0===t||e.$index%2===t)if(r=u(n||[]),c){if(!ti(n,c)){var a=u(c),l=f(r,a),r=f(a,r),r=h(r,-1),l=h(l,1);0===l.length?i.removeClass(o,r):0===r.length?i.addClass(o,l):i.setClass(o,l,r)}}else l=h(r,1),s.$addClass(l);c=ft(n)}var c;e.$watch(s[n],l,!0);s.$observe("class",function(){l(e.$eval(s[n]))});"ngClass"!==n&&e.$watch("$index",function(i,r){var f=i&1,o;f!==(r&1)&&(o=u(e.$eval(s[n])),f===t?(f=h(o,1),s.$addClass(f)):(f=h(o,-1),s.$removeClass(f)))})}}}]}var tc="validity",v=function(n){return e(n)?n.toLowerCase():n},uu=Object.prototype.hasOwnProperty,vi=function(n){return e(n)?n.toUpperCase():n},y,u,fi,dt=[].slice,ic=[].push,ei=Object.prototype.toString,rr=p("ng"),ur=n.angular||(n.angular={}),fr,yi,pt=["0","0","0"],o,g,oi,hr,sf,pi,ao,vo,yo,eu,ar;y=b((/msie (\d+)/.exec(v(navigator.userAgent))||[])[1]);isNaN(y)&&(y=b((/trident\/.*; rv:(\d+)/.exec(v(navigator.userAgent))||[])[1]));s.$inject=[];ut.$inject=[];o=function(){return h(Array.isArray)?Array.isArray:function(n){return"[object Array]"===ei.call(n)}}();g=function(){return String.prototype.trim?function(n){return e(n)?n.trim():n}:function(n){return e(n)?n.replace(/^\s\s*/,"").replace(/\s\s*$/,""):n}}();yi=9>y?function(n){return n=n.nodeName?n:n[0],n.scopeName&&"HTML"!=n.scopeName?vi(n.scopeName+":"+n.nodeName):n.nodeName}:function(n){return n.nodeName?n.nodeName:n[0].nodeName};var er=function(){if(f(er.isActive_))return er.isActive_;var n=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!n)try{new Function("")}catch(i){n=!0}return er.isActive_=n},rc=/[A-Z]/g,uc={full:"1.2.29",major:1,minor:2,dot:29,codeName:"ultimate-deprecation"};w.expando="ng339";var or=w.cache={},fc=1,fu=n.document.addEventListener?function(n,t,i){n.addEventListener(t,i,!1)}:function(n,t,i){n.attachEvent("on"+t,i)},sr=n.document.removeEventListener?function(n,t,i){n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent("on"+t,i)};w._data=function(n){return this.cache[n[this.expando]]||{}};var ec=/([\:\-\_]+(.))/g,oc=/^moz([A-Z])/,ef=p("jqLite"),sc=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,of=/<|&#?\w+;/,hc=/<([\w:]+)/,cc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,tt={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,"",""]};tt.optgroup=tt.option;tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead;tt.th=tt.td;oi=w.prototype={ready:function(i){function r(){u||(u=!0,i())}var u=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),w(n).on("load",r))},toString:function(){var n=[];return r(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?u(this[n]):u(this[this.length+n])},length:0,push:ic,sort:[].sort,splice:[].splice};hr={};r("multiple selected checked disabled readOnly required open".split(" "),function(n){hr[v(n)]=n});sf={};r("input select option textarea button form details".split(" "),function(n){sf[vi(n)]=!0});r({data:bu,removeData:wu},function(n,t){w[t]=n});r({data:bu,inheritedData:gr,scope:function(n){return u.data(n,"$scope")||gr(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return u.data(n,"$isolateScope")||u.data(n,"$isolateScopeNoTemplate")},controller:ne,injector:function(n){return gr(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:ku,css:function(n,t,r){if(t=tr(t),f(r))n.style[t]=r;else{var u;return 8>=y&&(u=n.currentStyle&&n.currentStyle[t],""===u&&(u="auto")),u=u||n.style[t],8>=y&&(u=""===u?i:u),u}},attr:function(n,t,r){var u=v(t);if(hr[u])if(f(r))r?(n[t]=!0,n.setAttribute(t,u)):(n[t]=!1,n.removeAttribute(u));else return n[t]||(n.attributes.getNamedItem(t)||s).specified?u:i;else if(f(r))n.setAttribute(t,r);else if(n.getAttribute)return n=n.getAttribute(t,2),null===n?i:n},prop:function(n,t,i){if(f(i))n[t]=i;else return n[t]},text:function(){function t(t,i){var r=n[t.nodeType];if(l(i))return r?t[r]:"";t[r]=i}var n=[];return 9>y?(n[1]="innerText",n[3]="nodeValue"):n[1]=n[3]="textContent",t.$dv="",t}(),val:function(n,t){if(l(t)){if("SELECT"===yi(n)&&n.multiple){var i=[];return r(n.options,function(n){n.selected&&i.push(n.value||n.text)}),0===i.length?null:i}return n.value}n.value=t},html:function(n,t){if(l(t))return n.innerHTML;for(var i=0,r=n.childNodes;i<r.length;i++)ci(r[i]);n.innerHTML=t},empty:te},function(n,t){w.prototype[t]=function(t,r){var u,f,e=this.length,o;if(n!==te&&(2==n.length&&n!==ku&&n!==ne?t:r)===i){if(a(t)){for(u=0;u<e;u++)if(n===bu)n(this[u],t);else for(f in t)n(this[u],f,t[f]);return this}for(u=n.$dv,e=u===i?Math.min(e,1):e,f=0;f<e;f++)o=n(this[f],t,r),u=u?u+o:o;return u}for(u=0;u<e;u++)n(this[u],t,r);return this}});r({removeData:wu,dealoc:ci,on:function lc(n,i,u,e){if(f(e))throw ef("onargs");var o=lt(n,"events"),s=lt(n,"handle");o||lt(n,"events",o={});s||lt(n,"handle",s=os(n,o));r(i.split(" "),function(i){var r=o[i],f;r||("mouseenter"==i||"mouseleave"==i?(f=t.body.contains||t.body.compareDocumentPosition?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&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},o[i]=[],lc(n,{mouseleave:"mouseout",mouseenter:"mouseover"}[i],function(n){var t=n.relatedTarget;t&&(t===this||f(this,t))||s(n,i)})):(fu(n,i,s),o[i]=[]),r=o[i]);r.push(u)})},off:gf,one:function(n,t,i){n=u(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,t){var i,u=n.parentNode;ci(n);r(new w(t),function(t){i?u.insertBefore(t,i.nextSibling):u.replaceChild(t,n);i=t})},children:function(n){var t=[];return r(n.childNodes,function(n){1===n.nodeType&&t.push(n)}),t},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){r(new w(t),function(t){1!==n.nodeType&&11!==n.nodeType||n.appendChild(t)})},prepend:function(n,t){if(1===n.nodeType){var i=n.firstChild;r(new w(t),function(t){n.insertBefore(t,i)})}},wrap:function(n,t){t=u(t)[0];var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)},remove:function(n){ci(n);var t=n.parentNode;t&&t.removeChild(n)},after:function(n,t){var i=n,u=n.parentNode;r(new w(t),function(n){u.insertBefore(n,i.nextSibling);i=n})},addClass:dr,removeClass:kr,toggleClass:function(n,t,i){t&&r(t.split(" "),function(t){var r=i;l(r)&&(r=!ku(n,t));(r?dr:kr)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){if(n.nextElementSibling)return n.nextElementSibling;for(n=n.nextSibling;null!=n&&1!==n.nodeType;)n=n.nextSibling;return n},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:pu,triggerHandler:function(n,t,i){var u,e,f;u=t.type||t;f=(lt(n,"events")||{})[u];f&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopPropagation:s,type:u,target:n},t.type&&(u=c(u,t)),t=ft(f),e=i?[u].concat(i):[u],r(t,function(t){t.apply(n,e)}))}},function(n,t){w.prototype[t]=function(t,i,r){for(var e,o=0;o<this.length;o++)l(e)?(e=n(this[o],t,i,r),f(e)&&(e=u(e))):du(e,n(this[o],t,i,r));return f(e)?e:this};w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off});ir.prototype={put:function(n,t){this[li(n,this.nextUid)]=t},get:function(n){return this[li(n,this.nextUid)]},remove:function(n){var t=this[n=li(n,this.nextUid)];return delete this[n],t}};var ac=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,vc=/,/,yc=/^\s*(_?)(\S+?)\1\s*$/,pc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,cr=p("$injector"),wc=p("$animate"),bc=["$provide",function(n){this.$$selectors={};this.register=function(t,i){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw wc("notcsel",t);this.$$selectors[t.substr(1)]=r;n.factory(r,i)};this.classNameFilter=function(n){return 1===arguments.length&&(this.$$classNameFilter=n instanceof RegExp?n:null),this.$$classNameFilter};this.$get=["$timeout","$$asyncCallback",function(n,t){return{enter:function(n,i,r,u){r?r.after(n):(i&&i[0]||(i=r.parent()),i.append(n));u&&t(u)},leave:function(n,i){n.remove();i&&t(i)},move:function(n,t,i,r){this.enter(n,t,i,r)},addClass:function(n,i,u){i=e(i)?i:o(i)?i.join(" "):"";r(n,function(n){dr(n,i)});u&&t(u)},removeClass:function(n,i,u){i=e(i)?i:o(i)?i.join(" "):"";r(n,function(n){kr(n,i)});u&&t(u)},setClass:function(n,i,u,f){r(n,function(n){dr(n,i);kr(n,u)});f&&t(f)},enabled:s}}]}],ht=p("$compile");fe.$inject=["$provide","$$sanitizeUriProvider"];var kc=/^(x[\:\-_]|data[\:\-_])/i,oo=p("$interpolate"),dc=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,gc={http:80,https:443,ftp:21},hf=p("$location");ye.prototype=tf.prototype=ve.prototype={$$html5:!1,$$replace:!1,absUrl:nu("$$absUrl"),url:function(n){return l(n)?this.$$url:(n=dc.exec(n),n[1]&&this.path(decodeURIComponent(n[1])),(n[2]||n[1])&&this.search(n[3]||""),this.hash(n[5]||""),this)},protocol:nu("$$protocol"),host:nu("$$host"),port:nu("$$port"),path:pe("$$path",function(n){return n=null!==n?n.toString():"","/"==n.charAt(0)?n:"/"+n}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(e(n)||yr(n))n=n.toString(),this.$$search=bf(n);else if(a(n))r(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw hf("isrcharg");break;default:l(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:pe("$$hash",function(n){return null!==n?n.toString():""}),replace:function(){return this.$$replace=!0,this}};var it=p("$parse"),so={},gt,nl=Function.prototype.call,tl=Function.prototype.apply,ho=Function.prototype.bind,lr={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:s,"+":function(n,t,r,u){return r=r(n,t),u=u(n,t),f(r)?f(u)?r+u:r:f(u)?u:i},"-":function(n,t,i,r){return i=i(n,t),r=r(n,t),(f(i)?i:0)-(f(r)?r:0)},"*":function(n,t,i,r){return i(n,t)*r(n,t)},"/":function(n,t,i,r){return i(n,t)/r(n,t)},"%":function(n,t,i,r){return i(n,t)%r(n,t)},"^":function(n,t,i,r){return i(n,t)^r(n,t)},"=":s,"===":function(n,t,i,r){return i(n,t)===r(n,t)},"!==":function(n,t,i,r){return i(n,t)!==r(n,t)},"==":function(n,t,i,r){return i(n,t)==r(n,t)},"!=":function(n,t,i,r){return i(n,t)!=r(n,t)},"<":function(n,t,i,r){return i(n,t)<r(n,t)},">":function(n,t,i,r){return i(n,t)>r(n,t)},"<=":function(n,t,i,r){return i(n,t)<=r(n,t)},">=":function(n,t,i,r){return i(n,t)>=r(n,t)},"&&":function(n,t,i,r){return i(n,t)&&r(n,t)},"||":function(n,t,i,r){return i(n,t)||r(n,t)},"&":function(n,t,i,r){return i(n,t)&r(n,t)},"|":function(n,t,i,r){return r(n,t)(n,t,i(n,t))},"!":function(n,t,i){return!i(n,t)}},il={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},cf=function(n){this.options=n};cf.prototype={constructor:cf,lex:function(n){for(this.text=n,this.index=0,this.ch=i,this.lastCh=":",this.tokens=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),this.index++;else if(this.isWhitespace(this.ch)){this.index++;continue}else{n=this.ch+this.peek();var t=n+this.peek(2),r=lr[this.ch],u=lr[n],f=lr[t];f?(this.tokens.push({index:this.index,text:t,fn:f}),this.index+=3):u?(this.tokens.push({index:this.index,text:n,fn:u}),this.index+=2):r?(this.tokens.push({index:this.index,text:this.ch,fn:r}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(n){return-1!==n.indexOf(this.ch)},was:function(n){return-1!==n.indexOf(this.lastCh)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdent:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=f(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw it("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=v(this.text.charAt(this.index)),"."==t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"==t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"==n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!=n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}n*=1;this.tokens.push({index:r,text:n,literal:!0,constant:!0,fn:function(){return n}})},readIdent:function(){for(var o,e=this,n="",t=this.index,r,u,f,i;this.index<this.text.length;){if(i=this.text.charAt(this.index),"."===i||this.isIdent(i)||this.isNumber(i))"."===i&&(r=this.index),n+=i;else break;this.index++}if(r)for(u=this.index;u<this.text.length;){if(i=this.text.charAt(u),"("===i){f=n.substr(r-t+1);n=n.substr(0,r-t);this.index=u;break}if(this.isWhitespace(i))u++;else break}t={index:t,text:n};lr.hasOwnProperty(n)?(t.fn=lr[n],t.literal=!0,t.constant=!0):(o=ke(n,this.options,this.text),t.fn=c(function(n,t){return o(n,t)},{assign:function(t,i){return tu(t,n,i,e.text,e.options)}}));this.tokens.push(t);f&&(this.tokens.push({index:r,text:"."}),this.tokens.push({index:r+1,text:f}))},readString:function(n){var f=this.index,t,u;this.index++;for(var r="",u=n,i=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,i)"u"===t?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,r+=String.fromCharCode(parseInt(i,16))):r+=il[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,string:r,literal:!0,constant:!0,fn:function(){return r}});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};pi=function(n,t,i){this.lexer=n;this.$filter=t;this.options=i};pi.ZERO=c(function(){return 0},{constant:!0});pi.prototype={constructor:pi,parse:function(n){return this.text=n,this.tokens=this.lexer.lex(n),n=this.statements(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n.literal=!!n.literal,n.constant=!!n.constant,n},primary:function(){var n,t,i;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():(t=this.expect(),(n=t.fn)||this.throwError("not a primary expression",t),n.literal=!!t.literal,n.constant=!!t.constant);t=this.expect("(","[",".");)"("===t.text?(n=this.functionCall(n,i),i=null):"["===t.text?(i=n,n=this.objectIndex(n)):"."===t.text?(i=n,n=this.fieldAccess(n)):this.throwError("IMPOSSIBLE");return n},throwError:function(n,t){throw it("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},peekToken:function(){if(0===this.tokens.length)throw it("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){if(0<this.tokens.length){var f=this.tokens[0],u=f.text;if(u===n||u===t||u===i||u===r||!(n||t||i||r))return f}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.tokens.shift(),n):!1},consume:function(n){this.expect(n)||this.throwError("is unexpected, expecting ["+n+"]",this.peek())},unaryFn:function(n,t){return c(function(i,r){return n(i,r,t)},{constant:t.constant})},ternaryFn:function(n,t,i){return c(function(r,u){return n(r,u)?t(r,u):i(r,u)},{constant:n.constant&&t.constant&&i.constant})},binaryFn:function(n,t,i){return c(function(r,u){return t(r,u,n,i)},{constant:n.constant&&i.constant})},statements:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.filterChain()),!this.expect(";"))return 1===n.length?n[0]:function(t,i){for(var f,u,r=0;r<n.length;r++)u=n[r],u&&(f=u(t,i));return f}},filterChain:function(){for(var n=this.expression(),t;;)if(t=this.expect("|"))n=this.binaryFn(n,t.fn,this.filter());else return n},filter:function(){for(var i,t=this.expect(),r=this.$filter(t.text),n=[];;)if(t=this.expect(":"))n.push(this.expression());else return i=function(t,i,u){u=[u];for(var f=0;f<n.length;f++)u.push(n[f](t,i));return r.apply(t,u)},function(){return i}},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary(),i,t;return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),i=this.ternary(),function(t,r){return n.assign(t,i(t,r),r)}):n},ternary:function(){var n=this.logicalOR(),t,i;if(this.expect("?")){if(t=this.assignment(),i=this.expect(":"))return this.ternaryFn(n,t,this.assignment());this.throwError("expected :",i)}else return n},logicalOR:function(){for(var n=this.logicalAND(),t;;)if(t=this.expect("||"))n=this.binaryFn(n,t.fn,this.logicalAND());else return n},logicalAND:function(){var n=this.equality(),t;return(t=this.expect("&&"))&&(n=this.binaryFn(n,t.fn,this.logicalAND())),n},equality:function(){var n=this.relational(),t;return(t=this.expect("==","!=","===","!=="))&&(n=this.binaryFn(n,t.fn,this.equality())),n},relational:function(){var n=this.additive(),t;return(t=this.expect("<",">","<=",">="))&&(n=this.binaryFn(n,t.fn,this.relational())),n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n=this.binaryFn(n,t.fn,this.multiplicative());return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n=this.binaryFn(n,t.fn,this.unary());return n},unary:function(){var n;return this.expect("+")?this.primary():(n=this.expect("-"))?this.binaryFn(pi.ZERO,n.fn,this.unary()):(n=this.expect("!"))?this.unaryFn(n.fn,this.unary()):this.primary()},fieldAccess:function(n){var t=this,i=this.expect().text,r=ke(i,this.options,this.text);return c(function(t,i,u){return r(u||n(t,i))},{assign:function(r,u,f){return(f=n(r,f))||n.assign(r,f={}),tu(f,i,u,t.text,t.options)}})},objectIndex:function(n){var t=this,r=this.expression();return this.consume("]"),c(function(u,f){var e=n(u,f),s=we(r(u,f),t.text),o;return(ot(s,t.text),!e)?i:((e=st(e[s],t.text))&&e.then&&t.options.unwrapPromises&&(o=e,"$$v"in e||(o.$$v=i,o.then(function(n){o.$$v=n})),e=e.$$v),e)},{assign:function(i,u,f){var e=ot(we(r(i,f),t.text),t.text);return(f=st(n(i,f),t.text))||n.assign(i,f={}),f[e]=u}})},functionCall:function(n,t){var r=[],i;if(")"!==this.peekToken().text)do r.push(this.expression());while(this.expect(","));return this.consume(")"),i=this,function(u,f){for(var c,o=[],h=t?t(u,f):u,e=0;e<r.length;e++)o.push(st(r[e](u,f),i.text));if(e=n(u,f,h)||s,st(h,i.text),c=i.text,e){if(e.constructor===e)throw it("isecfn",c);if(e===nl||e===tl||ho&&e===ho)throw it("isecff",c);}return o=e.apply?e.apply(h,o):e(o[0],o[1],o[2],o[3],o[4]),st(o,i.text)}},arrayDeclaration:function(){var n=[],i=!0,t;if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t=this.expression();n.push(t);t.constant||(i=!1)}while(this.expect(","));return this.consume("]"),c(function(t,i){for(var u=[],r=0;r<n.length;r++)u.push(n[r](t,i));return u},{literal:!0,constant:i})},object:function(){var t=[],r=!0,n,i;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n=this.expect();n=n.string||n.text;this.consume(":");i=this.expression();t.push({key:n,value:i});i.constant||(r=!1)}while(this.expect(","));return this.consume("}"),c(function(n,i){for(var f,u={},r=0;r<t.length;r++)f=t[r],u[f.key]=f.value(n,i);return u},{literal:!0,constant:r})}};var rl={},ul={},ni=p("$sce"),rt={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},d=t.createElement("a"),co=bt(n.location.href,!0);ge.$inject=["$provide"];no.$inject=["$locale"];to.$inject=["$locale"];var lo=".",fl={yyyy:k("FullYear",4),yy:k("FullYear",2,0,!0),y:k("FullYear",1),MMMM:iu("Month"),MMM:iu("Month",!0),MM:k("Month",2,1),M:k("Month",1,1),dd:k("Date",2),d:k("Date",1),HH:k("Hours",2),H:k("Hours",1),hh:k("Hours",2,-12),h:k("Hours",1,-12),mm:k("Minutes",2),m:k("Minutes",1),ss:k("Seconds",2),s:k("Seconds",1),sss:k("Milliseconds",3),EEEE:iu("Day"),EEE:iu("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n){return n=-1*n.getTimezoneOffset(),(0<=n?"+":"")+(uf(Math[0<n?"floor":"ceil"](n/60),2)+uf(Math.abs(n%60),2))}},el=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,ol=/^\-?\d+$/;ro.$inject=["$locale"];ao=nt(v);vo=nt(vi);uo.$inject=["$parse"];yo=nt({restrict:"E",compile:function(n,i){return 8>=y&&(i.href||i.name||i.$set("href",""),n.append(t.createComment("IE fix"))),!i.href&&!i.xlinkHref&&!i.name?function(n,t){var i="[object SVGAnimatedString]"===ei.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}:void 0}});eu={};r(hr,function(n,t){if("multiple"!=n){var i=at("ng-"+t);eu[i]=function(){return{priority:100,link:function(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}}}}});r(["src","srcset","href"],function(n){var t=at("ng-"+n);eu[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===ei.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),y&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});ar={$addControl:s,$removeControl:s,$setValidity:s,$setDirty:s,$setPristine:s};fo.$inject=["$element","$attrs","$scope","$animate"];var po=function(n){return["$timeout",function(t){return{name:"form",restrict:n?"EAC":"E",controller:fo,compile:function(){return{pre:function(n,r,u,f){var o,s,e;if(!u.action){o=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1};fu(r[0],"submit",o);r.on("$destroy",function(){t(function(){sr(r[0],"submit",o)},0,!1)})}if(s=r.parent().controller("form"),e=u.name||u.ngForm,e&&tu(n,e,f,e),s)r.on("$destroy",function(){s.$removeControl(f);e&&tu(n,e,i,e);c(f,ar)})}}}}}]},sl=po(),hl=po(!0),cl=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,ll=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,al=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,wo={text:ru,number:function(n,t,r,u,f,e){ru(n,t,r,u,f,e);u.$parsers.push(function(n){var t=u.$isEmpty(n);return t||al.test(n)?(u.$setValidity("number",!0),""===n?null:t?n:parseFloat(n)):(u.$setValidity("number",!1),i)});nc(u,"number",vl,null,u.$$validityState);u.$formatters.push(function(n){return u.$isEmpty(n)?"":""+n});r.min&&(n=function(n){var t=parseFloat(r.min);return yt(u,"min",u.$isEmpty(n)||n>=t,n)},u.$parsers.push(n),u.$formatters.push(n));r.max&&(n=function(n){var t=parseFloat(r.max);return yt(u,"max",u.$isEmpty(n)||n<=t,n)},u.$parsers.push(n),u.$formatters.push(n));u.$formatters.push(function(n){return yt(u,"number",u.$isEmpty(n)||yr(n),n)})},url:function(n,t,i,r,u,f){ru(n,t,i,r,u,f);n=function(n){return yt(r,"url",r.$isEmpty(n)||cl.test(n),n)};r.$formatters.push(n);r.$parsers.push(n)},email:function(n,t,i,r,u,f){ru(n,t,i,r,u,f);n=function(n){return yt(r,"email",r.$isEmpty(n)||ll.test(n),n)};r.$formatters.push(n);r.$parsers.push(n)},radio:function(n,t,i,r){l(i.name)&&t.attr("name",vr());t.on("click",function(){t[0].checked&&n.$apply(function(){r.$setViewValue(i.value)})});r.$render=function(){t[0].checked=i.value==r.$viewValue};i.$observe("value",r.$render)},checkbox:function(n,t,i,r){var u=i.ngTrueValue,f=i.ngFalseValue;e(u)||(u=!0);e(f)||(f=!1);t.on("click",function(){n.$apply(function(){r.$setViewValue(t[0].checked)})});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n!==u};r.$formatters.push(function(n){return n===u});r.$parsers.push(function(n){return n?u:f})},hidden:s,button:s,submit:s,reset:s,file:s},vl=["badInput"],bo=["$browser","$sniffer",function(n,t){return{restrict:"E",require:"?ngModel",link:function(i,r,u,f){f&&(wo[v(u.type)]||wo.text)(i,r,u,f,t,n)}}}],ou="ng-valid",su="ng-invalid",wi="ng-pristine",hu="ng-dirty",yl=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(n,t,i,u,f,e){function h(n,t){t=t?"-"+br(t,"-"):"";e.removeClass(u,(n?su:ou)+t);e.addClass(u,(n?ou:su)+t)}var c,a,o;if(this.$modelValue=this.$viewValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=i.name,c=f(i.ngModel),a=c.assign,!a)throw p("ngModel")("nonassign",i.ngModel,et(u));this.$render=s;this.$isEmpty=function(n){return l(n)||""===n||null===n||n!==n};var w=u.inheritedData("$formController")||ar,v=0,y=this.$error={};u.addClass(wi);h(!0);this.$setValidity=function(n,t){y[n]!==!t&&(t?(y[n]&&v--,v||(h(!0),this.$valid=!0,this.$invalid=!1)):(h(!1),this.$invalid=!0,this.$valid=!1,v++),y[n]=!t,h(t,n),w.$setValidity(n,t,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;e.removeClass(u,hu);e.addClass(u,wi)};this.$setViewValue=function(i){this.$viewValue=i;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,e.removeClass(u,wi),e.addClass(u,hu),w.$setDirty());r(this.$parsers,function(n){i=n(i)});this.$modelValue!==i&&(this.$modelValue=i,a(n,i),r(this.$viewChangeListeners,function(n){try{n()}catch(i){t(i)}}))};o=this;n.$watch(function(){var t=c(n),i,r;if(o.$modelValue!==t){for(i=o.$formatters,r=i.length,o.$modelValue=t;r--;)t=i[r](t);o.$viewValue!==t&&(o.$viewValue=t,o.$render())}return t})}],pl=function(){return{require:["ngModel","^?form"],controller:yl,link:function(n,t,i,r){var u=r[0],f=r[1]||ar;f.$addControl(u);n.$on("$destroy",function(){f.$removeControl(u)})}}},wl=nt({require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),ko=function(){return{require:"?ngModel",link:function(n,t,i,r){if(r){i.required=!0;var u=function(n){if(i.required&&r.$isEmpty(n))r.$setValidity("required",!1);else return r.$setValidity("required",!0),n};r.$formatters.push(u);r.$parsers.unshift(u);i.$observe("required",function(){u(r.$viewValue)})}}}},bl=function(){return{require:"ngModel",link:function(n,t,u,f){var e=(n=/\/(.*)\//.exec(u.ngList))&&RegExp(n[1])||u.ngList||",";f.$parsers.push(function(n){if(!l(n)){var t=[];return n&&r(n.split(e),function(n){n&&t.push(g(n))}),t}});f.$formatters.push(function(n){return o(n)?n.join(", "):i});f.$isEmpty=function(n){return!n||!n.length}}}},kl=/^(true|false|\d+)$/,dl=function(){return{priority:100,compile:function(n,t){return kl.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},gl=kt({compile:function(n){return n.addClass("ng-binding"),function(n,t,r){t.data("$binding",r.ngBind);n.$watch(r.ngBind,function(n){t.text(n==i?"":n)})}}}),na=["$interpolate",function(n){return function(t,i,r){t=n(i.attr(r.$attr.ngBindTemplate));i.addClass("ng-binding").data("$binding",t);r.$observe("ngBindTemplate",function(n){i.text(n)})}}],ta=["$sce","$parse",function(n,t){return{compile:function(i){return i.addClass("ng-binding"),function(i,r,u){r.data("$binding",u.ngBindHtml);var f=t(u.ngBindHtml);i.$watch(function(){return(f(i)||"").toString()},function(){r.html(n.getTrustedHtml(f(i))||"")})}}}}],ia=ff("",!0),ra=ff("Odd",0),ua=ff("Even",1),fa=kt({compile:function(n,t){t.$set("ngCloak",i);n.removeClass("ng-cloak")}}),ea=[function(){return{scope:!0,controller:"@",priority:500}}],go={},oa={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=at("ng-"+n);go[t]=["$parse","$rootScope",function(i,r){return{compile:function(u,f){var e=i(f[t],!0);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};oa[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var sa=["$animate",function(n){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,o,s;i.$watch(u.ngIf,function(f){gi(f)?o||(o=i.$new(),e(o,function(i){i[i.length++]=t.createComment(" end ngIf: "+u.ngIf+" ");h={clone:i};n.enter(i,r.parent(),r)})):(s&&(s.remove(),s=null),o&&(o.$destroy(),o=null),h&&(s=vu(h.clone),n.leave(s,function(){s=null}),h=null))})}}}],ha=["$http","$templateCache","$anchorScroll","$animate","$sce",function(n,t,i,r,u){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ur.noop,compile:function(e,o){var h=o.ngInclude||o.src,c=o.onload||"",s=o.autoscroll;return function(e,o,l,a,v){var b=0,y,p,w,k=function(){p&&(p.remove(),p=null);y&&(y.$destroy(),y=null);w&&(r.leave(w,function(){p=null}),p=w,w=null)};e.$watch(u.parseAsResourceUrl(h),function(u){var l=function(){f(s)&&(!s||e.$eval(s))&&i()},h=++b;u?(n.get(u,{cache:t}).success(function(n){if(h===b){var t=e.$new();a.template=n;n=v(t,function(n){k();r.enter(n,null,o,l)});y=t;w=n;y.$emit("$includeContentLoaded");e.$eval(c)}}).error(function(){h===b&&k()}),e.$emit("$includeContentRequested")):(k(),a.template=null)})}}}}],ca=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,i,r,u){i.html(u.template);n(i.contents())(t)}}}],la=kt({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),aa=kt({terminal:!0,priority:1e3}),va=["$locale","$interpolate",function(n,t){var i=/{}/g;return{restrict:"EA",link:function(u,f,e){var s=e.count,l=e.$attr.when&&f.attr(e.$attr.when),h=e.offset||0,o=u.$eval(l)||{},c={},a=t.startSymbol(),y=t.endSymbol(),p=/^when(Minus)?(.+)$/;r(e,function(n,t){p.test(t)&&(o[v(t.replace("when","").replace("Minus","-"))]=f.attr(e.$attr[t]))});r(o,function(n,r){c[r]=t(n.replace(i,a+s+"-"+h+y))});u.$watch(function(){var t=parseFloat(u.$eval(s));return isNaN(t)?"":(t in o||(t=n.pluralCat(t-h)),c[t](u,f,!0))},function(n){f.text(n)})}}}],ya=["$parse","$animate",function(n,i){var f=p("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(e,o,s,h,c){var y=s.ngRepeat,l=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),k,w,d,g,b,v,p={$id:li},a;if(!l)throw f("iexp",y);if(s=l[1],h=l[2],(l=l[3])?(k=n(l),w=function(n,t,i){return v&&(p[v]=n),p[b]=t,p.$index=i,k(e,p)}):(d=function(n,t){return li(t)},g=function(n){return n}),l=s.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!l)throw f("iidexp",s);b=l[3]||l[1];v=l[2];a={};e.$watchCollection(h,function(n){var s,ft,it=o[0],l,rt={},ot,p,k,ut,et,nt,h,tt=[];if(bi(n))nt=n,et=w||d;else{et=w||g;nt=[];for(k in n)n.hasOwnProperty(k)&&"$"!=k.charAt(0)&&nt.push(k);nt.sort()}for(ot=nt.length,ft=tt.length=nt.length,s=0;s<ft;s++)if(k=n===nt?s:nt[s],ut=n[k],l=et(k,ut,s),ri(l,"`track by` id"),a.hasOwnProperty(l))h=a[l],delete a[l],rt[l]=h,tt[s]=h;else{if(rt.hasOwnProperty(l))throw r(tt,function(n){n&&n.scope&&(a[n.id]=n)}),f("dupes",y,l,ct(ut));tt[s]={id:l};rt[l]=!1}for(k in a)a.hasOwnProperty(k)&&(h=a[k],s=vu(h.clone),i.leave(s),r(s,function(n){n.$$NG_REMOVED=!0}),h.scope.$destroy());for(s=0,ft=nt.length;s<ft;s++){if(k=n===nt?s:nt[s],ut=n[k],h=tt[s],tt[s-1]&&(it=tt[s-1].clone[tt[s-1].clone.length-1]),h.scope){p=h.scope;l=it;do l=l.nextSibling;while(l&&l.$$NG_REMOVED);h.clone[0]!=l&&i.move(vu(h.clone),null,u(it));it=h.clone[h.clone.length-1]}else p=e.$new();p[b]=ut;v&&(p[v]=k);p.$index=s;p.$first=0===s;p.$last=s===ot-1;p.$middle=!(p.$first||p.$last);p.$odd=!(p.$even=0==(s&1));h.scope||c(p,function(n){n[n.length++]=t.createComment(" end ngRepeat: "+y+" ");i.enter(n,null,u(it));it=n;h.scope=p;h.clone=n;rt[h.id]=h})}a=rt})}}}],pa=["$animate",function(n){return function(t,i,r){t.$watch(r.ngShow,function(t){n[gi(t)?"removeClass":"addClass"](i,"ng-hide")})}}],wa=["$animate",function(n){return function(t,i,r){t.$watch(r.ngHide,function(t){n[gi(t)?"addClass":"removeClass"](i,"ng-hide")})}}],ba=kt(function(n,t,i){n.$watch(i.ngStyle,function(n,i){i&&n!==i&&r(i,function(n,i){t.css(i,"")});n&&t.css(n)},!0)}),ka=["$animate",function(n){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,i,u,f){var h=[],s=[],e=[],o=[];t.$watch(u.ngSwitch||u.on,function(i){for(var a,c=0,l=e.length;c<l;++c)e[c].remove();for(c=e.length=0,l=o.length;c<l;++c)a=s[c],o[c].$destroy(),e[c]=a,n.leave(a,function(){e.splice(c,1)});s.length=0;o.length=0;(h=f.cases["!"+i]||f.cases["?"])&&(t.$eval(u.change),r(h,function(i){var r=t.$new();o.push(r);i.transclude(r,function(t){var r=i.element;s.push(t);n.enter(t,r.parent(),r)})}))})}}}],da=kt({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),ga=kt({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),nv=kt({link:function(n,t,i,r,u){if(!u)throw p("ngTransclude")("orphan",et(t));u(function(n){t.empty();t.append(n)})}}),tv=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"==i.type&&n.put(i.id,t[0].text)}}}],iv=p("ngOptions"),rv=nt({terminal:!0}),uv=["$compile","$parse",function(n,e){var h=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,c={$setViewValue:s};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(n,t,i){var r=this,f={},e=c,u;r.databound=i.ngModel;r.init=function(n,t,i){e=n;u=i};r.addOption=function(t){ri(t,'"option value"');f[t]=!0;e.$viewValue==t&&(n.val(t),u.parent()&&u.remove())};r.removeOption=function(n){this.hasOption(n)&&(delete f[n],e.$viewValue==n&&this.renderUnknownOption(n))};r.renderUnknownOption=function(t){t="? "+li(t)+" ?";u.val(t);n.prepend(u);n.val(t);u.prop("selected",!0)};r.hasOption=function(n){return f.hasOwnProperty(n)};t.$on("$destroy",function(){r.renderUnknownOption=s})}],link:function(s,c,a,v){function rt(n,t,i,r){i.$render=function(){var n=i.$viewValue;r.hasOption(n)?(k.parent()&&k.remove(),t.val(n),""===n&&nt.prop("selected",!0)):l(n)&&nt?t.val(""):r.renderUnknownOption(n)};t.on("change",function(){n.$apply(function(){k.parent()&&k.remove();i.$setViewValue(t.val())})})}function ut(n,t,i){var u;i.$render=function(){var n=new ir(i.$viewValue);r(t.find("option"),function(t){t.selected=f(n.get(t.value))})};n.$watch(function(){ti(u,i.$viewValue)||(u=ft(i.$viewValue),i.$render())});t.on("change",function(){n.$apply(function(){var n=[];r(t.find("option"),function(t){t.selected&&n.push(t.value)});i.$setViewValue(n)})})}function ot(t,r,u){function k(){var ot={"":[]},ct=[""],n,h,g,ut,i,et,ht,c,e,k,ft;if(g=u.$modelValue,ut=nt(t)||[],et=a?lf(ut):ut,c={},e=!1,w)if(h=u.$modelValue,s&&o(h))for(e=new ir([]),n={},i=0;i<h.length;i++)n[l]=h[i],e.put(s(t,n),h[i]);else e=new ir(h);for(i=e,e=0;ht=et.length,e<ht;e++){if(h=e,a){if(h=et[e],"$"===h.charAt(0))continue;c[a]=h}c[l]=ut[h];n=rt(t,c)||"";(h=ot[n])||(h=ot[n]=[],ct.push(n));w?n=f(i.remove(s?s(t,c):d(t,c))):(s?(n={},n[l]=g,n=s(t,n)===s(t,c)):n=g===d(t,c),i=i||n);k=it(t,c);k=f(k)?k:"";h.push({id:s?s(t,c):a?et[e]:e,label:k,selected:n})}for(w||(p||null===g?ot[""].unshift({id:"",label:"",selected:!i}):i||ot[""].unshift({id:"?",label:"",selected:!0})),c=0,et=ct.length;c<et;c++){for(n=ct[c],h=ot[n],v.length<=c?(g={element:st.clone().attr("label",n),label:h.label},ut=[g],v.push(ut),r.append(g.element)):(ut=v[c],g=ut[0],g.label!=n&&g.element.attr("label",g.label=n)),k=null,e=0,ht=h.length;e<ht;e++)n=h[e],(i=ut[e+1])?(k=i.element,i.label!==n.label&&(k.text(i.label=n.label),k.prop("label",i.label)),i.id!==n.id&&k.val(i.id=n.id),k[0].selected!==n.selected&&(k.prop("selected",i.selected=n.selected),y&&k.prop("selected",i.selected))):(""===n.id&&p?ft=p:(ft=tt.clone()).val(n.id).prop("selected",n.selected).attr("selected",n.selected).prop("label",n.label).text(n.label),ut.push({element:ft,label:n.label,id:n.id,selected:n.selected}),b.addOption(n.label,ft),k?k.after(ft):g.element.append(ft),k=ft);for(e++;ut.length>e;)n=ut.pop(),b.removeOption(n.label),n.element.remove()}for(;v.length>c;)v.pop()[0].element.remove()}var c;if(!(c=g.match(h)))throw iv("iexp",g,et(r));var it=e(c[2]||c[1]),l=c[4]||c[6],a=c[5],rt=e(c[3]||""),d=e(c[2]?c[1]:l),nt=e(c[7]),s=c[8]?e(c[8]):null,v=[[{element:r,label:""}]];p&&(n(p)(t),p.removeClass("ng-scope"),p.remove());r.empty();r.on("change",function(){t.$apply(function(){var p,h=nt(t)||[],f={},n,o,c,y,b,g,e;if(w){for(o=[],y=0,g=v.length;y<g;y++)for(p=v[y],c=1,b=p.length;c<b;c++)if((n=p[c].element)[0].selected){if(n=n.val(),a&&(f[a]=n),s)for(e=0;e<h.length&&(f[l]=h[e],s(t,f)!=n);e++);else f[l]=h[n];o.push(d(t,f))}}else if(n=r.val(),"?"==n)o=i;else if(""===n)o=null;else if(s){for(e=0;e<h.length;e++)if(f[l]=h[e],s(t,f)==n){o=d(t,f);break}}else f[l]=h[n],a&&(f[a]=n),o=d(t,f);u.$setViewValue(o);k()})});u.$render=k;t.$watchCollection(nt,k);t.$watchCollection(function(){var r={},n=nt(t);if(n){for(var u=Array(n.length),i=0,f=n.length;i<f;i++)r[l]=n[i],u[i]=it(t,r);return u}},k);w&&t.$watchCollection(function(){return u.$modelValue},k)}var b,d,it;if(v[1]){b=v[0];v=v[1];var w=a.multiple,g=a.ngOptions,p=!1,nt,tt=u(t.createElement("option")),st=u(t.createElement("optgroup")),k=tt.clone();for(a=0,d=c.children(),it=d.length;a<it;a++)if(""===d[a].value){nt=p=d.eq(a);break}b.init(v,p,k);w&&(v.$isEmpty=function(n){return!n||0===n.length});g?ot(s,c,v):w?ut(s,c,v):rt(s,c,v,b)}}}}],fv=["$interpolate",function(n){var t={addOption:s,removeOption:s};return{restrict:"E",priority:100,compile:function(i,r){if(l(r.value)){var u=n(i.text(),!0);u||r.$set("value",i.text())}return function(n,i,r){var e=i.parent(),f=e.data("$selectController")||e.parent().data("$selectController");f&&f.databound?i.prop("selected",!1):f=t;u?n.$watch(u,function(n,t){r.$set("value",n);n!==t&&f.removeOption(t);f.addOption(n)}):f.addOption(r.value);i.on("$destroy",function(){f.removeOption(r.value)})}}}}],ev=nt({restrict:"E",terminal:!0});n.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):((fi=n.jQuery)&&fi.fn.on?(u=fi,c(fi.fn,{scope:oi.scope,isolateScope:oi.isolateScope,controller:oi.controller,injector:oi.injector,inheritedData:oi.inheritedData}),yu("remove",!0,!0,!1),yu("empty",!1,!1,!1),yu("html",!1,!1,!0)):u=w,ur.element=u,es(ur),u(t).ready(function(){us(t,kf)}))}(window,document);window.angular.$$csp()||window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}<\/style>'),function(n,t,i){"use strict";function u(n,i){i=i||{};t.forEach(i,function(n,t){delete i[t]});for(var r in n)n.hasOwnProperty(r)&&("$"!==r.charAt(0)||"$"!==r.charAt(1))&&(i[r]=n[r]);return i}var r=t.$$minErr("$resource"),f=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;t.module("ngResource",["ng"]).factory("$resource",["$http","$q",function(n,e){function c(n,t){this.template=n;this.defaults=t||{};this.urlParams={}}function l(p,w,b){function d(n,t){var u={};return t=h({},w,t),o(t,function(t,e){var h,o,l;if(s(t)&&(t=t()),t&&t.charAt&&"@"==t.charAt(0)){if(h=n,o=t.substr(1),null==o||""===o||"hasOwnProperty"===o||!f.test("."+o))throw r("badmember",o);for(var o=o.split("."),c=0,a=o.length;c<a&&h!==i;c++)l=o[c],h=null!==h?h[l]:i}else h=t;u[e]=h}),u}function g(n){return n.resource}function k(n){u(n||{},this)}var nt=new c(p);return b=h({},v,b),o(b,function(f,c){var l=/^(POST|PUT|PATCH)$/i.test(f.method);k[c]=function(c,v,p,w){var tt={},it,rt,ut;switch(arguments.length){case 4:ut=w;rt=p;case 3:case 2:if(s(v)){if(s(c)){rt=c;ut=v;break}rt=v;ut=p}else{tt=c;it=v;rt=p;break}case 1:s(c)?rt=c:l?it=c:tt=c;break;case 0:break;default:throw r("badargs",arguments.length);}var et=this instanceof k,b=et?it:f.isArray?[]:new k(it),ft={},ot=f.interceptor&&f.interceptor.response||g,st=f.interceptor&&f.interceptor.responseError||i;return o(f,function(n,t){"params"!=t&&"isArray"!=t&&"interceptor"!=t&&(ft[t]=y(n))}),l&&(ft.data=it),nt.setUrlParams(ft,h({},d(it,f.params||{}),tt),f.url),tt=n(ft).then(function(n){var i=n.data,e=b.$promise;if(i){if(t.isArray(i)!==!!f.isArray)throw r("badcfg",f.isArray?"array":"object",t.isArray(i)?"array":"object");f.isArray?(b.length=0,o(i,function(n){"object"==typeof n?b.push(new k(n)):b.push(n)})):(u(i,b),b.$promise=e)}return b.$resolved=!0,n.resource=b,n},function(n){return b.$resolved=!0,(ut||a)(n),e.reject(n)}),tt=tt.then(function(n){var t=ot(n);return(rt||a)(t,n.headers),t},st),et?tt:(b.$promise=tt,b.$resolved=!1,b)};k.prototype["$"+c]=function(n,t,i){return s(n)&&(i=t,t=n,n={}),n=k[c].call(this,n,this,t,i),n.$promise||n}}),k.bind=function(n){return l(p,h({},w,n),b)},k}var v={get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}},a=t.noop,o=t.forEach,h=t.extend,y=t.copy,s=t.isFunction;return c.prototype={setUrlParams:function(n,i,u){var e=this,f=u||e.template,s,h,c=e.urlParams={};o(f.split(/\W/),function(n){if("hasOwnProperty"===n)throw r("badname");!/^\d+$/.test(n)&&n&&RegExp("(^|[^\\\\]):"+n+"(\\W|$)").test(f)&&(c[n]=!0)});f=f.replace(/\\:/g,":");i=i||{};o(e.urlParams,function(n,r){s=i.hasOwnProperty(r)?i[r]:e.defaults[r];t.isDefined(s)&&null!==s?(h=encodeURIComponent(s).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"%20").replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+"),f=f.replace(RegExp(":"+r+"(\\W|$)","g"),function(n,t){return h+t})):f=f.replace(RegExp("(/?):"+r+"(\\W|$)","g"),function(n,t,i){return"/"==i.charAt(0)?i:t+i})});f=f.replace(/\/+$/,"")||"/";f=f.replace(/\/\.(?=\w+($|\?))/,".");n.url=f.replace(/\/\\\./,"/.");o(i,function(t,i){e.urlParams[i]||(n.params=n.params||{},n.params[i]=t)})}},l}])}(window,window.angular),function(n,t,i){"use strict";function k(n){var i=[];return o(i,t.noop).chars(n),i.join("")}function r(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function d(n,i){function k(n,r,e,s){if(r=t.lowercase(r),v[r])for(;u.last()&&y[u.last()];)o("",u.last());a[r]&&u.last()==r&&o("",r);(s=l[r]||!!s)||u.push(r);var h={};e.replace(nt,function(n,t,i,r,u){h[t]=f(i||r||u||"")});i.start&&i.start(r,h,s)}function o(n,r){var f=0,e;if(r=t.lowercase(r))for(f=u.length-1;0<=f&&u[f]!=r;f--);if(0<=f){for(e=u.length-1;e>=f;e--)i.end&&i.end(u[e]);u.length=f}}"string"!=typeof n&&(n=null===n||"undefined"==typeof n?"":""+n);var r,e,u=[],b=n,w;for(u.last=function(){return u[u.length-1]};n;){if(w="",e=!0,u.last()&&p[u.last()]?(n=n.replace(RegExp("(.*)<\\s*\\/\\s*"+u.last()+"[^>]*>","i"),function(n,t){return t=t.replace(rt,"$1").replace(ut,"$1"),i.chars&&i.chars(f(t)),""}),o("",u.last())):(0===n.indexOf("<!--")?(r=n.indexOf("--",4),0<=r&&n.lastIndexOf("-->",r)===r&&(i.comment&&i.comment(n.substring(4,r)),n=n.substring(r+3),e=!1)):c.test(n)?(r=n.match(c))&&(n=n.replace(r[0],""),e=!1):it.test(n)?(r=n.match(h))&&(n=n.substring(r[0].length),r[0].replace(h,o),e=!1):tt.test(n)&&((r=n.match(s))?(r[4]&&(n=n.substring(r[0].length),r[0].replace(s,k)),e=!1):(w+="<",n=n.substring(1))),e&&(r=n.indexOf("<"),w+=0>r?n:n.substring(0,r),n=0>r?"":n.substring(r),i.chars&&i.chars(f(w)))),n==b)throw g("badparse",n);b=n}o()}function f(n){var t,i;return n?(t=st.exec(n),n=t[1],i=t[3],(t=t[2])&&(u.innerHTML=t.replace(/</g,"&lt;"),t="textContent"in u?u.textContent:u.innerText),n+t+i):""}function e(n){return n.replace(/&/g,"&amp;").replace(ft,function(n){var t=n.charCodeAt(0);return n=n.charCodeAt(1),"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(et,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function o(n,i){var u=!1,r=t.bind(n,n.push);return{start:function(n,f,o){n=t.lowercase(n);!u&&p[n]&&(u=n);u||!0!==w[n]||(r("<"),r(n),t.forEach(f,function(u,f){var o=t.lowercase(f),s="img"===n&&"src"===o||"background"===o;!0===ot[o]&&(!0!==b[o]||i(u,s))&&(r(" "),r(f),r('="'),r(e(u)),r('"'))}),r(o?"/>":">"))},end:function(n){n=t.lowercase(n);u||!0!==w[n]||(r("<\/"),r(n),r(">"));n==u&&(u=!1)},chars:function(n){u||r(e(n))}}}var g=t.$$minErr("$sanitize"),s=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,nt=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,tt=/^</,it=/^<\//,rt=/\x3c!--(.*?)--\x3e/g,c=/<!DOCTYPE([^>]*?)>/i,ut=/<!\[CDATA\[(.*?)]]\x3e/g,ft=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,et=/([^\#-~| |!])/g,l=r("area,br,col,hr,img,wbr");n=r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr");i=r("rp,rt");var a=t.extend({},i,n),v=t.extend({},n,r("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),y=t.extend({},i,r("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),p=r("script,style"),w=t.extend({},l,v,y,a),b=r("background,cite,href,longdesc,src,usemap"),ot=t.extend({},b,r("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width")),u=document.createElement("pre"),st=/^(\s*)([\s\S]*?)(\s*)$/;t.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(n){return function(t){var i=[];return d(t,o(i,function(t,i){return!/^unsafe/.test(n(t,i))})),i.join("")}}]});t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/,r=/^mailto:/;return function(u,f){function c(n){n&&e.push(k(n))}function a(n,i){e.push("<a ");t.isDefined(f)&&(e.push('target="'),e.push(f),e.push('" '));e.push('href="',n.replace('"',"&quot;"),'">');c(i);e.push("<\/a>")}if(!u)return u;for(var o,s=u,e=[],h,l;o=s.match(i);)h=o[0],o[2]==o[3]&&(h="mailto:"+h),l=o.index,c(s.substr(0,l)),a(h,o[0].replace(r,"")),s=s.substring(l+o[0].length);return c(s),n(e.join(""))}}])}(window,window.angular),function(n,t){"use strict";function i(n,i,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(u,f,e,o,s){function v(){l&&(l.remove(),l=null);h&&(h.$destroy(),h=null);c&&(r.leave(c,function(){l=null}),l=c,c=null)}function y(){var e=n.current&&n.current.locals,o;t.isDefined(e&&e.$template)?(e=u.$new(),o=n.current,c=s(e,function(n){r.enter(n,null,c||f,function(){t.isDefined(a)&&(!a||u.$eval(a))&&i()});v()}),h=o.scope=e,h.$emit("$viewContentLoaded"),h.$eval(p)):v()}var h,c,l,a=e.autoscroll,p=e.onload||"";u.$on("$routeChangeSuccess",y);y()}}}function r(n,t,i){return{restrict:"ECA",priority:-400,link:function(r,u){var e=i.current,f=e.locals,o;u.html(f.$template);o=n(u.contents());e.controller&&(f.$scope=r,f=t(e.controller,f),e.controllerAs&&(r[e.controllerAs]=f),u.data("$ngControllerController",f),u.children().data("$ngControllerController",f));o(r)}}}n=t.module("ngRoute",["ng"]).provider("$route",function(){function i(n,i){return t.extend(new(t.extend(function(){},{prototype:n})),i)}function r(n,t){var r=t.caseInsensitiveMatch,i={originalPath:n,regexp:n},u=i.keys=[];return n=n.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(n,t,i,r){return n="?"===r?r:null,r="*"===r?r:null,u.push({name:i,optional:!!n}),t=t||"",""+(n?"":t)+"(?:"+(n?t:"")+(r&&"(.+?)"||"([^/]+)")+(n||"")+")"+(n||"")}).replace(/([\/$\*])/g,"\\$1"),i.regexp=RegExp("^"+n+"$",r?"i":""),i}var n={};this.when=function(i,u){if(n[i]=t.extend({reloadOnSearch:!0},u,i&&r(i,u)),i){var f="/"==i[i.length-1]?i.substr(0,i.length-1):i+"/";n[f]=t.extend({redirectTo:i},r(f,u))}return this};this.otherwise=function(n){return this.when(null,n),this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$http","$templateCache","$sce",function(r,u,f,e,o,s,h,c){function v(){var n=y(),i=l.current;n&&i&&n.$$route===i.$$route&&t.equals(n.pathParams,i.pathParams)&&!n.reloadOnSearch&&!a?(i.params=n.params,t.copy(i.params,f),r.$broadcast("$routeUpdate",i)):(n||i)&&(a=!1,r.$broadcast("$routeChangeStart",n,i),(l.current=n)&&n.redirectTo&&(t.isString(n.redirectTo)?u.path(p(n.redirectTo,n.params)).search(n.params).replace():u.url(n.redirectTo(n.pathParams,u.path(),u.search())).replace()),e.when(n).then(function(){if(n){var u=t.extend({},n.resolve),r,i;return t.forEach(u,function(n,i){u[i]=t.isString(n)?o.get(n):o.invoke(n)}),t.isDefined(r=n.template)?t.isFunction(r)&&(r=r(n.params)):t.isDefined(i=n.templateUrl)&&(t.isFunction(i)&&(i=i(n.params)),i=c.getTrustedResourceUrl(i),t.isDefined(i)&&(n.loadedTemplateUrl=i,r=s.get(i,{cache:h}).then(function(n){return n.data}))),t.isDefined(r)&&(u.$template=r),e.all(u)}}).then(function(u){n==l.current&&(n&&(n.locals=u,t.copy(n.params,f)),r.$broadcast("$routeChangeSuccess",n,i))},function(t){n==l.current&&r.$broadcast("$routeChangeError",n,i,t)}))}function y(){var f,r;return t.forEach(n,function(n){var e,o,h,s,a,c,l;if(e=!r){if(o=u.path(),e=n.keys,h={},n.regexp)if(o=n.regexp.exec(o)){for(s=1,a=o.length;s<a;++s)c=e[s-1],l=o[s],c&&l&&(h[c.name]=l);e=h}else e=null;else e=null;e=f=e}e&&(r=i(n,{params:t.extend({},u.search(),f),pathParams:f}),r.$$route=n)}),r||n[null]&&i(n[null],{params:{},pathParams:{}})}function p(n,i){var r=[];return t.forEach((n||"").split(":"),function(n,t){if(0===t)r.push(n);else{var u=n.match(/(\w+)(?:[?*])?(.*)/),f=u[1];r.push(i[f]);r.push(u[2]||"");delete i[f]}}),r.join("")}var a=!1,l={routes:n,reload:function(){a=!0;r.$evalAsync(v)}};return r.$on("$locationChangeSuccess",v),l}]});n.provider("$routeParams",function(){this.$get=function(){return{}}});n.directive("ngView",i);n.directive("ngView",r);i.$inject=["$route","$anchorScroll","$animate"];r.$inject=["$compile","$controller","$route"]}(window,window.angular),function(n,t,i){function v(t,i){var u,f;if(n.isArray(t)){for(u=t.length-1;u>=0;u--)f=t[u],n.type(f)==="string"&&r.transports[f]||(i.log("Invalid transport: "+f+", removing it from the transports list."),t.splice(u,1));t.length===0&&(i.log("No transports remain within the specified transport array."),t=null)}else if(r.transports[t]||t==="auto"){if(t==="auto"&&r._.ieVersion<=8)return["longPolling"]}else i.log("Invalid transport: "+t.toString()+"."),t=null;return t}function y(n){return n==="http:"?80:n==="https:"?443:void 0}function h(n,t){return t.match(/:\d+$/)?t:t+":"+y(n)}function p(t,i){var u=this,r=[];u.tryBuffer=function(i){return t.state===n.signalR.connectionState.connecting?(r.push(i),!0):!1};u.drain=function(){if(t.state===n.signalR.connectionState.connected)while(r.length>0)i(r.shift())};u.clear=function(){r=[]}}var f={nojQuery:"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.",noTransportOnInit:"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.",errorOnNegotiate:"Error during negotiation request.",stoppedWhileLoading:"The connection was stopped during page load.",stoppedWhileNegotiating:"The connection was stopped during the negotiate request.",errorParsingNegotiateResponse:"Error parsing negotiate response.",errorDuringStartRequest:"Error during start request. Stopping the connection.",stoppedDuringStartRequest:"The connection was stopped during the start request.",errorParsingStartResponse:"Error parsing start response: '{0}'. Stopping the connection.",invalidStartResponse:"Invalid start response: '{0}'. Stopping the connection.",protocolIncompatible:"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.",sendFailed:"Send failed.",parseFailed:"Failed at parsing response: {0}",longPollFailed:"Long polling request failed.",eventSourceFailedToConnect:"EventSource failed to connect.",eventSourceError:"Error raised by EventSource",webSocketClosed:"WebSocket closed.",pingServerFailedInvalidResponse:"Invalid ping response when pinging server: '{0}'.",pingServerFailed:"Failed to ping server.",pingServerFailedStatusCode:"Failed to ping server.  Server responded with status code {0}, stopping the connection.",pingServerFailedParse:"Failed to parse ping server response, stopping the connection.",noConnectionTransport:"Connection is in an invalid state, there is no transport active.",webSocketsInvalidState:"The Web Socket transport is in an invalid state, transitioning into reconnecting.",reconnectTimeout:"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.",reconnectWindowTimeout:"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection."};if(typeof n!="function")throw new Error(f.nojQuery);var r,c,s=t.document.readyState==="complete",e=n(t),l="__Negotiate Aborted__",u={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},w=function(n,i){if(i!==!1){var r;typeof t.console!="undefined"&&(r="["+(new Date).toTimeString()+"] SignalR: "+n,t.console.debug?t.console.debug(r):t.console.log&&t.console.log(r))}},o=function(t,i,r){return i===t.state?(t.state=r,n(t).triggerHandler(u.onStateChanged,[{oldState:i,newState:r}]),!0):!1},b=function(n){return n.state===r.connectionState.disconnected},a=function(n){return n._.keepAliveData.activated&&n.transport.supportsKeepAlive(n)},k=function(i){var f,e;i._.configuredStopReconnectingTimeout||(e=function(t){var i=r._.format(r.resources.reconnectTimeout,t.disconnectTimeout);t.log(i);n(t).triggerHandler(u.onError,[r._.error(i,"TimeoutException")]);t.stop(!1,!1)},i.reconnecting(function(){var n=this;n.state===r.connectionState.reconnecting&&(f=t.setTimeout(function(){e(n)},n.disconnectTimeout))}),i.stateChanged(function(n){n.oldState===r.connectionState.reconnecting&&t.clearTimeout(f)}),i._.configuredStopReconnectingTimeout=!0)};r=function(n,t,i){return new r.fn.init(n,t,i)};r._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:function(){var i,n;return t.navigator.appName==="Microsoft Internet Explorer"&&(n=/MSIE ([0-9]+\.[0-9]+)/.exec(t.navigator.userAgent),n&&(i=t.parseFloat(n[1]))),i}(),error:function(n,t,i){var r=new Error(n);return r.source=t,typeof i!="undefined"&&(r.context=i),r},transportError:function(n,t,r,u){var f=this.error(n,r,u);return f.transport=t?t.name:i,f},format:function(){for(var t=arguments[0],n=0;n<arguments.length-1;n++)t=t.replace("{"+n+"}",arguments[n+1]);return t},firefoxMajorVersion:function(n){var t=n.match(/Firefox\/(\d+)/);return!t||!t.length||t.length<2?0:parseInt(t[1],10)},configurePingInterval:function(i){var f=i._.config,e=function(t){n(i).triggerHandler(u.onError,[t])};f&&!i._.pingIntervalId&&f.pingInterval&&(i._.pingIntervalId=t.setInterval(function(){r.transports._logic.pingServer(i).fail(e)},f.pingInterval))}};r.events=u;r.resources=f;r.ajaxDefaults={processData:!0,timeout:null,async:!0,global:!1,cache:!1};r.changeState=o;r.isDisconnecting=b;r.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4};r.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>.");}};e.load(function(){s=!0});r.fn=r.prototype={init:function(t,i,r){var f=n(this);this.url=t;this.qs=i;this.lastError=null;this._={keepAliveData:{},connectingMessageBuffer:new p(this,function(n){f.triggerHandler(u.onReceived,[n])}),lastMessageAt:(new Date).getTime(),lastActiveAt:(new Date).getTime(),beatInterval:5e3,beatHandle:null,totalTransportConnectTimeout:0};typeof r=="boolean"&&(this.logging=r)},_parseResponse:function(n){var t=this;return n?typeof n=="string"?t.json.parse(n):n:n},_originalJson:t.JSON,json:t.JSON,isCrossDomain:function(i,r){var u;return(i=n.trim(i),r=r||t.location,i.indexOf("http")!==0)?!1:(u=t.document.createElement("a"),u.href=i,u.protocol+h(u.protocol,u.host)!==r.protocol+h(r.protocol,r.host))},ajaxDataType:"text",contentType:"application/json; charset=UTF-8",logging:!1,state:r.connectionState.disconnected,clientProtocol:"1.5",reconnectDelay:2e3,transportConnectTimeout:0,disconnectTimeout:3e4,reconnectWindow:3e4,keepAliveWarnAt:2/3,start:function(i,h){var c=this,y={pingInterval:3e5,waitForPageLoad:!0,transport:"auto",jsonp:!1},d,p=c._deferral||n.Deferred(),w=t.document.createElement("a"),b,g;if(c.lastError=null,c._deferral=p,!c.json)throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.");if(n.type(i)==="function"?h=i:n.type(i)==="object"&&(n.extend(y,i),n.type(y.callback)==="function"&&(h=y.callback)),y.transport=v(y.transport,c),!y.transport)throw new Error("SignalR: Invalid transport(s) specified, aborting start.");return(c._.config=y,!s&&y.waitForPageLoad===!0)?(c._.deferredStartHandler=function(){c.start(i,h)},e.bind("load",c._.deferredStartHandler),p.promise()):c.state===r.connectionState.connecting?p.promise():o(c,r.connectionState.disconnected,r.connectionState.connecting)===!1?(p.resolve(c),p.promise()):(k(c),w.href=c.url,w.protocol&&w.protocol!==":"?(c.protocol=w.protocol,c.host=w.host):(c.protocol=t.document.location.protocol,c.host=w.host||t.document.location.host),c.baseUrl=c.protocol+"//"+c.host,c.wsProtocol=c.protocol==="https:"?"wss://":"ws://",y.transport==="auto"&&y.jsonp===!0&&(y.transport="longPolling"),c.url.indexOf("//")===0&&(c.url=t.location.protocol+c.url,c.log("Protocol relative URL detected, normalizing it to '"+c.url+"'.")),this.isCrossDomain(c.url)&&(c.log("Auto detected cross domain url."),y.transport==="auto"&&(y.transport=["webSockets","serverSentEvents","longPolling"]),typeof y.withCredentials=="undefined"&&(y.withCredentials=!0),y.jsonp||(y.jsonp=!n.support.cors,y.jsonp&&c.log("Using jsonp because this browser doesn't support CORS.")),c.contentType=r._.defaultContentType),c.withCredentials=y.withCredentials,c.ajaxDataType=y.jsonp?"jsonp":"text",n(c).bind(u.onStart,function(){n.type(h)==="function"&&h.call(c);p.resolve(c)}),c._.initHandler=r.transports._logic.initHandler(c),d=function(i,s){var l=r._.error(f.noTransportOnInit);if(s=s||0,s>=i.length){s===0?c.log("No transports supported by the server were selected."):s===1?c.log("No fallback transports were selected."):c.log("Fallback transports exhausted.");n(c).triggerHandler(u.onError,[l]);p.reject(l);c.stop();return}if(c.state!==r.connectionState.disconnected){var y=i[s],h=r.transports[y],v=function(){d(i,s+1)};c.transport=h;try{c._.initHandler.start(h,function(){var i=r._.firefoxMajorVersion(t.navigator.userAgent)>=11,f=!!c.withCredentials&&i;c.log("The start request succeeded. Transitioning to the connected state.");a(c)&&r.transports._logic.monitorKeepAlive(c);r.transports._logic.startHeartbeat(c);r._.configurePingInterval(c);o(c,r.connectionState.connecting,r.connectionState.connected)||c.log("WARNING! The connection was not in the connecting state.");c._.connectingMessageBuffer.drain();n(c).triggerHandler(u.onStart);e.bind("unload",function(){c.log("Window unloading, stopping the connection.");c.stop(f)});i&&e.bind("beforeunload",function(){t.setTimeout(function(){c.stop(f)},0)})},v)}catch(w){c.log(h.name+" transport threw '"+w.message+"' when attempting to start.");v()}}},b=c.url+"/negotiate",g=function(t,i){var e=r._.error(f.errorOnNegotiate,t,i._.negotiateRequest);n(i).triggerHandler(u.onError,e);p.reject(e);i.stop()},n(c).triggerHandler(u.onStarting),b=r.transports._logic.prepareQueryString(c,b),c.log("Negotiating with '"+b+"'."),c._.negotiateRequest=r.transports._logic.ajax(c,{url:b,error:function(n,t){t!==l?g(n,c):p.reject(r._.error(f.stoppedWhileNegotiating,null,c._.negotiateRequest))},success:function(t){var i,e,h,o=[],s=[];try{i=c._parseResponse(t)}catch(l){g(r._.error(f.errorParsingNegotiateResponse,l),c);return}if(e=c._.keepAliveData,c.appRelativeUrl=i.Url,c.id=i.ConnectionId,c.token=i.ConnectionToken,c.webSocketServerUrl=i.WebSocketServerUrl,c._.pollTimeout=i.ConnectionTimeout*1e3+1e4,c.disconnectTimeout=i.DisconnectTimeout*1e3,c._.totalTransportConnectTimeout=c.transportConnectTimeout+i.TransportConnectTimeout*1e3,i.KeepAliveTimeout?(e.activated=!0,e.timeout=i.KeepAliveTimeout*1e3,e.timeoutWarning=e.timeout*c.keepAliveWarnAt,c._.beatInterval=(e.timeout-e.timeoutWarning)/3):e.activated=!1,c.reconnectWindow=c.disconnectTimeout+(e.timeout||0),!i.ProtocolVersion||i.ProtocolVersion!==c.clientProtocol){h=r._.error(r._.format(f.protocolIncompatible,c.clientProtocol,i.ProtocolVersion));n(c).triggerHandler(u.onError,[h]);p.reject(h);return}n.each(r.transports,function(n){if(n.indexOf("_")===0||n==="webSockets"&&!i.TryWebSockets)return!0;s.push(n)});n.isArray(y.transport)?n.each(y.transport,function(t,i){n.inArray(i,s)>=0&&o.push(i)}):y.transport==="auto"?o=s:n.inArray(y.transport,s)>=0&&o.push(y.transport);d(o)}}),p.promise())},starting:function(t){var i=this;return n(i).bind(u.onStarting,function(){t.call(i)}),i},send:function(n){var t=this;if(t.state===r.connectionState.disconnected)throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()");if(t.state===r.connectionState.connecting)throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started.");return t.transport.send(t,n),t},received:function(t){var i=this;return n(i).bind(u.onReceived,function(n,r){t.call(i,r)}),i},stateChanged:function(t){var i=this;return n(i).bind(u.onStateChanged,function(n,r){t.call(i,r)}),i},error:function(t){var i=this;return n(i).bind(u.onError,function(n,r,u){i.lastError=r;t.call(i,r,u)}),i},disconnected:function(t){var i=this;return n(i).bind(u.onDisconnect,function(){t.call(i)}),i},connectionSlow:function(t){var i=this;return n(i).bind(u.onConnectionSlow,function(){t.call(i)}),i},reconnecting:function(t){var i=this;return n(i).bind(u.onReconnecting,function(){t.call(i)}),i},reconnected:function(t){var i=this;return n(i).bind(u.onReconnect,function(){t.call(i)}),i},stop:function(i,h){var c=this,v=c._deferral;if(c._.deferredStartHandler&&e.unbind("load",c._.deferredStartHandler),delete c._.config,delete c._.deferredStartHandler,!s&&(!c._.config||c._.config.waitForPageLoad===!0)){c.log("Stopping connection prior to negotiate.");v&&v.reject(r._.error(f.stoppedWhileLoading));return}if(c.state!==r.connectionState.disconnected)return c.log("Stopping connection."),o(c,c.state,r.connectionState.disconnected),t.clearTimeout(c._.beatHandle),t.clearInterval(c._.pingIntervalId),c.transport&&(c.transport.stop(c),h!==!1&&c.transport.abort(c,i),a(c)&&r.transports._logic.stopMonitoringKeepAlive(c),c.transport=null),c._.negotiateRequest&&(c._.negotiateRequest.abort(l),delete c._.negotiateRequest),c._.initHandler&&c._.initHandler.stop(),n(c).triggerHandler(u.onDisconnect),delete c._deferral,delete c.messageId,delete c.groupsToken,delete c.id,delete c._.pingIntervalId,delete c._.lastMessageAt,delete c._.lastActiveAt,c._.connectingMessageBuffer.clear(),c},log:function(n){w(n,this.logging)}};r.fn.init.prototype=r.fn;r.noConflict=function(){return n.connection===r&&(n.connection=c),r};n.connection&&(c=n.connection);n.connection=n.signalR=r}(window.jQuery,window),function(n,t,i){function o(n){n._.keepAliveData.monitoring&&c(n);u.markActive(n)&&(n._.beatHandle=t.setTimeout(function(){o(n)},n._.beatInterval))}function c(t){var i=t._.keepAliveData,u;t.state===r.connectionState.connected&&(u=(new Date).getTime()-t._.lastMessageAt,u>=i.timeout?(t.log("Keep alive timed out.  Notifying transport that connection has been lost."),t.transport.lostConnection(t)):u>=i.timeoutWarning?i.userNotified||(t.log("Keep alive has been missed, connection may be dead/slow."),n(t).triggerHandler(f.onConnectionSlow),i.userNotified=!0):i.userNotified=!1)}function e(n,t){var i=n.url+t;return n.transport&&(i+="?transport="+n.transport.name),u.prepareQueryString(n,i)}function s(n){this.connection=n;this.startRequested=!1;this.startCompleted=!1;this.connectionStopped=!1}var r=n.signalR,f=n.signalR.events,l=n.signalR.changeState,h="__Start Aborted__",u;r.transports={};s.prototype={start:function(n,r,u){var f=this,e=f.connection,o=!1;if(f.startRequested||f.connectionStopped){e.log("WARNING! "+n.name+" transport cannot be started. Initialization ongoing or completed.");return}e.log(n.name+" transport starting.");f.transportTimeoutHandle=t.setTimeout(function(){o||(o=!0,e.log(n.name+" transport timed out when trying to connect."),f.transportFailed(n,i,u))},e._.totalTransportConnectTimeout);n.start(e,function(){o||f.initReceived(n,r)},function(t){return o||(o=!0,f.transportFailed(n,t,u)),!f.startCompleted||f.connectionStopped})},stop:function(){this.connectionStopped=!0;t.clearTimeout(this.transportTimeoutHandle);r.transports._logic.tryAbortStartRequest(this.connection)},initReceived:function(n,i){var u=this,f=u.connection;if(u.startRequested){f.log("WARNING! The client received multiple init messages.");return}u.connectionStopped||(u.startRequested=!0,t.clearTimeout(u.transportTimeoutHandle),f.log(n.name+" transport connected. Initiating start request."),r.transports._logic.ajaxStart(f,function(){u.startCompleted=!0;i()}))},transportFailed:function(i,u,e){var o=this.connection,h=o._deferral,s;this.connectionStopped||(t.clearTimeout(this.transportTimeoutHandle),this.startRequested?this.startCompleted||(s=r._.error(r.resources.errorDuringStartRequest,u),o.log(i.name+" transport failed during the start request. Stopping the connection."),n(o).triggerHandler(f.onError,[s]),h&&h.reject(s),o.stop()):(i.stop(o),o.log(i.name+" transport failed to connect. Attempting to fall back."),e()))}};u=r.transports._logic={ajax:function(t,i){return n.ajax(n.extend(!0,{},n.signalR.ajaxDefaults,{type:"GET",data:{},xhrFields:{withCredentials:t.withCredentials},contentType:t.contentType,dataType:t.ajaxDataType},i))},pingServer:function(t){var e,f,i=n.Deferred();return t.transport?(e=t.url+"/ping",e=u.addQs(e,t.qs),f=u.ajax(t,{url:e,success:function(n){var u;try{u=t._parseResponse(n)}catch(e){i.reject(r._.transportError(r.resources.pingServerFailedParse,t.transport,e,f));t.stop();return}u.Response==="pong"?i.resolve():i.reject(r._.transportError(r._.format(r.resources.pingServerFailedInvalidResponse,n),t.transport,null,f))},error:function(n){n.status===401||n.status===403?(i.reject(r._.transportError(r._.format(r.resources.pingServerFailedStatusCode,n.status),t.transport,n,f)),t.stop()):i.reject(r._.transportError(r.resources.pingServerFailed,t.transport,n,f))}})):i.reject(r._.transportError(r.resources.noConnectionTransport,t.transport)),i.promise()},prepareQueryString:function(n,i){var r;return r=u.addQs(i,"clientProtocol="+n.clientProtocol),r=u.addQs(r,n.qs),n.token&&(r+="&connectionToken="+t.encodeURIComponent(n.token)),n.data&&(r+="&connectionData="+t.encodeURIComponent(n.data)),r},addQs:function(t,i){var r=t.indexOf("?")!==-1?"&":"?",u;if(!i)return t;if(typeof i=="object")return t+r+n.param(i);if(typeof i=="string")return u=i.charAt(0),(u==="?"||u==="&")&&(r=""),t+r+i;throw new Error("Query string property must be either a string or object.");},getUrl:function(n,i,r,f,e){var h=i==="webSockets"?"":n.baseUrl,o=h+n.appRelativeUrl,s="transport="+i;return!e&&n.groupsToken&&(s+="&groupsToken="+t.encodeURIComponent(n.groupsToken)),r?(o+=f?"/poll":"/reconnect",!e&&n.messageId&&(s+="&messageId="+t.encodeURIComponent(n.messageId))):o+="/connect",o+="?"+s,o=u.prepareQueryString(n,o),e||(o+="&tid="+Math.floor(Math.random()*11)),o},maximizePersistentResponse:function(n){return{MessageId:n.C,Messages:n.M,Initialized:typeof n.S!="undefined"?!0:!1,ShouldReconnect:typeof n.T!="undefined"?!0:!1,LongPollDelay:n.L,GroupsToken:n.G}},updateGroups:function(n,t){t&&(n.groupsToken=t)},stringifySend:function(n,t){return typeof t=="string"||typeof t=="undefined"||t===null?t:n.json.stringify(t)},ajaxSend:function(t,i){var h=u.stringifySend(t,i),c=e(t,"/send"),o,s=function(t,u){n(u).triggerHandler(f.onError,[r._.transportError(r.resources.sendFailed,u.transport,t,o),i])};return o=u.ajax(t,{url:c,type:t.ajaxDataType==="jsonp"?"GET":"POST",contentType:r._.defaultContentType,data:{data:h},success:function(n){var i;if(n){try{i=t._parseResponse(n)}catch(r){s(r,t);t.stop();return}u.triggerReceived(t,i)}},error:function(n,i){i!=="abort"&&i!=="parsererror"&&s(n,t)}})},ajaxAbort:function(n,t){if(typeof n.transport!="undefined"){t=typeof t=="undefined"?!0:t;var i=e(n,"/abort");u.ajax(n,{url:i,async:t,timeout:1e3,type:"POST"});n.log("Fired ajax abort async = "+t+".")}},ajaxStart:function(t,i){var s=function(n){var i=t._deferral;i&&i.reject(n)},o=function(i){t.log("The start request failed. Stopping the connection.");n(t).triggerHandler(f.onError,[i]);s(i);t.stop()};t._.startRequest=u.ajax(t,{url:e(t,"/start"),success:function(n,u,f){var e;try{e=t._parseResponse(n)}catch(s){o(r._.error(r._.format(r.resources.errorParsingStartResponse,n),s,f));return}e.Response==="started"?i():o(r._.error(r._.format(r.resources.invalidStartResponse,n),null,f))},error:function(n,i,u){i!==h?o(r._.error(r.resources.errorDuringStartRequest,u,n)):(t.log("The start request aborted because connection.stop() was called."),s(r._.error(r.resources.stoppedDuringStartRequest,null,n)))}})},tryAbortStartRequest:function(n){n._.startRequest&&(n._.startRequest.abort(h),delete n._.startRequest)},tryInitialize:function(n,t){n.Initialized&&t()},triggerReceived:function(t,i){t._.connectingMessageBuffer.tryBuffer(i)||n(t).triggerHandler(f.onReceived,[i])},processMessages:function(t,i,r){var f;u.markLastMessage(t);i&&(f=u.maximizePersistentResponse(i),u.updateGroups(t,f.GroupsToken),f.MessageId&&(t.messageId=f.MessageId),f.Messages&&(n.each(f.Messages,function(n,i){u.triggerReceived(t,i)}),u.tryInitialize(f,r)))},monitorKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring?t.log("Tried to monitor keep alive but it's already being monitored."):(i.monitoring=!0,u.markLastMessage(t),t._.keepAliveData.reconnectKeepAliveUpdate=function(){u.markLastMessage(t)},n(t).bind(f.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t.log("Now monitoring keep alive with a warning timeout of "+i.timeoutWarning+", keep alive timeout of "+i.timeout+" and disconnecting timeout of "+t.disconnectTimeout))},stopMonitoringKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring&&(i.monitoring=!1,n(t).unbind(f.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t._.keepAliveData={},t.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(n){n._.lastActiveAt=(new Date).getTime();o(n)},markLastMessage:function(n){n._.lastMessageAt=(new Date).getTime()},markActive:function(n){return u.verifyLastActive(n)?(n._.lastActiveAt=(new Date).getTime(),!0):!1},isConnectedOrReconnecting:function(n){return n.state===r.connectionState.connected||n.state===r.connectionState.reconnecting},ensureReconnectingState:function(t){return l(t,r.connectionState.connected,r.connectionState.reconnecting)===!0&&n(t).triggerHandler(f.onReconnecting),t.state===r.connectionState.reconnecting},clearReconnectTimeout:function(n){n&&n._.reconnectTimeout&&(t.clearTimeout(n._.reconnectTimeout),delete n._.reconnectTimeout)},verifyLastActive:function(t){if((new Date).getTime()-t._.lastActiveAt>=t.reconnectWindow){var i=r._.format(r.resources.reconnectWindowTimeout,new Date(t._.lastActiveAt),t.reconnectWindow);return t.log(i),n(t).triggerHandler(f.onError,[r._.error(i,"TimeoutException")]),t.stop(!1,!1),!1}return!0},reconnect:function(n,i){var f=r.transports[i];if(u.isConnectedOrReconnecting(n)&&!n._.reconnectTimeout){if(!u.verifyLastActive(n))return;n._.reconnectTimeout=t.setTimeout(function(){u.verifyLastActive(n)&&(f.stop(n),u.ensureReconnectingState(n)&&(n.log(i+" reconnecting."),f.start(n)))},n.reconnectDelay)}},handleParseFailure:function(t,i,u,e,o){var s=r._.transportError(r._.format(r.resources.parseFailed,i),t.transport,u,o);e&&e(s)?t.log("Failed to parse server response while attempting to connect."):(n(t).triggerHandler(f.onError,[s]),t.stop())},initHandler:function(n){return new s(n)},foreverFrame:{count:0,connections:{}}}}(window.jQuery,window),function(n,t){var r=n.signalR,u=n.signalR.events,f=n.signalR.changeState,i=r.transports._logic;r.transports.webSockets={name:"webSockets",supportsKeepAlive:function(){return!0},send:function(t,f){var e=i.stringifySend(t,f);try{t.socket.send(e)}catch(o){n(t).triggerHandler(u.onError,[r._.transportError(r.resources.webSocketsInvalidState,t.transport,o,t.socket),f])}},start:function(e,o,s){var h,c=!1,l=this,a=!o,v=n(e);if(!t.WebSocket){s();return}e.socket||(h=e.webSocketServerUrl?e.webSocketServerUrl:e.wsProtocol+e.host,h+=i.getUrl(e,this.name,a),e.log("Connecting to websocket endpoint '"+h+"'."),e.socket=new t.WebSocket(h),e.socket.onopen=function(){c=!0;e.log("Websocket opened.");i.clearReconnectTimeout(e);f(e,r.connectionState.reconnecting,r.connectionState.connected)===!0&&v.triggerHandler(u.onReconnect)},e.socket.onclose=function(t){var i;this===e.socket&&(c&&typeof t.wasClean!="undefined"&&t.wasClean===!1?(i=r._.transportError(r.resources.webSocketClosed,e.transport,t),e.log("Unclean disconnect from websocket: "+(t.reason||"[no reason given]."))):e.log("Websocket closed."),s&&s(i)||(i&&n(e).triggerHandler(u.onError,[i]),l.reconnect(e)))},e.socket.onmessage=function(t){var r;try{r=e._parseResponse(t.data)}catch(u){i.handleParseFailure(e,t.data,u,s,t);return}r&&(n.isEmptyObject(r)||r.M?i.processMessages(e,r,o):i.triggerReceived(e,r))})},reconnect:function(n){i.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},stop:function(n){i.clearReconnectTimeout(n);n.socket&&(n.log("Closing the Websocket."),n.socket.close(),n.socket=null)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){var i=n.signalR,u=n.signalR.events,e=n.signalR.changeState,r=i.transports._logic,f=function(n){t.clearTimeout(n._.reconnectAttemptTimeoutHandle);delete n._.reconnectAttemptTimeoutHandle};i.transports.serverSentEvents={name:"serverSentEvents",supportsKeepAlive:function(){return!0},timeOut:3e3,start:function(o,s,h){var c=this,l=!1,a=n(o),v=!s,y;if(o.eventSource&&(o.log("The connection already has an event source. Stopping it."),o.stop()),!t.EventSource){h&&(o.log("This browser doesn't support SSE."),h());return}y=r.getUrl(o,this.name,v);try{o.log("Attempting to connect to SSE endpoint '"+y+"'.");o.eventSource=new t.EventSource(y,{withCredentials:o.withCredentials})}catch(p){o.log("EventSource failed trying to connect with error "+p.Message+".");h?h():(a.triggerHandler(u.onError,[i._.transportError(i.resources.eventSourceFailedToConnect,o.transport,p)]),v&&c.reconnect(o));return}v&&(o._.reconnectAttemptTimeoutHandle=t.setTimeout(function(){l===!1&&o.eventSource.readyState!==t.EventSource.OPEN&&c.reconnect(o)},c.timeOut));o.eventSource.addEventListener("open",function(){o.log("EventSource connected.");f(o);r.clearReconnectTimeout(o);l===!1&&(l=!0,e(o,i.connectionState.reconnecting,i.connectionState.connected)===!0&&a.triggerHandler(u.onReconnect))},!1);o.eventSource.addEventListener("message",function(n){var t;if(n.data!=="initialized"){try{t=o._parseResponse(n.data)}catch(i){r.handleParseFailure(o,n.data,i,h,n);return}r.processMessages(o,t,s)}},!1);o.eventSource.addEventListener("error",function(n){var r=i._.transportError(i.resources.eventSourceError,o.transport,n);this===o.eventSource&&(h&&h(r)||(o.log("EventSource readyState: "+o.eventSource.readyState+"."),n.eventPhase===t.EventSource.CLOSED?(o.log("EventSource reconnecting due to the server connection ending."),c.reconnect(o)):(o.log("EventSource error."),a.triggerHandler(u.onError,[r]))))},!1)},reconnect:function(n){r.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){r.ajaxSend(n,t)},stop:function(n){f(n);r.clearReconnectTimeout(n);n&&n.eventSource&&(n.log("EventSource calling close()."),n.eventSource.close(),n.eventSource=null,delete n.eventSource)},abort:function(n,t){r.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){var r=n.signalR,e=n.signalR.events,o=n.signalR.changeState,i=r.transports._logic,u=function(){var n=t.document.createElement("iframe");return n.setAttribute("style","position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"),n},f=function(){var i=null,f=1e3,n=0;return{prevent:function(){r._.ieVersion<=8&&(n===0&&(i=t.setInterval(function(){var n=u();t.document.body.appendChild(n);t.document.body.removeChild(n);n=null},f)),n++)},cancel:function(){n===1&&t.clearInterval(i);n>0&&n--}}}();r.transports.foreverFrame={name:"foreverFrame",supportsKeepAlive:function(){return!0},iframeClearThreshold:50,start:function(n,r,e){var l=this,s=i.foreverFrame.count+=1,h,o=u(),c=function(){n.log("Forever frame iframe finished loading and is no longer receiving messages.");e&&e()||l.reconnect(n)};if(t.EventSource){e&&(n.log("Forever Frame is not supported by SignalR on browsers with SSE support."),e());return}o.setAttribute("data-signalr-connection-id",n.id);f.prevent();h=i.getUrl(n,this.name);h+="&frameId="+s;t.document.documentElement.appendChild(o);n.log("Binding to iframe's load event.");o.addEventListener?o.addEventListener("load",c,!1):o.attachEvent&&o.attachEvent("onload",c);o.src=h;i.foreverFrame.connections[s]=n;n.frame=o;n.frameId=s;r&&(n.onSuccess=function(){n.log("Iframe transport started.");r()})},reconnect:function(n){var r=this;i.isConnectedOrReconnecting(n)&&i.verifyLastActive(n)&&t.setTimeout(function(){if(i.verifyLastActive(n)&&n.frame&&i.ensureReconnectingState(n)){var u=n.frame,t=i.getUrl(n,r.name,!0)+"&frameId="+n.frameId;n.log("Updating iframe src to '"+t+"'.");u.src=t}},n.reconnectDelay)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){i.ajaxSend(n,t)},receive:function(t,u){var f,e,o;if(t.json!==t._originalJson&&(u=t._originalJson.stringify(u)),o=t._parseResponse(u),i.processMessages(t,o,t.onSuccess),t.state===n.signalR.connectionState.connected&&(t.frameMessageCount=(t.frameMessageCount||0)+1,t.frameMessageCount>r.transports.foreverFrame.iframeClearThreshold&&(t.frameMessageCount=0,f=t.frame.contentWindow||t.frame.contentDocument,f&&f.document&&f.document.body)))for(e=f.document.body;e.firstChild;)e.removeChild(e.firstChild)},stop:function(n){var r=null;if(f.cancel(),n.frame){if(n.frame.stop)n.frame.stop();else try{r=n.frame.contentWindow||n.frame.contentDocument;r.document&&r.document.execCommand&&r.document.execCommand("Stop")}catch(u){n.log("Error occured when stopping foreverFrame transport. Message = "+u.message+".")}n.frame.parentNode===t.document.body&&t.document.body.removeChild(n.frame);delete i.foreverFrame.connections[n.frameId];n.frame=null;n.frameId=null;delete n.frame;delete n.frameId;delete n.onSuccess;delete n.frameMessageCount;n.log("Stopping forever frame.")}},abort:function(n,t){i.ajaxAbort(n,t)},getConnection:function(n){return i.foreverFrame.connections[n]},started:function(t){o(t,r.connectionState.reconnecting,r.connectionState.connected)===!0&&n(t).triggerHandler(e.onReconnect)}}}(window.jQuery,window),function(n,t){var r=n.signalR,u=n.signalR.events,e=n.signalR.changeState,f=n.signalR.isDisconnecting,i=r.transports._logic;r.transports.longPolling={name:"longPolling",supportsKeepAlive:function(){return!1},reconnectDelay:3e3,start:function(o,s,h){var a=this,v=function(){v=n.noop;o.log("LongPolling connected.");s()},y=function(n){return h(n)?(o.log("LongPolling failed to connect."),!0):!1},c=o._,l=0,p=function(i){t.clearTimeout(c.reconnectTimeoutId);c.reconnectTimeoutId=null;e(i,r.connectionState.reconnecting,r.connectionState.connected)===!0&&(i.log("Raising the reconnect event"),n(i).triggerHandler(u.onReconnect))},w=36e5;o.pollXhr&&(o.log("Polling xhr requests already exists, aborting."),o.stop());o.messageId=null;c.reconnectTimeoutId=null;c.pollTimeoutId=t.setTimeout(function(){(function e(s,h){var g=s.messageId,nt=g===null,k=!nt,tt=!h,d=i.getUrl(s,a.name,k,tt,!0),b={};(s.messageId&&(b.messageId=s.messageId),s.groupsToken&&(b.groupsToken=s.groupsToken),f(s)!==!0)&&(o.log("Opening long polling request to '"+d+"'."),s.pollXhr=i.ajax(o,{xhrFields:{onprogress:function(){i.markLastMessage(o)}},url:d,type:"POST",contentType:r._.defaultContentType,data:b,timeout:o._.pollTimeout,success:function(r){var h,w=0,u,a;o.log("Long poll complete.");l=0;try{h=o._parseResponse(r)}catch(b){i.handleParseFailure(s,r,b,y,s.pollXhr);return}(c.reconnectTimeoutId!==null&&p(s),h&&(u=i.maximizePersistentResponse(h)),i.processMessages(s,h,v),u&&n.type(u.LongPollDelay)==="number"&&(w=u.LongPollDelay),f(s)!==!0)&&(a=u&&u.ShouldReconnect,!a||i.ensureReconnectingState(s))&&(w>0?c.pollTimeoutId=t.setTimeout(function(){e(s,a)},w):e(s,a))},error:function(f,h){var v=r._.transportError(r.resources.longPollFailed,o.transport,f,s.pollXhr);if(t.clearTimeout(c.reconnectTimeoutId),c.reconnectTimeoutId=null,h==="abort"){o.log("Aborted xhr request.");return}if(!y(v)){if(l++,o.state!==r.connectionState.reconnecting&&(o.log("An error occurred using longPolling. Status = "+h+".  Response = "+f.responseText+"."),n(s).triggerHandler(u.onError,[v])),(o.state===r.connectionState.connected||o.state===r.connectionState.reconnecting)&&!i.verifyLastActive(o))return;if(!i.ensureReconnectingState(s))return;c.pollTimeoutId=t.setTimeout(function(){e(s,!0)},a.reconnectDelay)}}}),k&&h===!0&&(c.reconnectTimeoutId=t.setTimeout(function(){p(s)},Math.min(1e3*(Math.pow(2,l)-1),w))))})(o)},250)},lostConnection:function(n){n.pollXhr&&n.pollXhr.abort("lostConnection")},send:function(n,t){i.ajaxSend(n,t)},stop:function(n){t.clearTimeout(n._.pollTimeoutId);t.clearTimeout(n._.reconnectTimeoutId);delete n._.pollTimeoutId;delete n._.reconnectTimeoutId;n.pollXhr&&(n.pollXhr.abort(),n.pollXhr=null,delete n.pollXhr)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n){function r(n){return n+s}function e(n,t,i){for(var f=n.length,u=[],r=0;r<f;r+=1)n.hasOwnProperty(r)&&(u[r]=t.call(i,n[r],r,n));return u}function o(t){return n.isFunction(t)?null:n.type(t)==="undefined"?null:t}function u(n){for(var t in n)if(n.hasOwnProperty(t))return!0;return!1}function f(n,t){var i=n._.invocationCallbacks,r,f;u(i)&&n.log("Clearing hub invocation callbacks with error: "+t+".");n._.invocationCallbackId=0;delete n._.invocationCallbacks;n._.invocationCallbacks={};for(f in i)r=i[f],r.method.call(r.scope,{E:t})}function i(n,t){return new i.fn.init(n,t)}function t(i,r){var u={qs:null,logging:!1,useDefaultPath:!0};return n.extend(u,r),(!i||u.useDefaultPath)&&(i=(i||"")+"/signalr"),new t.fn.init(i,u)}var s=".hubProxy",h=n.signalR;i.fn=i.prototype={init:function(n,t){this.state={};this.connection=n;this.hubName=t;this._={callbackMap:{}}},constructor:i,hasSubscriptions:function(){return u(this._.callbackMap)},on:function(t,i){var u=this,f=u._.callbackMap;return t=t.toLowerCase(),f[t]||(f[t]={}),f[t][i]=function(n,t){i.apply(u,t)},n(u).bind(r(t),f[t][i]),u},off:function(t,i){var e=this,o=e._.callbackMap,f;return t=t.toLowerCase(),f=o[t],f&&(f[i]?(n(e).unbind(r(t),f[i]),delete f[i],u(f)||delete o[t]):i||(n(e).unbind(r(t)),delete o[t])),e},invoke:function(t){var i=this,r=i.connection,s=n.makeArray(arguments).slice(1),c=e(s,o),f={H:i.hubName,M:t,A:c,I:r._.invocationCallbackId},u=n.Deferred(),l=function(f){var e=i._maximizeHubResponse(f),s,o;n.extend(i.state,e.State);e.Progress?u.notifyWith?u.notifyWith(i,[e.Progress.Data]):r._.progressjQueryVersionLogged||(r.log("A hub method invocation progress update was received but the version of jQuery in use ("+n.prototype.jquery+") does not support progress updates. Upgrade to jQuery 1.7+ to receive progress notifications."),r._.progressjQueryVersionLogged=!0):e.Error?(e.StackTrace&&r.log(e.Error+"\n"+e.StackTrace+"."),s=e.IsHubException?"HubException":"Exception",o=h._.error(e.Error,s),o.data=e.ErrorData,r.log(i.hubName+"."+t+" failed to execute. Error: "+o.message),u.rejectWith(i,[o])):(r.log("Invoked "+i.hubName+"."+t),u.resolveWith(i,[e.Result]))};return r._.invocationCallbacks[r._.invocationCallbackId.toString()]={scope:i,method:l},r._.invocationCallbackId+=1,n.isEmptyObject(i.state)||(f.S=i.state),r.log("Invoking "+i.hubName+"."+t),r.send(f),u.promise()},_maximizeHubResponse:function(n){return{State:n.S,Result:n.R,Progress:n.P?{Id:n.P.I,Data:n.P.D}:null,Id:n.I,IsHubException:n.H,Error:n.E,StackTrace:n.T,ErrorData:n.D}}};i.fn.init.prototype=i.fn;t.fn=t.prototype=n.connection();t.fn.init=function(t,i){var e={qs:null,logging:!1,useDefaultPath:!0},u=this;n.extend(e,i);n.signalR.fn.init.call(u,t,e.qs,e.logging);u.proxies={};u._.invocationCallbackId=0;u._.invocationCallbacks={};u.received(function(t){var f,o,e,i,s,h;t&&(typeof t.P!="undefined"?(e=t.P.I.toString(),i=u._.invocationCallbacks[e],i&&i.method.call(i.scope,t)):typeof t.I!="undefined"?(e=t.I.toString(),i=u._.invocationCallbacks[e],i&&(u._.invocationCallbacks[e]=null,delete u._.invocationCallbacks[e],i.method.call(i.scope,t))):(f=this._maximizeClientHubInvocation(t),u.log("Triggering client hub event '"+f.Method+"' on hub '"+f.Hub+"'."),s=f.Hub.toLowerCase(),h=f.Method.toLowerCase(),o=this.proxies[s],n.extend(o.state,f.State),n(o).triggerHandler(r(h),[f.Args])))});u.error(function(n,t){var i,r;t&&(i=t.I,r=u._.invocationCallbacks[i],r&&(u._.invocationCallbacks[i]=null,delete u._.invocationCallbacks[i],r.method.call(r.scope,{E:n})))});u.reconnecting(function(){u.transport&&u.transport.name==="webSockets"&&f(u,"Connection started reconnecting before invocation result was received.")});u.disconnected(function(){f(u,"Connection was disconnected before invocation result was received.")})};t.fn._maximizeClientHubInvocation=function(n){return{Hub:n.H,Method:n.M,Args:n.A,State:n.S}};t.fn._registerSubscribedHubs=function(){var t=this;t._subscribedToHubs||(t._subscribedToHubs=!0,t.starting(function(){var i=[];n.each(t.proxies,function(n){this.hasSubscriptions()&&(i.push({name:n}),t.log("Client subscribed to hub '"+n+"'."))});i.length===0&&t.log("No hubs have been subscribed to.  The client will not receive data from hubs.  To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to.");t.data=t.json.stringify(i)}))};t.fn.createHubProxy=function(n){n=n.toLowerCase();var t=this.proxies[n];return t||(t=i(this,n),this.proxies[n]=t),this._registerSubscribedHubs(),t};t.fn.init.prototype=t.fn;n.hubConnection=t}(window.jQuery,window),function(n){n.signalR.version="2.2.0"}(window.jQuery);!function(n){var u="0.9.3",t={isMsie:function(){var n=/(msie) ([\w.]+)/i.exec(navigator.userAgent);return n?parseInt(n[2],10):!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return"undefined"==typeof n},bind:n.proxy,bindAll:function(t){var i;for(var r in t)n.isFunction(i=t[r])&&(t[r]=n.proxy(i,t))},indexOf:function(n,t){for(var i=0;i<n.length;i++)if(n[i]===t)return i;return-1},each:n.each,map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if((r=i.call(null,u,n,t)))return!1}),!!r):r},mixin:n.extend,getUniqueId:function(){var n=0;return function(){return n++}}(),defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f,e,o=this,s=arguments;return f=function(){r=null;i||(u=n.apply(o,s))},e=i&&!r,clearTimeout(r),r=setTimeout(f,t),e&&(u=n.apply(o,s)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,0>=h?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},tokenizeQuery:function(t){return n.trim(t).toLowerCase().split(/[\s]+/)},tokenizeText:function(t){return n.trim(t).toLowerCase().split(/[\s\-_]+/)},getProtocol:function(){return location.protocol},noop:function(){}},i=function(){var n=/\s+/;return{on:function(t,i){var r;if(!i)return this;for(this._callbacks=this._callbacks||{},t=t.split(n);r=t.shift();)this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push(i);return this},trigger:function(t,i){var u,f,r;if(!this._callbacks)return this;for(t=t.split(n);u=t.shift();)if(f=this._callbacks[u])for(r=0;r<f.length;r+=1)f[r].call(this,{type:u,data:i});return this}}}(),r=function(){function i(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var r="typeahead:";return t.mixin(i.prototype,{trigger:function(n){var t=[].slice.call(arguments,1);this.$el.trigger(r+n,t)}}),i}(),f=function(){function i(n){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+this.prefix)}function r(){return(new Date).getTime()}function u(n){return JSON.stringify(t.isUndefined(n)?null:n)}function f(n){return JSON.parse(n)}var n,e;try{n=window.localStorage;n.setItem("~~~","!");n.removeItem("~~~")}catch(o){n=null}return e=n&&window.JSON?{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),f(n.getItem(this._prefix(t)))},set:function(i,f,e){return t.isNumber(e)?n.setItem(this._ttlKey(i),u(r()+e)):n.removeItem(this._ttlKey(i)),n.setItem(this._prefix(i),u(f))},remove:function(t){return n.removeItem(this._ttlKey(t)),n.removeItem(this._prefix(t)),this},clear:function(){for(var r,i=[],u=n.length,t=0;u>t;t++)(r=n.key(t)).match(this.keyMatcher)&&i.push(r.replace(this.keyMatcher,""));for(t=i.length;t--;)this.remove(i[t]);return this},isExpired:function(i){var u=f(n.getItem(this._ttlKey(i)));return t.isNumber(u)&&r()>u?!0:!1}}:{get:t.noop,set:t.noop,remove:t.noop,clear:t.noop,isExpired:t.noop},t.mixin(i.prototype,e),i}(),e=function(){function n(n){t.bindAll(this);n=n||{};this.sizeLimit=n.sizeLimit||10;this.cache={};this.cachedKeysByAge=[]}return t.mixin(n.prototype,{get:function(n){return this.cache[n]},set:function(n,t){var i;this.cachedKeysByAge.length===this.sizeLimit&&(i=this.cachedKeysByAge.shift(),delete this.cache[i]);this.cache[n]=t;this.cachedKeysByAge.push(n)}}),n}(),o=function(){function o(n){t.bindAll(this);n=t.isString(n)?{url:n}:n;i=i||new e;r=t.isNumber(n.maxParallelRequests)?n.maxParallelRequests:r||6;this.url=n.url;this.wildcard=n.wildcard||"%QUERY";this.filter=n.filter;this.replace=n.replace;this.ajaxSettings={type:"get",cache:n.cache,timeout:n.timeout,dataType:n.dataType||"json",beforeSend:n.beforeSend};this._get=(/^throttle$/i.test(n.rateLimitFn)?t.throttle:t.debounce)(this._get,n.rateLimitWait||300)}function s(){u++}function h(){u--}function c(){return r>u}var r,i,u=0,f={};return t.mixin(o.prototype,{_get:function(n,t){function u(u){var f=r.filter?r.filter(u):u;t&&t(f);i.set(n,u)}var r=this;c()?this._sendRequest(n).done(u):this.onDeckRequestArgs=[].slice.call(arguments,0)},_sendRequest:function(t){function u(){h();f[t]=null;i.onDeckRequestArgs&&(i._get.apply(i,i.onDeckRequestArgs),i.onDeckRequestArgs=null)}var i=this,r=f[t];return r||(s(),r=f[t]=n.ajax(t,this.ajaxSettings).always(u)),r},get:function(n,r){var f,u,e=this,o=encodeURIComponent(n||"");return r=r||t.noop,f=this.replace?this.replace(this.url,o):this.url.replace(this.wildcard,o),(u=i.get(f))?t.defer(function(){r(e.filter?e.filter(u):u)}):this._get(f,r),!!u}}),o}(),s=function(){function r(i){t.bindAll(this);t.isString(i.template)&&!i.engine&&n.error("no template engine specified");i.local||i.prefetch||i.remote||n.error("one of local, prefetch, or remote is required");this.name=i.name||t.getUniqueId();this.limit=i.limit||5;this.minLength=i.minLength||1;this.header=i.header;this.footer=i.footer;this.valueKey=i.valueKey||"value";this.template=e(i.template,i.engine,this.valueKey);this.local=i.local;this.prefetch=i.prefetch;this.remote=i.remote;this.itemHash={};this.adjacencyList={};this.storage=i.name?new f(i.name):null}function e(n,i,r){var u,f;return t.isFunction(n)?u=n:t.isString(n)?(f=i.compile(n),u=t.bind(f.render,f)):u=function(n){return"<p>"+n[r]+"<\/p>"},u}var i={thumbprint:"thumbprint",protocol:"protocol",itemHash:"itemHash",adjacencyList:"adjacencyList"};return t.mixin(r.prototype,{_processLocalData:function(n){this._mergeProcessedData(this._processData(n))},_loadPrefetchData:function(r){function v(n){var e=r.filter?r.filter(n):n,u=f._processData(e),o=u.itemHash,s=u.adjacencyList;f.storage&&(f.storage.set(i.itemHash,o,r.ttl),f.storage.set(i.adjacencyList,s,r.ttl),f.storage.set(i.thumbprint,a,r.ttl),f.storage.set(i.protocol,t.getProtocol(),r.ttl));f._mergeProcessedData(u)}var h,c,e,o,l,s,f=this,a=u+(r.thumbprint||"");return this.storage&&(h=this.storage.get(i.thumbprint),c=this.storage.get(i.protocol),e=this.storage.get(i.itemHash),o=this.storage.get(i.adjacencyList)),l=h!==a||c!==t.getProtocol(),r=t.isString(r)?{url:r}:r,r.ttl=t.isNumber(r.ttl)?r.ttl:864e5,e&&o&&!l?(this._mergeProcessedData({itemHash:e,adjacencyList:o}),s=n.Deferred().resolve()):s=n.getJSON(r.url).done(v),s},_transformDatum:function(n){var r=t.isString(n)?n:n[this.valueKey],u=n.tokens||t.tokenizeText(r),i={value:r,tokens:u};return t.isString(n)?(i.datum={},i.datum[this.valueKey]=n):i.datum=n,i.tokens=t.filter(i.tokens,function(n){return!t.isBlankString(n)}),i.tokens=t.map(i.tokens,function(n){return n.toLowerCase()}),i},_processData:function(n){var u=this,r={},i={};return t.each(n,function(n,f){var o=u._transformDatum(f),e=t.getUniqueId(o.value);r[e]=o;t.each(o.tokens,function(n,r){var u=r.charAt(0),f=i[u]||(i[u]=[e]);~t.indexOf(f,e)||f.push(e)})}),{itemHash:r,adjacencyList:i}},_mergeProcessedData:function(n){var i=this;t.mixin(this.itemHash,n.itemHash);t.each(n.adjacencyList,function(n,t){var r=i.adjacencyList[n];i.adjacencyList[n]=r?r.concat(t):t})},_getLocalSuggestions:function(n){var i,f=this,r=[],u=[],e=[];return t.each(n,function(n,i){var u=i.charAt(0);~t.indexOf(r,u)||r.push(u)}),t.each(r,function(n,t){var r=f.adjacencyList[t];return r?(u.push(r),(!i||r.length<i.length)&&(i=r),void 0):!1}),u.length<r.length?[]:(t.each(i,function(i,r){var o,s,h=f.itemHash[r];o=t.every(u,function(n){return~t.indexOf(n,r)});s=o&&t.every(n,function(n){return t.some(h.tokens,function(t){return 0===t.indexOf(n)})});s&&e.push(h)}),e)},initialize:function(){var t;return this.local&&this._processLocalData(this.local),this.transport=this.remote?new o(this.remote):null,t=this.prefetch?this._loadPrefetchData(this.prefetch):n.Deferred().resolve(),this.local=this.prefetch=this.remote=null,this.initialize=function(){return t},t},getSuggestions:function(n,i){function o(n){r=r.slice(0);t.each(n,function(n,i){var u,e=f._transformDatum(i);return u=t.some(r,function(n){return e.value===n.value}),!u&&r.push(e),r.length<f.limit});i&&i(r)}var u,r,f=this,e=!1;n.length<this.minLength||(u=t.tokenizeQuery(n),r=this._getLocalSuggestions(u).slice(0,this.limit),r.length<this.limit&&this.transport&&(e=this.transport.get(n,o)),!e&&i&&i(r))}}),r}(),h=function(){function r(i){var r=this;t.bindAll(this);this.specialKeyCodeMap={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};this.$hint=n(i.hint);this.$input=n(i.input).on("blur.tt",this._handleBlur).on("focus.tt",this._handleFocus).on("keydown.tt",this._handleSpecialKeyEvent);t.isMsie()?this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(n){r.specialKeyCodeMap[n.which||n.keyCode]||t.defer(r._compareQueryToInputValue)}):this.$input.on("input.tt",this._compareQueryToInputValue);this.query=this.$input.val();this.$overflowHelper=u(this.$input)}function u(t){return n("<span><\/span>").css({position:"absolute",left:"-9999px",visibility:"hidden",whiteSpace:"nowrap",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function f(n,t){return n=(n||"").replace(/^\s*/g,"").replace(/\s{2,}/g," "),t=(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," "),n===t}return t.mixin(r.prototype,i,{_handleFocus:function(){this.trigger("focused")},_handleBlur:function(){this.trigger("blured")},_handleSpecialKeyEvent:function(n){var t=this.specialKeyCodeMap[n.which||n.keyCode];t&&this.trigger(t+"Keyed",n)},_compareQueryToInputValue:function(){var n=this.getInputValue(),t=f(this.query,n),i=t?this.query.length!==n.length:!1;i?this.trigger("whitespaceChanged",{value:this.query}):t||this.trigger("queryChanged",{value:this.query=n})},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$hint=this.$input=this.$overflowHelper=null},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(n){this.query=n},getInputValue:function(){return this.$input.val()},setInputValue:function(n,t){this.$input.val(n);t||this._compareQueryToInputValue()},getHintValue:function(){return this.$hint.val()},setHintValue:function(n){this.$hint.val(n)},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},isOverflow:function(){return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>this.$input.width()},isCursorAtEnd:function(){var n,i=this.$input.val().length,r=this.$input[0].selectionStart;return t.isNumber(r)?r===i:document.selection?(n=document.selection.createRange(),n.moveStart("character",-i),i===n.text.length):!0}}),r}(),c=function(){function f(i){t.bindAll(this);this.isOpen=!1;this.isEmpty=!0;this.isMouseOverDropdown=!1;this.$menu=n(i.menu).on("mouseenter.tt",this._handleMouseenter).on("mouseleave.tt",this._handleMouseleave).on("click.tt",".tt-suggestion",this._handleSelection).on("mouseover.tt",".tt-suggestion",this._handleMouseover)}function r(n){return n.data("suggestion")}var e={suggestionsList:'<span class="tt-suggestions"><\/span>'},u={suggestionsList:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"}};return t.mixin(f.prototype,i,{_handleMouseenter:function(){this.isMouseOverDropdown=!0},_handleMouseleave:function(){this.isMouseOverDropdown=!1},_handleMouseover:function(t){var i=n(t.currentTarget);this._getSuggestions().removeClass("tt-is-under-cursor");i.addClass("tt-is-under-cursor")},_handleSelection:function(t){var i=n(t.currentTarget);this.trigger("suggestionSelected",r(i))},_show:function(){this.$menu.css("display","block")},_hide:function(){this.$menu.hide()},_moveCursor:function(n){var i,u,t,f;if(this.isVisible()){if(i=this._getSuggestions(),u=i.filter(".tt-is-under-cursor"),u.removeClass("tt-is-under-cursor"),t=i.index(u)+n,t=(t+1)%(i.length+1)-1,-1===t)return this.trigger("cursorRemoved"),void 0;-1>t&&(t=i.length-1);f=i.eq(t).addClass("tt-is-under-cursor");this._ensureVisibility(f);this.trigger("cursorMoved",r(f))}},_getSuggestions:function(){return this.$menu.find(".tt-suggestions > .tt-suggestion")},_ensureVisibility:function(n){var i=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10),r=this.$menu.scrollTop(),t=n.position().top,u=t+n.outerHeight(!0);0>t?this.$menu.scrollTop(r+t):u>i&&this.$menu.scrollTop(r+(u-i))},destroy:function(){this.$menu.off(".tt");this.$menu=null},isVisible:function(){return this.isOpen&&!this.isEmpty},closeUnlessMouseIsOverDropdown:function(){this.isMouseOverDropdown||this.close()},close:function(){this.isOpen&&(this.isOpen=!1,this.isMouseOverDropdown=!1,this._hide(),this.$menu.find(".tt-suggestions > .tt-suggestion").removeClass("tt-is-under-cursor"),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,!this.isEmpty&&this._show(),this.trigger("opened"))},setLanguageDirection:function(n){"ltr"===n?this.$menu.css({left:"0",right:"auto"}):this.$menu.css({left:"auto",right:" 0"})},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getSuggestionUnderCursor:function(){var n=this._getSuggestions().filter(".tt-is-under-cursor").first();return n.length>0?r(n):null},getFirstSuggestion:function(){var n=this._getSuggestions().first();return n.length>0?r(n):null},renderSuggestions:function(i,r){var c,l,f,o,s,a="tt-dataset-"+i.name,v='<div class="tt-suggestion">%body<\/div>',h=this.$menu.find("."+a);0===h.length&&(l=n(e.suggestionsList).css(u.suggestionsList),h=n("<div><\/div>").addClass(a).append(i.header).append(l).append(i.footer).appendTo(this.$menu));r.length>0?(this.isEmpty=!1,this.isOpen&&this._show(),f=document.createElement("div"),o=document.createDocumentFragment(),t.each(r,function(t,r){r.dataset=i.name;c=i.template(r.datum);f.innerHTML=v.replace("%body",c);s=n(f.firstChild).css(u.suggestion).data("suggestion",r);s.children().each(function(){n(this).css(u.suggestionChild)});o.appendChild(s[0])}),h.show().find(".tt-suggestions").html(o)):this.clearSuggestions(i.name);this.trigger("suggestionsRendered")},clearSuggestions:function(n){var t=n?this.$menu.find(".tt-dataset-"+n):this.$menu.find('[class^="tt-dataset-"]'),i=t.find(".tt-suggestions");t.hide();i.empty();0===this._getSuggestions().length&&(this.isEmpty=!0,this._hide())}}),f}(),l=function(){function f(n){var i,r,u;t.bindAll(this);this.$node=e(n.input);this.datasets=n.datasets;this.dir=null;this.eventBus=n.eventBus;i=this.$node.find(".tt-dropdown-menu");r=this.$node.find(".tt-query");u=this.$node.find(".tt-hint");this.dropdownView=new c({menu:i}).on("suggestionSelected",this._handleSelection).on("cursorMoved",this._clearHint).on("cursorMoved",this._setInputValueToSuggestionUnderCursor).on("cursorRemoved",this._setInputValueToQuery).on("cursorRemoved",this._updateHint).on("suggestionsRendered",this._updateHint).on("opened",this._updateHint).on("closed",this._clearHint).on("opened closed",this._propagateEvent);this.inputView=new h({input:r,hint:u}).on("focused",this._openDropdown).on("blured",this._closeDropdown).on("blured",this._setInputValueToQuery).on("enterKeyed tabKeyed",this._handleSelection).on("queryChanged",this._clearHint).on("queryChanged",this._clearSuggestions).on("queryChanged",this._getSuggestions).on("whitespaceChanged",this._updateHint).on("queryChanged whitespaceChanged",this._openDropdown).on("queryChanged whitespaceChanged",this._setLanguageDirection).on("escKeyed",this._closeDropdown).on("escKeyed",this._setInputValueToQuery).on("tabKeyed upKeyed downKeyed",this._managePreventDefault).on("upKeyed downKeyed",this._moveDropdownCursor).on("upKeyed downKeyed",this._openDropdown).on("tabKeyed leftKeyed rightKeyed",this._autocomplete)}function e(t){var f=n(u.wrapper),e=n(u.dropdown),i=n(t),o=n(u.hint);f=f.css(r.wrapper);e=e.css(r.dropdown);o.css(r.hint).css({backgroundAttachment:i.css("background-attachment"),backgroundClip:i.css("background-clip"),backgroundColor:i.css("background-color"),backgroundImage:i.css("background-image"),backgroundOrigin:i.css("background-origin"),backgroundPosition:i.css("background-position"),backgroundRepeat:i.css("background-repeat"),backgroundSize:i.css("background-size")});i.data("ttAttrs",{dir:i.attr("dir"),autocomplete:i.attr("autocomplete"),spellcheck:i.attr("spellcheck"),style:i.attr("style")});i.addClass("tt-query").attr({autocomplete:"off",spellcheck:!1}).css(r.query);try{i.attr("dir")||i.attr("dir","auto")}catch(s){}return i.wrap(f).parent().prepend(o).append(e)}function o(n){var i=n.find(".tt-query");t.each(i.data("ttAttrs"),function(n,r){t.isUndefined(r)?i.removeAttr(n):i.attr(n,r)});i.detach().removeData("ttAttrs").removeClass("tt-query").insertAfter(n);n.remove()}var u={wrapper:'<span class="twitter-typeahead"><\/span>',hint:'<input class="tt-hint" type="text" autocomplete="off" spellcheck="off" disabled>',dropdown:'<span class="tt-dropdown-menu"><\/span>'},r={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none"},query:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"}};return t.isMsie()&&t.mixin(r.query,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t.isMsie()&&t.isMsie()<=7&&(t.mixin(r.wrapper,{display:"inline",zoom:"1"}),t.mixin(r.query,{marginTop:"-1px"})),t.mixin(f.prototype,i,{_managePreventDefault:function(n){var i,u,t=n.data,r=!1;switch(n.type){case"tabKeyed":i=this.inputView.getHintValue();u=this.inputView.getInputValue();r=i&&i!==u;break;case"upKeyed":case"downKeyed":r=!t.shiftKey&&!t.ctrlKey&&!t.metaKey}r&&t.preventDefault()},_setLanguageDirection:function(){var n=this.inputView.getLanguageDirection();n!==this.dir&&(this.dir=n,this.$node.css("direction",n),this.dropdownView.setLanguageDirection(n))},_updateHint:function(){var n,r,u,f,i,e=this.dropdownView.getFirstSuggestion(),o=e?e.value:null,s=this.dropdownView.isVisible(),h=this.inputView.isOverflow();o&&s&&!h&&(n=this.inputView.getInputValue(),r=n.replace(/\s{2,}/g," ").replace(/^\s+/g,""),u=t.escapeRegExChars(r),f=new RegExp("^(?:"+u+")(.*$)","i"),i=f.exec(o),this.inputView.setHintValue(n+(i?i[1]:"")))},_clearHint:function(){this.inputView.setHintValue("")},_clearSuggestions:function(){this.dropdownView.clearSuggestions()},_setInputValueToQuery:function(){this.inputView.setInputValue(this.inputView.getQuery())},_setInputValueToSuggestionUnderCursor:function(n){var t=n.data;this.inputView.setInputValue(t.value,!0)},_openDropdown:function(){this.dropdownView.open()},_closeDropdown:function(n){this.dropdownView["blured"===n.type?"closeUnlessMouseIsOverDropdown":"close"]()},_moveDropdownCursor:function(n){var t=n.data;t.shiftKey||t.ctrlKey||t.metaKey||this.dropdownView["upKeyed"===n.type?"moveCursorUp":"moveCursorDown"]()},_handleSelection:function(n){var r="suggestionSelected"===n.type,i=r?n.data:this.dropdownView.getSuggestionUnderCursor();i&&(this.inputView.setInputValue(i.value),r?this.inputView.focus():n.data.preventDefault(),r&&t.isMsie()?t.defer(this.dropdownView.close):this.dropdownView.close(),this.eventBus.trigger("selected",i.datum,i.dataset))},_getSuggestions:function(){var i=this,n=this.inputView.getQuery();t.isBlankString(n)||t.each(this.datasets,function(t,r){r.getSuggestions(n,function(t){n===i.inputView.getQuery()&&i.dropdownView.renderSuggestions(r,t)})})},_autocomplete:function(n){var r,u,f,i,t;("rightKeyed"!==n.type&&"leftKeyed"!==n.type||(r=this.inputView.isCursorAtEnd(),u="ltr"===this.inputView.getLanguageDirection()?"leftKeyed"===n.type:"rightKeyed"===n.type,r&&!u))&&(f=this.inputView.getQuery(),i=this.inputView.getHintValue(),""!==i&&f!==i&&(t=this.dropdownView.getFirstSuggestion(),this.inputView.setInputValue(t.value),this.eventBus.trigger("autocompleted",t.datum,t.dataset)))},_propagateEvent:function(n){this.eventBus.trigger(n.type)},destroy:function(){this.inputView.destroy();this.dropdownView.destroy();o(this.$node);this.$node=null},setQuery:function(n){this.inputView.setQuery(n);this.inputView.setInputValue(n);this._clearHint();this._clearSuggestions();this._getSuggestions()}}),f}();!function(){var i,f={},u="ttView";i={initialize:function(i){function o(){var f,i=n(this),o=new r({el:i});f=t.map(e,function(n){return n.initialize()});i.data(u,new l({input:i,eventBus:o=new r({el:i}),datasets:e}));n.when.apply(n,f).always(function(){t.defer(function(){o.trigger("initialized")})})}var e;return i=t.isArray(i)?i:[i],0===i.length&&n.error("no datasets provided"),e=t.map(i,function(n){var t=f[n.name]?f[n.name]:new s(n);return n.name&&(f[n.name]=t),t}),this.each(o)},destroy:function(){function t(){var t=n(this),i=t.data(u);i&&(i.destroy(),t.removeData(u))}return this.each(t)},setQuery:function(t){function i(){var i=n(this).data(u);i&&i.setQuery(t)}return this.each(i)}};jQuery.fn.typeahead=function(n){return i[n]?i[n].apply(this,[].slice.call(arguments,1)):i.initialize.apply(this,arguments)}}()}(window.jQuery);$(function(){$("[data-typeahead]").each(function(){var $this=$(this),data={local:null,prefetch:null,remote:null,selected:null,template:null},options;for(i in data)data[i]=$this.data(i);if(options={name:$this.data("typeahead"),local:data.local,remote:data.remote},data.prefetch&&(options.prefetch={url:data.prefetch,ttl:1}),data.template&&(options.template=eval(data.template)),$this.typeahead(options),data.selected)$this.on("typeahead:selected",eval(data.selected))})}),function(n,t,i){var r=function(n){var t=i.body.getAttribute("data-base-url")||"/";return n.indexOf("/")===0&&(n=n.slice(1)),t+n};t.urlHelper={resolveUrl:r}}(jQuery,window,document);typeof String.prototype.startsWith!="function"&&(String.prototype.startsWith=function(n){return this.slice(0,n.length)==n});typeof String.prototype.endsWith!="function"&&(String.prototype.endsWith=function(n){return this.slice(-n.length)==n});typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});Modernizr.load({test:Modernizr.mq(),nope:urlHelper.resolveUrl("/scripts/lib/respond/respond.min.js")}),function(n,t){var o=function(){for(var n=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],t=n.length,r=function(){},i={};t--;)i[n[t]]=r;return i}(),i=localStorage,r="logging-enabled",s=function(){return!!i.getItem(r)},u=function(n){n=!!n;i.setItem(r,n)},h=t,f=function(){n.logger=h;n.logger.disable=function(){u(!1);e()}},e=function(){n.logger=o;n.logger.enable=function(){u(!0);f()}};s()?f():e()}(window,window.console);window.Storage&&(Storage.prototype.setObject=function(n,t){this.setItem(n,JSON.stringify(t))},Storage.prototype.getObject=function(n){var t=this.getItem(n);return t?JSON.parse(t):null},window.SupportsStorageEvent=!!window.StorageEvent||document.createEvent&&document.createEvent("StorageEvent")),function(n,t,i){function r(){this.register={};this.subUid=-1;this.queue=[];this.isQueuing=!1}if(!i)throw"PubSub requires underscore";r.prototype.getEventNames=function(){return i.keys(this.register)};r.prototype.startQueuing=function(){this.isQueuing=!0};r.prototype.stopQueuing=function(n){var r,t,i;if(this.isQueuing=!1,n)for(r=this.queue.length,t=0;t<r;++t)i=this.queue[t],this.publish(i.name,i.args);this.queue=[]};r.prototype.publish=function(n,t){function u(){var u=this.register[n],f=u?u.length:0,r,e,o;if(f)for(r=[],i.isArray(t)?r=t:r.push(t);f--;)e=u[f],o=e.context||this,e.func.apply(o,r)}if(this.isQueuing)return this.queue.push({name:n,args:t}),!0;var r=this.register[n],f=r?r.length:0;return this.register[n]?(setTimeout(i.bind(u,this),0),!0):!1};r.prototype.subscribe=function(n,t,i){this.register[n]||(this.register[n]=[]);var r=(++this.subUid).toString();return this.register[n].push({token:r,func:t,context:i}),r};r.prototype.unsubscribe=function(n){var r,t,u,i;for(r in this.register)if(t=this.register[r],t)for(u=t.length,i=0;i<u;i++)if(t[i].token===n)return t.splice(i,1),n;return!1};n.PubSub=r}(window,document,window._),function(n,t,i){var e,r;if(n.SupportsStorageEvent){e={};e.guid=function(){var n=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return function(){return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}}();var o=e.guid(),h="message:",c=h+o,s=!1,u=[],f=new i;function l(n){return n.indexOf(h)===0}function a(n){return n.indexOf(c)===0}function p(n){if(l(n.key)&&!a(n.key)&&n.newValue){var t=JSON.parse(n.newValue);f.publish(t.type,t.data)}}function v(){var n,i,t,r,u;for(n in localStorage)localStorage.hasOwnProperty(n)&&l(n)&&(i=a(n),t=i,i||(r=n.split(":"),r.length===3?(u=parseInt(r[2],10),t=u+45e3<Date.now()):t=!0),t&&localStorage.removeItem(n))}function y(n,t,i){if(s){u.push({name:n,data:t,includeSelf:i});return}var r=Date.now(),e=c+":"+r;localStorage.setObject(e,{sender:o,type:n,data:t});i&&f.publish(n,t);setTimeout(v,1e3)}function w(n,t,i){return f.subscribe(n,t,i)}function b(n){f.unsubscribe(n)}function k(n){var r,t,i;if(s=!1,n)for(r=u.length,t=0;t<r;++t)i=u[t],y(i.name,i.data,i.includeSelf);u=[]}n.addEventListener("storage",p,!1);n.addEventListener("unload",v,!1);n.BroadcastChannel={startQueuing:function(){s=!0},stopQueuing:k,publish:y,subscribe:w,unsubscribe:b,getId:function(){return o}}}else r=function(){},n.BroadcastChannel={startQueuing:r,stopQueuing:r,publish:r,subscribe:r,unsubscribe:r,getId:r}}(window,document,window.PubSub),function(n,t,i,r){var f;if(n.SupportsStorageEvent){var c=function(){var n=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}(),l=null,u=!1,o=!1,s="ping",e=new t,a=function(n){o=!0;!u&&n?(e.publish("become-master"),r.debug("I became the master")):u&&!n&&(e.publish("lost-master"),r.debug("I lost master control"));u=n},k=function(){var n=null;try{n=localStorage.getItem(s)}catch(t){}return v(n)},v=function(n){if(!n)return{timeout:0};try{n=JSON.parse(n)}catch(t){n={timeout:parseInt(n,10)||0}}return n},y=function(n){try{localStorage.setObject(s,{sender:c,timeout:n})}catch(t){}},h=function(n){clearTimeout(l);l=setTimeout(p,n)},d=function(){u&&y(0)},p=function(){y(Date.now());var n=2e4+~~(Math.random()*1e4);h(n);a(!0)},w=function(){var n=35e3+~~(Math.random()*2e4);h(n);a(!1)},g=function(n,t,i){e.subscribe(n,t,i)},nt=function(n){var t;if(n.key===s&&(t=v(n.newValue),t.sender!==c))if(t.timeout)w();else{o=!1;e.publish("missing-master");var i=25,u=Math.ceil((~~(Math.random()*500)+100)/i)*i;r.info("Master has disappeared checking in "+u+" ms");h(u)}},b=function(){var n=Date.now(),t=k();n-t.timeout>45e3?p():w()},tt=function(){b();n.addEventListener("storage",nt,!1);n.addEventListener("unload",d,!1)};tt();n.TabElection={isMaster:function(){return u},masterExists:function(){return o},on:g,startUpCheck:b}}else f=function(){},n.TabElection={isMaster:f,masterExists:f,on:f,startUpCheck:f}}(window,window.PubSub,window.BroadcastChannel,window.logger),function(n,t,i,r){var o=null,e=t.Deferred(),f=null,u=null,s={},h=function(){o||(r.info("initializing signalR"),o=t.getJSON(i.resolveUrl("/realtime/hubs")).done(function(n){var f,c,o,h,l;for(r.info("creating signalR connection"),f=i.resolveUrl("/"),u=f&&f!=="/"?t.hubConnection(f):t.hubConnection(),r.info("creating signalR hubs"),c=n.length,o=0;o<c;++o)h=n[o],l=h.toLowerCase(),s[l]=u.createHubProxy(h);e.resolve(u)}).fail(function(){r.error("failed to get hub names, cannot setup signalR");e.reject()}))},c=function(){return e.state()==="pending"&&(document.body?h():t(h)),e.promise()},a=function(n){var t=n.toLowerCase();return s[t]},v=function(){return u?u.id:(r.warn("connection not setup"),null)},b=function(){return u?u.state===t.signalR.connectionState.disconnected:!0},l=function(){return f||(f=t.Deferred(),e.done(function(n){r.info("starting signalr connection");n.start().done(function(){var t=n.transport.name;r.info("signalR connected using "+t);f.resolve()}).fail(function(n){r.error("could not connect to signalR: "+n.message);f.reject()})})),f.promise()},y=function(){return l()},p=function(){return c()},w=function(){u&&(u.stop(),r.info("stopping signalr connection"),f=null)};n.ConnectionManager={id:v,getConnection:c,ensureConnected:p,getHub:a,start:l,ensureStarted:y,stop:w}}(window,jQuery,window.urlHelper,window.logger),function(n,t,i,r){function u(n){this.name=n;this.registry=[];this._pubsub=new i;var t=u.getEventName(this.name);r.subscribe(t,function(n){this._pubsub.publish(n.key,n.args)},this)}u.prototype.register=function(n){return t.contains(this.registry,n)?!1:(this.registry.push(n),!0)};u.prototype.on=function(n,t,i){this.register(n);this._pubsub.subscribe(n,t,i);r.publish("wanthub",[this.name,n],!0)};u.prototype.invoke=function(){r.publish("invoke",[this.name,t.toArray(arguments)],!0)};u.getEventName=function(n){return"hub:"+n.toLowerCase()};n.Hub=u}(window,window._,window.PubSub,window.BroadcastChannel),function(n,t,i,r,u,f){function h(){f.info("creating data controller")}var s={},l={},o=null;if(h.prototype.getHub=function(){},h.prototype.getConnectionId=function(){return o},t&&i&&r&&u){var e=function(n,t){c(n);l[n]=i.subscribe(n,t)},c=function(n){var t=l[n];t&&i.unsubscribe(t)},a=function(){r.isMaster()&&(g(),u.start().done(function(){i.stopQueuing(!0);r.isMaster()?(f.info("server started"),o=u.id(),i.publish("started",[o],!0)):(f.warn("lost control while connecting"),u.stop())}))},v=function(){e("wanthub",d);e("invoke",nt);e("joined",it);f.info("initialising server");i.publish("starting");u.getConnection().done(a)},b=_.debounce(function(){f.info("restarting server");u.getConnection().done(function(){u.stop()}).done(a)},500),k=function(){f.info("tear down server");o=null;i.publish("stopping",!0);u.stop();c("wanthub");c("invoke");c("joined")},y=function(n){var r=n.toLowerCase(),i=s[r];return i||(f.info(n+" does not exist in the registry"),i=s[r]=new t(n)),i},d=function(n,t){var i=y(n),u=[],f;_.isString(t)?u=[t]:_.isArray(t)&&(u=t);f=i.registry.length;_.each(u,function(n){i.register(n)});r.isMaster()&&i.registry.length>f&&b()},g=function(){_.forOwn(s,function(n,r){_.each(n.registry,function(n){f.debug("DataController - Registering: "+r+"."+n);var e=u.getHub(r);if(e)e.on(n,function(){f.debug("DataController - Publishing: "+n);var u=Array.prototype.slice.call(arguments),e=t.getEventName(r);i.publish(e,{key:n,args:u},!0)});else f.error(r+" does not exist on the server")})})},nt=function(n,t){r.isMaster()&&u.ensureStarted().done(function(){var i=u.getHub(n);i.invoke.apply(i,t)})},tt=function(){_.forOwn(s,function(n,t){i.publish("wanthub",[t,n.registry],!0)})},p=function(n){o=n;i.stopQueuing(!0)},w=function(){o=null;i.startQueuing()},it=function(){u.ensureStarted().done(function(){i.publish("welcome",u.id())})},rt=function(){r.on("become-master",v);r.on("lost-master",k);r.on("missing-master",w);r.masterExists()||i.startQueuing();e("started",p);e("welcome",p);e("starting",tt);e("stopping",w);r.isMaster()?v():i.publish("joined")};rt();h.prototype.getHub=y}n.DataController=h}(window,window.Hub,window.BroadcastChannel,window.TabElection,window.ConnectionManager,window.logger);angular.module("ch.services",["ch.services.baseUrl","ch.services.urlHelper","ch.services.strings","ch.services.components","ch.services.version","ch.services.resolveUrlInterceptor"]).value("_",window._);angular.module("ch.services.baseUrl",[]).factory("baseUrl",["$document",function(n){return angular.element(n[0].body).data("baseUrl")}]);angular.module("ch.services.urlHelper",["ch.services.baseUrl"]).service("urlHelper",["baseUrl",function(n){function i(){for(var t,r=angular.isArray(arguments[0])?arguments[0]:arguments,n="",i=0;i<r.length;i++)t=r[i],i>0&&(n[n.length-1]!="/"&&(n+="/"),t[0]=="/"&&(t=t.substring(1))),n+=t;return n}function r(r,u){if(!r)return null;if(!t.test(r))throw"relativeUrl must start with ~/ or /";return i(u||n,r.replace(t,""))}var t=/^(~\/)|^(\/)/;this.join=i;this.resolve=r}]),function(n,t){n.module("ch.services.components",["ch.services.urlHelper"]).service("chComponents",["$http","urlHelper","$q",function(n,i){function f(i){return r===null&&(r=n.get(u).then(function(n){return n.data.components})),r.then(function(n){return t.some(n,function(n){return n===i})})}var u=i.resolve("~/api/meta"),r=null;this.isEnabled=f}])}(angular,_);angular.module("ch.services.resolveUrlInterceptor",["ch.services.version","ch.services.urlHelper",]).provider("chResolveUrlInterceptor",[function(){var n={"":"~/"};this.registerBasePath=function(t,i){n[t]=i};this.$get=["urlHelper","$injector","chVersion","$templateCache",function(t,i,r,u){var f={};return angular.forEach(n,function(n,r){var u;u=angular.isString(n)?/^~/.test(n)?n:i.get(n):i.invoke(n);f[r]=t.join(t.resolve(u),"/")}),{request:function(n){if(angular.forEach(f,function(t,i){var r=new RegExp("^~"+i+"/");n.url=n.url.replace(r,function(){return t})}),!u.get(n.url)){var t=".html";n.url.lastIndexOf(t)==n.url.length-t.length&&(n.url+="?v="+r)}return n}}}]}]),function(n,t){n.module("ch.services.strings",["ch.services.urlHelper"]).service("chStrings",["$http","urlHelper","$q",function(n,i,r){function e(n,t){var r=n.toLowerCase(),i;return t&&(r+=".plural"),i=u[r],i||(i=s(r)),i.promise}function s(n){var i=r.defer();return u[n]=i,f[n]=!0,t.debounce(h,200)(),i}function h(){var i=t.keys(f);(f={},i.length)&&n.get(o,{params:{keys:i}}).then(function(n){var i=n.data.strings;t.each(i,function(n,t){u[t].resolve(n)})})}var o=i.resolve("~/api/strings/bulk"),u={},f={};this.get=e;this.plural=function(n){return e(n,!0)}}])}(angular,_);angular.module("ch.services.version",[]).factory("chVersion",["$document",function(n){return angular.element(n[0].body).data("version")}]);angular.module("ch.filters",["ch.filters.urlHelper","ch.filters.strings","ch.filters.titlecase","ch.filters.sentencecase","ch.filters.values","ch.filters.pluralise","ch.filters.ternary","ch.filters.friendlyEmail"]);angular.module("ch.filters.urlHelper",["ch.services.urlHelper"]).filter("resolveUrl",["urlHelper",function(n){return function(t){return t?n.resolve(t):null}}]);angular.module("ch.filters.strings",["ch.services.strings"]).filter("strings",["chStrings",function(n){var t={},i=function(i,r){var f,u;if(i)return(i=i.toLowerCase(),f=i,r===!0||r==="plural"||typeof r=="number"&&r!==1?(r=!0,f+=".plural"):r=!1,u=t[f],u)?u:(u=i+(r?"s":""),t[f]=u,n.get(i,r).then(function(n){n&&(t[f]=n)}),u)};return i.$stateful=!0,i}]);angular.module("ch.filters.titlecase",[]).filter("titlecase",[function(){return function(n){return n=n===undefined||n===null?"":n,n.toString().replace(/\b([a-z])/g,function(n){return n.toUpperCase()})}}]);angular.module("ch.filters.sentencecase",[]).filter("sentencecase",[function(){return function(n){return n=n===undefined||n===null?"":n,n.toString().replace(/([A-Z])/g,function(n){return n.toLowerCase()}).replace(/\b([a-z])/,function(n){return n.toUpperCase()})}}]),function(n,t){n.module("ch.filters.values",[]).filter("values",function(){return t.values})}(angular,_);angular.module("ch.filters.pluralise",[]).filter("pluralise",function(){return function(n,t){var i;return angular.isArray(n)&&(i=n[1],n=n[0]),t!=1?i||n+"s":n}});angular.module("ch.filters.ternary",[]).filter("ternary",function(){return function(n,t){if(t===!0){if(n.length>0)return n[0]}else if(n.length==2)return n[1]}});angular.module("ch.filters.friendlyEmail",[]).filter("friendlyEmail",function(){return function(n,t,i){if(!n)return null;if(angular.isString(n))return n;t||(t="name",n[t]||(t="displayName"));i||(i="email");n[i]||(i="emailAddress");var r="";return n[t]?r+=n[t]:n.firstName&&(r+=n.firstName,n.lastName&&(r+=" "+n.lastName)),n[i]&&(r+=r?" <"+n[i]+">":n[i]),r}});angular.module("ch.filters.friendlyTimeSpan",[]).filter("friendlyTimeSpan",function(){return function(n){try{return new TimeSpan(n).toFriendly()}catch(t){return n}}});angular.module("ch.directives",["ch.directives.charCount","ch.directives.checkboxModal","ch.directives.clickOption","ch.directives.datePicker","ch.directives.dateTime","ch.directives.emptyBackspace","ch.directives.enter","ch.directives.entity","ch.directives.expanding","ch.directives.fileUpload","ch.directives.focus","ch.directives.focusIcon","ch.directives.href","ch.directives.lazyOptions","ch.directives.noScopeInclude","ch.directives.otherOption","ch.directives.timeSuggest","ch.directives.timeSpan","ch.directives.typeahead","ch.directives.tokenfield","ch.directives.tokenModal","ch.directives.validationAlert","ch.directives.convertToNumber"]);angular.module("ch.directives.charCount",[]).directive("chCharCount",["$compile","$parse",function(){return{restrict:"A",scope:{val:"@chCharCount",limit:"@chCharCountLimit",hide:"@chCharCountHide"},link:function(n,t){n.$watch("val",function(i){var r=n.limit-i.length,f=r<=Math.min(50,n.limit/3),u=r<0,e=n.hide=="true";t.toggleClass("text-warning",f&&!u);t.toggleClass("hide",e&&!f);t.toggleClass("text-danger",u);t.toggleClass("text-danger",u);t.text(e?i.length+" / "+n.limit:r)})}}}]);angular.module("ch.directives.checkboxModal",[]).directive("chCheckboxModal",function(){return{scope:{type:"@chCheckboxModal",onChange:"&chCheckboxModalChange",values:"=chCheckboxModalValues"},link:function(n,t){function i(){t.chCheckboxModal(n.type,n.values);t.on("checkboxModal:change",function(t,i){n.$apply(function(){n.onChange(angular.extend({$event:t},i))})})}n.$watch("type",function(){t.chCheckboxModal("destroy");i()});n.$watch("values",function(n){t.chCheckboxModal("vals",n?n:[])});n.$on("$destroy",function(){t.chCheckboxModal("destroy")});i()}}});angular.module("ch.directives.clickOption",[]).directive("chClickOption",["$parse","$timeout",function(n,t){return{restrict:"A",require:["select"],link:function(i,r,u,f){var o=u.chClickOptionText,e,s;o||(o="other...");e=$("<option>").text(o).css({color:"#0088cc","font-weight":"bold"});u.lazyOptions||t(function(){r.append(e);var n=f[0],i=n.addOption;n.addOption=function(){i.apply(this,arguments);t(function(){e.remove();r.append(e)})}});s=n(u.chClickOption);r.on("change",function(){r.val()=="?"&&s(i)});i.$on("$destroy",function(){e.remove()})}}}]);angular.module("ch.directives.convertToNumber",[]).directive("chConvertToNumber",[function(){return{require:"ngModel",link:function(n,t,i,r){r.$parsers.push(function(n){return parseInt(n,10)});r.$formatters.push(function(n){return""+n})}}}]);angular.module("ch.directives.datePicker",[]).directive("chDatePicker",["$timeout",function(){return{scope:{ngModel:"=",options:"=chDatePicker"},link:function(n,t){function r(){var r={changeMonth:!0,changeYear:!0,yearRange:"-5:+5",dateFormat:"d-M-yy",showOn:"focus"};n.options&&angular.extend(r,n.options);onSelect=r.onSelect?r.onSelect:function(){};r.onSelect=function(t){i=!0;n.ngModel=t;onSelect();n.$apply()};t.datefield(r);t.attr("autocomplete","off")}var i=!1;n.$watch("options",function(){t[0].id||(t[0].id=n.$id);r()});n.$watch("ngModel",function(n){i?i=!1:t.val(n)});t.on("keyup change",function(){i=!0;n.ngModel=$(this).val();n.$apply()});t.val(n.ngModel);n.$on("$destroy",function(){t.data("datepicker")&&t.datepicker("destroy");t.removeAttr("autocomplete")})}}}]);angular.module("ch.directives.dateTime",[]).directive("chDateTime",[function(){return{scope:{date:"=chDateTime",timeZoneName:"@?",showDate:"@?",showTime:"@?",showDayOfWeek:"@?",showDayOfMonth:"@?",showMonth:"@?",showYear:"@?",showTimeZoneInfo:"@?",itemType:"@?",placement:"@?"},template:'<span ng-show="date"><span ng-show="!showTimeZone()">{{getDateTime()}}<\/span><a ng-show="showTimeZone()" href="javascript:;" tabindex="0" role="button" uib-popover="{{getPopover()}}" popover-title="{{getPopoverTitle()}}" popover-placement="{{getPopoverPlacement()}}">{{getDateTime()}}<span class="dateTime-timeZone">({{getTimeZoneName()}}) <i class="fa fa-question-circle" aria-hidden="true"><\/i><\/span><\/a><\/span>',link:function(n){function t(n){return moment.isMoment(n)?n:/[+-]\d\d:\d\d$/.test(n)?moment.parseZone(n):moment(n)}function i(i){var f,e;return i?(i=t(i),f=[],n.showDate!=="false"&&(n.showDayOfWeek!=="false"&&f.push("ddd"),n.showDayOfMonth!=="false"&&f.push("D"),n.showMonth!=="false"&&f.push("MMM"),n.showYear!=="false"&&f.push("YYYY")),n.showTime!=="true"&&(n.showTime==="false"||r(i)||u(i))||(f.length>0&&(f[f.length-1]+=","),f.push("h:mm A")),e=f.join(" "),i.format(e)):""}function r(n){return n.hour()===0&&n.minute()===0&&n.second()===0&&n.millisecond()===0}function u(n){return n.hour()===23&&n.minute()===59&&n.second()===59&&n.millisecond()===0}function f(n){var t=n.zone(),i=Math.abs(t%60),r=Math.abs(Math.floor(t/60)),u=t<=0?"+":"";return i===0?u+r:u+r+":"+i}n.showTimeZone=function(){return n.showTimeZoneInfo==="false"?!1:n.date?(date=t(n.date),date.zone()===NaN)?!1:date.zone()===moment().zone()?!1:!0:!1};n.getDateTime=function(){return i(n.date)};n.getTimeZoneName=function(){return!n.timeZoneName?t(n.date).format("Z"):n.timeZoneName+" "+f(t(n.date))};n.getPopoverPlacement=function(){return n.placement||"bottom"};n.getPopoverTitle=function(){return"This "+(n.itemType||"item")+" is not in your time zone!"};n.getPopover=function(){return"In your time zone ("+moment().format("Z")+"): "+i(t(n.date).clone().local())}}}}]);angular.module("ch.directives.emptyBackspace",[]).directive("chEmptyBackspace",["$parse","$timeout",function(n,t){return{restrict:"A",link:function(i,r,u){var f=n(u.chEmptyBackspace);r.bind("keydown",function(n){n.which==8&&$(n.currentTarget).val().length==0&&(n.preventDefault(),t(function(){f(i,{$event:n})}))})}}}]);angular.module("ch.directives.enter",[]).directive("chEnter",["$parse","$timeout",function(n,t){return{restrict:"A",link:function(i,r,u){var f=n(u.chEnter);r.bind("keydown",function(n){n.which==13&&(n.preventDefault(),t(function(){f(i,{$event:n})}))})}}}]);angular.module("ch.directives.entity",["ch.services"]).directive("chEntity",["baseUrl",function(n){return{restrict:"A",scope:{id:"=chEntityId",text:"=?chEntityText",type:"@chEntity",service:"@chEntityService",select:"&chEntitySelect",deselect:"&chEntityDeselect",options:"=chEntityOptions"},link:function(t,i){var r=!0,u=!1;t.$watch("type",function(u,f){var e,o,s,h;if(u){if(f!=u&&i.val(""),Modernizr.input.placeholder){e=u;switch(u){case"JobSeeker":e="Student";break;case"OrganisationContact":e="Organisation Contact"}o="Search for a";/^[aeiouAEIOU]/.test(e)&&(o+="n");o+=" "+e.toLowerCase();i.attr("placeholder",o)}s={itemSelected:function(n){t.$apply(function(){t.id=n});setTimeout(function(){t.$apply(t.select)})},itemDeselected:function(){t.$apply(function(){r=!0;t.id=null});setTimeout(function(){t.$apply(t.deselect)})}};h=t.service?t.service:n+"Admin/Suggest";i.entitysuggest(h,u,angular.extend(s,t.options))}});i.on("keyup change",function(){t.$apply(function(){u=!0;t.text=i.val()})});t.$watch("text",function(n){u?u=!1:i.val(n)});t.$watch("id",function(n,t){r?r=!1:n||n==t||setTimeout(function(){i.val("").change()})})}}}]);angular.module("ch.directives.expanding",[]).directive("chExpanding",[function(){return{restrict:"A",scope:{ngModel:"="},link:function(n,t){if(!t.is("textarea"))throw"ch-expanding only supports textareas";t.expandingTextarea();n.$watch("ngModel",function(){t.expandingTextarea("resize")})}}}]);angular.module("ch.directives.fileUpload",["ch.services"]).directive("chFileUpload",["$http","urlHelper",function(n,t){function i(n){return n.originalEvent.preventDefault(),n.originalEvent.dataTransfer.dropEffect="copy",!1}function r(t,i,r){var u,f,e;if(!t||!t.length){console.log("No Files!");return}return u=new FormData,$.each(t,function(n,t){u.append(i.fileKey,t)}),f=Math.random().toString(36).substring(2,10),e=i.service+"?key="+encodeURIComponent(f),n.post(e,u,{transformRequest:angular.identity,headers:{"Content-Type":undefined}}).then(function(n){r.val("");var t=n.data;(i.errors=t.errors,t.files)&&(i.allowMultiple?(i.file=null,angular.isArray(i.files)||(i.files=[]),i.files=i.files.concat(t.files)):t.files.length&&t.files.length>1?(i.file=null,i.files=null):(i.files=null,i.file=t.files[0]))},function(){})}return{scope:{service:"@",fileKey:"@",inputName:"@",allowMultiple:"@",file:"=",files:"=",showPreview:"=?",hideFileInfo:"=?",alwaysShowUpload:"=?",uploadDisplayType:"@"},templateUrl:t.resolve("~/scripts/ch.libs/angular/directives/chFileUpload.html"),link:function(n,t){var o=function(){var n=document.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n},e,f,u;n.dropUpload=o;n.showPreview||n.showPreview===!1||(n.showPreview=!0);n.uploadDisplayType||(n.uploadDisplayType="file");e=t.find(".upload-btn");f=t.find('input[type="file"]');f.on("change",function(){r(f[0].files,n,f)});e.on("click",function(n){return n.preventDefault(),f.click(),!1});if(n.dropUpload){u=t.find(".droparea");u.on("drop",function(t){return t.originalEvent.preventDefault(),u.removeClass("draghover"),r(t.originalEvent.dataTransfer.files,n,f),!1});u.on("dragover",function(n){return n.originalEvent.preventDefault(),u.addClass("draghover"),i(n)});u.on("dragenter",function(n){return n.originalEvent.preventDefault(),u.addClass("draghover"),i(n)});u.on("dragleave",function(n){return n.originalEvent.preventDefault(),u.removeClass("draghover"),!1})}n.removeFile=function(t){if(n.files){var i=n.files.indexOf(t);n.files.splice(i,1)}};n.removeSingleFile=function(){n.file=null}}}}]);angular.module("ch.directives.focus",[]).directive("chFocus",["$timeout","$parse",function(n,t){return{link:function(i,r,u){var f=r.attr("tabindex"),e;f&&f!=="-1"||r.attr("tabindex",0);r.css("outline","none");e=t(u.chFocus);i.$on("ch.directives.focus",function(t,u){u===e(i)&&n(function(){r.focus()})})}}}]).factory("chFocus",["$rootScope",function(n){return function(t,i){i||(i=n);i.$broadcast("ch.directives.focus",t)}}]);angular.module("ch.directives.focusIcon",[]).directive("chFocusIcon",function(){return{restrict:"A",link:function(n,t,i){t.wrap('<div class="input-group" />');var r=angular.element('<button type="button" class="btn btn-primary" />'),u=angular.element('<div class="input-group-append"/>');r.append('<i class="'+i.chFocusIcon+'"><\/i>');r.on("click",function(){t.focus()});u.append(r);t.after(u);n.$on("$destroy",function(){r.remove();t.unwrap()})}}});angular.module("ch.directives.href",["ch.services"]).directive("chHref",["baseUrl",function(n){return{restrict:"A",transclude:!0,scope:{url:"@chHref"},template:"<span ng-transclude><\/span>",link:function(t,i){t.$watch("url",function(t){i.attr("href",t.replace("~/",n))})}}}]);angular.module("ch.directives.lazyOptions",[]).directive("chLazyOptions",["$compile","$parse","$timeout",function(n,t,i){return{restrict:"A",require:["select","?ngModel"],scope:!0,link:function(r,u,f,e){function a(){if(f.hasOwnProperty("chLazyLoadOnFocus")){if(!f.ngOptions){c([]);return}u.on("focus",h)}else i(l)}function h(){u.off("focus",h);l()}function c(i){var e=f.chLazyValues,s,h,c;e||(e="options_"+r.$id);f.hasOwnProperty("chLazyLoadOnFocus")&&(s=f.ngModel&&t(f.ngModel)(r)||null,s&&_.findIndex(i,function(n){return _.isEqual(n,s)})===-1&&i.push(s));h=r.$parent;t(e).assign(h,i);c=f.chLazyOptions.replace(o," in "+e);u.empty().attr("ng-options",c);n(u)(h);r.$destroy()}function l(){var n,i;for(e[1]&&(e[1].$render=function(){}),u.removeAttr("ng-options").html("<option selected disabled>loading...<\/option>"),n=0;n<19;n++)u.append("<option disabled><\/option>");if(i=t(s[1])(r),i.then)i.then(v,y);else throw"lazyOptions expr value is not a promise";}function v(n){var t=n.data;u.removeAttr("ch-lazy-options").removeAttr("ch-lazy-load-on-focus");c(t)}function y(){u.html("<option selected>error<\/option>").css({color:"#F00"})}var o=/\s+in\s+([a-zA-Z0-9_.]+\(.*?\))/,s=f.chLazyOptions.match(o);if(!s)throw"lazyOptions expr is invalid";a()}}}]);angular.module("ch.directives.noScopeInclude",[]).directive("chNoScopeInclude",["$http","$templateCache","$compile",function(n,t,i){return{link:function(r,u,f){r.$watch(f.chNoScopeInclude,function(f){f?n.get(f,{cache:t}).then(function(n){var t=u.html(n.data).contents();i(t)(r)}):u.empty()})}}}]);angular.module("ch.directives.otherOption",[]).directive("chOtherOption",["$compile","$timeout",function(n,t){return{restrict:"A",require:["select"],link:function(r,u,f){function v(){f.inputfieldvalue&&u.find('option[value="'+f.inputfieldvalue+'"]').length>0&&(f.inputfieldvalue="")}function y(){var t,o;if(!e){other=!0;e=$('<input type="text">');t=u.prop("attributes");for(i in t)o=t[i].name,o&&$.inArray(o,["ng-options","ch-other-option"])==-1&&e.attr(o,t[i].value);a()&&(u.attr("disabled","disabled"),u.hide(),e.val(f.inputfieldvalue));e.addClass("text").insertAfter(u).bind("blur",function(){this.value||(f.inputfieldvalue="",l())}).bind("keydown",function(n){n.which!==8||this.value||(n.preventDefault(),f.inputfieldvalue="",l())}).focus();n(e)(r.$parent);u.hide()}}function c(){e&&(e.remove(),e=null,u.removeAttr("disabled"),u.show())}function l(){c();u.find("option").each(function(){if(u.find('option[value="'+this.value+'"]'))return u.val(this.value).change(),!1})}function a(){return angular.version.full==="1.7.9"}var s="other...",h=$("<option>").text(s),e=null,o=function(){var n;a()?(n=s,v()):n="?";u.val()===n||f.inputfieldvalue?y():c()};u.on("change",o);f.lazyOptions||t(function(){u.append(h);o()});f.ngModel&&r.$watch(f.ngModel,function(){o()});r.$on("$destroy",function(){e&&e.remove();h.remove()})}}}]);angular.module("ch.directives.timeSpan",[]).directive("chTimeSpan",function(){return{scope:{ngModel:"=chTimeSpan",dropDirection:"@"},link:function(n,t){var i=!1,r;t.val(n.ngModel);r=t.chTimeSpan({dropDirection:n.dropDirection});n.$watch("ngModel",function(n){i?i=!1:t.chTimeSpan("val",n)});t.on("change",function(){i=!0;n.ngModel=t.val();n.$apply()});n.$on("$destroy",function(){t.chTimeSpan("destroy")})}}});angular.module("ch.directives.timeSuggest",[]).directive("chTimeSuggest",function(){return{scope:{ngModel:"="},link:function(n,t){var i=!1,r=t.timesuggest({});n.$watch("ngModel",function(n){i?i=!1:t.val(n)});t.on("keyup change",function(){i=!0;n.ngModel=$(this).val();n.$apply()});t.val(n.ngModel)}}});angular.module("ch.directives.tokenfield",[]).directive("chTokenfield",["$templateCache","$compile","$timeout",function(n,t,i){return{scope:{type:"@chTokenfield",tokens:"=chTokenfieldTokens",allowNew:"@chTokenfieldAllowNew",tokenTemplateUrl:"@chTokenfieldTokenTemplateUrl"},link:function(r,u){function f(){u.chTokenField(r.type,r.allowNew).on({"tokenfield:createdtoken":function(u){var f;if(r.tokenTemplateUrl){var o=$(u.relatedTarget),s=o.find(".token-label"),h=n.get(r.tokenTemplateUrl),e=angular.element(h);s.html(e);f=r.$parent.$new(!1);f.token=u.attrs;t(e)(f);i()}},"tokenfield:removedtoken":function(n){r.$apply(function(){var t=angular.element(n.relatedTarget).find(".token-label").contents().scope();t&&t.$destroy()})},change:function(){var n=u.tokenfield("getTokens");angular.equals(r.tokens,n)||(r.tokens=n);i()}})}r.$watch("[type, allowNew, tokenTemplateUrl]",function(n,t){angular.equals(n,t)||(u.tokenfield("destroy"),f())});r.$watch("tokens",function(n){var r=u.tokenfield("getTokens"),t;angular.equals(r,n)||(u.tokenfield("setTokens",n),t=u.siblings(".twitter-typeahead"),i(function(){$(".tt-input",t).width("auto").attr("size",u.attr("placeholder").length)}))});r.$on("$destroy",function(){u.tokenfield("destroy")});f()}}}]);angular.module("ch.directives.tokenModal",[]).directive("chTokenModal",["$templateCache","$compile","$timeout",function(){return{scope:{tokenfield:"@chTokenModal"},link:function(n,t){function i(){var i=angular.element(n.tokenfield);t.chTokenModal(n.tokenfield,i.attr("ch-tokenfield"))}n.$on("$destroy",function(){t.chCheckboxModal("destroy")});i()}}}]);angular.module("ch.directives.typeahead",[]).directive("chTypeahead",function(){return{scope:{type:"@chTypeahead",text:"=chTypeaheadText",onSelect:"&chTypeaheadSelect"},link:function(n,t){function i(){t.chTypeahead({type:n.type}).on({"typeahead:select":function(i,r){n.$apply(function(){n.text=t.typeahead("val");n.onSelect({$event:i,datum:r})})},"typeahead:change":function(){n.$apply(function(){n.text=t.typeahead("val")})}})}n.$watch("type",function(){t.typeahead("destroy");i()});n.$watch("text",function(n){t.typeahead("val",n?n:"")});n.$on("$destroy",function(){t.typeahead("destroy")});i()}}});angular.module("ch.directives.validationAlert",[]).directive("chValidationAlert",function(){return{replace:!0,scope:{errors:"=chValidationAlert"},template:'<div ng-show="errors" class="alert alert-danger d-block"><strong>Validation errors<\/strong><ul class="mb-0"><li ng-repeat="error in getErrors()">{{error}}<\/li><\/ul><\/div>',link:function(n){n.getErrors=function(){if(!n.errors)return[];if(angular.isArray(n.errors))return n.errors;if(n.errors.fields){var t=[];return angular.forEach(n.errors.fields,function(n){angular.forEach(n.errors,function(n){t.push(n.errorMessage)})}),t}console.error("unexpected error format",n.errors)}}}}),function(n,t,i){var r=function(t){var r=n(i.body).data("studentSiteUrl")||"/students/";return r.length>0&&r[r.length-1]!="/"&&(r=r+"/"),t.indexOf("/")===0&&(t=t.slice(1)),r+t};t.studentSiteUrlHelper={resolveUrl:r}}(jQuery,window,document),function(n){var r=function(n,t){var i=n.data("toggled");i?(n.find("span").text(t.textOff),n.find("i").attr("class",t.iconOff)):(n.find("span").text(t.textOn),n.find("i").attr("class",t.iconOn))},u=function(t){var i=t.data("target"),r,u;i==null&&(i=t.attr("href"));r=n(i).find("input,select");u=t.data("toggled");r.prop("disabled",!u)},f=function(t,i){if(t.expandCols){var r="toggle-pre-toggled-col-class",u="col-md-12";n(t.expandCols+" div").each(function(){var t=n(this),o=t.attr("class"),f,e;o.indexOf("col-")!==-1&&(i?(f=/col-md-\d+/g.exec(o),f&&(t.data(r,f[0]),t.removeClass(f[0]),t.addClass(u))):(e=t.data(r),e&&(t.removeClass(u),t.addClass(e))))})}},i=function(n,t,i,e){i=(t.store||!1)&&i!==!1;var o=e!=null?e:!n.data("toggled");n.data("toggled",o);r(n,t);f(t,o);t.storageKey&&i&&localStorage.setItem(t.storageKey,new Boolean(o).toString());t.disablesInput&&u(n)},e=function(t){return function(){i(n(this),t)}},t={init:function(t){return this.each(function(){var r=n(this),c={target:r.attr("href"),textOn:r.data("toggleTextOn"),textOff:r.data("toggleTextOff"),iconOn:r.data("toggleIconOn"),iconOff:r.data("toggleIconOff"),iconBefore:r.data("toggleIconBefore"),disablesInput:r.data("toggleDisablesInput"),store:r.data("toggleStore")||!1,storageKey:r.data("toggleStorageKey"),expandCols:r.data("toggleExpandCols")},u=n.extend({},t,c),o;r.on("click",e(u));var l=r.data("toggled"),s=localStorage.getItem(u.storageKey),h=n(u.target),f=l;s&&u.store&&(f=f||s==="true");r.append("<span><\/span>");o="<i><\/i>";u.iconBefore?r.prepend(o):r.append(o);r.data("toggled",f);f?h.collapse("show"):h.collapse("hide");i(r,u,!1,f)})}};n.fn.toggleText=function(i){if(t[i])return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.toggleText");else return t.init.apply(this,arguments)};n("[data-toggle-text]").toggleText({iconBefore:!0})}(jQuery),function(n){var i=function(n,t,i){n.removeAttr("disabled");t?(n.addClass(i.classOff).removeClass(i.classOn),n.find("span").text(i.buttonTextOff),n.find("i").attr("class",i.iconOff)):(n.addClass(i.classOn).removeClass(i.classOff),n.find("span").text(i.buttonTextOn),n.find("i").attr("class",i.iconOn))},r=function(t){return function(){var r=n(this),u=r.parent(),e=u.data("service"),f={},o=u.data("toggled")==!0;f[t.serverKey]=!o;r.prop("disabled","disabled");n.post({url:e,data:f,headers:{__RequestVerificationToken:t.requestVerificationToken}}).done(function(n){u.data("toggled",n);i(r,n,t);r.removeAttr("disabled")})}},t={init:function(t){return this.each(function(){var u=n(this),h={buttonSize:u.data("buttonSize"),buttonTextOn:u.data("buttonTextOn"),buttonTextOff:u.data("buttonTextOff"),icon:u.data("icon"),title:u.data("btn-title"),requestVerificationToken:u.data("requestVerificationToken")},f=n.extend({},t,h),e=n(['<button class="btn btn-default  ',f.buttonSize,'" disabled="disabled" title="',f.title,'"><i class="',f.icon,'"><\/i> <span class="sr-only"><\/span><\/button>'].join("")),o=n.Deferred(),s;u.append(e);u.is("[data-toggled]")?o.resolve(u.data("toggled")==!0):u.is("[data-toggled-service]")&&(s=u.data("toggled-service"),e.find("i").attr("class","glyphicon glyphicon-refresh"),n.ajax({type:"get",url:s}).done(function(n){u.data("toggled",n);o.resolve(n)}).fail(function(){e.find("i").attr("class","glyphicon glyphicon-warning-sign")}));o.done(function(n){i(e,n,f);e.on("click",r(f))})})}},u={iconOn:"fa fa-bookmark",iconOff:"fa fa-bookmark",buttonSize:"btn-sm",buttonTextOn:"",buttonTextOff:"",classOn:"btn-default toggle-bookmark",classOff:"btn-success toggle-bookmarked",serverKey:"bookmark",title:"Save"};n.fn.toggleService=function(i){if(t[i])return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.toggleService");else return t.init.apply(this,arguments)};n.fn.initBookmarked=function(){return this.find("[data-bookmarked]").toggleService(u),this};n(document.body).initBookmarked()}(jQuery);$.fn.thing=function(){var n=this;if(n.length){var t=n.data("controller"),i=n.data("organisationId"),r=n.data("url");$.ajax({url:r,data:{take:n.length,context:t,organisationId:i},dataType:"html",cache:!1}).done(function(t){var i=$(t).filter(".panel");n.each(function(n){if(n<i.length){var t=i[n];$(this).html(t)}})})}};$(function(){$(".a-thing").thing()}),function(n,t,i,r,u){function s(){var r=n("#jobseeker-alerts");(new i).getHub("jobSeekerNotifications").on("setRead",function(n,t,i){t==="Alert"&&i&&r.find("[data-alert-id="+n+"]").alert("close")});n.ajax({url:f,method:"GET"}).done(function(n){t.each(n,function(n){r.append(h(n))})})}function h(i){var r=t.template(o,{id:i.id,title:i.title,detail:i.isHtml?i.detail:a(i.detail),style:l(i.context),formUrl:i.formId!=null?u.resolveUrl("/forms/newsubmission/"+i.formId):null,dismissActionText:i.dismissActionText,dismissable:i.dismissable});return n(r).on("click",".close",function(n){i.formId==null&&c(n.target,i.id)})}function c(t,i){t=n(t).attr("disabled","true");n.ajax({url:f+"/markread/"+i,method:"POST"}).success(function(){t.alert("close")}).fail(function(){alert("Unable to remove alert: service error");t.removeAttr("disabled")})}function l(n){switch(n){case 0:return"alert-info";case 1:return"alert-warning";case 2:return"alert-danger"}}function a(n){return angular.forEach(n.match(e),function(t){var i=t.startsWith("http")?t:"http://"+t;n=n.replace(t,'<a href="'+i+'">'+t+"<\/a>")}),n}var e=/(http[s]?:\/\/|www.)[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:\/~+#-]*[\w@?^=%&amp;\/~+#-])?/gi,f=r.resolveUrl("/services/students/alerts"),o='<div class="alert <%= style %>" data-alert-id="<%= id %>">        <% if(formUrl != null) { %><a href="<%= formUrl %>" class="close btn btn-default btn-sm"><%- dismissActionText %><\/a><% } %>\t\t<% if(formUrl == null && id != null && dismissable) { %>        <button class="close btn btn-default btn-sm" type="button"><%- dismissActionText %><\/button><% } %>\t\t<strong><%- title %><\/strong>\t\t<div><%= detail %><\/div>\t<\/div>';n(s)}(jQuery,_,window.DataController,window.urlHelper,window.studentSiteUrlHelper);$(function(){angular.bootstrap(document.getElementById("notifications"),["notifications.services","notifications.controllers","notifications.directives"])});angular.module("notifications.controllers",[]).controller("NotificationsCtrl",["$scope",function(){}]);angular.module("notifications.directives",["notifications.services"]).directive("notificationsLink",["$window",function(){return{link:function(n,t){t.on("click",function(){var i=$(this),t=i.siblings(".notifications");t.toggle();t.is(":visible")&&n.$root.$broadcast("show-notifications")});$("window, [data-toggle]").on("click",function(n){var i=t.siblings(".notifications");t.find(n.target).length||i.find(n.target).length||i.hide()})}}}]).directive("notificationsList",["api","hub",function(n,t){return{link:function(i,r){function s(t){if(o&&!f){var u=r.find(".notification").length;t=t||5;f=!0;n.alerts.get({skip:u,take:t},function(n){f=!1;i.notifications=i.notifications.concat(n.notifications);i.notificationsCount=n.unreadCount;e();(i.notifications.length>=n.totalCount||i.notifications.length==25)&&(o=!1)})}}function e(){jQuery().antiscroll&&(u?u.rebuild():u=r.parent().antiscroll({x:!1,y:!0}).data("antiscroll"))}var u=null,o=!0,f=!1;i.notifications=[];s(6);i.$root.$on("show-notifications",e);r.find(".antiscroll-inner").on("scroll",function(){var n=$(this),i=n.offset().top+n.height(),t=n.find(".notifications-inner"),r=t.offset().top+t.height();i>=r&&s()});t.on("setRead",function(n,t,r){var u=_.find(i.notifications,function(i){return i.id==n&&i.type==t});i.notificationsCount-=1;u?(u.isUnread=!r,i.notificationsCount<0&&(i.notificationsCount=0)):console.log("could not find the notification")});t.on("addAlert",function(n){i.notifications.push(n);i.notificationsCount+=1;i.$apply();e()})}}}]);angular.module("notifications.services",["ngResource"]).value("data",window.DataController).value("url",window.urlHelper).service("api",["url","$resource",function(n,t){this.alerts=t(n.resolveUrl("/services/students/notifications/"),{take:5},{get:{method:"GET"}})}]).service("hub",["$rootScope","data",function(n,t){if(t){var i=new t,r=i.getHub("jobSeekerNotifications");this.on=function(t,i){r.on(t,function(){var t=Array.prototype.slice.call(arguments);if(typeof i!="function")throw"hub.client "+name+" function has not been defined";i.apply(this,t);n.$apply()})}}else this.on=function(){}}])