k((M-m)/a))&&T("overflow"),m+=c*a,!(c<(l=s<=_?y:_+g<=s?g:s-_));s+=b)a>k(M/(u=b-l))&&T("overflow"),a*=u;_=x(m-i,t=p.length+1,0==i),k(m/t)>M-h&&T("overflow"),h+=k(m/t),m%=t,p.splice(m++,0,h)}return S(p)}function _(e){var t,n,o,r,i,a,s,c,l,u,d,p,f,m,h,_=[];for(p=(e=z(e)).length,t=L,i=v,a=n=0;ak((M-n)/(f=o+1))&&T("overflow"),n+=(s-t)*f,t=s,a=0;a
M&&T("overflow"),d==t){for(c=n,l=b;!(c<(u=l<=i?y:i+g<=l?g:l-i));l+=b)h=c-u,m=b-u,_.push(w(O(u+h%m,0))),c=k(h/m);_.push(w(O(c,0))),i=x(n,f,o==r),n=0,++o}++n,++t}return _.join("")}if(r={version:"1.4.1",ucs2:{decode:z,encode:S},decode:h,encode:_,toASCII:function(e){return m(e,function(e){return l.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return m(e,function(e){return c.test(e)?h(e.slice(4).toLowerCase()):e})}},"object"==E(q("./node_modules/webpack/buildin/amd-options.js"))&&q("./node_modules/webpack/buildin/amd-options.js"))void 0===(C=function(){return r}.call(Y,q,Y,D))||(D.exports=C);else if(t&&n)if(D.exports==t)n.exports=r;else for(i in r)r.hasOwnProperty(i)&&(t[i]=r[i]);else e.punycode=r}(void 0)}).call(this,q("./node_modules/webpack/buildin/module.js")(e),q("./node_modules/webpack/buildin/global.js"))},"./node_modules/nunjucks/browser/nunjucks.js":function(kxd,lxd,mxd){(function(nxd,oxd,pxd){var qxd,rxd,sxd,Bxd;function txd(e){return(txd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
+n=function(){"use strict";var e,r;function p(){return e.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function o(e,t){var n,o=[];for(n=0;n>>0,o=0;oAe(e)?(i=e+1,s-Ae(e)):(i=e,s),{year:i,dayOfYear:a}}function Pe(e,t,n){var o,r,i=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?o=a+Re(r=e.year()-1,t,n):a>Re(e.year(),t,n)?(o=a-Re(e.year(),t,n),r=e.year()+1):(r=e.year(),o=a),{week:o,year:r}}function Re(e,t,n){var o=He(e,t,n),r=He(e+1,t,n);return(Ae(e)-o+r)/7}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),q("week",5),q("isoWeek",5),ce("w",J),ce("ww",J,U),ce("W",J),ce("WW",J,U),fe(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=L(e)});function Ie(e,t){return e.slice(t,7).concat(e.slice(0,t))}P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,o){t[o]=L(e)});var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ve=ae;var Ge=ae;var Je=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,o,r,i,a=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(o),s.push(r),c.push(i),l.push(o),l.push(r),l.push(i);for(a.sort(e),s.sort(e),c.sort(e),l.sort(e),t=0;t<7;t++)s[t]=ue(s[t]),c[t]=ue(c[t]),l[t]=ue(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ze(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,$e),P("k",["kk",2],0,function(){return this.hours()||24}),P("hmm",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)}),P("hmmss",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),P("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),P("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Ze("a",!0),Ze("A",!1),N("hour","h"),q("hour",13),ce("a",et),ce("A",et),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,U),ce("hh",J,U),ce("kk",J,U),ce("hmm",Q),ce("hmmss",$),ce("Hmm",Q),ce("Hmmss",$),pe(["H","HH"],Me),pe(["k","kk"],function(e,t,n){var o=L(e);t[Me]=24===o?0:o}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[Me]=L(e),m(n).bigHour=!0}),pe("hmm",function(e,t,n){var o=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o)),m(n).bigHour=!0}),pe("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o,2)),t[ye]=L(e.substr(r)),m(n).bigHour=!0}),pe("Hmm",function(e,t,n){var o=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o))}),pe("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[Me]=L(e.substr(0,o)),t[be]=L(e.substr(o,2)),t[ye]=L(e.substr(r))});var tt,nt=ze("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},months:Ne,monthsShort:Ce,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ke,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},rt={},it={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!rt[e]&&void 0!==Gn&&Gn&&Gn.exports)try{t=tt._abbr;Qn("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./"+e),ct(t)}catch(e){}return rt[e]}function ct(e,t){var n;return e&&((n=i(t)?ut(e):lt(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function lt(e,t){if(null===t)return delete rt[e],null;var n,o=ot;if(t.abbr=e,null!=rt[e])z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])o=rt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;o=n._config}return rt[e]=new x(O(o,t)),it[e]&&it[e].forEach(function(e){lt(e.name,e.config)}),ct(e),rt[e]}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!a(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,o,r,i=0;i=t&&A(r,n,!0)>=t-1)break;t--}i++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[he]<0||11xe(n[me],n[he])?_e:n[Me]<0||24Re(n,i,a)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(s=Xe(n,o,r,i,a),e._a[me]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=pt(e._a[me],o[me]),(e._dayOfYear>Ae(i)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Be(i,0,e._dayOfYear),e._a[he]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=o[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[be]&&0===e._a[ye]&&0===e._a[ge]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?Be:function(e,t,n,o,r,i,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,o,r,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,o,r,i,a),s}).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,o,r,i,a,s=e._i,c=mt.exec(s)||ht.exec(s);if(c){for(m(e).iso=!0,t=0,n=Mt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Xt,mn.isUTC=Xt,mn.zoneAbbr=function(){return this._isUTC?"UTC":""},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mn.dates=n("dates accessor is deprecated. Use date instead.",cn),mn.months=n("months accessor is deprecated. Use month instead",Ye),mn.years=n("years accessor is deprecated. Use year instead",Te),mn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=Tt(e))._a){var t=e._isUTC?d(e._a):St(e._a);this._isDSTShifted=this.isValid()&&0":">"},a=/[&"'<>]/g;function s(e,t){return n.hasOwnProperty.call(e,t)}function c(e){return o[e]}function l(e,t,n){var o,r,i;if(e instanceof Error&&(e=(r=e).name+": "+r.message),Object.setPrototypeOf?(o=new Error(e),Object.setPrototypeOf(o,l.prototype)):(o=this,Object.defineProperty(o,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(o,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(o,this.constructor),r){var a=Object.getOwnPropertyDescriptor(r,"stack");i=(i=a&&(a.get||function(){return a.value}))||function(){return r.stack}}else{var s=new Error(e).stack;i=function(){return s}}return Object.defineProperty(o,"stack",{get:function(){return i.call(o)}}),Object.defineProperty(o,"cause",{value:r}),o.lineno=t,o.colno=n,o.firstUpdate=!0,o.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},o}function u(e){return"[object Function]"===n.toString.call(e)}function d(e){return"[object Array]"===n.toString.call(e)}function p(e){return"[object String]"===n.toString.call(e)}function f(e){return"[object Object]"===n.toString.call(e)}function m(e){return Array.prototype.slice.call(e)}function h(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function _(e){var t=[];for(var n in e)s(e,n)&&t.push(n);return t}(r=e.exports={}).hasOwnProp=s,r._prettifyError=function(e,t,n){if(n.Update||(n=new r.TemplateError(n)),n.Update(e),!t){var o=n;(n=new Error(o.message)).name=o.name}return n},Object.setPrototypeOf?Object.setPrototypeOf(l.prototype,Error.prototype):l.prototype=Object.create(Error.prototype,{constructor:{value:l}}),r.TemplateError=l,r.escape=function(e){return e.replace(a,c)},r.isFunction=u,r.isArray=d,r.isString=p,r.isObject=f,r.groupBy=function(e,t){for(var n={},o=u(t)?t:function(e){return e[t]},r=0;rc.length)o=t.slice(0,c.length),t.slice(o.length,r).forEach(function(e,t){t",r+2),o(n,r+4)})}}}},function(e,t){},function(e,t,n){"use strict";var s=n(8),c=n(17),p=n(3),o=n(0).TemplateError,f=n(2).Frame,r=n(1).Obj,i={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},l=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},n.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new o(e,t,n)},n._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},n._popBuffer=function(){this.buffer=this.bufferStack.pop()},n._emit=function(e){this.codebuf.push(e)},n._emitLine=function(e){this._emit(e+"\n")},n._emitLines=function(){for(var t=this,e=arguments.length,n=new Array(e),o=0;o","<=",">="],t=this.parseConcat(),n=[];;){var o=this.nextToken();if(!o)break;if(-1===e.indexOf(o.value)){this.pushToken(o);break}n.push(new d.CompareOperand(o.lineno,o.colno,this.parseConcat(),o.value))}return n.length?new d.Compare(n[0].lineno,n[0].colno,t,n):t},n.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(s.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new d.Concat(e.lineno,e.colno,e,t)}return e},n.parseAdd=function(){for(var e=this.parseSub();this.skipValue(s.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new d.Add(e.lineno,e.colno,e,t)}return e},n.parseSub=function(){for(var e=this.parseMul();this.skipValue(s.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new d.Sub(e.lineno,e.colno,e,t)}return e},n.parseMul=function(){for(var e=this.parseDiv();this.skipValue(s.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new d.Mul(e.lineno,e.colno,e,t)}return e},n.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(s.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new d.Div(e.lineno,e.colno,e,t)}return e},n.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(s.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new d.FloorDiv(e.lineno,e.colno,e,t)}return e},n.parseMod=function(){for(var e=this.parsePow();this.skipValue(s.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new d.Mod(e.lineno,e.colno,e,t)}return e},n.parsePow=function(){for(var e=this.parseUnary();this.skipValue(s.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new d.Pow(e.lineno,e.colno,e,t)}return e},n.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(s.TOKEN_OPERATOR,"-")?new d.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(s.TOKEN_OPERATOR,"+")?new d.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},n.parsePrimary=function(e){var t,n=this.nextToken(),o=null;if(n?n.type===s.TOKEN_STRING?t=n.value:n.type===s.TOKEN_INT?t=parseInt(n.value,10):n.type===s.TOKEN_FLOAT?t=parseFloat(n.value):n.type===s.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===s.TOKEN_NONE?t=null:n.type===s.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),o=void 0!==t?new d.Literal(n.lineno,n.colno,t):n.type===s.TOKEN_SYMBOL?new d.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),this.parseAggregate()),e||(o=this.parsePostfix(o)),o)return o;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},n.parseFilterName=function(){for(var e=this.expect(s.TOKEN_SYMBOL),t=e.value;this.skipValue(s.TOKEN_OPERATOR,".");)t+="."+this.expect(s.TOKEN_SYMBOL).value;return new d.Symbol(e.lineno,e.colno,t)},n.parseFilterArgs=function(e){return this.peekToken().type!==s.TOKEN_LEFT_PAREN?[]:this.parsePostfix(e).args.children},n.parseFilter=function(e){for(;this.skip(s.TOKEN_PIPE);){var t=this.parseFilterName();e=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},n.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var o=new d.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var r=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[o].concat(n)));return new d.Output(t.lineno,t.colno,[r])},n.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case s.TOKEN_LEFT_PAREN:e=new d.Group(t.lineno,t.colno);break;case s.TOKEN_LEFT_BRACKET:e=new d.Array(t.lineno,t.colno);break;case s.TOKEN_LEFT_CURLY:e=new d.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===s.TOKEN_RIGHT_PAREN||n===s.TOKEN_RIGHT_BRACKET||n===s.TOKEN_RIGHT_CURLY){this.nextToken();break}if(0=!",_="whitespace",M="block-start",b="variable-start",y="variable-end",g="left-paren",v="right-paren",L="left-bracket",A="right-bracket",k="left-curly",w="right-curly";function T(e,t,n,o){return{type:e,value:t,lineno:n,colno:o}}var o=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var o=this.current();if(this.isFinished())return null;if('"'===o||"'"===o)return T("string",this._parseString(o),t,n);if(e=this._extract(" \n\t\r "))return T(_,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(o=this.current())?this.forward():"\r"===o&&(this.forward(),"\n"===(o=this.current())?this.forward():this.back())),T("block-end",e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,T(y,e,t,n);if("r"===o&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var r="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}r+=this.current(),this.forward()}for(var i=["g","i","m","y"],a="";!this.isFinished();){if(!(-1!==i.indexOf(this.current())))break;a+=this.current(),this.forward()}return T("regex",{body:r,flags:a},t,n)}if(-1!==h.indexOf(o)){this.forward();var s,c=["==","===","!=","!==","<=",">=","//","**"],l=o+this.current();switch(-1!==m.indexOf(c,l)&&(this.forward(),o=l,-1!==m.indexOf(c,l+this.current())&&(o=l+this.current(),this.forward())),o){case"(":s=g;break;case")":s=v;break;case"[":s=L;break;case"]":s=A;break;case"{":s=k;break;case"}":s=w;break;case",":s="comma";break;case":":s="colon";break;case"~":s="tilde";break;case"|":s="pipe";break;default:s="operator"}return T(s,o,t,n)}if((e=this._extractUntil(" \n\t\r "+h)).match(/^[-+]?[0-9]+$/))return"."!==this.current()?T("int",e,t,n):(this.forward(),T("float",e+"."+this._extract("0123456789"),t,n));if(e.match(/^(true|false)$/))return T("boolean",e,t,n);if("none"===e)return T("none",e,t,n);if("null"===e)return T("none",e,t,n);if(e)return T("symbol",e,t,n);throw new Error("Unexpected value while parsing: "+e)}var u,d=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,T(M,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,T(b,e,t,n);e="";var p=!1;for(this._matches(this.tags.COMMENT_START)&&(p=!0,e=this._extractString(this.tags.COMMENT_START));null!==(u=this._extractUntil(d));){if(e+=u,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!p){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var o=this.current();this.forward();for(var r=t.indexOf(this.current());(e&&-1===r||!e&&-1!==r)&&!this.isFinished();)o+=this.current(),this.forward(),r=t.indexOf(this.current());return o}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;tr&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){console&&console.warn&&console.warn(e)}(s)}return e}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=function(){for(var e=[],t=0;t=t)return e;var n=t-e.length,o=s.repeat(" ",n/2-n%2),r=s.repeat(" ",n/2);return l.copySafeness(e,o+e+r)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,r,t){if(!s.isObject(e))throw new s.TemplateError("dictsort filter: val must be an object");var i,n=[];for(var o in e)n.push([o,e[o]]);if(void 0===t||"key"===t)i=0;else{if("value"!==t)throw new s.TemplateError("dictsort filter: You can only sort by either key or value");i=1}return n.sort(function(e,t){var n=e[i],o=t[i];return r||(s.isString(n)&&(n=n.toUpperCase()),s.isString(o)&&(o=o.toUpperCase())),o\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,o){var r=e;if(t instanceof RegExp)return e.replace(t,n);void 0===o&&(o=-1);var i="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof l.SafeString))return e;if(""===t)return i=n+e.split("").join(n)+n,l.copySafeness(e,i);var a=e.indexOf(t);if(0===o||-1===a)return e;for(var s=0,c=0;-1]*>|/gi,"")),o="";return o=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),l.copySafeness(e,o)},t.title=function(e){var t=(e=a(e,"")).split(" ").map(function(e){return r(e)});return l.copySafeness(e,t.join(" "))},t.trim=c,t.truncate=function(e,t,n,o){var r=e;if(t=t||255,(e=a(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var i=e.lastIndexOf(" ",t);-1===i&&(i=t),e=e.substring(0,i)}return e+=null!=o?o:"...",l.copySafeness(r,e)},t.upper=function(e){return(e=a(e,"")).toUpperCase()},t.urlencode=function(e){var o=encodeURIComponent;return s.isString(e)?o(e):(s.isArray(e)?e:s._entries(e)).map(function(e){var t=e[0],n=e[1];return o(t)+"="+o(n)}).join("&")};var u=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,d=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,p=/^https?:\/\/.*$/,f=/^www\./,m=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,r,t){o(r)&&(r=1/0);var i=!0===t?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var t=e.match(u),n=t?t[1]:e,o=n.substr(0,r);return p.test(n)?'"+o+"":f.test(n)?'"+o+"":d.test(n)?''+n+"":m.test(n)?'"+o+"":e}).join("")},t.wordcount=function(e){var t=(e=a(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return o(n)?t:n},t.int=function(e,t){var n=parseInt(e,10);return o(n)?t:n},t.d=t.default,t.e=t.escape},function(e,t,n){"use strict";var o=function(n){function e(e){var t;return(t=n.call(this)||this).precompiled=e||{},t}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,n),e.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},e}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){"use strict";var o=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t==0},t.escaped=function(e){return e instanceof o},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return t<=e},t.greaterthan=function(e,t){return t=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(t){t=t||",";var n=!0;return function(){var e=n?"":t;return n=!1,e}}(e)}}}},function(e,t,n){var o=n(4);e.exports=function(n,e){function t(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=o.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return t.prototype.render=function(e,t){n.render(this.name,e,t)},e.set("view",t),e.set("nunjucksEnv",n),n}},function(e,t,n){"use strict";var l=n(4),u=n(4),a=n(0)._prettifyError,s=n(5),d=n(7).Environment,p=n(24);function f(t,e){return!!Array.isArray(e)&&e.some(function(e){return t.match(e)})}function m(e,t){(t=t||{}).isString=!0;var n=t.env||new d([]),o=t.wrapper||p;if(!t.name)throw new Error('the "name" option is required when compiling a string');return o([h(e,t.name,n)],t)}function h(e,t,n){var o,r=(n=n||new d([])).asyncFilters,i=n.extensionsList;t=t.replace(/\\/g,"/");try{o=s.compile(e,r,i,t,n.opts)}catch(e){throw a(t,!1,e)}return{name:t,template:o}}e.exports={precompile:function(a,s){var e=(s=s||{}).env||new d([]),t=s.wrapper||p;if(s.isString)return m(a,s);var n=l.existsSync(a)&&l.statSync(a),o=[],c=[];if(n.isFile())o.push(h(l.readFileSync(a,"utf-8"),s.name||a,e));else if(n.isDirectory()){!function r(i){l.readdirSync(i).forEach(function(e){var t=u.join(i,e),n=t.substr(u.join(a,"/").length),o=l.statSync(t);o&&o.isDirectory()?f(n+="/",s.exclude)||r(t):f(n,s.include)&&c.push(t)})}(a);for(var r=0;r=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;te.length)&&!(0":">"},a=/[&"'<>]/g;function s(e,t){return n.hasOwnProperty.call(e,t)}function c(e){return o[e]}function l(e,t,n){var o,r,i;if(e instanceof Error&&(e=(r=e).name+": "+r.message),Object.setPrototypeOf?(o=new Error(e),Object.setPrototypeOf(o,l.prototype)):(o=this,Object.defineProperty(o,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(o,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(o,this.constructor),r){var a=Object.getOwnPropertyDescriptor(r,"stack");i=(i=a&&(a.get||function(){return a.value}))||function(){return r.stack}}else{var s=new Error(e).stack;i=function(){return s}}return Object.defineProperty(o,"stack",{get:function(){return i.call(o)}}),Object.defineProperty(o,"cause",{value:r}),o.lineno=t,o.colno=n,o.firstUpdate=!0,o.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},o}function u(e){return"[object Function]"===n.toString.call(e)}function d(e){return"[object Array]"===n.toString.call(e)}function p(e){return"[object String]"===n.toString.call(e)}function f(e){return"[object Object]"===n.toString.call(e)}function m(e){return Array.prototype.slice.call(e)}function h(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function _(e){var t=[];for(var n in e)s(e,n)&&t.push(n);return t}(r=e.exports={}).hasOwnProp=s,r._prettifyError=function(e,t,n){if(n.Update||(n=new r.TemplateError(n)),n.Update(e),!t){var o=n;(n=new Error(o.message)).name=o.name}return n},Object.setPrototypeOf?Object.setPrototypeOf(l.prototype,Error.prototype):l.prototype=Object.create(Error.prototype,{constructor:{value:l}}),r.TemplateError=l,r.escape=function(e){return e.replace(a,c)},r.isFunction=u,r.isArray=d,r.isString=p,r.isObject=f,r.groupBy=function(e,t){for(var n={},o=u(t)?t:function(e){return e[t]},r=0;rc.length)o=t.slice(0,c.length),t.slice(o.length,r).forEach(function(e,t){t",r+2),o(n,r+4)})}}}},function(e,t){},function(e,t,n){"use strict";var s=n(8),c=n(17),p=n(3),o=n(0).TemplateError,f=n(2).Frame,r=n(1).Obj,i={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},l=function(e){function t(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},n.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new o(e,t,n)},n._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},n._popBuffer=function(){this.buffer=this.bufferStack.pop()},n._emit=function(e){this.codebuf.push(e)},n._emitLine=function(e){this._emit(e+"\n")},n._emitLines=function(){for(var t=this,e=arguments.length,n=new Array(e),o=0;o","<=",">="],t=this.parseConcat(),n=[];;){var o=this.nextToken();if(!o)break;if(-1===e.indexOf(o.value)){this.pushToken(o);break}n.push(new d.CompareOperand(o.lineno,o.colno,this.parseConcat(),o.value))}return n.length?new d.Compare(n[0].lineno,n[0].colno,t,n):t},n.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(s.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new d.Concat(e.lineno,e.colno,e,t)}return e},n.parseAdd=function(){for(var e=this.parseSub();this.skipValue(s.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new d.Add(e.lineno,e.colno,e,t)}return e},n.parseSub=function(){for(var e=this.parseMul();this.skipValue(s.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new d.Sub(e.lineno,e.colno,e,t)}return e},n.parseMul=function(){for(var e=this.parseDiv();this.skipValue(s.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new d.Mul(e.lineno,e.colno,e,t)}return e},n.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(s.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new d.Div(e.lineno,e.colno,e,t)}return e},n.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(s.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new d.FloorDiv(e.lineno,e.colno,e,t)}return e},n.parseMod=function(){for(var e=this.parsePow();this.skipValue(s.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new d.Mod(e.lineno,e.colno,e,t)}return e},n.parsePow=function(){for(var e=this.parseUnary();this.skipValue(s.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new d.Pow(e.lineno,e.colno,e,t)}return e},n.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(s.TOKEN_OPERATOR,"-")?new d.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(s.TOKEN_OPERATOR,"+")?new d.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},n.parsePrimary=function(e){var t,n=this.nextToken(),o=null;if(n?n.type===s.TOKEN_STRING?t=n.value:n.type===s.TOKEN_INT?t=parseInt(n.value,10):n.type===s.TOKEN_FLOAT?t=parseFloat(n.value):n.type===s.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===s.TOKEN_NONE?t=null:n.type===s.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),o=void 0!==t?new d.Literal(n.lineno,n.colno,t):n.type===s.TOKEN_SYMBOL?new d.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),this.parseAggregate()),e||(o=this.parsePostfix(o)),o)return o;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},n.parseFilterName=function(){for(var e=this.expect(s.TOKEN_SYMBOL),t=e.value;this.skipValue(s.TOKEN_OPERATOR,".");)t+="."+this.expect(s.TOKEN_SYMBOL).value;return new d.Symbol(e.lineno,e.colno,t)},n.parseFilterArgs=function(e){return this.peekToken().type!==s.TOKEN_LEFT_PAREN?[]:this.parsePostfix(e).args.children},n.parseFilter=function(e){for(;this.skip(s.TOKEN_PIPE);){var t=this.parseFilterName();e=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},n.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var o=new d.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var r=new d.Filter(t.lineno,t.colno,t,new d.NodeList(t.lineno,t.colno,[o].concat(n)));return new d.Output(t.lineno,t.colno,[r])},n.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case s.TOKEN_LEFT_PAREN:e=new d.Group(t.lineno,t.colno);break;case s.TOKEN_LEFT_BRACKET:e=new d.Array(t.lineno,t.colno);break;case s.TOKEN_LEFT_CURLY:e=new d.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===s.TOKEN_RIGHT_PAREN||n===s.TOKEN_RIGHT_BRACKET||n===s.TOKEN_RIGHT_CURLY){this.nextToken();break}if(0=!",_="whitespace",M="block-start",b="variable-start",y="variable-end",g="left-paren",v="right-paren",L="left-bracket",A="right-bracket",k="left-curly",w="right-curly";function T(e,t,n,o){return{type:e,value:t,lineno:n,colno:o}}var o=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var o=this.current();if(this.isFinished())return null;if('"'===o||"'"===o)return T("string",this._parseString(o),t,n);if(e=this._extract(" \n\t\r "))return T(_,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(o=this.current())?this.forward():"\r"===o&&(this.forward(),"\n"===(o=this.current())?this.forward():this.back())),T("block-end",e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,T(y,e,t,n);if("r"===o&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var r="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}r+=this.current(),this.forward()}for(var i=["g","i","m","y"],a="";!this.isFinished();){if(!(-1!==i.indexOf(this.current())))break;a+=this.current(),this.forward()}return T("regex",{body:r,flags:a},t,n)}if(-1!==h.indexOf(o)){this.forward();var s,c=["==","===","!=","!==","<=",">=","//","**"],l=o+this.current();switch(-1!==m.indexOf(c,l)&&(this.forward(),o=l,-1!==m.indexOf(c,l+this.current())&&(o=l+this.current(),this.forward())),o){case"(":s=g;break;case")":s=v;break;case"[":s=L;break;case"]":s=A;break;case"{":s=k;break;case"}":s=w;break;case",":s="comma";break;case":":s="colon";break;case"~":s="tilde";break;case"|":s="pipe";break;default:s="operator"}return T(s,o,t,n)}if((e=this._extractUntil(" \n\t\r "+h)).match(/^[-+]?[0-9]+$/))return"."!==this.current()?T("int",e,t,n):(this.forward(),T("float",e+"."+this._extract("0123456789"),t,n));if(e.match(/^(true|false)$/))return T("boolean",e,t,n);if("none"===e)return T("none",e,t,n);if("null"===e)return T("none",e,t,n);if(e)return T("symbol",e,t,n);throw new Error("Unexpected value while parsing: "+e)}var u,d=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,T(M,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,T(b,e,t,n);e="";var p=!1;for(this._matches(this.tags.COMMENT_START)&&(p=!0,e=this._extractString(this.tags.COMMENT_START));null!==(u=this._extractUntil(d));){if(e+=u,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!p){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&0this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var o=this.current();this.forward();for(var r=t.indexOf(this.current());(e&&-1===r||!e&&-1!==r)&&!this.isFinished();)o+=this.current(),this.forward(),r=t.indexOf(this.current());return o}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;tr&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){console&&console.warn&&console.warn(e)}(s)}return e}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=function(){for(var e=[],t=0;t=t)return e;var n=t-e.length,o=s.repeat(" ",n/2-n%2),r=s.repeat(" ",n/2);return l.copySafeness(e,o+e+r)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,r,t){if(!s.isObject(e))throw new s.TemplateError("dictsort filter: val must be an object");var i,n=[];for(var o in e)n.push([o,e[o]]);if(void 0===t||"key"===t)i=0;else{if("value"!==t)throw new s.TemplateError("dictsort filter: You can only sort by either key or value");i=1}return n.sort(function(e,t){var n=e[i],o=t[i];return r||(s.isString(n)&&(n=n.toUpperCase()),s.isString(o)&&(o=o.toUpperCase())),o\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,o){var r=e;if(t instanceof RegExp)return e.replace(t,n);void 0===o&&(o=-1);var i="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof l.SafeString))return e;if(""===t)return i=n+e.split("").join(n)+n,l.copySafeness(e,i);var a=e.indexOf(t);if(0===o||-1===a)return e;for(var s=0,c=0;-1]*>|/gi,"")),o="";return o=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),l.copySafeness(e,o)},t.title=function(e){var t=(e=a(e,"")).split(" ").map(function(e){return r(e)});return l.copySafeness(e,t.join(" "))},t.trim=c,t.truncate=function(e,t,n,o){var r=e;if(t=t||255,(e=a(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var i=e.lastIndexOf(" ",t);-1===i&&(i=t),e=e.substring(0,i)}return e+=null!=o?o:"...",l.copySafeness(r,e)},t.upper=function(e){return(e=a(e,"")).toUpperCase()},t.urlencode=function(e){var o=encodeURIComponent;return s.isString(e)?o(e):(s.isArray(e)?e:s._entries(e)).map(function(e){var t=e[0],n=e[1];return o(t)+"="+o(n)}).join("&")};var u=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,d=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,p=/^https?:\/\/.*$/,f=/^www\./,m=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,r,t){o(r)&&(r=1/0);var i=!0===t?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var t=e.match(u),n=t?t[1]:e,o=n.substr(0,r);return p.test(n)?'"+o+"":f.test(n)?'"+o+"":d.test(n)?''+n+"":m.test(n)?'"+o+"":e}).join("")},t.wordcount=function(e){var t=(e=a(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return o(n)?t:n},t.int=function(e,t){var n=parseInt(e,10);return o(n)?t:n},t.d=t.default,t.e=t.escape},function(e,t,n){"use strict";var o=function(n){function e(e){var t;return(t=n.call(this)||this).precompiled=e||{},t}return function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(e,n),e.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},e}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){"use strict";var o=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t==0},t.escaped=function(e){return e instanceof o},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return t<=e},t.greaterthan=function(e,t){return t=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(t){t=t||",";var n=!0;return function(){var e=n?"":t;return n=!1,e}}(e)}}}},function(e,t,n){var o=n(4);e.exports=function(n,e){function t(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=o.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return t.prototype.render=function(e,t){n.render(this.name,e,t)},e.set("view",t),e.set("nunjucksEnv",n),n}},function(e,t,n){"use strict";var l=n(4),u=n(4),a=n(0)._prettifyError,s=n(5),d=n(7).Environment,p=n(24);function f(t,e){return!!Array.isArray(e)&&e.some(function(e){return t.match(e)})}function m(e,t){(t=t||{}).isString=!0;var n=t.env||new d([]),o=t.wrapper||p;if(!t.name)throw new Error('the "name" option is required when compiling a string');return o([h(e,t.name,n)],t)}function h(e,t,n){var o,r=(n=n||new d([])).asyncFilters,i=n.extensionsList;t=t.replace(/\\/g,"/");try{o=s.compile(e,r,i,t,n.opts)}catch(e){throw a(t,!1,e)}return{name:t,template:o}}e.exports={precompile:function(a,s){var e=(s=s||{}).env||new d([]),t=s.wrapper||p;if(s.isString)return m(a,s);var n=l.existsSync(a)&&l.statSync(a),o=[],c=[];if(n.isFile())o.push(h(l.readFileSync(a,"utf-8"),s.name||a,e));else if(n.isDirectory()){!function r(i){l.readdirSync(i).forEach(function(e){var t=u.join(i,e),n=t.substr(u.join(a,"/").length),o=l.statSync(t);o&&o.isDirectory()?f(n+="/",s.exclude)||r(t):f(n,s.include)&&c.push(t)})}(a);for(var r=0;r=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;te.length)&&!(0= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=b-y,k=Math.floor,w=String.fromCharCode;function T(e){throw new RangeError(d[e])}function f(e,t){for(var n=e.length,o=[];n--;)o[n]=t(e[n]);return o}function m(e,t){var n=e.split("@"),o="";return 1>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var o=0;for(e=n?k(e/s):e>>1,e+=k(e/t);p*g>>1k((M-m)/a))&&T("overflow"),m+=c*a,!(c<(l=s<=_?y:_+g<=s?g:s-_));s+=b)a>k(M/(u=b-l))&&T("overflow"),a*=u;_=x(m-i,t=p.length+1,0==i),k(m/t)>M-h&&T("overflow"),h+=k(m/t),m%=t,p.splice(m++,0,h)}return S(p)}function _(e){var t,n,o,r,i,a,s,c,l,u,d,p,f,m,h,_=[];for(p=(e=z(e)).length,t=L,i=v,a=n=0;ak((M-n)/(f=o+1))&&T("overflow"),n+=(s-t)*f,t=s,a=0;a
M&&T("overflow"),d==t){for(c=n,l=b;!(c<(u=l<=i?y:i+g<=l?g:l-i));l+=b)h=c-u,m=b-u,_.push(w(O(u+h%m,0))),c=k(h/m);_.push(w(O(c,0))),i=x(n,f,o==r),n=0,++o}++n,++t}return _.join("")}if(r={version:"1.4.1",ucs2:{decode:z,encode:S},decode:h,encode:_,toASCII:function(e){return m(e,function(e){return l.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return m(e,function(e){return c.test(e)?h(e.slice(4).toLowerCase()):e})}},"object"==E(q("./node_modules/webpack/buildin/amd-options.js"))&&q("./node_modules/webpack/buildin/amd-options.js"))void 0===(C=function(){return r}.call(Y,q,Y,D))||(D.exports=C);else if(t&&n)if(D.exports==t)n.exports=r;else for(i in r)r.hasOwnProperty(i)&&(t[i]=r[i]);else e.punycode=r}(void 0)}).call(this,q("./node_modules/webpack/buildin/module.js")(e),q("./node_modules/webpack/buildin/global.js"))},"./node_modules/q/q.js":function(e,r,i){(function(V,G,t){var n,o;function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*!
*
* Copyright 2009-2017 Kris Kowal under the terms of the MIT
diff --git a/CTFd/themes/admin/templates/base.html b/CTFd/themes/admin/templates/base.html
index 84df393a..26332367 100644
--- a/CTFd/themes/admin/templates/base.html
+++ b/CTFd/themes/admin/templates/base.html
@@ -13,7 +13,7 @@