var appveyor,_gaq;!function(n,t){"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){function ui(n){var t=n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(ef.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return et.call(t,n)>=0!==r})}function ur(n,t){while((n=n[t])&&1!==n.nodeType);return n}function of(n){var t=ei[n]={};return i.each(n.match(c)||[],function(n,i){t[i]=!0}),t}function ct(){u.removeEventListener("DOMContentLoaded",ct,!1);n.removeEventListener("load",ct,!1);i.ready()}function p(){Object.defineProperty(this.cache={},0,{get:function(){return{}}});this.expando=i.expando+Math.random()}function fr(n,t,r){var u;if(void 0===r&&1===n.nodeType)if(u="data-"+t.replace(hf,"-$1").toLowerCase(),r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:sf.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=void 0;return r}function at(){return!0}function g(){return!1}function hr(){try{return u.activeElement}catch(n){}}function vr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function bf(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function kf(n){var t=pf.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function oi(n,t){for(var i=0,u=n.length;u>i;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function yr(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;c>u;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function o(n,t){var r=n.getElementsByTagName?n.getElementsByTagName(t||"*"):n.querySelectorAll?n.querySelectorAll(t||"*"):[];return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function df(n,t){var i=t.nodeName.toLowerCase();"input"===i&&er.test(n.type)?t.checked=n.checked:("input"===i||"textarea"===i)&&(t.defaultValue=n.defaultValue)}function pr(t,r){var f,u=i(r.createElement(t)).appendTo(r.body),e=n.getDefaultComputedStyle&&(f=n.getDefaultComputedStyle(u[0]))?f.display:i.css(u[0],"display");return u.detach(),e}function hi(n){var r=u,t=si[n];return t||(t=pr(n,r),"none"!==t&&t||(vt=(vt||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=vt[0].contentDocument,r.write(),r.close(),t=pr(n,r),vt.detach()),si[n]=t),t}function rt(n,t,r){var e,o,s,u,f=n.style;return r=r||yt(n),r&&(u=r.getPropertyValue(t)||r[t]),r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),ci.test(u)&&wr.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0!==u?u+"":u}function br(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function gr(n,t){if(t in n)return t;for(var r=t[0].toUpperCase()+t.slice(1),u=t,i=dr.length;i--;)if(t=dr[i]+r,t in n)return t;return u}function nu(n,t,i){var r=ne.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function tu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+w[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+w[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function iu(n,t,r){var o=!0,u="width"===t?n.offsetWidth:n.offsetHeight,e=yt(n),s="border-box"===i.css(n,"boxSizing",!1,e);if(0>=u||null==u){if(u=rt(n,t,e),(0>u||null==u)&&(u=n.style[t]),ci.test(u))return u;o=s&&(f.boxSizingReliable()||u===n.style[t]);u=parseFloat(u)||0}return u+tu(n,t,r||(s?"border":"content"),o,e)+"px"}function ru(n,t){for(var e,u,s,o=[],f=0,h=n.length;h>f;f++)u=n[f],u.style&&(o[f]=r.get(u,"olddisplay"),e=u.style.display,t?(o[f]||"none"!==e||(u.style.display=""),""===u.style.display&&it(u)&&(o[f]=r.access(u,"olddisplay",hi(u.nodeName)))):(s=it(u),"none"===e&&s||r.set(u,"olddisplay",s?e:i.css(u,"display"))));for(f=0;h>f;f++)u=n[f],u.style&&(t&&"none"!==u.style.display&&""!==u.style.display||(u.style.display=t?o[f]||"":"none"));return n}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function fu(){return setTimeout(function(){nt=void 0}),nt=i.now()}function bt(n,t){var r,u=0,i={height:n};for(t=t?1:0;4>u;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function eu(n,t,i){for(var u,f=(ut[t]||[]).concat(ut["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function fe(n,t,u){var f,a,p,v,o,w,h,b,l=this,y={},s=n.style,c=n.nodeType&&it(n),e=r.get(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),null==o.unqueued&&(o.unqueued=0,w=o.empty.fire,o.empty.fire=function(){o.unqueued||w()}),o.unqueued++,l.always(function(){l.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],h=i.css(n,"display"),b="none"===h?r.get(n,"olddisplay")||hi(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(s.display="inline-block"));u.overflow&&(s.overflow="hidden",l.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],re.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?hi(n.nodeName):h)&&(s.display=h);else{e?"hidden"in e&&(c=e.hidden):e=r.access(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;r.remove(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=eu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function ee(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ou(n,t,r){var h,e,o=0,l=wt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=nt||fu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:nt||fu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(ee(s,u.opts.specialEasing);l>o;o++)if(h=wt[o].call(u,n,s,u.opts))return h;return i.map(s,eu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function pu(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(c)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function wu(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===li;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ai(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function ae(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return(f!==r[0]&&r.unshift(f),i[f])}function ve(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function vi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||pe.test(n)?u(n,i):vi(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)vi(n+"["+f+"]",t[f],r,u)}function ku(n){return i.isWindow(n)?n:9===n.nodeType&&n.defaultView}var k=[],a=k.slice,bi=k.concat,ii=k.push,et=k.indexOf,ot={},nf=ot.toString,ri=ot.hasOwnProperty,f={},u=n.document,ki="2.1.1",i=function(n,t){return new i.fn.init(n,t)},tf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rf=/^-ms-/,uf=/-([\da-z])/gi,ff=function(n,t){return t.toUpperCase()},y,st,nr,tr,ir,rr,c,ei,ht,l,d,vt,si,oe,su,tt,hu,kt,cu,dt,gt,yi,ti,pi,wi,du,gu;i.fn=i.prototype={jquery:ki,constructor:i,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ii,sort:k.sort,splice:k.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(e=arguments[u]))for(f in e)r=n[f],t=e[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(o=i.isArray(t)))?(o?(o=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(ki+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray,isWindow:function(n){return null!=n&&n===n.window},isNumeric:function(n){return!i.isArray(n)&&n-parseFloat(n)>=0},isPlainObject:function(n){return"object"!==i.type(n)||n.nodeType||i.isWindow(n)?!1:n.constructor&&!ri.call(n.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ot[nf.call(n)]||"object":typeof n},globalEval:function(n){var t,r=eval;n=i.trim(n);n&&(1===n.indexOf("use strict")?(t=u.createElement("script"),t.text=n,u.head.appendChild(t).parentNode.removeChild(t)):r(n))},camelCase:function(n){return n.replace(rf,"ms-").replace(uf,ff)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ui(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(tf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ui(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ii.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:et.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;u>i;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ui(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return bi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return"string"==typeof t&&(u=n[t],t=n,n=u),i.isFunction(n)?(f=a.call(arguments,2),r=function(){return n.apply(t||this,f.concat(a.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:Date.now,support:f});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});y=function(n){function r(n,t,i,r){var w,h,c,v,k,y,d,l,nt,g;if((t?t.ownerDocument||t:s)!==e&&p(t),t=t||e,i=i||[],!n||"string"!=typeof n)return i;if(1!==(v=t.nodeType)&&9!==v)return[];if(a&&!r){if(w=sr.exec(n))if(c=w[1]){if(9===v){if(h=t.getElementById(c),!h||!h.parentNode)return i;if(h.id===c)return i.push(h),i}else if(t.ownerDocument&&(h=t.ownerDocument.getElementById(c))&&ot(t,h)&&h.id===c)return i.push(h),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((c=w[3])&&u.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i}if(u.qsa&&(!o||!o.test(n))){if(l=d=f,nt=t,g=9===v&&n,1===v&&"object"!==t.nodeName.toLowerCase()){for(y=et(n),(d=t.getAttribute("id"))?l=d.replace(hr,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",k=y.length;k--;)y[k]=l+yt(y[k]);nt=gt.test(n)&&ii(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,i,r)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function h(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||ai)-(~n.sourceIndex||ai);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function tt(n){return h(function(t){return t=+t,h(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 ii(n){return n&&typeof n.getElementsByTagName!==ut&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[v,e];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===v&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var u=0,f=t.length;f>u;u++)r(n,t[u],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:pt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ei(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return nt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ct)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>i;i++)if(u=t.relative[n[i].type])e=[ri(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;o>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),o>r&&ei(n=n.slice(r)),o>r&&yt(n))}e.push(u)}return ui(e)}function vr(n,i){var u=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,a="0",g=o&&[],p=[],nt=ct,tt=o||f&&t.find.TAG("*",l),it=v+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(ct=s!==e&&s);a!==rt&&null!=(y=tt[a]);a++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(v=it)}u&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=a,u&&a!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)while(a--)g[a]||p[a]||(p[a]=gi.call(c));p=pt(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(v=it,ct=nt),g};return u?h(o):o}var it,u,t,ht,oi,et,wt,si,ct,y,rt,p,e,l,a,o,g,lt,ot,f="sizzle"+-new Date,s=n.document,v=0,ki=0,hi=ni(),ci=ni(),li=ni(),bt=function(n,t){return n===t&&(rt=!0),0},ut="undefined",ai=-2147483648,di={}.hasOwnProperty,w=[],gi=w.pop,nr=w.push,b=w.push,vi=w.slice,nt=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",yi=ft.replace("w","w#"),pi="\\["+i+"*("+ft+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+yi+"))|)"+i+"*\\]",dt=":("+ft+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+pi+")*)|.*)\\)|)",at=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),tr=new RegExp("^"+i+"*,"+i+"*"),ir=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),rr=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),ur=new RegExp(dt),fr=new RegExp("^"+yi+"$"),vt={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+pi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,st=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{b.apply(w=vi.call(s.childNodes),s.childNodes);w[s.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){nr.apply(n,vi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}u=r.support={};oi=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};p=r.setDocument=function(n){var v,r=n?n.ownerDocument||n:s,h=r.defaultView;return r!==e&&9===r.nodeType&&r.documentElement?(e=r,l=r.documentElement,a=!oi(r),h&&h!==h.top&&(h.addEventListener?h.addEventListener("unload",function(){p()},!1):h.attachEvent&&h.attachEvent("onunload",function(){p()})),u.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=c(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=st.test(r.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),u.getById=c(function(n){return l.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&a){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}: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=u.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&a)return t.getElementsByClassName(n)},g=[],o=[],(u.qsa=st.test(r.querySelectorAll))&&(c(function(n){n.innerHTML="<select msallowclip=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowclip^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+kt+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(u.matchesSelector=st.test(lt=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&c(function(n){u.disconnectedMatch=lt.call(n,"div");lt.call(n,"[s!='']:x");g.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),v=st.test(l.compareDocumentPosition),ot=v||st.test(l.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},bt=v?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===s&&ot(s,n)?-1:t===r||t.ownerDocument===s&&ot(s,t)?1:y?nt.call(y,n)-nt.call(y,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,h=t.parentNode,f=[n],e=[t];if(!o||!h)return n===r?-1:t===r?1:o?-1:h?1:y?nt.call(y,n)-nt.call(y,t):0;if(o===h)return wi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===s?-1:e[u]===s?1:0},r):e};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(rr,"='$1']"),!(!u.matchesSelector||!a||g&&g.test(t)||o&&o.test(t)))try{var i=lt.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,e,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),ot(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],r=f&&di.call(t.attrHandle,i.toLowerCase())?f(n,i,!a):void 0;return void 0!==r?r:u.attributes||!a?n.getAttribute(i):(r=n.getAttributeNode(i))&&r.specified?r.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(rt=!u.detectDuplicates,y=!u.sortStable&&n.slice(0),n.sort(bt),rt){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return y=null,n};ht=r.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+=ht(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=ht(r);return i};t=r.selectors={cacheLength:50,createPseudo:h,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(k,d),n[3]=(n[3]||n[4]||n[5]||"").replace(k,d),"~="===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]||r.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]&&r.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&&ur.test(t)&&(i=et(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(k,d).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("(^|"+i+")"+n+"("+i+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[f]?u(i):u.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?h(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=nt.call(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:h(function(n){var i=[],r=[],t=wt(n.replace(at,"$1"));return t[f]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return r(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||ht(t)).indexOf(n)>-1}}),lang:h(function(n){return fr.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=a?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===l},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.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:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[0>i?i+t:i]}),even:tt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=cr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=lr(it);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,et=r.tokenize=function(n,i){var e,f,s,o,u,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=tr.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=ir.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),u=u.slice(e.length));for(o in t.filter)(f=vt[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):ci(n,h).slice(0)},wt=r.compile=function(n,t){var r,u=[],e=[],i=li[n+" "];if(!i){for(t||(t=et(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=li(n,vr(e,u));i.selector=n}return i},si=r.select=function(n,i,r,f){var s,e,o,l,v,c="function"==typeof n&&n,h=!f&&et(n=c.selector||n);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&a&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[l=o.type])break;if((v=t.find[l])&&(f=v(o.matches[0].replace(k,d),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&yt(e),!n)return b.apply(r,f),r;break}}}return(c||wt(n,h))(f,i,!a,r,gt.test(n)&&ii(i.parentNode)||i),r},u.sortStable=f.split("").sort(bt).join("")===f,u.detectDuplicates=!!rt,p(),u.sortDetached=c(function(n){return 1&n.compareDocumentPosition(e.createElement("div"))}),c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;var di=i.expr.match.needsContext,gi=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ef=/^.[^:#\[\.,]*$/;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,u=this.length,r=[],f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;u>t;t++)if(i.contains(f[t],this))return!0}));for(t=0;u>t;t++)i.find(n,f[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(fi(this,n||[],!1))},not:function(n){return this.pushStack(fi(this,n||[],!0))},is:function(n){return!!fi(this,"string"==typeof n&&di.test(n)?i(n):n||[],!1).length}});nr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;tr=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:nr.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||st).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),gi.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return f=u.getElementById(r[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof st.ready?st.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};tr.prototype=i.fn;st=i(u);ir=/^(?:parents|prev(?:Until|All))/;rr={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir: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},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;r>n;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=di.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?et.call(i(n),this[0]):et.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.unique(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 i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ur(n,"nextSibling")},prev:function(n){return ur(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return n.contentDocument||i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(rr[n]||i.unique(f),ir.test(n)&&f.reverse()),this.pushStack(f)}});c=/\S+/g;ei={};i.Callbacks=function(n){n="string"==typeof n?ei[n]||of(n):i.extend({},n);var u,h,o,c,f,e,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=a.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?a.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||(ht.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready"))))}});i.ready.promise=function(t){return ht||(ht=i.Deferred(),"complete"===u.readyState?setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",ct,!1),n.addEventListener("load",ct,!1))),ht.promise(t)};i.ready.promise();l=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};i.acceptData=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};p.uid=1;p.accepts=i.acceptData;p.prototype={key:function(n){if(!p.accepts(n))return 0;var r={},t=n[this.expando];if(!t){t=p.uid++;try{r[this.expando]={value:t};Object.defineProperties(n,r)}catch(u){r[this.expando]=t;i.extend(n,r)}}return this.cache[t]||(this.cache[t]={}),t},set:function(n,t,r){var f,e=this.key(n),u=this.cache[e];if("string"==typeof t)u[t]=r;else if(i.isEmptyObject(u))i.extend(this.cache[e],t);else for(f in t)u[f]=t[f];return u},get:function(n,t){var i=this.cache[this.key(n)];return void 0===t?i:i[t]},access:function(n,t,r){var u;return void 0===t||t&&"string"==typeof t&&void 0===r?(u=this.get(n,t),void 0!==u?u:this.get(n,i.camelCase(t))):(this.set(n,t,r),void 0!==r?r:t)},remove:function(n,t){var u,r,f,o=this.key(n),e=this.cache[o];if(void 0===t)this.cache[o]={};else for(i.isArray(t)?r=t.concat(t.map(i.camelCase)):(f=i.camelCase(t),(t in e)?r=[t,f]:(r=f,r=(r in e)?[r]:r.match(c)||[])),u=r.length;u--;)delete e[r[u]]},hasData:function(n){return!i.isEmptyObject(this.cache[n[this.expando]]||{})},discard:function(n){n[this.expando]&&delete this.cache[n[this.expando]]}};var r=new p,e=new p,sf=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,hf=/([A-Z])/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(void 0===n){if(this.length&&(s=e.get(u),1===u.nodeType&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),fr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return"object"==typeof n?this.each(function(){e.set(this,n)}):l(this,function(t){var r,f=i.camelCase(n);if(u&&void 0===t){if((r=e.get(u,n),void 0!==r)||(r=e.get(u,f),void 0!==r)||(r=fr(u,f,void 0),void 0!==r))return r}else this.each(function(){var i=e.get(this,f);e.set(this,f,t);-1!==n.indexOf("-")&&void 0!==i&&e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return(t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||i.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var lt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=["Top","Right","Bottom","Left"],it=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},er=/^(?:checkbox|radio)$/i;!function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();d="undefined";f.focusinBubbles="onfocusin"in n;var cf=/^key/,lf=/^(?:mouse|pointer|contextmenu)|click/,or=/^(?:focusinfocus|focusoutblur)$/,sr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,h,s,l,o,k,g,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){if(typeof i!==d&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),t=(t||"").match(c)||[""],b=t.length;b--;)w=sr.exec(t[b])||[],o=g=w[1],k=(w[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y,!1)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,h):l.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var p,k,h,v,w,s,l,a,o,b,d,y=r.hasData(n)&&r.get(n);if(y&&(v=y.events)){for(t=(t||"").match(c)||[""],w=t.length;w--;)if(h=sr.exec(t[w])||[],o=d=h[1],b=(h[2]||"").split(".").sort(),o){for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],h=h[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=p=a.length;p--;)s=a[p],!e&&d!==s.origType||u&&u.guid!==s.guid||h&&!h.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(p,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,y.handle)!==!1||i.removeEvent(n,o,y.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[w],u,f,!0);i.isEmptyObject(v)&&(delete y.handle,r.remove(n,"events"))}},trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=ri.call(t,"type")?t.type:t,y=ri.call(t,"namespace")?t.namespace.split("."):[];if(s=c=e=e||u,3!==e.nodeType&&8!==e.nodeType&&!or.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),f=null==f?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,or.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&i.acceptData(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||l._default&&l._default.apply(p.pop(),f)!==!1||!i.acceptData(e)||a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=void 0,c&&(e[a]=c)),t.result}},dispatch:function(n){n=i.event.fix(n);var o,s,e,u,t,h=[],c=a.call(arguments),l=(r.get(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,l),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(t=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,e=((i.event.special[t.origType]||{}).handle||t.handler).apply(u.elem,c),void 0!==e&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!==this;r=r.parentNode||this)if(r.disabled!==!0||"click"!==n.type){for(u=[],e=0;s>e;e++)o=t[e],f=o.selector+" ",void 0===u[f]&&(u[f]=o.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var e,i,r,f=t.button;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,i=e.documentElement,r=e.body,n.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),n.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},fix:function(n){if(n[i.expando])return n;var f,e,o,r=n.type,s=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=lf.test(r)?this.mouseHooks:cf.test(r)?this.keyHooks:{}),o=t.props?this.props.concat(t.props):this.props,n=new i.Event(s),f=o.length;f--;)e=o[f],n[e]=s[e];return n.target||(n.target=u),3===n.target.nodeType&&(n.target=n.target.parentNode),t.filter?t.filter(n,s):n},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==hr()&&this.focus)return(this.focus(),!1)},delegateType:"focusin"},blur:{trigger:function(){if(this===hr()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i.nodeName(this,"input"))return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?at:g):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=at;n&&n.preventDefault&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=at;n&&n.stopPropagation&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=at;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});f.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});i.fn.extend({on:function(n,t,r,u,f){var e,o;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=g;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=g),this.each(function(){i.event.remove(this,n,r,t)})},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)}});var cr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,lr=/<([\w:]+)/,af=/<|&#?\w+;/,vf=/<(?:script|style|link)/i,yf=/checked\s*(?:[^=]|=\s*.checked.)/i,ar=/^$|\/(?:java|ecma)script/i,pf=/^true\/(.*)/,wf=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,h={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,"",""]};h.optgroup=h.option;h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;i.extend({clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!(f.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=o(h),s=o(n),u=0,c=s.length;c>u;u++)df(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;c>u;u++)yr(s[u],e[u]);else yr(n,h);return e=o(h,"script"),e.length>0&&oi(e,!l&&o(n,"script")),h},buildFragment:function(n,t,r,u){for(var f,e,y,l,p,a,s=t.createDocumentFragment(),v=[],c=0,w=n.length;w>c;c++)if(f=n[c],f||0===f)if("object"===i.type(f))i.merge(v,f.nodeType?[f]:f);else if(af.test(f)){for(e=e||s.appendChild(t.createElement("div")),y=(lr.exec(f)||["",""])[1].toLowerCase(),l=h[y]||h._default,e.innerHTML=l[1]+f.replace(cr,"<$1><\/$2>")+l[2],a=l[0];a--;)e=e.lastChild;i.merge(v,e.childNodes);e=s.firstChild;e.textContent=""}else v.push(t.createTextNode(f));for(s.textContent="",c=0;f=v[c++];)if((!u||-1===i.inArray(f,u))&&(p=i.contains(f.ownerDocument,f),e=o(s.appendChild(f),"script"),p&&oi(e),r))for(a=0;f=e[a++];)ar.test(f.type||"")&&r.push(f);return s},cleanData:function(n){for(var f,t,o,u,h=i.event.special,s=0;void 0!==(t=n[s]);s++){if(i.acceptData(t)&&(u=t[r.expando],u&&(f=r.cache[u]))){if(f.events)for(o in f.events)h[o]?i.event.remove(t,o):i.removeEvent(t,o,f.handle);r.cache[u]&&delete r.cache[u]}delete e.cache[t[e.expando]]}}});i.fn.extend({text:function(n){return l(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 this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=vr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=vr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,f=n?i.filter(n,this):this,u=0;null!=(r=f[u]);u++)t||1!==r.nodeType||i.cleanData(o(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&oi(o(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return l(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&&!vf.test(n)&&!h[(lr.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(cr,"<$1><\/$2>");try{for(;u>r;r++)t=this[r]||{},1===t.nodeType&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(o(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=bi.apply([],n);var h,v,s,c,u,y,e=0,l=this.length,w=this,b=l-1,a=n[0],p=i.isFunction(a);if(p||l>1&&"string"==typeof a&&!f.checkClone&&yf.test(a))return this.each(function(i){var r=w.eq(i);p&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(h=i.buildFragment(n,this[0].ownerDocument,!1,this),v=h.firstChild,1===h.childNodes.length&&(h=v),v)){for(s=i.map(o(h,"script"),bf),c=s.length;l>e;e++)u=h,e!==b&&(u=i.clone(u,!0,!0),c&&i.merge(s,o(u,"script"))),t.call(this[e],u,e);if(c)for(y=s[s.length-1].ownerDocument,i.map(s,kf),e=0;c>e;e++)u=s[e],ar.test(u.type||"")&&!r.access(u,"globalEval")&&i.contains(y,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval(u.textContent.replace(wf,"")))}return this}});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;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ii.apply(f,u.get());return this.pushStack(f)}});si={};var wr=/^margin/,ci=new RegExp("^("+lt+")(?!px)[a-z%]+$","i"),yt=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)};!function(){var s,o,e=u.documentElement,r=u.createElement("div"),t=u.createElement("div");if(t.style){t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";f.clearCloneStyle="content-box"===t.style.backgroundClip;r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute";r.appendChild(t);function h(){t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute";t.innerHTML="";e.appendChild(r);var i=n.getComputedStyle(t,null);s="1%"!==i.top;o="4px"===i.width;e.removeChild(r)}n.getComputedStyle&&i.extend(f,{pixelPosition:function(){return h(),s},boxSizingReliable:function(){return null==o&&h(),o},reliableMarginRight:function(){var f,i=t.appendChild(u.createElement("div"));return i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",e.appendChild(r),f=!parseFloat(n.getComputedStyle(i,null).marginRight),e.removeChild(r),f}})}}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var gf=/^(none|table(?!-c[ea]).+)/,ne=new RegExp("^("+lt+")(.*)$","i"),te=new RegExp("^([+-])=("+lt+")","i"),ie={position:"absolute",visibility:"hidden",display:"block"},kr={letterSpacing:"0",fontWeight:"400"},dr=["Webkit","O","Moz","ms"];i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=rt(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,h,e,s=i.camelCase(t),c=n.style;return t=i.cssProps[s]||(i.cssProps[s]=gr(c,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===r?e&&"get"in e&&void 0!==(o=e.get(n,!1,u))?o:c[t]:(h=typeof r,"string"===h&&(o=te.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),h="number"),null!=r&&r===r&&("number"!==h||i.cssNumber[s]||(r+="px"),f.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),e&&"set"in e&&void 0===(r=e.set(n,r,u))||(c[t]=r)),void 0)}},css:function(n,t,r,u){var f,s,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=gr(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=rt(n,t,u)),"normal"===f&&t in kr&&(f=kr[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return gf.test(i.css(n,"display"))&&0===n.offsetWidth?i.swap(n,ie,function(){return iu(n,t,u)}):iu(n,t,u)},set:function(n,r,u){var f=u&&yt(n);return nu(n,r,u?tu(n,t,u,"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.cssHooks.marginRight=br(f.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},rt,[n,"marginRight"])});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];4>r;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};wr.test(n)||(i.cssHooks[n+t].set=nu)});i.fn.extend({css:function(n,t){return l(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=yt(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return ru(this,!0)},hide:function(){return ru(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){it(this)?i(this).show():i(this).hide()})}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var r,t=s.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=s.prototype.init;i.fx.step={};var nt,pt,re=/^(?:toggle|show|hide)$/,uu=new RegExp("^(?:([+-])=|)("+lt+")([a-z%]*)$","i"),ue=/queueHooks$/,wt=[fe],ut={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uu.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uu.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(ou,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],ut[r]=ut[r]||[],ut[r].unshift(t)},prefilter:function(n,t){t?wt.unshift(n):wt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(it).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=ou(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&ue.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;s>t;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(bt(t,!0),n,i,u)}});i.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("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(nt=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();nt=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){pt||(pt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(pt);pt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=""!==n.value;f.optSelected=i.selected;t.disabled=!0;f.optDisabled=!i.disabled;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue="t"===n.value}();tt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return l(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===d?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?su:oe)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(c);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)&&(n[u]=!1),n.removeAttribute(r)},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}}});su={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=tt[t]||i.find.attr;tt[t]=function(n,t,i){var u,f;return i||(f=tt[t],tt[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,tt[t]=f),u}});hu=/^(?:input|select|textarea|button)$/i;i.fn.extend({prop:function(n,t){return l(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(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){return n.hasAttribute("tabindex")||hu.test(n.nodeName)||n.href?n.tabIndex:-1}}}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});kt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,h="string"==typeof n&&n,e=0,l=this.length;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(h)for(o=(n||"").match(c)||[];l>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(kt," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,h=0===arguments.length||"string"==typeof n&&n,e=0,l=this.length;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(h)for(o=(n||"").match(c)||[];l>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(kt," "):"")){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var u=typeof n;return"boolean"==typeof t&&"string"===u?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===u)for(var t,e=0,f=i(this),o=n.match(c)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(u===d||"boolean"===u)&&(this.className&&r.set(this,"__className__",this.className),this.className=this.className||n===!1?"":r.get(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(kt," ").indexOf(i)>=0)return!0;return!1}});cu=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(cu,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,h=u?null:[],c=u?r+1:s.length,e=0>r?c:u?r:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==r||(f.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),u)return o;h.push(o)}return h},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(r.value,e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};f.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},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)}});dt=i.now();gt=/\?/;i.parseJSON=function(n){return JSON.parse(n+"")};i.parseXML=function(n){var t,r;if(!n||"string"!=typeof n)return null;try{r=new DOMParser;t=r.parseFromString(n,"text/xml")}catch(u){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+n),t};var b,v,se=/#.*$/,lu=/([?&])_=[^&]*/,he=/^(.*?):[ \t]*([^\r\n]*)$/gm,ce=/^(?:GET|HEAD)$/,le=/^\/\//,au=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,vu={},li={},yu="*/".concat("*");try{v=location.href}catch(ge){v=u.createElement("a");v.href="";v=v.href}b=au.exec(v.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:v,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(b[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ai(ai(n,i.ajaxSettings),t):ai(i.ajaxSettings,n)},ajaxPrefilter:pu(vu),ajaxTransport:pu(li),ajax:function(n,t){function w(n,t,s,h){var v,it,b,y,w,c=t;2!==e&&(e=2,d&&clearTimeout(d),l=void 0,k=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(y=ae(r,u,s)),y=ve(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=y.state,it=y.data,b=y.error,v=!b)):(b=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?nt.resolveWith(o,[it,c,u]):nt.rejectWith(o,[u,c,b]),u.statusCode(p),p=void 0,a&&g.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:b]),tt.fireWith(o,[u,c]),a&&(g.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(t=n,n=void 0);t=t||{};var l,f,k,y,d,s,a,h,r=i.ajaxSetup({},t),o=r.context||r,g=r.context&&(o.nodeType||o.jquery)?i(o):i.event,nt=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!y)for(y={};t=he.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?k:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return l&&l.abort(t),w(0,t),this}};if(nt.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||v)+"").replace(se,"").replace(le,b[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(c)||[""],null==r.crossDomain&&(s=au.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===b[1]&&s[2]===b[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(b[3]||("http:"===b[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),wu(vu,r,t,u),2===e)return u;a=r.global;a&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!ce.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(gt.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=lu.test(f)?f.replace(lu,"$1_="+dt++):f+(gt.test(f)?"&":"?")+"_="+dt++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+yu+"; q=0.01":""):r.accepts["*"]);for(h in r.headers)u.setRequestHeader(h,r.headers[h]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();ut="abort";for(h in{success:1,error:1,complete:1})u[h](r[h]);if(l=wu(li,r,t,u)){u.readyState=1;a&&g.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(d=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;l.send(it,w)}catch(ft){if(!(2>e))throw ft;w(-1,ft)}}else w(-1,"No Transport");return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){var t;return i.isFunction(n)?this.each(function(t){i(this).wrapAll(n.call(this,t))}):(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 this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var ye=/%20/g,pe=/\[\]$/,bu=/\r?\n/g,we=/^(?:submit|button|image|reset|file)$/i,be=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)vi(r,n[r],t,f);return u.join("&").replace(ye,"+")};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")&&be.test(this.nodeName)&&!we.test(n)&&(this.checked||!er.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(bu,"\r\n")}}):{name:t.name,value:r.replace(bu,"\r\n")}}).get()}});i.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(n){}};var ke=0,ni={},de={0:200,1223:204},ft=i.ajaxSettings.xhr();return n.ActiveXObject&&i(n).on("unload",function(){for(var n in ni)ni[n]()}),f.cors=!!ft&&"withCredentials"in ft,f.ajax=ft=!!ft,i.ajaxTransport(function(n){var t;if(f.cors||ft&&!n.crossDomain)return{send:function(i,r){var f,u=n.xhr(),e=++ke;if(u.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(f in n.xhrFields)u[f]=n.xhrFields[f];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType);n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(f in i)u.setRequestHeader(f,i[f]);t=function(n){return function(){t&&(delete ni[e],t=u.onload=u.onerror=null,"abort"===n?u.abort():"error"===n?r(u.status,u.statusText):r(de[u.status]||u.status,u.statusText,"string"==typeof u.responseText?{text:u.responseText}:void 0,u.getAllResponseHeaders()))}};u.onload=t();u.onerror=t("error");t=ni[e]=t("abort");try{u.send(n.hasContent&&n.data||null)}catch(o){if(t)throw o;}},abort:function(){t&&t()}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),yi=[],ti=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=yi.pop()||i.expando+"_"+dt++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ti.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ti.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ti,"$1"+f):t.jsonp!==!1&&(t.url+=(gt.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,yi.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=gi.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},pi=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&pi)return pi.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=i.trim(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o,dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,s||[n.responseText,t,n])}),this},i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},wi=n.document.documentElement,i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,f,t=this[0],u={top:0,left:0},e=t&&t.ownerDocument;if(e)return r=e.documentElement,i.contains(r,t)?(typeof t.getBoundingClientRect!==d&&(u=t.getBoundingClientRect()),f=ku(e),{top:u.top+f.pageYOffset-r.clientTop,left:u.left+f.pageXOffset-r.clientLeft}):u},position:function(){if(this[0]){var n,r,u=this[0],t={top:0,left:0};return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||wi;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||wi})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var u="pageYOffset"===r;i.fn[t]=function(i){return l(this,function(t,i,f){var e=ku(t);return void 0===f?e?e[r]:t[i]:void(e?e.scrollTo(u?n.pageXOffset:f,u?f:n.pageYOffset):t[i]=f)},t,i,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=br(f.pixelPosition,function(n,r){if(r)return(r=rt(n,t),ci.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(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return l(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),du=n.jQuery,gu=n.$,i.noConflict=function(t){return n.$===i&&(n.$=gu),t&&n.jQuery===i&&(n.jQuery=du),i},typeof t===d&&(n.jQuery=n.$=i),i});window.Modernizr=function(n,t,i){function a(n){c.cssText=n}function vt(n,t){return a(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function lt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function yt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ot.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?lt(u,t):(u=(n+" "+st.join(r+" ")+r).split(" "),yt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in o);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,f,e,h=n.length;u<h;u++)o.setAttribute("type",f=n[u]),r=o.type!=="text",r&&(o.value=g,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&e.getComputedStyle(o,null).WebkitAppearance!=="textfield"&&o.offsetHeight!==0,s.removeChild(o)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?o.checkValidity&&o.checkValidity()===!1:o.value!=g)),ht[n[u]]=!!r;return ht}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},d=!0,s=t.documentElement,e="modernizr",ut=t.createElement(e),c=ut.style,o=t.createElement("input"),g=":)",ft={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",ot=et.split(" "),st=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ht={},w={},nt=[],tt=nt.slice,b,l=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},at=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(l("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ct=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=h(u[r],"function"),h(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}(),it={}.hasOwnProperty,rt,k;rt=h(it,"undefined")||h(it.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return it.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=tt.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(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:l(["@media (",y.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return ct("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(c.backgroundColor,"rgba")};r.hsla=function(){return a("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return a("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("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(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("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 f("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(["#",e,"{font:0/0 a}#",e,':after{content:"',g,'";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(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)rt(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),nt.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)rt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof d!="undefined"&&d&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},a(""),ut=o=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)?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,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),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 figcaption figure footer header hgroup mark meter nav output progress section summary time video",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.6.2",u._prefixes=y,u._domPrefixes=st,u._cssomPrefixes=ot,u.mq=at,u.hasEvent=ct,u.testProp=function(n){return lt([n])},u.testAllProps=f,u.testStyles=l,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+nt.join(" "):""),u}(this,this.document),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)||n instanceof Date}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=hu[n]||cu[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,iso:!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 ru;case"a":case"A":return f(t._l)._meridiemParse;case"X":return fu;case"Z":case"ZZ":return st;case"T":return uu;case"SSSS":return iu;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(su)||["-",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":case"SSSS":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=eu.exec(i);if(r){for(n._pf.iso=!0,t=4;t>0;t--)if(r[t]){n._f=ou[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(n){var i=!1,r=t;"undefined"==typeof ender&&(this.moment=n?function(){return!i&&console&&console.warn&&(i=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),r.apply(null,arguments)}: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?|S{1,4}|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=/\d+/,ru=/[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,uu=/T/i,fu=/[\+\-]?\d+(\.\d{1,3})?/,eu=/^\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|Z)?)?$/,ou=["YYYY-MM-DD","GGGG-[W]WW","GGGG-[W]WW-E","YYYY-DDD"],ai=[["HH:mm:ss.SSSS",/(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/]],su=/([\+\-]|\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},hu={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"},cu={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)},SSSS: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.4.0",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(!0)):"function"==typeof define&&define.amd?define("moment",function(i,r,u){return u.config().noGlobal!==!0&&ot(u.config().noGlobal===n),t}):ot()}.call(this),function(){var y=this,lt=y._,e={},r=Array.prototype,nt=Object.prototype,at=Function.prototype,p=r.push,t=r.slice,o=r.concat,f=nt.toString,vt=nt.hasOwnProperty,tt=r.forEach,it=r.map,rt=r.reduce,ut=r.reduceRight,ft=r.filter,et=r.every,ot=r.some,s=r.indexOf,st=r.lastIndexOf,yt=Array.isArray,pt=Object.keys,w=at.bind,n=function(t){return t instanceof n?t:this instanceof n?(this._wrapped=t,void 0):new n(t)},i,b,k,h,c,d,l,a,u,ht,ct,v;"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=n),exports._=n):y._=n;n.VERSION="1.5.2";i=n.each=n.forEach=function(t,i,r){var u,f;if(null!=t)if(tt&&t.forEach===tt)t.forEach(i,r);else if(t.length===+t.length){for(u=0,f=t.length;f>u;u++)if(i.call(r,t[u],u,t)===e)return}else for(var o=n.keys(t),u=0,f=o.length;f>u;u++)if(i.call(r,t[o[u]],o[u],t)===e)return};n.map=n.collect=function(n,t,r){var u=[];return null==n?u:it&&n.map===it?n.map(t,r):(i(n,function(n,i,f){u.push(t.call(r,n,i,f))}),u)};b="Reduce of empty array with no initial value";n.reduce=n.foldl=n.inject=function(t,r,u,f){var e=arguments.length>2;if(null==t&&(t=[]),rt&&t.reduce===rt)return f&&(r=n.bind(r,f)),e?t.reduce(r,u):t.reduce(r);if(i(t,function(n,t,i){e?u=r.call(f,u,n,t,i):(u=n,e=!0)}),!e)throw new TypeError(b);return u};n.reduceRight=n.foldr=function(t,r,u,f){var o=arguments.length>2,e,s;if(null==t&&(t=[]),ut&&t.reduceRight===ut)return f&&(r=n.bind(r,f)),o?t.reduceRight(r,u):t.reduceRight(r);if(e=t.length,e!==+e&&(s=n.keys(t),e=s.length),i(t,function(n,i,h){i=s?s[--e]:--e;o?u=r.call(f,u,t[i],i,h):(u=t[i],o=!0)}),!o)throw new TypeError(b);return u};n.find=n.detect=function(n,t,i){var r;return k(n,function(n,u,f){if(t.call(i,n,u,f))return(r=n,!0)}),r};n.filter=n.select=function(n,t,r){var u=[];return null==n?u:ft&&n.filter===ft?n.filter(t,r):(i(n,function(n,i,f){t.call(r,n,i,f)&&u.push(n)}),u)};n.reject=function(t,i,r){return n.filter(t,function(n,t,u){return!i.call(r,n,t,u)},r)};n.every=n.all=function(t,r,u){r||(r=n.identity);var f=!0;return null==t?f:et&&t.every===et?t.every(r,u):(i(t,function(n,t,i){if(!(f=f&&r.call(u,n,t,i)))return e}),!!f)};k=n.some=n.any=function(t,r,u){r||(r=n.identity);var f=!1;return null==t?f:ot&&t.some===ot?t.some(r,u):(i(t,function(n,t,i){if(f||(f=r.call(u,n,t,i)))return e}),!!f)};n.contains=n.include=function(n,t){return null==n?!1:s&&n.indexOf===s?n.indexOf(t)!=-1:k(n,function(n){return n===t})};n.invoke=function(i,r){var u=t.call(arguments,2),f=n.isFunction(r);return n.map(i,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,function(n){return n[i]})};n.where=function(t,i,r){return n.isEmpty(i)?r?void 0:[]:n[r?"find":"filter"](t,function(n){for(var t in i)if(i[t]!==n[t])return!1;return!0})};n.findWhere=function(t,i){return n.where(t,i,!0)};n.max=function(t,r,u){if(!r&&n.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!r&&n.isEmpty(t))return-1/0;var f={computed:-1/0,value:-1/0};return i(t,function(n,t,i){var e=r?r.call(u,n,t,i):n;e>f.computed&&(f={value:n,computed:e})}),f.value};n.min=function(t,r,u){if(!r&&n.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!r&&n.isEmpty(t))return 1/0;var f={computed:1/0,value:1/0};return i(t,function(n,t,i){var e=r?r.call(u,n,t,i):n;e<f.computed&&(f={value:n,computed:e})}),f.value};n.shuffle=function(t){var u,f=0,r=[];return i(t,function(t){u=n.random(f++);r[f-1]=r[u];r[u]=t}),r};n.sample=function(t,i,r){return arguments.length<2||r?t[n.random(t.length-1)]:n.shuffle(t).slice(0,Math.max(0,i))};h=function(t){return n.isFunction(t)?t:function(n){return n[t]}};n.sortBy=function(t,i,r){var u=h(i);return n.pluck(n.map(t,function(n,t,i){return{value:n,index:t,criteria:u.call(r,n,t,i)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(r>i||r===void 0)return-1}return n.index-t.index}),"value")};c=function(t){return function(r,u,f){var e={},o=null==u?n.identity:h(u);return i(r,function(n,i){var u=o.call(f,n,i,r);t(e,u,n)}),e}};n.groupBy=c(function(t,i,r){(n.has(t,i)?t[i]:t[i]=[]).push(r)});n.indexBy=c(function(n,t,i){n[t]=i});n.countBy=c(function(t,i){n.has(t,i)?t[i]++:t[i]=1});n.sortedIndex=function(t,i,r,u){var e;r=null==r?n.identity:h(r);for(var s=r.call(u,i),f=0,o=t.length;o>f;)e=f+o>>>1,r.call(u,t[e])<s?f=e+1:o=e;return f};n.toArray=function(i){return i?n.isArray(i)?t.call(i):i.length===+i.length?n.map(i,n.identity):n.values(i):[]};n.size=function(t){return null==t?0:t.length===+t.length?t.length:n.keys(t).length};n.first=n.head=n.take=function(n,i,r){if(null!=n)return null==i||r?n[0]:t.call(n,0,i)};n.initial=function(n,i,r){return t.call(n,0,n.length-(null==i||r?1:i))};n.last=function(n,i,r){if(null!=n)return null==i||r?n[n.length-1]:t.call(n,Math.max(n.length-i,0))};n.rest=n.tail=n.drop=function(n,i,r){return t.call(n,null==i||r?1:i)};n.compact=function(t){return n.filter(t,n.identity)};d=function(t,r,u){return r&&n.every(t,n.isArray)?o.apply(u,t):(i(t,function(t){n.isArray(t)||n.isArguments(t)?r?p.apply(u,t):d(t,r,u):u.push(t)}),u)};n.flatten=function(n,t){return d(n,t,[])};n.without=function(i){return n.difference(i,t.call(arguments,1))};n.uniq=n.unique=function(t,r,u,f){n.isFunction(r)&&(f=u,u=r,r=!1);var s=u?n.map(t,u,f):t,o=[],e=[];return i(s,function(i,u){(r?u&&e[e.length-1]===i:n.contains(e,i))||(e.push(i),o.push(t[u]))}),o};n.union=function(){return n.uniq(n.flatten(arguments,!0))};n.intersection=function(i){var r=t.call(arguments,1);return n.filter(n.uniq(i),function(t){return n.every(r,function(i){return n.indexOf(i,t)>=0})})};n.difference=function(i){var u=o.apply(r,t.call(arguments,1));return n.filter(i,function(t){return!n.contains(u,t)})};n.zip=function(){for(var i=n.max(n.pluck(arguments,"length").concat(0)),r=new Array(i),t=0;i>t;t++)r[t]=n.pluck(arguments,""+t);return r};n.object=function(n,t){if(null==n)return{};for(var r={},i=0,u=n.length;u>i;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){if(null==t)return-1;var u=0,f=t.length;if(r){if("number"!=typeof r)return u=n.sortedIndex(t,i),t[u]===i?u:-1;u=0>r?Math.max(0,f+r):r}if(s&&t.indexOf===s)return t.indexOf(i,r);for(;f>u;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){var u,r;if(null==n)return-1;if(u=null!=i,st&&n.lastIndexOf===st)return u?n.lastIndexOf(t,i):n.lastIndexOf(t);for(r=u?i:n.length;r--;)if(n[r]===t)return r;return-1};n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0);i=arguments[2]||1;for(var r=Math.max(Math.ceil((t-n)/i),0),u=0,f=new Array(r);r>u;)f[u++]=n,n+=i;return f};l=function(){};n.bind=function(i,r){var u,f;if(w&&i.bind===w)return w.apply(i,t.call(arguments,1));if(!n.isFunction(i))throw new TypeError;return u=t.call(arguments,2),f=function(){var e,n;return(this instanceof f)?(l.prototype=i.prototype,e=new l,l.prototype=null,n=i.apply(e,u.concat(t.call(arguments))),Object(n)===n?n:e):i.apply(r,u.concat(t.call(arguments)))}};n.partial=function(n){var i=t.call(arguments,1);return function(){return n.apply(this,i.concat(t.call(arguments)))}};n.bindAll=function(r){var u=t.call(arguments,1);if(0===u.length)throw new Error("bindAll must be passed function names");return i(u,function(t){r[t]=n.bind(r[t],r)}),r};n.memoize=function(t,i){var r={};return i||(i=n.identity),function(){var u=i.apply(this,arguments);return n.has(r,u)?r[u]:r[u]=t.apply(this,arguments)}};n.delay=function(n,i){var r=t.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},i)};n.defer=function(i){return n.delay.apply(n,[i,1].concat(t.call(arguments,1)))};n.throttle=function(n,t,i){var f,e,o,r=null,u=0,s;return i||(i={}),s=function(){u=i.leading===!1?0:new Date;r=null;o=n.apply(f,e)},function(){var h=new Date,c;return u||i.leading!==!1||(u=h),c=t-(h-u),f=this,e=arguments,0>=c?(clearTimeout(r),r=null,u=h,o=n.apply(f,e)):r||i.trailing===!1||(r=setTimeout(s,c)),o}};n.debounce=function(n,t,i){var r,u,f,o,e;return function(){f=this;u=arguments;o=new Date;var s=function(){var h=new Date-o;t>h?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u)))},h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u)),e}};n.once=function(n){var t,i=!1;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}};n.wrap=function(n,t){return function(){var i=[n];return p.apply(i,arguments),t.apply(this,i)}};n.compose=function(){var n=arguments;return function(){for(var t=arguments,i=n.length-1;i>=0;i--)t=[n[i].apply(this,t)];return t[0]}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.keys=pt||function(t){var i,r;if(t!==Object(t))throw new TypeError("Invalid object");i=[];for(r in t)n.has(t,r)&&i.push(r);return i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;u>i;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;u>i;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;f>i;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&&i.push(r);return i.sort()};n.extend=function(n){return i(t.call(arguments,1),function(t){if(t)for(var i in t)n[i]=t[i]}),n};n.pick=function(n){var u={},f=o.apply(r,t.call(arguments,1));return i(f,function(t){t in n&&(u[t]=n[t])}),u};n.omit=function(i){var f={},e=o.apply(r,t.call(arguments,1));for(var u in i)n.contains(e,u)||(f[u]=i[u]);return f};n.defaults=function(n){return i(t.call(arguments,1),function(t){if(t)for(var i in t)n[i]===void 0&&(n[i]=t[i])}),n};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};a=function(t,i,r,u){var l,v,h,c,e,o,s;if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),l=f.call(t),l!=f.call(i))return!1;switch(l){case"[object String]":return t==String(i);case"[object Number]":return t!=+t?i!=+i:0==t?1/t==1/i:t==+i;case"[object Date]":case"[object Boolean]":return+t==+i;case"[object RegExp]":return t.source==i.source&&t.global==i.global&&t.multiline==i.multiline&&t.ignoreCase==i.ignoreCase}if("object"!=typeof t||"object"!=typeof i)return!1;for(v=r.length;v--;)if(r[v]==t)return u[v]==i;if(h=t.constructor,c=i.constructor,h!==c&&!(n.isFunction(h)&&h instanceof h&&n.isFunction(c)&&c instanceof c))return!1;if(r.push(t),u.push(i),e=0,o=!0,"[object Array]"==l){if(e=t.length,o=e==i.length)for(;e--&&(o=a(t[e],i[e],r,u)););}else{for(s in t)if(n.has(t,s)&&(e++,!(o=n.has(i,s)&&a(t[s],i[s],r,u))))break;if(o){for(s in i)if(n.has(i,s)&&!e--)break;o=!e}}return r.pop(),u.pop(),o};n.isEqual=function(n,t){return a(n,t,[],[])};n.isEmpty=function(t){if(null==t)return!0;if(n.isArray(t)||n.isString(t))return 0===t.length;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!(!n||1!==n.nodeType)};n.isArray=yt||function(n){return"[object Array]"==f.call(n)};n.isObject=function(n){return n===Object(n)};i(["Arguments","Function","String","Number","Date","RegExp"],function(t){n["is"+t]=function(n){return f.call(n)=="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return!(!t||!n.has(t,"callee"))});"function"!=typeof/./&&(n.isFunction=function(n){return"function"==typeof n});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!=+t};n.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"==f.call(n)};n.isNull=function(n){return null===n};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return vt.call(n,t)};n.noConflict=function(){return y._=lt,this};n.identity=function(n){return n};n.times=function(n,t,i){for(var u=Array(Math.max(0,n)),r=0;n>r;r++)u[r]=t.call(i,r);return u};n.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};u={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};u.unescape=n.invert(u.escape);ht={escape:new RegExp("["+n.keys(u.escape).join("")+"]","g"),unescape:new RegExp("("+n.keys(u.unescape).join("|")+")","g")};n.each(["escape","unescape"],function(t){n[t]=function(n){return null==n?"":(""+n).replace(ht[t],function(n){return u[t][n]})}});n.result=function(t,i){if(null==t)return void 0;var r=t[i];return n.isFunction(r)?r.call(t):r};n.mixin=function(t){i(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return p.apply(t,arguments),v.call(this,r.apply(n,t))}})};ct=0;n.uniqueId=function(n){var t=++ct+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,wt={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},bt=/\\|'|\r|\n|\t|\u2028|\u2029/g;n.template=function(t,i,r){var f,e;r=n.defaults({},r,n.templateSettings);var h=new RegExp([(r.escape||g).source,(r.interpolate||g).source,(r.evaluate||g).source].join("|")+"|$","g"),o=0,u="__p+='";t.replace(h,function(n,i,r,f,e){return u+=t.slice(o,e).replace(bt,function(n){return"\\"+wt[n]}),i&&(u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),r&&(u+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),f&&(u+="';\n"+f+"\n__p+='"),o=e+n.length,n});u+="';\n";r.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{f=new Function(r.variable||"obj","_",u)}catch(s){throw s.source=u,s;}return i?f(i,n):(e=function(t){return f.call(this,t,n)},e.source="function("+(r.variable||"obj")+"){\n"+u+"}",e)};n.chain=function(t){return n(t).chain()};v=function(t){return this._chain?n(t).chain():t};n.mixin(n);i(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),"shift"!=t&&"splice"!=t||0!==n.length||delete n[0],v.call(this,n)}});i(["concat","join","slice"],function(t){var i=r[t];n.prototype[t]=function(){return v.call(this,i.apply(this._wrapped,arguments))}});n.extend(n.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this),function(n,t,i){"use strict";function y(n){return function(){for(var i=arguments[0],i="["+(n?n+":":"")+i+"] http://errors.angularjs.org/1.3.0-beta.17/"+(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 hr(n){if(null==n||ai(n))return!1;var t=n.length;return 1===n.nodeType&&t?!0:s(n)||h(n)||0===t||"number"==typeof t&&0<t&&t-1 in n}function r(n,t,i){var u,f;if(n)if(e(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||t.call(i,n[u],u);else if(h(n)||hr(n))for(u=0,f=n.length;u<f;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 pf(n){var t=[];for(var i in n)n.hasOwnProperty(i)&&t.push(i);return t.sort()}function ls(n,t,i){for(var r=pf(n),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function wf(n){return function(t,i){n(i,t)}}function as(){return++uu}function bf(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function l(n){var t=n.$$hashKey;return r(arguments,function(t){t!==n&&r(t,function(t,i){n[i]=t})}),bf(n,t),n}function k(n){return parseInt(n,10)}function kf(n,t){return l(new(l(function(){},{prototype:n})),t)}function o(){}function ri(n){return n}function nt(n){return function(){return n}}function c(n){return"undefined"==typeof n}function f(n){return"undefined"!=typeof n}function a(n){return null!=n&&"object"==typeof n}function s(n){return"string"==typeof n}function ui(n){return"number"==typeof n}function tt(n){return"[object Date]"===ti.call(n)}function e(n){return"function"==typeof n}function cr(n){return"[object RegExp]"===ti.call(n)}function ai(n){return n&&n.window===n}function vs(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function ys(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function ps(n,t,i){var u=[];return r(n,function(n,r,f){u.push(t.call(i,n,r,f))}),u}function vi(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 fi(n,t){var i=vi(n,t);return 0<=i&&n.splice(i,1),t}function ei(n,t,i,u){var e,f,o;if(ai(n)||n&&n.$evalAsync&&n.$watch)throw gi("cpws");if(t){if(n===t)throw gi("cpi");if(i=i||[],u=u||[],a(n)){if(e=vi(i,n),-1!==e)return u[e];i.push(n);u.push(t)}if(h(n))for(f=t.length=0;f<n.length;f++)e=ei(n[f],null,i,u),a(n[f])&&(i.push(n[f]),u.push(e)),t.push(e);else{o=t.$$hashKey;r(t,function(n,i){delete t[i]});for(f in n)n.hasOwnProperty(f)&&(e=ei(n[f],null,i,u),a(n[f])&&(i.push(n[f]),u.push(e)),t[f]=e);bf(t,o)}}else(t=n)&&(h(n)?t=ei(n,[],i,u):tt(n)?t=new Date(n.getTime()):cr(n)?(t=RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),t.lastIndex=n.lastIndex):a(n)&&(e=Object.create(Object.getPrototypeOf(n)),t=ei(n,e,i,u)));return t}function ut(n,t){var i=0,u,f,r;if(h(n))for(t=t||[];i<n.length;i++)t[i]=n[i];else if(a(n))for(t=t||{},u=Object.keys(n),f=u.length;i<f;i++)r=u[i],("$"!==r.charAt(0)||"$"!==r.charAt(1))&&(t[r]=n[r]);return t||n}function yt(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(h(n)){if(!h(t))return!1;if((u=n.length)==t.length){for(r=0;r<u;r++)if(!yt(n[r],t[r]))return!1;return!0}}else{if(tt(n))return tt(t)&&n.getTime()==t.getTime();if(cr(n)&&cr(t))return n.toString()==t.toString();if(n&&n.$evalAsync&&n.$watch||t&&t.$evalAsync&&t.$watch||ai(n)||ai(t)||h(t))return!1;u={};for(r in n)if("$"!==r.charAt(0)&&!e(n[r])){if(!yt(n[r],t[r]))return!1;u[r]=!0}for(r in t)if(!u.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t[r]!==i&&!e(t[r]))return!1;return!0}return!1}function cu(n,t){var i=2<arguments.length?at.call(arguments,2):[];return!e(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,i.concat(at.call(arguments,0))):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function ws(n,r){var u=r;return"string"==typeof n&&"$"===n.charAt(0)&&"$"===n.charAt(1)?u=i:ai(r)?u="$WINDOW":r&&t===r?u="$DOCUMENT":r&&r.$evalAsync&&r.$watch&&(u="$SCOPE"),u}function pt(n,t){return"undefined"==typeof n?i:JSON.stringify(n,ws,t?"  ":null)}function df(n){return s(n)?JSON.parse(n):n}function ft(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 gf(n){try{return decodeURIComponent(n)}catch(t){}}function ne(n){var i={},u,t;return r((n||"").split("&"),function(n){n&&(u=n.replace(/\+/g,"%20").split("="),t=gf(u[0]),f(t)&&(n=f(u[1])?gf(u[1]):!0,ff.call(i,t)?h(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){h(n)?r(n,function(n){t.push(gt(i,!0)+(!0===n?"":"="+gt(n,!0)))}):t.push(gt(i,!0)+(!0===n?"":"="+gt(n,!0)))}),t.length?t.join("&"):""}function lr(n){return gt(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function gt(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function bs(n,t){var i,r,f=fu.length;for(n=u(n),r=0;r<f;++r)if(i=fu[r]+t,s(i=n.attr(i)))return i;return null}function ks(n,t){var i,u,f={};r(fu,function(t){t+="app";!i&&n.hasAttribute&&n.hasAttribute(t)&&(i=n,u=n.getAttribute(t))});r(fu,function(t){t+="app";var r;!i&&(r=n.querySelector("["+t.replace(":","\\:")+"]"))&&(i=r,u=r.getAttribute(t))});i&&(f.strictDi=null!==bs(i,"strict-di"),t(i,u?[u]:[],f))}function te(i,f,e){a(e)||(e={});e=l({strictDi:!1},e);var o=function(){if(i=u(i),i.injector()){var n=i[0]===t?"document":ft(i);throw gi("btstrpd",n);}return f=f||[],f.unshift(["$provide",function(n){n.value("$rootElement",i)}]),f.unshift("ng"),n=bu(f,e.strictDi),n.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),n},s=/^NG_DEFER_BOOTSTRAP!/;if(n&&!s.test(n.name))return o();n.name=n.name.replace(s,"");nr.resumeBootstrap=function(n){r(n,function(n){f.push(n)});o()}}function ar(n,t){return t=t||"_",n.replace(gc,function(n,i){return(i?t:"")+n.toLowerCase()})}function ds(){var t;(kt=n.jQuery)&&kt.fn.on?(u=kt,l(kt.fn,{scope:ii.scope,isolateScope:ii.isolateScope,controller:ii.controller,injector:ii.injector,inheritedData:ii.inheritedData}),t=kt.cleanData,t=t.$$original||t,kt.cleanData=function(n){for(var i=0,r;null!=(r=n[i]);i++)kt(r).triggerHandler("$destroy");t(n)},kt.cleanData.$$original=t):u=p;nr.element=u}function au(n,t,i){if(!n)throw gi("areq",t||"?",i||"required");return n}function yi(n,t,i){return i&&h(n)&&(n=n[n.length-1]),au(e(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function ni(n,t){if("hasOwnProperty"===n)throw gi("badname",t);}function ie(n,t,i){if(!t)return n;t=t.split(".");for(var u,f=n,o=t.length,r=0;r<o;r++)u=t[r],n&&(n=(f=n)[u]);return!i&&e(n)?cu(f,n):n}function vr(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 gs(n){var t=y("$injector"),i=y("ng");return n=n.angular||(n.angular={}),n.$$minErr=n.$$minErr||y,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,u){return u||(u=i),function(){return u[r||"push"]([n,t,arguments]),h}}if(!u)throw t("nomod",r);var i=[],e=[],o=[],s=n("$injector","invoke","push",e),h={_invokeQueue:i,_configBlocks:e,_runBlocks:o,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:s,run:function(n){return o.push(n),this}};return f&&s(f),h}())}}())}function nh(t){l(t,{bootstrap:te,copy:ei,extend:l,equals:yt,element:u,forEach:r,injector:bu,noop:o,bind:cu,toJson:pt,fromJson:df,identity:ri,isUndefined:c,isDefined:f,isString:s,isFunction:e,isObject:a,isNumber:ui,isElement:vs,isArray:h,version:nl,isDate:tt,lowercase:v,uppercase:ru,callbacks:{counter:0},$$minErr:y,$$csp:ir});tr=gs(n);try{tr("ngLocale")}catch(i){tr("ngLocale",[]).provider("$locale",gh)}tr("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:oc});n.provider("$compile",se).directive({a:ko,input:fs,textarea:fs,form:ta,script:wv,select:dv,style:ny,option:gv,ngBind:pa,ngBindHtml:ba,ngBindTemplate:wa,ngClass:ka,ngClassEven:ga,ngClassOdd:da,ngCloak:nv,ngController:tv,ngForm:ia,ngHide:cv,ngIf:iv,ngInclude:rv,ngInit:fv,ngNonBindable:ev,ngPluralize:ov,ngRepeat:sv,ngShow:hv,ngStyle:lv,ngSwitch:av,ngSwitchWhen:vv,ngSwitchDefault:yv,ngOptions:kv,ngTransclude:pv,ngModel:ha,ngList:la,ngChange:ca,pattern:os,ngPattern:os,required:es,ngRequired:es,minlength:hs,ngMinlength:hs,maxlength:ss,ngMaxlength:ss,ngValue:va,ngModelOptions:ya}).directive({ngInclude:uv}).directive(or).directive(cs);n.provider({$anchorScroll:fh,$animate:ll,$browser:sh,$cacheFactory:hh,$controller:lh,$document:ah,$exceptionHandler:vh,$filter:no,$interpolate:kh,$interval:dh,$http:yh,$httpBackend:wh,$location:nc,$log:tc,$parse:ic,$rootScope:ec,$q:rc,$$q:uc,$sce:cc,$sceDelegate:hc,$sniffer:lc,$templateCache:ch,$timeout:ac,$window:vc,$$rAF:fc,$$asyncCallback:eh})}])}function pi(n){return n.replace(il,function(n,t,i,r){return r?i.toUpperCase():i}).replace(rl,"Moz$1")}function th(n,t){var i,u,f=t.createDocumentFragment(),e=[];if(of.test(n)){for(i=i||f.appendChild(t.createElement("div")),u=(fl.exec(n)||["",""])[1].toLowerCase(),u=it[u]||it._default,i.innerHTML=u[1]+n.replace(el,"<$1><\/$2>")+u[2],u=u[0];u--;)i=i.lastChild;e=e.concat(at.call(i.childNodes,void 0));i=f.firstChild;i.textContent=""}else e.push(t.createTextNode(n));return f.textContent="",f.innerHTML="",r(e,function(n){f.appendChild(n)}),f}function p(n){var r,i;if(n instanceof p)return n;if(s(n)&&(n=b(n)),!(this instanceof p)){if(s(n)&&"<"!=n.charAt(0))throw ef("nosel");return new p(n)}s(n)&&(r=t,n=(i=ul.exec(n))?[r.createElement(i[1])]:(i=th(n,r))?i.childNodes:[]);ue(this,n)}function vu(n){return n.cloneNode(!0)}function yr(n,t){if(t||pr(n),n.childNodes&&n.childNodes.length)for(var r=n.getElementsByTagName?n.getElementsByTagName("*"):n.querySelectorAll?n.querySelectorAll("*"):[],i=0,u=r.length;i<u;i++)pr(r[i])}function re(n,t,i,u){if(f(u))throw ef("offargs");var e=st(n,"events");st(n,"handle")&&(c(t)?r(e,function(t,i){ur(n,i,t);delete e[i]}):r(t.split(" "),function(t){c(i)?(ur(n,t,e[t]),delete e[t]):fi(e[t]||[],i)}))}function pr(n,t){var u=n.ng339,r=rr[u];r&&(t?delete rr[u].data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),re(n)),delete rr[u],n.ng339=i))}function st(n,t,i){var r=n.ng339,r=rr[r||-1];if(f(i))r||(n.ng339=r=++tl,r=rr[r]={}),r[t]=i;else return r&&r[t]}function yu(n,t,i){if(!n.nodeType||1===n.nodeType||9===n.nodeType){var r=st(n,"data"),u=f(i),e=!u&&f(t),o=e&&!a(t);if(r||o||st(n,"data",r={}),u)r[t]=i;else if(e){if(o)return r&&r[t];l(r,t)}else return r}}function pu(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function wr(n,t){t&&n.setAttribute&&r(t.split(" "),function(t){n.setAttribute("class",b((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+b(t)+" "," ")))})}function br(n,t){if(t&&n.setAttribute){var i=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(n){n=b(n);-1===i.indexOf(" "+n+" ")&&(i+=n+" ")});n.setAttribute("class",b(i))}}function ue(n,t){if(t)if(t.nodeType)n[n.length++]=t;else{var i=t.length;"number"==typeof i&&t.window!==t?i&&(t.item&&(t=at.call(t)),lo.apply(n,t)):n[n.length++]=t}}function fe(n,t){return kr(n,"$"+(t||"ngController")+"Controller")}function kr(n,t,r){for(9==n.nodeType&&(n=n.documentElement),t=h(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 ee(n){for(yr(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function oe(n,t){var i=fr[t.toLowerCase()];return i&&sf[vt(n)]&&i}function ih(n,t){var i=n.nodeName;return("INPUT"===i||"TEXTAREA"===i)&&hf[t]}function rh(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);c(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=ut(i[f||u.type]||[]);r(o,function(t){t.call(n,u)});8>=w?(u.preventDefault=null,u.stopPropagation=null,u.isDefaultPrevented=null):(delete u.preventDefault,delete u.stopPropagation,delete u.isDefaultPrevented)};return u.elem=n,u}function oi(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||as)()):r=n,u+":"+r}function wi(n,t){if(t){var i=0;this.nextUid=function(){return++i}}r(n,this.put,this)}function uh(n){return(n=n.toString().replace(vo,"").match(ao))?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function wu(n,t,i){var u;if("function"==typeof n){if(!(u=n.$inject)){if(u=[],n.length){if(t)throw s(i)&&i||(i=n.name||uh(n)),hi("strictdi",i);t=n.toString().replace(vo,"");t=t.match(ao);r(t[1].split(sl),function(n){n.replace(hl,function(n,t,i){u.push(i)})})}n.$inject=u}}else h(n)?(t=n.length-1,yi(n[t],"fn"),u=n.slice(0,t)):yi(n,"fn",!0);return u}function bu(n,t){function f(n){return function(t,i){if(a(t))r(t,wf(n));else return n(t,i)}}function k(n,t){if(ni(n,"service"),(e(t)||h(t))&&(t=u.instantiate(t)),!t.$get)throw hi("pget",n);return c[n+v]=t}function p(n,t){return k(n,{$get:t})}function d(n){var t=[],i;return r(n,function(n){function f(n){for(var i,r,t=0,f=n.length;t<f;t++)i=n[t],r=u.get(i[0]),r[i[1]].apply(r,i[2])}if(!tt.get(n)){tt.put(n,!0);try{s(n)?(i=tr(n),t=t.concat(d(i.requires)).concat(i._runBlocks),f(i._invokeQueue),f(i._configBlocks)):e(n)?t.push(u.invoke(n)):h(n)?t.push(u.invoke(n)):yi(n,"module")}catch(r){throw h(n)&&(n=n[n.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),hi("modulerr",n,r.stack||r.message||r);}}}),t}function g(n,i){function r(t){if(n.hasOwnProperty(t)){if(n[t]===w)throw hi("cdep",t+" <- "+y.join(" <- "));return n[t]}try{return y.unshift(t),n[t]=w,n[t]=i(t)}catch(r){throw n[t]===w&&delete n[t],r;}finally{y.shift()}}function u(n,i,u,f){var s,c,o,e;for("string"==typeof u&&(f=u,u=null),s=[],f=wu(n,t,f),o=0,c=f.length;o<c;o++){if(e=f[o],"string"!=typeof e)throw hi("itkn",e);s.push(u&&u.hasOwnProperty(e)?u[e]:r(e))}return h(n)&&(n=n[c]),n.apply(i,s)}return{invoke:u,instantiate:function(n,t,i){var r=function(){};return r.prototype=(h(n)?n[n.length-1]:n).prototype,r=new r,n=u(n,r,t,i),a(n)||e(n)?n:r},get:r,annotate:wu,has:function(t){return c.hasOwnProperty(t+v)||n.hasOwnProperty(t)}}}t=!0===t;var w={},v="Provider",y=[],tt=new wi([],!0),c={$provide:{provider:f(k),factory:f(p),service:f(function(n,t){return p(n,["$injector",function(n){return n.instantiate(t)}])}),value:f(function(n,t){return p(n,nt(t))}),constant:f(function(n,t){ni(n,"constant");c[n]=t;b[n]=t}),decorator:function(n,t){var i=u.get(n+v),r=i.$get;i.$get=function(){var n=l.invoke(r,i);return l.invoke(t,null,{$delegate:n})}}}},u=c.$injector=g(c,function(){throw hi("unpr",y.join(" <- "));},t),b={},l=b.$injector=g(b,function(n){var t=u.get(n+v);return l.invoke(t.$get,t,i,n)},t);return r(d(n),function(n){l.invoke(n||o)}),l}function fh(){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"!==vt(n)||(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 eh(){this.$get=["$$rAF","$timeout",function(n,t){return n.supported?function(t){return n(t)}:function(n){return t(n,0,!1)}}]}function oh(n,t,f,e){function g(n){try{n.apply(null,at.call(arguments,1))}finally{if(a--,0===a)for(;w.length;)try{w.pop()()}catch(t){f.error(t)}}}function ht(n,t){(function i(){r(b,function(n){n()});ot=t(i,n)})()}function nt(){it=null;k!=h.url()&&(k=h.url(),r(rt,function(n){n(h.url())}))}var h=this,v=t[0],l=n.location,y=n.history,et=n.setTimeout,ct=n.clearTimeout,p={},a,w,b,ot,rt,ut;h.isMock=!1;a=0;w=[];h.$$completeOutstandingRequest=g;h.$$incOutstandingRequestCount=function(){a++};h.notifyWhenNoOutstandingRequests=function(n){r(b,function(n){n()});0===a?n():w.push(n)};b=[];h.addPollFn=function(n){return c(ot)&&ht(100,et),b.push(n),n};var k=l.href,tt=t.find("base"),it=null;h.url=function(t,i){if(l!==n.location&&(l=n.location),y!==n.history&&(y=n.history),t){if(k!=t)return k=t,e.history?i?y.replaceState(null,"",t):(y.pushState(null,"",t),tt.attr("href",tt.attr("href"))):(it=t,i?l.replace(t):l.href=t),h}else return it||l.href.replace(/%27/g,"'")};rt=[];ut=!1;h.onUrlChange=function(t){if(!ut){if(e.history)u(n).on("popstate",nt);if(e.hashchange)u(n).on("hashchange",nt);else h.addPollFn(nt);ut=!0}return rt.push(t),t};h.baseHref=function(){var n=tt.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var d={},ft="",st=h.baseHref();h.cookies=function(n,t){var r,u,e,o;if(n)t===i?v.cookie=encodeURIComponent(n)+"=;path="+st+";expires=Thu, 01 Jan 1970 00:00:00 GMT":s(t)&&(r=(v.cookie=encodeURIComponent(n)+"="+encodeURIComponent(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(v.cookie!==ft)for(ft=v.cookie,r=ft.split("; "),d={},e=0;e<r.length;e++)u=r[e],o=u.indexOf("="),0<o&&(n=decodeURIComponent(u.substring(0,o)),d[n]===i&&(d[n]=decodeURIComponent(u.substring(o+1))));return d}};h.defer=function(n,t){var i;return a++,i=et(function(){delete p[i];g(n)},t||0),p[i]=!0,i};h.defer.cancel=function(n){return p[n]?(delete p[n],ct(n),g(o),!0):!1}}function sh(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new oh(n,r,t,i)}]}function hh(){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 y("$cacheFactory")("iid",t);var o=0,v=l({},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(!c(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 l({},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 ch(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function se(n,o){var c={},y="Directive",p=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,k=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,d=ys("ngSrc,ngSrcset,src,srcset"),g=/^(on[a-z]+|formaction)$/;this.directive=function tt(t,i){return ni(t,"directive"),s(t)?(au(i,"directiveFactory"),c.hasOwnProperty(t)||(c[t]=[],n.factory(t+y,["$injector","$exceptionHandler",function(n,i){var u=[];return r(c[t],function(r,f){try{var o=n.invoke(r);e(o)?o={compile:nt(o)}:!o.compile&&o.link&&(o.compile=nt(o.link));o.priority=o.priority||0;o.index=f;o.name=o.name||t;o.require=o.require||o.controller&&o.name;o.restrict=o.restrict||"EA";u.push(o)}catch(s){i(s)}}),u}])),c[t].push(i)):r(t,wf(tt)),this};this.aHrefSanitizationWhitelist=function(n){return f(n)?(o.aHrefSanitizationWhitelist(n),this):o.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(o.imgSrcSanitizationWhitelist(n),this):o.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(n,f,o,nt,tt,it,rt,ot,st,ct,lt,pt){function ni(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=ti(n,t,n,i,f,e);return wt(n,"ng-scope"),function(t,i,u,f){au(t,"scope");var e=i?ii.clone.call(n):n;return r(u,function(n,t){e.data("$"+t+"Controller",n)}),e.data("$scope",t),i&&i(e,t),o&&o(t,e,e,f),e}}function wt(n,t){try{n.addClass(t)}catch(i){}}function ti(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?kt(n,r.transclude,e):!r.templateOnThisElement&&e?e:!e&&t?kt(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 ei,l=ui(n[h],[],s,0===h?f:i,e),(o=l.length?hi(l,n[h],s,t,r,null,[],[],o):null)&&o.scope&&wt(s.$$element,"ng-scope"),s=o&&o.terminal||!(a=n[h].childNodes)||!a.length?null:ti(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),c.push(o,s),v=v||o||s,o=null;return v?y:null}function kt(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 ui(t,i,r,u,f){var ut=r.$attr,e,g,nt,tt,l,a;switch(t.nodeType){case 1:dt(i,ht(vt(t)),"E",u,f);for(var h,o,rt,v=t.attributes,d=0,ft=v&&v.length;d<ft;d++)if(g=!1,nt=!1,h=v[d],!w||8<=w||h.specified){e=h.name;h=b(h.value);o=ht(e);(rt=tr.test(o))&&(e=ar(o.substr(6),"-"));tt=o.replace(/(Start|End)$/,"");n:{if(a=tt,c.hasOwnProperty(a)){l=void 0;for(var a=n.get(a+y),it=0,et=a.length;it<et;it++)if(l=a[it],l.multiElement){l=!0;break n}}l=!1}l&&o===tt+"Start"&&(g=e,nt=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6));o=ht(e.toLowerCase());ut[o]=e;(rt||!r.hasOwnProperty(o))&&(r[o]=h,oe(t,o)&&(r[o]=!0));nr(t,i,h,o);dt(i,o,"A",u,f,g,nt)}if(t=t.className,s(t)&&""!==t)for(;e=k.exec(t);)o=ht(e[2]),dt(i,o,"C",u,f)&&(r[o]=b(e[3])),t=t.substr(e.index+e[0].length);break;case 3:di(i,t.nodeValue);break;case 8:try{(e=p.exec(t.nodeValue))&&(o=ht(e[1]),dt(i,o,"M",u,f)&&(r[o]=b(e[2])))}catch(ot){}}return i.sort(ki),i}function oi(n,t,i){var r=[],f=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw et("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 si(n,t,i){return function(r,u,f,e,o){return u=oi(u[0],t,i),n(r,u,f,e,o)}}function hi(n,c,l,v,y,p,w,k,d){function gi(n,t,i,r){n&&(i&&(n=si(n,i,r)),n.require=g.require,n.directiveName=st,(tt===g||g.$$isolateScope)&&(n=vi(n,{isolateScope:!0})),w.push(n));t&&(i&&(t=si(t,i,r)),t.require=g.require,t.directiveName=st,(tt===g||g.$$isolateScope)&&(t=vi(t,{isolateScope:!0})),k.push(t))}function pi(n,t,i,u){var f,e="data",o=!1;if(s(t)){for(;"^"==(f=t.charAt(0))||"?"==f;)t=t.substr(1),"^"==f&&(e="inheritedData"),o=o||"?"==f;if(f=null,u&&"data"===e&&(f=u[t]),f=f||i[e]("$"+t+"Controller"),!f&&!o)throw et("ctreq",t,n);}else h(t)&&(f=[],r(t,function(t){f.push(pi(n,t,i,u))}));return f}function ct(n,t,e,s,h){function st(n,t){var r;return 2>arguments.length&&(t=n,n=i),hi&&(r=d),h(n,t,r)}var v,y,nt,p,b,a,d={},g,ot;for(v=c===e?l:ut(l,new ei(u(e),l.$attr)),y=v.$$element,tt&&(ot=/^\s*([@=&])(\??)\s*(\w*)\s*$/,a=t.$new(!0),!ht||ht!==tt&&ht!==tt.$$originalDirective?y.data("$isolateScopeNoTemplate",a):y.data("$isolateScope",a),wt(y,"ng-isolate-scope"),r(tt.scope,function(n,i){var e=n.match(ot)||[],r=e[3]||i,s="?"==e[2],e=e[1],o,u,c,h;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(s&&!v[r])break;u=it(v[r]);h=u.literal?yt:function(n,t){return n===t};c=u.assign||function(){o=a[i]=u(t);throw et("nonassign",v[r],tt.name);};o=a[i]=u(t);s=t.$watch(it(v[r],function(n){return h(n,a[i])||(h(n,o)?c(t,n=a[i]):a[i]=n),o=n}),null,u.literal);a.$on("$destroy",s);break;case"&":u=it(v[r]);a[i]=function(n){return u(t,n)};break;default:throw et("iscp",tt.name,i,n);}})),g=h&&st,lt&&r(lt,function(n){var r={$scope:n===tt||n.$$isolateScope?a:t,$element:y,$attrs:v,$transclude:g},i;b=n.controller;"@"==b&&(b=v[n.name]);i=rt(b,r);d[n.name]=i;hi||y.data("$"+n.name+"Controller",i);n.controllerAs&&(r.$scope[n.controllerAs]=i)}),s=0,nt=w.length;s<nt;s++)try{p=w[s];p(p.isolateScope?a:t,y,v,p.require&&pi(p.directiveName,p.require,y,d),g)}catch(ct){o(ct,ft(y))}for(s=t,tt&&(tt.template||null===tt.templateUrl)&&(s=a),n&&n(s,e.childNodes,i,h),s=k.length-1;0<=s;s--)try{p=k[s];p(p.isolateScope?a:t,y,v,p.require&&pi(p.directiveName,p.require,y,d),g)}catch(at){o(at,ft(y))}}var ri,yi,nr;d=d||{};for(var dt=-Number.MAX_VALUE,ti,lt=d.controllerDirectives,tt=d.newIsolateScopeDirective,ht=d.templateDirective,fi=d.nonTlbTranscludeDirective,ki=!1,di=!1,hi=d.hasElementTranscludeDirective,ot=l.$$element=u(c),g,st,nt,ii=v,pt,vt=0,kt=n.length;vt<kt;vt++){if(g=n[vt],ri=g.$$start,yi=g.$$end,ri&&(ot=oi(c,ri,yi)),nt=i,dt>g.priority)break;if((nt=g.scope)&&(g.templateUrl||(a(nt)?(bt("new/isolated scope",tt||ti,g,ot),tt=g):bt("new/isolated scope",tt,g,ot)),ti=ti||g),st=g.name,!g.templateUrl&&g.controller&&(nt=g.controller,lt=lt||{},bt("'"+st+"' controller",lt[st],g,ot),lt[st]=g),(nt=g.transclude)&&(ki=!0,g.$$tlb||(bt("transclusion",fi,g,ot),fi=g),"element"==nt?(hi=!0,dt=g.priority,nt=ot,ot=l.$$element=u(t.createComment(" "+st+": "+l[st]+" ")),c=ot[0],gt(y,at.call(nt,0),c),ii=ni(nt,v,dt,p&&p.name,{nonTlbTranscludeDirective:fi})):(nt=u(vu(c)).contents(),ot.empty(),ii=ni(nt,v))),g.template)if(di=!0,bt("template",ht,g,ot),ht=g,nt=e(g.template)?g.template(ot,l):g.template,nt=wi(nt),g.replace){if(p=g,nt=of.test(nt)?u(ai(g.type,b(nt))):[],c=nt[0],1!=nt.length||1!==c.nodeType)throw et("tplrt",st,"");gt(y,ot,c);kt={$attr:{}};nt=ui(c,[],kt);nr=n.splice(vt+1,n.length-(vt+1));tt&&ci(nt);n=n.concat(nt).concat(nr);li(l,kt);kt=n.length}else ot.html(nt);if(g.templateUrl)di=!0,bt("template",ht,g,ot),ht=g,g.replace&&(p=g),ct=bi(n.splice(vt,n.length-vt),ot,l,y,ki&&ii,w,k,{controllerDirectives:lt,newIsolateScopeDirective:tt,templateDirective:ht,nonTlbTranscludeDirective:fi}),kt=n.length;else if(g.compile)try{pt=g.compile(ot,l,ii);e(pt)?gi(null,pt,ri,yi):pt&&gi(pt.pre,pt.post,ri,yi)}catch(tr){o(tr,ft(ot))}g.terminal&&(ct.terminal=!0,dt=Math.max(dt,g.priority))}return ct.scope=ti&&!0===ti.scope,ct.transcludeOnThisElement=ki,ct.templateOnThisElement=di,ct.transclude=ii,d.hasElementTranscludeDirective=hi,ct}function ci(n){for(var t=0,i=n.length;t<i;t++)n[t]=kf(n[t],{$$isolateScope:!0})}function dt(t,r,u,f,e,s,h){var l,a,v;if(r===e)return null;if(e=null,c.hasOwnProperty(r))for(r=n.get(r+y),a=0,v=r.length;a<v;a++)try{l=r[a];(f===i||f>l.priority)&&-1!=l.restrict.indexOf(u)&&(s&&(l=kf(l,{$$start:s,$$end:h})),t.push(l),e=l)}catch(p){o(p)}return e}function li(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?(wt(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 bi(n,t,i,f,o,s,h,c){var v=[],p,w,k=t[0],y=n.shift(),g=l({},y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),d=e(y.templateUrl)?y.templateUrl(t,i):y.templateUrl,it=y.type;return t.empty(),nt.get(ct.getTrustedResourceUrl(d),{cache:tt}).success(function(e){var l,tt,nt,ut;if(e=wi(e),y.replace){if(e=of.test(e)?u(ai(it,b(e))):[],l=e[0],1!=e.length||1!==l.nodeType)throw et("tplrt",y.name,d);e={$attr:{}};gt(f,t,l);nt=ui(l,[],e);a(y.scope)&&ci(nt);n=nt.concat(n);li(i,e)}else l=k,t.html(e);for(n.unshift(g),p=hi(n,l,i,o,t,y,s,h,c),r(f,function(n,i){n==l&&(f[i]=t[0])}),w=ti(t[0].childNodes,o);v.length;){e=v.shift();tt=v.shift();var ft=v.shift(),rt=v.shift(),nt=t[0];tt!==k&&(ut=tt.className,c.hasElementTranscludeDirective&&y.replace||(nt=vu(l)),gt(ft,u(tt),nt),wt(u(nt),ut));tt=p.transcludeOnThisElement?kt(e,p.transclude,rt):rt;p(w,e,nt,f,tt)}v=null}).error(function(n,t,i,r){throw et("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=kt(t,p.transclude,u)),p(w,t,i,r,n))}}function ki(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 bt(n,t,i,r){if(t)throw et("multidir",t.name,i.name,n,ft(r));}function di(n,t){var i=f(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent().length;return t&&wt(n.parent(),"ng-binding"),function(n,r){var u=r.parent(),f=u.data("$binding")||[];f.push(i);u.data("$binding",f);t||wt(u,"ng-binding");n.$watch(i,function(n){r[0].nodeValue=n})}}})}function ai(n,i){n=v(n||"html");switch(n){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+n+">"+i+"<\/"+n+">",r.childNodes[0].childNodes;default:return i}}function gi(n,t){if("srcdoc"==t)return ct.HTML;var i=vt(n);if("xlinkHref"==t||"form"==i&&"action"==t||"img"!=i&&("src"==t||"ngSrc"==t))return ct.RESOURCE_URL}function nr(n,t,i,r){var u=f(i,!0);if(u){if("multiple"===r&&"select"===vt(n))throw et("selmulti",ft(n));t.push({priority:100,compile:function(){return{pre:function(t,i,e){if(i=e.$$observers||(e.$$observers={}),g.test(r))throw et("nodomevents");(u=f(e[r],!0,gi(n,r),d[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 gt(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 vi(n,t){return l(function(){return n.apply(null,arguments)},n,t)}var ei=function(n,t){this.$$element=n;this.$attr=t||{}};ei.prototype={$normalize:ht,$addClass:function(n){n&&0<n.length&&lt.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&lt.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=he(n,t),r=he(t,n);0===i.length?lt.removeClass(this.$$element,r):0===r.length?lt.addClass(this.$$element,i):lt.setClass(this.$$element,i,r)},$set:function(n,t,u,f){var s=this.$$element[0],e=oe(s,n),h=ih(s,n),s=n;e?(this.$$element.prop(n,t),f=e):h&&(this[h]=t,s=h);this[n]=t;f?this.$attr[n]=f:(f=this.$attr[n])||(this.$attr[n]=f=ar(n,"-"));e=vt(this.$$element);("a"===e&&"href"===n||"img"===e&&"src"===n)&&(this[n]=t=pt(t,"src"===n));!1!==u&&(null===t||t===i?this.$$element.removeAttr(f):this.$$element.attr(f,t));(n=this.$$observers)&&r(n[s],function(n){try{n(t)}catch(i){o(i)}})},$observe:function(n,t){var i=this,u=i.$$observers||(i.$$observers={}),r=u[n]||(u[n]=[]);return r.push(t),ot.$evalAsync(function(){r.$$inter||t(i[n])}),function(){fi(r,t)}}};var yi=f.startSymbol(),pi=f.endSymbol(),wi="{{"==yi||"}}"==pi?ri:function(n){return n.replace(/\{\{/g,yi).replace(/}}/g,pi)},tr=/^ngAttr[A-Z]/;return ni}]}function ht(n){return pi(n.replace(al,""))}function he(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 lh(){var n={},t=!1,r=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,i){ni(t,"controller");a(t)?l(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(u,f){return function(e,o){var c,h,l;if(s(e)&&(c=e.match(r),h=c[1],l=c[3],e=n.hasOwnProperty(h)?n[h]:ie(o.$scope,h,!0)||(t?ie(f,h,!0):i),yi(e,h,!0)),c=u.instantiate(e,o,h),l){if(!o||"object"!=typeof o.$scope)throw y("$controller")("noscp",h||e.name,l);o.$scope[l]=c}return c}}]}function ah(){this.$get=["$window",function(n){return u(n.document)}]}function vh(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function ce(n){var t={},i,u,f;return n?(r(n.split("\n"),function(n){f=n.indexOf(":");i=v(b(n.substr(0,f)));u=b(n.substr(f+1));i&&(t[i]=t[i]?t[i]+", "+u:u)}),t):t}function le(n){var t=a(n)?n:i;return function(i){return t||(t=ce(n)),i?t[v(i)]||null:t}}function ae(n,t,i){return e(i)?i(n,t):(r(i,function(i){n=i(n,t)}),n)}function yh(){var u=/^\s*(\[|\{[^\{])/,o=/[\}\]]\s*$/,y=/^\)\]\}',?\n/,t={"Content-Type":"application/json;charset=utf-8"},n=this.defaults={transformResponse:[function(n){return s(n)&&(n=n.replace(y,""),u.test(n)&&o.test(n)&&(n=df(n))),n}],transformRequest:[function(n){return a(n)&&"[object File]"!==ti.call(n)&&"[object Blob]"!==ti.call(n)?pt(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ut(t),put:ut(t),patch:ut(t)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},p=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(t,u,o,y,w,b){function k(t){function h(n){var t=l({},n,{data:ae(n.data,n.headers,f.transformResponse)});return 200<=n.status&&300>n.status?t:w.reject(t)}var f={method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse},o=function(t){var i=n.headers,u=l({},t.headers),f,o,i=l({},i.common,i[v(t.method)]);n:for(f in i){t=v(f);for(o in u)if(v(o)===t)continue n;u[f]=i[f]}return function(n){var t;r(n,function(i,r){e(i)&&(t=i(),null!=t?n[r]=t:delete n[r])})}(u),u}(t),s,a,u;for(l(f,t),f.headers=o,f.method=ru(f.method),s=[function(t){o=t.headers;var i=ae(t.data,le(o),t.transformRequest);return c(i)&&r(o,function(n,t){"content-type"===v(t)&&delete o[t]}),c(t.withCredentials)&&!c(n.withCredentials)&&(t.withCredentials=n.withCredentials),g(t,i,o).then(h,h)},i],u=w.when(f),r(d,function(n){(n.request||n.requestError)&&s.unshift(n.request,n.requestError);(n.response||n.responseError)&&s.push(n.response,n.responseError)});s.length;)t=s.shift(),a=s.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 g(r,o,s){function rt(n,t,i,r){v&&(200<=n&&300>n?v.put(p,[n,t,ce(i),r]):v.remove(p));d(t,n,i,r);y.$$phase||y.$apply()}function d(n,t,i,u){t=Math.max(t,0);(200<=t&&300>t?g.resolve:g.reject)({data:n,status:t,headers:le(i),config:r,statusText:u})}function b(){var n=vi(k.pendingRequests,r);-1!==n&&k.pendingRequests.splice(n,1)}var g=w.defer(),tt=g.promise,v,l,p=nt(r.url,r.params);if(k.pendingRequests.push(r),tt.then(b,b),(r.cache||n.cache)&&!1!==r.cache&&"GET"==r.method&&(v=a(r.cache)?r.cache:a(n.cache)?n.cache:it),v)if(l=v.get(p),f(l)){if(l&&e(l.then))return l.then(b,b),l;h(l)?d(l[1],l[0],ut(l[2]),l[3]):d(l,200,{},"OK")}else v.put(p,tt);return c(l)&&((l=tf(r.url)?u.cookies()[r.xsrfCookieName||n.xsrfCookieName]:i)&&(s[r.xsrfHeaderName||n.xsrfHeaderName]=l),t(r.method,p,o,rt,s,r.timeout,r.withCredentials,r.responseType)),tt}function nt(n,t){if(!t)return n;var i=[];return ls(t,function(n,t){null===n||c(n)||(h(n)||(n=[n]),r(n,function(n){a(n)&&(tt(n)?n=n.toISOString():a(n)&&(n=pt(n)));i.push(gt(t)+"="+gt(n))}))}),0<i.length&&(n+=(-1==n.indexOf("?")?"?":"&")+i.join("&")),n}var it=o("$http"),d=[];return r(p,function(n){d.unshift(s(n)?b.get(n):b.invoke(n))}),k.pendingRequests=[],function(){r(arguments,function(n){k[n]=function(t,i){return k(l(i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){r(arguments,function(n){k[n]=function(t,i,r){return k(l(r||{},{method:n,url:t,data:i}))}})}("post","put","patch"),k.defaults=n,k}]}function ph(t){if(8>=w&&(!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 y("$httpBackend")("noxhr");}function wh(){this.$get=["$browser","$window","$document",function(n,t,i){return bh(n,ph,n.defer,t.angular.callbacks,i[0])}]}function bh(n,t,i,u,s){function c(n,t,i){var r=s.createElement("script"),f=null;return r.type="text/javascript",r.src=n,r.async=!0,f=function(n){ur(r,"load",f);ur(r,"error",f);s.body.removeChild(r);r=null;var e=-1,o="unknown";n&&("load"!==n.type||u[t].called||(n={type:"error"}),o=n.type,e="error"===n.type?404:200);i&&i(e,o)},eu(r,"load",f),eu(r,"error",f),s.body.appendChild(r),f}var h=-1;return function(s,l,a,y,p,b,k,d){function ut(){tt=h;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"==wt(l).protocol?404:0);t(1223===r?204:r,u,f,e||"");n.$$completeOutstandingRequest(o)}var tt,nt,it,g,rt;if(n.$$incOutstandingRequestCount(),l=l||n.url(),"jsonp"==v(s))nt="_"+(u.counter++).toString(36),u[nt]=function(n){u[nt].data=n;u[nt].called=!0},it=c(l.replace("JSON_CALLBACK","angular.callbacks."+nt),nt,function(n,t){ft(y,n,u[nt].data,"",t);u[nt]=o});else{if(g=t(s),g.open(s,l,!0),r(p,function(n,t){f(n)&&g.setRequestHeader(t,n)}),g.onreadystatechange=function(){if(g&&4==g.readyState){var n=null,t=null,i="";tt!==h&&(n=g.getAllResponseHeaders(),t="response"in g?g.response:g.responseText);tt===h&&10>w||(i=g.statusText);ft(y,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&&e(b.then)&&b.then(ut)}}function kh(){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,u,f){function s(n){return"\\\\\\"+n}function o(o,s,p,w){function ot(n){try{var i,t=p?f.getTrusted(p,n):f.valueOf(n);if(null==t)i="";else{switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=pt(t)}i=t}return i}catch(r){n=cf("interr",o,r.toString());u(n)}}var ft;w=!!w;for(var g,tt,k=0,b=[],d=[],it=[],et=o.length,rt=!1,ut=!1,nt=[];k<et;)if(-1!=(g=o.indexOf(n,k))&&-1!=(tt=o.indexOf(t,g+h)))k!==g&&(ut=!0),b.push(o.substring(k,g)),k=o.substring(g+h,tt),d.push(k),it.push(i(k,ot)),k=tt+a,rt=!0;else{k!==et&&(ut=!0,b.push(o.substring(k)));break}if(r(b,function(i,r){b[r]=b[r].replace(v,n).replace(y,t)}),b.length===d.length&&b.push(""),p&&rt&&(ut||1<d.length))throw cf("noconcat",o);if(!s||rt)return nt.length=b.length+d.length,ft=function(n){for(var t=0,i=d.length;t<i;t++){if(w&&c(n[t]))return;nt[2*t]=b[t];nt[2*t+1]=n[t]}return nt[2*i]=b[i],nt.join("")},l(function(n){var t=0,i=d.length,r=Array(i);try{for(;t<i;t++)r[t]=it[t](n);return ft(r)}catch(f){n=cf("interr",o,f.toString());u(n)}},{exp:o,separators:b,expressions:d,$$watchDelegate:function(n,t,i,r){var u;return n.$watchGroup(it,function(i,r){var f=ft(i);e(t)&&t.call(this,f,i!==r?u:f,n);u=f},i,r)}})}var h=n.length,a=t.length,v=RegExp(n.replace(/./g,s),"g"),y=RegExp(t.replace(/./g,s),"g");return o.startSymbol=function(){return n},o.endSymbol=function(){return t},o}]}function dh(){this.$get=["$rootScope","$window","$q","$$q",function(n,t,i,r){function e(e,o,s,h){var y=t.setInterval,p=t.clearInterval,a=0,v=f(h)&&!h,l=(v?r:i).defer(),c=l.promise;return s=f(s)?s:0,c.then(null,null,e),c.$$intervalId=y(function(){l.notify(a++);0<s&&a>=s&&(l.resolve(a),p(c.$$intervalId),delete u[c.$$intervalId]);v||n.$apply()},o),u[c.$$intervalId]=l,c}var u={};return e.cancel=function(n){return n&&n.$$intervalId in u?(u[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete u[n.$$intervalId],!0):!1},e}]}function gh(){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 ku(n){n=n.split("/");for(var t=n.length;t--;)n[t]=lr(n[t]);return n.join("/")}function ve(n,t,i){n=wt(n,i);t.$$protocol=n.protocol;t.$$host=n.hostname;t.$$port=k(n.port)||yl[n.protocol]||null}function ye(n,t,i){var r="/"!==n.charAt(0);r&&(n="/"+n);n=wt(n,i);t.$$path=decodeURIComponent(r&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname);t.$$search=ne(n.search);t.$$hash=decodeURIComponent(n.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function ct(n,t){if(0===t.indexOf(n))return t.substr(n.length)}function bi(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function du(n){return n.substr(0,bi(n).lastIndexOf("/")+1)}function pe(n,t){this.$$html5=!0;t=t||"";var r=du(n);ve(n,this,n);this.$$parse=function(t){var i=ct(r,t);if(!s(i))throw lf("ipthprfx",t,r);ye(i,this,n);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=lu(this.$$search),t=this.$$hash?"#"+lr(this.$$hash):"";this.$$url=ku(this.$$path)+(n?"?"+n:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$rewrite=function(u){var f;return(f=ct(n,u))!==i?(u=f,(f=ct(t,f))!==i?r+(ct("/",f)||f):n+u):(f=ct(r,u))!==i?r+f:r==u+"/"?r:void 0}}function gu(n,t){var i=du(n);ve(n,this,n);this.$$parse=function(r){var u=ct(n,r)||ct(i,r),u="#"==u.charAt(0)?ct(t,u):this.$$html5?u:"",f;if(!s(u))throw lf("ihshprfx",r,t);ye(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?"#"+lr(this.$$hash):"";this.$$url=ku(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+(this.$$url?t+this.$$url:"")};this.$$rewrite=function(t){if(bi(n)==bi(t))return t}}function nf(n,t){this.$$html5=!0;gu.apply(this,arguments);var i=du(n);this.$$rewrite=function(r){var u;return n==bi(r)?r:(u=ct(i,r))?n+t+u:i===r+"/"?i:void 0};this.$$compose=function(){var i=lu(this.$$search),r=this.$$hash?"#"+lr(this.$$hash):"";this.$$url=ku(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+t+this.$$url}}function dr(n){return function(){return this[n]}}function we(n,t){return function(i){return c(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function nc(){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,l,p=f.baseHref(),h=f.url(),c,v;i?(c=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(p||"/"),l=e.history?pe:nf):(c=bi(h),l=gu);s=new l(c,"#"+t);s.$$parse(s.$$rewrite(h));o.on("click",function(i){var v,e,h;if(!i.ctrlKey&&!i.metaKey&&2!=i.which){for(v=u(i.target);"a"!==vt(v[0]);)if(v[0]===o[0]||!(v=v.parent())[0])return;if(e=v.prop("href"),a(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=wt(e.animVal).href),l===nf&&(h=v.attr("href")||v.attr("xlink:href"),0>h.indexOf("://")))if(e="#"+t,"/"==h[0])e=c+e+h;else if("#"==h[0])e=c+e+(s.path()||"/")+h;else{for(var y=s.path().split("/"),h=h.split("/"),p=0;p<h.length;p++)"."!=h[p]&&(".."==h[p]?y.pop():h[p].length&&y.push(h[p]));e=c+e+y.join("/")}y=s.$$rewrite(e);e&&!v.attr("target")&&y&&!i.isDefaultPrevented()&&(i.preventDefault(),y!=f.url()&&(s.$$parse(y),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 v=0,r.$watch(function(){var n=f.url(),t=s.$$replace;return v&&n==s.absUrl()||(v++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",s.absUrl(),n).defaultPrevented?s.$$parse(n):(f.url(s.absUrl(),t),y(n))})),s.$$replace=!1,v}),s}]}function tc(){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||o;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 lt(n,t){if("__defineGetter__"===n||"__defineSetter__"===n||"__lookupGetter__"===n||"__lookupSetter__"===n||"__proto__"===n)throw ot("isecfld",t);return n}function si(n,t){if(n){if(n.constructor===n)throw ot("isecfn",t);if(n.window===n)throw ot("isecwindow",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw ot("isecdom",t);if(n===Object)throw ot("isecobj",t);}return n}function gr(n,t,i,r){var u,e,f;for(t=t.split("."),e=0;1<t.length;e++)u=lt(t.shift(),r),f=n[u],f||(f={},n[u]=f),n=f;return u=lt(t.shift(),r),si(n,r),si(n[u],r),n[u]=i}function be(n,t,r,u,f,e){return lt(n,e),lt(t,e),lt(r,e),lt(u,e),lt(f,e),function(e,o){var s=o&&o.hasOwnProperty(n)?o:e;return null==s?s:(s=s[n],!t)?s:null==s?i:(s=s[t],!r)?s:null==s?i:(s=s[r],!u)?s:null==s?i:(s=s[u],f?null==s?i:s=s[f]:s)}}function ke(n,t,u){var f,o,e;return vf.hasOwnProperty(n)?vf[n]:(f=n.split("."),o=f.length,t.csp?t=6>o?be(f[0],f[1],f[2],f[3],f[4],u):function(n,t){var r=0,e;do e=be(f[r++],f[r++],f[r++],f[r++],f[r++],u)(n,t),t=i,n=e;while(r<o);return e}:(e="var p;\n",r(f,function(n,t){lt(n,u);e+="if(s == null) return undefined;\ns="+(t?"s":'((k&&k.hasOwnProperty("'+n+'"))?k:s)')+"."+n+";\n"}),e+="return s;",t=new Function("s","k",e),t.toString=nt(e)),"hasOwnProperty"!==n&&(vf[n]=t),t)}function ic(){var n={},t={csp:!1};this.$get=["$filter","$sniffer",function(i,r){function s(n,t,i,r,u){var o,s;return o=n.$watch(function(n){return u(n)},function(n,i,r){s=n;e(t)&&t.apply(this,arguments);f(n)&&r.$$postDigest(function(){f(s)&&o()})},i,r)}function h(n,t,i,r,u){var f;return f=n.$watch(function(n){return u(n)},function(){e(t)&&t.apply(this,arguments);f()},i,r)}function u(n,t){if(e(t)){var i=function(i,r){var u=n(i,r),e=t(u,i,r);return f(u)?e:u};return i.$$watchDelegate=n.$$watchDelegate,i}return n}return t.csp=r.csp,function(r,f){var e,l,c=r=b(r);switch(typeof r){case"string":return n.hasOwnProperty(c)?e=n[c]:(":"===r.charAt(0)&&":"===r.charAt(1)&&(l=!0,r=r.substring(2)),e=new af(t),e=new ci(e,i,t).parse(r),e.constant?e.$$watchDelegate=h:l&&(e.$$watchDelegate=s),"hasOwnProperty"!==c&&(n[c]=e)),u(e,f);case"function":return u(r,f);default:return u(o,f)}}}]}function rc(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return de(function(t){n.$evalAsync(t)},t)}]}function uc(){this.$get=["$browser","$exceptionHandler",function(n,t){return de(function(t){n.defer(t)},t)}]}function de(n,t){function f(n){return n}function l(n){return c(n)}var u=function(){var r=[],o,h;return h={resolve:function(t){if(r){var u=r;r=i;o=s(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){h.resolve(v(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,s){var h=u(),c=function(i){try{h.resolve((e(n)?n:f)(i))}catch(r){h.reject(r);t(r)}},a=function(n){try{h.resolve((e(i)?i:l)(n))}catch(r){h.reject(r);t(r)}},v=function(n){try{h.notify((e(s)?s:f)(n))}catch(i){t(i)}};return r?r.push([c,a,v]):o.then(c,a,v),h.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(o){return t(o,!1)}return u&&e(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)})}}}},s=function(t){return t&&e(t.then)?t:{then:function(i){var r=u();return n(function(){r.resolve(i(t))}),r.promise}}},c=function(n){var t=u();return t.reject(n),t.promise},v=function(i){return{then:function(r,f){var o=u();return n(function(){try{o.resolve((e(f)?f:l)(i))}catch(n){o.reject(n);t(n)}}),o.promise}}},o=function a(n){if(!e(n))throw new TypeError("Expected resolverFn");if(!(this instanceof a))return new a(n);var t=u();return n(function(n){t.resolve(n)},function(n){t.reject(n)}),t.promise};return o.defer=u,o.reject=c,o.when=function(i,r,o,h){var v=u(),a,w=function(n){try{return(e(r)?r:f)(n)}catch(i){return t(i),c(i)}},y=function(n){try{return(e(o)?o:l)(n)}catch(i){return t(i),c(i)}},p=function(n){try{return(e(h)?h:f)(n)}catch(i){t(i)}};return n(function(){s(i).then(function(n){a||(a=!0,v.resolve(s(n).then(w,y,p)))},function(n){a||(a=!0,v.resolve(y(n)))},function(n){a||v.notify(p(n))})}),v.promise},o.all=function(n){var i=u(),f=0,t=h(n)?[]:{};return r(n,function(n,r){f++;s(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},o}function fc(){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 ec(){var t=10,i=y("$rootScope"),n=null;this.digestTtl=function(n){return arguments.length&&(t=n),t};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(u,f,s,h){function l(){this.$id=++uu;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 w(n,t){var i=s(n);return yi(i,t),i}function y(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function p(){}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=++uu;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,u){var s=w(t,"watch"),f,h;return s.$$watchDelegate?s.$$watchDelegate(this,i,r,u,s):(f=this.$$watchers,h={fn:i,last:p,get:s,exp:t,eq:!!r},n=null,e(i)||(h.fn=o),f||(f=this.$$watchers=[]),f.unshift(h),function(){fi(f,h);n=null;e(u)&&u()})},$watchGroup:function(n,t){var f=Array(n.length),i=Array(n.length),u=[],o=0,e=this,s;return 1===n.length?this.$watch(n[0],function(n,r,u){i[0]=n;f[0]=r;t.call(this,i,n===r?i:f,u)}):(r(n,function(n,t){var r=e.$watch(n,function(n,r){i[t]=n;f[t]=r;o++},!1,function(){fi(u,r);u.length||s()});u.push(r)},this),s=e.$watch(function(){return o},function(n,r){t(i,n===r?i:f,e)}),function(){for(;u.length;)u[0]()})},$watchCollection:function(n,t){var o=this,i,r,e,v=1<t.length,u=0,y=s(n,function(n){i=n;var t,e;if(a(i))if(hr(i))for(r!==h&&(r=h,f=r.length=0,u++),n=i.length,f!==n&&(u++,r.length=f=n),t=0;t<n;t++)e=r[t]!==r[t]&&i[t]!==i[t],e||r[t]===i[t]||(u++,r[t]=i[t]);else{r!==c&&(r=c={},f=0,u++);n=0;for(t in i)i.hasOwnProperty(t)&&(n++,r.hasOwnProperty(t)?(e=r[t]!==r[t]&&i[t]!==i[t],e||r[t]===i[t]||(u++,r[t]=i[t])):(f++,r[t]=i[t],u++));if(f>n)for(t in u++,r)r.hasOwnProperty(t)&&!i.hasOwnProperty(t)&&(f--,delete r[t])}else r!==i&&(r=i,u++);return u}),h=[],c={},l=!0,f=0;return this.$watch(y,function(){if(l?(l=!1,t(i,i,o)):t(i,e,o),v)if(a(i))if(hr(i)){e=Array(i.length);for(var n=0;n<i.length;n++)e[n]=i[n]}else for(n in e={},i)ff.call(i,n)&&(e[n]=i[n]);else e=i})},$digest:function(){var r,o,s,h,a=this.$$asyncQueue,nt=this.$$postDigestQueue,b,l,k=t,u,y=[],w,d,g;v("$digest");n=null;do{for(l=!1,u=this;a.length;){try{g=a.shift();g.scope.$eval(g.expression)}catch(tt){c.$$phase=null;f(tt)}n=null}n:do{if(h=u.$$watchers)for(b=h.length;b--;)try{if(r=h[b])if((o=r.get(u))===(s=r.last)||(r.eq?yt(o,s):"number"==typeof o&&"number"==typeof s&&isNaN(o)&&isNaN(s))){if(r===n){l=!1;break n}}else l=!0,n=r,r.last=r.eq?ei(o,null):o,r.fn(o,s===p?o:s,u),5>k&&(w=4-k,y[w]||(y[w]=[]),d=e(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,d+="; newVal: "+pt(o)+"; oldVal: "+pt(s),y[w].push(d))}catch(it){c.$$phase=null;f(it)}if(!(h=u.$$childHead||u!==this&&u.$$nextSibling))for(;u!==this&&!(h=u.$$nextSibling);)u=u.$parent}while(u=h);if((l||a.length)&&!k--)throw c.$$phase=null,i("infdig",t,pt(y));}while(l||a.length);for(c.$$phase=null;nt.length;)try{nt.shift()()}catch(rt){f(rt)}},$destroy:function(){if(!this.$$destroyed){var n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==c&&(r(this.$$listenerCount,cu(null,y,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=o,this.$on=this.$watch=this.$watchGroup=function(){return o})}},$eval:function(n,t){return s(n)(this,t)},$evalAsync:function(n){c.$$phase||c.$$asyncQueue.length||h.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(){r[vi(r,t)]=null;y(u,1,n)}},$emit:function(n){var s=[],u,r=this,o=!1,t={name:n,targetScope:r,stopPropagation:function(){o=!0},preventDefault:function(){t.defaultPrevented=!0},defaultPrevented:!1},h=[t].concat(at.call(arguments,1)),i,e;do{for(u=r.$$listeners[n]||s,t.currentScope=r,i=0,e=u.length;i<e;i++)if(u[i])try{u[i].apply(null,h)}catch(c){f(c)}else u.splice(i,1),i--,e--;if(o)return t.currentScope=null,t;r=r.$parent}while(r);return t.currentScope=null,t},$broadcast:function(n){for(var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},o=[u].concat(at.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.currentScope=null,u}};var c=new l;return c}]}function oc(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*(https?|ftp|file|blob):|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(!w||8<=w)&&(u=wt(i).href,""!==u&&!u.match(f))?"unsafe:"+u:i}}}function sc(n){if("self"===n)return n;if(s(n)){if(-1<n.indexOf("***"))throw dt("iwcard",n);return n=n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),RegExp("^"+n+"$")}if(cr(n))return RegExp("^"+n.source+"$");throw dt("imatcher");}function ge(n){var t=[];return f(n)&&r(n,function(n){t.push(sc(n))}),t}function hc(){this.SCE_CONTEXTS=rt;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=ge(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=ge(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 dt("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 dt("icontext",n,t);if(null===t||t===i||""===t)return t;if("string"!=typeof t)throw dt("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=wt(f.toString()),h=!1,e=0,c=n.length;e<c;e++)if("self"===n[e]?tf(s):n[e].exec(s.href)){h=!0;break}if(h)for(e=0,c=t.length;e<c;e++)if("self"===t[e]?tf(s):t[e].exec(s.href)){h=!1;break}if(h)return f;throw dt("insecurl",f.toString());}if(r===rt.HTML)return o(f);throw dt("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function cc(){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 dt("iequirks");f=ut(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=ri);f.parseAs=function(n,i){var r=t(i);return r.literal&&r.constant?r:t(i,function(t){return f.getTrusted(n,t)})};var e=f.parseAs,o=f.getTrusted,s=f.trustAs;return r(rt,function(n,t){var i=v(t);f[pi("parse_as_"+i)]=function(t){return e(n,t)};f[pi("get_trusted_"+i)]=function(t){return o(n,t)};f[pi("trust_as_"+i)]=function(t){return s(n,t)}}),f}]}function lc(){this.$get=["$window","$document",function(n,t){var o={},h=k((/android (\d+)/.exec(v((n.navigator||{}).userAgent))||[])[1]),y=/Boxee/i.test((n.navigator||{}).userAgent),u=t[0]||{},l=u.documentMode,i,r=u.body&&u.body.style,f=!1,e=!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);e=!!("animation"in r||i+"Animation"in r);!h||f&&e||(f=s(u.body.style.webkitTransition),e=s(u.body.style.webkitAnimation))}return{history:!(!n.history||!n.history.pushState||4>h||y),hashchange:"onhashchange"in n&&(!l||7<l),hasEvent:function(n){if("input"==n&&9==w)return!1;if(c(o[n])){var t=u.createElement("div");o[n]="on"+n in t}return o[n]},csp:ir(),vendorPrefix:i,transitions:f,animations:e,android:h,msie:w,msieDocumentMode:l}}]}function ac(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,r,u){function o(o,s,h){var a=f(h)&&!h,c=(a?r:i).defer(),l=c.promise;return s=t.defer(function(){try{c.resolve(o())}catch(t){c.reject(t);u(t)}finally{delete e[l.$$timeoutId]}a||n.$apply()},s),l.$$timeoutId=s,e[s]=c,l}var e={};return o.cancel=function(n){return n&&n.$$timeoutId in e?(e[n.$$timeoutId].reject("canceled"),delete e[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},o}]}function wt(n){var t=n;return w&&(g.setAttribute("href",t),t=g.href),g.setAttribute("href",t),{href:g.href,protocol:g.protocol?g.protocol.replace(/:$/,""):"",host:g.host,search:g.search?g.search.replace(/^\?/,""):"",hash:g.hash?g.hash.replace(/^#/,""):"",hostname:g.hostname,port:g.port,pathname:"/"===g.pathname.charAt(0)?g.pathname:"/"+g.pathname}}function tf(n){return n=s(n)?wt(n):n,n.protocol===yo.protocol&&n.host===yo.host}function vc(){this.$get=nt(n)}function no(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",to);t("date",eo);t("filter",yc);t("json",pc);t("limitTo",wc);t("lowercase",wo);t("number",io);t("orderBy",oo);t("uppercase",bo)}function yc(){return function(n,t,i){var u,r,e,f,o;if(!h(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 nr.equals(n,t)}:function(n,t){if(n&&t&&"object"==typeof n&&"object"==typeof t){for(var r in n)if("$"!==r.charAt(0)&&ff.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++)o=n[f],r.check(o)&&u.push(o);return u}}function to(n){var t=n.NUMBER_FORMATS;return function(n,i){return c(i)&&(i=t.CURRENCY_SYM),ro(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,i)}}function io(n){var t=n.NUMBER_FORMATS;return function(n,i){return ro(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function ro(n,t,i,r,u){var l,s;if(null==n||!isFinite(n)||a(n))return"";l=0>n;n=Math.abs(n);var f=n+"",o="",h=[],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(po)[1]||"").length;c(u)&&(u=Math.min(Math.max(t.minFrac,f),t.maxFrac));n=+(Math.round(+(n.toString()+"e"+u)).toString()+"e"+-u);n=(""+n).split(po);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 h.push(l?t.negPre:t.posPre),h.push(o),h.push(l?t.negSuf:t.posSuf),h.join("")}function nu(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 d(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),nu(u,t,r)}}function tu(n,t){return function(i,r){var u=i["get"+n](),f=ru(t?"SHORT"+n:n);return r[f][u]}}function uo(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(4>=t?5:12)-t)}function fo(n){return function(t){var i=uo(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+i,t=1+Math.round(t/6048e5),nu(t,n)}}function eo(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=k(t[9]+t[10]),u=k(t[9]+t[11]));f.call(n,k(t[1]),k(t[2])-1,k(t[3]));r=k(t[4]||0)-r;u=k(t[5]||0)-u;f=k(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 o="",f=[],e,h;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,s(i)&&(i=na.test(i)?k(i):t(i)),ui(i)&&(i=new Date(i)),!tt(i))return i;for(;u;)(h=gl.exec(u))?(f=f.concat(at.call(h,1)),u=f.pop()):(f.push(u),u=null);return r(f,function(t){e=dl[t];o+=e?e(i,n.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),o}}function pc(){return function(n){return pt(n,!0)}}function wc(){return function(n,t){if(!h(n)&&!s(n))return n;if(t=Infinity===Math.abs(Number(t))?Number(t):k(t),s(n))return t?0<=t?n.slice(0,t):n.slice(t,n.length):"";var u=[],i,r;for(t>n.length?t=n.length:t<-n.length&&(t=-n.length),0<t?(i=0,r=t):(i=n.length+t,r=n.length);i<r;i++)u.push(n[i]);return u}}function oo(n){return function(t,i,r){function u(n,t){return t?function(t,i){return n(i,t)}:n}function e(n,t){var i=typeof n,r=typeof t;return i==r?(tt(n)&&tt(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}if(!h(t)||!i)return t;i=h(i)?i:[i];i=ps(i,function(t){var r=!1,i=t||ri,f;return s(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(r="-"==t.charAt(0),t=t.substring(1)),i=n(t),i.constant)?(f=i(),u(function(n,t){return e(n[f],t[f])},r)):u(function(n,t){return e(i(n),i(t))},r)});for(var o=[],f=0;f<t.length;f++)o.push(t[f]);return o.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))}}function bt(n){return e(n)&&(n={link:n}),n.restrict=n.restrict||"AC",nt(n)}function so(n,t,i,u){function e(t,i){i=i?"-"+ar(i,"-"):"";u.removeClass(n,(t?su:ou)+i);u.addClass(n,(t?ou:su)+i)}var f=this,s=n.parent().controller("form")||sr,h=0,c=f.$error={},o=[];f.$name=t.name||t.ngForm;f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;s.$addControl(f);n.addClass(li);e(!0);f.$rollbackViewValue=function(){r(o,function(n){n.$rollbackViewValue()})};f.$commitViewValue=function(){r(o,function(n){n.$commitViewValue()})};f.$addControl=function(n){ni(n.$name,"input");o.push(n);n.$name&&(f[n.$name]=n)};f.$removeControl=function(n){n.$name&&f[n.$name]===n&&delete f[n.$name];r(c,function(t,i){f.$setValidity(i,!0,n)});fi(o,n)};f.$setValidity=function(n,t,i){var r=c[n];if(t)r&&(fi(r,i),r.length||(h--,h||(e(t),f.$valid=!0,f.$invalid=!1),c[n]=!1,e(!0,n),s.$setValidity(n,!0,f)));else{if(h||e(t),r){if(-1!=vi(r,i))return}else c[n]=r=[],h++,e(!1,n),s.$setValidity(n,!1,f);r.push(i);f.$valid=!1;f.$invalid=!0}};f.$setDirty=function(){u.removeClass(n,li);u.addClass(n,hu);f.$dirty=!0;f.$pristine=!1;s.$setDirty()};f.$setPristine=function(){u.removeClass(n,hu);u.addClass(n,li);f.$dirty=!1;f.$pristine=!0;r(o,function(n){n.$setPristine()})}}function rf(n,t,r,u){return n.$setValidity(t,r),r?u:i}function ho(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 bc(n,t,i,r,u){a(u)&&(n.$$hasNativeValidators=!0,n.$parsers.push(function(f){if(n.$error[t]||ho(u,r)||!ho(u,i))return f;n.$setValidity(t,!1)}))}function ki(n,t,i,r,u,f){var c=t.prop(dc),l=t[0].placeholder,a={},o,e,s,h;if(r.$$validityState=c,!u.android){o=!1;t.on("compositionstart",function(){o=!0});t.on("compositionend",function(){o=!1;e()})}if(e=function(u){var f,s,e;o||(f=t.val(),s=u&&u.type,w&&"input"===(u||a).type&&t[0].placeholder!==l?l=t[0].placeholder:(i.ngTrim&&"false"===i.ngTrim||(f=b(f)),e=c&&r.$$hasNativeValidators,(r.$viewValue!==f||""===f&&e)&&(n.$$phase?r.$setViewValue(f,s,e):n.$apply(function(){r.$setViewValue(f,s,e)}))))},u.hasEvent("input"))t.on("input",e);else{h=function(n){s||(s=f.defer(function(){e(n);s=null}))};t.on("keydown",function(n){var t=n.keyCode;91===t||15<t&&19>t||37<=t&&40>=t||h(n)});if(u.hasEvent("paste"))t.on("paste cut",h)}t.on("change",e);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function iu(n,t){return function(i){var u;return tt(i)?i:s(i)&&(n.lastIndex=0,i=n.exec(i))?(i.shift(),u={yyyy:0,MM:1,dd:1,HH:0,mm:0},r(i,function(n,i){i<t.length&&(u[t[i]]=+n)}),new Date(u.yyyy,u.MM-1,u.dd,u.HH,u.mm)):NaN}}function di(n,t,r,u){return function(f,e,o,s,h,c,l){ki(f,e,o,s,h,c);s.$parsers.push(function(u){return s.$isEmpty(u)?(s.$setValidity(n,!0),null):t.test(u)?(s.$setValidity(n,!0),r(u)):(s.$setValidity(n,!1),i)});s.$formatters.push(function(n){return tt(n)?l("date")(n,u):""});o.min&&(f=function(n){var t=s.$isEmpty(n)||r(n)>=r(o.min);return s.$setValidity("min",t),t?n:i},s.$parsers.push(f),s.$formatters.push(f));o.max&&(f=function(n){var t=s.$isEmpty(n)||r(n)<=r(o.max);return s.$setValidity("max",t),t?n:i},s.$parsers.push(f),s.$formatters.push(f))}}function co(n,t,i,r,u){if(f(r)){if(n=n(r),!n.constant)throw new y("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",i,r);return n(t)}return u}function uf(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(!h(n)){if(s(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(!yt(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=ut(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 kc=/^\/(.+)\/([a-z]*)$/,dc="validity",v=function(n){return s(n)?n.toLowerCase():n},ff=Object.prototype.hasOwnProperty,ru=function(n){return s(n)?n.toUpperCase():n},w,u,kt,at=[].slice,lo=[].push,ti=Object.prototype.toString,gi=y("ng"),nr=n.angular||(n.angular={}),tr,vt,uu=0,h,b,ii,fr,sf,hf,ci,wo,bo,ko,or,sr;w=k((/msie (\d+)/.exec(v(navigator.userAgent))||[])[1]);isNaN(w)&&(w=k((/trident\/.*; rv:(\d+)/.exec(v(navigator.userAgent))||[])[1]));o.$inject=[];ri.$inject=[];h=function(){return e(Array.isArray)?Array.isArray:function(n){return"[object Array]"===ti.call(n)}}();b=function(){return String.prototype.trim?function(n){return s(n)?n.trim():n}:function(n){return s(n)?n.replace(/^\s\s*/,"").replace(/\s\s*$/,""):n}}();vt=9>w?function(n){return n=n.nodeName?n:n[0],v(n.scopeName&&"HTML"!=n.scopeName?n.scopeName+":"+n.nodeName:n.nodeName)}:function(n){return v(n.nodeName?n.nodeName:n[0].nodeName)};var ir=function(){if(f(ir.isActive_))return ir.isActive_;var n=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!n)try{new Function("")}catch(i){n=!0}return ir.isActive_=n},fu=["ng-","data-ng-","ng:","x-ng-"],gc=/[A-Z]/g,nl={full:"1.3.0-beta.17",major:1,minor:3,dot:0,codeName:"turing-autocompletion"};p.expando="ng339";var rr=p.cache={},tl=1,eu=n.document.addEventListener?function(n,t,i){n.addEventListener(t,i,!1)}:function(n,t,i){n.attachEvent("on"+t,i)},ur=n.document.removeEventListener?function(n,t,i){n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent("on"+t,i)};p._data=function(n){return this.cache[n[this.expando]]||{}};var il=/([\:\-\_]+(.))/g,rl=/^moz([A-Z])/,ef=y("jqLite"),ul=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,of=/<|&#?\w+;/,fl=/<([\w:]+)/,el=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,it={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,"",""]};it.optgroup=it.option;it.tbody=it.tfoot=it.colgroup=it.caption=it.thead;it.th=it.td;ii=p.prototype={ready:function(i){function r(){u||(u=!0,i())}var u=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),p(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:lo,sort:[].sort,splice:[].splice};fr={};r("multiple selected checked disabled readOnly required open".split(" "),function(n){fr[v(n)]=n});sf={};r("input select option textarea button form details".split(" "),function(n){sf[n]=!0});hf={ngMinlength:"minlength",ngMaxlength:"maxlength",ngPattern:"pattern"};r({data:yu,removeData:pr},function(n,t){p[t]=n});r({data:yu,inheritedData:kr,scope:function(n){return u.data(n,"$scope")||kr(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return u.data(n,"$isolateScope")||u.data(n,"$isolateScopeNoTemplate")},controller:fe,injector:function(n){return kr(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:pu,css:function(n,t,r){if(t=pi(t),f(r))n.style[t]=r;else{var u;return 8>=w&&(u=n.currentStyle&&n.currentStyle[t],""===u&&(u="auto")),u=u||n.style[t],8>=w&&(u=""===u?i:u),u}},attr:function(n,t,r){var u=v(t);if(fr[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)||o).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 n(n,t){if(c(t)){var i=n.nodeType;return 1===i||3===i?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,t){if(c(t)){if(n.multiple&&"select"===vt(n)){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(c(t))return n.innerHTML;yr(n,!0);n.innerHTML=t},empty:ee},function(n,t){p.prototype[t]=function(t,r){var u,f,e=this.length,o;if(n!==ee&&(2==n.length&&n!==pu&&n!==fe?t:r)===i){if(a(t)){for(u=0;u<e;u++)if(n===yu)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:pr,on:function ol(n,i,u,e){if(f(e))throw ef("onargs");if(!n.nodeType||1===n.nodeType||9===n.nodeType){var o=st(n,"events"),s=st(n,"handle");o||st(n,"events",o={});s||st(n,"handle",s=rh(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]=[],ol(n,{mouseleave:"mouseout",mouseenter:"mouseover"}[i],function(n){var t=n.relatedTarget;t&&(t===this||f(this,t))||s(n,i)})):(eu(n,i,s),o[i]=[]),r=o[i]);r.push(u)})}},off:re,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;yr(n);r(new p(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 p(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 p(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){yr(n);var t=n.parentNode;t&&t.removeChild(n)},after:function(n,t){var i=n,u=n.parentNode;r(new p(t),function(n){u.insertBefore(n,i.nextSibling);i=n})},addClass:br,removeClass:wr,toggleClass:function(n,t,i){t&&r(t.split(" "),function(t){var r=i;c(r)&&(r=!pu(n,t));(r?br:wr)(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:vu,triggerHandler:function(n,t,i){t=(st(n,"events")||{})[t];t=ut(t||[]);i=i||[];var u=[{preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopPropagation:o}];r(t,function(t){t.apply(n,u.concat(i))})}},function(n,t){p.prototype[t]=function(t,i,r){for(var e,o=0;o<this.length;o++)c(e)?(e=n(this[o],t,i,r),f(e)&&(e=u(e))):ue(e,n(this[o],t,i,r));return f(e)?e:this};p.prototype.bind=p.prototype.on;p.prototype.unbind=p.prototype.off});wi.prototype={put:function(n,t){this[oi(n,this.nextUid)]=t},get:function(n){return this[oi(n,this.nextUid)]},remove:function(n){var t=this[n=oi(n,this.nextUid)];return delete this[n],t}};var ao=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,sl=/,/,hl=/^\s*(_?)(\S+?)\1\s*$/,vo=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,hi=y("$injector");bu.$$annotate=wu;var cl=y("$animate"),ll=["$provide",function(n){this.$$selectors={};this.register=function(t,i){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw cl("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){return r?r.after(n):i.prepend(n),u&&t(u),o},leave:function(n,i){return n.remove(),i&&t(i),o},move:function(n,t,i,r){return this.enter(n,t,i,r)},addClass:function(n,i,u){return i=s(i)?i:h(i)?i.join(" "):"",r(n,function(n){br(n,i)}),u&&t(u),o},removeClass:function(n,i,u){return i=s(i)?i:h(i)?i.join(" "):"",r(n,function(n){wr(n,i)}),u&&t(u),o},setClass:function(n,i,u,f){return r(n,function(n){br(n,i);wr(n,u)}),f&&t(f),o},enabled:o}}]}],et=y("$compile");se.$inject=["$provide","$$sanitizeUriProvider"];var al=/^(x[\:\-_]|data[\:\-_])/i,cf=y("$interpolate"),vl=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,yl={http:80,https:443,ftp:21},lf=y("$location");nf.prototype=gu.prototype=pe.prototype={$$html5:!1,$$replace:!1,absUrl:dr("$$absUrl"),url:function(n,t){if(c(n))return this.$$url;var i=vl.exec(n);return i[1]&&this.path(decodeURIComponent(i[1])),(i[2]||i[1])&&this.search(i[3]||""),this.hash(i[5]||"",t),this},protocol:dr("$$protocol"),host:dr("$$host"),port:dr("$$port"),path:we("$$path",function(n){return"/"==n.charAt(0)?n:"/"+n}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(s(n))this.$$search=ne(n);else if(a(n))r(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw lf("isrcharg");break;default:c(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:we("$$hash",ri),replace:function(){return this.$$replace=!0,this}};var ot=y("$parse"),pl=Function.prototype.call,wl=Function.prototype.apply,bl=Function.prototype.bind,er={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:o,"+":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)},"=":o,"===":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)}},kl={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},af=function(n){this.options=n};af.prototype={constructor:af,lex:function(n){for(this.text=n,this.index=0,this.ch=i,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++;else{n=this.ch+this.peek();var t=n+this.peek(2),r=er[this.ch],u=er[n],f=er[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)}return this.tokens},is:function(n){return-1!==n.indexOf(this.ch)},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 ot("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,constant:!0,fn:function(){return n}})},readIdent:function(){for(var e,o=this,n="",i=this.index,r,u,f,t;this.index<this.text.length;){if(t=this.text.charAt(this.index),"."===t||this.isIdent(t)||this.isNumber(t))"."===t&&(r=this.index),n+=t;else break;this.index++}if(r)for(u=this.index;u<this.text.length;){if(t=this.text.charAt(u),"("===t){f=n.substr(r-i+1);n=n.substr(0,r-i);this.index=u;break}if(this.isWhitespace(t))u++;else break}i={index:i,text:n};er.hasOwnProperty(n)?(i.fn=er[n],i.constant=!0):(e=ke(n,this.options,this.text),i.fn=l(function(n,t){return e(n,t)},{assign:function(t,i){return gr(t,n,i,o.text)}}));this.tokens.push(i);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+=kl[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,string:r,constant:!0,fn:function(){return r}});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};ci=function(n,t,i){this.lexer=n;this.$filter=t;this.options=i};ci.ZERO=l(function(){return 0},{constant:!0});ci.prototype={constructor:ci,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),t.constant&&(n.constant=!0,n.literal=!0));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 ot("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},peekToken:function(){if(0===this.tokens.length)throw ot("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 l(function(i,r){return n(i,r,t)},{constant:t.constant})},ternaryFn:function(n,t,i){return l(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 l(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 t=this.expect(),i=this.$filter(t.text),n=[];this.expect(":");)n.push(this.expression());return nt(function(t,r,u){u=[u];for(var f=0;f<n.length;f++)u.push(n[f](t,r));return i.apply(t,u)})},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.ternary(),i=this.expect(":"))return this.ternaryFn(n,t,this.ternary());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(ci.ZERO,n.fn,this.unary()):(n=this.expect("!"))?this.unaryFn(n.fn,this.unary()):this.primary()},fieldAccess:function(n){var i=this,t=this.expect().text,r=ke(t,this.options,this.text);return l(function(t,i,u){return r(u||n(t,i))},{assign:function(r,u,f){return gr(n(r,f),t,u,i.text)}})},objectIndex:function(n){var t=this,r=this.expression();return this.consume("]"),l(function(u,f){var e=n(u,f),o=r(u,f);return lt(o,t.text),e?si(e[o],t.text):i},{assign:function(i,u,f){var e=r(i,f);return si(n(i,f),t.text)[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,s=[],h=t?t(u,f):u,e=0;e<r.length;e++)s.push(r[e](u,f));if(e=n(u,f,h)||o,si(h,i.text),c=i.text,e){if(e.constructor===e)throw ot("isecfn",c);if(e===pl||e===wl||e===bl)throw ot("isecff",c);}return s=e.apply?e.apply(h,s):e(s[0],s[1],s[2],s[3],s[4]),si(s,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("]"),l(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("}"),l(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 vf={},dt=y("$sce"),rt={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},g=t.createElement("a"),yo=wt(n.location.href,!0);no.$inject=["$provide"];to.$inject=["$locale"];io.$inject=["$locale"];var po=".",dl={yyyy:d("FullYear",4),yy:d("FullYear",2,0,!0),y:d("FullYear",1),MMMM:tu("Month"),MMM:tu("Month",!0),MM:d("Month",2,1),M:d("Month",1,1),dd:d("Date",2),d:d("Date",1),HH:d("Hours",2),H:d("Hours",1),hh:d("Hours",2,-12),h:d("Hours",1,-12),mm:d("Minutes",2),m:d("Minutes",1),ss:d("Seconds",2),s:d("Seconds",1),sss:d("Milliseconds",3),EEEE:tu("Day"),EEE:tu("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?"+":"")+(nu(Math[0<n?"floor":"ceil"](n/60),2)+nu(Math.abs(n%60),2))},ww:fo(2),w:fo(1)},gl=/((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|w+))(.*)/,na=/^\-?\d+$/;eo.$inject=["$locale"];wo=nt(v);bo=nt(ru);oo.$inject=["$parse"];ko=nt({restrict:"E",compile:function(n,i){return 8>=w&&(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]"===ti.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}:void 0}});or={};r(fr,function(n,t){if("multiple"!=n){var i=ht("ng-"+t);or[i]=function(){return{restrict:"A",priority:100,link:function(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}}}}});r(hf,function(n,t){or[t]=function(){return{priority:100,link:function(n,i,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)&&(i=r.ngPattern.match(kc))){r.$set("ngPattern",RegExp(i[1],i[2]));return}n.$watch(r[t],function(n){r.$set(t,n)})}}}});r(["src","srcset","href"],function(n){var t=ht("ng-"+n);or[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===ti.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),w&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});sr={$addControl:o,$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o};so.$inject=["$element","$attrs","$scope","$animate"];var go=function(n){return["$timeout",function(t){return{name:"form",restrict:n?"EAC":"E",controller:so,compile:function(){return{pre:function(n,r,u,f){var o,s,e;if(!u.action){o=function(t){n.$apply(function(){f.$commitViewValue()});t.preventDefault?t.preventDefault():t.returnValue=!1};eu(r[0],"submit",o);r.on("$destroy",function(){t(function(){ur(r[0],"submit",o)},0,!1)})}if(s=r.parent().controller("form"),e=u.name||u.ngForm,e&&gr(n,e,f,e),s)r.on("$destroy",function(){s.$removeControl(f);e&&gr(n,e,i,e);l(f,sr)})}}}}}]},ta=go(),ia=go(!0),ra=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,ua=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,fa=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,ns=/^(\d{4})-(\d{2})-(\d{2})$/,ts=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)$/,yf=/^(\d{4})-W(\d\d)$/,is=/^(\d{4})-(\d\d)$/,rs=/^(\d\d):(\d\d)$/,ea=/(\s+|^)default(\s+|$)/,us={text:ki,date:di("date",ns,iu(ns,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":di("datetimelocal",ts,iu(ts,["yyyy","MM","dd","HH","mm"]),"yyyy-MM-ddTHH:mm"),time:di("time",rs,iu(rs,["HH","mm"]),"HH:mm"),week:di("week",yf,function(n){var t;if(tt(n))return n;if(s(n)&&(yf.lastIndex=0,t=yf.exec(n),t)){n=+t[1];var i=+t[2],t=uo(n),i=7*(i-1);return new Date(n,0,t.getDate()+i)}return NaN},"yyyy-Www"),month:di("month",is,iu(is,["yyyy","MM"]),"yyyy-MM"),number:function(n,t,r,u,f,e){ki(n,t,r,u,f,e);u.$parsers.push(function(n){var t=u.$isEmpty(n);return t||fa.test(n)?(u.$setValidity("number",!0),""===n?null:t?n:parseFloat(n)):(u.$setValidity("number",!1),i)});bc(u,"number",oa,null,u.$$validityState);u.$formatters.push(function(n){return u.$isEmpty(n)?"":""+n});r.min&&(n=function(n){var t=parseFloat(r.min);return rf(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 rf(u,"max",u.$isEmpty(n)||n<=t,n)},u.$parsers.push(n),u.$formatters.push(n));u.$formatters.push(function(n){return rf(u,"number",u.$isEmpty(n)||ui(n),n)})},url:function(n,t,i,r,u,f){ki(n,t,i,r,u,f);r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||ra.test(i)}},email:function(n,t,i,r,u,f){ki(n,t,i,r,u,f);r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||ua.test(i)}},radio:function(n,t,i,r){c(i.name)&&t.attr("name",++uu);t.on("click",function(u){t[0].checked&&n.$apply(function(){r.$setViewValue(i.value,u&&u.type)})});r.$render=function(){t[0].checked=i.value==r.$viewValue};i.$observe("value",r.$render)},checkbox:function(n,t,i,r,u,f,e,o){var s=co(o,n,"ngTrueValue",i.ngTrueValue,!0),h=co(o,n,"ngFalseValue",i.ngFalseValue,!1);t.on("click",function(i){n.$apply(function(){r.$setViewValue(t[0].checked,i&&i.type)})});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n!==s};r.$formatters.push(function(n){return yt(n,s)});r.$parsers.push(function(n){return n?s:h})},hidden:o,button:o,submit:o,reset:o,file:o},oa=["badInput"],fs=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:function(u,f,e,o){o[0]&&(us[v(e.type)]||us.text)(u,f,e,o[0],t,n,i,r)}}}],ou="ng-valid",su="ng-invalid",li="ng-pristine",hu="ng-dirty",sa=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout",function(n,t,u,s,h,l,a){function p(n,t){t=t?"-"+ar(t,"-"):"";l.removeClass(s,(n?su:ou)+t);l.addClass(s,(n?ou:su)+t)}this.$modelValue=this.$viewValue=Number.NaN;this.$validators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$name=u.name;var b=h(u.ngModel),g=b.assign,w=null,v=this;if(!g)throw y("ngModel")("nonassign",u.ngModel,ft(s));this.$render=o;this.$isEmpty=function(n){return c(n)||""===n||null===n||n!==n};var nt=s.inheritedData("$formController")||sr,k=0,d=this.$error={};s.addClass(li).addClass("ng-untouched");p(!0);this.$setValidity=function(n,t){d[n]!==!t&&(t?(d[n]&&k--,k||(p(!0),v.$valid=!0,v.$invalid=!1)):(p(!1),v.$invalid=!0,v.$valid=!1,k++),d[n]=!t,p(t,n),nt.$setValidity(n,t,v))};this.$setPristine=function(){v.$dirty=!1;v.$pristine=!0;l.removeClass(s,hu);l.addClass(s,li)};this.$setUntouched=function(){v.$touched=!1;v.$untouched=!0;l.setClass(s,"ng-untouched","ng-touched")};this.$setTouched=function(){v.$touched=!0;v.$untouched=!1;l.setClass(s,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){a.cancel(w);v.$viewValue=v.$$lastCommittedViewValue;v.$render()};this.$validate=function(){if(v.$modelValue===v.$modelValue){var n=v.$modelValue;v.$$runValidators(v.$$invalidModelValue||v.$modelValue,v.$viewValue);n!==v.$modelValue&&v.$$writeModelToScope()}};this.$$runValidators=function(n,t){r(v.$validators,function(i,r){v.$setValidity(r,i(n,t))});v.$modelValue=v.$valid?n:i;v.$$invalidModelValue=v.$valid?i:n};this.$commitViewValue=function(n){var i=v.$viewValue,t;a.cancel(w);(n||v.$$lastCommittedViewValue!==i)&&(v.$$lastCommittedViewValue=i,v.$pristine&&(v.$dirty=!0,v.$pristine=!1,l.removeClass(s,li),l.addClass(s,hu),nt.$setDirty()),t=i,r(v.$parsers,function(n){t=n(t)}),v.$modelValue!==t&&(c(v.$$invalidModelValue)||v.$$invalidModelValue!=t)&&(v.$$runValidators(t,i),v.$$writeModelToScope()))};this.$$writeModelToScope=function(){var i;v.$options&&v.$options.getterSetter&&e(i=b(n))?i(v.$modelValue):g(n,v.$modelValue);r(v.$viewChangeListeners,function(n){try{n()}catch(i){t(i)}})};this.$setViewValue=function(n,t,i){v.$viewValue=n;v.$options&&!v.$options.updateOnDefault||v.$$debounceViewValueCommit(t,i)};this.$$debounceViewValueCommit=function(n,t){var r=0,i=v.$options;i&&f(i.debounce)&&(i=i.debounce,ui(i)?r=i:ui(i[n])?r=i[n]:ui(i["default"])&&(r=i["default"]));a.cancel(w);r?w=a(function(){v.$commitViewValue(t)},r):v.$commitViewValue(t)};n.$watch(function(){var t=b(n);if(v.$options&&v.$options.getterSetter&&e(t)&&(t=t()),v.$modelValue!==t&&(c(v.$$invalidModelValue)||v.$$invalidModelValue!=t)){for(var r=v.$formatters,u=r.length,i=t;u--;)i=r[u](i);v.$$runValidators(t,i);v.$viewValue!==i&&(v.$viewValue=v.$$lastCommittedViewValue=i,v.$render())}return t})}],ha=function(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:sa,link:{pre:function(n,t,i,r){r[2]&&(r[0].$options=r[2].$options);var u=r[0],f=r[1]||sr;f.$addControl(u);n.$on("$destroy",function(){f.$removeControl(u)})},post:function(n,t,i,r){var u=r[0];if(u.$options&&u.$options.updateOn)t.on(u.$options.updateOn,function(t){n.$apply(function(){u.$$debounceViewValueCommit(t&&t.type)})});t.on("blur",function(){n.$apply(function(){u.$setTouched()})})}}}},ca=nt({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),es=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},os=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,r,u){if(u){var f,e=r.ngPattern||r.pattern;r.$observe("pattern",function(n){if(s(n)&&0<n.length&&(n=RegExp(n)),n&&!n.test)throw y("ngPattern")("noregexp",e,n,ft(t));f=n||i;u.$validate()});u.$validators.pattern=function(n){return u.$isEmpty(n)||c(f)||f.test(n)}}}}},ss=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("maxlength",function(n){u=k(n)||0;r.$validate()});r.$validators.maxlength=function(n){return r.$isEmpty(n)||n.length<=u}}}}},hs=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=k(n)||0;r.$validate()});r.$validators.minlength=function(n){return r.$isEmpty(n)||n.length>=u}}}}},la=function(){return{restrict:"A",require:"ngModel",link:function(n,t,u,f){var e=t.attr(u.$attr.ngList)||", ",o="false"!==u.ngTrim,s=o?b(e):e;f.$parsers.push(function(n){if(!c(n)){var t=[];return n&&r(n.split(s),function(n){n&&t.push(o?b(n):n)}),t}});f.$formatters.push(function(n){return h(n)?n.join(e):i});f.$isEmpty=function(n){return!n||!n.length}}}},aa=/^(true|false|\d+)$/,va=function(){return{restrict:"A",priority:100,compile:function(n,t){return aa.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)})}}}},ya=function(){return{restrict:"A",controller:["$scope","$attrs",function(n,t){var r=this;this.$options=n.$eval(t.ngModelOptions);this.$options.updateOn!==i?(this.$options.updateOnDefault=!1,this.$options.updateOn=b(this.$options.updateOn.replace(ea,function(){return r.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},pa=bt({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)})}}}),wa=["$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)})}}],ba=["$sce","$parse",function(n,t){return{restrict:"A",compile:function(i){return i.addClass("ng-binding"),function(i,r,u){r.data("$binding",u.ngBindHtml);var f=t(u.ngBindHtml);u=t(u.ngBindHtml,function(n){return(n||"").toString()});i.$watch(u,function(){r.html(n.getTrustedHtml(f(i))||"")})}}}}],ka=uf("",!0),da=uf("Odd",0),ga=uf("Even",1),nv=bt({compile:function(n,t){t.$set("ngCloak",i);n.removeClass("ng-cloak")}}),tv=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],cs={};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=ht("ng-"+n);cs[t]=["$parse",function(i){return{restrict:"A",compile:function(r,u){var f=i(u[t]);return function(t,i){i.on(v(n),function(n){t.$apply(function(){f(t,{$event:n})})})}}}}]});var iv=["$animate",function(n){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.createComment(" end ngIf: "+u.ngIf+" ");h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=vr(h.clone),n.leave(o,function(){o=null}),h=null))})}}}],rv=["$http","$templateCache","$anchorScroll","$animate","$sce",function(n,t,i,r,u){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:nr.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("$includeContentError"))}),e.$emit("$includeContentRequested")):(k(),a.template=null)})}}}}],uv=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,i,r,u){i.html(u.template);n(i.contents())(t)}}}],fv=bt({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),ev=bt({terminal:!0,priority:1e3}),ov=["$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))},function(n){f.text(n)})}}}],sv=["$parse","$animate",function(n,i){var f=y("ngRepeat");return{restrict:"A",multiElement:!0,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+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),d,w,b,g,nt,k,v,p={$id:oi},a;if(!l)throw f("iexp",y);if(s=l[1],h=l[2],w=l[3],(l=l[4])?(d=n(l),b=function(n,t,i){return v&&(p[v]=n),p[k]=t,p.$index=i,d(e,p)}):(g=function(n,t){return oi(t)},nt=function(n){return n}),l=s.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!l)throw f("iidexp",s);k=l[3]||l[1];v=l[2];a={};e.$watchCollection(h,function(n){var s,l,rt=o[0],tt,ft={},ht,ut,et,d,ot,p,h,it=[],st;if(w&&(e[w]=n),st=function(n,t){n[k]=et;v&&(n[v]=ut);n.$index=t;n.$first=0===t;n.$last=t===ht-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=0==(t&1))},hr(n))p=n,ot=b||g;else{ot=b||nt;p=[];for(l in n)n.hasOwnProperty(l)&&"$"!=l.charAt(0)&&p.push(l);p.sort()}for(ht=p.length,l=it.length=p.length,s=0;s<l;s++)if(ut=n===p?s:p[s],et=n[ut],d=ot(ut,et,s),ni(d,"`track by` id"),a.hasOwnProperty(d))h=a[d],delete a[d],ft[d]=h,it[s]=h;else{if(ft.hasOwnProperty(d))throw r(it,function(n){n&&n.scope&&(a[n.id]=n)}),f("dupes",y,d);it[s]={id:d};ft[d]=!1}for(tt in a)a.hasOwnProperty(tt)&&(h=a[tt],l=vr(h.clone),i.leave(l),r(l,function(n){n.$$NG_REMOVED=!0}),h.scope.$destroy());for(s=0,l=p.length;s<l;s++)if(ut=n===p?s:p[s],et=n[ut],h=it[s],it[s-1]&&(rt=it[s-1].clone[it[s-1].clone.length-1]),h.scope){tt=rt;do tt=tt.nextSibling;while(tt&&tt.$$NG_REMOVED);h.clone[0]!=tt&&i.move(vr(h.clone),null,u(rt));rt=h.clone[h.clone.length-1];st(h.scope,s)}else c(function(n,r){h.scope=r;n[n.length++]=t.createComment(" end ngRepeat: "+y+" ");i.enter(n,null,u(rt));rt=n;h.clone=n;ft[h.id]=h;st(h.scope,s)});a=ft})}}}],hv=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,"ng-hide")})}}}],cv=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,"ng-hide")})}}}],lv=bt(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)}),av=["$animate",function(n){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(i,u,f,e){var c=[],h=[],o=[],s=[];i.$watch(f.ngSwitch||f.on,function(u){for(var v,l=0,a=o.length;l<a;++l)o[l].remove();for(l=o.length=0,a=s.length;l<a;++l)v=vr(h[l].clone),s[l].$destroy(),o[l]=v,n.leave(v,function(){o.splice(l,1)});h.length=0;s.length=0;(c=e.cases["!"+u]||e.cases["?"])&&(i.$eval(f.change),r(c,function(i){i.transclude(function(r,u){s.push(u);var f=i.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");h.push({clone:r});n.enter(r,f.parent(),f)})}))})}}}],vv=bt({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),yv=bt({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),pv=bt({restrict:"EAC",link:function(n,t,i,r,u){if(!u)throw y("ngTransclude")("orphan",ft(t));u(function(n){t.empty();t.append(n)})}}),wv=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"==i.type&&n.put(i.id,t[0].text)}}}],bv=y("ngOptions"),kv=nt({restrict:"A",terminal:!0}),dv=["$compile","$parse",function(n,e){var s=/^\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]+?))?$/,l={$setViewValue:o};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(n,t,i){var r=this,f={},e=l,u;r.databound=i.ngModel;r.init=function(n,t,i){e=n;u=i};r.addOption=function(t,i){ni(t,'"option value"');f[t]=!0;e.$viewValue==t&&(n.val(t),u.parent()&&u.remove());i[0].hasAttribute("selected")&&(i[0].selected=!0)};r.removeOption=function(n){this.hasOption(n)&&(delete f[n],e.$viewValue==n&&this.renderUnknownOption(n))};r.renderUnknownOption=function(t){t="? "+oi(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=o})}],link:function(o,l,a,v){function rt(n,t,i,r){i.$render=function(){var n=i.$viewValue;r.hasOption(n)?(b.parent()&&b.remove(),t.val(n),""===n&&nt.prop("selected",!0)):c(n)&&nt?t.val(""):r.renderUnknownOption(n)};t.on("change",function(){n.$apply(function(){b.parent()&&b.remove();i.$setViewValue(t.val())})})}function et(n,t,i){var u;i.$render=function(){var n=new wi(i.$viewValue);r(t.find("option"),function(t){t.selected=f(n.get(t.value))})};n.$watch(function(){yt(u,i.$viewValue)||(u=ut(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 et={"":[]},ht=[""],n,g,i,c,rt,ut,ot,e,s,k,ft;if(c=u.$modelValue,rt=d(t)||[],ut=v?pf(rt):rt,e={},i=!1,p)if(o&&h(c))for(i=new wi([]),s=0;s<c.length;s++)e[a]=c[s],i.put(o(t,e),c[s]);else i=new wi(c);for(s=0;ot=ut.length,s<ot;s++){if(g=s,v){if(g=ut[s],"$"===g.charAt(0))continue;e[v]=g}e[a]=rt[g];n=it(t,e)||"";(g=et[n])||(g=et[n]=[],ht.push(n));p?n=f(i.remove(o?o(t,e):b(t,e))):(o?(n={},n[a]=c,n=o(t,n)===o(t,e)):n=c===b(t,e),i=i||n);k=nt(t,e);k=f(k)?k:"";g.push({id:o?o(t,e):v?ut[s]:s,label:k,selected:n})}for(p||(y||null===c?et[""].unshift({id:"",label:"",selected:!i}):i||et[""].unshift({id:"?",label:"",selected:!0})),e=0,ut=ht.length;e<ut;e++){for(n=ht[e],g=et[n],l.length<=e?(c={element:st.clone().attr("label",n),label:g.label},rt=[c],l.push(rt),r.append(c.element)):(rt=l[e],c=rt[0],c.label!=n&&c.element.attr("label",c.label=n)),k=null,s=0,ot=g.length;s<ot;s++)i=g[s],(n=rt[s+1])?(k=n.element,n.label!==i.label&&k.text(n.label=i.label),n.id!==i.id&&k.val(n.id=i.id),n.selected!==i.selected&&(k.prop("selected",n.selected=i.selected),w&&k.prop("selected",n.selected))):(""===i.id&&y?ft=y:(ft=tt.clone()).val(i.id).prop("selected",i.selected).text(i.label),rt.push({element:ft,label:i.label,id:i.id,selected:i.selected}),k?k.after(ft):c.element.append(ft),k=ft);for(s++;rt.length>s;)rt.pop().element.remove()}for(;l.length>e;)l.pop()[0].element.remove()}var c;if(!(c=g.match(s)))throw bv("iexp",g,ft(r));var nt=e(c[2]||c[1]),a=c[4]||c[6],v=c[5],it=e(c[3]||""),b=e(c[2]?c[1]:a),d=e(c[7]),o=c[8]?e(c[8]):null,l=[[{element:r,label:""}]];y&&(n(y)(t),y.removeClass("ng-scope"),y.remove());r.empty();r.on("change",function(){t.$apply(function(){var w,h=d(t)||[],f={},n,s,c,y,k,g,e;if(p){for(s=[],y=0,g=l.length;y<g;y++)for(w=l[y],c=1,k=w.length;c<k;c++)if((n=w[c].element)[0].selected){if(n=n.val(),v&&(f[v]=n),o)for(e=0;e<h.length&&(f[a]=h[e],o(t,f)!=n);e++);else f[a]=h[n];s.push(b(t,f))}}else{if(n=r.val(),"?"==n)s=i;else if(""===n)s=null;else if(o){for(e=0;e<h.length;e++)if(f[a]=h[e],o(t,f)==n){s=b(t,f);break}}else f[a]=h[n],v&&(f[v]=n),s=b(t,f);1<l[0].length&&l[0][1].id!==n&&(l[0][1].selected=!1)}u.$setViewValue(s)})});u.$render=k;t.$watch(k)}var d,k,it;if(v[1]){d=v[0];v=v[1];var p=a.multiple,g=a.ngOptions,y=!1,nt,tt=u(t.createElement("option")),st=u(t.createElement("optgroup")),b=tt.clone();for(a=0,k=l.children(),it=k.length;a<it;a++)if(""===k[a].value){nt=y=k.eq(a);break}d.init(v,y,b);p&&(v.$isEmpty=function(n){return!n||0===n.length});g?ot(o,l,v):p?et(o,l,v):rt(o,l,v,d)}}}}],gv=["$interpolate",function(n){var t={addOption:o,removeOption:o};return{restrict:"E",priority:100,compile:function(i,r){if(c(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);t!==n&&f.removeOption(t);f.addOption(n,i)}):f.addOption(r.value,i);i.on("$destroy",function(){f.removeOption(r.value)})}}}}],ny=nt({restrict:"E",terminal:!1});n.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(ds(),nh(nr),u(t).ready(function(){ks(t,te)}))}(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:not(.ng-animate){display:none !important;}ng\\:form{display:block;}<\/style>'),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,null,null,i)}),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){"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}}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="');e.push(n);e.push('">');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 r(n,r,u){i.directive(n,["$parse","$swipe",function(i,f){var e=75,o=.3,s=30;return function(h,c,l){function p(n){if(!a)return!1;var t=Math.abs(n.y-a.y);return n=(n.x-a.x)*r,v&&t<e&&0<n&&n>s&&t/n<o}var w=i(l[n]),a,v,y=["touch"];t.isDefined(l.ngSwipeDisableMouse)||y.push("mouse");f.bind(c,{start:function(n){a=n;v=!0},cancel:function(){v=!1},end:function(n,t){p(n)&&h.$apply(function(){c.triggerHandler(u);w(h,{$event:t})})}},y)}}])}var i=t.module("ngTouch",[]);i.factory("$swipe",[function(){function i(n){var t=n.touches&&n.touches.length?n.touches:[n];return n=n.changedTouches&&n.changedTouches[0]||n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]||t[0].originalEvent||t[0],{x:n.clientX,y:n.clientY}}function n(n,i){var u=[];return t.forEach(n,function(n){(n=r[n][i])&&u.push(n)}),u.join(" ")}var r={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};return{bind:function(t,r,u){var e,o,s,h,f=!1,c;u=u||["mouse","touch"];t.on(n(u,"start"),function(n){s=i(n);f=!0;o=e=0;h=s;r.start&&r.start(s,n)});if(c=n(u,"cancel"),c)t.on(c,function(n){f=!1;r.cancel&&r.cancel(n)});t.on(n(u,"move"),function(n){if(f&&s){var t=i(n);e+=Math.abs(t.x-h.x);o+=Math.abs(t.y-h.y);h=t;10>e&&10>o||(o>e?(f=!1,r.cancel&&r.cancel(n)):(n.preventDefault(),r.move&&r.move(t,n)))}});t.on(n(u,"end"),function(n){f&&(f=!1,r.end&&r.end(i(n),n))})}}}]);i.config(["$provide",function(n){n.decorator("ngClickDirective",["$delegate",function(n){return n.shift(),n}])}]);i.directive("ngClick",["$parse","$timeout","$rootElement",function(n,i,r){function o(n,t,i){for(var r=0;r<n.length;r+=2)if(Math.abs(n[r]-t)<h&&Math.abs(n[r+1]-i)<h)return n.splice(r,r+2),!0;return!1}function l(n){if(!(Date.now()-c>s)){var t=n.touches&&n.touches.length?n.touches:[n],i=t[0].clientX,t=t[0].clientY;1>i&&1>t||f&&f[0]===i&&f[1]===t||(f&&(f=null),"label"===n.target.tagName.toLowerCase()&&(f=[i,t]),o(u,i,t)||(n.stopPropagation(),n.preventDefault(),n.target&&n.target.blur()))}}function a(n){n=n.touches&&n.touches.length?n.touches:[n];var t=n[0].clientX,r=n[0].clientY;u.push(t,r);i(function(){for(var n=0;n<u.length;n+=2)if(u[n]==t&&u[n+1]==r){u.splice(n,n+2);break}},s,!1)}var s=2500,h=25,e="ng-click-active",c,u,f;return function(i,f,s){function v(){y=!1;f.removeClass(e)}var k=n(s.ngClick),y=!1,h,p,w,b;f.on("touchstart",function(n){y=!0;h=n.target?n.target:n.srcElement;3==h.nodeType&&(h=h.parentNode);f.addClass(e);p=Date.now();n=n.touches&&n.touches.length?n.touches:[n];n=n[0].originalEvent||n[0];w=n.clientX;b=n.clientY});f.on("touchmove",function(){v()});f.on("touchcancel",function(){v()});f.on("touchend",function(n){var k=Date.now()-p,i=n.changedTouches&&n.changedTouches.length?n.changedTouches:n.touches&&n.touches.length?n.touches:[n],e=i[0].originalEvent||i[0],i=e.clientX,e=e.clientY,d=Math.sqrt(Math.pow(i-w,2)+Math.pow(e-b,2));y&&750>k&&12>d&&(u||(r[0].addEventListener("click",l,!0),r[0].addEventListener("touchstart",a,!0),u=[]),c=Date.now(),o(u,i,e),h&&h.blur(),t.isDefined(s.disabled)&&!1!==s.disabled||f.triggerHandler("click",[n]));v()});f.onclick=function(){};f.on("click",function(n,t){i.$apply(function(){k(i,{$event:t||n})})});f.on("mousedown",function(){f.addClass(e)});f.on("mousemove mouseup",function(){f.removeClass(e)})}}]);r("ngSwipeLeft",-1,"swipeleft");r("ngSwipeRight",1,"swiperight")}(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])}),onFailedTimeoutHandle:null,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.4",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)}),d=function(i,s){var y=r._.error(f.noTransportOnInit);if(s=s||0,s>=i.length){n(c).triggerHandler(u.onError,[y]);p.reject(y);c.stop();return}if(c.state!==r.connectionState.disconnected){var w=i[s],h=r.transports[w],l=!1,v=function(){l||(l=!0,t.clearTimeout(c._.onFailedTimeoutHandle),h.stop(c),d(i,s+1))};c.transport=h;try{c._.onFailedTimeoutHandle=t.setTimeout(function(){c.log(h.name+" timed out when trying to connect.");v()},c._.totalTransportConnectTimeout);h.start(c,function(){var i=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)})};if(!l){if(l=!0,t.clearTimeout(c._.onFailedTimeoutHandle),c.state===r.connectionState.disconnected)return;c.log(h.name+" transport selected. Initiating start request.");r.transports._logic.ajaxStart(c,i)}},v)}catch(b){c.log(h.name+" transport threw '"+b.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.clearTimeout(c._.onFailedTimeoutHandle),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),r.transports._logic.tryAbortStartRequest(c),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){function e(n){n._.keepAliveData.monitoring&&s(n);r.markActive(n)&&(n._.beatHandle=t.setTimeout(function(){e(n)},n._.beatInterval))}function s(t){var r=t._.keepAliveData,f;t.state===i.connectionState.connected&&(f=(new Date).getTime()-t._.lastMessageAt,f>=r.timeout?(t.log("Keep alive timed out.  Notifying transport that connection has been lost."),t.transport.lostConnection(t)):f>=r.timeoutWarning?r.userNotified||(t.log("Keep alive has been missed, connection may be dead/slow."),n(t).triggerHandler(u.onConnectionSlow),r.userNotified=!0):r.userNotified=!1)}function f(n,t){var i=n.url+t;return n.transport&&(i+="?transport="+n.transport.name),r.prepareQueryString(n,i)}var i=n.signalR,u=n.signalR.events,h=n.signalR.changeState,o="__Start Aborted__",r;i.transports={};r=i.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,u=n.Deferred();return t.transport?(e=t.url+"/ping",e=r.addQs(e,t.qs),f=r.ajax(t,{url:e,success:function(n){var r;try{r=t._parseResponse(n)}catch(e){u.reject(i._.transportError(i.resources.pingServerFailedParse,t.transport,e,f));t.stop();return}r.Response==="pong"?u.resolve():u.reject(i._.transportError(i._.format(i.resources.pingServerFailedInvalidResponse,n),t.transport,null,f))},error:function(n){n.status===401||n.status===403?(u.reject(i._.transportError(i._.format(i.resources.pingServerFailedStatusCode,n.status),t.transport,n,f)),t.stop()):u.reject(i._.transportError(i.resources.pingServerFailed,t.transport,n,f))}})):u.reject(i._.transportError(i.resources.noConnectionTransport,t.transport)),u.promise()},prepareQueryString:function(n,i){var u;return u=r.addQs(i,"clientProtocol="+n.clientProtocol),u=r.addQs(u,n.qs),n.token&&(u+="&connectionToken="+t.encodeURIComponent(n.token)),n.data&&(u+="&connectionData="+t.encodeURIComponent(n.data)),u},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,u,f){var s=i==="webSockets"?"":n.baseUrl,e=s+n.appRelativeUrl,o="transport="+i;return n.groupsToken&&(o+="&groupsToken="+t.encodeURIComponent(n.groupsToken)),u?(e+=f?"/poll":"/reconnect",n.messageId&&(o+="&messageId="+t.encodeURIComponent(n.messageId))):e+="/connect",e+="?"+o,e=r.prepareQueryString(n,e),e+("&tid="+Math.floor(Math.random()*11))},maximizePersistentResponse:function(n){return{MessageId:n.C,Messages:n.M,Initialized:typeof n.S!="undefined"?!0:!1,Disconnect:typeof n.D!="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,e){var h=r.stringifySend(t,e),c=f(t,"/send"),o,s=function(t,r){n(r).triggerHandler(u.onError,[i._.transportError(i.resources.sendFailed,r.transport,t,o),e])};return o=r.ajax(t,{url:c,type:t.ajaxDataType==="jsonp"?"GET":"POST",contentType:i._.defaultContentType,data:{data:h},success:function(n){var i;if(n){try{i=t._parseResponse(n)}catch(u){s(u,t);t.stop();return}r.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=f(n,"/abort");r.ajax(n,{url:i,async:t,timeout:1e3,type:"POST"});n.log("Fired ajax abort async = "+t+".")}},ajaxStart:function(t,e){var h=function(n){var i=t._deferral;i&&i.reject(n)},s=function(i){t.log("The start request failed. Stopping the connection.");n(t).triggerHandler(u.onError,[i]);h(i);t.stop()};t._.startRequest=r.ajax(t,{url:f(t,"/start"),success:function(n,r,u){var f;try{f=t._parseResponse(n)}catch(o){s(i._.error(i._.format(i.resources.errorParsingStartResponse,n),o,u));return}f.Response==="started"?e():s(i._.error(i._.format(i.resources.invalidStartResponse,n),null,u))},error:function(n,r,u){r!==o?s(i._.error(i.resources.errorDuringStartRequest,u,n)):(t.log("The start request aborted because connection.stop() was called."),h(i._.error(i.resources.stoppedDuringStartRequest,null,n)))}})},tryAbortStartRequest:function(n){n._.startRequest&&(n._.startRequest.abort(o),delete n._.startRequest)},tryInitialize:function(n,t){n.Initialized&&t()},triggerReceived:function(t,i){t._.connectingMessageBuffer.tryBuffer(i)||n(t).triggerHandler(u.onReceived,[i])},processMessages:function(t,i,u){var f;r.markLastMessage(t);i&&(f=r.maximizePersistentResponse(i),r.updateGroups(t,f.GroupsToken),f.MessageId&&(t.messageId=f.MessageId),f.Messages&&(n.each(f.Messages,function(n,i){r.triggerReceived(t,i)}),r.tryInitialize(f,u)))},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,r.markLastMessage(t),t._.keepAliveData.reconnectKeepAliveUpdate=function(){r.markLastMessage(t)},n(t).bind(u.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t.log("Now monitoring keep alive with a warning timeout of "+i.timeoutWarning+" and a connection lost timeout of "+i.timeout+"."))},stopMonitoringKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring&&(i.monitoring=!1,n(t).unbind(u.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t._.keepAliveData={},t.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(n){n._.lastActiveAt=(new Date).getTime();e(n)},markLastMessage:function(n){n._.lastMessageAt=(new Date).getTime()},markActive:function(n){return r.verifyLastActive(n)?(n._.lastActiveAt=(new Date).getTime(),!0):!1},isConnectedOrReconnecting:function(n){return n.state===i.connectionState.connected||n.state===i.connectionState.reconnecting},ensureReconnectingState:function(t){return h(t,i.connectionState.connected,i.connectionState.reconnecting)===!0&&n(t).triggerHandler(u.onReconnecting),t.state===i.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 r=i._.format(i.resources.reconnectWindowTimeout,new Date(t._.lastActiveAt),t.reconnectWindow);return t.log(r),n(t).triggerHandler(u.onError,[i._.error(r,"TimeoutException")]),t.stop(!1,!1),!1}return!0},reconnect:function(n,u){var f=i.transports[u];if(r.isConnectedOrReconnecting(n)&&!n._.reconnectTimeout){if(!r.verifyLastActive(n))return;n._.reconnectTimeout=t.setTimeout(function(){r.verifyLastActive(n)&&(f.stop(n),r.ensureReconnectingState(n)&&(n.log(u+" reconnecting."),f.start(n)))},n.reconnectDelay)}},handleParseFailure:function(t,r,f,e,o){t.state===i.connectionState.connecting?(t.log("Failed to parse server response while attempting to connect."),e()):(n(t).triggerHandler(u.onError,[i._.transportError(i._.format(i.resources.parseFailed,r),t.transport,f,o)]),t.stop())},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){if(this===e.socket){if(c)typeof t.wasClean!="undefined"&&t.wasClean===!1?(n(e).triggerHandler(u.onError,[r._.transportError(r.resources.webSocketClosed,e.transport,t)]),e.log("Unclean disconnect from websocket: "+t.reason||"[no reason given].")):e.log("Websocket closed.");else{s?s():a&&l.reconnect(e);return}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){if(this===o.eventSource){if(!l){h&&h();return}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,[i._.transportError(i.resources.eventSourceError,o.transport,n)]))}},!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.");l.reconnect(n)};if(t.EventSource){e&&(n.log("This browser supports SSE, skipping Forever Frame."),e());return}o.setAttribute("data-signalr-connection-id",n.id);f.prevent();h=i.getUrl(n,this.name);h+="&frameId="+s;t.document.body.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;h=null;o.log("LongPolling connected.");s()},y=function(){return h?(h(),h=null,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 d=s.messageId,g=d===null,b=!g,nt=!h,k=i.getUrl(s,a.name,b,nt);f(s)!==!0&&(o.log("Opening long polling request to '"+k+"'."),s.pollXhr=i.ajax(o,{xhrFields:{onprogress:function(){i.markLastMessage(o)}},url:k,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),u&&u.Disconnect)||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){if(t.clearTimeout(c.reconnectTimeoutId),c.reconnectTimeoutId=null,h==="abort"){o.log("Aborted xhr request.");return}if(!y()){if(l++,o.state!==r.connectionState.reconnecting&&(o.log("An error occurred using longPolling. Status = "+h+".  Response = "+f.responseText+"."),n(s).triggerHandler(u.onError,[r._.transportError(r.resources.longPollFailed,o.transport,f,s.pollXhr)])),(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)}}}),b&&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.1.2"}(window.jQuery),function(n,t,i,r){"use strict";function u(n){var i,t=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=n,!n||!n.nodeType)throw new TypeError("Layer must be a document node");(this.onClick=function(){return u.prototype.onClick.apply(t,arguments)},this.onMouse=function(){return u.prototype.onMouse.apply(t,arguments)},this.onTouchStart=function(){return u.prototype.onTouchStart.apply(t,arguments)},this.onTouchMove=function(){return u.prototype.onTouchMove.apply(t,arguments)},this.onTouchEnd=function(){return u.prototype.onTouchEnd.apply(t,arguments)},this.onTouchCancel=function(){return u.prototype.onTouchCancel.apply(t,arguments)},u.notNeeded(n))||(this.deviceIsAndroid&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,i,r){var u=Node.prototype.removeEventListener;t==="click"?u.call(n,t,i.hijacked||i,r):u.call(n,t,i,r)},n.addEventListener=function(t,i,r){var u=Node.prototype.addEventListener;t==="click"?u.call(n,t,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(n,t,i,r)}),typeof n.onclick=="function"&&(i=n.onclick,n.addEventListener("click",function(n){i(n)},!1),n.onclick=null))}function e(n){return(typeof n=="string"||n instanceof String)&&(n=n.replace(/^[\\/'"]+|(;\s?})+|[\\/'"]+$/g,"")),n}n("head").has(".foundation-mq-small").length===0&&n("head").append('<meta class="foundation-mq-small">');n("head").has(".foundation-mq-medium").length===0&&n("head").append('<meta class="foundation-mq-medium">');n("head").has(".foundation-mq-large").length===0&&n("head").append('<meta class="foundation-mq-large">');n("head").has(".foundation-mq-xlarge").length===0&&n("head").append('<meta class="foundation-mq-xlarge">');n("head").has(".foundation-mq-xxlarge").length===0&&n("head").append('<meta class="foundation-mq-xxlarge">');u.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;u.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);u.prototype.deviceIsIOS4=u.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);u.prototype.deviceIsIOSWithBadTarget=u.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);u.prototype.needsClick=function(n){switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(this.deviceIsIOS&&n.type==="file"||n.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(n.className)};u.prototype.needsFocus=function(n){switch(n.nodeName.toLowerCase()){case"textarea":case"select":return!0;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};u.prototype.sendClick=function(n,r){var f,u;i.activeElement&&i.activeElement!==n&&i.activeElement.blur();u=r.changedTouches[0];f=i.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,t,1,u.screenX,u.screenY,u.clientX,u.clientY,!1,!1,!1,!1,0,null);f.forwardedTouchEvent=!0;n.dispatchEvent(f)};u.prototype.focus=function(n){var t;this.deviceIsIOS&&n.setSelectionRange?(t=n.value.length,n.setSelectionRange(t,t)):n.focus()};u.prototype.updateScrollParent=function(n){var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};u.prototype.getTargetElementFromEventTarget=function(n){return n.nodeType===Node.TEXT_NODE?n.parentNode:n};u.prototype.onTouchStart=function(n){var r,i,u;if(n.targetTouches.length>1)return!0;if(r=this.getTargetElementFromEventTarget(n.target),i=n.targetTouches[0],this.deviceIsIOS){if(u=t.getSelection(),u.rangeCount&&!u.isCollapsed)return!0;if(!this.deviceIsIOS4){if(i.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=i.identifier;this.updateScrollParent(r)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=r,this.touchStartX=i.pageX,this.touchStartY=i.pageY,n.timeStamp-this.lastClickTime<200&&n.preventDefault(),!0};u.prototype.touchHasMoved=function(n){var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i?!0:!1};u.prototype.onTouchMove=function(n){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0):!0};u.prototype.findControl=function(n){return n.control!==r?n.control:n.htmlFor?i.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};u.prototype.onTouchEnd=function(n){var e,s,u,f,o,r=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.lastClickTime=n.timeStamp,s=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(o=n.changedTouches[0],r=i.elementFromPoint(o.pageX-t.pageXOffset,o.pageY-t.pageYOffset)||r,r.fastClickScrollParent=this.targetElement.fastClickScrollParent),u=r.tagName.toLowerCase(),u==="label"){if(e=this.findControl(r),e){if(this.focus(r),this.deviceIsAndroid)return!1;r=e}}else if(this.needsFocus(r))return n.timeStamp-s>100||this.deviceIsIOS&&t.top!==t&&u==="input"?(this.targetElement=null,!1):(this.focus(r),this.deviceIsIOS4&&u==="select"||(this.targetElement=null,n.preventDefault()),!1);return this.deviceIsIOS&&!this.deviceIsIOS4&&(f=r.fastClickScrollParent,f&&f.fastClickLastScrollTop!==f.scrollTop)?!0:(this.needsClick(r)||(n.preventDefault(),this.sendClick(r,n)),!1)};u.prototype.onTouchCancel=function(){this.trackingClick=!1;this.targetElement=null};u.prototype.onMouse=function(n){return this.targetElement?n.forwardedTouchEvent?!0:n.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1):!0:!0:!0};u.prototype.onClick=function(n){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):n.target.type==="submit"&&n.detail===0?!0:(t=this.onMouse(n),t||(this.targetElement=null),t)};u.prototype.destroy=function(){var n=this.layer;this.deviceIsAndroid&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchmove",this.onTouchMove,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};u.notNeeded=function(n){var r;if(typeof t.ontouchstart=="undefined")return!0;if(/Chrome\/[0-9]+/.test(navigator.userAgent))if(u.prototype.deviceIsAndroid){if(r=i.querySelector("meta[name=viewport]"),r&&r.content.indexOf("user-scalable=no")!==-1)return!0}else return!0;return n.style.msTouchAction==="none"?!0:!1};u.attach=function(n){return new u(n)};typeof define!="undefined"&&define.amd?define(function(){return u}):typeof module!="undefined"&&module.exports?(module.exports=u.attach,module.exports.FastClick=u):t.FastClick=u;typeof u!="undefined"&&u.attach(i.body);var f=function(t,r){return typeof t=="string"?r?n(r.querySelectorAll(t)):n(i.querySelectorAll(t)):n(t,r)};t.matchMedia=t.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth===42,i.removeChild(r),{matches:u,media:n}}}(i),function(){function e(){r&&(i(e),jQuery.fx.tick())}for(var r,n=0,u=["webkit","moz"],i=t.requestAnimationFrame,f=t.cancelAnimationFrame;n<u.length&&!i;n++)i=t[u[n]+"RequestAnimationFrame"],f=f||t[u[n]+"CancelAnimationFrame"]||t[u[n]+"CancelRequestAnimationFrame"];i?(t.requestAnimationFrame=i,t.cancelAnimationFrame=f,jQuery.fx.timer=function(n){n()&&jQuery.timers.push(n)&&!r&&(r=!0,e())},jQuery.fx.stop=function(){r=!1}):(t.requestAnimationFrame=function(i){var r=(new Date).getTime(),u=Math.max(0,16-(r-n)),f=t.setTimeout(function(){i(r+u)},u);return n=r+u,f},t.cancelAnimationFrame=function(n){clearTimeout(n)})}(jQuery);t.Foundation={name:"Foundation",version:"5.0.0",media_queries:{small:f(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:f(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:f(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:f(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:f(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:n("<style><\/style>").appendTo("head")[0].sheet,init:function(n,t,i,r,u){var s=[n,i,r,u],e=[],o;if(this.rtl=/rtl/i.test(f("html").attr("dir")),this.scope=n||this.scope,t&&typeof t=="string"&&!/reflow/i.test(t))this.libs.hasOwnProperty(t)&&e.push(this.init_lib(t,s));else for(o in this.libs)e.push(this.init_lib(o,t));return n},init_lib:function(n,t){return this.libs.hasOwnProperty(n)?(this.patch(this.libs[n]),t&&t.hasOwnProperty(n))?this.libs[n].init.apply(this.libs[n],[this.scope,t[n]]):this.libs[n].init.apply(this.libs[n],t):function(){}},patch:function(n){n.scope=this.scope;n.data_options=this.lib_methods.data_options;n.bindings=this.lib_methods.bindings;n.S=f;n.rtl=this.rtl},inherit:function(n,t){for(var r=t.split(" "),i=r.length-1;i>=0;i--)this.lib_methods.hasOwnProperty(r[i])&&(this.libs[n.name][r[i]]=this.lib_methods[r[i]])},random_str:function(n){var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i,r;for(n||(n=Math.floor(Math.random()*t.length)),i="",r=0;r<n;r++)i+=t[Math.floor(Math.random()*t.length)];return i},libs:{},lib_methods:{throttle:function(n,t){var i=null;return function(){var r=this,u=arguments;clearTimeout(i);i=setTimeout(function(){n.apply(r,u)},t)}},data_options:function(t){function h(n){return!isNaN(+n)&&n!==null&&n!==""&&n!==!1&&n!==!0}function s(t){return typeof t=="string"?n.trim(t):t}var e={},r,i,u,o,f=t.data("options");if(typeof f=="object")return f;for(u=(f||":").split(";"),o=u.length,r=o-1;r>=0;r--)i=u[r].split(":"),/true/i.test(i[1])&&(i[1]=!0),/false/i.test(i[1])&&(i[1]=!1),h(i[1])&&(i[1]=parseInt(i[1],10)),i.length===2&&i[0].length>0&&(e[s(i[0])]=s(i[1]));return e},delay:function(n,t){return setTimeout(n,t)},empty:function(n){if(n.length&&n.length>0)return!1;if(n.length&&n.length===0)return!0;for(var t in n)if(hasOwnProperty.call(n,t))return!1;return!0},register_media:function(t,i){Foundation.media_queries[t]===r&&(n("head").append('<meta class="'+i+'">'),Foundation.media_queries[t]=e(n("."+i).css("font-family")))},addCustomRule:function(n,t){if(t===r)Foundation.stylesheet.insertRule(n,Foundation.stylesheet.cssRules.length);else{var i=Foundation.media_queries[t];i!==r&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[t]+"{ "+n+" }")}},loaded:function(n,t){function i(){t(n[0])}function r(){this.one("load",i);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var n=this.attr("src"),t=n.match(/\?/)?"&":"?";t+="random="+(new Date).getTime();this.attr("src",n+t)}}if(!n.attr("src")){i();return}n[0].complete||n[0].readyState===4?i():r.call(n)},bindings:function(t,i){var r=this,u=!f(this).data(this.name+"-init");if(typeof t=="string")return this[t].call(this);f(this.scope).is("[data-"+this.name+"]")?(f(this.scope).data(this.name+"-init",n.extend({},this.settings,i||t,this.data_options(f(this.scope)))),u&&this.events(this.scope)):f("[data-"+this.name+"]",this.scope).each(function(){var u=!f(this).data(r.name+"-init");f(this).data(r.name+"-init",n.extend({},r.settings,i||t,r.data_options(f(this))));u&&r.events(this)})}}};n.fn.foundation=function(){var n=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(n)),this})}}(jQuery,this,this.document),function(n,t,i){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.0.1",settings:{index:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!1,scrolltop:!0},init:function(t,i,r){Foundation.inherit(this,"addCustomRule register_media throttle");var u=this;u.register_media("topbar","foundation-mq-topbar");this.bindings(i,r);n("[data-topbar]",this.scope).each(function(){var t=n(this),r=t.data("topbar-init"),f=n("section",this),e=n("> ul",this).first(),i;t.data("index",0);i=t.parent();i.hasClass("fixed")||i.hasClass(r.sticky_class)?(u.settings.sticky_class=r.sticky_class,u.settings.stick_topbar=t,t.data("height",i.outerHeight()),t.data("stickyoffset",i.offset().top)):t.data("height",t.outerHeight());r.assembled||u.assemble(t);r.is_hover?n(".has-dropdown",t).addClass("not-click"):n(".has-dropdown",t).removeClass("not-click");u.addCustomRule(".f-topbar-fixed { padding-top: "+t.data("height")+"px }");i.hasClass("fixed")&&n("body").addClass("f-topbar-fixed")})},toggle:function(i){var f=this,r,e,u;r=i?n(i).closest("[data-topbar]"):n("[data-topbar]");e=r.data("topbar-init");u=n("section, .section",r);f.breakpoint()&&(f.rtl?(u.css({right:"0%"}),n(">.name",u).css({right:"100%"})):(u.css({left:"0%"}),n(">.name",u).css({left:"100%"})),n("li.moved",u).removeClass("moved"),r.data("index",0),r.toggleClass("expanded").css("height",""));e.scrolltop?r.hasClass("expanded")?r.parent().hasClass("fixed")&&(e.scrolltop?(r.parent().removeClass("fixed"),r.addClass("fixed"),n("body").removeClass("f-topbar-fixed"),t.scrollTo(0,0)):r.parent().removeClass("expanded")):r.hasClass("fixed")&&(r.parent().addClass("fixed"),r.removeClass("fixed"),n("body").addClass("f-topbar-fixed")):(r.parent().hasClass(f.settings.sticky_class)&&r.parent().addClass("fixed"),r.parent().hasClass("fixed")&&(r.hasClass("expanded")?(r.addClass("fixed"),r.parent().addClass("expanded")):(r.removeClass("fixed"),r.parent().removeClass("expanded"),f.update_sticky_positioning())))},timer:null,events:function(){var i=this;n(this.scope).off(".topbar").on("click.fndtn.topbar","[data-topbar] a",function(t){var r=n(t.target),u;r[0].nodeName!=="A"||r.hasClass("no-collapse")||r.closest("li").hasClass("js-generated")||(u=r.closest("[data-topbar]"),(r.hasClass("collapse-only")&&u.hasClass("expanded")||!r.hasClass("collapse-only"))&&i.toggle())}).on("click.fndtn.topbar","[data-topbar] li.has-dropdown",function(t){var r=n(this),u=n(t.target),f=r.closest("[data-topbar]"),e=f.data("topbar-init");if(u.data("revealId")){i.toggle();return}i.breakpoint()||(!e.is_hover||Modernizr.touch)&&(r.hasClass("hover")?(r.removeClass("hover").find("li").removeClass("hover"),r.parents("li.hover").removeClass("hover")):(r.addClass("hover"),u[0].nodeName==="A"&&u.parent().hasClass("has-dropdown")&&t.preventDefault()))}).on("click.fndtn.topbar","[data-topbar] .has-dropdown>a",function(t){if(i.breakpoint()){t.preventDefault();var u=n(this),r=u.closest("[data-topbar]"),f=r.find("section, .section"),o=u.next(".dropdown").outerHeight(),e=u.closest("li");r.data("index",r.data("index")+1);e.addClass("moved");i.rtl?(f.css({right:-(100*r.data("index"))+"%"}),f.find(">.name").css({right:100*r.data("index")+"%"})):(f.css({left:-(100*r.data("index"))+"%"}),f.find(">.name").css({left:100*r.data("index")+"%"}));r.css("height",u.siblings("ul").outerHeight(!0)+r.data("height"))}});n(t).off(".topbar").on("resize.fndtn.topbar",i.throttle(function(){i.resize.call(i)},50)).trigger("resize");n("body").off(".topbar").on("click.fndtn.topbar touchstart.fndtn.topbar",function(t){var i=n(t.target).closest("li").closest("li.hover");i.length>0||n("[data-topbar] li").removeClass("hover")});n(this.scope).on("click.fndtn.topbar","[data-topbar] .has-dropdown .back",function(t){t.preventDefault();var f=n(this),r=f.closest("[data-topbar]"),u=r.find("section, .section"),s=r.data("topbar-init"),e=f.closest("li.moved"),o=e.parent();r.data("index",r.data("index")-1);i.rtl?(u.css({right:-(100*r.data("index"))+"%"}),u.find(">.name").css({right:100*r.data("index")+"%"})):(u.css({left:-(100*r.data("index"))+"%"}),u.find(">.name").css({left:100*r.data("index")+"%"}));r.data("index")===0?r.css("height",""):r.css("height",o.outerHeight(!0)+r.data("height"));setTimeout(function(){e.removeClass("moved")},300)})},resize:function(){var t=this;n("[data-topbar]").each(function(){var r=n(this),o=r.data("topbar-init"),u=r.parent("."+t.settings.sticky_class),f,e;t.breakpoint()||(e=r.hasClass("expanded"),r.css("height","").removeClass("expanded").find("li").removeClass("hover"),e&&t.toggle(r));u.length>0&&(u.hasClass("fixed")?(u.removeClass("fixed"),f=u.offset().top,n(i.body).hasClass("f-topbar-fixed")&&(f-=r.data("height")),r.data("stickyoffset",f),u.addClass("fixed")):(f=u.offset().top,r.data("stickyoffset",f)))})},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},assemble:function(t){var u=this,i=t.data("topbar-init"),r=n("section",t),f=n("> ul",t).first();r.detach();n(".has-dropdown>a",r).each(function(){var t=n(this),f=t.siblings(".dropdown"),u=t.attr("href"),r;r=i.mobile_show_parent_link&&u&&u.length>1?n('<li class="title back js-generated"><h5><a href="#"><\/a><\/h5><\/li><li><a class="parent-link js-generated" href="'+u+'">'+t.text()+"<\/a><\/li>"):n('<li class="title back js-generated"><h5><a href="#"><\/a><\/h5><\/li>');i.custom_back_text==!0?n("h5>a",r).html(i.back_text):n("h5>a",r).html("&laquo; "+t.html());f.prepend(r)});r.appendTo(t);this.sticky();this.assembled(t)},assembled:function(t){t.data("topbar-init",n.extend({},t.data("topbar-init"),{assembled:!0}))},height:function(t){var i=0,r=this;return n("> li",t).each(function(){i+=n(this).outerHeight(!0)}),i},sticky:function(){var r=n(t),i=this;n(t).on("scroll",function(){i.update_sticky_positioning()})},update_sticky_positioning:function(){var i="."+this.settings.sticky_class,u=n(t),r;n(i).length>0&&(r=this.settings.sticky_topbar.data("stickyoffset"),n(i).hasClass("expanded")||(u.scrollTop()>r?n(i).hasClass("fixed")||(n(i).addClass("fixed"),n("body").addClass("f-topbar-fixed")):u.scrollTop()<=r&&n(i).hasClass("fixed")&&(n(i).removeClass("fixed"),n("body").removeClass("f-topbar-fixed"))))},off:function(){n(this.scope).off(".fndtn.topbar");n(t).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,this,this.document),function(n,t,i){"use strict";Foundation.libs.tooltip={name:"tooltip",version:"5.0.0",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,tip_template:function(n,t){return'<span data-selector="'+n+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'">'+t+'<span class="nub"><\/span><\/span>'}},cache:{},init:function(n,t,i){this.bindings(t,i)},events:function(){var t=this;if(Modernizr.touch)n(i).off(".tooltip").on("touchend.fndtn.tooltip","[data-tooltip]",function(i){var r=n.extend({},t.settings,t.data_options(n(this)));r.disable_for_touch||(i.preventDefault(),n(r.tooltip_class).hide(),t.showOrCreateTip(n(this)))}).on("touchend.fndtn.tooltip",this.settings.tooltip_class,function(t){t.preventDefault();n(this).fadeOut(150)});else n(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(i){var r=n(this);/enter|over/i.test(i.type)?t.showOrCreateTip(r):(i.type==="mouseout"||i.type==="mouseleave")&&t.hide(r)})},showOrCreateTip:function(n){var t=this.getTip(n);return t&&t.length>0?this.show(n):this.create(n)},getTip:function(t){var r=this.selector(t),i=null;return r&&(i=n('span[data-selector="'+r+'"]'+this.settings.tooltip_class)),typeof i=="object"?i:!1},selector:function(n){var t=n.attr("id"),i=n.attr("data-tooltip")||n.attr("data-selector");return(t&&t.length<1||!t)&&typeof i!="string"&&(i="tooltip"+Math.random().toString(36).substring(7),n.attr("data-selector",i)),t&&t.length>0?t:i},create:function(t){var i=n(this.settings.tip_template(this.selector(t),n("<div><\/div>").html(t.attr("title")).html())),r=this.inheritable_classes(t);i.addClass(r).appendTo(this.settings.append_to);Modernizr.touch&&i.append('<span class="tap-to-close">'+this.settings.touch_close_text+"<\/span>");t.removeAttr("title").attr("title","");this.show(t)},reposition:function(t,i,r){var f,o,e,h,u,s;i.css("visibility","hidden").show();f=t.data("width");o=i.children(".nub");e=o.outerHeight();h=o.outerHeight();u=function(n,t,i,r,u,f){return n.css({top:t?t:"auto",bottom:r?r:"auto",left:u?u:"auto",right:i?i:"auto",width:f?f:"auto"}).end()};u(i,t.offset().top+t.outerHeight()+10,"auto","auto",t.offset().left,f);this.small()?(u(i,t.offset().top+t.outerHeight()+10,"auto","auto",12.5,n(this.scope).width()),i.addClass("tip-override"),u(o,-e,"auto","auto",t.offset().left)):(s=t.offset().left,Foundation.rtl&&(s=t.offset().left+t.offset().width-i.outerWidth()),u(i,t.offset().top+t.outerHeight()+10,"auto","auto",s,f),i.removeClass("tip-override"),r&&r.indexOf("tip-top")>-1?u(i,t.offset().top-i.outerHeight(),"auto","auto",s,f).removeClass("tip-override"):r&&r.indexOf("tip-left")>-1?u(i,t.offset().top+t.outerHeight()/2-e*2.5,"auto","auto",t.offset().left-i.outerWidth()-e,f).removeClass("tip-override"):r&&r.indexOf("tip-right")>-1&&u(i,t.offset().top+t.outerHeight()/2-e*2.5,"auto","auto",t.offset().left+t.outerWidth()+e,f).removeClass("tip-override"));i.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches},inheritable_classes:function(t){var r=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additional_inheritable_classes),i=t.attr("class"),u=i?n.map(i.split(" "),function(t){if(n.inArray(t,r)!==-1)return t}).join(" "):"";return n.trim(u)},show:function(n){var t=this.getTip(n);this.reposition(n,t,n.attr("class"));t.fadeIn(150)},hide:function(n){var t=this.getTip(n);t.fadeOut(150)},reload:function(){var t=n(this);return t.data("fndtn-tooltips")?t.foundationTooltips("destroy").foundationTooltips("init"):t.foundationTooltips("init")},off:function(){n(this.scope).off(".fndtn.tooltip");n(this.settings.tooltip_class).each(function(t){n("[data-tooltip]").get(t).attr("title",n(this).text())}).remove()},reflow:function(){}}}(jQuery,this,this.document),function(n,t){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.0.0",settings:{active_class:"open",is_hover:!1,opened:function(){},closed:function(){}},init:function(n,t,i){Foundation.inherit(this,"throttle");this.bindings(t,i)},events:function(){var i=this,r,u;n(this.scope).off(".dropdown").on("click.fndtn.dropdown","[data-dropdown]",function(t){var r=n(this).data("dropdown-init");t.preventDefault();(!r.is_hover||Modernizr.touch)&&i.toggle(n(this))}).on("mouseenter.fndtn.dropdown","[data-dropdown], [data-dropdown-content]",function(){var t=n(this),u,r,f;clearTimeout(i.timeout);t.data("dropdown")?(r=n("#"+t.data("dropdown")),u=t):(r=t,u=n("[data-dropdown='"+r.attr("id")+"']"));f=u.data("dropdown-init");f.is_hover&&i.open.apply(i,[r,u])}).on("mouseleave.fndtn.dropdown","[data-dropdown], [data-dropdown-content]",function(){var t=n(this);i.timeout=setTimeout(function(){var u,r;t.data("dropdown")?(r=t.data("dropdown-init"),r.is_hover&&i.close.call(i,n("#"+t.data("dropdown")))):(u=n('[data-dropdown="'+n(this).attr("id")+'"]'),r=u.data("dropdown-init"),r.is_hover&&i.close.call(i,t))}.bind(this),150)}).on("click.fndtn.dropdown",function(t){var r=n(t.target).closest("[data-dropdown-content]");if(!n(t.target).data("dropdown")&&!n(t.target).parent().data("dropdown")){if(!n(t.target).data("revealId")&&r.length>0&&(n(t.target).is("[data-dropdown-content]")||n.contains(r.first()[0],t.target))){t.stopPropagation();return}i.close.call(i,n("[data-dropdown-content]"))}}).on("opened.fndtn.dropdown","[data-dropdown-content]",this.settings.opened).on("closed.fndtn.dropdown","[data-dropdown-content]",this.settings.closed);r=n("[data-dropdown]",this.scope);u=n("#"+r.data("dropdown"));u.on("click.fndtn.dropdown",function(){i.close.call(i,n("[data-dropdown-content]"))});n(t).off(".dropdown").on("resize.fndtn.dropdown",i.throttle(function(){i.resize.call(i)},50)).trigger("resize")},close:function(t){var i=this;t.each(function(){n(this).hasClass(i.settings.active_class)&&(n(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(i.settings.active_class),n(this).trigger("closed"))})},open:function(n,t){this.css(n.addClass(this.settings.active_class),t);n.trigger("opened")},toggle:function(t){var i=n("#"+t.data("dropdown"));i.length!==0&&(this.close.call(this,n("[data-dropdown-content]").not(i)),i.hasClass(this.settings.active_class)?this.close.call(this,i):(this.close.call(this,n("[data-dropdown-content]")),this.open.call(this,i,t)))},resize:function(){var t=n("[data-dropdown-content].open"),i=n("[data-dropdown='"+t.attr("id")+"']");t.length&&i.length&&this.css(t,i)},css:function(i,r){var e=i.offsetParent(),u=r.offset(),f;return u.top-=e.offset().top,u.left-=e.offset().left,this.small()?(i.css({position:"absolute",width:"95%","max-width":"none",top:u.top+r.outerHeight()}),i.css(Foundation.rtl?"right":"left","2.5%")):(!Foundation.rtl&&n(t).width()>i.outerWidth()+r.offset().left?(f=u.left,i.hasClass("right")&&i.removeClass("right")):(i.hasClass("right")||i.addClass("right"),f=u.left-(i.outerWidth()-r.outerWidth())),i.attr("style","").css({position:"absolute",top:u.top+r.outerHeight(),left:f})),i},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){n(this.scope).off(".fndtn.dropdown");n("html, body").off(".fndtn.dropdown");n(t).off(".fndtn.dropdown");n("[data-dropdown-content]").off(".fndtn.dropdown");this.settings.init=!1},reflow:function(){}}}(jQuery,this,this.document);$(document).ready(function(){$.ajax({url:"/api/user/session",dataType:"json",success:function(n){appveyor.constant("START_SESSION",n);appveyor.constant("templatesBundleUrl",templatesBundleUrl);appveyor.constant("analyticsTrackingId",analyticsTrackingId);appveyor.constant("VsoEnabled",vsoEnabled)},complete:function(){angular.bootstrap(document,["appveyor"]);$("#app-loader").hide()}})});angular.module("appveyor.services",[]);angular.module("appveyor.directives",[]);angular.module("appveyor.filters",[]);appveyor=angular.module("appveyor",["ngRoute","ngSanitize","ngTouch","appveyor.services","appveyor.directives","appveyor.filters","analytics"]).config(["$routeProvider","$locationProvider","$httpProvider",function(n,t,i){n.when("/",{title:"Home",redirectTo:"/projects"}).when("/projects",{controller:"ProjectsController",templateUrl:"/app/views/projects/projects.html",title:"Projects",permission:"*"}).when("/projects/new",{controller:"AddProjectController",templateUrl:"/app/views/projects/add-project.html",title:"New Project",permission:"*"}).when("/project/:account/:slug",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build"}).when("/project/:account/:slug/history",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-history"}).when("/project/:account/:slug/history/branch/:branch*",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-history"}).when("/project/:account/:slug/deployments",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-deployments"}).when("/project/:account/:slug/settings",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings"}).when("/project/:account/:slug/build/messages",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"messages"}).when("/project/:account/:slug/build/tests",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"tests"}).when("/project/:account/:slug/build/artifacts",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"artifacts"}).when("/project/:account/:slug/build/job/:jobId",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"console"}).when("/project/:account/:slug/build/job/:jobId/messages",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"messages"}).when("/project/:account/:slug/build/job/:jobId/tests",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"tests"}).when("/project/:account/:slug/build/job/:jobId/artifacts",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"artifacts"}).when("/project/:account/:slug/build/:version",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build"}).when("/project/:account/:slug/build/:version/messages",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"messages"}).when("/project/:account/:slug/build/:version/tests",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"tests"}).when("/project/:account/:slug/build/:version/artifacts",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"artifacts"}).when("/project/:account/:slug/build/:version/job/:jobId",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"console"}).when("/project/:account/:slug/build/:version/job/:jobId/messages",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"messages"}).when("/project/:account/:slug/build/:version/job/:jobId/tests",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"tests"}).when("/project/:account/:slug/build/:version/job/:jobId/artifacts",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"artifacts"}).when("/project/:account/:slug/branch/:branch",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build"}).when("/project/:account/:slug/branch/:branch/messages",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"messages"}).when("/project/:account/:slug/branch/:branch/tests",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"tests"}).when("/project/:account/:slug/branch/:branch/artifacts",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"artifacts"}).when("/project/:account/:slug/branch/:branch/job/:jobId",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"console"}).when("/project/:account/:slug/branch/:branch/job/:jobId/messages",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"messages"}).when("/project/:account/:slug/branch/:branch/job/:jobId/tests",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"tests"}).when("/project/:account/:slug/branch/:branch/job/:jobId/artifacts",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-build",buildView:"artifacts"}).when("/project/:account/:slug/settings",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"general"}).when("/project/:account/:slug/settings/environment",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"environment"}).when("/project/:account/:slug/settings/build",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"build"}).when("/project/:account/:slug/settings/tests",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"tests"}).when("/project/:account/:slug/settings/deployment",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"deployment"}).when("/project/:account/:slug/settings/artifacts",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"artifacts"}).when("/project/:account/:slug/settings/nuget",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"nuget"}).when("/project/:account/:slug/settings/notifications",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"notifications"}).when("/project/:account/:slug/settings/permissions",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"permissions"}).when("/project/:account/:slug/settings/badges",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"badges"}).when("/project/:account/:slug/settings/yaml",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"yaml"}).when("/project/:account/:slug/settings/delete",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-settings",settingsView:"delete"}).when("/project/:account/:slug/deployment/:deploymentId",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-deployment"}).when("/project/:account/:slug/deployment/:deploymentId/jobs",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-deployment",deploymentView:"jobs"}).when("/project/:account/:slug/deployment/:deploymentId/messages",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-deployment",deploymentView:"messages"}).when("/project/:account/:slug/deployment/:deploymentId/job/:jobId",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-deployment"}).when("/project/:account/:slug/deployment/:deploymentId/job/:jobId/messages",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-deployment",deploymentView:"messages"}).when("/project/:account/:slug/deployments/new/environment/:environmentId",{controller:"ProjectDetailsController",templateUrl:"/app/views/projects/project-details.html",projectView:"project-new-deployment"}).when("/environments",{controller:"EnvironmentsController",templateUrl:"/app/views/environments/environments.html",title:"Environments",permission:"*"}).when("/environments/new",{controller:"AddEnvironmentController",templateUrl:"/app/views/environments/add-environment.html",title:"New Environment",permission:"*"}).when("/environment/:environmentId",{controller:"EnvironmentDetailsController",templateUrl:"/app/views/environments/environment-details.html",environmentView:"environment-deployments"}).when("/environment/:environmentId/settings",{controller:"EnvironmentDetailsController",templateUrl:"/app/views/environments/environment-details.html",environmentView:"environment-settings"}).when("/team",{controller:"TeamController",templateUrl:"/app/views/account/team.html",title:"Team",permission:"*"}).when("/user/:id",{controller:"AccountUserController",templateUrl:"/app/views/account/account-user.html",title:"User",permission:"*"}).when("/users/new",{controller:"AddUserController",templateUrl:"/app/views/account/add-user.html",title:"New User",permission:"*"}).when("/collaborator/:id",{controller:"AccountCollaboratorController",templateUrl:"/app/views/account/account-collaborator.html",title:"Collaborator",permission:"*"}).when("/collaborators/new",{controller:"AddCollaboratorController",templateUrl:"/app/views/account/add-collaborator.html",title:"New Collaborator",permission:"*"}).when("/role/:id",{controller:"RoleController",templateUrl:"/app/views/account/role.html",title:"Role",permission:"*"}).when("/roles/new",{controller:"AddRoleController",templateUrl:"/app/views/account/add-role.html",title:"New Role",permission:"*"}).when("/gitHubTeams",{controller:"GitHubTeamsController",templateUrl:"/app/views/account/github-teams.html",title:"GitHub Teams",permission:"*"}).when("/schedules",{controller:"SchedulesController",templateUrl:"/app/views/account/schedules.html",title:"Scheduled tasks",permission:"*"}).when("/schedules/new",{controller:"AddScheduleController",templateUrl:"/app/views/account/add-schedule.html",title:"Add scheduled task",permission:"*"}).when("/schedule/:id",{controller:"ScheduleDetailsController",templateUrl:"/app/views/account/schedule.html",title:"Scheduled task",permission:"*"}).when("/system/build-worker-regions",{controller:"BuildWorkerRegionsController",templateUrl:"/app/views/system/build-worker-regions.html",title:"Build worker regions",permission:"*"}).when("/system/build-worker-regions/new",{controller:"AddBuildWorkerRegionController",templateUrl:"/app/views/system/add-build-worker-region.html",title:"Add build worker region",permission:"*"}).when("/system/build-worker-region/:id",{controller:"BuildWorkerRegionDetailsController",templateUrl:"/app/views/system/build-worker-region.html",title:"Build worker region",permission:"*"}).when("/login",{controller:"LoginController",templateUrl:"/app/views/account/login.html",title:"Login"}).when("/forgot-password",{controller:"ForgotPasswordController",templateUrl:"/app/views/account/forgot-password.html",title:"Forgot password"}).when("/user/reset-password/:token",{controller:"ResetPasswordController",templateUrl:"/app/views/account/reset-password.html",title:"Reset password"}).when("/signup",{controller:"SignupController",templateUrl:"/app/views/account/signup.html",title:"Signup"}).when("/signup/:planId",{controller:"SignupController",templateUrl:"/app/views/account/signup.html",title:"Signup"}).when("/profile",{controller:"ProfileController",templateUrl:"/app/views/account/profile.html",title:"Your profile",permission:"*"}).when("/change-password",{controller:"ProfileController",templateUrl:"/app/views/account/change-password.html",title:"Change password",permission:"*"}).when("/change-email",{controller:"ProfileController",templateUrl:"/app/views/account/change-email.html",title:"Change email",permission:"*"}).when("/notifications",{controller:"NotificationSettingsController",templateUrl:"/app/views/account/notification-settings.html",title:"Email notifications",permission:"*"}).when("/account",{controller:"AccountController",templateUrl:"/app/views/account/account.html",title:"Account settings",permission:"*"}).when("/nuget",{controller:"NuGetController",templateUrl:"/app/views/account/nuget.html",title:"NuGet",permission:"*"}).when("/plan",{controller:"PlanController",templateUrl:"/app/views/account/plan.html",title:"Account plan",permission:"UpdateAccountDetails"}).when("/plan/order/:planId",{controller:"OrderPlanController",templateUrl:"/app/views/account/order-plan.html",title:"Order plan",permission:"UpdateAccountDetails"}).when("/api-token",{controller:"ApiTokenController",templateUrl:"/app/views/account/api-token.html",title:"API token",permission:"ConfigureApiKeys"}).when("/tools/encrypt",{controller:"EncryptDataController",templateUrl:"/app/views/account/encrypt-data.html",title:"Encrypt configuration data",permission:"*"}).when("/tools/validate-yaml",{controller:"ValidateYamlController",templateUrl:"/app/views/account/validate-yaml.html",title:"Validate YAML configuration",permission:"*"}).when("/setup",{controller:"SetupController",templateUrl:"/app/views/setup.html",title:"Setup Application"}).otherwise({templateUrl:"/app/views/404.html",title:"Not found"});t.html5Mode(!0);i.interceptors.push(["$q","$location",function(n,t){return{responseError:function(i){return i.status==401?(console.log("Call to Web API returned 401 (Unathorized)."),t.path("/login"),n.reject(i)):n.reject(i)}}}]);var r=function(n){return n};i.defaults.transformRequest.push(r);i.defaults.transformRequest=function(n){return angular.isObject(n)?JSON.stringify(n):n}}]).run(["$location","$rootScope","$browser","$http","$q","Page","Session","START_SESSION","Moment","Analytics","Utils","SignalR",function(n,t,i,r,u,f,e,o,s,h,c){t.Page=f;t.Session=e;t.Moment=s;t.Analytics=h;t.Utils=c;e.session(o);t.$on("$routeChangeStart",function(i,r){if(e.setupRequired()){n.path("/setup");return}if(t.$broadcast("close-modals"),r){var u=r.permission;u&&(e.hasPermission(u)||(i.preventDefault(),e.redirectUrl(n.path()),n.path("/login")))}});t.$on("$routeChangeSuccess",function(n,t){t&&t.title&&f.title(t.title)})}]);angular.module("appveyor").controller("AccountCollaboratorController",["$routeParams","$scope","$http","Session","Page",function(n,t,i,r,u){i.get("/api/collaborators/"+n.id).success(function(n){t.roles=n.roles;t.user=n.user;t.model=angular.copy(t.user);u.title("Collaborator "+t.user.fullName)}).error(function(n){t.error=n});t.updateCollaborator=function(){t.busy=!0;i.put("/api/collaborators",t.model).success(function(){t.busy=!1;t.success="Collaborator settings have been updated."}).error(function(n){t.error=n;t.busy=!1})}}]);angular.module("appveyor").controller("AccountNavigationController",["$scope","Session","$route",function(n,t,i){n.tab=i.current.tab}]);angular.module("appveyor").controller("AccountUserController",["$routeParams","$scope","$http","Session","Page",function(n,t,i,r,u){t.buildNotificationOptions=[{value:"none",text:"Do not send"},{value:"all",text:"All builds"},{value:"myCommits",text:"Builds with my commits only"}];i.get("/api/users/"+n.id).success(function(n){t.roles=n.roles;t.user=n.user;t.model=angular.copy(t.user);u.title("User "+t.user.fullName)}).error(function(n){t.error=n});t.updateUser=function(){t.busy=!0;i.put("/api/users",t.model).success(function(){t.busy=!1;t.success="User details have been updated."}).error(function(n){t.error=n;t.busy=!1})}}]);angular.module("appveyor").controller("AccountController",["$scope","$http","Session","Page","Account",function(n,t,i,r,u){function f(t){n.authorizedApps[t]={};u.getApplicationAuthorization(t).success(function(i){n.authorizedApps[t].authorization=i}).error(function(i,r){r==403?n.authorizedApps[t].authorizationRequired=!0:n.authorizedApps[t].error=i})}n.authorizedApps={gitHub:{},bitBucket:{},vso:{},kiln:{}};n.userCanManageAuthorizations=i.hasPermission("ManageApplicationAuthorizations");n.account=i.account();n.model=angular.copy(n.account);n.updateDetails=function(){var u=r.setBusy();t.put("/api/account",n.model).success(function(t){i.account(t);n.account=t;n.success="Account details have been updated.";r.removeBusy(u)}).error(function(t){n.error=t;r.removeBusy(u)})};n.authorizationComplete=function(n){f(n.provider)};n.revokeAuthorization=function(t){if(confirm("Do you really want to revoke access?")){var i=r.setBusy();u.revokeApplicationAuthorization(t).success(function(){n.authorizedApps[t]={authorizationRequired:!0};r.removeBusy(i)}).error(function(u){n.authorizedApps[t].error=u;r.removeBusy(i)})}};for(var e in n.authorizedApps)Object.prototype.hasOwnProperty.call(n.authorizedApps,e)&&f(e)}]);angular.module("appveyor").controller("AddCollaboratorController",["$scope","$http","$location","Page",function(n,t,i,r){t.get("/api/roles").success(function(t){n.roles=t});n.addCollaborator=function(){var i=r.setBusy();t.post("/api/collaborators",n.model).success(function(){r.removeBusy(i);r.redirect("/team")}).error(function(t){r.removeBusy(i);n.error=t})}}]);angular.module("appveyor").controller("AddRoleController",["$scope","$http","$location","Page",function(n,t,i,r){n.model={};n.addRole=function(){var i=r.setBusy();t.post("/api/roles",n.model).success(function(n){r.removeBusy(i);r.redirect("/role/"+n.roleId)}).error(function(t){n.error=t;r.removeBusy(i)})}}]);angular.module("appveyor").controller("AddScheduleController",["$routeParams","$scope","$http","$location","Page",function(n,t,i,r,u){t.model={};t.addSchedule=function(){var n=u.setBusy();i.post("/api/schedules",t.model).success(function(){r.path("/schedules");u.removeBusy(n)}).error(function(i){t.error=i;u.removeBusy(n)})}}]);angular.module("appveyor").controller("AddUserController",["$scope","$http","$location","Page",function(n,t,i,r){t.get("/api/roles").success(function(t){n.roles=t});n.addUser=function(){var i=r.setBusy();t.post("/api/users",n.model).success(function(){r.removeBusy(i);r.redirect("/team")}).error(function(t){r.removeBusy(i);n.error=t})}}]);angular.module("appveyor").controller("ApiTokenController",["$scope","$http","Session","Page",function(n,t,i,r){i.hasPermission("ConfigureApiKeys")&&(t.get("/api/user/apiToken").success(function(t){n.token=t}),n.generateApiToken=function(){var i=r.setBusy();t.put("/api/user/apiToken").success(function(t){n.success="API token have been re-generated.";n.token=t;r.removeBusy(i)}).error(function(t){n.error=t;r.removeBusy(i)})})}]);angular.module("appveyor").controller("EncryptDataController",["$scope","$http","Session","Page",function(n,t,i,r){n.encrypted=!0;n.model={plainValue:""};n.encrypt=function(){var i=r.setBusy();n.encrypted=!1;t.post("/api/account/encrypt",n.model).success(function(t){n.encryptedValue=t;r.removeBusy(i);n.encrypted=!0}).error(function(t){n.error=t;r.removeBusy(i)})}}]);angular.module("appveyor").controller("ForgotPasswordController",["$scope","$http","$rootScope","$location","Page",function(n,t,i,r,u){n.send=function(){var i=u.setBusy(),r={email:n.email};t.post("/api/user/forgotPassword",r).success(function(){n.success="A message with password reset link has been sent to the specified email address.";u.removeBusy(i)}).error(function(t){n.error=t;u.removeBusy(i)})}}]);angular.module("appveyor").controller("GitHubTeamsController",["$scope","$http","$location","Page","Session",function(n,t,i,r,u){function f(){n.authorizationRequired=!1;t.get("/api/gitHubTeams").success(function(t){n.roles=t.roles;n.teams=t.teams}).error(function(t,i){i==403?n.authorizationRequired=!0:n.error=t})}n.userCanManageAuthorizations=u.hasPermission("ManageApplicationAuthorizations");f();n.authorizationComplete=function(){f()};n.updateGitHubTeams=function(){var i=r.setBusy(),u={teams:angular.copy(n.teams)};t.put("/api/account/gitHubTeams",u).success(function(){r.removeBusy(i);r.redirect("/team")}).error(function(t){n.error=t;r.removeBusy(i)})}}]);angular.module("appveyor").controller("LoginController",["$scope","$http","$location","Page","Session","SignalR","VsoEnabled",function(n,t,i,r,u,f,e){n.vsoEnabled=e;n.accounts=null;n.model={};n.login=function(){var i=r.setBusy();f.disconnect().then(function(){t.post("/api/user/login",n.model).success(function(t){!t.User&&t.accounts?(n.oauthMode=!1,n.accounts=t.accounts,n.info="Specified user belongs to multiple accounts. Select account and click Login again."):(u.session(t),u.redirectLogin());r.removeBusy(i)}).error(function(t){n.error=t;r.removeBusy(i)})})};n.completeOauthLogin=function(i){if(i.error){n.error={message:i.error};return}if(i.accounts){n.oauthMode=!0;n.provider=i.provider;n.accounts=angular.copy(i.accounts);n.info="Specified user belongs to multiple accounts. Select account and click sign in button again.";return}var e=r.setBusy();f.disconnect().then(function(){t.get("/api/user/session").success(function(n){u.session(n);u.redirectLogin();r.removeBusy(e)}).error(function(t){n.error=t;r.removeBusy(e)})})}}]);angular.module("appveyor").controller("NotificationSettingsController",["$scope","$rootScope","$routeParams","$route","$http","Page",function(n,t,i,r,u,f){n.buildNotificationOptions=[{value:"none",text:"Do not send"},{value:"all",text:"All builds"},{value:"myCommits",text:"Builds with my commits only"}];u.get("/api/user/settings").success(function(t){n.model=t}).error(function(t){n.error=t});n.update=function(){var t=f.setBusy();u.put("/api/user/settings",n.model).success(function(){n.success="Notification settings have been updated.";f.removeBusy(t)}).error(function(i){n.error=i;f.removeBusy(t)})}}]);angular.module("appveyor").controller("NuGetController",["$scope","$http","Session","Page",function(n,t,i,r){t.get("/api/account/nuget").success(function(t){n.feed=t;n.feedUrl=r.applicationUrl()+"/nuget/"+t.id})}]);angular.module("appveyor").controller("OrderPlanController",["$scope","$routeParams","$http","Session","Plans","Page","Countries",function(n,t,i,r,u,f,e){var o=t.planId;n.planId=o;n.tokenData={};n.model={};u.getOrderForm(o).success(function(t){n.plan=t.plan;n.provinceTaxes=t.provinceTaxes}).error(function(t){n.error=t});n.isCanada=function(){return n.tokenData&&n.tokenData.address_country==="Canada"};n.taxMessage=function(){if(n.isCanada()&&n.tokenData.address_state){var t=_.find(n.provinceTaxes,function(t){return t.province==n.tokenData.address_state});return t.message}return null};n.countries=e.get();n.orderPlan=function(){var t=f.setBusy();Stripe.card.createToken(n.tokenData,function(u,e){n.$apply(function(n){if(e.error)n.error=e.error,f.removeBusy(t);else{var u={planId:n.planId,tokenId:e.id,couponId:n.model.couponId,companyName:n.model.companyName,billingAddress:n.tokenData.address_line1,billingCity:n.tokenData.address_city,billingState:n.tokenData.address_state,billingZip:n.tokenData.address_zip,billingCountry:n.tokenData.address_country};i.post("/api/orders",u).success(function(n){f.removeBusy(t);r.account(n);f.redirect("/plan")}).error(function(i){n.error=i;f.removeBusy(t)})}})})}}]);angular.module("appveyor").controller("PlanController",["$scope","$http","Session","Plans","Page",function(n,t,i,r,u){n.Plans=r;n.planIntervals=[{value:"monthly",text:"Monthly"},{value:"yearly",text:"Yearly"}];n.planInterval="monthly";n.updateCurrentPlan=function(){var t=i.account();n.planId=t.planId;n.planStart=t.planStart;n.planEnd=t.planEnd;n.planStatus=t.planStatus;n.plan=r.getPlan(n.planId);r.getPlan(n.planId).success(function(t){n.plan=t});n.showPlans=n.planId==="free"||n.planStatus==="trial"};n.updateCurrentPlan();n.receipts=[];var f=0;n.receiptsCount=5;n.receiptsLoading=!1;n.moreReceipts=!1;n.getReceipts=function(){n.receiptsLoading=!0;t.get("/api/invoices?offset="+f+"&count="+n.receiptsCount).success(function(t){n.receiptsLoading=!1;n.receipts.push.apply(n.receipts,t);f+=t.length;n.moreReceipts=t.length==n.receiptsCount})};n.getReceipts();n.cancelSubscription=function(){if(confirm("Do you really want to cancel your current paid subscription and switch account to Free plan?")){var r=u.setBusy();t({method:"DELETE",url:"/api/subscriptions"}).success(function(t){i.account(t);n.updateCurrentPlan();u.removeBusy(r)}).error(function(t){n.error=t;u.removeBusy(r)})}}}]);angular.module("appveyor").controller("ProfileController",["$scope","$http","Session","Page",function(n,t,i,r){n.user=i.user();n.setUser=function(t){n.user=t};n.completeOauthLogin=function(t){if(t.error){n.error={message:t.error};return}t.user&&(n.user=t.user,i.user(t.user))};t.get("/api/user/collaborator").success(function(t){n.collaboratorAccounts=t});n.leaveAccount=function(i){if(confirm("Do you really want to leave this account as collaborator?")){var u=n.collaboratorAccounts[i];u.busyId=r.setBusy(r.generateId());t({method:"DELETE",url:"/api/user/collaborator/"+u.accountId}).success(function(){n.collaboratorAccounts.splice(i,1);r.removeBusy(u.busyId)}).error(function(t){n.error=t;r.removeBusy(u.busyId)})}}}]);angular.module("appveyor").controller("ResetPasswordController",["$scope","$routeParams","$http","$location","Page",function(n,t,i,r,u){n.model={token:t.token};n.resetPassword=function(){var t=u.setBusy();i.post("/api/user/resetPassword",n.model).success(function(){n.success="Password has been changed.";n.completed=!0;u.removeBusy(t)}).error(function(i){n.error=i;u.removeBusy(t)})}}]);angular.module("appveyor").controller("RoleController",["$routeParams","$scope","$http","Session","Page",function(n,t,i,r,u){i.get("/api/roles/"+n.id).success(function(n){t.role=n;t.model=angular.copy(n);u.title("Role "+n.name)}).error(function(n){t.error=n});t.updateRole=function(){var n=u.setBusy();i.put("/api/roles",t.model).success(function(){u.redirect("/team");u.removeBusy(n)}).error(function(i){t.error=i;u.removeBusy(n)})}}]);angular.module("appveyor").controller("ScheduleDetailsController",["$routeParams","$scope","$http","$location","Page",function(n,t,i,r,u){i.get("/api/schedules?id="+n.id).success(function(n){t.schedule=n;t.model=angular.copy(n);u.title("Schedule "+n.name)}).error(function(n){t.error=n});t.updateSchedule=function(){var n=u.setBusy();i.put("/api/schedules",t.model).success(function(){r.path("/schedules");u.removeBusy(n)}).error(function(i){t.error=i;u.removeBusy(n)})}}]);angular.module("appveyor").controller("SchedulesController",["$scope","$http","Page",function(n,t,i){t.get("/api/schedules").success(function(t){n.schedules=t});n.deleteSchedule=function(r){if(confirm("Do you really want to delete this schedule?")){var u=n.schedules[r];u.busyId=i.setBusy(i.generateId());t({method:"DELETE",url:"/api/schedules?id="+u.scheduleId}).success(function(){n.schedules.splice(r,1);i.removeBusy(u.busyId)}).error(function(t){n.error=t;i.removeBusy(u.busyId)})}}}]);angular.module("appveyor").controller("SetupController",["$scope","$http","$location","Session","Page",function(n,t,i,r,u){if(!r.setupRequired()){i.path("/");return}n.protocols=["http","https"];n.model={accountName:"AppVeyor",adminName:"AppVeyor Admin",urls:[{scheme:i.protocol(),host:i.host(),isPrimary:!0},{scheme:"https",host:null,isPrimary:!1}]};n.setup=function(){var f=u.setBusy();t.post("/api/setup",n.model).success(function(n){r.session(n);i.path("/");u.removeBusy(f)}).error(function(t){n.error=t;u.removeBusy(f)})}}]);angular.module("appveyor").controller("SignupController",["$scope","$http","$routeParams","$location","Page","Session","VsoEnabled",function(n,t,i,r,u,f,e){n.vsoEnabled=e;n.model={planId:i.planId?i.planId:"pro"};n.signup=function(){var i=u.setBusy();t.post("/api/account/signup",n.model).success(function(n){f.session(n);r.path("/");u.removeBusy(i)}).error(function(t){n.error=t;u.removeBusy(i)})};n.completeOauthSignup=function(i){if(i.error){n.error={message:i.error};return}if(i.accounts){n.oauthMode=!0;n.provider=i.provider;n.accounts=i.accounts;n.info="The user has access to multiple accounts. Select account and click sign up button again.";return}var e=u.setBusy();t.get("/api/user/session").success(function(n){f.session(n);r.path("/");u.removeBusy(e)}).error(function(t){n.error=t;u.removeBusy(e)})}}]);angular.module("appveyor").controller("TeamController",["$scope","$http","Session","Page",function(n,t,i,r){t.get("/api/users").success(function(t){n.users=t});n.$on("user-added",function(t,i){var r=n.users;r&&r.push(i)});n.deleteUser=function(i){if(confirm("Do you really want to delete this user?")){var u=n.users[i];u.busyId=r.setBusy(r.generateId());t({method:"DELETE",url:"/api/users/"+u.userId}).success(function(){n.users.splice(i,1);r.removeBusy(u.busyId)}).error(function(t){n.error=t;r.removeBusy(u.busyId)})}};t.get("/api/collaborators").success(function(t){n.collaborators=t});n.deleteCollaborator=function(i){if(confirm("Do you really want to remove this collaborator from current account?")){var u=n.collaborators[i];u.busyId=r.setBusy(r.generateId());t({method:"DELETE",url:"/api/collaborators/"+u.userId}).success(function(){n.collaborators.splice(i,1);r.removeBusy(u.busyId)}).error(function(t){n.error=t;r.removeBusy(u.busyId);u.busyId=null})}};t.get("/api/roles").success(function(t){n.roles=t});n.deleteRole=function(i){if(confirm("Do you really want to delete this role?")){var u=n.roles[i];u.busyId=r.setBusy(r.generateId());t({method:"DELETE",url:"/api/roles/"+u.roleId}).success(function(){n.roles.splice(i,1);r.removeBusy(u.busyId)}).error(function(t){n.error=t;r.removeBusy(u.busyId)})}};t.get("/api/account/gitHubTeams").success(function(t){n.gitHubTeams=t});n.deleteGitHubTeam=function(i){if(confirm("Do you really want to revoke access to this GitHub team?")){var u=n.gitHubTeams[i];u.busyId=r.setBusy(r.generateId());t({method:"DELETE",url:"/api/account/gitHubTeams/"+u.gitHubTeamId}).success(function(){n.gitHubTeams.splice(i,1);r.removeBusy(u.busyId)}).error(function(t){n.error=t;r.removeBusy(u.busyId)})}}}]);angular.module("appveyor").controller("UserChangeDetailsController",["$scope","$http","Session","Page",function(n,t,i,r){n.model=angular.copy(n.user);n.updateDetails=function(){var u=r.setBusy();t.put("/api/user/details",n.model).success(function(t){i.user(t);n.setUser(t);n.success="User details have been updated.";r.removeBusy(u)}).error(function(t){n.error=t;r.removeBusy(u)})}}]);angular.module("appveyor").controller("UserChangeEmailController",["$scope","$http","Session","Page",function(n,t,i,r){n.updateEmail=function(){var u=r.setBusy();t.put("/api/user/email",n.model).success(function(t){i.user(t);n.setUser(t);n.success="User email has been changed.";r.removeBusy(u)}).error(function(t){n.error=t;r.removeBusy(u)})}}]);angular.module("appveyor").controller("UserChangePasswordController",["$scope","$http","Session","Page",function(n,t,i,r){function u(){n.form.$setPristine();n.form.$submitted=!1;n.model={}}n.busyId="change-user-password";n.updatePassword=function(){r.setBusy(n.busyId);t.put("/api/user/password",n.model).success(function(){n.success="User password has been changed.";u();r.removeBusy(n.busyId)}).error(function(t){n.error=t;r.removeBusy(n.busyId)})}}]);angular.module("appveyor").controller("ValidateYamlController",["$scope","$http","Session","Page",function(n,t,i,r){function u(t){var e=[],r=n.model.yaml.split("\n"),o=3,u=t.line-o-1,f=t.line+o,i;for(u<0&&(u=0),f>r.length&&(f=r.length),i=u;i<f;i++)e.push({error:i+1==t.line,text:r[i]});n.model.fragment=e}n.model={yaml:null,validated:!1,fragment:null};n.validate=function(){var i=r.setBusy();n.model.validated=!1;n.model.fragment=null;n.model.error=null;n.model.success=null;t.post("/api/projects/validate-yaml",n.model.yaml).success(function(t){r.removeBusy(i);n.model.validated=!0;t.isValid?n.model.success="YAML configuration is valid!":(n.model.error=t.errorMessage,u(t))}).error(function(t){n.model.error=t.message;r.removeBusy(i)})}}]);angular.module("appveyor").controller("DeploymentAgentSettingsController",["$scope",function(n){n.addSetting=function(){n.deployment.providerSettings.push({name:null,value:{value:null,isEncrypted:!1}})};n.removeSetting=function(t){n.deployment.providerSettings.splice(t,1)}}]);angular.module("appveyor").controller("DeploymentEnvironmentSettingsController",["$scope",function(){console.log("DeploymentEnvironmentSettingsController")}]);angular.module("appveyor").controller("DeploymentFtpSettingsController",["$scope",function(n){n.protocols=[{name:"ftp",displayName:"FTP"},{name:"ftps",displayName:"FTPS"},{name:"sftp",displayName:"SFTP"}];n.$watch("deployment",function(t){var i,r,u;t&&(i=n.setting("FTP","host").value,i.value||(i.value=n.setting("FTP","server").value.value,r="ftp",u=n.setting("FTP","enable_ssl").value.value,u=="true"&&(r="ftps"),n.setting("FTP","protocol").value.value=r))})}]);angular.module("appveyor").controller("DeploymentLocalSettingsController",["$scope",function(n){n.addSetting=function(){n.deployment.providerSettings.push({name:null,value:{value:null,isEncrypted:!1}})};n.removeSetting=function(t){n.deployment.providerSettings.splice(t,1)}}]);angular.module("appveyor").controller("DeploymentProviderController",["$scope",function(n){n.setting=function(t,i,r){var o=r?!0:!1,u=null,f,e;return n.deployment&&n.deployment.providerSettings&&(f=n.deployment.providerSettings,u=_.find(f,function(n){return n.name==i}),u||t!=n.deployment.provider?u&&t!=n.deployment.provider&&(f.splice(_.indexOf(f,u),1),u=null):(e=n._defaultSettingValue?n._defaultSettingValue(i):null,u={name:i,value:{value:e,isEncrypted:o}},f.push(u))),u};n.getDefaultSettingValue=function(t){n._defaultSettingValue=t}}]);angular.module("appveyor").controller("DeploymentScenarioController",["$scope",function(n){n.$watch("deployment",function(t){t&&(n.onBranch=t.onBranch.length>0)});n.stringValue=function(n,t){var i=null;return n&&t&&t.length>0?i=t[0]:n&&t?(i={value:null},t.push(i)):!n&&t&&t.length>0&&t.splice(0,1),i};n.addEnvironmentVariable=function(){n.deployment.onEnvironmentVariables.push({name:null,value:{value:null,isEncrypted:!1}})};n.removeEnvironmentVariable=function(t){n.deployment.onEnvironmentVariables.splice(t,1)}}]);angular.module("appveyor").controller("DeploymentSqlDatabaseSettingsController",["$scope",function(n){n.dacpacSettings=[{enabled:!0,name:"script_database_options",title:"Deploy database properties"},{enabled:!1,name:"create_new_database",title:"Always re-create database"},{enabled:!0,name:"block_on_possible_data_loss",title:"Block incremental deployment if data loss might occur"},{enabled:!1,name:"deploy_database_in_single_user_mode",title:"Execute deployment script in single-user mode"},{enabled:!1,name:"backup_database_before_changes",title:"Back up database before deployment"},{enabled:!1,name:"drop_objects_not_in_source",title:"DROP objects in target but not in project"},{enabled:!1,name:"no_alter_statements_to_change_clr_types",title:"Do not user ALTER ASSEMBLY statements to update CLR types"},{enabled:!1,name:"allow_drop_blocking_assemblies",title:"Allow drop blocking assemblies",description:"This property is used by SqlClr deployment to cause any blocking assemblies to be dropped as part of the deployment plan. By default, any blocking/referencing assemblies will block an assembly update if the referencing assembly needs to be dropped."},{enabled:!1,name:"allow_incompatible_platform",title:"Allow incompatible platform",description:"Specifies whether to attempt the action despite incompatible SQL Server platforms."},{enabled:!1,name:"comment_out_set_var_declarations",title:"Comment out SetVar declarations",description:"Specifies whether the declaration of SETVAR variables should be commented out in the generated publish script. You might choose to do this if you plan to specify the values on the command line when you publish by using a tool such as SQLCMD.EXE."},{enabled:!1,name:"compare_using_target_collation",title:"Compare using target collation",description:"This setting dictates how the database's collation is handled during deployment; by default the target database's collation will be updated if it does not match the collation specified by the source.  When this option is set, the target database's (or server’s) collation should be used."},{enabled:!0,name:"disable_and_reenable_ddl_triggers",title:"Disable and re-enable DDL triggers",description:"Specifies whether Data Definition Language (DDL) triggers are disabled at the beginning of the publish process and re-enabled at the end of the publish action."},{enabled:!0,name:"do_not_alter_change_data_capture_objects",title:"Do not alter Change Data Capture objects",description:"If enabled: true, Change Data Capture objects are not altered."},{enabled:!0,name:"do_not_alter_replicated_objects",title:"Do not ALTER replicated objects",description:"Specifies whether objects that are replicated are identified during verification."},{enabled:!0,name:"drop_constraints_not_in_source",title:"Drop constraints not in source",description:"Specifies whether constraints that do not exist in the database snapshot (.dacpac) file will be dropped from the target database when you publish to a database."},{enabled:!0,name:"drop_dml_triggers_not_in_source",title:"Drop DML triggers not in source",description:"Specifies whether DML triggers that do not exist in the database snapshot (.dacpac) file will be dropped from the target database when you publish to a database."},{enabled:!0,name:"drop_extended_properties_not_in_source",title:"Drop extended properties not in source",description:"Specifies whether extended properties that do not exist in the database snapshot (.dacpac) file will be dropped from the target database when you publish to a database."},{enabled:!0,name:"drop_indexes_not_in_source",title:"Drop indexes not in source",description:"Specifies whether indexes that do not exist in the database snapshot (.dacpac) file will be dropped from the target database when you publish to a database."},{enabled:!1,name:"drop_permissions_not_in_source",title:"Drop permissions not in source",description:"Specifies whether permissions that do not exist in the database snapshot (.dacpac) file will be dropped from the target database when you publish updates to a database."},{enabled:!1,name:"drop_role_members_not_in_source",title:"Drop role members not defined in source",description:"Specifies whether role members that are not defined in the database snapshot (.dacpac) file will be dropped from the target database when you publish updates to a database."},{enabled:!1,name:"generate_smart_defaults",title:"Generate smart defaults, when applicable",description:"Automatically provides a default value when updating a table that contains data with a column that does not allow null values."},{enabled:!0,name:"ignore_ansi_nulls",title:"Ignore ANSI Nulls",description:"Specifies whether differences in the ANSI NULLS setting should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_authorizer",title:"Ignore authorizer",description:"Specifies whether differences in the Authorizer should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_column_collation",title:"Ignore column collation",description:"Specifies whether differences in the column collations should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_comments",title:"Ignore comments",description:"Specifies whether differences in the comments should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_cryptographic_provider_file_path",title:"Ignore cryptographic provider file path",description:"Specifies whether differences in the file path for the cryptographic provider should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_ddl_trigger_order",title:"Ignore DDL trigger order",description:"Specifies whether differences in the order of Data Definition Language (DDL) triggers should be ignored or updated when you publish to a database or server."},{enabled:!1,name:"ignore_ddl_trigger_state",title:"Ignore DDL trigger state",description:"Specifies whether differences in the enabled or disabled state of Data Definition Language (DDL) triggers should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_default_schema",title:"Ignore default schema",description:"Specifies whether differences in the default schema should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_dml_trigger_order",title:"Ignore DML trigger order",description:"Specifies whether differences in the order of Data Manipulation Language (DML) triggers should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_dml_trigger_state",title:"Ignore DML trigger state",description:"Specifies whether differences in the enabled or disabled state of DML triggers should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_extended_properties",title:"Ignore extended properties",description:"Specifies whether differences in the extended properties should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_file_and_log_file_path",title:"Ignore file and log file path",description:"Specifies whether differences in the paths for files and log files should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_filegroup_placement",title:"Ignore filegroup placement",description:"Specifies whether differences in the placement of objects in FILEGROUPs should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_file_size",title:"Ignore file size",description:"Specifies whether differences in the file sizes should be ignored or whether a warning should be issued when you publish to a database."},{enabled:!0,name:"ignore_fill_factor",title:"Ignore fill factor",description:"Specifies whether differences in the fill factor for index storage should be ignored or whether a warning should be issued when you publish to a database."},{enabled:!0,name:"ignore_full_text_catalog_file_path",title:"Ignore full-text catalog file path",description:"Specifies whether differences in the file path for the full-text catalog should be ignored or whether a warning should be issued when you publish to a database."},{enabled:!1,name:"ignore_identity_seed",title:"Ignore identity seed",description:"Specifies whether differences in the seed for an identity column should be ignored or updated when you publish updates to a database."},{enabled:!1,name:"ignore_increment",title:"Ignore increment",description:"Specifies whether differences in the increment for an identity column should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_index_options",title:"Ignore index options",description:"Specifies whether differences in the index options should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_index_padding",title:"Ignore index padding",description:"Specifies whether differences in the index padding should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_keyword_casing",title:"Ignore keyword casing",description:"Specifies whether differences in the casing of keywords should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_lock_hints_on_indexes",title:"Ignore lock hints on indexes",description:"Specifies whether differences in the lock hints on indexes should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_login_sids",title:"Ignore login SIDs",description:"Specifies whether differences in the security identification number (SID) should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_not_for_replication",title:"Ignore not for replication",description:"Specifies whether the not for replication settings should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_object_placement_on_partition_scheme",title:"Ignore object placement on partition schemes",description:"Specifies whether an object's placement on a partition scheme should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_partition_schemes",title:"Ignore partition schemes",description:"Specifies whether differences in partition schemes and functions should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_permissions",title:"Ignore permissions",description:"Specifies whether differences in the permissions should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_quoted_identifiers",title:"Ignore quoted identifiers",description:"Specifies whether differences in the quoted identifiers setting should be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_role_membership",title:"Ignore role membership",description:"Specifies whether differences in the role membership of logins should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_route_lifetime",title:"Ignore route lifetime",description:"Specifies whether differences in the amount of time that SQL Server retains the route in the routing table should be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_semicolon_between_statements",title:"Ignore semicolon between statements",description:"Specifies whether differences in the semi-colons between T-SQL statements will be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_table_options",title:"Ignore table options",description:"Specifies whether differences in the table options will be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_user_settings_objects",title:"Ignore user settings objects",description:"Specifies whether differences in the user settings objects will be ignored or updated when you publish to a database."},{enabled:!0,name:"ignore_whitespace",title:"Ignore whitespace",description:"Specifies whether differences in white space will be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_with_nocheck_on_check_constraints",title:"Ignore with nocheck on check constraints",description:"Specifies whether differences in the value of the WITH NOCHECK clause for check constraints will be ignored or updated when you publish to a database."},{enabled:!1,name:"ignore_with_nocheck_on_foreign_keys",title:"Ignore with nocheck on foreign keys",description:"Specifies whether differences in the value of the WITH NOCHECK clause for foreign keys will be ignored or updated when you publish to a database."},{enabled:!0,name:"include_composite_objects",title:"Include composite objects",description:"Include all composite elements as part of a single publish operation."},{enabled:!1,name:"include_transactional_scripts",title:"Include transactional scripts",description:"Specifies whether transactional statements should be used where possible when you publish to a database."},{enabled:!0,name:"populate_files_on_file_groups",title:"Populate files on FileGroups",description:"Specifies whether a new file is also created when a new FileGroup is created in the target database."},{enabled:!1,name:"script_database_collation",title:"Script database collation",description:"Specifies whether differences in the database collation should be ignored or updated when you publish to a database."},{enabled:!1,name:"script_database_compatibility",title:"Script database compatibility",description:"Specifies whether differences in the database compatibility should be ignored or updated when you publish to a database."},{enabled:!1,name:"script_deploy_state_checks",title:"Script state checks",description:"Specifies whether statements are generated in the publish script to verify that the database name and server name match the names specified in the database project."},{enabled:!1,name:"script_file_size",title:"Script file size",description:"Controls whether size is specified when adding a file to a filegroup."},{enabled:!0,name:"script_new_constraint_validation",title:"Script validation for new constraints",description:"At the end of publish all of the constraints will be verified as one set, avoiding data errors caused by a check or foreign key constraint in the middle of publish. If set to enabled: false, your constraints will be published without checking the corresponding data."},{enabled:!0,name:"script_refresh_module",title:"Script refresh module",description:"Include refresh statements at the end of the publish script."},{enabled:!1,name:"treat_verification_errors_as_warnings",title:"Treat verification errors as warnings",description:"Specifies whether errors encountered during publish verification should be treated as warnings. The check is performed against the generated deployment plan before the plan is executed against your target database. Plan verification detects problems such as the loss of target-only objects (such as indexes) that must be dropped to make a change. Verification will also detect situations where dependencies (such as a table or view) exist because of a reference to a composite project, but do not exist in the target database. You might choose to do this to get a complete list of all issues, instead of having the publish action stop on the first error."},{enabled:!0,name:"unmodifiable_object_warnings",title:"Unmodifiable object warnings",description:"Specifies whether warnings should be generated when differences are found in objects that cannot be modified, for example, if the file size or file paths were different for a file."},{enabled:!0,name:"verify_collation_compatibility",title:"Verify collation compatibility",description:"Specifies whether collation compatibility is verified."},{enabled:!0,name:"verify_deployment",title:"Verify deployment",description:"Specifies whether checks should be performed before publishing that will stop the publish action if issues are present that might block successful publishing. For example, your publish action might stop if you have foreign keys on the target database that do not exist in the database project, and that will cause errors when you publish."}];n.getTopLevelSettings=function(){return _.filter(n.dacpacSettings,function(n){return!n.description})};n.getAdvancedSettings=function(){return _.filter(n.dacpacSettings,function(n){return n.description})};n.getSqlCmdVariables=function(){var t=_.filter(n.deployment.providerSettings,function(n){return n.name&&n.name.indexOf("sqlcmd.")==0});return _.each(t,function(n){n.sqlVariableName||(n.sqlVariableName=function(t){return angular.isDefined(t)?n.name="sqlcmd."+t:n.name.substring(7)})}),t};n.addSetting=function(){n.deployment.providerSettings.push({name:"sqlcmd.",value:{value:null,isEncrypted:!1}})};n.removeSetting=function(t){for(var i=0;i<n.deployment.providerSettings.length;i++)if(n.deployment.providerSettings[i].name==t){n.deployment.providerSettings.splice(i,1);break}};n.getDefaultSettingValue(function(t){var i=_.find(n.dacpacSettings,function(n){return n.name==t});return i?i.enabled?"true":"false":null})}]);angular.module("appveyor").controller("AddEnvironmentController",["$scope","Environments","Page",function(n,t,i){n.deployment={name:null,provider:null,providerSettings:[],environmentVariables:[]};n.deploymentMethods=t.getProviders();n.addEnvironment=function(){var u,r;n.$broadcast("on_deployment_save");u={name:n.deployment.name,provider:n.deployment.provider,settings:{providerSettings:n.deployment.providerSettings,environmentVariables:n.deployment.environmentVariables}};n.busyId=i.generateId();r=i.setBusy(n.busyId);t.addEnvironment(u).success(function(n){i.redirect("/environment/"+n.deploymentEnvironmentId);i.removeBusy(r)}).error(function(t){n.error=t;i.removeBusy(r)})};n.addEnvironmentVariable=function(){n.deployment.environmentVariables.push({name:null,value:{value:null,isEncrypted:!1}})};n.removeEnvironmentVariable=function(t){n.deployment.environmentVariables.splice(t,1)};n.toggleEncryption=function(n){n.isEncrypted=!n.isEncrypted}}]);angular.module("appveyor").controller("EnvironmentDeploymentsController",["$scope","Environments","Page",function(n,t,i){n.setEnvironmentNav("deployments");t.getDeployments(n.requestParams.environmentId).success(function(t){n.deployments=t.deployments;n.setEnvironment(t.environment);i.title(t.environment.name)});n.deployEnabled=function(t){return!i.isBusy(n.busyId)&&!t.deployment};n.promoteEnabled=function(t){return!i.isBusy(n.busyId)&&t.deployment&&t.deployment.status!="running"&&t.deployment.status!="queued"};n.$on("environment.deploymentAdded",function(t,i){if(n.environment&&n.environment.deploymentEnvironmentId===i.environmentId){var r=_.find(n.deployments,function(n){return n.project.projectId===i.projectId});r!=null&&n.$apply(function(){r.deployment=i.deployment})}});n.$on("environment.deploymentStatusChanged",function(t,i){var r=_.find(n.deployments,function(n){return n.deployment&&n.deployment.deploymentId===i.deploymentId});r!=null&&n.$apply(function(){r.deployment.status=i.status;i.started&&(r.deployment.started=i.started);i.finished&&(r.deployment.finished=i.finished)})})}]);angular.module("appveyor").controller("EnvironmentDetailsController",["$scope","$routeParams","$route","Environments","SignalR",function(n,t,i,r,u){n.requestParams={environmentId:t.environmentId,environmentView:i.current.environmentView||"environment-deployments"};n.setEnvironmentNav=function(t){n.environmentNav=t};n.setEnvironment=function(t){n.environment=t;t&&u.connect().then(function(){u.subscribeEnvironmentEvents(t.deploymentEnvironmentId)})}}]);angular.module("appveyor").controller("EnvironmentSettingsController",["$scope","$route","Page","Environments",function(n,t,i,r){n.setEnvironmentNav("settings");r.getSettings(n.requestParams.environmentId).success(function(t){n.environment=t.environment;n.environment.providerDisplayName=r.getProviderDisplayName(t.environment.provider);n.deployment=t.environment.settings;n.deployment.provider=t.environment.provider;n.setEnvironment(t.environment);i.title(t.environment.name)});n.save=function(){var u,t;n.$broadcast("on_deployment_save");u={deploymentEnvironmentId:n.environment.deploymentEnvironmentId,name:n.environment.name,environmentAccessKey:n.environment.environmentAccessKey,settings:n.deployment};n.busyId=i.generateId();t=i.setBusy(n.busyId);r.updateEnvironment(u).success(function(){i.removeBusy(t);n.info="Environment settings have been updated."}).error(function(r){n.error=r;i.removeBusy(t)})};n.deleteEnvironment=function(){if(prompt('This action cannot be undone! To delete environment "'+n.environment.name+'" please type its name to confirm:')==n.environment.name){var t=i.setBusy();r.deleteEnvironment(n.environment.deploymentEnvironmentId).success(function(){i.redirect("/environments");i.removeBusy(t)}).error(function(r){n.error=r;i.removeBusy(t)})}};n.addEnvironmentVariable=function(){n.deployment.environmentVariables.push({name:null,value:{value:null,isEncrypted:!1}})};n.removeEnvironmentVariable=function(t){n.deployment.environmentVariables.splice(t,1)};n.toggleEncryption=function(n){n.isEncrypted=!n.isEncrypted}}]);angular.module("appveyor").controller("EnvironmentsController",["$scope","Environments",function(n,t){function i(t){if(n.environments)for(var i=0;i<n.environments.length;i++)if(n.environments[i].deploymentEnvironmentId===t)return i;return-1}t.getAll().success(function(t){n.environments=t});n.getProviderDisplayName=function(n){return t.getProviderDisplayName(n)};n.$on("environmentAdded",function(t,r){var u=r.environment;i(u.deploymentEnvironmentId)===-1&&n.$apply(function(){n.environments.push(u)})});n.$on("environmentUpdated",function(t,r){var u=r.environment,f=i(u.deploymentEnvironmentId);f!==-1&&n.$apply(function(){n.environments[f].name=u.name})});n.$on("environmentDeleted",function(t,r){var u=i(r.deploymentEnvironmentId);u!=-1&&n.$apply(function(){n.environments.splice(u,1)})})}]);angular.module("appveyor").controller("CampfireNotificationController",["$scope",function(n){n.$watch("notification",function(n){n&&(n.settings.$type="Appveyor.Models.CampfireNotificationSettings, Appveyor.Models",n.settings.authToken||(n.settings.authToken={isEncrypted:!0,value:null}))})}]);angular.module("appveyor").controller("EmailNotificationController",["$scope",function(n){n.$watch("notification",function(n){n&&(n.settings.$type="Appveyor.Models.EmailNotificationSettings, Appveyor.Models")})}]);angular.module("appveyor").controller("HipChatNotificationController",["$scope",function(n){n.$watch("notification",function(n){n&&(n.settings.$type="Appveyor.Models.HipChatNotificationSettings, Appveyor.Models",n.settings.authToken||(n.settings.authToken={isEncrypted:!0,value:null}))})}]);angular.module("appveyor").controller("SlackNotificationController",["$scope",function(n){n.$watch("notification",function(n){n&&(n.settings.$type="Appveyor.Models.SlackNotificationSettings, Appveyor.Models",n.settings.authToken||(n.settings.authToken={isEncrypted:!0,value:null}))})}]);angular.module("appveyor").controller("VsoTeamRoomNotificationController",["$scope",function(n){n.$watch("notification",function(n){n&&(n.settings.$type="Appveyor.Models.VsoTeamRoomNotificationSettings, Appveyor.Models",n.settings.password||(n.settings.password={isEncrypted:!0,value:null}))})}]);angular.module("appveyor").controller("VsoWorkItemNotificationController",["$scope",function(n){n.$watch("notification",function(n){n&&(n.settings.$type="Appveyor.Models.VsoWorkItemNotificationSettings, Appveyor.Models",n.settings.password||(n.settings.password={isEncrypted:!0,value:null}))})}]);angular.module("appveyor").controller("WebhookNotificationController",["$scope",function(n){n.$watch("notification",function(n){n&&(n.settings.$type="Appveyor.Models.WebhookNotificationSettings, Appveyor.Models")})}]);angular.module("appveyor").controller("AddProjectController",["$scope","Session","Page","Repositories","Projects","VsoEnabled",function(n,t,i,r,u,f){n.repositories={};n.request={};n.vsoEnabled=f;n.userCanManageAuthorizations=t.hasPermission("ManageApplicationAuthorizations");n.setRepositoryProvider=function(t){t&&(n.request.repositoryProvider=t);n.loadRepositories()};n.loadRepositories=function(){n.authorizationRequired=!1;var t=n.request.repositoryProvider;n.repositories[t]==null&&r.getAll(t).success(function(i){n.repositories[t]=i}).error(function(t,i){i==403?n.authorizationRequired=!0:n.error=t})};n.authorizationComplete=function(){n.loadRepositories()};n.getAvatarUrl=function(n,t){return n?"https://www.gravatar.com/avatar/"+n+"?s=40":t?"/app/images/group.png":"/app/images/user.png"};n.addProject=function(t){n.request.repositoryName=t.fullName;n.busyId=i.generateId();var r=i.setBusy(n.busyId);t.adding=!0;u.addProject(n.request).success(function(n){i.redirect("/project/"+n.accountName+"/"+n.slug);i.removeBusy(r)}).error(function(u){n.error=u;t.adding=!1;i.removeBusy(r)})};n.toggleRepository=function(t){t.expanded=!t.expanded;t.expanded&&t.children==null&&r.getChildren(n.request.repositoryProvider,t.fullName).success(function(n){t.children=n;t.children.length==0&&(t.hasChildren=!1)}).error(function(t,i){i==403?n.authorizationRequired=!0:n.error=t})};n.setRepositoryProvider("gitHub")}]);angular.module("appveyor").controller("ProjectAuthorizeBitBucketController",["$scope",function(){}]);angular.module("appveyor").controller("ProjectAuthorizeGitHubController",["$scope",function(n){n.authorizationScope="read:org,admin:repo_hook,repo:status";n.authorizationUrl=function(){return"/github?scope="+n.authorizationScope}}]);angular.module("appveyor").controller("ProjectAuthorizeKilnController",["$scope","$http","Page",function(n,t,i){n.request={};n.updateKilnAuthorization=function(){var r=i.setBusy();t.put("/api/kiln/authorization",n.request).success(function(){n.authorizationComplete();i.removeBusy(r)}).error(function(t){n.error=t;i.removeBusy(r)})}}]);angular.module("appveyor").controller("ProjectAuthorizeVsoController",["$scope","$http","Page",function(){}]);angular.module("appveyor").controller("ProjectBuildArtifactsController",["$scope","Page","Projects","BuildJobs",function(n,t,i,r){function u(t){r.getArtifacts(t.jobId).success(function(t){n.artifacts=t})}n.BuildJobs=r;n.$watch("job",function(t){t?u(t):n.artifacts=null});n.getFileName=function(n){return n.replace(/\//g,"\\")};n.getDownloadUrl=function(i){return t.applicationUrl()+"/api/buildjobs/"+n.job.jobId+"/artifacts/"+i};n.$on("buildJob.artifactAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&(n.artifacts==null&&(n.artifacts=[]),n.$apply(function(){n.artifacts.push(i.artifact)}))})}]);angular.module("appveyor").controller("ProjectBuildConsoleController",["$scope","$location","$anchorScroll","$timeout","Page","Projects","BuildJobs",function(n,t,i,r,u,f,e){n.getConsole=e.getConsole;n.consoleWriteHandler="buildJob.writeConsole"}]);angular.module("appveyor").controller("ProjectBuildJobsController",["$scope","Page","Projects",function(){}]);angular.module("appveyor").controller("ProjectBuildMessagesController",["$scope","Page","Projects","BuildJobs",function(n,t,i,r){function u(t){r.getMessages(t.jobId).success(function(t){n.messages=t});r.getCompilationMessages(t.jobId).success(function(t){n.compilationMessages=t})}n.$watch("job",function(t){t?u(t):(n.messages=null,n.compilationMessages=null)});n.toggleDetails=function(n){n.detailsExpanded=!n.detailsExpanded};n.$on("buildJob.messageAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){n.messages==null&&(n.messages={list:[],total:0,errors:0});n.messages.list.push(i.message);n.messages.total++;n.messages.errors+=i.message.category=="error"?1:0})});n.$on("buildJob.compilationMessageAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){n.compilationMessages==null&&(n.compilationMessages={list:[],total:0,errors:0,warnings:0});n.compilationMessages.list.push(i.message);n.compilationMessages.total++;n.compilationMessages.errors+=i.message.category=="error"?1:0;n.compilationMessages.warnings+=i.message.category=="warning"?1:0})})}]);angular.module("appveyor").controller("ProjectBuildTestsController",["$scope","Page","Projects","BuildJobs",function(n,t,i,r){function u(t){r.getTests(t.jobId).success(function(t){n.tests=t})}n.BuildJobs=r;n.$watch("job",function(t){t?u(t):n.tests=null});n.sortFailedFirst=function(n){return n.outcome!=="failed"};n.toggleDetails=function(n){n.detailsExpanded=!n.detailsExpanded};n.$on("buildJob.testsAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){n.tests==null&&(n.tests={list:[],total:0,passed:0,failed:0});n.tests.list.push.apply(n.tests.list,i.tests);n.tests.total+=i.tests.length;for(var t=0;t<i.tests.length;t++)n.tests.passed+=i.tests[t].outcome=="passed"?1:0,n.tests.failed+=i.tests[t].outcome=="failed"?1:0})});n.$on("buildJob.testsUpdated",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){var t,r;for(n.tests==null&&(n.tests={list:[],total:0,passed:0,failed:0}),t=0;t<n.tests.list.length;t++)for(r=0;r<i.tests.length;r++)if(n.tests.list[t].name===i.tests[r].name){n.tests.list[t]=i.tests[r];break}})})}]);angular.module("appveyor").controller("ProjectBuildController",["$scope","$route","$routeParams","Session","Page","Projects","SignalR",function(n,t,i,r,u,f,e){function o(t){n.build=t;t&&s(t.jobs)}function s(t){n.jobs=t;n.job=null;n.buildView=null;n.jobId=n.requestParams.jobId?n.requestParams.jobId:n.requestParams.jobId||t.length!=1?null:t[0].jobId;n.requestParams.buildView?n.buildView=n.requestParams.buildView:t.length>0&&(n.buildView=n.jobId?"console":"jobs");n.jobId&&(n.job=_.find(t,function(t){return t.jobId==n.jobId}),e.connect().then(function(){e.subscribeBuildJobEvents(n.job.jobId)}))}n.requestParams.buildVersion||n.requestParams.buildBranch?n.setProjectNav("version"):n.setProjectNav("current");n.busyId=u.generateId();n.requestParams.jobId=i.jobId;n.requestParams.buildView=t.current.buildView;n.buildCanBeRun=function(){return u.busy(n.busyId)||!r.isAuthenticated()?!1:n.project&&r.hasCombinedPermission(n.project.securityDescriptor,"RunBuild","ManageProjects","RunProjectBuild")&&r.account().accountId==n.project.accountId&&(n.build==null||n.build!=null&&n.build.status!=="queued"&&n.build.status!=="running"&&n.build.status!=="cancelling")};n.buildCanBeReRun=function(){return u.busy(n.busyId)||!r.isAuthenticated()?!1:n.project&&r.hasCombinedPermission(n.project.securityDescriptor,"RunBuild","ManageProjects","RunProjectBuild")&&r.account().accountId==n.project.accountId&&n.build!=null&&(n.build.status=="failed"||n.build.status=="success")};n.buildCanBeCancelled=function(){return u.busy(n.busyId)||!r.isAuthenticated()?!1:n.project&&r.hasCombinedPermission(n.project.securityDescriptor,"RunBuild","ManageProjects","RunProjectBuild")&&r.account().accountId==n.project.accountId&&n.build!=null&&n.build.status!=="success"&&n.build.status!=="failed"&&n.build.status!=="cancelling"};n.getRebuildButtonTitle=function(){return n.build&&n.build.pullRequestId?"PR":n.build&&!n.build.pullRequestId?"commit":null};n.downloadLogEnabled=function(){return n.job};n.downloadLogUrl=function(){return n.job?u.applicationUrl()+"/api/buildjobs/"+n.job.jobId+"/log":null};f.getBuild(n.requestParams.accountName,n.requestParams.projectSlug,n.requestParams.buildBranch,n.requestParams.buildVersion).success(function(t){n.setProject(t.project);u.title(t.project.name);o(t.build)}).error(function(t){n.setError(t)});n.startBuild=function(){var t=u.setBusy(n.busyId);f.startBuild(n.requestParams.accountName,n.requestParams.projectSlug).success(function(){u.removeBusy(t);(n.requestParams.buildVersion||n.requestParams.buildBranch)&&u.redirect(n.getProjectUrl())}).error(function(i){u.removeBusy(t);n.setError(i)})};n.reBuild=function(){var t=u.setBusy(n.busyId);f.reBuild(n.build.buildId).success(function(){u.removeBusy(t);(n.requestParams.buildVersion||n.requestParams.buildBranch)&&u.redirect(n.getProjectUrl())}).error(function(i){u.removeBusy(t);n.setError(i)})};n.cancelBuild=function(){var t=u.setBusy(n.busyId);f.cancelBuild(n.requestParams.accountName,n.requestParams.projectSlug,n.build.version).success(function(){u.removeBusy(t);n.build.status="cancelling"}).error(function(i){u.removeBusy(t);n.setError(i)})};n.getBuildViewLink=function(t,i){if(!n.build)return null;var r=n.getProjectUrl(),f=n.requestParams.buildVersion!=null,e=n.requestParams.buildBranch!=null,u=n.jobs.length>1&&t&&i!=="jobs";return f&&u?r+="/build/"+n.requestParams.buildVersion+"/job/"+t:f&&!u?r+="/build/"+n.requestParams.buildVersion:e&&u?r+="/branch/"+n.requestParams.buildBranch+"/job/"+t:e&&!u?r+="/branch/"+n.requestParams.buildBranch:f||e||!u?i&&i!=="jobs"&&(r+="/build"):r+="/build/job/"+t,i&&i!=="jobs"&&(r+="/"+i),r};n.$on("project.buildAdded",function(t,i){n.project&&n.project.projectId===i.projectId&&!n.requestParams.buildVersion&&(!n.requestParams.buildBranch||n.requestParams.buildBranch&&n.build&&n.build.branch==i.build.branch)&&n.$apply(function(){o(i.build)})});n.$on("project.buildJobsAdded",function(t,i){n.build&&n.build.buildId===i.buildId&&n.$apply(function(){s(i.jobs)})});n.$on("project.buildJobStatusChanged",function(t,i){if(n.jobs){var r=_.find(n.jobs,function(n){return n.jobId===i.jobId});r&&n.$apply(function(){r.status=i.status;i.started&&(r.started=i.started);i.provisioningStarted&&(r.provisioningStarted=i.provisioningStarted);i.buildStarted&&(r.buildStarted=i.buildStarted);i.finished&&(r.finished=i.finished)})}});n.$on("project.buildDetailsChanged",function(t,i){n.build&&n.build.buildId===i.buildId&&n.$apply(function(){var t=n.build;i.version&&(t.version=i.version);i.message&&(t.message=i.message);i.commitId&&(t.commitId=i.commitId);i.committed&&(t.committed=i.committed);i.authorName&&(t.authorName=i.authorName);i.authorEmail&&(t.authorEmail=i.authorEmail);i.committerName&&(t.committerName=i.committerName);i.committerEmail&&(t.committerEmail=i.committerEmail);i.status&&(t.status=i.status);i.started&&(t.started=i.started);i.finished&&(t.finished=i.finished)})});n.$on("buildJob.messageAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){n.job.messagesCount++})});n.$on("buildJob.compilationMessageAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){n.job.compilationMessagesCount++})});n.$on("buildJob.testsAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){n.job.testsCount+=i.tests.length})});n.$on("buildJob.artifactAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){n.job.artifactsCount++})})}]);angular.module("appveyor").controller("ProjectConsoleController",["$q","$scope","$location","$anchorScroll","$timeout","Page",function(n,t,i,r,u){function l(n){t.getConsole(n.jobId).success(function(n){var f=[];n.length>0&&(f=JSON.parse("["+n.substring(0,n.length-1)+"]"));o(f,0).then(function(){while(s.length>0)o(s.splice(0,1),0);t.consoleLoaded=!0;i.hash()!==""&&u(function(){r()},100)})})}function o(i,r,s){var p,y,l,c,g,v,w;for(s||(s=n.defer()),p=0;r<i.length&&p<200;r++,p++){var h=i[r],b=h.fg,k=h.bg,d=h.dt;if(h.t)for(y=t.getProjectUrl(),y+=t.requestParams.deploymentId?"/deployment/"+t.requestParams.deploymentId:"/build/"+t.build.version,t.requestParams.jobId&&(y+="/job/"+t.requestParams.jobId),l="",c=0;c<h.t.length;c++)if(h.t[c]==="\n"||c===h.t.length-1)h.t[c]!=="\n"&&(l+=h.t[c]),f==null&&(f=$("<div><\/div>").appendTo(".job-console"),d&&f.attr("title",d),g=y+"#L"+e,$('<a id="L'+e+'" href="'+g+'">'+e+"<\/a>").appendTo(f),e++),v=l.replace(/</g,"&lt;").replace(/>/g,"&gt;"),v=a(v),w=$("<span>"+(v!=""?v:"&nbsp;")+"<\/span>").appendTo(f),b!=null&&w.addClass("fg-"+b),k!=null&&w.addClass("bg-"+k),l="",h.t[c]==="\n"&&(f=null);else if(h.t[c]==="\r")continue;else l+=h.t[c]}return r<i.length?u(function(){o(i,r,s)},10):s.resolve(!0),s.promise}function a(n){return n=n.replace(/\x1B\[0m/g,"<\/span>"),n=n.replace(/\x1B\[1m/g,"<b>"),n=n.replace(/\x1B\[22m/g,"<\/b>"),n=n.replace(/\x1B\[3m/g,"<i>"),n=n.replace(/\x1B\[23m/g,"<\/i>"),n=n.replace(/\x1B\[4m/g,"<u>"),n=n.replace(/\x1B\[24m/g,"<\/u>"),n=n.replace(/\x1B\[7m/g,'<span class="bg-0 fg-15">'),n=n.replace(/\x1B\[27m/g,"<\/span>"),n=n.replace(/\x1B\[9m/g,"<del>"),n=n.replace(/\x1B\[29m/g,"<\/del>"),n=n.replace(/\x1B\[37m/g,'<span class="fg-15">'),n=n.replace(/\x1B\[90m/g,'<span class="fg-7">'),n=n.replace(/\x1B\[30m/g,'<span class="fg-0">'),n=n.replace(/\x1B\[34m/g,'<span class="fg-9">'),n=n.replace(/\x1B\[36m/g,'<span class="fg-11">'),n=n.replace(/\x1B\[32m/g,'<span class="fg-10">'),n=n.replace(/\x1B\[35m/g,'<span class="fg-13">'),n=n.replace(/\x1B\[31m/g,'<span class="fg-12">'),n=n.replace(/\x1B\[33m/g,'<span class="fg-14">'),n=n.replace(/\x1B\[39m/g,"<\/span>"),n=n.replace(/\x1B\[47m/g,'<span class="bg-15">'),n=n.replace(/\x1B\[49;5;8m/g,'<span class="bg-7">'),n=n.replace(/\x1B\[40m/g,'<span class="bg-0">'),n=n.replace(/\x1B\[44m/g,'<span class="bg-9">'),n=n.replace(/\x1B\[46m/g,'<span class="bg-11">'),n=n.replace(/\x1B\[42m/g,'<span class="bg-10">'),n=n.replace(/\x1B\[45m/g,'<span class="bg-13">'),n=n.replace(/\x1B\[41m/g,'<span class="bg-12">'),n=n.replace(/\x1B\[43m/g,'<span class="bg-14">'),n.replace(/\x1B\[49m/g,"<\/span>")}function v(){var n=$(document.documentElement).height();$(window).scrollTop(n)}var e=1,c;t.consoleLoaded=!1;var s=[],f=null,h=!0;t.$watch("job",function(n){n&&l(n)});t.$on(t.consoleWriteHandler,function(n,i){t.job&&t.job.jobId===i.jobId&&(t.consoleLoaded?o(i.commands,0).then(function(){h&&u(function(){v()},100)}):s.unshift(i.commands))});c=function(){var n=$(window).height(),t=window.pageYOffset||$(document.documentElement).scrollTop(),i=$(document.documentElement).height();h=t==i-n?!0:!1};$(window).scroll(c);t.$on("$destroy",function(){$(window).off("scroll",c)})}]);angular.module("appveyor").controller("ProjectDeploymentConsoleController",["$scope","Page","Deployments","DeploymentJobs",function(n,t,i,r){n.getConsole=r.getConsole;n.consoleWriteHandler="deploymentJob.writeConsole"}]);angular.module("appveyor").controller("ProjectDeploymentJobsController",["$scope","Page","Deployments",function(){}]);angular.module("appveyor").controller("ProjectDeploymentMessagesController",["$scope","Page","Projects","DeploymentJobs",function(n,t,i,r){function u(t){r.getMessages(t.jobId).success(function(t){n.messages=t})}n.$watch("job",function(t){t?u(t):n.messages=null});n.toggleDetails=function(n){n.detailsExpanded=!n.detailsExpanded};n.$on("deploymentJob.messageAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&(n.messages==null&&(n.messages={list:[],total:0,errors:0}),n.$apply(function(){n.messages.list.push(i.message);n.messages.total++;n.messages.errors+=i.message.category=="error"?1:0}))})}]);angular.module("appveyor").controller("ProjectDeploymentController",["$scope","$route","$routeParams","Deployments","SignalR","Page",function(n,t,i,r,u,f){function e(t){n.deployment=t;t&&o(t.jobs)}function o(t){n.jobs=t;n.job=null;n.deploymentView=null;n.jobId=n.requestParams.jobId?n.requestParams.jobId:n.requestParams.jobId||t.length!=1?null:t[0].jobId;n.deploymentView=n.requestParams.deploymentView?n.requestParams.deploymentView:n.jobId?"console":"jobs";n.jobId&&(n.job=_.find(t,function(t){return t.jobId==n.jobId}),u.connect().then(function(){u.subscribeDeploymentJobEvents(n.job.jobId)}))}n.setProjectNav("deployments");n.requestParams.jobId=i.jobId;n.requestParams.deploymentId=i.deploymentId;n.requestParams.deploymentView=t.current.deploymentView;n.deploymentCanBeCancelled=function(){return f.busy(n.busyId)?!1:n.deployment!=null&&n.deployment.status!=="success"&&n.deployment.status!=="failed"&&n.deployment.status!=="cancelling"};n.downloadLogEnabled=function(){return n.job};n.downloadLogUrl=function(){return n.job?f.applicationUrl()+"/api/deploymentjobs/"+n.job.jobId+"/log":null};r.getDeployment(n.requestParams.deploymentId).success(function(t){n.setProject(t.project);f.title(t.project.name);e(t.deployment)});n.cancelDeployment=function(){var t=f.setBusy(n.busyId);r.stopDeployment(n.deployment.deploymentId).success(function(){f.removeBusy(t);n.deployment.status="cancelling"}).error(function(i){f.removeBusy(t);n.error=i})};n.getDeploymentViewLink=function(t,i){if(!n.deployment)return null;var r="/project/"+n.requestParams.accountName+"/"+n.requestParams.projectSlug+"/deployment/"+n.requestParams.deploymentId,u=n.deployment.jobs.length>1&&t&&i!=="jobs";return u&&(r+="/job/"+t),i&&(r+="/"+i),r};n.shortenCommitId=function(n){return n&&n.length>8?n.substr(0,8):n};n.$on("project.deploymentJobStatusChanged",function(t,i){if(n.jobs){var r=_.find(n.jobs,function(n){return n.jobId===i.jobId});r&&n.$apply(function(){r.status=i.status;i.started&&(r.started=i.started);i.finished&&(r.finished=i.finished)})}});n.$on("project.deploymentStatusChanged",function(t,i){n.deployment&&n.deployment.deploymentId===i.deploymentId&&n.$apply(function(){n.deployment.status=i.status;i.started&&(n.deployment.started=i.started);i.finished&&(n.deployment.finished=i.finished)})});n.$on("deploymentJob.messageAdded",function(t,i){n.job&&n.job.jobId===i.jobId&&n.$apply(function(){n.job.messagesCount++})});n.$on("project.deploymentJobsAdded",function(t,i){n.deployment&&n.deployment.deploymentId===i.deploymentId&&n.jobs&&n.$apply(function(){for(var t=0;t<i.jobs.length;t++)n.jobs.push(i.jobs[t])})})}]);angular.module("appveyor").controller("ProjectDeploymentsController",["$scope","Page","Projects",function(n,t,i){n.setProjectNav("deployments");i.getDeployments(n.requestParams.accountName,n.requestParams.projectSlug).success(function(i){n.deployments=i.deployments;n.setProject(i.project);t.title(i.project.name)});n.deployEnabled=function(i){return!t.isBusy(n.busyId)&&!i.deployment};n.promoteEnabled=function(i){return!t.isBusy(n.busyId)&&i.deployment&&i.deployment.status!="running"&&i.deployment.status!="queued"&&i.deployment.status!="failed"};n.redeployEnabled=function(i){return!t.isBusy(n.busyId)&&i.deployment&&i.deployment.status=="failed"};n.$on("project.deploymentAdded",function(t,i){if(n.project&&n.project.projectId===i.projectId){var r=_.find(n.deployments,function(n){return n.environment.deploymentEnvironmentId===i.deployment.environment.deploymentEnvironmentId});r!=null&&n.$apply(function(){r.deployment=i.deployment})}});n.$on("project.deploymentStatusChanged",function(t,i){var r=_.find(n.deployments,function(n){return n.deployment&&n.deployment.deploymentId===i.deploymentId});r!=null&&n.$apply(function(){r.deployment.status=i.status;i.started&&(r.deployment.started=i.started);i.finished&&(r.deployment.finished=i.finished)})})}]);angular.module("appveyor").controller("ProjectDetailsController",["$scope","$routeParams","$route","Session","Page","SignalR","Projects",function(n,t,i,r,u,f,e){n.Projects=e;n.requestParams={accountName:t.account,projectSlug:t.slug,buildVersion:t.version,buildBranch:t.branch,projectView:i.current.projectView||"project-build"};n.setProjectNav=function(t){n.projectNav=t};n.canUpdateProjectSettings=function(n){return r.hasCombinedPermission(n.securityDescriptor,"Update","ManageProjects","UpdateProjectSettings")};n.canDeleteProject=function(n){return r.hasCombinedPermission(n.securityDescriptor,"Delete","ManageProjects","UpdateProjectSettings")};n.setProject=function(t){n.project=t;t.nuGetFeed&&(n.nugetFeedUrl=u.applicationUrl()+"/nuget/"+t.nuGetFeed.id);t&&f.connect().then(function(){f.subscribeProjectEvents(t.projectId)})};n.setError=function(t){n.error=t};n.getProjectUrl=function(){return"/project/"+n.requestParams.accountName+"/"+n.requestParams.projectSlug}}]);angular.module("appveyor").controller("ProjectHistoryController",["$scope","Projects",function(n,t){function i(i,r){n.historyLoading=!0;t.getHistory(n.requestParams.accountName,n.requestParams.projectSlug,n.requestParams.buildBranch,i,r).success(function(t){var f=t.project,i=t.builds,u;if(n.builds){for(u=0;u<i.length;u++)n.builds.push(i[u]);n.pageSize*=2}else n.builds=i,n.setProject(f);n.historyLoading=!1;i.length<r&&(n.allHistoryLoaded=!0)})}n.pageSize=10;n.historyLoading=!1;n.allHistoryLoaded=!1;n.setProjectNav("history");n.getNextHistoryPage=function(){i(n.builds[n.builds.length-1].buildId,n.pageSize)};i(null,n.pageSize);n.$on("project.buildAdded",function(t,i){if(n.project&&n.project.projectId===i.projectId){var r=_.find(n.builds,function(n){return n.buildId===i.build.buildId});r||n.$apply(function(){n.builds.splice(0,0,i.build)})}});n.$on("project.buildDetailsChanged",function(t,i){if(n.builds){var r=_.find(n.builds,function(n){return n.buildId===i.buildId});r&&n.$apply(function(){i.version&&(r.version=i.version);i.message&&(r.message=i.message);i.commitId&&(r.commitId=i.commitId);i.committed&&(r.committed=i.committed);i.authorName&&(r.authorName=i.authorName);i.authorEmail&&(r.authorEmail=i.authorEmail);i.committerName&&(r.committerName=i.committerName);i.committerEmail&&(r.committerEmail=i.committerEmail);i.status&&(r.status=i.status);i.started&&(r.started=i.started);i.finished&&(r.finished=i.finished)})}})}]);angular.module("appveyor").controller("ProjectNewDeploymentController",["$scope","$route","$routeParams","Projects","Deployments","Page",function(n,t,i,r,u,f){n.setProjectNav("deployments");n.requestParams.environmentId=i.environmentId;n.request={environmentId:null,buildId:null,buildJobId:null};r.getDeploymentBuilds(n.requestParams.accountName,n.requestParams.projectSlug,n.requestParams.environmentId).success(function(t){var i,r;for(n.environment=t.environment,i=t.builds,n.setProject(t.project),f.title(t.project.name),r=0;r<i.length;r++)i[r].name=i[r].version+" ("+i[r].branch+") - "+i[r].message;n.builds=i;n.request.environmentId=t.environment.deploymentEnvironmentId});n.buildJobs=function(){var t=_.find(n.builds,function(t){return t.buildId===n.request.buildId});return t?t.jobs:[]};n.addDeployment=function(){n.busyId=f.generateId();var t=f.setBusy(n.busyId);u.addDeployment(n.request).success(function(i){f.redirect("/project/"+n.requestParams.accountName+"/"+n.requestParams.projectSlug+"/deployment/"+i.deploymentId);f.removeBusy(t)}).error(function(i){n.error=i;f.removeBusy(t)})};n.formReady=function(){return n.request.buildId}}]);angular.module("appveyor").controller("ProjectSettingsArtifactsController",["$scope",function(n){n.artifactTypes=[{value:"",text:"Auto"},{value:"WebDeployPackage",text:"Web Deploy Package"}];n.addArtifact=function(){n.settings.configuration.artifacts.push({path:null,name:null,type:""})};n.removeArtifact=function(t){n.settings.configuration.artifacts.splice(t,1)}}]);angular.module("appveyor").controller("ProjectSettingsBadgesController",["$scope","$location",function(n,t){n.$watch("settings",function(i){if(i!=null){var r=t.protocol()+"://"+t.host();n.statusImageUrl=r+"/api/projects/status/"+i.webhookId;n.svgStatusImageUrl=n.statusImageUrl+"?svg=true";n.projectUrl=r+"/project/"+i.accountName+"/"+i.slug;n.markdownCode="[![Build status]("+n.svgStatusImageUrl+")]("+n.projectUrl+")";n.branchStatusImageUrl=n.statusImageUrl+"/branch/"+i.repositoryBranch;n.svgBranchStatusImageUrl=n.branchStatusImageUrl+"?svg=true";n.projectBranchUrl=n.projectUrl+"/branch/"+i.repositoryBranch;n.branchMarkdownCode="[![Build status]("+n.svgBranchStatusImageUrl+")]("+n.projectBranchUrl+")"}})}]);angular.module("appveyor").controller("ProjectSettingsBuildController",["$scope",function(n){n.buildModes=[{value:"msbuild",text:"MSBuild"},{value:"script",text:"Script"},{value:"none",text:"Off"}];n.defaultPlatform="Project default";n.allPlatforms=[{value:"Any CPU",text:"Any CPU"},{value:"x86",text:"x86"},{value:"x64",text:"x64"},{value:"ARM",text:"ARM"}];n.addPlatform=function(){n.settings.configuration.platform.push({value:null})};n.removePlatform=function(t){n.settings.configuration.platform.splice(t,1)};n.defaultConfiguration="Project default";n.addConfiguration=function(){n.settings.configuration.configuration.push({value:null})};n.removeConfiguration=function(t){n.settings.configuration.configuration.splice(t,1)};n.$watch("settings.configuration.packageWebApplicationProjects",function(t){n.settings&&t&&(n.settings.configuration.packageWebApplicationProjectsXCopy=!1)});n.$watch("settings.configuration.packageWebApplicationProjectsXCopy",function(t){n.settings&&t&&(n.settings.configuration.packageWebApplicationProjects=!1)})}]);angular.module("appveyor").controller("ProjectSettingsDeleteController",["$scope","$location","Page","Projects",function(n,t,i,r){n.delete=function(){if(n.project.name!==n.projectName){alert("Project name does not match.");return}var t=i.setBusy();r.deleteProject(n.requestParams.accountName,n.requestParams.projectSlug).success(function(){i.redirect("/projects");i.removeBusy(t)}).error(function(r){n.error=r;i.removeBusy(t)})}}]);angular.module("appveyor").controller("ProjectSettingsDeploymentController",["$scope",function(n){n.deploymentModes=[{value:"providers",text:"Providers"},{value:"script",text:"Script"},{value:"none",text:"Off"}];n.deploymentMethods=[{value:"WebDeploy",text:"Web Deploy"},{value:"FTP",text:"FTP"},{value:"NuGet",text:"NuGet"},{value:"AzureCS",text:"Azure Cloud Service"},{value:"AzureBlob",text:"Azure Blob Storage"},{value:"S3",text:"Amazon S3"},{value:"Local",text:"Local Build Server"},{value:"SqlDatabase",text:"SQL Server Database"},{value:"Environment",text:"Environment"},{value:"Webhook",text:"Webhook"},{value:"GitHub",text:"GitHub Releases"}];n.addDeployment=function(){n.settings.configuration.deployments.push({method:null,providerSettings:[],onBranch:[],onEnvironmentVariables:[]})};n.removeDeployment=function(t){n.settings.configuration.deployments.splice(t,1)}}]);angular.module("appveyor").controller("ProjectSettingsEnvironmentController",["$scope",function(n){n.defaultOperatingSystem="Windows Server 2012 R2";n.addOperatingSystem=function(){n.settings.configuration.operatingSystem.push({value:null})};n.removeOperatingSystem=function(t){n.settings.configuration.operatingSystem.splice(t,1)};n.osServices=[{value:"mssql2012sp1",text:"SQL Server 2012 SP1 Express"},{value:"mssql2012sp1rs",text:"SQL Server 2012 SP1 Express with Reporting Services"},{value:"mssql2008r2sp2",text:"SQL Server 2008 R2 SP2 Express"},{value:"mssql2008r2sp2rs",text:"SQL Server 2008 R2 SP2 Express with Reporting Services"},{value:"mssql2014",text:"SQL Server 2014 Express"},{value:"mssql2014rs",text:"SQL Server 2014 Express with Reporting Services"},{value:"mysql56",text:"MySQL 5.6"},{value:"postgresql93",text:"PostgreSQL 9.3"},{value:"iis",text:"Internet Information Services (IIS)"},{value:"msmq",text:"Microsoft Message Queuing Services"},];n.addService=function(){n.settings.configuration.services.push({value:null})};n.removeService=function(t){n.settings.configuration.services.splice(t,1)};n.addEnvironmentVariable=function(){n.settings.configuration.environmentVariables.push({name:null,value:{value:null,isEncrypted:!1}})};n.removeEnvironmentVariable=function(t){n.settings.configuration.environmentVariables.splice(t,1)};n.addEnvironmentVariablesGroup=function(){n.settings.configuration.environmentVariablesMatrix.push({variables:[]})};n.removeEnvironmentVariablesGroup=function(t){n.settings.configuration.environmentVariablesMatrix.splice(t,1)};n.addGroupEnvironmentVariable=function(n){n.variables.push({name:null,value:{value:null,isEncrypted:!1}})};n.removeGroupEnvironmentVariable=function(n,t){n.variables.splice(t,1)};n.toggleEncryption=function(n){n.isEncrypted=!n.isEncrypted};n.addHostsEntry=function(){n.settings.configuration.hostsEntries.push({host:null,ip:null})};n.removeHostsEntry=function(t){n.settings.configuration.hostsEntries.splice(t,1)};n.addCacheEntry=function(){n.settings.configuration.cacheEntries.push({value:null})};n.removeCacheEntry=function(t){n.settings.configuration.cacheEntries.splice(t,1)}}]);angular.module("appveyor").controller("ProjectSettingsGeneralController",["$scope",function(n){n.assemblyInfoPatchingModes=[{value:!0,text:"On"},{value:!1,text:"Off"}];n.addIncludeBranch=function(){n.settings.configuration.includeBranches||(n.settings.configuration.includeBranches=[]);n.settings.configuration.includeBranches.push({value:null})};n.removeIncludeBranch=function(t){n.settings.configuration.includeBranches.splice(t,1)};n.addExcludeBranch=function(){n.settings.configuration.excludeBranches||(n.settings.configuration.excludeBranches=[]);n.settings.configuration.excludeBranches.push({value:null})};n.removeExcludeBranch=function(t){n.settings.configuration.excludeBranches.splice(t,1)}}]);angular.module("appveyor").controller("ProjectSettingsNotificationsController",["$scope","VsoEnabled",function(n,t){n.notificationProviders=[{value:"Email",text:"Email"},{value:"Webhook",text:"Webhook"},{value:"HipChat",text:"HipChat"},{value:"Slack",text:"Slack"},{value:"Campfire",text:"Campfire"}];t&&n.notificationProviders.push({value:"VSOTeamRoom",text:"VSO Team Room"});n.addNotification=function(){n.settings.configuration.notifications||(n.settings.configuration.notifications=[]);n.settings.configuration.notifications.push({provider:null,settings:{$type:null}})};n.removeNotification=function(t){n.settings.configuration.notifications.splice(t,1)}}]);angular.module("appveyor").controller("ProjectSettingsNuGetController",["$scope","Page",function(n,t){n.$watch("settings",function(i){i!=null&&(n.feedUrl=t.applicationUrl()+"/nuget/"+i.nuGetFeed.id)})}]);angular.module("appveyor").controller("ProjectSettingsPermissionsController",["$scope",function(n){n.updateAceRight=function(n,t,i){n||(t.allowed=i)}}]);angular.module("appveyor").controller("ProjectSettingsTestsController",["$scope",function(n){n.testModes=[{value:"auto",text:"Auto"},{value:"script",text:"Script"},{value:"none",text:"Off"}];n.defaultTestAssemblies="Automatically discovered";n.addTestAssembly=function(){n.settings.configuration.testAssemblies.push({value:null})};n.removeTestAssembly=function(t){n.settings.configuration.testAssemblies.splice(t,1)};n.defaultTestCategories="All categories";n.addTestCategory=function(){n.settings.configuration.testCategories.push({value:null})};n.removeTestCategory=function(t){n.settings.configuration.testCategories.splice(t,1)};n.addTestCategoryGroup=function(){n.settings.configuration.testCategoriesMatrix.push({categories:[]})};n.removeTestCategoryGroup=function(t){n.settings.configuration.testCategoriesMatrix.splice(t,1)};n.addCategoryToTestGroup=function(n){n.categories.push({value:null})};n.removeCategoryFromTestGroup=function(n,t){n.categories.splice(t,1)}}]);angular.module("appveyor").controller("ProjectSettingsYamlController",["$scope","Page","Projects",function(n,t,i){n.$watch("settings",function(r){r!=null&&i.getYamlSettings(n.requestParams.accountName,n.requestParams.projectSlug).success(function(i){n.yaml=i;n.downloadUrl=t.applicationUrl()+"/api/projects/"+n.requestParams.accountName+"/"+n.requestParams.projectSlug+"/settings/yaml?download=true"})})}]);angular.module("appveyor").controller("ProjectSettingsController",["$scope","$route","Page","Projects",function(n,t,i,r){function u(t){return"/project/"+n.requestParams.accountName+"/"+n.requestParams.projectSlug+"/settings"+t}n.settingsViews=[{name:"general",title:"General",url:u("")},{name:"environment",title:"Environment",url:u("/environment")},{name:"build",title:"Build",url:u("/build")},{name:"tests",title:"Tests",url:u("/tests")},{name:"artifacts",title:"Artifacts",url:u("/artifacts")},{name:"deployment",title:"Deployment",url:u("/deployment")},{name:"nuget",title:"NuGet",url:u("/nuget")},{name:"notifications",title:"Notifications",url:u("/notifications")},{name:"permissions",title:"Permissions",url:u("/permissions")},{name:"badges",title:"Badges",url:u("/badges")},{name:"yaml",title:"Export YAML",url:u("/yaml")}];n.navigateSettings=function(){var t=_.find(n.settingsViews,function(t){return t.name==n.requestParams.settingsView});i.redirect(t.url)};n.setProjectNav("settings");n.requestParams.settingsView=t.current.settingsView||"general";n.getSettings=r.getSettings(n.requestParams.accountName,n.requestParams.projectSlug).success(function(t){n.osImages=t.images;n.settings=t.settings;n.setProject(t.project);n.canDeleteProject(n.project)&&n.settingsViews.push({name:"delete",title:"Delete project",url:u("/delete")});i.title(t.project.name)});n.save=function(){n.busyId=i.generateId();var t=i.setBusy(n.busyId);n.$broadcast("on_deployment_save");console.log("Project settings:");console.log(n.settings);r.updateProject(n.settings).success(function(){i.removeBusy(t);n.info="Project settings have been updated."}).error(function(r){n.error=r;i.removeBusy(t)})}}]);angular.module("appveyor").controller("ProjectsController",["$scope","$location","Session","Page","Projects",function(n,t,i,r,u){function f(t){if(n.projects)for(var i=0;i<n.projects.length;i++)if(n.projects[i].projectId===t)return i;return-1}n.userCanManageProjects=i.hasPermission("ManageProjects");u.getAll().success(function(t){n.projects=t});n.Projects=u;n.canUpdateProjectSettings=function(n){return i.hasCombinedPermission(n.securityDescriptor,"Update","ManageProjects","UpdateProjectSettings")};n.startBuild=function(t){t.busyId=r.setBusy(r.generateId());u.startBuild(t.accountName,t.slug).success(function(){r.removeBusy(t.busyId);t.busyId=null}).error(function(i){n.error=i;r.removeBusy(t.busyId);t.busyId=null})};n.cancelBuild=function(n,t){t.busyId=r.setBusy(r.generateId());u.cancelBuild(n.accountName,n.slug,t.version).success(function(){r.removeBusy(t.busyId);t.busyId=null;t.status="cancelling"}).error(function(){r.removeBusy(t.busyId);t.busyId=null})};n.getProjectHistory=function(n){var i=n.builds[n.builds.length-1].buildId,t=n.recordsNumber?n.recordsNumber:10;n.historyLoading=!0;u.getHistory(n.accountName,n.slug,null,i,t).success(function(i){for(var r=i.builds,u=0;u<r.length;u++)n.builds.push(r[u]);n.recordsNumber*=2;n.historyLoading=!1;r.length<t&&(n.allHistoryLoaded=!0)})};n.$on("account.projectAdded",function(t,i){var r=i.project;f(r.projectId)===-1&&n.$apply(function(){n.projects.splice(0,0,r)})});n.$on("account.projectUpdated",function(t,i){var r=i.project,u=f(r.projectId);u!==-1&&n.$apply(function(){n.projects[u].name=r.name})});n.$on("account.projectDeleted",function(t,i){var r=f(i.projectId);r!=-1&&n.$apply(function(){n.projects.splice(r,1)})});n.$on("account.projectBuildAdded",function(t,i){var r=f(i.projectId);r!==-1&&n.$apply(function(){n.projects[r].builds.splice(0,0,i.build)})});n.$on("account.projectBuildDetailsChanged",function(t,i){var u,f,r;if(n.projects)for(u=0;u<n.projects.length;u++)for(f=0;f<n.projects[u].builds.length;f++)if(r=n.projects[u].builds[f],r.buildId===i.buildId){n.$apply(function(){i.version&&(r.version=i.version);i.message&&(r.message=i.message);i.commitId&&(r.commitId=i.commitId);i.committed&&(r.committed=i.committed);i.authorName&&(r.authorName=i.authorName);i.authorEmail&&(r.authorEmail=i.authorEmail);i.committerName&&(r.committerName=i.committerName);i.committerEmail&&(r.committerEmail=i.committerEmail);i.status&&(r.status=i.status);i.started&&(r.started=i.started);i.finished&&(r.finished=i.finished)});return}})}]);angular.module("appveyor").controller("AddBuildWorkerRegionController",["$routeParams","$scope","$http","$location","Page",function(n,t,i,r,u){t.model={};t.addRegion=function(){var n=u.setBusy();i.post("/api/AzureBuildWorkerRegions",t.model).success(function(){r.path("/system/build-worker-regions");u.removeBusy(n)}).error(function(i){t.error=i;u.removeBusy(n)})}}]);angular.module("appveyor").controller("BuildWorkerRegionsController",["$scope","$http","Page",function(n,t,i){t.get("/api/AzureBuildWorkerRegions").success(function(t){n.regions=t});n.deleteRegion=function(r){if(confirm("Do you really want to delete this region?")){var u=n.regions[r];u.busyId=i.setBusy(i.generateId());t({method:"DELETE",url:"/api/AzureBuildWorkerRegions?id="+u.azureBuildWorkerRegionId}).success(function(){n.regions.splice(r,1);i.removeBusy(u.busyId)}).error(function(t){n.error=t;i.removeBusy(u.busyId)})}}}]);angular.module("appveyor").controller("BuildWorkerRegionDetailsController",["$routeParams","$scope","$http","$location","Page",function(n,t,i,r,u){i.get("/api/AzureBuildWorkerRegions?id="+n.id).success(function(n){t.region=n;t.model=angular.copy(n);u.title("Region "+n.region)}).error(function(n){t.error=n});t.updateRegion=function(){var n=u.setBusy();i.put("/api/AzureBuildWorkerRegions",t.model).success(function(){r.path("/system/build-worker-regions");u.removeBusy(n)}).error(function(i){t.error=i;u.removeBusy(n)})}}]);angular.module("appveyor.directives").directive("elapsedTimeSince",["$timeout","Moment",function(n,t){return function(i,r,u){function s(){return f&&!e?(r.text(t.diff(f,moment.utc())),!0):f&&e?(r.text(t.diff(f,e)),!1):(r.text(""),!1)}function o(){h=n(function(){s()&&o()},1e3)}var f,e,h;i.$watch(u.elapsedTimeSince,function(n){f=n;s()&&o()});i.$watch(u.elapsedTimeTo,function(n){e=n;s()&&o()});r.bind("$destroy",function(){n.cancel(h)});o()}}]);angular.module("appveyor.directives").directive("fileBind",function(){return function(n,t,i){$("input[type='text']",t.parent()).bind("click",function(){t.click()});t.bind("change",function(){var t=$(this).val(),r=t.lastIndexOf("\\");r!=-1&&(t=t.substr(r+1));n.$apply(function(n){n[i.name]=t})})}});angular.module("appveyor.directives").directive("focus",function(){return function(n,t){t[0].focus()}});angular.module("appveyor.directives").directive("formMessages",function(){return{restrict:"E",scope:{error:"=",success:"=",info:"="},link:function(){},template:'<div class="form-messages"><div class="form-message error" ng-show="error"><a class="close" ng-click="error = null">OK<\/a>{{error}}<\/div><div class="form-message success" ng-show="success"><a class="close" ng-click="success = null">OK<\/a>{{success}}<\/div><div class="form-message info" ng-show="info"><a class="close" ng-click="info = null">OK<\/a>{{info}}<\/div><\/div>'}});angular.module("appveyor.directives").directive("initFoundation",["$rootScope",function(){return function(n,t){$(t).parent().foundation()}}]);angular.module("appveyor.directives").directive("loadIndicator",function(){return{restrict:"E",link:function(){},template:'<div ng-class="\'spinner\'"><div class="bounce1"><\/div><div class="bounce2"><\/div><div class="bounce3"><\/div><\/div>',replace:!0}});angular.module("appveyor.directives").directive("openWindow",function(){return{scope:{windowCallback:"&",windowUrl:"="},link:function(n,t,i){window.popupCallbacks=window.popupCallbacks||{};$(t).click(function(t){t.preventDefault();var r=i.windowWidth,u=i.windowHeight,f=screen.width/2-r/2,e=screen.height/2-u/2,o=window.open(n.windowUrl,"Window Title","toolbar=no, location=yes, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width="+r+", height="+u+", top="+e+", left="+f);window.popupCallbacks[i.windowName]=function(t){n.$apply(function(){n.windowCallback({args:t})})}});n.$on("$destroy",function(){window.popupCallbacks[i.windowName]=function(){}})}}});angular.module("appveyor.directives").directive("scriptEditor",function(){return{restrict:"E",scope:{name:"@",labelText:"@",ngModel:"="},controller:["$scope","$element",function(n){function t(){n.ngModel.length==0&&n.ngModel.push({language:n.language,script:n.script})}n.languages=[{value:"ps",text:"PS"},{value:"cmd",text:"Cmd"},{value:"none",text:"Off"}];n.$watch("ngModel",function(t){t&&(t.length==0?(n.language="none",n.script=""):(n.language=t[0].language,n.script=t[0].script))});n.updateScript=function(){t();n.ngModel[0].script=n.script};n.$watch("language",function(i){i==="none"?n.ngModel.splice(0,1):i&&(t(),n.ngModel[0].language=n.language)})}],templateUrl:"/app/views/directives/script-editor.html",replace:!0}});angular.module("appveyor.directives").directive("submitValid",["$parse",function(n){return function(t,i,r){var f,o,u,e;if(r.action){if(i.attr("target","upload_iframe"),i.attr("method","post"),i.attr("action",i.attr("action")+"?_t="+(new Date).getTime()),i.attr("enctype","multipart/form-data"),i.attr("encoding","multipart/form-data"),f=n(r.uploadComplete),!angular.isFunction(f)){o="The expression on the ngUpload directive does not point to a valid function.";throw o+"\n";}u=angular.element("<iframe id='upload_iframe' name='upload_iframe' border='0' width='0' height='0' style='width: 0px; height: 0px; border: none; display: none' />");e=!1;u.bind("load",function(){var n=u.contents().text();e&&t.$apply(function(){f(t,{content:n})});e=!0});i.before(u);i.bind("$destroy",function(){setTimeout(function(){u.remove()},250)})}i.bind("submit",function(n){t[r.name].$valid?t.$apply(r.submitValid):n.preventDefault();t.$apply(function(n){n[r.name].$setDirty();n[r.name].$submitted=!0})});t.$watch(r.name+".$submitted",function(n){i.removeClass("show-required");n&&i.addClass("show-required")})}}]);angular.module("appveyor.directives").directive("switchButtons",function(){return{restrict:"E",scope:{items:"=",ngModel:"="},controller:["$scope","$element",function(n){n.selectItem=function(t){n.ngModel=t}}],templateUrl:"/app/views/directives/switch-buttons.html",replace:!0}});angular.module("appveyor.directives").directive("validateEqual",function(){return{require:"ngModel",link:function(n,t,i,r){function u(t,u){var f=n.$eval(i.ngDisabled);return f||!t||t===""||t===u?(r.$setValidity("equal",!0),t):(r.$setValidity("equal",!1),undefined)}n.$watch(i.ngDisabled,function(){u(r.$viewValue,n.$eval(i.validateEqual))});n.$watch(i.validateEqual,function(n){u(r.$viewValue,n)});r.$parsers.unshift(function(t){return u(t,n.$eval(i.validateEqual))});r.$formatters.unshift(function(t){return u(t,n.$eval(i.validateEqual))})}}});angular.module("appveyor.filters").filter("moment",["Moment",function(n){return function(t,i){return t?n.format(t,i):null}}]);angular.module("appveyor.filters").filter("newLines",[function(){return function(n){return n?n.replace(/\n/g,"<br/>"):null}}]);angular.module("appveyor.filters").filter("noHtml",[function(){return function(n){return n?n.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;"):null}}]);angular.module("appveyor.filters").filter("notEmpty",[function(){return function(n){return n||n instanceof Array?!0:!1}}]);angular.module("appveyor.filters").filter("sizeBytes",[function(){return function(n){if(n){for(var t=0;n>1024;)n=n/1024,t++;return Math.max(n,.1).toFixed(0)+" "+["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}return null}}]);angular.module("appveyor.services").service("Account",["$http",function(n){var t=this;t.getApplicationAuthorization=function(t){return n.get("/api/account/authorization/"+t)};t.revokeApplicationAuthorization=function(t){return n({method:"DELETE",url:"/api/account/authorization/"+t})}}]);_gaq=_gaq||[];angular.module("analytics",[]).run(["$http","analyticsTrackingId",function(n,t){var i,r;_gaq.push(["_setAccount",t]);_gaq.push(["_trackPageview"]);i=document.createElement("script");i.type="text/javascript";i.async=!0;i.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(i,r)}]).service("Analytics",["$rootScope","$window","$location","$routeParams",function(n,t,i,r){var u=function(n,t){var r,u,i;for(r in t)u="/"+t[r],n=n.replace(u,"");return(i=decodeURIComponent($.param(t)),i==="")?n:n+"?"+i},f=function(){var n=u(i.path(),r);t._gaq.push(["_trackPageview",n])};n.$on("$viewContentLoaded",f)}]);angular.module("appveyor.services").service("BuildJobs",["$http",function(n){var t=this;t.artifactTypes=[{type:"File",name:"File"},{type:"WebApplication",name:"Web application"},{type:"WindowsApplication",name:"Windows application"},{type:"WebDeployPackage",name:"WebDeploy package"},{type:"NuGetPackage",name:"NuGet package"},{type:"AzureCloudService",name:"Azure Cloud Service package"},{type:"AzureCloudServiceConfig",name:"Azure Cloud Service config"},{type:"SsdtPackage",name:"SSDT Package"},{type:"Zip",name:"Zip archive"}];t.getArtifacts=function(t){return n.get("/api/buildjobs/"+t+"/artifacts")};t.getArtifactTypeDisplayName=function(n){if(!n)return null;var i=_.find(t.artifactTypes,function(t){return t.type.toLowerCase()===n.toLowerCase()});return i?i.name:null};t.getConsole=function(t){return n.get("/api/buildjobs/"+t+"/console")};t.getTests=function(t){return n.get("/api/buildjobs/"+t+"/tests")};t.getMessages=function(t){return n.get("/api/buildjobs/"+t+"/messages")};t.getCompilationMessages=function(t){return n.get("/api/buildjobs/"+t+"/compilationmessages")}}]);angular.module("appveyor.services").service("Countries",["$http",function(){var n=this;n.countries=["Afghanistan","Åland Islands","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Caribbean Netherlands ","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Congo, Democratic Republic of","Cook Islands","Costa Rica","Côte d'Ivoire","Croatia","Cuba","Curaçao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard and McDonald Islands","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Lao People's Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia, Federated States of","Moldova","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","North Korea","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Palestine, State of","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn","Poland","Portugal","Puerto Rico","Qatar","Réunion","Romania","Russian Federation","Rwanda","Saint Barthélemy","Saint Helena","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Saint-Martin (France)","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten (Dutch part)","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and the South Sandwich Islands","South Korea","South Sudan","Spain","Sri Lanka","St. Pierre and Miquelon","Sudan","Suriname","Svalbard and Jan Mayen Islands","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","The Netherlands","Timor-Leste","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","United States Minor Outlying Islands","Uruguay","Uzbekistan","Vanuatu","Vatican","Venezuela","Vietnam","Virgin Islands (British)","Virgin Islands (U.S.)","Wallis and Futuna Islands","Western Sahara","Yemen","Zambia","Zimbabwe"];n.get=function(){return n.countries}}]);angular.module("appveyor.services").service("DeploymentJobs",["$http",function(n){var t=this;t.getMessages=function(t){return n.get("/api/deploymentjobs/"+t+"/messages")};t.getConsole=function(t){return n.get("/api/deploymentjobs/"+t+"/console")}}]);angular.module("appveyor.services").service("Deployments",["$http",function(n){var t=this;t.getDeployment=function(t){return n.get("/api/deployments/"+t)};t.addDeployment=function(t){return n.post("/api/deployments",t)};t.stopDeployment=function(t){return n.put("/api/deployments/stop",{deploymentId:t})}}]);angular.module("appveyor.services").service("Environments",["$http",function(n){var t=this;t.getAll=function(){return n.get("/api/environments")};t.getDeployments=function(t){return n.get("/api/environments/"+t+"/deployments")};t.getSettings=function(t){return n.get("/api/environments/"+t+"/settings")};t.addEnvironment=function(t){return n.post("/api/environments",t)};t.updateEnvironment=function(t){return n.put("/api/environments",t)};t.deleteEnvironment=function(t){return n({method:"DELETE",url:"/api/environments/"+t})};t.getProviders=function(){return[{value:"WebDeploy",text:"Web Deploy"},{value:"FTP",text:"FTP"},{value:"S3",text:"Amazon S3"},{value:"NuGet",text:"NuGet"},{value:"AzureBlob",text:"Azure Blob Storage"},{value:"AzureCS",text:"Azure Cloud Service"},{value:"Agent",text:"AppVeyor Agent"},{value:"SqlDatabase",text:"SQL Server Database"},{value:"Webhook",text:"Webhook"},{value:"GitHub",text:"GitHub Releases"}]};t.getProviderDisplayName=function(n){var i=_.find(t.getProviders(),function(t){return t.value===n});return i?i.text:null}}]);angular.module("appveyor.services").service("localCache",["$http","$cacheFactory","Session",function(n,t,i){function u(n){var t=i.account();return t!=null?t.accountId+"-"+n:n}var r=this,f=!1;r.cache=f?null:t("AppveyorCache");r.localStorage=f?window.localStorage:null;r.get=function(n){if(r.localStorage){var t=r.localStorage.getItem(u(n));return t!=null?JSON.parse(t):null}return r.cache.get(u(n))};r.put=function(n,t){if(r.localStorage){var i=JSON.stringify(t);r.localStorage.setItem(u(n),i)}else r.cache.put(u(n),t)};r.remove=function(n){r.localStorage?r.localStorage.removeItem(u(n)):r.cache.remove(u(n))}}]);angular.module("appveyor.services").factory("Moment",[function(){return{format:function(n,t){return n?t==="fromNow"?moment(n).fromNow():moment(n).format(t):null},diff:function(n,t){var r,i,o;if(n&&t){var f=moment(n),e=moment(t),u="",s=e.diff(f);if(s<0)return"";if(s<1e3)return s+" ms";if(r=e.diff(f,"seconds"),r<60)return r+" sec";if(i=e.diff(f,"minutes"),i<60)return u=i+" min",r=r-i*60,r!==0&&(u+=" "+r+" sec"),u;if(o=e.diff(f,"hours"),o>0)return u=o+" hr",i=i-o*60,i!==0&&(u+=" "+i+" min"),u}else return null},millisecondsToString:function(n){if(n===null)return null;if(n===0)return"0 ms";var e=Math.floor(n/31536e6),t=Math.floor(n%31536e6/864e5),i=Math.floor(n%31536e6%864e5/36e5),r=Math.floor(n%31536e6%864e5%36e5/6e4),u=Math.floor(n%31536e6%864e5%36e5%6e4/1e3),f=n%31536e6%864e5%36e5%6e4%1e3;return(t?t+" day ":"")+(i?i+" hr ":"")+(r?r+" min ":"")+(u?u+" sec ":"")+(f?f+" ms":"")}}}]);angular.module("appveyor.services").factory("Page",["$http","$location","$rootScope",function(n,t,i){return{_busyIds:[],busy:function(){return this._busyIds.length!==0},generateId:function(){return(new Date).getTime()},setBusy:function(n){if(n)return this._busyIds.push(n),n;var i=t.path();return this._busyIds.push(i),i},removeBusy:function(n){var t=this._busyIds.indexOf(n);t!=-1&&this._busyIds.splice(t,1)},isBusy:function(n){return n?this._busyIds.indexOf(n)!=-1:this._busyIds.indexOf(t.path())!=-1},title:function(n){i.title=n?n+" - AppVeyor":"AppVeyor"},redirect:function(n){t.path(n)},applicationUrl:function(){return t.protocol()+"://"+t.host()}}}]);angular.module("appveyor.services").service("Plans",["$http",function(n){var t=this;t.getPlan=function(t){return n.get("/api/plans/"+t)};t.getOrderForm=function(t){return n.get("/api/plans/"+t+"/order")}}]);angular.module("appveyor.services").service("Projects",["$http",function(n){var t=this;t.getAll=function(){return n.get("/api/projects")};t.getBuild=function(t,i,r,u){return r?n.get("/api/projects/"+t+"/"+i+"/branch/"+r):u?n.get("/api/projects/"+t+"/"+i+"/build/"+u):n.get("/api/projects/"+t+"/"+i)};t.getHistory=function(t,i,r,u,f){return n.get("/api/projects/"+t+"/"+i+"/history?recordsNumber="+f+(u?"&startBuildId="+u:"")+(r?"&branch="+r:""))};t.getDeployments=function(t,i){return n.get("/api/projects/"+t+"/"+i+"/deployments")};t.getSettings=function(t,i){return n.get("/api/projects/"+t+"/"+i+"/settings")};t.getYamlSettings=function(t,i){return n.get("/api/projects/"+t+"/"+i+"/settings/yaml")};t.getDeploymentBuilds=function(t,i,r){return n.get("/api/projects/"+t+"/"+i+"/environment/"+r+"/builds")};t.addProject=function(t){return n.post("/api/projects",t)};t.updateProject=function(t){return n.put("/api/projects",t)};t.startBuild=function(t,i){return n.post("/api/builds",{accountName:t,projectSlug:i})};t.reBuild=function(t){return n.put("/api/builds",{buildId:t})};t.cancelBuild=function(t,i,r){return n({method:"DELETE",url:"/api/builds/"+t+"/"+i+"/"+r})};t.deleteProject=function(t,i){return n({method:"DELETE",url:"/api/projects/"+t+"/"+i})};t.getCommitUrl=function(n,t,i){if(n.toLowerCase()=="github")return"https://github.com/"+t+"/commit/"+i;if(n.toLowerCase()=="bitbucket")return"https://bitbucket.org/"+t+"/commits/"+i;if(n.toLowerCase()=="vso"){var r=t.split("/");return r[0]=="git"?"https://"+r[1]+".visualstudio.com/DefaultCollection/_git/"+r[3]+"/commit/"+i:"https://"+r[1]+".visualstudio.com/DefaultCollection/"+r[3]+"/_versionControl/changeset/"+i}return null};t.getUsernameUrl=function(n,t){return t?n.toLowerCase()=="github"?"https://github.com/"+t:n.toLowerCase()=="bitbucket"?"https://bitbucket.org/"+t:null:""};t.getPullRequestUrl=function(n,t,i){return n.toLowerCase()=="github"?"https://github.com/"+t+"/pull/"+i:null};t.getProjectUrl=function(n){return"/project/"+n.accountName+"/"+n.slug};t.shortenCommitId=function(n){return n&&n.length>8?n.substr(0,8):n}}]);angular.module("appveyor.services").service("Repositories",["$http",function(n){var t=this;t.getAll=function(t){return n.get("/api/repositories/"+t)};t.getChildren=function(t,i){return n.get("/api/repositories/"+t+"/children/"+i)}}]);angular.module("appveyor.services").factory("Session",["$http","$location","$timeout","$rootScope","SignalR",function(n,t,i,r,u){return{_session:null,_redirectUrl:null,isAuthenticated:function(){return this._session!=null&&this._session.user!=null},hasPermission:function(n){if(arguments.length&&this.isAuthenticated()){if(n==="*")return!0;for(var t=0;t<arguments.length;t++)if(this._session.permissions.indexOf(arguments[t])>-1)return!0}else return!1;return!1},hasCombinedPermission:function(n,t){var i=this.getAccessRight(n,t);return i===null||typeof i=="undefined"?arguments.length>2?this.hasPermission.apply(this,Array.prototype.slice.call(arguments,2)):!0:i},getAccessRight:function(n,t){var r=this,i,u;if(r.isAuthenticated())if(n!=null){if(i=_.find(n.roleAces,function(n){return n.roleId===r._session.membership.roleId}),i)return u=_.find(i.accessRights,function(n){return n.name===t}),u.allowed}else return null;else return null},user:function(n){if(arguments.length&&this._session)this._session.user=n;else return this._session!=null?this._session.user:null},account:function(n){if(arguments.length&&this._session)this._session.account=n;else return this._session!=null?this._session.account:null},session:function(n){var t=this;this._session=n;this.isAuthenticated()&&r.$broadcast("login",n);u.connect().then(function(){t.isAuthenticated()&&u.subscribeAccountEvents()})},redirectUrl:function(n){if(arguments.length)this._redirectUrl=n,console.log("Redirect after login to: "+n);else return this._redirectUrl},redirectLogin:function(){var n="/";this._redirectUrl&&(n=this._redirectUrl,this._redirectUrl=null);t.path(n)},setupRequired:function(){return this._session?this._session.setupRequired:!1},trialExpires:function(){var n=this.account(),t;return n&&n.planStatus==="trial"&&(t=moment(n.planEnd).diff(moment.utc(),"days"),t<=3)?moment(n.planEnd).fromNow():null},logout:function(){var i=this;u.disconnect().then(function(){n.put("/api/user/logout").success(function(){i.session(null);r.$broadcast("logout",{})}).error(function(){});t.path("/login")})}}}]);angular.module("appveyor.services").service("SignalR",["$q","$rootScope","$timeout",function(n,t,i){var r=this;r._connected=null;r.currentProjectId=null;r.currentEnvironmentId=null;r.currentJobId=null;r.connect=function(){if(r._connected)return r._connected;r.accountHub||(r.accountHub=$.connection.accountHub,r.projectHub=$.connection.projectHub,r.environmentHub=$.connection.environmentHub,r.buildJobHub=$.connection.buildJobHub,r.deploymentJobHub=$.connection.deploymentJobHub,r.accountHub.client.onEvent=function(n,i){console.log("Account event: "+n);t.$broadcast("account."+n,i)},r.projectHub.client.onEvent=function(n,i){console.log("Project event: "+n);t.$broadcast("project."+n,i)},r.environmentHub.client.onEvent=function(n,i){console.log("Environment event: "+n);t.$broadcast("environment."+n,i)},r.buildJobHub.client.onEvent=function(n,i){if(n=="logEventsBatch")for(var r=0;r<i.length;r++)console.log("Build job batched event: "+i[r].eventName),t.$broadcast("buildJob."+i[r].eventName,i[r].eventData);else console.log("Build job event: "+n),t.$broadcast("buildJob."+n,i)},r.deploymentJobHub.client.onEvent=function(n,i){console.log("Deployment job event: "+n);t.$broadcast("deploymentJob."+n,i)},$.connection.hub.disconnected(function(){console.log("Disconnected from SignalR");r._connected&&(r._connected=null,console.log("SignalR will try to reconnect in 20 seconds"),i(function(){r.connect()},2e4))}),$.connection.hub.starting(function(){console.log("SignalR connection is starting...")}),$.connection.hub.connectionSlow(function(){console.log("SignalR connection is slow")}),$.connection.hub.reconnecting(function(){console.log("SignalR is reconnecting...")}),$.connection.hub.reconnected(function(){console.log("SignalR has reconnected")}),$.connection.hub.stateChanged(function(n){n.newState===$.connection.connectionState.connected&&console.log("SignalR connected via "+$.connection.hub.transport.name)}));var u=n.defer();return $.connection.hub.start({transport:["webSockets","longPolling"]}).done(function(){u.resolve(!0)}).fail(function(){u.reject("Cannot connect to SignalR")}),r._connected=u.promise,r._connected};r.disconnect=function(){console.log("Disconnect from SignalR");r._connected=null;r.currentProjectId=null;r.currentEnvironmentId=null;r.currentJobId=null;var t=n.defer();return $.connection.hub.stop(),i(function(){t.resolve(!0)},500),t.promise};r.subscribeAccountEvents=function(){console.log("AccountHub: subscribeAccountEvents");r.accountHub.server.subscribeAccountEvents()};r.unsubscribeAccountEvents=function(n){console.log("AccountHub: unsubscribeAccountEvents");r.accountHub.server.unsubscribeAccountEvents(n)};r.subscribeProjectEvents=function(n){r.currentProjectId!==n&&(console.log("ProjectHub: subscribeProjectEvents("+r.currentProjectId+", "+n+")"),r.projectHub.server.subscribeProjectEvents(r.currentProjectId,n),r.currentProjectId=n)};r.subscribeEnvironmentEvents=function(n){r.currentEnvironmentId!==n&&(console.log("EnvironmentHub: subscribeEnvironmentEvents("+r.currentEnvironmentId+", "+n+")"),r.environmentHub.server.subscribeEnvironmentEvents(r.currentEnvironmentId,n),r.currentEnvironmentId=n)};r.subscribeBuildJobEvents=function(n){r.currentJobId!==n&&(console.log("BuildJobHub: subscribeBuildJobEvents("+r.currentJobId+", "+n+")"),r.buildJobHub.server.subscribeJobEvents(r.currentJobId,n),r.currentJobId=n)};r.subscribeDeploymentJobEvents=function(n){r.currentJobId!==n&&(console.log("DeploymentJobHub: subscribeDeploymentJobEvents("+r.currentJobId+", "+n+")"),r.deploymentJobHub.server.subscribeJobEvents(r.currentJobId,n),r.currentJobId=n)}}]);angular.module("appveyor.services").factory("$templateCache",["$cacheFactory","$http","$injector","templatesBundleUrl",function(n,t,i,r){var u=n("templates"),f;return{get:function(n){var e=u.get(n);return e?e:(f||(f=t.get(r).then(function(n){return i.get("$compile")(n.data),n})),f.then(function(t){return{status:t.status,data:u.get(n)}}))},put:function(n,t){u.put(n,t)}}}]);angular.module("appveyor.services").service("Utils",["$http",function(){var n=this;n.empty=function(n){return n||n instanceof Array?!1:!0};n.capitalize=function(n){return n&&n.length>0?n.substring(0,1).toUpperCase()+n.substring(1):n};n.textToHtml=function(n){return n?n.replace(/\n/g,"<br />"):null};n.getFileName=function(n){if(!n)return null;var t=n.lastIndexOf("\\");return t!=-1?n.substring(t+1):n}}])