return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=$(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw fo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Fr(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=vo[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var yo=function(e,t){this.lexer=e,this.options=t};yo.Program="Program",yo.ExpressionStatement="ExpressionStatement",yo.AssignmentExpression="AssignmentExpression",yo.ConditionalExpression="ConditionalExpression",yo.LogicalExpression="LogicalExpression",yo.BinaryExpression="BinaryExpression",yo.UnaryExpression="UnaryExpression",yo.CallExpression="CallExpression",yo.MemberExpression="MemberExpression",yo.Identifier="Identifier",yo.Literal="Literal",yo.ArrayExpression="ArrayExpression",yo.Property="Property",yo.ObjectExpression="ObjectExpression",yo.ThisExpression="ThisExpression",yo.LocalsExpression="LocalsExpression",yo.NGValueParameter="NGValueParameter",yo.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:yo.Program,body:e}},expressionStatement:function(){return{type:yo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:yo.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:yo.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:yo.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:yo.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:yo.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:yo.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=R(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:yo.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:yo.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:yo.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:yo.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:yo.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do e.push(this.filterChain());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:yo.Identifier,name:e.text}},constant:function(){return{type:yo.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:yo.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:yo.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:yo.ObjectExpression,properties:t}},throwError:function(e,t){throw fo("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw fo("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw fo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{"this":{type:yo.ThisExpression},$locals:{type:yo.LocalsExpression}}},mn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},ln(i,n.$filter);var o,a="";if(this.stage="assign",o=dn(i)){this.state.computing="assign";var s=this.nextId();this.recurse(o,s),this.return_(s),a="fn.assign="+this.generateFunction("assign","s,v,l")}var u=cn(i.body);n.stage="inputs",r(u,function(e,t){var r="fn"+t;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(e,i),n.return_(i),n.state.inputs.push(r),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",c=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,en,nn,rn,tn,on,an,sn,e);return this.state=this.stage=void 0,c.literal=hn(i),c.constant=pn(i),c},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return r(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return r(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,i,o,a){var s,u,l,c,f,d=this;if(i=i||h,!a&&$(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,o,!0));switch(e.type){case yo.Program:r(e.body,function(t,n){d.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?d.current().body.push(u,";"):d.return_(u)});break;case yo.Literal:c=this.escape(e.value),this.assign(t,c),i(c);break;case yo.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),c=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,c),i(c);break;case yo.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),c="+"===e.operator?this.plus(s,u):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(u,0):"("+s+")"+e.operator+"("+u+")",this.assign(t,c),i(c);break;case yo.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),i(t);break;case yo.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),i(t);break;case yo.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),en(e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){o&&1!==o&&d.if_(d.not(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),(d.state.expensiveChecks||vn(e.name))&&d.addEnsureSafeObject(t),i(t);break;case yo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,s,void 0,function(){d.if_(d.notNull(s),function(){o&&1!==o&&d.addEnsureSafeAssignContext(s),e.computed?(u=d.nextId(),d.recurse(e.property,u),d.getStringValue(u),d.addEnsureSafeMemberName(u),o&&1!==o&&d.if_(d.not(d.computedMember(s,u)),d.lazyAssign(d.computedMember(s,u),"{}")),c=d.ensureSafeObject(d.computedMember(s,u)),d.assign(t,c),n&&(n.computed=!0,n.name=u)):(en(e.property.name),o&&1!==o&&d.if_(d.not(d.nonComputedMember(s,e.property.name)),d.lazyAssign(d.nonComputedMember(s,e.property.name),"{}")),c=d.nonComputedMember(s,e.property.name),(d.state.expensiveChecks||vn(e.property.name))&&(c=d.ensureSafeObject(c)),d.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){d.assign(t,"undefined")}),i(t)},!!o);break;case yo.CallExpression:t=t||this.nextId(),e.filter?(u=d.filter(e.callee.name),l=[],r(e.arguments,function(e){var t=d.nextId();d.recurse(e,t),l.push(t)}),c=u+"("+l.join(",")+")",d.assign(t,c),i(t)):(u=d.nextId(),s={},l=[],d.recurse(e.callee,u,s,function(){d.if_(d.notNull(u),function(){d.addEnsureSafeFunction(u),r(e.arguments,function(e){d.recurse(e,d.nextId(),void 0,function(e){l.push(d.ensureSafeObject(e))})}),s.name?(d.state.expensiveChecks||d.addEnsureSafeObject(s.context),c=d.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):c=u+"("+l.join(",")+")",c=d.ensureSafeObject(c),d.assign(t,c)},function(){d.assign(t,"undefined")}),i(t)}));break;case yo.AssignmentExpression:if(u=this.nextId(),s={},!fn(e.left))throw fo("lval","Trying to assign a value to a non l-value");this.recurse(e.left,void 0,s,function(){d.if_(d.notNull(s.context),function(){d.recurse(e.right,u),d.addEnsureSafeObject(d.member(s.context,s.name,s.computed)),d.addEnsureSafeAssignContext(s.context),c=d.member(s.context,s.name,s.computed)+e.operator+u,d.assign(t,c),i(t||c)})},1);break;case yo.ArrayExpression:l=[],r(e.elements,function(e){d.recurse(e,d.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),i(c);break;case yo.ObjectExpression:l=[],f=!1,r(e.properties,function(e){e.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),r(e.properties,function(e){e.computed?(s=d.nextId(),d.recurse(e.key,s)):s=e.key.type===yo.Identifier?e.key.name:""+e.key.value,u=d.nextId(),d.recurse(e.value,u),d.assign(d.member(t,s,e.computed),u)})):(r(e.properties,function(t){d.recurse(t.value,e.constant?void 0:d.nextId(),void 0,function(e){l.push(d.escape(t.key.type===yo.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),i(t||c);break;case yo.ThisExpression:this.assign(t,"s"),i("s");break;case yo.LocalsExpression:this.assign(t,"l"),i("l");break;case yo.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(w(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw fo("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},gn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,ln(i,n.$filter);var o,a;(o=dn(i))&&(a=this.recurse(o));var s,u=cn(i.body);u&&(s=[],r(u,function(e,t){var r=n.recurse(e);e.input=r,s.push(r),e.watchId=t}));var l=[];r(i.body,function(e){l.push(n.recurse(e.expression))});var c=0===i.body.length?h:1===i.body.length?l[0]:function(e,t){var n;return r(l,function(r){n=r(e,t)}),n};return a&&(c.assign=function(e,t,n){return a(e,n,t)}),s&&(c.inputs=s),c.literal=hn(i),c.constant=pn(i),c},recurse:function(e,t,n){var i,o,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case yo.Literal:return this.value(e.value,t);case yo.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t);case yo.BinaryExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case yo.LogicalExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t);case yo.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case yo.Identifier:return en(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||vn(e.name),t,n,s.expression);case yo.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(en(e.property.name,s.expression),o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(i,o,t,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,t,n,s.expression);case yo.CallExpression:return a=[],r(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(o=this.$filter(e.callee.name)),e.filter||(o=this.recurse(e.callee,!0)),e.filter?function(e,n,r,i){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,r,i));var l=o.apply(void 0,s,i);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,i){var u,l=o(e,n,r,i);if(null!=l.value){nn(l.context,s.expression),rn(l.value,s.expression);for(var c=[],f=0;f<a.length;++f)c.push(nn(a[f](e,n,r,i),s.expression));u=nn(l.value.apply(l.context,c),s.expression)}return t?{value:u}:u};case yo.AssignmentExpression:return i=this.recurse(e.left,!0,1),o=this.recurse(e.right),function(e,n,r,a){var u=i(e,n,r,a),l=o(e,n,r,a);return nn(u.value,s.expression),on(u.context),u.context[u.name]=l,t?{value:l}:l};case yo.ArrayExpression:return a=[],r(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case yo.ObjectExpression:return a=[],r(e.properties,function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===yo.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case yo.ThisExpression:return function(e){return t?{value:e}:e};case yo.LocalsExpression:return function(e,n){return t?{value:n}:n};case yo.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=$(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=$(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=sn(s,u);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=($(s)?s:0)-($(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n,r,i){return function(o,a,s,u){var l=a&&e in a?a:o;r&&1!==r&&l&&!l[e]&&(l[e]={});var c=l?l[e]:void 0;return t&&nn(c,i),n?{context:l,name:e,value:c}:c}},computedMember:function(e,t,n,r,i){return function(o,a,s,u){var l,c,f=e(o,a,s,u);return null!=f&&(l=t(o,a,s,u),l=tn(l),en(l,i),r&&1!==r&&(on(f),f&&!f[l]&&(f[l]={})),c=f[l],nn(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(e,t,n,r,i,o){return function(a,s,u,l){var c=e(a,s,u,l);i&&1!==i&&(on(c),c&&!c[t]&&(c[t]={}));var f=null!=c?c[t]:void 0;return(n||vn(t))&&nn(f,o),r?{context:c,name:t,value:f}:f}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var bo=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new yo(e,n),this.astCompiler=n.csp?new gn(this.ast,t):new mn(this.ast,t)};bo.prototype={constructor:bo,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var wo=Object.prototype.valueOf,xo=t("$sce"),ko={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Co=t("$compile"),So=e.document.createElement("a"),_o=In(e.location.href);jn.$inject=["$document"],Rn.$inject=["$provide"];var Eo=22,Do=".",Ao="0";qn.$inject=["$locale"],Yn.$inject=["$locale"];var To={yyyy:Qn("FullYear",4,0,!1,!0),yy:Qn("FullYear",2,0,!0,!0),y:Qn("FullYear",1,0,!1,!0),MMMM:Jn("Month"),MMM:Jn("Month",!0),MM:Qn("Month",2,1),M:Qn("Month",1,1),LLLL:Jn("Month",!1,!0),dd:Qn("Date",2),d:Qn("Date",1),HH:Qn("Hours",2),H:Qn("Hours",1),hh:Qn("Hours",2,-12),h:Qn("Hours",1,-12),mm:Qn("Minutes",2),m:Qn("Minutes",1),ss:Qn("Seconds",2),s:Qn("Seconds",1),sss:Qn("Milliseconds",3),EEEE:Jn("Day"),EEE:Jn("Day",!0),a:nr,Z:Xn,ww:tr(2),w:tr(1),G:rr,GG:rr,GGG:rr,GGGG:ir},Mo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Oo=/^\-?\d+$/;or.$inject=["$locale"];var Fo=m(Fr),Io=m(Ir);lr.$inject=["$parse"];var No=m({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===qr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Po={};r(Ei,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=gt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Po[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Ai,function(e,t){Po[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Tr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),r(["src","srcset","href"],function(e){var t=gt("ng-"+e);Po[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===qr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(jr&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var jo={$addControl:h,$$renameControl:fr,$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h,$setSubmitted:h},Lo="ng-submitted";dr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Ro=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||h}var i={name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:dr,compile:function(n,i){n.addClass(wa).addClass(ya);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};pi(n[0],"submit",u),n.on("$destroy",function(){t(function(){mi(n[0],"submit",u)},0,!1)})}var c=a[1]||s.$$parentForm;c.$addControl(s);var f=o?r(s.$name):h;o&&(f(e,s),i.$observe(o,function(t){s.$name!==t&&(f(e,void 0),s.$$parentForm.$$renameControl(s,t),(f=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),f(e,void 0),l(s,jo)})}}}};return i}]},Uo=Ro(),Vo=Ro(!0),zo=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Ho=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,qo=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Yo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Wo=/^(\d{4,})-(\d{2})-(\d{2})$/,Bo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Go=/^(\d{4,})-W(\d\d)$/,Zo=/^(\d{4,})-(\d\d)$/,Qo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Jo="keydown wheel mousedown",Xo=pe();r("date,datetime-local,month,time,week".split(","),function(e){Xo[e]=!0});var Ko={text:pr,date:$r("date",Wo,vr(Wo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":$r("datetimelocal",Bo,vr(Bo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:$r("time",Qo,vr(Qo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:$r("week",Go,gr,"yyyy-Www"),month:$r("month",Zo,vr(Zo,["yyyy","MM"]),"yyyy-MM"),number:br,url:wr,email:xr,radio:kr,checkbox:Sr,hidden:h,button:h,submit:h,reset:h,file:h},ea=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Ko[Fr(a.type)]||Ko.text)(i,o,a,s[0],t,e,n,r)}}}}],ta=/^(true|false|\d+)$/,na=function(){return{restrict:"A",priority:100,compile:function(e,t){return ta.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},ra=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=v(e)?"":e})}}}}],ia=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=v(e)?"":e})}}}}],oa=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],aa=m({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),sa=_r("",!0),ua=_r("Odd",0),la=_r("Even",1),ca=cr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),fa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],da={},ha={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=gt("ng-"+e);da[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};ha[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var pa=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=he(s.clone),e.leave(l).then(function(){l=null}),s=null))})}}}],ma=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Br.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,d,h,p=0,m=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),h&&(n.leave(h).then(function(){d=null}),d=h,h=null)};r.$watch(o,function(o){var u=function(){!$(s)||s&&!r.$eval(s)||t()},d=++p;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&d===p){var t=r.$new();l.template=e;var s=c(t,function(e){m(),n.enter(e,null,i).then(u)});f=t,h=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||d===p&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),l.template=null)})}}}}],ga=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return qr.call(r[0]).match(/SVG/)?(r.empty(),void t(_e(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void t(r.contents())(n))}}}],va=cr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),$a=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var o=t.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Jr(o):o,u=function(e){if(!v(e)){var t=[];return e&&r(e.split(s),function(e){e&&t.push(a?Jr(e):e)}),t}};i.$parsers.push(u),i.$formatters.push(function(e){if(Zr(e))return e.join(o)}),i.$isEmpty=function(e){return!e||!e.length}}}},ya="ng-valid",ba="ng-invalid",wa="ng-pristine",xa="ng-dirty",ka="ng-untouched",Ca="ng-touched",Sa="ng-pending",_a="ng-empty",Ea="ng-not-empty",Da=t("ngModel"),Aa=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,i,o,a,s,u,l,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},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.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(e),this.$$parentForm=jo;var f,d=o(n.ngModel),p=d.assign,m=d,g=p,y=null,b=this;this.$$setOptions=function(e){if(b.$options=e,e&&e.getterSetter){var t=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");m=function(e){var n=d(e);return C(n)&&(n=t(e)),n},g=function(e,t){C(d(e))?r(e,{$$$p:t}):p(e,t)}}else if(!d.assign)throw Da("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,Q(i))},this.$render=h,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){b.$isEmpty(e)?(a.removeClass(i,Ea),a.addClass(i,_a)):(a.removeClass(i,_a),a.addClass(i,Ea))};var w=0;Er({ctrl:this,$element:i,set:function(e,t){e[t]=!0;
},unset:function(e,t){delete e[t]},$animate:a}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,a.removeClass(i,xa),a.addClass(i,wa)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,a.removeClass(i,wa),a.addClass(i,xa),b.$$parentForm.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,a.setClass(i,ka,Ca)},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,a.setClass(i,Ca,ka)},this.$rollbackViewValue=function(){s.cancel(y),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!x(b.$modelValue)||!isNaN(b.$modelValue)){var e=b.$$lastCommittedViewValue,t=b.$$rawModelValue,n=b.$valid,r=b.$modelValue,i=b.$options&&b.$options.allowInvalid;b.$$runValidators(t,e,function(e){i||n===e||(b.$modelValue=e?t:void 0,b.$modelValue!==r&&b.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){function i(){var e=b.$$parserName||"parse";return v(f)?(s(e,null),!0):(f||(r(b.$validators,function(e,t){s(t,null)}),r(b.$asyncValidators,function(e,t){s(t,null)})),s(e,f),f)}function o(){var n=!0;return r(b.$validators,function(r,i){var o=r(e,t);n=n&&o,s(i,o)}),!!n||(r(b.$asyncValidators,function(e,t){s(t,null)}),!1)}function a(){var n=[],i=!0;r(b.$asyncValidators,function(r,o){var a=r(e,t);if(!O(a))throw Da("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){i=!1,s(o,!1)}))}),n.length?l.all(n).then(function(){u(i)},h):u(!0)}function s(e,t){c===w&&b.$setValidity(e,t)}function u(e){c===w&&n(e)}w++;var c=w;return i()&&o()?void a():void u(!1)},this.$commitViewValue=function(){var e=b.$viewValue;s.cancel(y),(b.$$lastCommittedViewValue!==e||""===e&&b.$$hasNativeValidators)&&(b.$$updateEmptyClasses(e),b.$$lastCommittedViewValue=e,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){b.$modelValue!==o&&b.$$writeModelToScope()}var n=b.$$lastCommittedViewValue,r=n;if(f=!v(r)||void 0)for(var i=0;i<b.$parsers.length;i++)if(r=b.$parsers[i](r),v(r)){f=!1;break}x(b.$modelValue)&&isNaN(b.$modelValue)&&(b.$modelValue=m(e));var o=b.$modelValue,a=b.$options&&b.$options.allowInvalid;b.$$rawModelValue=r,a&&(b.$modelValue=r,t()),b.$$runValidators(r,b.$$lastCommittedViewValue,function(e){a||(b.$modelValue=e?r:void 0,t())})},this.$$writeModelToScope=function(){g(e,b.$modelValue),r(b.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){b.$viewValue=e,b.$options&&!b.$options.updateOnDefault||b.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=b.$options;i&&$(i.debounce)&&(n=i.debounce,x(n)?r=n:x(n[t])?r=n[t]:x(n["default"])&&(r=n["default"])),s.cancel(y),r?y=s(function(){b.$commitViewValue()},r):u.$$phase?b.$commitViewValue():e.$apply(function(){b.$commitViewValue()})},e.$watch(function(){var t=m(e);if(t!==b.$modelValue&&(b.$modelValue===b.$modelValue||t===t)){b.$modelValue=b.$$rawModelValue=t,f=void 0;for(var n=b.$formatters,r=n.length,i=t;r--;)i=n[r](i);b.$viewValue!==i&&(b.$$updateEmptyClasses(i),b.$viewValue=b.$$lastCommittedViewValue=i,b.$render(),b.$$runValidators(t,i,h))}return t})}],Ta=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Aa,priority:1,compile:function(t){return t.addClass(wa).addClass(ka).addClass(ya),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],Ma=/(\s+|^)default(\s+|$)/,Oa=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=R(e.$eval(t.ngModelOptions)),$(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Jr(this.$options.updateOn.replace(Ma,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Fa=cr({terminal:!0,priority:1e3}),Ia=t("ngOptions"),Na=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\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]+?))?$/,Pa=["$compile","$document","$parse",function(t,i,o){function a(e,t,r){function i(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&n(e))t=e;else{t=[];for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t.push(r)}return t}var s=e.match(Na);if(!s)throw Ia("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Q(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],d=o(s[2]?s[1]:u),h=c&&o(c),p=h||d,m=f&&o(f),g=f?function(e,t){return m(r,t)}:function(e){return Je(e)},v=function(e,t){return g(e,k(e,t))},$=o(s[2]||s[1]),y=o(s[3]||""),b=o(s[4]||""),w=o(s[8]),x={},k=l?function(e,t){return x[l]=t,x[u]=e,x}:function(e){return x[u]=e,x};return{trackBy:f,getTrackByValue:v,getWatchables:o(w,function(e){var t=[];e=e||[];for(var n=a(e),i=n.length,o=0;o<i;o++){var u=e===n?o:n[o],l=e[u],c=k(l,u),f=g(l,c);if(t.push(f),s[2]||s[1]){var d=$(r,c);t.push(d)}if(s[4]){var h=b(r,c);t.push(h)}}return t}),getOptions:function(){for(var e=[],t={},n=w(r)||[],o=a(n),s=o.length,u=0;u<s;u++){var l=n===o?u:o[u],c=n[l],d=k(c,l),h=p(r,d),m=g(h,d),x=$(r,d),C=y(r,d),S=b(r,d),_=new i(m,h,x,C,S);e.push(_),t[m]=_}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return f?Br.copy(e.viewValue):e.viewValue}}}}}function s(e,n,o,s){function c(e,t){var n=u.cloneNode(!1);t.appendChild(n),f(e,n)}function f(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function d(){var e=k&&p.readValue();if(k)for(var t=k.items.length-1;t>=0;t--){var r=k.items[t];He($(r.group)?r.element.parentNode:r.element)}k=C.getOptions();var i={};if(w&&n.prepend(h),k.items.forEach(function(e){var t;$(e.group)?(t=i[e.group],t||(t=l.cloneNode(!1),S.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),c(e,t)):c(e,S)}),n[0].appendChild(S),m.$render(),!m.$isEmpty(e)){var o=p.readValue(),a=C.trackBy||g;(a?U(e,o):e===o)||(m.$setViewValue(o),m.$render())}}for(var h,p=s[0],m=s[1],g=o.multiple,v=0,y=n.children(),b=y.length;v<b;v++)if(""===y[v].value){h=y.eq(v);break}var w=!!h,x=Lr(u.cloneNode(!1));x.val("?");var k,C=a(o.ngOptions,n,e),S=i[0].createDocumentFragment(),_=function(){w||n.prepend(h),n.val(""),h.prop("selected",!0),h.attr("selected",!0)},E=function(){w||h.remove()},D=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},A=function(){x.remove()};g?(m.$isEmpty=function(e){return!e||0===e.length},p.writeValue=function(e){k.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=k.getOptionFromViewValue(e);t&&(t.element.selected=!0)})},p.readValue=function(){var e=n.val()||[],t=[];return r(e,function(e){var n=k.selectValueMap[e];n&&!n.disabled&&t.push(k.getViewValueFromOption(n))}),t},C.trackBy&&e.$watchCollection(function(){if(Zr(m.$viewValue))return m.$viewValue.map(function(e){return C.getTrackByValue(e)})},function(){m.$render()})):(p.writeValue=function(e){var t=k.getOptionFromViewValue(e);t?(n[0].value!==t.selectValue&&(A(),E(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||w?(A(),_()):(E(),D())},p.readValue=function(){var e=k.selectValueMap[n.val()];return e&&!e.disabled?(E(),A(),k.getViewValueFromOption(e)):null},C.trackBy&&e.$watch(function(){return C.getTrackByValue(m.$viewValue)},function(){m.$render()})),w?(h.remove(),t(h)(e),h.removeClass("ng-scope")):h=Lr(u.cloneNode(!1)),n.empty(),d(),e.$watchCollection(C.getWatchables,d)}var u=e.document.createElement("option"),l=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=h},post:s}}}],ja=["$locale","$interpolate","$log",function(e,t,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(e){s.text(e||"")}var c,f=u.count,d=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,m=a.$eval(d)||{},g={},$=t.startSymbol(),y=t.endSymbol(),b=$+f+"-"+p+y,w=Br.noop;r(u,function(e,t){var n=o.exec(t);if(n){var r=(n[1]?"-":"")+Fr(n[2]);m[r]=s.attr(u.$attr[t])}}),r(m,function(e,n){g[n]=t(e.replace(i,b))}),a.$watch(f,function(t){var r=parseFloat(t),i=isNaN(r);if(i||r in m||(r=e.pluralCat(r-p)),r!==c&&!(i&&x(c)&&isNaN(c))){w();var o=g[r];v(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),w=h,l()):w=a.$watch(o,l),c=r}})}}}],La=["$parse","$animate","$compile",function(e,i,o){var a="$$NG_REMOVED",s=t("ngRepeat"),u=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))},l=function(e){return e.clone[0]},c=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,f){var d=f.ngRepeat,h=o.$$createComment("end ngRepeat",d),p=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var m=p[1],g=p[2],v=p[3],$=p[4];if(p=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!p)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var y=p[3]||p[1],b=p[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);var w,x,k,C,S={$id:Je};return $?w=e($):(k=function(e,t){return Je(t)},C=function(e){return e}),function(e,t,o,f,p){w&&(x=function(t,n,r){return b&&(S[b]=t),S[y]=n,S.$index=r,w(e,S)});var m=pe();e.$watchCollection(g,function(o){var f,g,$,w,S,_,E,D,A,T,M,O,F=t[0],I=pe();if(v&&(e[v]=o),n(o))A=o,D=x||k;else{D=x||C,A=[];for(var N in o)Or.call(o,N)&&"$"!==N.charAt(0)&&A.push(N)}for(w=A.length,M=new Array(w),f=0;f<w;f++)if(S=o===A?f:A[f],_=o[S],E=D(S,_,f),m[E])T=m[E],delete m[E],I[E]=T,M[f]=T;else{if(I[E])throw r(M,function(e){e&&e.scope&&(m[e.id]=e)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,E,_);M[f]={id:E,scope:void 0,clone:void 0},I[E]=!0}for(var P in m){if(T=m[P],O=he(T.clone),i.leave(O),O[0].parentNode)for(f=0,g=O.length;f<g;f++)O[f][a]=!0;T.scope.$destroy()}for(f=0;f<w;f++)if(S=o===A?f:A[f],_=o[S],T=M[f],T.scope){$=F;do $=$.nextSibling;while($&&$[a]);l(T)!=$&&i.move(he(T.clone),null,F),F=c(T),u(T.scope,f,y,_,b,S,w)}else p(function(e,t){T.scope=t;var n=h.cloneNode(!1);e[e.length++]=n,i.enter(e,null,F),F=n,T.clone=e,I[T.id]=T,u(T.scope,f,y,_,b,S,w)});m=I})}}}}],Ra="ng-hide",Ua="ng-hide-animate",Va=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,Ra,{tempClasses:Ua})})}}}],za=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,Ra,{tempClasses:Ua})})}}}],Ha=cr(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&r(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),qa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=o.ngSwitch||o.on,u=[],l=[],c=[],f=[],d=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var i,o;for(i=0,o=c.length;i<o;++i)e.cancel(c[i]);for(c.length=0,i=0,o=f.length;i<o;++i){var s=he(l[i].clone);f[i].$destroy();var h=c[i]=e.leave(s);h.then(d(c,i))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&r(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],Ya=cr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),Wa=cr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ba=t("ngTransclude"),Ga=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(e,n){e.length?t.append(e):(s(),n.$destroy())}function s(){n(e,function(e){t.append(e)})}if(!o)throw Ba("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Q(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var u=r.ngTransclude||r.ngTranscludeSlot;o(a,null,u),u&&!o.isSlotFilled(u)&&s()}}}}],Za=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Qa={$setViewValue:h,$render:h},Ja=["$element","$scope",function(t,n){var r=this,i=new Xe;r.ngModelCtrl=Qa,r.unknownOption=Lr(e.document.createElement("option")),r.renderUnknownOption=function(e){var n="? "+Je(e)+" ?";r.unknownOption.val(n),t.prepend(r.unknownOption),t.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=h}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),t.val()},r.writeValue=function(e){r.hasOption(e)?(r.removeUnknownOption(),t.val(e),""===e&&r.emptyOption.prop("selected",!0)):null==e&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(e)},r.addOption=function(e,t){if(t[0].nodeType!==ui){fe(e,'"option value"'),""===e&&(r.emptyOption=t);var n=i.get(e)||0;i.put(e,n+1),r.ngModelCtrl.$render(),Ar(t)}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.remove(e),""===e&&(r.emptyOption=void 0)):i.put(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.registerOption=function(e,t,n,i,o){if(i){var a;n.$observe("value",function(e){$(a)&&r.removeOption(a),a=e,r.addOption(e,t)})}else o?e.$watch(o,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t);t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Xa=function(){function e(e,t,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,t.on("change",function(){e.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return r(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Xe(e);r(t.find("option"),function(e){e.selected=$(n.get(e.value))})};var s,u=NaN;e.$watch(function(){u!==o.$viewValue||U(s,o.$viewValue)||(s=ge(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ja,priority:1,link:{pre:e,post:t}}},Ka=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if($(n.value))var r=e(n.value,!0);else{var i=e(t.text(),!0);i||n.$set("value",t.text())}return function(e,t,n){var o="$selectController",a=t.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(e,t,n,r,i)}}}}],es=m({restrict:"E",terminal:!1}),ts=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},ns=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(w(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,Q(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||v(o)||o.test(t)}}}}},rs=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=f(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},is=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=f(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void(e.console&&console.log("WARNING: Tried to load angular more than once.")):(ue(),ye(Br),Br.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return t==-1?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r),o=(e*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),void Lr(e.document).ready(function(){re(e.document,ie)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.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-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>')},{}],9:[function(e,t,n){e("./angular"),t.exports=angular},{"./angular":8}],10:[function(e,t,n){(function(){var e,n,r,i,o,a,s,u,l=[].slice,c={}.hasOwnProperty,f=function(e,t){function n(){this.constructor=e}for(var r in t)c.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};s=function(){},n=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,n,r,i,o;if(r=arguments[0],e=2<=arguments.length?l.call(arguments,1):[],this._callbacks=this._callbacks||{},n=this._callbacks[r])for(i=0,o=n.length;i<o;i++)t=n[i],t.apply(this,e);return this},e.prototype.removeListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.off=function(e,t){var n,r,i,o,a;if(!this._callbacks||0===arguments.length)return this._callbacks={},this;if(r=this._callbacks[e],!r)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(i=o=0,a=r.length;o<a;i=++o)if(n=r[i],n===t){r.splice(i,1);break}return this},e}(),e=function(e){function t(e,n){var i,o,a;if(this.element=e,this.version=t.version,this.defaultOptions.previewTemplate=this.defaultOptions.previewTemplate.replace(/\n*/g,""),this.clickableElements=[],this.listeners=[],this.files=[],"string"==typeof this.element&&(this.element=document.querySelector(this.element)),!this.element||null==this.element.nodeType)throw new Error("Invalid dropzone element.");if(this.element.dropzone)throw new Error("Dropzone already attached.");if(t.instances.push(this),this.element.dropzone=this,i=null!=(a=t.optionsForElement(this.element))?a:{},this.options=r({},this.defaultOptions,i,null!=n?n:{}),this.options.forceFallback||!t.isBrowserSupported())return this.options.fallback.call(this);if(null==this.options.url&&(this.options.url=this.element.getAttribute("action")),!this.options.url)throw new Error("No URL provided.");if(this.options.acceptedFiles&&this.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");this.options.acceptedMimeTypes&&(this.options.acceptedFiles=this.options.acceptedMimeTypes,delete this.options.acceptedMimeTypes),this.options.method=this.options.method.toUpperCase(),(o=this.getExistingFallback())&&o.parentNode&&o.parentNode.removeChild(o),this.options.previewsContainer!==!1&&(this.options.previewsContainer?this.previewsContainer=t.getElement(this.options.previewsContainer,"previewsContainer"):this.previewsContainer=this.element),this.options.clickable&&(this.options.clickable===!0?this.clickableElements=[this.element]:this.clickableElements=t.getElements(this.options.clickable,"clickable")),this.init()}var r,i;return f(t,e),t.prototype.Emitter=n,t.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],t.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,parallelUploads:2,uploadMultiple:!1,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,filesizeBase:1e3,maxFiles:null,params:{},clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",accept:function(e,t){return t()},init:function(){return s},forceFallback:!1,fallback:function(){var e,n,r,i,o,a;for(this.element.className=""+this.element.className+" dz-browser-not-supported",a=this.element.getElementsByTagName("div"),i=0,o=a.length;i<o;i++)e=a[i],/(^| )dz-message($| )/.test(e.className)&&(n=e,e.className="dz-message");return n||(n=t.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.height<t.optHeight||e.width<t.optWidth?(t.trgHeight=t.srcHeight,t.trgWidth=t.srcWidth):n>r?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:s,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:s,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,i,o,a,s,u,l,c,f,d,h,p;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),f=e.previewElement.querySelectorAll("[data-dz-name]"),o=0,u=f.length;o<u;o++)n=f[o],n.textContent=this._renameFilename(e.name);for(d=e.previewElement.querySelectorAll("[data-dz-size]"),a=0,l=d.length;a<l;a++)n=d[a],n.innerHTML=this.filesize(e.size);for(this.options.addRemoveLinks&&(e._removeLink=t.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),h=e.previewElement.querySelectorAll("[data-dz-remove]"),p=[],s=0,c=h.length;s<c;s++)i=h[s],p.push(i.addEventListener("click",r));return p}},removedfile:function(e){var t;return e.previewElement&&null!=(t=e.previewElement)&&t.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){var n,r,i,o;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),o=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),r=0,i=o.length;r<i;r++)n=o[r],n.alt=e.name,n.src=t;return setTimeout(function(t){return function(){return e.previewElement.classList.add("dz-image-preview")}}(this),1)}},error:function(e,t){var n,r,i,o,a;if(e.previewElement){for(e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error),o=e.previewElement.querySelectorAll("[data-dz-errormessage]"),a=[],r=0,i=o.length;r<i;r++)n=o[r],a.push(n.textContent=t);return a}},errormultiple:s,processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.textContent=this.options.dictCancelUpload},processingmultiple:s,uploadprogress:function(e,t,n){var r,i,o,a,s;if(e.previewElement){for(a=e.previewElement.querySelectorAll("[data-dz-uploadprogress]"),s=[],i=0,o=a.length;i<o;i++)r=a[i],"PROGRESS"===r.nodeName?s.push(r.value=t):s.push(r.style.width=""+t+"%");return s}},totaluploadprogress:s,sending:s,sendingmultiple:s,success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:s,canceled:function(e){return this.emit("error",e,"Upload canceled.")},canceledmultiple:s,complete:function(e){if(e._removeLink&&(e._removeLink.textContent=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:s,maxfilesexceeded:s,maxfilesreached:s,queuecomplete:s,addedfiles:s,previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>'},r=function(){var e,t,n,r,i,o,a;for(r=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],o=0,a=n.length;o<a;o++){t=n[o];for(e in t)i=t[e],r[e]=i}return r},t.prototype.getAcceptedFiles=function(){var e,t,n,r,i;for(r=this.files,i=[],t=0,n=r.length;t<n;t++)e=r[t],e.accepted&&i.push(e);
return i},t.prototype.getRejectedFiles=function(){var e,t,n,r,i;for(r=this.files,i=[],t=0,n=r.length;t<n;t++)e=r[t],e.accepted||i.push(e);return i},t.prototype.getFilesWithStatus=function(e){var t,n,r,i,o;for(i=this.files,o=[],n=0,r=i.length;n<r;n++)t=i[n],t.status===e&&o.push(t);return o},t.prototype.getQueuedFiles=function(){return this.getFilesWithStatus(t.QUEUED)},t.prototype.getUploadingFiles=function(){return this.getFilesWithStatus(t.UPLOADING)},t.prototype.getAddedFiles=function(){return this.getFilesWithStatus(t.ADDED)},t.prototype.getActiveFiles=function(){var e,n,r,i,o;for(i=this.files,o=[],n=0,r=i.length;n<r;n++)e=i[n],e.status!==t.UPLOADING&&e.status!==t.QUEUED||o.push(e);return o},t.prototype.init=function(){var e,n,r,i,o,a,s;for("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(t.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&(r=function(e){return function(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,i,o;if(n=e.hiddenFileInput.files,n.length)for(i=0,o=n.length;i<o;i++)t=n[i],e.addFile(t);return e.emit("addedfiles",n),r()})}}(this))(),this.URL=null!=(a=window.URL)?a:window.webkitURL,s=this.events,i=0,o=s.length;i<o;i++)e=s[i],this.on(e,this.options[e]);return this.on("uploadprogress",function(e){return function(){return e.updateTotalUploadProgress()}}(this)),this.on("removedfile",function(e){return function(){return e.updateTotalUploadProgress()}}(this)),this.on("canceled",function(e){return function(t){return e.emit("complete",t)}}(this)),this.on("complete",function(e){return function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout(function(){return e.emit("queuecomplete")},0)}}(this)),n=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1},this.listeners=[{element:this.element,events:{dragstart:function(e){return function(t){return e.emit("dragstart",t)}}(this),dragenter:function(e){return function(t){return n(t),e.emit("dragenter",t)}}(this),dragover:function(e){return function(t){var r;try{r=t.dataTransfer.effectAllowed}catch(i){}return t.dataTransfer.dropEffect="move"===r||"linkMove"===r?"move":"copy",n(t),e.emit("dragover",t)}}(this),dragleave:function(e){return function(t){return e.emit("dragleave",t)}}(this),drop:function(e){return function(t){return n(t),e.drop(t)}}(this),dragend:function(e){return function(t){return e.emit("dragend",t)}}(this)}}],this.clickableElements.forEach(function(e){return function(n){return e.listeners.push({element:n,events:{click:function(r){return(n!==e.element||r.target===e.element||t.elementInside(r.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})}}(this)),this.enable(),this.options.init.call(this)},t.prototype.destroy=function(){var e;return this.disable(),this.removeAllFiles(!0),(null!=(e=this.hiddenFileInput)?e.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,t.instances.splice(t.instances.indexOf(this),1)},t.prototype.updateTotalUploadProgress=function(){var e,t,n,r,i,o,a,s;if(r=0,n=0,e=this.getActiveFiles(),e.length){for(s=this.getActiveFiles(),o=0,a=s.length;o<a;o++)t=s[o],r+=t.upload.bytesSent,n+=t.upload.total;i=100*r/n}else i=100;return this.emit("totaluploadprogress",i,n,r)},t.prototype._getParamName=function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):""+this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")},t.prototype._renameFilename=function(e){return"function"!=typeof this.options.renameFilename?e:this.options.renameFilename(e)},t.prototype.getFallbackForm=function(){var e,n,r,i;return(e=this.getExistingFallback())?e:(r='<div class="dz-fallback">',this.options.dictFallbackText&&(r+="<p>"+this.options.dictFallbackText+"</p>"),r+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>',n=t.createElement(r),"FORM"!==this.element.tagName?(i=t.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>'),i.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=i?i:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,i,o;for(t=function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)if(t=e[n],/(^| )fallback($| )/.test(t.className))return t},o=["div","form"],r=0,i=o.length;r<i;r++)if(n=o[r],e=t(this.element.getElementsByTagName(n)))return e},t.prototype.setupEventListeners=function(){var e,t,n,r,i,o,a;for(o=this.listeners,a=[],r=0,i=o.length;r<i;r++)e=o[r],a.push(function(){var r,i;r=e.events,i=[];for(t in r)n=r[t],i.push(e.element.addEventListener(t,n,!1));return i}());return a},t.prototype.removeEventListeners=function(){var e,t,n,r,i,o,a;for(o=this.listeners,a=[],r=0,i=o.length;r<i;r++)e=o[r],a.push(function(){var r,i;r=e.events,i=[];for(t in r)n=r[t],i.push(e.element.removeEventListener(t,n,!1));return i}());return a},t.prototype.disable=function(){var e,t,n,r,i;for(this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),r=this.files,i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push(this.cancelUpload(e));return i},t.prototype.enable=function(){return this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()},t.prototype.filesize=function(e){var t,n,r,i,o,a,s,u;if(r=0,i="b",e>0){for(a=["TB","GB","MB","KB","b"],n=s=0,u=a.length;s<u;n=++s)if(o=a[n],t=Math.pow(this.options.filesizeBase,4-n)/10,e>=t){r=e/Math.pow(this.options.filesizeBase,4-n),i=o;break}r=Math.round(10*r)/10}return"<strong>"+r+"</strong> "+i},t.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},t.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&(n=e.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},t.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),t=e.clipboardData.items,t.length?this._addFilesFromItems(t):void 0},t.prototype.handleFiles=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(this.addFile(t));return i},t.prototype._addFilesFromItems=function(e){var t,n,r,i,o;for(o=[],r=0,i=e.length;r<i;r++)n=e[r],null!=n.webkitGetAsEntry&&(t=n.webkitGetAsEntry())?t.isFile?o.push(this.addFile(n.getAsFile())):t.isDirectory?o.push(this._addFilesFromDirectory(t,t.name)):o.push(void 0):null!=n.getAsFile&&(null==n.kind||"file"===n.kind)?o.push(this.addFile(n.getAsFile())):o.push(void 0);return o},t.prototype._addFilesFromDirectory=function(e,t){var n,r,i;return n=e.createReader(),r=function(e){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log?console.log(e):void 0},(i=function(e){return function(){return n.readEntries(function(n){var r,o,a;if(n.length>0){for(o=0,a=n.length;o<a;o++)r=n[o],r.isFile?r.file(function(n){if(!e.options.ignoreHiddenFiles||"."!==n.name.substring(0,1))return n.fullPath=""+t+"/"+n.name,e.addFile(n)}):r.isDirectory&&e._addFilesFromDirectory(r,""+t+"/"+r.name);i()}return null},r)}}(this))()},t.prototype.accept=function(e,n){return e.size>1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):t.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,n):n(this.options.dictInvalidFileType)},t.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=t.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}}(this))},t.prototype.enqueueFiles=function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)t=e[n],this.enqueueFile(t);return null},t.prototype.enqueueFile=function(e){if(e.status!==t.ADDED||e.accepted!==!0)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=t.QUEUED,this.options.autoProcessQueue)return setTimeout(function(e){return function(){return e.processQueue()}}(this),0)},t.prototype._thumbnailQueue=[],t.prototype._processingThumbnail=!1,t.prototype._enqueueThumbnail=function(e){if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(e){return function(){return e._processThumbnailQueue()}}(this),0)},t.prototype._processThumbnailQueue=function(){if(!this._processingThumbnail&&0!==this._thumbnailQueue.length)return this._processingThumbnail=!0,this.createThumbnail(this._thumbnailQueue.shift(),function(e){return function(){return e._processingThumbnail=!1,e._processThumbnailQueue()}}(this))},t.prototype.removeFile=function(e){if(e.status===t.UPLOADING&&this.cancelUpload(e),this.files=u(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")},t.prototype.removeAllFiles=function(e){var n,r,i,o;for(null==e&&(e=!1),o=this.files.slice(),r=0,i=o.length;r<i;r++)n=o[r],(n.status!==t.UPLOADING||e)&&this.removeFile(n);return null},t.prototype.createThumbnail=function(e,t){var n;return n=new FileReader,n.onload=function(r){return function(){return"image/svg+xml"===e.type?(r.emit("thumbnail",e,n.result),void(null!=t&&t())):r.createThumbnailFromUrl(e,n.result,t)}}(this),n.readAsDataURL(e)},t.prototype.createThumbnailFromUrl=function(e,t,n,r){var i;return i=document.createElement("img"),r&&(i.crossOrigin=r),i.onload=function(t){return function(){var r,o,s,u,l,c,f,d;if(e.width=i.width,e.height=i.height,s=t.options.resize.call(t,e),null==s.trgWidth&&(s.trgWidth=s.optWidth),null==s.trgHeight&&(s.trgHeight=s.optHeight),r=document.createElement("canvas"),o=r.getContext("2d"),r.width=s.trgWidth,r.height=s.trgHeight,a(o,i,null!=(l=s.srcX)?l:0,null!=(c=s.srcY)?c:0,s.srcWidth,s.srcHeight,null!=(f=s.trgX)?f:0,null!=(d=s.trgY)?d:0,s.trgWidth,s.trgHeight),u=r.toDataURL("image/png"),t.emit("thumbnail",e,u),null!=n)return n()}}(this),null!=n&&(i.onerror=n),i.src=t},t.prototype.processQueue=function(){var e,t,n,r;if(t=this.options.parallelUploads,n=this.getUploadingFiles().length,e=n,!(n>=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e<t;){if(!r.length)return;this.processFile(r.shift()),e++}}},t.prototype.processFile=function(e){return this.processFiles([e])},t.prototype.processFiles=function(e){var n,r,i;for(r=0,i=e.length;r<i;r++)n=e[r],n.processing=!0,n.status=t.UPLOADING,this.emit("processing",n);return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)},t.prototype._getFilesWithXhr=function(e){var t,n;return n=function(){var n,r,i,o;for(i=this.files,o=[],n=0,r=i.length;n<r;n++)t=i[n],t.xhr===e&&o.push(t);return o}.call(this)},t.prototype.cancelUpload=function(e){var n,r,i,o,a,s,u;if(e.status===t.UPLOADING){for(r=this._getFilesWithXhr(e.xhr),i=0,a=r.length;i<a;i++)n=r[i],n.status=t.CANCELED;for(e.xhr.abort(),o=0,s=r.length;o<s;o++)n=r[o],this.emit("canceled",n);this.options.uploadMultiple&&this.emit("canceledmultiple",r)}else(u=e.status)!==t.ADDED&&u!==t.QUEUED||(e.status=t.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()},i=function(){var e,t;return t=arguments[0],e=2<=arguments.length?l.call(arguments,1):[],"function"==typeof t?t.apply(this,e):t},t.prototype.uploadFile=function(e){return this.uploadFiles([e])},t.prototype.uploadFiles=function(e){var n,o,a,s,u,l,c,f,d,h,p,m,g,v,$,y,b,w,x,k,C,S,_,E,D,A,T,M,O,F,I,N,P,j;for(x=new XMLHttpRequest,k=0,E=e.length;k<E;k++)n=e[k],n.xhr=x;m=i(this.options.method,e),b=i(this.options.url,e),x.open(m,b,!0),x.withCredentials=!!this.options.withCredentials,$=null,a=function(t){return function(){var r,i,o;for(o=[],r=0,i=e.length;r<i;r++)n=e[r],o.push(t._errorProcessing(e,$||t.options.dictResponseError.replace("{{statusCode}}",x.status),x));return o}}(this),y=function(t){return function(r){var i,o,a,s,u,l,c,f,d;if(null!=r)for(o=100*r.loaded/r.total,a=0,l=e.length;a<l;a++)n=e[a],n.upload={progress:o,total:r.total,bytesSent:r.loaded};else{for(i=!0,o=100,s=0,c=e.length;s<c;s++)n=e[s],100===n.upload.progress&&n.upload.bytesSent===n.upload.total||(i=!1),n.upload.progress=o,n.upload.bytesSent=n.upload.total;if(i)return}for(d=[],u=0,f=e.length;u<f;u++)n=e[u],d.push(t.emit("uploadprogress",n,o,n.upload.bytesSent));return d}}(this),x.onload=function(n){return function(r){var i;if(e[0].status!==t.CANCELED&&4===x.readyState){if($=x.responseText,x.getResponseHeader("content-type")&&~x.getResponseHeader("content-type").indexOf("application/json"))try{$=JSON.parse($)}catch(o){r=o,$="Invalid JSON response from server."}return y(),200<=(i=x.status)&&i<300?n._finished(e,$,r):a()}}}(this),x.onerror=function(n){return function(){if(e[0].status!==t.CANCELED)return a()}}(this),v=null!=(O=x.upload)?O:x,v.onprogress=y,l={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"},this.options.headers&&r(l,this.options.headers);for(s in l)u=l[s],u&&x.setRequestHeader(s,u);if(o=new FormData,this.options.params){F=this.options.params;for(p in F)w=F[p],o.append(p,w)}for(C=0,D=e.length;C<D;C++)n=e[C],this.emit("sending",n,x,o);if(this.options.uploadMultiple&&this.emit("sendingmultiple",e,x,o),"FORM"===this.element.tagName)for(I=this.element.querySelectorAll("input, textarea, select, button"),S=0,A=I.length;S<A;S++)if(f=I[S],d=f.getAttribute("name"),h=f.getAttribute("type"),"SELECT"===f.tagName&&f.hasAttribute("multiple"))for(N=f.options,_=0,T=N.length;_<T;_++)g=N[_],g.selected&&o.append(d,g.value);else(!h||"checkbox"!==(P=h.toLowerCase())&&"radio"!==P||f.checked)&&o.append(d,f.value);for(c=M=0,j=e.length-1;0<=j?M<=j:M>=j;c=0<=j?++M:--M)o.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(x,o,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var i,o,a;for(o=0,a=e.length;o<a;o++)i=e[o],i.status=t.SUCCESS,this.emit("success",i,n,r),this.emit("complete",i);if(this.options.uploadMultiple&&(this.emit("successmultiple",e,n,r),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()},t.prototype._errorProcessing=function(e,n,r){var i,o,a;for(o=0,a=e.length;o<a;o++)i=e[o],i.status=t.ERROR,this.emit("error",i,n,r),this.emit("complete",i);if(this.options.uploadMultiple&&(this.emit("errormultiple",e,n,r),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()},t}(n),e.version="4.3.0",e.options={},e.optionsForElement=function(t){return t.getAttribute("id")?e.options[r(t.getAttribute("id"))]:void 0},e.instances=[],e.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},e.autoDiscover=!0,e.discover=function(){var t,n,r,i,o,a;for(document.querySelectorAll?r=document.querySelectorAll(".dropzone"):(r=[],t=function(e){var t,n,i,o;for(o=[],n=0,i=e.length;n<i;n++)t=e[n],/(^| )dropzone($| )/.test(t.className)?o.push(r.push(t)):o.push(void 0);return o},t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))),a=[],i=0,o=r.length;i<o;i++)n=r[i],e.optionsForElement(n)!==!1?a.push(new e(n)):a.push(void 0);return a},e.blacklistedBrowsers=[/opera.*Macintosh.*version\/12/i],e.isBrowserSupported=function(){var t,n,r,i,o;if(t=!0,window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(o=e.blacklistedBrowsers,r=0,i=o.length;r<i;r++)n=o[r],n.test(navigator.userAgent)&&(t=!1);else t=!1;else t=!1;return t},u=function(e,t){var n,r,i,o;for(o=[],r=0,i=e.length;r<i;r++)n=e[r],n!==t&&o.push(n);return o},r=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})},e.createElement=function(e){var t;return t=document.createElement("div"),t.innerHTML=e,t.childNodes[0]},e.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},e.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},e.getElements=function(e,t){var n,r,i,o,a,s,u,l;if(e instanceof Array){i=[];try{for(o=0,s=e.length;o<s;o++)r=e[o],i.push(this.getElement(r,t))}catch(c){n=c,i=null}}else if("string"==typeof e)for(i=[],l=document.querySelectorAll(e),a=0,u=l.length;a<u;a++)r=l[a],i.push(r);else null!=e.nodeType&&(i=[e]);if(null==i||!i.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return i},e.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},e.isValidFile=function(e,t){var n,r,i,o,a;if(!t)return!0;for(t=t.split(","),r=e.type,n=r.replace(/\/.*$/,""),o=0,a=t.length;o<a;o++)if(i=t[o],i=i.trim(),"."===i.charAt(0)){if(e.name.toLowerCase().indexOf(i.toLowerCase(),e.name.length-i.length)!==-1)return!0}else if(/\/\*$/.test(i)){if(n===i.replace(/\/.*$/,""))return!0}else if(r===i)return!0;return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each(function(){return new e(this,t)})}),"undefined"!=typeof t&&null!==t?t.exports=e:window.Dropzone=e,e.ADDED="added",e.QUEUED="queued",e.ACCEPTED=e.QUEUED,e.UPLOADING="uploading",e.PROCESSING=e.UPLOADING,e.CANCELED="canceled",e.ERROR="error",e.SUCCESS="success",o=function(e){var t,n,r,i,o,a,s,u,l,c;for(s=e.naturalWidth,a=e.naturalHeight,n=document.createElement("canvas"),n.width=1,n.height=a,r=n.getContext("2d"),r.drawImage(e,0,0),i=r.getImageData(0,0,1,a).data,c=0,o=a,u=a;u>c;)t=i[4*(u-1)+3],0===t?o=u:c=u,u=o+c>>1;return l=u/a,0===l?1:l},a=function(e,t,n,r,i,a,s,u,l,c){var f;return f=o(t),e.drawImage(t,n,r,i,a,s,u,l,c/f)},i=function(e,t){var n,r,i,o,a,s,u,l,c;if(i=!1,c=!0,r=e.document,l=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",u=r.addEventListener?"removeEventListener":"detachEvent",s=r.addEventListener?"":"on",o=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[u](s+n.type,o,!1),!i&&(i=!0)?t.call(e,n.type||n):void 0},a=function(){var e;try{l.doScroll("left")}catch(t){return e=t,void setTimeout(a,50)}return o("poll")},"complete"!==r.readyState){if(r.createEventObject&&l.doScroll){try{c=!e.frameElement}catch(f){}c&&a()}return r[n](s+"DOMContentLoaded",o,!1),r[n](s+"readystatechange",o,!1),e[n](s+"load",o,!1)}},e._autoDiscoverFunction=function(){if(e.autoDiscover)return e.discover()},i(window,e._autoDiscoverFunction)}).call(this)},{}],11:[function(e,t,n){(function(e){(function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||f.defaults,this.rules=d.normal,this.options.gfm&&(this.options.tables?this.rules=d.tables:this.rules=d.gfm)}function r(e,t){if(this.options=t||f.defaults,this.links=e,this.rules=h.normal,this.renderer=this.options.renderer||new i,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=h.breaks:this.rules=h.gfm:this.options.pedantic&&(this.rules=h.pedantic)}function i(e){this.options=e||{}}function o(e){this.tokens=[],this.token=null,this.options=e||f.defaults,this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options}function a(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function u(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}function l(){}function c(e){for(var t,n,r=1;r<arguments.length;r++){t=arguments[r];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}function f(t,n,r){if(r||"function"==typeof n){r||(r=n,n=null),n=c({},f.defaults,n||{});var i,s,u=n.highlight,l=0;try{i=e.lex(t,n)}catch(d){return r(d)}s=i.length;var h=function(e){if(e)return n.highlight=u,r(e);var t;try{t=o.parse(i,n)}catch(a){e=a}return n.highlight=u,e?r(e):r(null,t)};if(!u||u.length<3)return h();if(delete n.highlight,!s)return h();for(;l<i.length;l++)!function(e){return"code"!==e.type?--s||h():u(e.text,e.lang,function(t,n){return t?h(t):null==n||n===e.text?--s||h():(e.text=n,e.escaped=!0,void(--s||h()))})}(i[l])}else try{return n&&(n=c({},f.defaults,n)),o.parse(e.lex(t,n),n)}catch(d){if(d.message+="\nPlease report this to https://github.com/chjj/marked.",(n||f.defaults).silent)return"<p>An error occured:</p><pre>"+a(d.message+"",!0)+"</pre>";throw d}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:l,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:l,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:l,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=u(d.item,"gm")(/bull/g,d.bullet)(),d.list=u(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=u(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=u(d.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,d._tag)(),d.paragraph=u(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=c({},d),d.gfm=c({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=u(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=c({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=d,e.lex=function(t,n){var r=new e(n);return r.lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var r,i,o,a,s,u,l,c,f,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),u={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},c=0;c<u.align.length;c++)/^ *-+: *$/.test(u.align[c])?u.align[c]="right":/^ *:-+: *$/.test(u.align[c])?u.align[c]="center":/^ *:-+ *$/.test(u.align[c])?u.align[c]="left":u.align[c]=null;for(c=0;c<u.cells.length;c++)u.cells[c]=u.cells[c].split(/ *\| */);this.tokens.push(u)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),o=o[0].match(this.rules.item),r=!1,f=o.length,c=0;c<f;c++)u=o[c],l=u.length,u=u.replace(/^ *([*+-]|\d+\.) +/,""),~u.indexOf("\n ")&&(l-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+l+"}","gm"),"")),this.options.smartLists&&c!==f-1&&(s=d.bullet.exec(o[c+1])[0],a===s||a.length>1&&s.length>1||(e=o.slice(c+1).join("\n")+e,c=f-1)),i=r||/\n\n(?!\s*$)/.test(u),c!==f-1&&(r="\n"===u.charAt(u.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(u,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),u={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c<u.align.length;c++)/^ *-+: *$/.test(u.align[c])?u.align[c]="right":/^ *:-+: *$/.test(u.align[c])?u.align[c]="center":/^ *:-+ *$/.test(u.align[c])?u.align[c]="left":u.align[c]=null;for(c=0;c<u.cells.length;c++)u.cells[c]=u.cells[c].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(u)}else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var h={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:l,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:l,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};h._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,h._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,h.link=u(h.link)("inside",h._inside)("href",h._href)(),h.reflink=u(h.reflink)("inside",h._inside)(),h.normal=c({},h),h.pedantic=c({},h.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),h.gfm=c({},h.normal,{escape:u(h.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:u(h.text)("]|","~]|")("|","|https?://|")()}),h.breaks=c({},h.gfm,{br:u(h.br)("{2,}","*")(),text:u(h.gfm.text)("{2,}","*")()}),r.rules=h,r.output=function(e,t,n){var i=new r(t,n);return i.output(e)},r.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),"@"===i[2]?(n=":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1]),r=this.mangle("mailto:")+n):(n=a(i[1]),r=n),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(i[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):a(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(a(i[2],!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(a(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(i[0].length),n=a(i[1]),r=n,o+=this.renderer.link(r,null,n);return o},r.prototype.outputLink=function(e,t){var n=a(t.href),r=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,a(e[1]))},r.prototype.smartypants=function(e){
-return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},i.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+a(t,!0)+'">'+(n?e:a(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:a(e,!0))+"\n</code></pre>"},i.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},i.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},i.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"</"+n+">\n"},i.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},i.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},i.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},i.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},i.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"</"+n+">\n"},i.prototype.strong=function(e){return"<strong>"+e+"</strong>"},i.prototype.em=function(e){return"<em>"+e+"</em>"},i.prototype.codespan=function(e){return"<code>"+e+"</code>"},i.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},i.prototype.del=function(e){return"<del>"+e+"</del>"},i.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(s(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(i){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var o='<a href="'+e+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>"},i.prototype.image=function(e,t,n){var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},i.prototype.text=function(e){return e},o.parse=function(e,t,n){var r=new o(t,n);return r.parse(e)},o.prototype.parse=function(e){this.inline=new r(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i,o="",a="";for(n="",e=0;e<this.token.header.length;e++)r={header:!0,align:this.token.align[e]},n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});a+=this.renderer.tablerow(n)}return this.renderer.table(o,a);case"blockquote_start":for(var a="";"blockquote_end"!==this.next().type;)a+=this.tok();return this.renderer.blockquote(a);case"list_start":for(var a="",s=this.token.ordered;"list_end"!==this.next().type;)a+=this.tok();return this.renderer.list(a,s);case"list_item_start":for(var a="";"list_item_end"!==this.next().type;)a+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(a);case"loose_item_start":for(var a="";"list_item_end"!==this.next().type;)a+=this.tok();return this.renderer.listitem(a);case"html":var u=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(u);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},l.exec=l,f.options=f.setOptions=function(e){return c(f.defaults,e),f},f.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new i,xhtml:!1},f.Parser=o,f.parser=o.parse,f.Renderer=i,f.Lexer=e,f.lexer=e.lex,f.InlineLexer=r,f.inlineLexer=r.output,f.parse=f,"undefined"!=typeof t&&"object"==typeof n?t.exports=f:"function"==typeof define&&define.amd?define(function(){return f}):this.marked=f}).call(function(){return this||("undefined"!=typeof window?window:e)}())}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(e,t,n){!function(e,r){"object"==typeof n&&"undefined"!=typeof t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.moment=r()}(this,function(){"use strict";function n(){return mr.apply(null,arguments)}function r(e){mr=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){var t;for(t in e)return!1;return!0}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return $t(e,t,n,r,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function h(e){return null==e._pf&&(e._pf=d()),e._pf}function p(e){if(null==e._isValid){var t=h(e),n=gr.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function m(e){var t=f(NaN);return null!=e?c(h(t),e):h(t).userInvalidated=!0,t}function g(e){return void 0===e}function v(e,t){var n,r,i;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=h(t)),g(t._locale)||(e._locale=t._locale),vr.length>0)for(n in vr)r=vr[n],i=t[r],g(i)||(e[r]=i);return e}function $(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),$r===!1&&($r=!0,n.updateOffset(this),$r=!1)}function y(e){return e instanceof $||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&w(e[r])!==w(t[r]))&&a++;return a+o}function k(e){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var r=!0;return c(function(){return null!=n.deprecationHandler&&n.deprecationHandler(null,e),r&&(k(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),r=!1),t.apply(this,arguments)},t)}function S(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),yr[e]||(k(t),yr[e]=!0)}function _(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)t=e[n],_(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function D(e,t){var n,r=c({},e);for(n in t)l(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},c(r[n],e[n]),c(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&o(e[n])&&(r[n]=c({},r[n]));return r}function A(e){null!=e&&this.set(e)}function T(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return _(r)?r.call(t,n):r}function M(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function O(){return this._invalidDate}function F(e){return this._ordinal.replace("%d",e)}function I(e,t,n,r){var i=this._relativeTime[n];return _(i)?i(e,t,n,r):i.replace(/%d/i,e)}function N(e,t){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(t):n.replace(/%s/i,t)}function P(e,t){var n=e.toLowerCase();Dr[n]=Dr[n+"s"]=Dr[t]=e}function j(e){return"string"==typeof e?Dr[e]||Dr[e.toLowerCase()]:void 0}function L(e){var t,n,r={};for(n in e)l(e,n)&&(t=j(n),t&&(r[t]=e[n]));return r}function R(e,t){Ar[e]=t}function U(e){var t=[];for(var n in e)t.push({unit:n,priority:Ar[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function V(e,t){return function(r){return null!=r?(H(this,e,r),n.updateOffset(this,t),this):z(this,e)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function H(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function q(e){return e=j(e),_(this[e])?this[e]():this}function Y(e,t){if("object"==typeof e){e=L(e);for(var n=U(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=j(e),_(this[e]))return this[e](t);return this}function W(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function B(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Fr[e]=i),t&&(Fr[t[0]]=function(){return W(i.apply(this,arguments),t[1],t[2])}),n&&(Fr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Z(e){var t,n,r=e.match(Tr);for(t=0,n=r.length;t<n;t++)Fr[r[t]]?r[t]=Fr[r[t]]:r[t]=G(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=r[i]instanceof Function?r[i].call(t,e):r[i];return o}}function Q(e,t){return e.isValid()?(t=J(t,e.localeData()),Or[t]=Or[t]||Z(t),Or[t](e)):e.localeData().invalidDate()}function J(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Mr.lastIndex=0;r>=0&&Mr.test(e);)e=e.replace(Mr,n),Mr.lastIndex=0,r-=1;return e}function X(e,t,n){Jr[e]=_(t)?t:function(e,r){return e&&n?n:t}}function K(e,t){return l(Jr,e)?Jr[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(r=function(e,n){n[t]=w(e)}),n=0;n<e.length;n++)Xr[e[n]]=r}function re(e,t){ne(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ie(e,t,n){null!=t&&l(Xr,e)&&Xr[e](t,n._a,n,e)}function oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ae(e,t){return i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ui).test(t)?"format":"standalone"][e.month()]}function se(e,t){return i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ui.test(t)?"format":"standalone"][e.month()]}function ue(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=wr.call(this._shortMonthsParse,a),i!==-1?i:null):(i=wr.call(this._longMonthsParse,a),i!==-1?i:null):"MMM"===t?(i=wr.call(this._shortMonthsParse,a),i!==-1?i:(i=wr.call(this._longMonthsParse,a),i!==-1?i:null)):(i=wr.call(this._longMonthsParse,a),i!==-1?i:(i=wr.call(this._shortMonthsParse,a),i!==-1?i:null))}function le(e,t,n){var r,i,o;if(this._monthsParseExact)return ue.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function fe(e){return null!=e?(ce(this,e),n.updateOffset(this,!0),this):z(this,"Month")}function de(){return oe(this.year(),this.month())}function he(e){return this._monthsParseExact?(l(this,"_monthsRegex")||me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=fi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(l(this,"_monthsRegex")||me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=di),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function me(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=te(r[t]),i[t]=te(i[t]);for(t=0;t<24;t++)o[t]=te(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ge(e){return ve(e)?366:365}function ve(e){return e%4===0&&e%100!==0||e%400===0}function $e(){return ve(this.year())}function ye(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function be(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var r=7+t-n,i=(7+be(e,0,r).getUTCDay()-t)%7;return-i+r-1}function xe(e,t,n,r,i){var o,a,s=(7+n-r)%7,u=we(e,r,i),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=ge(o)+l):l>ge(e)?(o=e+1,a=l-ge(e)):(o=e,a=l),{year:o,dayOfYear:a}}function ke(e,t,n){var r,i,o=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Ce(i,t,n)):a>Ce(e.year(),t,n)?(r=a-Ce(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ce(e,t,n){var r=we(e,t,n),i=we(e+1,t,n);return(ge(e)-r+i)/7}function Se(e){return ke(e,this._week.dow,this._week.doy).week}function _e(){return this._week.dow}function Ee(){return this._week.doy}function De(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ae(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Te(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Me(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Oe(e,t){return i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function Fe(e){return this._weekdaysShort[e.day()]}function Ie(e){return this._weekdaysMin[e.day()]}function Ne(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=wr.call(this._weekdaysParse,a),i!==-1?i:null):"ddd"===t?(i=wr.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=wr.call(this._minWeekdaysParse,a),i!==-1?i:null):"dddd"===t?(i=wr.call(this._weekdaysParse,a),i!==-1?i:(i=wr.call(this._shortWeekdaysParse,a),i!==-1?i:(i=wr.call(this._minWeekdaysParse,a),i!==-1?i:null))):"ddd"===t?(i=wr.call(this._shortWeekdaysParse,a),i!==-1?i:(i=wr.call(this._weekdaysParse,a),i!==-1?i:(i=wr.call(this._minWeekdaysParse,a),i!==-1?i:null))):(i=wr.call(this._minWeekdaysParse,a),i!==-1?i:(i=wr.call(this._weekdaysParse,a),i!==-1?i:(i=wr.call(this._shortWeekdaysParse,a),i!==-1?i:null)))}function Pe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ne.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Te(e,this.localeData()),this.add(e-t,"d")):t}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Re(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ue(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=$i),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ve(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ze(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=bi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function He(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=te(s[t]),u[t]=te(u[t]),l[t]=te(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ye(){return this.hours()||24}function We(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Be(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,r,i,o=0;o<e.length;){for(i=Qe(e[o]).split("-"),t=i.length,n=Qe(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=Xe(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return null}function Xe(n){var r=null;if(!Si[n]&&"undefined"!=typeof t&&t&&t.exports)try{r=wi._abbr,e("./locale/"+n),Ke(r)}catch(i){}return Si[n]}function Ke(e,t){var n;return e&&(n=g(t)?nt(e):et(e,t),n&&(wi=n)),wi._abbr}function et(e,t){if(null!==t){var n=Ci;return t.abbr=e,null!=Si[e]?(S("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."),n=Si[e]._config):null!=t.parentLocale&&(null!=Si[t.parentLocale]?n=Si[t.parentLocale]._config:S("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),Si[e]=new A(D(n,t)),Ke(e),Si[e]}return delete Si[e],null}function tt(e,t){if(null!=t){var n,r=Ci;null!=Si[e]&&(r=Si[e]._config),t=D(r,t),n=new A(t),n.parentLocale=Si[e],Si[e]=n,Ke(e)}else null!=Si[e]&&(null!=Si[e].parentLocale?Si[e]=Si[e].parentLocale:null!=Si[e]&&delete Si[e]);return Si[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return wi;if(!i(e)){if(t=Xe(e))return t;e=[e]}return Je(e)}function rt(){return br(Si)}function it(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[ei]<0||n[ei]>11?ei:n[ti]<1||n[ti]>oe(n[Kr],n[ei])?ti:n[ni]<0||n[ni]>24||24===n[ni]&&(0!==n[ri]||0!==n[ii]||0!==n[oi])?ni:n[ri]<0||n[ri]>59?ri:n[ii]<0||n[ii]>59?ii:n[oi]<0||n[oi]>999?oi:-1,h(e)._overflowDayOfYear&&(t<Kr||t>ti)&&(t=ti),h(e)._overflowWeeks&&t===-1&&(t=ai),h(e)._overflowWeekday&&t===-1&&(t=si),h(e).overflow=t),e}function ot(e){var t,n,r,i,o,a,s=e._i,u=_i.exec(s)||Ei.exec(s);if(u){for(h(e).iso=!0,t=0,n=Ai.length;t<n;t++)if(Ai[t][1].exec(u[1])){i=Ai[t][0],r=Ai[t][2]!==!1;break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Ti.length;t<n;t++)if(Ti[t][1].exec(u[3])){o=(u[2]||" ")+Ti[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Di.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),ft(e)}else e._isValid=!1}function at(e){var t=Mi.exec(e._i);return null!==t?void(e._d=new Date((+t[1]))):(ot(e),void(e._isValid===!1&&(delete e._isValid,n.createFromInputFallback(e))))}function st(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function lt(e){var t,n,r,i,o=[];if(!e._d){for(r=ut(e),e._w&&null==e._a[ti]&&null==e._a[ei]&&ct(e),e._dayOfYear&&(i=st(e._a[Kr],r[Kr]),e._dayOfYear>ge(i)&&(h(e)._overflowDayOfYear=!0),n=be(i,0,e._dayOfYear),e._a[ei]=n.getUTCMonth(),e._a[ti]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ni]&&0===e._a[ri]&&0===e._a[ii]&&0===e._a[oi]&&(e._nextDay=!0,e._a[ni]=0),e._d=(e._useUTC?be:ye).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ni]=24)}}function ct(e){var t,n,r,i,o,a,s,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,a=4,n=st(t.GG,e._a[Kr],ke(yt(),1,4).year),r=st(t.W,1),i=st(t.E,1),(i<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,n=st(t.gg,e._a[Kr],ke(yt(),o,a).year),r=st(t.w,1),null!=t.d?(i=t.d,(i<0||i>6)&&(u=!0)):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>Ce(n,o,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=xe(n,r,i,o,a),e._a[Kr]=s.year,e._dayOfYear=s.dayOfYear)}function ft(e){if(e._f===n.ISO_8601)return void ot(e);e._a=[],h(e).empty=!0;var t,r,i,o,a,s=""+e._i,u=s.length,l=0;for(i=J(e._f,e._locale).match(Tr)||[],t=0;t<i.length;t++)o=i[t],r=(s.match(K(o,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Fr[o]?(r?h(e).empty=!1:h(e).unusedTokens.push(o),ie(o,r,e)):e._strict&&!r&&h(e).unusedTokens.push(o);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[ni]<=12&&h(e).bigHour===!0&&e._a[ni]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ni]=dt(e._locale,e._a[ni],e._meridiem),lt(e),it(e)}function dt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ht(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],ft(t),p(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));c(e,n||t)}function pt(e){if(!e._d){var t=L(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function mt(e){var t=new $(it(gt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function gt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new $(it(t)):(i(n)?ht(e):s(t)?e._d=t:n?ft(e):vt(e),p(e)||(e._d=null),e))}function vt(e){var t=e._i;void 0===t?e._d=new Date(n.now()):s(t)?e._d=new Date(t.valueOf()):"string"==typeof t?at(e):i(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),lt(e)):"object"==typeof t?pt(e):"number"==typeof t?e._d=new Date(t):n.createFromInputFallback(e)}function $t(e,t,n,r,s){var u={};return"boolean"==typeof n&&(r=n,n=void 0),(o(e)&&a(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,mt(u)}function yt(e,t,n,r){return $t(e,t,n,r,!1)}function bt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return yt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function wt(){var e=[].slice.call(arguments,0);return bt("isBefore",e)}function xt(){var e=[].slice.call(arguments,0);return bt("isAfter",e)}function kt(e){var t=L(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=nt(),this._bubble()}function Ct(e){return e instanceof kt}function St(e,t){B(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+W(~~(e/60),2)+t+W(~~e%60,2)})}function _t(e,t){var n=(t||"").match(e)||[],r=n[n.length-1]||[],i=(r+"").match(Ni)||["-",0,0],o=+(60*i[1])+w(i[2]);return"+"===i[0]?o:-o}function Et(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(y(e)||s(e)?e.valueOf():yt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):yt(e).local()}function Dt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function At(e,t){var r,i=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=_t(Gr,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(r=Dt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Wt(this,Ut(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Dt(this):null!=e?this:NaN}function Tt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Mt(e){return this.utcOffset(0,e)}function Ot(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dt(this),"m")),this}function Ft(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(_t(Br,this._i)),this}function It(e){return!!this.isValid()&&(e=e?yt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Nt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pt(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),e=gt(e),e._a){var t=e._isUTC?f(e._a):yt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function jt(){return!!this.isValid()&&!this._isUTC}function Lt(){return!!this.isValid()&&this._isUTC}function Rt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ut(e,t){var n,r,i,o=e,a=null;return Ct(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(a=Pi.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:w(a[ti])*n,h:w(a[ni])*n,m:w(a[ri])*n,s:w(a[ii])*n,ms:w(a[oi])*n}):(a=ji.exec(e))?(n="-"===a[1]?-1:1,o={y:Vt(a[2],n),M:Vt(a[3],n),w:Vt(a[4],n),d:Vt(a[5],n),h:Vt(a[6],n),m:Vt(a[7],n),s:Vt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ht(yt(o.from),yt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new kt(o),Ct(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ht(e,t){var n;return e.isValid()&&t.isValid()?(t=Et(t,e),e.isBefore(t)?n=zt(e,t):(n=zt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function qt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Yt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Ut(n,r),Wt(this,i,e),this}}function Wt(e,t,r,i){var o=t._milliseconds,a=qt(t._days),s=qt(t._months);e.isValid()&&(i=null==i||i,o&&e._d.setTime(e._d.valueOf()+o*r),a&&H(e,"Date",z(e,"Date")+a*r),s&&ce(e,z(e,"Month")+s*r),i&&n.updateOffset(e,a||s))}function Bt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gt(e,t){var r=e||yt(),i=Et(r,this).startOf("day"),o=n.calendarFormat(this,i)||"sameElse",a=t&&(_(t[o])?t[o].call(this,r):t[o]);return this.format(a||this.localeData().calendar(o,this,yt(r)))}function Zt(){return new $(this)}function Qt(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=j(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Jt(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=j(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Xt(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Kt(e,t){var n,r=y(e)?e:yt(e);return!(!this.isValid()||!r.isValid())&&(t=j(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function en(e,t){return this.isSame(e,t)||this.isAfter(e,t);
-}function tn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function nn(e,t,n){var r,i,o,a;return this.isValid()?(r=Et(e,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),t=j(t),"year"===t||"month"===t||"quarter"===t?(a=rn(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-r,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?a:b(a)):NaN):NaN}function rn(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function on(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function an(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?_(Date.prototype.toISOString)?this.toDate().toISOString():Q(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Q(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function sn(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=Q(this,e);return this.localeData().postformat(t)}function un(e,t){return this.isValid()&&(y(e)&&e.isValid()||yt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ln(e){return this.from(yt(),e)}function cn(e,t){return this.isValid()&&(y(e)&&e.isValid()||yt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.to(yt(),e)}function dn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function hn(){return this._locale}function pn(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function mn(e){return e=j(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function gn(){return this._d.valueOf()-6e4*(this._offset||0)}function vn(){return Math.floor(this.valueOf()/1e3)}function $n(){return new Date(this.valueOf())}function yn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function wn(){return this.isValid()?this.toISOString():null}function xn(){return p(this)}function kn(){return c({},h(this))}function Cn(){return h(this).overflow}function Sn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _n(e,t){B(0,[e,e.length],0,t)}function En(e){return Mn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Dn(e){return Mn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function An(){return Ce(this.year(),1,4)}function Tn(){var e=this.localeData()._week;return Ce(this.year(),e.dow,e.doy)}function Mn(e,t,n,r,i){var o;return null==e?ke(this,r,i).year:(o=Ce(e,r,i),t>o&&(t=o),On.call(this,e,t,n,r,i))}function On(e,t,n,r,i){var o=xe(e,t,n,r,i),a=be(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Fn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function In(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Nn(e,t){t[oi]=w(1e3*("0."+e))}function Pn(){return this._isUTC?"UTC":""}function jn(){return this._isUTC?"Coordinated Universal Time":""}function Ln(e){return yt(1e3*e)}function Rn(){return yt.apply(null,arguments).parseZone()}function Un(e){return e}function Vn(e,t,n,r){var i=nt(),o=f().set(r,t);return i[n](o,e)}function zn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Vn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Vn(e,r,n,"month");return i}function Hn(e,t,n,r){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var i=nt(),o=e?i._week.dow:0;if(null!=n)return Vn(t,(n+o)%7,r,"day");var a,s=[];for(a=0;a<7;a++)s[a]=Vn(t,(a+o)%7,r,"day");return s}function qn(e,t){return zn(e,t,"months")}function Yn(e,t){return zn(e,t,"monthsShort")}function Wn(e,t,n){return Hn(e,t,n,"weekdays")}function Bn(e,t,n){return Hn(e,t,n,"weekdaysShort")}function Gn(e,t,n){return Hn(e,t,n,"weekdaysMin")}function Zn(){var e=this._data;return this._milliseconds=Zi(this._milliseconds),this._days=Zi(this._days),this._months=Zi(this._months),e.milliseconds=Zi(e.milliseconds),e.seconds=Zi(e.seconds),e.minutes=Zi(e.minutes),e.hours=Zi(e.hours),e.months=Zi(e.months),e.years=Zi(e.years),this}function Qn(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Jn(e,t){return Qn(this,e,t,1)}function Xn(e,t){return Qn(this,e,t,-1)}function Kn(e){return e<0?Math.floor(e):Math.ceil(e)}function er(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Kn(nr(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=b(o/1e3),u.seconds=e%60,t=b(e/60),u.minutes=t%60,n=b(t/60),u.hours=n%24,a+=b(n/24),i=b(tr(a)),s+=i,a-=Kn(nr(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function tr(e){return 4800*e/146097}function nr(e){return 146097*e/4800}function rr(e){var t,n,r=this._milliseconds;if(e=j(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+tr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ir(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)}function or(e){return function(){return this.as(e)}}function ar(e){return e=j(e),this[e+"s"]()}function sr(e){return function(){return this._data[e]}}function ur(){return b(this.days()/7)}function lr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function cr(e,t,n){var r=Ut(e).abs(),i=fo(r.as("s")),o=fo(r.as("m")),a=fo(r.as("h")),s=fo(r.as("d")),u=fo(r.as("M")),l=fo(r.as("y")),c=i<ho.s&&["s",i]||o<=1&&["m"]||o<ho.m&&["mm",o]||a<=1&&["h"]||a<ho.h&&["hh",a]||s<=1&&["d"]||s<ho.d&&["dd",s]||u<=1&&["M"]||u<ho.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,lr.apply(null,c)}function fr(e){return void 0===e?fo:"function"==typeof e&&(fo=e,!0)}function dr(e,t){return void 0!==ho[e]&&(void 0===t?ho[e]:(ho[e]=t,!0))}function hr(e){var t=this.localeData(),n=cr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function pr(){var e,t,n,r=po(this._milliseconds)/1e3,i=po(this._days),o=po(this._months);e=b(r/60),t=b(e/60),r%=60,e%=60,n=b(o/12),o%=12;var a=n,s=o,u=i,l=t,c=e,f=r,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||f?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(f?f+"S":""):"P0D"}var mr,gr;gr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var vr=n.momentProperties=[],$r=!1,yr={};n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var br;br=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var wr,xr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},kr={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"},Cr="Invalid date",Sr="%d",_r=/\d{1,2}/,Er={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"},Dr={},Ar={},Tr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Mr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Or={},Fr={},Ir=/\d/,Nr=/\d\d/,Pr=/\d{3}/,jr=/\d{4}/,Lr=/[+-]?\d{6}/,Rr=/\d\d?/,Ur=/\d\d\d\d?/,Vr=/\d\d\d\d\d\d?/,zr=/\d{1,3}/,Hr=/\d{1,4}/,qr=/[+-]?\d{1,6}/,Yr=/\d+/,Wr=/[+-]?\d+/,Br=/Z|[+-]\d\d:?\d\d/gi,Gr=/Z|[+-]\d\d(?::?\d\d)?/gi,Zr=/[+-]?\d+(\.\d{1,3})?/,Qr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Jr={},Xr={},Kr=0,ei=1,ti=2,ni=3,ri=4,ii=5,oi=6,ai=7,si=8;wr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),B("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),R("month",8),X("M",Rr),X("MM",Rr,Nr),X("MMM",function(e,t){return t.monthsShortRegex(e)}),X("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[ei]=w(e)-1}),ne(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ei]=i:h(n).invalidMonth=e});var ui=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,li="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ci="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fi=Qr,di=Qr;B("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),P("year","y"),R("year",1),X("Y",Wr),X("YY",Rr,Nr),X("YYYY",Hr,jr),X("YYYYY",qr,Lr),X("YYYYYY",qr,Lr),ne(["YYYYY","YYYYYY"],Kr),ne("YYYY",function(e,t){t[Kr]=2===e.length?n.parseTwoDigitYear(e):w(e)}),ne("YY",function(e,t){t[Kr]=n.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[Kr]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var hi=V("FullYear",!0);B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),R("week",5),R("isoWeek",5),X("w",Rr),X("ww",Rr,Nr),X("W",Rr),X("WW",Rr,Nr),re(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=w(e)});var pi={dow:0,doy:6};B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),X("d",Rr),X("e",Rr),X("E",Rr),X("dd",function(e,t){return t.weekdaysMinRegex(e)}),X("ddd",function(e,t){return t.weekdaysShortRegex(e)}),X("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),re(["d","e","E"],function(e,t,n,r){t[r]=w(e)});var mi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),vi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$i=Qr,yi=Qr,bi=Qr;B("H",["HH",2],0,"hour"),B("h",["hh",2],0,qe),B("k",["kk",2],0,Ye),B("hmm",0,0,function(){return""+qe.apply(this)+W(this.minutes(),2)}),B("hmmss",0,0,function(){return""+qe.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),We("a",!0),We("A",!1),P("hour","h"),R("hour",13),X("a",Be),X("A",Be),X("H",Rr),X("h",Rr),X("HH",Rr,Nr),X("hh",Rr,Nr),X("hmm",Ur),X("hmmss",Vr),X("Hmm",Ur),X("Hmmss",Vr),ne(["H","HH"],ni),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[ni]=w(e),h(n).bigHour=!0}),ne("hmm",function(e,t,n){var r=e.length-2;t[ni]=w(e.substr(0,r)),t[ri]=w(e.substr(r)),h(n).bigHour=!0}),ne("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ni]=w(e.substr(0,r)),t[ri]=w(e.substr(r,2)),t[ii]=w(e.substr(i)),h(n).bigHour=!0}),ne("Hmm",function(e,t,n){var r=e.length-2;t[ni]=w(e.substr(0,r)),t[ri]=w(e.substr(r))}),ne("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ni]=w(e.substr(0,r)),t[ri]=w(e.substr(r,2)),t[ii]=w(e.substr(i))});var wi,xi=/[ap]\.?m?\.?/i,ki=V("Hours",!0),Ci={calendar:xr,longDateFormat:kr,invalidDate:Cr,ordinal:Sr,ordinalParse:_r,relativeTime:Er,months:li,monthsShort:ci,week:pi,weekdays:mi,weekdaysMin:vi,weekdaysShort:gi,meridiemParse:xi},Si={},_i=/^\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)?)?/,Ei=/^\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)?)?/,Di=/Z|[+-]\d\d(?::?\d\d)?/,Ai=[["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}/]],Ti=[["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/]],Mi=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=C("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){};var Oi=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Fi=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),Ii=function(){return Date.now?Date.now():+new Date};St("Z",":"),St("ZZ",""),X("Z",Gr),X("ZZ",Gr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=_t(Gr,e)});var Ni=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Pi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,ji=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ut.fn=kt.prototype;var Li=Yt(1,"add"),Ri=Yt(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ui=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),_n("gggg","weekYear"),_n("ggggg","weekYear"),_n("GGGG","isoWeekYear"),_n("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),X("G",Wr),X("g",Wr),X("GG",Rr,Nr),X("gg",Rr,Nr),X("GGGG",Hr,jr),X("gggg",Hr,jr),X("GGGGG",qr,Lr),X("ggggg",qr,Lr),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=w(e)}),re(["gg","GG"],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)}),B("Q",0,"Qo","quarter"),P("quarter","Q"),R("quarter",7),X("Q",Ir),ne("Q",function(e,t){t[ei]=3*(w(e)-1)}),B("D",["DD",2],"Do","date"),P("date","D"),R("date",9),X("D",Rr),X("DD",Rr,Nr),X("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ne(["D","DD"],ti),ne("Do",function(e,t){t[ti]=w(e.match(Rr)[0],10)});var Vi=V("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),R("dayOfYear",4),X("DDD",zr),X("DDDD",Pr),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),B("m",["mm",2],0,"minute"),P("minute","m"),R("minute",14),X("m",Rr),X("mm",Rr,Nr),ne(["m","mm"],ri);var zi=V("Minutes",!1);B("s",["ss",2],0,"second"),P("second","s"),R("second",15),X("s",Rr),X("ss",Rr,Nr),ne(["s","ss"],ii);var Hi=V("Seconds",!1);B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),R("millisecond",16),X("S",zr,Ir),X("SS",zr,Nr),X("SSS",zr,Pr);var qi;for(qi="SSSS";qi.length<=9;qi+="S")X(qi,Yr);for(qi="S";qi.length<=9;qi+="S")ne(qi,Nn);var Yi=V("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var Wi=$.prototype;Wi.add=Li,Wi.calendar=Gt,Wi.clone=Zt,Wi.diff=nn,Wi.endOf=mn,Wi.format=sn,Wi.from=un,Wi.fromNow=ln,Wi.to=cn,Wi.toNow=fn,Wi.get=q,Wi.invalidAt=Cn,Wi.isAfter=Qt,Wi.isBefore=Jt,Wi.isBetween=Xt,Wi.isSame=Kt,Wi.isSameOrAfter=en,Wi.isSameOrBefore=tn,Wi.isValid=xn,Wi.lang=Ui,Wi.locale=dn,Wi.localeData=hn,Wi.max=Fi,Wi.min=Oi,Wi.parsingFlags=kn,Wi.set=Y,Wi.startOf=pn,Wi.subtract=Ri,Wi.toArray=yn,Wi.toObject=bn,Wi.toDate=$n,Wi.toISOString=an,Wi.toJSON=wn,Wi.toString=on,Wi.unix=vn,Wi.valueOf=gn,Wi.creationData=Sn,Wi.year=hi,Wi.isLeapYear=$e,Wi.weekYear=En,Wi.isoWeekYear=Dn,Wi.quarter=Wi.quarters=Fn,Wi.month=fe,Wi.daysInMonth=de,Wi.week=Wi.weeks=De,Wi.isoWeek=Wi.isoWeeks=Ae,Wi.weeksInYear=Tn,Wi.isoWeeksInYear=An,Wi.date=Vi,Wi.day=Wi.days=je,Wi.weekday=Le,Wi.isoWeekday=Re,Wi.dayOfYear=In,Wi.hour=Wi.hours=ki,Wi.minute=Wi.minutes=zi,Wi.second=Wi.seconds=Hi,Wi.millisecond=Wi.milliseconds=Yi,Wi.utcOffset=At,Wi.utc=Mt,Wi.local=Ot,Wi.parseZone=Ft,Wi.hasAlignedHourOffset=It,Wi.isDST=Nt,Wi.isLocal=jt,Wi.isUtcOffset=Lt,Wi.isUtc=Rt,Wi.isUTC=Rt,Wi.zoneAbbr=Pn,Wi.zoneName=jn,Wi.dates=C("dates accessor is deprecated. Use date instead.",Vi),Wi.months=C("months accessor is deprecated. Use month instead",fe),Wi.years=C("years accessor is deprecated. Use year instead",hi),Wi.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Tt),Wi.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pt);var Bi=Wi,Gi=A.prototype;Gi.calendar=T,Gi.longDateFormat=M,Gi.invalidDate=O,Gi.ordinal=F,Gi.preparse=Un,Gi.postformat=Un,Gi.relativeTime=I,Gi.pastFuture=N,Gi.set=E,Gi.months=ae,Gi.monthsShort=se,Gi.monthsParse=le,Gi.monthsRegex=pe,Gi.monthsShortRegex=he,Gi.week=Se,Gi.firstDayOfYear=Ee,Gi.firstDayOfWeek=_e,Gi.weekdays=Oe,Gi.weekdaysMin=Ie,Gi.weekdaysShort=Fe,Gi.weekdaysParse=Pe,Gi.weekdaysRegex=Ue,Gi.weekdaysShortRegex=Ve,Gi.weekdaysMinRegex=ze,Gi.isPM=Ge,Gi.meridiem=Ze,Ke("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),n.lang=C("moment.lang is deprecated. Use moment.locale instead.",Ke),n.langData=C("moment.langData is deprecated. Use moment.localeData instead.",nt);var Zi=Math.abs,Qi=or("ms"),Ji=or("s"),Xi=or("m"),Ki=or("h"),eo=or("d"),to=or("w"),no=or("M"),ro=or("y"),io=sr("milliseconds"),oo=sr("seconds"),ao=sr("minutes"),so=sr("hours"),uo=sr("days"),lo=sr("months"),co=sr("years"),fo=Math.round,ho={s:45,m:45,h:22,d:26,M:11},po=Math.abs,mo=kt.prototype;mo.abs=Zn,mo.add=Jn,mo.subtract=Xn,mo.as=rr,mo.asMilliseconds=Qi,mo.asSeconds=Ji,mo.asMinutes=Xi,mo.asHours=Ki,mo.asDays=eo,mo.asWeeks=to,mo.asMonths=no,mo.asYears=ro,mo.valueOf=ir,mo._bubble=er,mo.get=ar,mo.milliseconds=io,mo.seconds=oo,mo.minutes=ao,mo.hours=so,mo.days=uo,mo.weeks=ur,mo.months=lo,mo.years=co,mo.humanize=hr,mo.toISOString=pr,mo.toString=pr,mo.toJSON=pr,mo.locale=dn,mo.localeData=hn,mo.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pr),mo.lang=Ui,B("X",0,0,"unix"),B("x",0,0,"valueOf"),X("x",Wr),X("X",Zr),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(w(e))}),n.version="2.14.1",r(yt),n.fn=Bi,n.min=wt,n.max=xt,n.now=Ii,n.utc=f,n.unix=Ln,n.months=qn,n.isDate=s,n.locale=Ke,n.invalid=m,n.duration=Ut,n.isMoment=y,n.weekdays=Wn,n.parseZone=Rn,n.localeData=nt,n.isDuration=Ct,n.monthsShort=Yn,n.weekdaysMin=Gn,n.defineLocale=et,n.updateLocale=tt,n.locales=rt,n.weekdaysShort=Bn,n.normalizeUnits=j,n.relativeTimeRounding=fr,n.relativeTimeThreshold=dr,n.calendarFormat=Bt,n.prototype=Bi;var go=n;return go})},{}],13:[function(e,t,n){!function(e,n){"use strict";var r,i,o,a=e,s=a.document,u=a.navigator,l=a.setTimeout,c=a.clearTimeout,f=a.setInterval,d=a.clearInterval,h=a.getComputedStyle,p=a.encodeURIComponent,m=a.ActiveXObject,g=a.Error,v=a.Number.parseInt||a.parseInt,$=a.Number.parseFloat||a.parseFloat,y=a.Number.isNaN||a.isNaN,b=a.Date.now,w=a.Object.keys,x=a.Object.defineProperty,k=a.Object.prototype.hasOwnProperty,C=a.Array.prototype.slice,S=function(){var e=function(e){return e};if("function"==typeof a.wrap&&"function"==typeof a.unwrap)try{var t=s.createElement("div"),n=a.unwrap(t);1===t.nodeType&&n&&1===n.nodeType&&(e=a.unwrap)}catch(r){}return e}(),_=function(e){return C.call(e,0)},E=function(){var e,t,r,i,o,a,s=_(arguments),u=s[0]||{};for(e=1,t=s.length;e<t;e++)if(null!=(r=s[e]))for(i in r)k.call(r,i)&&(o=u[i],a=r[i],u!==a&&a!==n&&(u[i]=a));return u},D=function(e){var t,n,r,i;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if("number"==typeof e.length)for(t=[],n=0,r=e.length;n<r;n++)k.call(e,n)&&(t[n]=D(e[n]));else{t={};for(i in e)k.call(e,i)&&(t[i]=D(e[i]))}return t},A=function(e,t){for(var n={},r=0,i=t.length;r<i;r++)t[r]in e&&(n[t[r]]=e[t[r]]);return n},T=function(e,t){var n={};for(var r in e)t.indexOf(r)===-1&&(n[r]=e[r]);return n},M=function(e){if(e)for(var t in e)k.call(e,t)&&delete e[t];return e},O=function(e,t){if(e&&1===e.nodeType&&e.ownerDocument&&t&&(1===t.nodeType&&t.ownerDocument&&t.ownerDocument===e.ownerDocument||9===t.nodeType&&!t.ownerDocument&&t===e.ownerDocument))do{if(e===t)return!0;e=e.parentNode}while(e);return!1},F=function(e){var t;return"string"==typeof e&&e&&(t=e.split("#")[0].split("?")[0],t=e.slice(0,e.lastIndexOf("/")+1)),t},I=function(e){var t,n;return"string"==typeof e&&e&&(n=e.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),n&&n[1]?t=n[1]:(n=e.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),n&&n[1]&&(t=n[1]))),t},N=function(){var e,t;try{throw new g}catch(n){t=n}return t&&(e=t.sourceURL||t.fileName||I(t.stack)),e},P=function(){var e,t,r;if(s.currentScript&&(e=s.currentScript.src))return e;if(t=s.getElementsByTagName("script"),1===t.length)return t[0].src||n;if("readyState"in t[0])for(r=t.length;r--;)if("interactive"===t[r].readyState&&(e=t[r].src))return e;return"loading"===s.readyState&&(e=t[t.length-1].src)?e:(e=N())?e:n},j=function(){var e,t,r,i=s.getElementsByTagName("script");for(e=i.length;e--;){if(!(r=i[e].src)){t=null;break}if(r=F(r),null==t)t=r;else if(t!==r){t=null;break}}return t||n},L=function(){var e=F(P())||j()||"";return e+"ZeroClipboard.swf"},R=function(){return null==e.opener&&(!!e.top&&e!=e.top||!!e.parent&&e!=e.parent)}(),U={bridge:null,version:"0.0.0",pluginType:"unknown",disabled:null,outdated:null,sandboxed:null,unavailable:null,degraded:null,deactivated:null,overdue:null,ready:null},V="11.0.0",z={},H={},q=null,Y=0,W=0,B={ready:"Flash communication is established",error:{"flash-disabled":"Flash is disabled or not installed. May also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-outdated":"Flash is too outdated to support ZeroClipboard","flash-sandboxed":"Attempting to run Flash in a sandboxed iframe, which is impossible","flash-unavailable":"Flash is unable to communicate bidirectionally with JavaScript","flash-degraded":"Flash is unable to preserve data fidelity when communicating with JavaScript","flash-deactivated":"Flash is too outdated for your browser and/or is configured as click-to-activate.\nThis may also mean that the ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity.\nMay also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-overdue":"Flash communication was established but NOT within the acceptable time limit","version-mismatch":"ZeroClipboard JS version number does not match ZeroClipboard SWF version number","clipboard-error":"At least one error was thrown while ZeroClipboard was attempting to inject your data into the clipboard","config-mismatch":"ZeroClipboard configuration does not match Flash's reality","swf-not-found":"The ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity"}},G=["flash-unavailable","flash-degraded","flash-overdue","version-mismatch","config-mismatch","clipboard-error"],Z=["flash-disabled","flash-outdated","flash-sandboxed","flash-unavailable","flash-degraded","flash-deactivated","flash-overdue"],Q=new RegExp("^flash-("+Z.map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),J=new RegExp("^flash-("+Z.slice(1).map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),X={swfPath:L(),trustedDomains:e.location.host?[e.location.host]:[],cacheBust:!0,forceEnhancedClipboard:!1,flashLoadTimeout:3e4,autoActivate:!0,bubbleEvents:!0,containerId:"global-zeroclipboard-html-bridge",containerClass:"global-zeroclipboard-container",swfObjectId:"global-zeroclipboard-flash-bridge",hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",forceHandCursor:!1,title:null,zIndex:999999999},K=function(e){if("object"==typeof e&&null!==e)for(var t in e)if(k.call(e,t))if(/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(t))X[t]=e[t];else if(null==U.bridge)if("containerId"===t||"swfObjectId"===t){if(!pe(e[t]))throw new Error("The specified `"+t+"` value is not valid as an HTML4 Element ID");X[t]=e[t]}else X[t]=e[t];{if("string"!=typeof e||!e)return D(X);if(k.call(X,e))return X[e]}},ee=function(){return We(),{browser:A(u,["userAgent","platform","appName"]),flash:T(U,["bridge"]),zeroclipboard:{version:Ge.version,config:Ge.config()}}},te=function(){return!!(U.disabled||U.outdated||U.sandboxed||U.unavailable||U.degraded||U.deactivated)},ne=function(e,t){var i,o,a,s={};if("string"==typeof e&&e)a=e.toLowerCase().split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(i in e)k.call(e,i)&&"string"==typeof i&&i&&"function"==typeof e[i]&&Ge.on(i,e[i]);if(a&&a.length){for(i=0,o=a.length;i<o;i++)e=a[i].replace(/^on/,""),s[e]=!0,z[e]||(z[e]=[]),z[e].push(t);if(s.ready&&U.ready&&Ge.emit({type:"ready"}),s.error){for(i=0,o=Z.length;i<o;i++)if(U[Z[i].replace(/^flash-/,"")]===!0){Ge.emit({type:"error",name:Z[i]});break}r!==n&&Ge.version!==r&&Ge.emit({type:"error",name:"version-mismatch",jsVersion:Ge.version,swfVersion:r})}}return Ge},re=function(e,t){var n,r,i,o,a;if(0===arguments.length)o=w(z);else if("string"==typeof e&&e)o=e.split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(n in e)k.call(e,n)&&"string"==typeof n&&n&&"function"==typeof e[n]&&Ge.off(n,e[n]);if(o&&o.length)for(n=0,r=o.length;n<r;n++)if(e=o[n].toLowerCase().replace(/^on/,""),a=z[e],a&&a.length)if(t)for(i=a.indexOf(t);i!==-1;)a.splice(i,1),i=a.indexOf(t,i);else a.length=0;return Ge},ie=function(e){var t;return t="string"==typeof e&&e?D(z[e])||null:D(z)},oe=function(e){var t,n,r;if(e=me(e),e&&!xe(e))return"ready"===e.type&&U.overdue===!0?Ge.emit({type:"error",name:"flash-overdue"}):(t=E({},e),be.call(this,t),"copy"===e.type&&(r=Te(H),n=r.data,q=r.formatMap),n)},ae=function(){var e=U.sandboxed;if(We(),"boolean"!=typeof U.ready&&(U.ready=!1),U.sandboxed!==e&&U.sandboxed===!0)U.ready=!1,Ge.emit({type:"error",name:"flash-sandboxed"});else if(!Ge.isFlashUnusable()&&null===U.bridge){var t=X.flashLoadTimeout;"number"==typeof t&&t>=0&&(Y=l(function(){"boolean"!=typeof U.deactivated&&(U.deactivated=!0),U.deactivated===!0&&Ge.emit({type:"error",name:"flash-deactivated"})},t)),U.overdue=!1,De()}},se=function(){Ge.clearData(),Ge.blur(),Ge.emit("destroy"),Ae(),Ge.off()},ue=function(e,t){var n;if("object"==typeof e&&e&&"undefined"==typeof t)n=e,Ge.clearData();else{if("string"!=typeof e||!e)return;n={},n[e]=t}for(var r in n)"string"==typeof r&&r&&k.call(n,r)&&"string"==typeof n[r]&&n[r]&&(H[r]=n[r])},le=function(e){"undefined"==typeof e?(M(H),q=null):"string"==typeof e&&k.call(H,e)&&delete H[e]},ce=function(e){return"undefined"==typeof e?D(H):"string"==typeof e&&k.call(H,e)?H[e]:void 0},fe=function(e){if(e&&1===e.nodeType){i&&(Le(i,X.activeClass),i!==e&&Le(i,X.hoverClass)),i=e,je(e,X.hoverClass);var t=e.getAttribute("title")||X.title;if("string"==typeof t&&t){var n=Ee(U.bridge);n&&n.setAttribute("title",t)}var r=X.forceHandCursor===!0||"pointer"===Re(e,"cursor");qe(r),He()}},de=function(){var e=Ee(U.bridge);e&&(e.removeAttribute("title"),e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px"),i&&(Le(i,X.hoverClass),Le(i,X.activeClass),i=null)},he=function(){return i||null},pe=function(e){return"string"==typeof e&&e&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(e)},me=function(e){var t;if("string"==typeof e&&e?(t=e,e={}):"object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(t=e.type),t){t=t.toLowerCase(),!e.target&&(/^(copy|aftercopy|_click)$/.test(t)||"error"===t&&"clipboard-error"===e.name)&&(e.target=o),E(e,{type:t,target:e.target||i||null,relatedTarget:e.relatedTarget||null,currentTarget:U&&U.bridge||null,timeStamp:e.timeStamp||b()||null});var n=B[e.type];return"error"===e.type&&e.name&&n&&(n=n[e.name]),n&&(e.message=n),"ready"===e.type&&E(e,{target:null,version:U.version}),"error"===e.type&&(Q.test(e.name)&&E(e,{target:null,minimumVersion:V}),J.test(e.name)&&E(e,{version:U.version})),"copy"===e.type&&(e.clipboardData={setData:Ge.setData,clearData:Ge.clearData}),"aftercopy"===e.type&&(e=Me(e,q)),e.target&&!e.relatedTarget&&(e.relatedTarget=ge(e.target)),ve(e)}},ge=function(e){var t=e&&e.getAttribute&&e.getAttribute("data-clipboard-target");return t?s.getElementById(t):null},ve=function(e){if(e&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type)){var t=e.target,r="_mouseover"===e.type&&e.relatedTarget?e.relatedTarget:n,i="_mouseout"===e.type&&e.relatedTarget?e.relatedTarget:n,o=Ue(t),u=a.screenLeft||a.screenX||0,l=a.screenTop||a.screenY||0,c=s.body.scrollLeft+s.documentElement.scrollLeft,f=s.body.scrollTop+s.documentElement.scrollTop,d=o.left+("number"==typeof e._stageX?e._stageX:0),h=o.top+("number"==typeof e._stageY?e._stageY:0),p=d-c,m=h-f,g=u+p,v=l+m,$="number"==typeof e.movementX?e.movementX:0,y="number"==typeof e.movementY?e.movementY:0;delete e._stageX,delete e._stageY,E(e,{srcElement:t,fromElement:r,toElement:i,screenX:g,screenY:v,pageX:d,pageY:h,clientX:p,clientY:m,x:p,y:m,movementX:$,movementY:y,offsetX:0,offsetY:0,layerX:0,layerY:0})}return e},$e=function(e){var t=e&&"string"==typeof e.type&&e.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(t)},ye=function(e,t,n,r){r?l(function(){e.apply(t,n)},0):e.apply(t,n)},be=function(e){if("object"==typeof e&&e&&e.type){var t=$e(e),n=z["*"]||[],r=z[e.type]||[],i=n.concat(r);if(i&&i.length){var o,s,u,l,c,f=this;for(o=0,s=i.length;o<s;o++)u=i[o],l=f,"string"==typeof u&&"function"==typeof a[u]&&(u=a[u]),"object"==typeof u&&u&&"function"==typeof u.handleEvent&&(l=u,
-u=u.handleEvent),"function"==typeof u&&(c=E({},e),ye(u,l,[c],t))}return this}},we=function(e){var t=null;return(R===!1||e&&"error"===e.type&&e.name&&G.indexOf(e.name)!==-1)&&(t=!1),t},xe=function(e){var t=e.target||i||null,n="swf"===e._source;switch(delete e._source,e.type){case"error":var a="flash-sandboxed"===e.name||we(e);"boolean"==typeof a&&(U.sandboxed=a),Z.indexOf(e.name)!==-1?E(U,{disabled:"flash-disabled"===e.name,outdated:"flash-outdated"===e.name,unavailable:"flash-unavailable"===e.name,degraded:"flash-degraded"===e.name,deactivated:"flash-deactivated"===e.name,overdue:"flash-overdue"===e.name,ready:!1}):"version-mismatch"===e.name&&(r=e.swfVersion,E(U,{disabled:!1,outdated:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1})),ze();break;case"ready":r=e.swfVersion;var s=U.deactivated===!0;E(U,{disabled:!1,outdated:!1,sandboxed:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:s,ready:!s}),ze();break;case"beforecopy":o=t;break;case"copy":var u,l,c=e.relatedTarget;!H["text/html"]&&!H["text/plain"]&&c&&(l=c.value||c.outerHTML||c.innerHTML)&&(u=c.value||c.textContent||c.innerText)?(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",u),l!==u&&e.clipboardData.setData("text/html",l)):!H["text/plain"]&&e.target&&(u=e.target.getAttribute("data-clipboard-text"))&&(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",u));break;case"aftercopy":ke(e),Ge.clearData(),t&&t!==Pe()&&t.focus&&t.focus();break;case"_mouseover":Ge.focus(t),X.bubbleEvents===!0&&n&&(t&&t!==e.relatedTarget&&!O(e.relatedTarget,t)&&Ce(E({},e,{type:"mouseenter",bubbles:!1,cancelable:!1})),Ce(E({},e,{type:"mouseover"})));break;case"_mouseout":Ge.blur(),X.bubbleEvents===!0&&n&&(t&&t!==e.relatedTarget&&!O(e.relatedTarget,t)&&Ce(E({},e,{type:"mouseleave",bubbles:!1,cancelable:!1})),Ce(E({},e,{type:"mouseout"})));break;case"_mousedown":je(t,X.activeClass),X.bubbleEvents===!0&&n&&Ce(E({},e,{type:e.type.slice(1)}));break;case"_mouseup":Le(t,X.activeClass),X.bubbleEvents===!0&&n&&Ce(E({},e,{type:e.type.slice(1)}));break;case"_click":o=null,X.bubbleEvents===!0&&n&&Ce(E({},e,{type:e.type.slice(1)}));break;case"_mousemove":X.bubbleEvents===!0&&n&&Ce(E({},e,{type:e.type.slice(1)}))}if(/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type))return!0},ke=function(e){if(e.errors&&e.errors.length>0){var t=D(e);E(t,{type:"error",name:"clipboard-error"}),delete t.success,l(function(){Ge.emit(t)},0)}},Ce=function(e){if(e&&"string"==typeof e.type&&e){var t,n=e.target||null,r=n&&n.ownerDocument||s,i={view:r.defaultView||a,canBubble:!0,cancelable:!0,detail:"click"===e.type?1:0,button:"number"==typeof e.which?e.which-1:"number"==typeof e.button?e.button:r.createEvent?0:1},o=E(i,e);n&&r.createEvent&&n.dispatchEvent&&(o=[o.type,o.canBubble,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget],t=r.createEvent("MouseEvents"),t.initMouseEvent&&(t.initMouseEvent.apply(t,o),t._source="js",n.dispatchEvent(t)))}},Se=function(){var e=X.flashLoadTimeout;if("number"==typeof e&&e>=0){var t=Math.min(1e3,e/10),n=X.swfObjectId+"_fallbackContent";W=f(function(){var e=s.getElementById(n);Ve(e)&&(ze(),U.deactivated=null,Ge.emit({type:"error",name:"swf-not-found"}))},t)}},_e=function(){var e=s.createElement("div");return e.id=X.containerId,e.className=X.containerClass,e.style.position="absolute",e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px",e.style.zIndex=""+Ye(X.zIndex),e},Ee=function(e){for(var t=e&&e.parentNode;t&&"OBJECT"===t.nodeName&&t.parentNode;)t=t.parentNode;return t||null},De=function(){var e,t=U.bridge,n=Ee(t);if(!t){var r=Ne(a.location.host,X),i="never"===r?"none":"all",o=Fe(E({jsVersion:Ge.version},X)),u=X.swfPath+Oe(X.swfPath,X);n=_e();var l=s.createElement("div");n.appendChild(l),s.body.appendChild(n);var c=s.createElement("div"),f="activex"===U.pluginType;c.innerHTML='<object id="'+X.swfObjectId+'" name="'+X.swfObjectId+'" width="100%" height="100%" '+(f?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'type="application/x-shockwave-flash" data="'+u+'"')+">"+(f?'<param name="movie" value="'+u+'"/>':"")+'<param name="allowScriptAccess" value="'+r+'"/><param name="allowNetworking" value="'+i+'"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+o+'"/><div id="'+X.swfObjectId+'_fallbackContent"> </div></object>',t=c.firstChild,c=null,S(t).ZeroClipboard=Ge,n.replaceChild(t,l),Se()}return t||(t=s[X.swfObjectId],t&&(e=t.length)&&(t=t[e-1]),!t&&n&&(t=n.firstChild)),U.bridge=t||null,t},Ae=function(){var e=U.bridge;if(e){var t=Ee(e);t&&("activex"===U.pluginType&&"readyState"in e?(e.style.display="none",function i(){if(4===e.readyState){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t)}else l(i,10)}()):(e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t))),ze(),U.ready=null,U.bridge=null,U.deactivated=null,r=n}},Te=function(e){var t={},n={};if("object"==typeof e&&e){for(var r in e)if(r&&k.call(e,r)&&"string"==typeof e[r]&&e[r])switch(r.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":t.text=e[r],n.text=r;break;case"text/html":case"html":case"air:html":case"flash:html":t.html=e[r],n.html=r;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":t.rtf=e[r],n.rtf=r}return{data:t,formatMap:n}}},Me=function(e,t){if("object"!=typeof e||!e||"object"!=typeof t||!t)return e;var n={};for(var r in e)if(k.call(e,r))if("errors"===r){n[r]=e[r]?e[r].slice():[];for(var i=0,o=n[r].length;i<o;i++)n[r][i].format=t[n[r][i].format]}else if("success"!==r&&"data"!==r)n[r]=e[r];else{n[r]={};var a=e[r];for(var s in a)s&&k.call(a,s)&&k.call(t,s)&&(n[r][t[s]]=a[s])}return n},Oe=function(e,t){var n=null==t||t&&t.cacheBust===!0;return n?(e.indexOf("?")===-1?"?":"&")+"noCache="+b():""},Fe=function(e){var t,n,r,i,o="",s=[];if(e.trustedDomains&&("string"==typeof e.trustedDomains?i=[e.trustedDomains]:"object"==typeof e.trustedDomains&&"length"in e.trustedDomains&&(i=e.trustedDomains)),i&&i.length)for(t=0,n=i.length;t<n;t++)if(k.call(i,t)&&i[t]&&"string"==typeof i[t]){if(r=Ie(i[t]),!r)continue;if("*"===r){s.length=0,s.push(r);break}s.push.apply(s,[r,"//"+r,a.location.protocol+"//"+r])}return s.length&&(o+="trustedOrigins="+p(s.join(","))),e.forceEnhancedClipboard===!0&&(o+=(o?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof e.swfObjectId&&e.swfObjectId&&(o+=(o?"&":"")+"swfObjectId="+p(e.swfObjectId)),"string"==typeof e.jsVersion&&e.jsVersion&&(o+=(o?"&":"")+"jsVersion="+p(e.jsVersion)),o},Ie=function(e){if(null==e||""===e)return null;if(e=e.replace(/^\s+|\s+$/g,""),""===e)return null;var t=e.indexOf("//");e=t===-1?e:e.slice(t+2);var n=e.indexOf("/");return e=n===-1?e:t===-1||0===n?null:e.slice(0,n),e&&".swf"===e.slice(-4).toLowerCase()?null:e||null},Ne=function(){var e=function(e){var t,n,r,i=[];if("string"==typeof e&&(e=[e]),"object"!=typeof e||!e||"number"!=typeof e.length)return i;for(t=0,n=e.length;t<n;t++)if(k.call(e,t)&&(r=Ie(e[t]))){if("*"===r){i.length=0,i.push("*");break}i.indexOf(r)===-1&&i.push(r)}return i};return function(t,n){var r=Ie(n.swfPath);null===r&&(r=t);var i=e(n.trustedDomains),o=i.length;if(o>0){if(1===o&&"*"===i[0])return"always";if(i.indexOf(t)!==-1)return 1===o&&t===r?"sameDomain":"always"}return"never"}}(),Pe=function(){try{return s.activeElement}catch(e){return null}},je=function(e,t){var n,r,i,o=[];if("string"==typeof t&&t&&(o=t.split(/\s+/)),e&&1===e.nodeType&&o.length>0)if(e.classList)for(n=0,r=o.length;n<r;n++)e.classList.add(o[n]);else if(e.hasOwnProperty("className")){for(i=" "+e.className+" ",n=0,r=o.length;n<r;n++)i.indexOf(" "+o[n]+" ")===-1&&(i+=o[n]+" ");e.className=i.replace(/^\s+|\s+$/g,"")}return e},Le=function(e,t){var n,r,i,o=[];if("string"==typeof t&&t&&(o=t.split(/\s+/)),e&&1===e.nodeType&&o.length>0)if(e.classList&&e.classList.length>0)for(n=0,r=o.length;n<r;n++)e.classList.remove(o[n]);else if(e.className){for(i=(" "+e.className+" ").replace(/[\r\n\t]/g," "),n=0,r=o.length;n<r;n++)i=i.replace(" "+o[n]+" "," ");e.className=i.replace(/^\s+|\s+$/g,"")}return e},Re=function(e,t){var n=h(e,null).getPropertyValue(t);return"cursor"!==t||n&&"auto"!==n||"A"!==e.nodeName?n:"pointer"},Ue=function(e){var t={left:0,top:0,width:0,height:0};if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),r=a.pageXOffset,i=a.pageYOffset,o=s.documentElement.clientLeft||0,u=s.documentElement.clientTop||0,l=0,c=0;if("relative"===Re(s.body,"position")){var f=s.body.getBoundingClientRect(),d=s.documentElement.getBoundingClientRect();l=f.left-d.left||0,c=f.top-d.top||0}t.left=n.left+r-o-l,t.top=n.top+i-u-c,t.width="width"in n?n.width:n.right-n.left,t.height="height"in n?n.height:n.bottom-n.top}return t},Ve=function(e){if(!e)return!1;var t=h(e,null),n=$(t.height)>0,r=$(t.width)>0,i=$(t.top)>=0,o=$(t.left)>=0,a=n&&r&&i&&o,s=a?null:Ue(e),u="none"!==t.display&&"collapse"!==t.visibility&&(a||!!s&&(n||s.height>0)&&(r||s.width>0)&&(i||s.top>=0)&&(o||s.left>=0));return u},ze=function(){c(Y),Y=0,d(W),W=0},He=function(){var e;if(i&&(e=Ee(U.bridge))){var t=Ue(i);E(e.style,{width:t.width+"px",height:t.height+"px",top:t.top+"px",left:t.left+"px",zIndex:""+Ye(X.zIndex)})}},qe=function(e){U.ready===!0&&(U.bridge&&"function"==typeof U.bridge.setHandCursor?U.bridge.setHandCursor(e):U.ready=!1)},Ye=function(e){if(/^(?:auto|inherit)$/.test(e))return e;var t;return"number"!=typeof e||y(e)?"string"==typeof e&&(t=Ye(v(e,10))):t=e,"number"==typeof t?t:"auto"},We=function(t){var n,r,i,o=U.sandboxed,a=null;if(t=t===!0,R===!1)a=!1;else{try{r=e.frameElement||null}catch(s){i={name:s.name,message:s.message}}if(r&&1===r.nodeType&&"IFRAME"===r.nodeName)try{a=r.hasAttribute("sandbox")}catch(s){a=null}else{try{n=document.domain||null}catch(s){n=null}(null===n||i&&"SecurityError"===i.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(i.message.toLowerCase()))&&(a=!0)}}return U.sandboxed=a,o===a||t||Be(m),a},Be=function(e){function t(e){var t=e.match(/[\d]+/g);return t.length=3,t.join(".")}function n(e){return!!e&&(e=e.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(e)||"chrome.plugin"===e.slice(-13))}function r(e){e&&(s=!0,e.version&&(f=t(e.version)),!f&&e.description&&(f=t(e.description)),e.filename&&(c=n(e.filename)))}var i,o,a,s=!1,l=!1,c=!1,f="";if(u.plugins&&u.plugins.length)i=u.plugins["Shockwave Flash"],r(i),u.plugins["Shockwave Flash 2.0"]&&(s=!0,f="2.0.0.11");else if(u.mimeTypes&&u.mimeTypes.length)a=u.mimeTypes["application/x-shockwave-flash"],i=a&&a.enabledPlugin,r(i);else if("undefined"!=typeof e){l=!0;try{o=new e("ShockwaveFlash.ShockwaveFlash.7"),s=!0,f=t(o.GetVariable("$version"))}catch(d){try{o=new e("ShockwaveFlash.ShockwaveFlash.6"),s=!0,f="6.0.21"}catch(h){try{o=new e("ShockwaveFlash.ShockwaveFlash"),s=!0,f=t(o.GetVariable("$version"))}catch(p){l=!1}}}}U.disabled=s!==!0,U.outdated=f&&$(f)<$(V),U.version=f||"0.0.0",U.pluginType=c?"pepper":l?"activex":s?"netscape":"unknown"};Be(m),We(!0);var Ge=function(){return this instanceof Ge?void("function"==typeof Ge._createClient&&Ge._createClient.apply(this,_(arguments))):new Ge};x(Ge,"version",{value:"2.2.0",writable:!1,configurable:!0,enumerable:!0}),Ge.config=function(){return K.apply(this,_(arguments))},Ge.state=function(){return ee.apply(this,_(arguments))},Ge.isFlashUnusable=function(){return te.apply(this,_(arguments))},Ge.on=function(){return ne.apply(this,_(arguments))},Ge.off=function(){return re.apply(this,_(arguments))},Ge.handlers=function(){return ie.apply(this,_(arguments))},Ge.emit=function(){return oe.apply(this,_(arguments))},Ge.create=function(){return ae.apply(this,_(arguments))},Ge.destroy=function(){return se.apply(this,_(arguments))},Ge.setData=function(){return ue.apply(this,_(arguments))},Ge.clearData=function(){return le.apply(this,_(arguments))},Ge.getData=function(){return ce.apply(this,_(arguments))},Ge.focus=Ge.activate=function(){return fe.apply(this,_(arguments))},Ge.blur=Ge.deactivate=function(){return de.apply(this,_(arguments))},Ge.activeElement=function(){return he.apply(this,_(arguments))};var Ze=0,Qe={},Je=0,Xe={},Ke={};E(X,{autoActivate:!0});var et=function(e){var t=this;t.id=""+Ze++,Qe[t.id]={instance:t,elements:[],handlers:{}},e&&t.clip(e),Ge.on("*",function(e){return t.emit(e)}),Ge.on("destroy",function(){t.destroy()}),Ge.create()},tt=function(e,t){var i,o,a,s={},u=Qe[this.id],l=u&&u.handlers;if(!u)throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");if("string"==typeof e&&e)a=e.toLowerCase().split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(i in e)k.call(e,i)&&"string"==typeof i&&i&&"function"==typeof e[i]&&this.on(i,e[i]);if(a&&a.length){for(i=0,o=a.length;i<o;i++)e=a[i].replace(/^on/,""),s[e]=!0,l[e]||(l[e]=[]),l[e].push(t);if(s.ready&&U.ready&&this.emit({type:"ready",client:this}),s.error){for(i=0,o=Z.length;i<o;i++)if(U[Z[i].replace(/^flash-/,"")]){this.emit({type:"error",name:Z[i],client:this});break}r!==n&&Ge.version!==r&&this.emit({type:"error",name:"version-mismatch",jsVersion:Ge.version,swfVersion:r})}}return this},nt=function(e,t){var n,r,i,o,a,s=Qe[this.id],u=s&&s.handlers;if(!u)return this;if(0===arguments.length)o=w(u);else if("string"==typeof e&&e)o=e.split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(n in e)k.call(e,n)&&"string"==typeof n&&n&&"function"==typeof e[n]&&this.off(n,e[n]);if(o&&o.length)for(n=0,r=o.length;n<r;n++)if(e=o[n].toLowerCase().replace(/^on/,""),a=u[e],a&&a.length)if(t)for(i=a.indexOf(t);i!==-1;)a.splice(i,1),i=a.indexOf(t,i);else a.length=0;return this},rt=function(e){var t=null,n=Qe[this.id]&&Qe[this.id].handlers;return n&&(t="string"==typeof e&&e?n[e]?n[e].slice(0):[]:D(n)),t},it=function(e){if(lt.call(this,e)){"object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(e=E({},e));var t=E({},me(e),{client:this});ct.call(this,t)}return this},ot=function(e){if(!Qe[this.id])throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");e=ft(e);for(var t=0;t<e.length;t++)if(k.call(e,t)&&e[t]&&1===e[t].nodeType){e[t].zcClippingId?Xe[e[t].zcClippingId].indexOf(this.id)===-1&&Xe[e[t].zcClippingId].push(this.id):(e[t].zcClippingId="zcClippingId_"+Je++,Xe[e[t].zcClippingId]=[this.id],X.autoActivate===!0&&dt(e[t]));var n=Qe[this.id]&&Qe[this.id].elements;n.indexOf(e[t])===-1&&n.push(e[t])}return this},at=function(e){var t=Qe[this.id];if(!t)return this;var n,r=t.elements;e="undefined"==typeof e?r.slice(0):ft(e);for(var i=e.length;i--;)if(k.call(e,i)&&e[i]&&1===e[i].nodeType){for(n=0;(n=r.indexOf(e[i],n))!==-1;)r.splice(n,1);var o=Xe[e[i].zcClippingId];if(o){for(n=0;(n=o.indexOf(this.id,n))!==-1;)o.splice(n,1);0===o.length&&(X.autoActivate===!0&&ht(e[i]),delete e[i].zcClippingId)}}return this},st=function(){var e=Qe[this.id];return e&&e.elements?e.elements.slice(0):[]},ut=function(){Qe[this.id]&&(this.unclip(),this.off(),delete Qe[this.id])},lt=function(e){if(!e||!e.type)return!1;if(e.client&&e.client!==this)return!1;var t=Qe[this.id],n=t&&t.elements,r=!!n&&n.length>0,i=!e.target||r&&n.indexOf(e.target)!==-1,o=e.relatedTarget&&r&&n.indexOf(e.relatedTarget)!==-1,a=e.client&&e.client===this;return!(!t||!(i||o||a))},ct=function(e){var t=Qe[this.id];if("object"==typeof e&&e&&e.type&&t){var n=$e(e),r=t&&t.handlers["*"]||[],i=t&&t.handlers[e.type]||[],o=r.concat(i);if(o&&o.length){var s,u,l,c,f,d=this;for(s=0,u=o.length;s<u;s++)l=o[s],c=d,"string"==typeof l&&"function"==typeof a[l]&&(l=a[l]),"object"==typeof l&&l&&"function"==typeof l.handleEvent&&(c=l,l=l.handleEvent),"function"==typeof l&&(f=E({},e),ye(l,c,[f],n))}}},ft=function(e){return"string"==typeof e&&(e=[]),"number"!=typeof e.length?[e]:e},dt=function(e){if(e&&1===e.nodeType){var t=function(e){(e||(e=a.event))&&("js"!==e._source&&(e.stopImmediatePropagation(),e.preventDefault()),delete e._source)},n=function(n){(n||(n=a.event))&&(t(n),Ge.focus(e))};e.addEventListener("mouseover",n,!1),e.addEventListener("mouseout",t,!1),e.addEventListener("mouseenter",t,!1),e.addEventListener("mouseleave",t,!1),e.addEventListener("mousemove",t,!1),Ke[e.zcClippingId]={mouseover:n,mouseout:t,mouseenter:t,mouseleave:t,mousemove:t}}},ht=function(e){if(e&&1===e.nodeType){var t=Ke[e.zcClippingId];if("object"==typeof t&&t){for(var n,r,i=["move","leave","enter","out","over"],o=0,a=i.length;o<a;o++)n="mouse"+i[o],r=t[n],"function"==typeof r&&e.removeEventListener(n,r,!1);delete Ke[e.zcClippingId]}}};Ge._createClient=function(){et.apply(this,_(arguments))},Ge.prototype.on=function(){return tt.apply(this,_(arguments))},Ge.prototype.off=function(){return nt.apply(this,_(arguments))},Ge.prototype.handlers=function(){return rt.apply(this,_(arguments))},Ge.prototype.emit=function(){return it.apply(this,_(arguments))},Ge.prototype.clip=function(){return ot.apply(this,_(arguments))},Ge.prototype.unclip=function(){return at.apply(this,_(arguments))},Ge.prototype.elements=function(){return st.apply(this,_(arguments))},Ge.prototype.destroy=function(){return ut.apply(this,_(arguments))},Ge.prototype.setText=function(e){if(!Qe[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.setData("text/plain",e),this},Ge.prototype.setHtml=function(e){if(!Qe[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.setData("text/html",e),this},Ge.prototype.setRichText=function(e){if(!Qe[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.setData("application/rtf",e),this},Ge.prototype.setData=function(){if(!Qe[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.setData.apply(this,_(arguments)),this},Ge.prototype.clearData=function(){if(!Qe[this.id])throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.clearData.apply(this,_(arguments)),this},Ge.prototype.getData=function(){if(!Qe[this.id])throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.getData.apply(this,_(arguments))},"function"==typeof define&&define.amd?define(function(){return Ge}):"object"==typeof t&&t&&"object"==typeof t.exports&&t.exports?t.exports=Ge:e.ZeroClipboard=Ge}(function(){return this||window}())},{}],14:[function(e,t,n){t.exports='<div class="dropzone-container">\n <div class="dz-message">Drop files or click here to upload</div>\n</div>'},{}],15:[function(e,t,n){t.exports='\n<div class="image-picker">\n <div>\n <img ng-if="image && image !== \'none\'" ng-src="{{image}}" ng-class="{{imageClass}}" alt="Image Preview">\n <img ng-if="image === \'\' && defaultImage" ng-src="{{defaultImage}}" ng-class="{{imageClass}}" alt="Image Preview">\n </div>\n <button class="button" type="button" ng-click="showImageManager()">Select Image</button>\n <br>\n\n <button class="text-button" ng-click="reset()" type="button">Reset</button>\n <span ng-show="showRemove" class="sep">|</span>\n <button ng-show="showRemove" class="text-button neg" ng-click="remove()" type="button">Remove</button>\n\n <input type="hidden" ng-attr-name="{{name}}" ng-attr-id="{{name}}" ng-attr-value="{{value}}">\n</div>'},{}],16:[function(e,t,n){t.exports='<div class="toggle-switch" ng-click="switch()" ng-class="{\'active\': isActive}">\n <input type="hidden" ng-attr-name="{{name}}" ng-attr-value="{{value}}"/>\n <div class="switch-handle"></div>\n</div>'},{}],17:[function(e,t,n){"use strict";var r=e("moment");t.exports=function(t,n){t.controller("ImageManagerController",["$scope","$attrs","$http","$timeout","imageManagerService",function(e,t,r,i,o){function a(){e.searching=!1,e.searchTerm="",e.images=m,e.hasMore=g}function s(t){p&&p(t),e.hide()}function u(t){p=t,e.showing=!0,$("#image-manager").find(".overlay").css("display","flex").hide().fadeIn(240),h||(l(),h=!0)}function l(){var t=v+c+"?",n={};e.uploadedTo&&(n.page_id=e.uploadedTo),e.searching&&(n.term=e.searchTerm);var i=Object.keys(n).map(function(e){return e+"="+encodeURIComponent(n[e])}).join("&");t+=i,r.get(t).then(function(t){e.images=e.images.concat(t.data.images),e.hasMore=t.data.hasMore,c++})}e.images=[],e.imageType=t.imageType,e.selectedImage=!1,e.dependantPages=!1,e.showing=!1,e.hasMore=!1,e.imageUpdateSuccess=!1,e.imageDeleteSuccess=!1,e.uploadedTo=t.uploadedTo,e.view="all",e.searching=!1,e.searchTerm="";var c=0,f=0,d=0,h=!1,p=!1,m=[],g=!1;e.getUploadUrl=function(){return window.baseUrl("/images/"+e.imageType+"/upload")},e.cancelSearch=a,e.uploadSuccess=function(t,r){e.$apply(function(){e.images.unshift(r)}),n.emit("success","Image uploaded")},e.imageSelect=function(t){var n=300,r=Date.now(),i=r-f;i<n&&t.id===d?s(t):(e.selectedImage=t,e.dependantPages=!1),f=r,d=t.id},e.selectButtonClick=function(){s(e.selectedImage)},o.show=u,o.showExternal=function(t){e.$apply(function(){u(t)})},window.ImageManager=o,e.hide=function(){e.showing=!1,$("#image-manager").find(".overlay").fadeOut(240)};var v=window.baseUrl("/images/"+e.imageType+"/all/");e.fetchData=l,e.searchImages=function(){return""===e.searchTerm?void a():(e.searching||(m=e.images,g=e.hasMore),e.searching=!0,e.images=[],e.hasMore=!1,c=0,v=window.baseUrl("/images/"+e.imageType+"/search/"),void l())},e.setView=function(t){a(),e.images=[],e.hasMore=!1,c=0,e.view=t,v=window.baseUrl("/images/"+e.imageType+"/"+t+"/"),l()},e.saveImageDetails=function(t){t.preventDefault();var i=window.baseUrl("/images/update/"+e.selectedImage.id);r.put(i,this.selectedImage).then(function(e){n.emit("success","Image details updated")},function(e){if(422===e.status){var t=e.data,r="";Object.keys(t).forEach(function(e){r+=t[e].join("\n")}),n.emit("error",r)}else 403===e.status&&n.emit("error",e.data.error)})},e.deleteImage=function(t){t.preventDefault();var i=e.dependantPages!==!1,o=window.baseUrl("/images/"+e.selectedImage.id);i&&(o+="?force=true"),r["delete"](o).then(function(t){e.images.splice(e.images.indexOf(e.selectedImage),1),e.selectedImage=!1,n.emit("success","Image successfully deleted")},function(t){400===t.status?e.dependantPages=t.data:403===t.status&&n.emit("error",t.data.error)})},e.getDate=function(e){return new Date(e)}}]),t.controller("BookShowController",["$scope","$http","$attrs","$sce",function(e,t,n,r){e.searching=!1,e.searchTerm="",e.searchResults="",e.searchBook=function(i){i.preventDefault();var o=e.searchTerm;if(0!=o.length){e.searching=!0,e.searchResults="";var a=window.baseUrl("/search/book/"+n.bookId);a+="?term="+encodeURIComponent(o),t.get(a).then(function(t){e.searchResults=r.trustAsHtml(t.data)})}},e.checkSearchForm=function(){e.searchTerm.length<1&&(e.searching=!1)},e.clearSearch=function(){e.searching=!1,e.searchTerm=""}}]),t.controller("PageEditController",["$scope","$http","$attrs","$interval","$timeout","$sce",function(t,i,o,a,s,u){function l(){v.title=$("#name").val(),v.html=t.editContent,g=a(function(){var e=$("#name").val(),n=t.editContent;e===v.title&&n===v.html||(v.html=n,v.title=e,c())},1e3*p)}function c(){var e={name:$("#name").val(),html:m?u.getTrustedHtml(t.displayContent):t.editContent};m&&(e.markdown=t.editContent);var n=window.baseUrl("/ajax/page/"+d+"/save-draft");i.put(n,e).then(function(e){var n=r.utc(r.unix(e.data.timestamp)).toDate();t.draftText=e.data.message+r(n).format("HH:mm"),t.isNewPageDraft||(t.isUpdateDraft=!0),f()})}function f(){t.draftUpdated=!0,s(function(){t.draftUpdated=!1},2e3)}t.editorOptions=e("./pages/page-form"),t.editContent="",t.draftText="";var d=Number(o.pageId),h=0!==d,p=30,m="markdown"===o.editorType;t.isUpdateDraft=1===Number(o.pageUpdateDraft),t.isNewPageDraft=1===Number(o.pageNewDraft),t.isUpdateDraft||t.isNewPageDraft?t.draftText="Editing Draft":t.draftText="Editing Page";var g=!1,v={title:!1,html:!1};h&&setTimeout(function(){l()},1e3),m&&(t.displayContent="",t.editorChange=function(e){t.displayContent=u.trustAsHtml(e)}),m||(t.editorChange=function(){}),t.forceDraftSave=function(){c()},t.$on("editor-keydown",function(e,t){83==t.keyCode&&(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)&&(t.preventDefault(),c())}),t.discardDraft=function(){var e=window.baseUrl("/ajax/page/"+d);i.get(e).then(function(e){g&&a.cancel(g),t.draftText="Editing Page",t.isUpdateDraft=!1,t.$broadcast("html-update",e.data.html),t.$broadcast("markdown-update",e.data.markdown||e.data.html),$("#name").val(e.data.name),s(function(){l()},1e3),n.emit("success","Draft discarded, The editor has been updated with the current page content")})}}]),t.controller("PageTagController",["$scope","$http","$attrs",function(e,t,r){function i(){e.tags.push({name:"",value:""})}function o(){var n=window.baseUrl("/ajax/tags/get/page/"+s);t.get(n).then(function(t){e.tags=t.data,i()})}function a(){for(var t=0;t<e.tags.length;t++)e.tags[t].order=t}var s=Number(r.pageId);e.tags=[],e.sortOptions={handle:".handle",items:"> tr",containment:"parent",axis:"y"},e.addEmptyTag=i,o(),e.tagChange=function(t){var n=e.tags.indexOf(t);n===e.tags.length-1&&(""===t.name&&""===t.value||i())},e.tagBlur=function(t){var n=e.tags.length-1===e.tags.indexOf(t);if(""===t.name&&""===t.value&&!n){var r=e.tags.indexOf(t);e.tags.splice(r,1)}},e.saveTags=function(){a();var r={tags:e.tags},o=window.baseUrl("/ajax/tags/update/page/"+s);t.post(o,r).then(function(t){e.tags=t.data.tags,i(),n.emit("success",t.data.message)})},e.removeTag=function(t){var n=e.tags.indexOf(t);e.tags.splice(n,1)}}])}},{"./pages/page-form":20,moment:12}],18:[function(e,t,n){"use strict";var r=e("dropzone"),i=e("marked"),o=e("./components/toggle-switch.html"),a=e("./components/image-picker.html"),s=e("./components/drop-zone.html");t.exports=function(e,t){e.directive("toggleSwitch",function(){return{restrict:"A",template:o,scope:!0,link:function(e,t,n){e.name=n.name,e.value=n.value,e.isActive=1==e.value&&"false"!=e.value,e.value=1==e.value&&"false"!=e.value?"true":"false",e["switch"]=function(){e.isActive=!e.isActive,e.value=e.isActive?"true":"false"}}}}),e.directive("imagePicker",["$http","imageManagerService",function(e,t){return{restrict:"E",template:a,scope:{name:"@",resizeHeight:"@",resizeWidth:"@",resizeCrop:"@",showRemove:"=",currentImage:"@",currentId:"@",defaultImage:"@",imageClass:"@"},link:function(n,r,i){function o(e,t){n.image=t,n.value=a?e.id:t}var a="undefined"!=typeof n.currentId||"false"===n.currentId;n.image=n.currentImage,n.value=n.currentImage||"",a&&(n.value=n.currentId),n.reset=function(){o({id:0},n.defaultImage)},n.remove=function(){n.image="none",n.value="none"},n.showImageManager=function(){t.show(function(e){n.updateImageFromModel(e)})},n.updateImageFromModel=function(t){var r=n.resizeWidth&&n.resizeHeight;if(!r)return void n.$apply(function(){o(t,t.url)});var i=n.resizeCrop?"true":"false",a="/images/thumb/"+t.id+"/"+n.resizeWidth+"/"+n.resizeHeight+"/"+i;a=window.baseUrl(a),e.get(a).then(function(e){o(t,e.data.url)})}}}}]),e.directive("dropZone",[function(){return{restrict:"E",template:s,scope:{uploadUrl:"@",eventSuccess:"=",eventError:"=",uploadedTo:"@"},link:function(e,t,n){new r(t[0].querySelector(".dropzone-container"),{url:e.uploadUrl,init:function(){var t=this;t.on("sending",function(t,n,r){var i=window.document.querySelector("meta[name=token]").getAttribute("content");r.append("_token",i);var o="undefined"==typeof e.uploadedTo?0:e.uploadedTo;r.append("uploaded_to",o)}),"undefined"!=typeof e.eventSuccess&&t.on("success",e.eventSuccess),t.on("success",function(e,n){$(e.previewElement).fadeOut(400,function(){t.removeFile(e)})}),"undefined"!=typeof e.eventError&&t.on("error",e.eventError),t.on("error",function(e,t,n){function r(t){$(e.previewElement).find("[data-dz-errormessage]").text(t)}console.log(t),console.log(n),413===n.status&&r("The server does not allow uploads of this size. Please try a smaller file."),t.file&&r(t.file[0])})}})}}}]),e.directive("dropdown",[function(){return{restrict:"A",link:function(e,t,n){var r=t.find("ul");t.find("[dropdown-toggle]").on("click",function(){r.show().addClass("anim menuIn");var e=r.find("input"),n=e.length>0;n&&(e.first().focus(),t.on("keypress","input",function(e){if(13===e.keyCode)return e.preventDefault(),r.hide(),r.removeClass("anim menuIn"),!1})),t.mouseleave(function(){r.hide(),r.removeClass("anim menuIn")})})}}}]),e.directive("tinymce",["$timeout",function(e){return{restrict:"A",scope:{tinymce:"=",mceModel:"=",mceChange:"="},link:function(t,n,r){function i(n){n.on("ExecCommand change NodeChange ObjectResized",function(r){var i=n.getContent();e(function(){t.mceModel=i}),t.mceChange(i)}),n.on("keydown",function(e){t.$emit("editor-keydown",e)}),n.on("init",function(e){t.mceModel=n.getContent()}),t.$on("html-update",function(e,r){n.setContent(r),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),t.mceModel=n.getContent()})}t.tinymce.extraSetups.push(i),tinymce.PluginManager.add("customhr",function(e){e.addCommand("InsertHorizontalRule",function(){var t=document.createElement("hr"),n=e.selection.getNode(),r=n.parentNode;r.insertBefore(t,n)}),e.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),e.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})}),tinymce.init(t.tinymce)}}}]),e.directive("markdownInput",["$timeout",function(e){return{restrict:"A",scope:{mdModel:"=",mdChange:"="},link:function(t,n,r){n=n.find("textarea").first();var o=n.val();t.mdModel=o,t.mdChange(i(o)),n.on("change input",function(r){o=n.val(),e(function(){t.mdModel=o,t.mdChange(i(o))})}),t.$on("markdown-update",function(e,r){n.val(r),t.mdModel=r,t.mdChange(i(r))})}}}]),e.directive("markdownEditor",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){function r(){h=u[0].scrollHeight,p=u.height(),m=l[0].scrollHeight,g=l.height()}function i(){window.showEntityLinkSelector(function(e){var t=d,n=u[0].selectionEnd,r=n!==t,i=u.val();if(r){var o=i.substring(t,n),a="["+o+"]("+e.link+")";u.val(i.substring(0,t)+a+i.substring(n))}else{var s=" ["+e.name+"]("+e.link+") ";u.val(i.substring(0,t)+s+i.substring(t))}u.change()})}function o(e){if(e=e.originalEvent,e.clipboardData){var t=e.clipboardData.items;if(t)for(var n=0;n<t.length;n++)s(t[n].getAsFile())}}function a(e){e.stopPropagation(),e.preventDefault();for(var t=e.originalEvent.dataTransfer.files,n=0;n<t.length;n++)s(t[n])}function s(e){if(0===e.type.indexOf("image")){var t=new FormData,n="png",r=new XMLHttpRequest;if(e.name){var i=e.name.match(/\.(.+)$/);i&&(n=i[1])}var o="image-"+Math.random().toString(16).slice(2),a=u[0].selectionStart,s=u[0].selectionEnd,l=u[0].value,c=l.substring(a,s),f=window.baseUrl("/loading.gif#upload"+o),d=(s>a?"!["+c+"]":"![]")+("("+f+")");u[0].value=l.substring(0,a)+d+l.substring(s),u.focus(),u[0].selectionStart=a,u[0].selectionEnd=a;var h="image-"+Date.now()+"."+n;t.append("file",e,h),t.append("_token",document.querySelector('meta[name="token"]').getAttribute("content")),r.open("POST",window.baseUrl("/images/gallery/upload")),r.onload=function(){var e=u[0].selectionStart;if(200===r.status||201===r.status){var t=JSON.parse(r.responseText);u[0].value=u[0].value.replace(f,t.thumbs.display),u.change()}else console.log("An error occurred uploading the image"),console.log(r.responseText),u[0].value=u[0].value.replace(d,""),u.change();u.focus(),u[0].selectionStart=e,u[0].selectionEnd=e},r.send(t)}}var u=t.find("[markdown-input] textarea").first(),l=t.find(".markdown-display").first(),c=t.find('button[data-action="insertImage"]'),f=t.find('button[data-action="insertEntityLink"]'),d=0;u.blur(function(e){d=u[0].selectionStart});var h=void 0,p=void 0,m=void 0,g=void 0;setTimeout(function(){r()},200),window.addEventListener("resize",r);var v=800,$=0;u.on("scroll",function(e){
-var t=Date.now();t-$>v&&r();var n=u.scrollTop()/(h-p),i=(m-g)*n;l.scrollTop(i),$=t}),u.keydown(function(t){if(73===t.which&&t.ctrlKey&&t.shiftKey){t.preventDefault();var n=u[0].selectionStart,r=u.val(),o="";return u.val(r.substring(0,n)+o+r.substring(n)),u.focus(),u[0].selectionStart=n+"}return 75===t.which&&t.ctrlKey&&t.shiftKey?void i():void e.$emit("editor-keydown",t)}),c.click(function(e){window.ImageManager.showExternal(function(e){var t=d,n=u.val(),r="";u.val(n.substring(0,t)+r+n.substring(t)),u.change()})}),f.click(i),u.on("paste",o),u.on("drop",a)}}}]),e.directive("toolbox",[function(){return{restrict:"A",link:function(e,t,n){function r(e,n){i.removeClass("active"),o.hide(),i.filter('[tab-button="'+e+'"]').addClass("active"),o.filter('[tab-content="'+e+'"]').show(),n&&t.addClass("open")}var i=t.find("[tab-button]"),o=t.find("[tab-content]"),a=t.find("[toolbox-toggle]");a.click(function(e){t.toggleClass("open")}),r(o.first().attr("tab-content"),!1),i.click(function(e){var t=$(this).attr("tab-button");r(t,!0)})}}}]),e.directive("tagAutosuggestions",["$http",function(e){return{restrict:"A",link:function(t,n,r){function i(e,t){t[h].className="",h=e,t[h].className="active"}function o(e,t){if(0===t.length)return c.hide(),f=!1,void(m=t);if(f||(c.show(),f=!0),e!==d&&(c.detach(),e.after(c),d=e),m.join()===t.join())return void(m=t);c[0].innerHTML="";for(var n=0;n<t.length;n++){var r=document.createElement("li");r.textContent=t[n],r.onclick=a,0===n&&(r.className="active",h=0),c[0].appendChild(r)}m=t}function a(e){var t=this.textContent;d[0].value=t,d.focus(),c.hide(),f=!1}function s(t,n){var r=n.indexOf("?")!==-1,i=n+(r?"&":"?")+"search="+encodeURIComponent(t);return"undefined"!=typeof u[i]?new Promise(function(e,t){e(u[i])}):e.get(i).then(function(e){return u[i]=e.data,e.data})}var u={},l=document.createElement("ul");l.className="suggestion-box",l.style.position="absolute",l.style.display="none";var c=$(l),f=!1,d=!1,h=0;n.on("input focus","[autosuggest]",function(e){var t=$(this),n=t.val(),r=t.attr("autosuggest"),i=t.attr("autosuggest-type");if("value"===i.toLowerCase()){var a=t.closest("tr").find('[autosuggest-type="name"]').first(),u=a.val();""!==u&&(r+="?name="+encodeURIComponent(u))}var l=s(n.slice(0,3),r);l.then(function(e){0===n.length?o(t,e.slice(0,6)):(e=e.filter(function(e){return e.toLowerCase().indexOf(n.toLowerCase())!==-1}).slice(0,4),o(t,e))})});var p=0;n.on("blur","[autosuggest]",function(e){var t=Date.now();setTimeout(function(){p<t&&(c.hide(),f=!1)},200)}),n.on("focus","[autosuggest]",function(e){p=Date.now()}),n.on("keydown","[autosuggest]",function(e){if(f){var t=l.childNodes,n=t.length;if(40===e.keyCode){var r=h===n-1?0:h+1;i(r,t)}else if(38===e.keyCode){var o=0===h?n-1:h-1;i(o,t)}else if((13===e.keyCode||9===e.keyCode)&&!e.shiftKey){var a=t[h].textContent;if(d[0].value=a,d.focus(),c.hide(),f=!1,13===e.keyCode)return e.preventDefault(),!1}}});var m=[]}}}]),e.directive("entityLinkSelector",[function(e){return{restict:"A",link:function(e,n,r){function i(e){l=e,null===e?s.attr("disabled","true"):s.removeAttr("disabled")}function o(){n.fadeIn(240)}function a(){n.fadeOut(240)}var s=n.find(".entity-link-selector-confirm"),u=!1,l=null;t.listen("entity-select-change",i),s.click(function(e){a(),null!==l&&u(l)}),t.listen("entity-select-confirm",function(e){a(),u(e)}),window.showEntityLinkSelector=function(e){o(),u=e}}}}]),e.directive("entitySelector",["$http","$sce",function(e,n){return{restrict:"A",scope:!0,link:function(r,i,o){function a(){var e=Date.now(),t=e-c<300;return c=e,t}function s(e,n){var r=e.attr("data-entity-type"),o=e.attr("data-entity-id"),a=!e.hasClass("selected")||n;i.find(".selected").removeClass("selected").removeClass("primary-background"),a&&e.addClass("selected").addClass("primary-background");var s=a?r+":"+o:"";if(l.val(s),a||t.emit("entity-select-change",null),n||a){var u=e.find(".entity-list-item-link").attr("href"),c=e.find(".entity-list-item-name").text();n&&t.emit("entity-select-confirm",{id:Number(o),name:c,link:u}),a&&t.emit("entity-select-change",{id:Number(o),name:c,link:u})}}function u(){var e=o.entityTypes?encodeURIComponent(o.entityTypes):encodeURIComponent("page,book,chapter");return window.baseUrl("/ajax/search/entities?types="+e)}r.loading=!0,r.entityResults=!1,r.search="";var l=i.find("[entity-selector-input]").first(),c=0;i.on("click",".entity-list a",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).closest("[data-entity-type]");s(t,a())}),i.on("click","[data-entity-type]",function(e){s($(this),a())}),e.get(u()).then(function(e){r.entityResults=n.trustAsHtml(e.data),r.loading=!1}),r.searchEntities=function(){r.loading=!0,l.val("");var t=u()+"&term="+encodeURIComponent(r.search);e.get(t).then(function(e){r.entityResults=n.trustAsHtml(e.data),r.loading=!1})}}}}])}},{"./components/drop-zone.html":14,"./components/image-picker.html":15,"./components/toggle-switch.html":16,dropzone:10,marked:11}],19:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=e("angular");e("angular-resource"),e("angular-animate"),e("angular-sanitize");e("angular-ui-sortable"),window.baseUrl=function(e){var t=document.querySelector('meta[name="base-url"]').getAttribute("content");return"/"===t[t.length-1]&&(t=t.slice(0,t.length-1)),"/"===e[0]&&(e=e.slice(1)),t+"/"+e};var a=o.module("bookStack",["ngResource","ngAnimate","ngSanitize","ui.sortable"]),s=function(){function e(){r(this,e),this.listeners={}}return i(e,[{key:"emit",value:function(e,t){if("undefined"==typeof this.listeners[e])return this;for(var n=this.listeners[e],r=0;r<n.length;r++){var i=n[r];i(t)}return this}},{key:"listen",value:function(e,t){return"undefined"==typeof this.listeners[e]&&(this.listeners[e]=[]),this.listeners[e].push(t),this}}]),e}();window.Events=new s;e("./services")(a,window.Events),e("./directives")(a,window.Events),e("./controllers")(a,window.Events);jQuery.fn.smoothScrollTo=function(){if(0!==this.length){var e=0===document.documentElement.scrollTop?document.body:document.documentElement;return $(e).animate({scrollTop:this.offset().top-60},800),this}},jQuery.expr[":"].contains=$.expr.createPseudo(function(e){return function(t){return $(t).text().toUpperCase().indexOf(e.toUpperCase())>=0}}),$(function(){var e=$(".notification"),t=e.filter(".pos"),n=e.filter(".neg"),r=e.filter(".warning");window.Events.listen("success",function(e){t.hide(),t.find("span").text(e),setTimeout(function(){t.show()},1)}),window.Events.listen("warning",function(e){r.find("span").text(e),r.show()}),window.Events.listen("error",function(e){n.find("span").text(e),n.show()}),e.click(function(){$(this).fadeOut(100)}),$(".chapter-toggle").click(function(e){e.preventDefault(),$(this).toggleClass("open"),$(this).closest(".chapter").find(".inset-list").slideToggle(180)}),$("#back-to-top").click(function(){$("#header").smoothScrollTo()});var i=!1,o=document.getElementById("back-to-top"),a=1200;window.addEventListener("scroll",function(){var e=document.documentElement.scrollTop||document.body.scrollTop||0;!i&&e>a?(o.style.display="block",i=!0,setTimeout(function(){o.style.opacity=.4},1)):i&&e<a&&(o.style.opacity=0,i=!1,setTimeout(function(){o.style.display="none"},500))}),$('[data-action="expand-entity-list-details"]').click(function(){$(".entity-list.compact").find("p").not(".empty-text").slideToggle(240)}),$(".popup-close").click(function(){$(this).closest(".overlay").fadeOut(240)}),$(".overlay").click(function(e){$(e.target).hasClass("overlay")&&$(this).fadeOut(240)}),$(".markdown-display").on("click","a",function(e){e.preventDefault(),window.open($(this).attr("href"))}),(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0||navigator.userAgent.indexOf("Safari")!==-1)&&$("body").addClass("flexbox-support")}),e("./pages/page-show")},{"./controllers":17,"./directives":18,"./pages/page-show":21,"./services":22,angular:9,"angular-animate":2,"angular-resource":4,"angular-sanitize":6,"angular-ui-sortable":7}],20:[function(e,t,n){"use strict";function r(e,t){if(e.clipboardData){var n=e.clipboardData.items;if(n)for(var r=function(e){if(n[e].type.indexOf("image")===-1)return{v:void 0};var r=n[e].getAsFile(),i=new FormData,o="png",a=new XMLHttpRequest;if(r.name){var s=r.name.match(/\.(.+)$/);s&&(o=s[1])}var u="image-"+Math.random().toString(16).slice(2),l=window.baseUrl("/loading.gif");t.execCommand("mceInsertContent",!1,'<img src="'+l+'" id="'+u+'">');var c="image-"+Date.now()+"."+o;i.append("file",r,c),i.append("_token",document.querySelector('meta[name="token"]').getAttribute("content")),a.open("POST",window.baseUrl("/images/gallery/upload")),a.onload=function(){if(200===a.status||201===a.status){var e=JSON.parse(a.responseText);t.dom.setAttrib(u,"src",e.thumbs.display)}else console.log("An error occurred uploading the image",a.responseText),t.dom.remove(u)},a.send(i)},i=0;i<n.length;i++){var a=r(i);if("object"===("undefined"==typeof a?"undefined":o(a)))return a.v}}}function i(e){for(var t=1;t<5;t++)e.addShortcut("meta+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("meta+q","",["FormatBlock",!1,"blockquote"]),e.addShortcut("meta+d","",["FormatBlock",!1,"p"]),e.addShortcut("meta+e","",["FormatBlock",!1,"pre"]),e.addShortcut("meta+shift+E","",["FormatBlock",!1,"code"])}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=t.exports={selector:"#html-editor",content_css:[window.baseUrl("/css/styles.css"),window.baseUrl("/libs/material-design-iconic-font/css/material-design-iconic-font.min.css")],body_class:"page-content",relative_urls:!1,remove_script_host:!1,document_base_url:window.baseUrl("/"),statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*]",automatic_uploads:!1,valid_children:"-div[p|pre|h1|h2|h3|h4|h5|h6|blockquote]",plugins:"image table textcolor paste link fullscreen imagetools code customhr autosave lists",imagetools_toolbar:"imageoptions",toolbar:"undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr | removeformat code fullscreen",content_style:"body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",style_formats:[{title:"Header 1",format:"h1"},{title:"Header 2",format:"h2"},{title:"Header 3",format:"h3"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Code Block",icon:"code",format:"pre"},{title:"Inline Code",icon:"code",inline:"code"},{title:"Callouts",items:[{title:"Success",block:"p",exact:!0,attributes:{"class":"callout success"}},{title:"Info",block:"p",exact:!0,attributes:{"class":"callout info"}},{title:"Warning",block:"p",exact:!0,attributes:{"class":"callout warning"}},{title:"Danger",block:"p",exact:!0,attributes:{"class":"callout danger"}}]}],style_formats_merge:!1,formats:{alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"}},file_browser_callback:function(e,t,n,r){"file"===n&&window.showEntityLinkSelector(function(t){var n=r.document.getElementById(e);n.value=t.link,$(n).closest(".mce-form").find("input").eq(2).val(t.name)}),"image"===n&&window.ImageManager.showExternal(function(t){if(r.document.getElementById(e).value=t.url,"createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent("change",!1,!0),r.document.getElementById(e).dispatchEvent(n)}else r.document.getElementById(e).fireEvent("onchange");var i='<a href="'+t.url+'" target="_blank">';i+='<img src="'+t.thumbs.display+'" alt="'+t.name+'">',i+="</a>",r.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,i)})},paste_preprocess:function(e,t){var n=t.content;n.indexOf('<img src="file://')!==-1&&(t.content="")},extraSetups:[],setup:function(e){for(var t=0;t<a.extraSetups.length;t++)a.extraSetups[t](e);i(e),function(){function t(e){return e&&!(!e.textContent&&!e.innerText)}var n;e.on("dragstart",function(){var r=e.selection.getNode();"IMG"===r.nodeName&&(n=e.dom.getParent(r,".mceTemp"),n||"A"!==r.parentNode.nodeName||t(r.parentNode)||(n=r.parentNode))}),e.on("drop",function(t){var r=e.dom,i=tinymce.dom.RangeUtils.getCaretRangeFromPoint(t.clientX,t.clientY,e.getDoc());r.getParent(i.startContainer,".mceTemp")?t.preventDefault():n&&(t.preventDefault(),e.undoManager.transact(function(){e.selection.setRng(i),e.selection.setNode(n),r.remove(n)})),n=null})}(),e.addButton("image-insert",{title:"My title",icon:"image",tooltip:"Insert an image",onclick:function(){window.ImageManager.showExternal(function(t){var n='<a href="'+t.url+'" target="_blank">';n+='<img src="'+t.thumbs.display+'" alt="'+t.name+'">',n+="</a>",e.execCommand("mceInsertContent",!1,n)})}}),e.on("paste",function(t){r(t,e)})}}},{}],21:[function(e,t,n){"use strict";var r=e("zeroclipboard");r.config({swfPath:window.baseUrl("/ZeroClipboard.swf")}),window.setupPageShow=t.exports=function(e){function t(e){var t=$(".page-content #"+e).first();0!==t.length?(t.smoothScrollTo(),t.css("background-color","rgba(244, 249, 54, 0.25)")):$(".page-content").find(':contains("'+e+'")').smoothScrollTo()}function n(){d.width(h.width()+15),d.addClass("fixed"),g=!0}function i(){d.css("width","auto"),d.removeClass("fixed"),g=!1}function o(e){var t=f.scrollTop()>m;!t||g&&!e?t||!g&&!e||i():n()}function a(){o(!1)}var s=$("#pointer").detach(),u=s.children("div.pointer").first(),l=!1;if(s.on("click","input",function(e){$(this).select(),e.stopPropagation()}),new r(s.find("button").first()[0]),$(document.body).find("*").on("click focus",function(e){l||s.detach()}),$('.page-content [id^="bkmrk"]').on("mouseup keyup",function(t){t.stopPropagation();var n=window.getSelection();if(0!==n.toString().length){var r=$(this),i=window.baseUrl("/link/"+e+"#"+r.attr("id"));0!==i.indexOf("http")&&(i=window.location.protocol+"//"+window.location.host+i),s.find("input").val(i),s.find("button").first().attr("data-clipboard-text",i),r.before(s),s.show();var o=t.pageX-r.offset().left-u.width()/2;o<0&&(o=0);var a=o/r.width()*100;u.css("left",a+"%"),l=!0,setTimeout(function(){l=!1},100)}}),window.location.hash){var c=window.location.hash.replace(/\%20/g," ").substr(1);t(c)}var f=$(window),d=$(".book-tree"),h=d.parent(),p=$(document).height()>f.height()&&d.height()<$(".page-content").height(),m=$("#header").height()+$(".toolbar").height(),g=f.scrollTop()>m;p&&f.width()>1e3&&(f.on("scroll",a),o(!0)),f.on("resize",function(e){p&&f.width()>1e3?(f.on("scroll",a),o(!0)):(f.off("scroll",a),i())})}},{zeroclipboard:13}],22:[function(e,t,n){"use strict";t.exports=function(e,t){e.factory("imageManagerService",function(){return{show:!1,showExternal:!1}})}},{}]},{},[19]);
\ No newline at end of file
+return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},i.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+a(t,!0)+'">'+(n?e:a(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:a(e,!0))+"\n</code></pre>"},i.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},i.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},i.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"</"+n+">\n"},i.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},i.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},i.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},i.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},i.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"</"+n+">\n"},i.prototype.strong=function(e){return"<strong>"+e+"</strong>"},i.prototype.em=function(e){return"<em>"+e+"</em>"},i.prototype.codespan=function(e){return"<code>"+e+"</code>"},i.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},i.prototype.del=function(e){return"<del>"+e+"</del>"},i.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(s(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(i){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var o='<a href="'+e+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>"},i.prototype.image=function(e,t,n){var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},i.prototype.text=function(e){return e},o.parse=function(e,t,n){var r=new o(t,n);return r.parse(e)},o.prototype.parse=function(e){this.inline=new r(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i,o="",a="";for(n="",e=0;e<this.token.header.length;e++)r={header:!0,align:this.token.align[e]},n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});a+=this.renderer.tablerow(n)}return this.renderer.table(o,a);case"blockquote_start":for(var a="";"blockquote_end"!==this.next().type;)a+=this.tok();return this.renderer.blockquote(a);case"list_start":for(var a="",s=this.token.ordered;"list_end"!==this.next().type;)a+=this.tok();return this.renderer.list(a,s);case"list_item_start":for(var a="";"list_item_end"!==this.next().type;)a+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(a);case"loose_item_start":for(var a="";"list_item_end"!==this.next().type;)a+=this.tok();return this.renderer.listitem(a);case"html":var u=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(u);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},l.exec=l,f.options=f.setOptions=function(e){return c(f.defaults,e),f},f.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new i,xhtml:!1},f.Parser=o,f.parser=o.parse,f.Renderer=i,f.Lexer=e,f.lexer=e.lex,f.InlineLexer=r,f.inlineLexer=r.output,f.parse=f,"undefined"!=typeof t&&"object"==typeof n?t.exports=f:"function"==typeof define&&define.amd?define(function(){return f}):this.marked=f}).call(function(){return this||("undefined"!=typeof window?window:e)}())}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(e,t,n){!function(e,r){"object"==typeof n&&"undefined"!=typeof t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.moment=r()}(this,function(){"use strict";function n(){return mr.apply(null,arguments)}function r(e){mr=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){var t;for(t in e)return!1;return!0}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return $t(e,t,n,r,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function h(e){return null==e._pf&&(e._pf=d()),e._pf}function p(e){if(null==e._isValid){var t=h(e),n=gr.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function m(e){var t=f(NaN);return null!=e?c(h(t),e):h(t).userInvalidated=!0,t}function g(e){return void 0===e}function v(e,t){var n,r,i;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=h(t)),g(t._locale)||(e._locale=t._locale),vr.length>0)for(n in vr)r=vr[n],i=t[r],g(i)||(e[r]=i);return e}function $(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),$r===!1&&($r=!0,n.updateOffset(this),$r=!1)}function y(e){return e instanceof $||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&w(e[r])!==w(t[r]))&&a++;return a+o}function k(e){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var r=!0;return c(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),r){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var s in arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}k(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)},t)}function S(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),yr[e]||(k(t),yr[e]=!0)}function _(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)t=e[n],_(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function D(e,t){var n,r=c({},e);for(n in t)l(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},c(r[n],e[n]),c(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&o(e[n])&&(r[n]=c({},r[n]));return r}function A(e){null!=e&&this.set(e)}function T(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return _(r)?r.call(t,n):r}function M(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function O(){return this._invalidDate}function F(e){return this._ordinal.replace("%d",e)}function I(e,t,n,r){var i=this._relativeTime[n];return _(i)?i(e,t,n,r):i.replace(/%d/i,e)}function N(e,t){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(t):n.replace(/%s/i,t)}function P(e,t){var n=e.toLowerCase();Dr[n]=Dr[n+"s"]=Dr[t]=e}function j(e){return"string"==typeof e?Dr[e]||Dr[e.toLowerCase()]:void 0}function L(e){var t,n,r={};for(n in e)l(e,n)&&(t=j(n),t&&(r[t]=e[n]));return r}function R(e,t){Ar[e]=t}function U(e){var t=[];for(var n in e)t.push({unit:n,priority:Ar[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function V(e,t){return function(r){return null!=r?(H(this,e,r),n.updateOffset(this,t),this):z(this,e)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function H(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function q(e){return e=j(e),_(this[e])?this[e]():this}function Y(e,t){if("object"==typeof e){e=L(e);for(var n=U(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=j(e),_(this[e]))return this[e](t);return this}function W(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function B(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Fr[e]=i),t&&(Fr[t[0]]=function(){return W(i.apply(this,arguments),t[1],t[2])}),n&&(Fr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Z(e){var t,n,r=e.match(Tr);for(t=0,n=r.length;t<n;t++)Fr[r[t]]?r[t]=Fr[r[t]]:r[t]=G(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=r[i]instanceof Function?r[i].call(t,e):r[i];return o}}function Q(e,t){return e.isValid()?(t=J(t,e.localeData()),Or[t]=Or[t]||Z(t),Or[t](e)):e.localeData().invalidDate()}function J(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Mr.lastIndex=0;r>=0&&Mr.test(e);)e=e.replace(Mr,n),Mr.lastIndex=0,r-=1;return e}function X(e,t,n){Jr[e]=_(t)?t:function(e,r){return e&&n?n:t}}function K(e,t){return l(Jr,e)?Jr[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(r=function(e,n){n[t]=w(e)}),n=0;n<e.length;n++)Xr[e[n]]=r}function re(e,t){ne(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ie(e,t,n){null!=t&&l(Xr,e)&&Xr[e](t,n._a,n,e)}function oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ae(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ui).test(t)?"format":"standalone"][e.month()]:this._months}function se(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ui.test(t)?"format":"standalone"][e.month()]:this._monthsShort}function ue(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=wr.call(this._shortMonthsParse,a),i!==-1?i:null):(i=wr.call(this._longMonthsParse,a),i!==-1?i:null):"MMM"===t?(i=wr.call(this._shortMonthsParse,a),i!==-1?i:(i=wr.call(this._longMonthsParse,a),i!==-1?i:null)):(i=wr.call(this._longMonthsParse,a),i!==-1?i:(i=wr.call(this._shortMonthsParse,a),i!==-1?i:null))}function le(e,t,n){var r,i,o;if(this._monthsParseExact)return ue.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function fe(e){return null!=e?(ce(this,e),n.updateOffset(this,!0),this):z(this,"Month")}function de(){return oe(this.year(),this.month())}function he(e){return this._monthsParseExact?(l(this,"_monthsRegex")||me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=fi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(l(this,"_monthsRegex")||me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=di),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function me(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=te(r[t]),i[t]=te(i[t]);for(t=0;t<24;t++)o[t]=te(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ge(e){return ve(e)?366:365}function ve(e){return e%4===0&&e%100!==0||e%400===0}function $e(){return ve(this.year())}function ye(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function be(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var r=7+t-n,i=(7+be(e,0,r).getUTCDay()-t)%7;return-i+r-1}function xe(e,t,n,r,i){var o,a,s=(7+n-r)%7,u=we(e,r,i),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=ge(o)+l):l>ge(e)?(o=e+1,a=l-ge(e)):(o=e,a=l),{year:o,dayOfYear:a}}function ke(e,t,n){var r,i,o=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Ce(i,t,n)):a>Ce(e.year(),t,n)?(r=a-Ce(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ce(e,t,n){var r=we(e,t,n),i=we(e+1,t,n);return(ge(e)-r+i)/7}function Se(e){return ke(e,this._week.dow,this._week.doy).week}function _e(){return this._week.dow}function Ee(){return this._week.doy}function De(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ae(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Te(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Me(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Oe(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function Fe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ie(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ne(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=wr.call(this._weekdaysParse,a),i!==-1?i:null):"ddd"===t?(i=wr.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=wr.call(this._minWeekdaysParse,a),i!==-1?i:null):"dddd"===t?(i=wr.call(this._weekdaysParse,a),i!==-1?i:(i=wr.call(this._shortWeekdaysParse,a),i!==-1?i:(i=wr.call(this._minWeekdaysParse,a),i!==-1?i:null))):"ddd"===t?(i=wr.call(this._shortWeekdaysParse,a),i!==-1?i:(i=wr.call(this._weekdaysParse,a),i!==-1?i:(i=wr.call(this._minWeekdaysParse,a),i!==-1?i:null))):(i=wr.call(this._minWeekdaysParse,a),i!==-1?i:(i=wr.call(this._weekdaysParse,a),i!==-1?i:(i=wr.call(this._shortWeekdaysParse,a),i!==-1?i:null)))}function Pe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ne.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Te(e,this.localeData()),this.add(e-t,"d")):t}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Re(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ue(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=$i),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ve(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ze(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=bi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function He(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=te(s[t]),u[t]=te(u[t]),l[t]=te(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ye(){return this.hours()||24}function We(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Be(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,r,i,o=0;o<e.length;){for(i=Qe(e[o]).split("-"),t=i.length,n=Qe(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=Xe(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return null}function Xe(n){var r=null;if(!Si[n]&&"undefined"!=typeof t&&t&&t.exports)try{r=wi._abbr,e("./locale/"+n),Ke(r)}catch(i){}return Si[n]}function Ke(e,t){var n;return e&&(n=g(t)?nt(e):et(e,t),n&&(wi=n)),wi._abbr}function et(e,t){if(null!==t){var n=Ci;return t.abbr=e,null!=Si[e]?(S("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."),n=Si[e]._config):null!=t.parentLocale&&(null!=Si[t.parentLocale]?n=Si[t.parentLocale]._config:S("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),Si[e]=new A(D(n,t)),Ke(e),Si[e]}return delete Si[e],null}function tt(e,t){if(null!=t){var n,r=Ci;null!=Si[e]&&(r=Si[e]._config),t=D(r,t),n=new A(t),n.parentLocale=Si[e],Si[e]=n,Ke(e)}else null!=Si[e]&&(null!=Si[e].parentLocale?Si[e]=Si[e].parentLocale:null!=Si[e]&&delete Si[e]);return Si[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return wi;if(!i(e)){if(t=Xe(e))return t;e=[e]}return Je(e)}function rt(){return br(Si)}function it(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[ei]<0||n[ei]>11?ei:n[ti]<1||n[ti]>oe(n[Kr],n[ei])?ti:n[ni]<0||n[ni]>24||24===n[ni]&&(0!==n[ri]||0!==n[ii]||0!==n[oi])?ni:n[ri]<0||n[ri]>59?ri:n[ii]<0||n[ii]>59?ii:n[oi]<0||n[oi]>999?oi:-1,h(e)._overflowDayOfYear&&(t<Kr||t>ti)&&(t=ti),h(e)._overflowWeeks&&t===-1&&(t=ai),h(e)._overflowWeekday&&t===-1&&(t=si),h(e).overflow=t),e}function ot(e){var t,n,r,i,o,a,s=e._i,u=_i.exec(s)||Ei.exec(s);if(u){for(h(e).iso=!0,t=0,n=Ai.length;t<n;t++)if(Ai[t][1].exec(u[1])){i=Ai[t][0],r=Ai[t][2]!==!1;break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Ti.length;t<n;t++)if(Ti[t][1].exec(u[3])){o=(u[2]||" ")+Ti[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Di.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),ft(e)}else e._isValid=!1}function at(e){var t=Mi.exec(e._i);return null!==t?void(e._d=new Date((+t[1]))):(ot(e),void(e._isValid===!1&&(delete e._isValid,n.createFromInputFallback(e))))}function st(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function lt(e){var t,n,r,i,o=[];if(!e._d){for(r=ut(e),e._w&&null==e._a[ti]&&null==e._a[ei]&&ct(e),e._dayOfYear&&(i=st(e._a[Kr],r[Kr]),e._dayOfYear>ge(i)&&(h(e)._overflowDayOfYear=!0),n=be(i,0,e._dayOfYear),e._a[ei]=n.getUTCMonth(),e._a[ti]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ni]&&0===e._a[ri]&&0===e._a[ii]&&0===e._a[oi]&&(e._nextDay=!0,e._a[ni]=0),e._d=(e._useUTC?be:ye).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ni]=24)}}function ct(e){var t,n,r,i,o,a,s,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,a=4,n=st(t.GG,e._a[Kr],ke(yt(),1,4).year),r=st(t.W,1),i=st(t.E,1),(i<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,n=st(t.gg,e._a[Kr],ke(yt(),o,a).year),r=st(t.w,1),null!=t.d?(i=t.d,(i<0||i>6)&&(u=!0)):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>Ce(n,o,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=xe(n,r,i,o,a),e._a[Kr]=s.year,e._dayOfYear=s.dayOfYear)}function ft(e){if(e._f===n.ISO_8601)return void ot(e);e._a=[],h(e).empty=!0;var t,r,i,o,a,s=""+e._i,u=s.length,l=0;for(i=J(e._f,e._locale).match(Tr)||[],t=0;t<i.length;t++)o=i[t],r=(s.match(K(o,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Fr[o]?(r?h(e).empty=!1:h(e).unusedTokens.push(o),ie(o,r,e)):e._strict&&!r&&h(e).unusedTokens.push(o);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[ni]<=12&&h(e).bigHour===!0&&e._a[ni]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ni]=dt(e._locale,e._a[ni],e._meridiem),lt(e),it(e)}function dt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ht(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],ft(t),p(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));c(e,n||t)}function pt(e){if(!e._d){var t=L(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function mt(e){var t=new $(it(gt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function gt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new $(it(t)):(i(n)?ht(e):s(t)?e._d=t:n?ft(e):vt(e),p(e)||(e._d=null),e))}function vt(e){var t=e._i;void 0===t?e._d=new Date(n.now()):s(t)?e._d=new Date(t.valueOf()):"string"==typeof t?at(e):i(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),lt(e)):"object"==typeof t?pt(e):"number"==typeof t?e._d=new Date(t):n.createFromInputFallback(e)}function $t(e,t,n,r,s){var u={};return"boolean"==typeof n&&(r=n,n=void 0),(o(e)&&a(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,mt(u)}function yt(e,t,n,r){return $t(e,t,n,r,!1)}function bt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return yt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function wt(){var e=[].slice.call(arguments,0);return bt("isBefore",e)}function xt(){var e=[].slice.call(arguments,0);return bt("isAfter",e)}function kt(e){var t=L(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=nt(),this._bubble()}function Ct(e){return e instanceof kt}function St(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function _t(e,t){B(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+W(~~(e/60),2)+t+W(~~e%60,2)})}function Et(e,t){var n=(t||"").match(e)||[],r=n[n.length-1]||[],i=(r+"").match(Ni)||["-",0,0],o=+(60*i[1])+w(i[2]);return"+"===i[0]?o:-o}function Dt(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(y(e)||s(e)?e.valueOf():yt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):yt(e).local()}function At(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Tt(e,t){var r,i=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=Et(Gr,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(r=At(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Wt(this,Vt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:At(this):null!=e?this:NaN}function Mt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ot(e){return this.utcOffset(0,e)}function Ft(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(At(this),"m")),this}function It(){if(this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var e=Et(Br,this._i);0===e?this.utcOffset(0,!0):this.utcOffset(Et(Br,this._i))}return this}function Nt(e){return!!this.isValid()&&(e=e?yt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Pt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function jt(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),e=gt(e),e._a){var t=e._isUTC?f(e._a):yt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Lt(){return!!this.isValid()&&!this._isUTC}function Rt(){return!!this.isValid()&&this._isUTC}function Ut(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Vt(e,t){var n,r,i,o=e,a=null;return Ct(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(a=Pi.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:w(a[ti])*n,h:w(a[ni])*n,m:w(a[ri])*n,s:w(a[ii])*n,ms:w(St(1e3*a[oi]))*n}):(a=ji.exec(e))?(n="-"===a[1]?-1:1,o={y:zt(a[2],n),M:zt(a[3],n),w:zt(a[4],n),d:zt(a[5],n),h:zt(a[6],n),m:zt(a[7],n),s:zt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=qt(yt(o.from),yt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new kt(o),Ct(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){var n;return e.isValid()&&t.isValid()?(t=Dt(t,e),e.isBefore(t)?n=Ht(e,t):(n=Ht(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Yt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Vt(n,r),Wt(this,i,e),this}}function Wt(e,t,r,i){var o=t._milliseconds,a=St(t._days),s=St(t._months);e.isValid()&&(i=null==i||i,o&&e._d.setTime(e._d.valueOf()+o*r),a&&H(e,"Date",z(e,"Date")+a*r),s&&ce(e,z(e,"Month")+s*r),i&&n.updateOffset(e,a||s))}function Bt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gt(e,t){var r=e||yt(),i=Dt(r,this).startOf("day"),o=n.calendarFormat(this,i)||"sameElse",a=t&&(_(t[o])?t[o].call(this,r):t[o]);return this.format(a||this.localeData().calendar(o,this,yt(r)))}function Zt(){return new $(this)}function Qt(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=j(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Jt(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=j(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf());
+}function Xt(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Kt(e,t){var n,r=y(e)?e:yt(e);return!(!this.isValid()||!r.isValid())&&(t=j(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function en(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function tn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function nn(e,t,n){var r,i,o,a;return this.isValid()?(r=Dt(e,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),t=j(t),"year"===t||"month"===t||"quarter"===t?(a=rn(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-r,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?a:b(a)):NaN):NaN}function rn(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function on(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function an(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?_(Date.prototype.toISOString)?this.toDate().toISOString():Q(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Q(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function sn(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=Q(this,e);return this.localeData().postformat(t)}function un(e,t){return this.isValid()&&(y(e)&&e.isValid()||yt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ln(e){return this.from(yt(),e)}function cn(e,t){return this.isValid()&&(y(e)&&e.isValid()||yt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.to(yt(),e)}function dn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function hn(){return this._locale}function pn(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function mn(e){return e=j(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function gn(){return this._d.valueOf()-6e4*(this._offset||0)}function vn(){return Math.floor(this.valueOf()/1e3)}function $n(){return new Date(this.valueOf())}function yn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function wn(){return this.isValid()?this.toISOString():null}function xn(){return p(this)}function kn(){return c({},h(this))}function Cn(){return h(this).overflow}function Sn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _n(e,t){B(0,[e,e.length],0,t)}function En(e){return Mn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Dn(e){return Mn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function An(){return Ce(this.year(),1,4)}function Tn(){var e=this.localeData()._week;return Ce(this.year(),e.dow,e.doy)}function Mn(e,t,n,r,i){var o;return null==e?ke(this,r,i).year:(o=Ce(e,r,i),t>o&&(t=o),On.call(this,e,t,n,r,i))}function On(e,t,n,r,i){var o=xe(e,t,n,r,i),a=be(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Fn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function In(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Nn(e,t){t[oi]=w(1e3*("0."+e))}function Pn(){return this._isUTC?"UTC":""}function jn(){return this._isUTC?"Coordinated Universal Time":""}function Ln(e){return yt(1e3*e)}function Rn(){return yt.apply(null,arguments).parseZone()}function Un(e){return e}function Vn(e,t,n,r){var i=nt(),o=f().set(r,t);return i[n](o,e)}function zn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Vn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Vn(e,r,n,"month");return i}function Hn(e,t,n,r){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var i=nt(),o=e?i._week.dow:0;if(null!=n)return Vn(t,(n+o)%7,r,"day");var a,s=[];for(a=0;a<7;a++)s[a]=Vn(t,(a+o)%7,r,"day");return s}function qn(e,t){return zn(e,t,"months")}function Yn(e,t){return zn(e,t,"monthsShort")}function Wn(e,t,n){return Hn(e,t,n,"weekdays")}function Bn(e,t,n){return Hn(e,t,n,"weekdaysShort")}function Gn(e,t,n){return Hn(e,t,n,"weekdaysMin")}function Zn(){var e=this._data;return this._milliseconds=Zi(this._milliseconds),this._days=Zi(this._days),this._months=Zi(this._months),e.milliseconds=Zi(e.milliseconds),e.seconds=Zi(e.seconds),e.minutes=Zi(e.minutes),e.hours=Zi(e.hours),e.months=Zi(e.months),e.years=Zi(e.years),this}function Qn(e,t,n,r){var i=Vt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Jn(e,t){return Qn(this,e,t,1)}function Xn(e,t){return Qn(this,e,t,-1)}function Kn(e){return e<0?Math.floor(e):Math.ceil(e)}function er(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Kn(nr(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=b(o/1e3),u.seconds=e%60,t=b(e/60),u.minutes=t%60,n=b(t/60),u.hours=n%24,a+=b(n/24),i=b(tr(a)),s+=i,a-=Kn(nr(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function tr(e){return 4800*e/146097}function nr(e){return 146097*e/4800}function rr(e){var t,n,r=this._milliseconds;if(e=j(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+tr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ir(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)}function or(e){return function(){return this.as(e)}}function ar(e){return e=j(e),this[e+"s"]()}function sr(e){return function(){return this._data[e]}}function ur(){return b(this.days()/7)}function lr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function cr(e,t,n){var r=Vt(e).abs(),i=fo(r.as("s")),o=fo(r.as("m")),a=fo(r.as("h")),s=fo(r.as("d")),u=fo(r.as("M")),l=fo(r.as("y")),c=i<ho.s&&["s",i]||o<=1&&["m"]||o<ho.m&&["mm",o]||a<=1&&["h"]||a<ho.h&&["hh",a]||s<=1&&["d"]||s<ho.d&&["dd",s]||u<=1&&["M"]||u<ho.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,lr.apply(null,c)}function fr(e){return void 0===e?fo:"function"==typeof e&&(fo=e,!0)}function dr(e,t){return void 0!==ho[e]&&(void 0===t?ho[e]:(ho[e]=t,!0))}function hr(e){var t=this.localeData(),n=cr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function pr(){var e,t,n,r=po(this._milliseconds)/1e3,i=po(this._days),o=po(this._months);e=b(r/60),t=b(e/60),r%=60,e%=60,n=b(o/12),o%=12;var a=n,s=o,u=i,l=t,c=e,f=r,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||f?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(f?f+"S":""):"P0D"}var mr,gr;gr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var vr=n.momentProperties=[],$r=!1,yr={};n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var br;br=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var wr,xr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},kr={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"},Cr="Invalid date",Sr="%d",_r=/\d{1,2}/,Er={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"},Dr={},Ar={},Tr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Mr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Or={},Fr={},Ir=/\d/,Nr=/\d\d/,Pr=/\d{3}/,jr=/\d{4}/,Lr=/[+-]?\d{6}/,Rr=/\d\d?/,Ur=/\d\d\d\d?/,Vr=/\d\d\d\d\d\d?/,zr=/\d{1,3}/,Hr=/\d{1,4}/,qr=/[+-]?\d{1,6}/,Yr=/\d+/,Wr=/[+-]?\d+/,Br=/Z|[+-]\d\d:?\d\d/gi,Gr=/Z|[+-]\d\d(?::?\d\d)?/gi,Zr=/[+-]?\d+(\.\d{1,3})?/,Qr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Jr={},Xr={},Kr=0,ei=1,ti=2,ni=3,ri=4,ii=5,oi=6,ai=7,si=8;wr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),B("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),R("month",8),X("M",Rr),X("MM",Rr,Nr),X("MMM",function(e,t){return t.monthsShortRegex(e)}),X("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[ei]=w(e)-1}),ne(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ei]=i:h(n).invalidMonth=e});var ui=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,li="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ci="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fi=Qr,di=Qr;B("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),P("year","y"),R("year",1),X("Y",Wr),X("YY",Rr,Nr),X("YYYY",Hr,jr),X("YYYYY",qr,Lr),X("YYYYYY",qr,Lr),ne(["YYYYY","YYYYYY"],Kr),ne("YYYY",function(e,t){t[Kr]=2===e.length?n.parseTwoDigitYear(e):w(e)}),ne("YY",function(e,t){t[Kr]=n.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[Kr]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var hi=V("FullYear",!0);B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),R("week",5),R("isoWeek",5),X("w",Rr),X("ww",Rr,Nr),X("W",Rr),X("WW",Rr,Nr),re(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=w(e)});var pi={dow:0,doy:6};B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),X("d",Rr),X("e",Rr),X("E",Rr),X("dd",function(e,t){return t.weekdaysMinRegex(e)}),X("ddd",function(e,t){return t.weekdaysShortRegex(e)}),X("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),re(["d","e","E"],function(e,t,n,r){t[r]=w(e)});var mi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),vi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$i=Qr,yi=Qr,bi=Qr;B("H",["HH",2],0,"hour"),B("h",["hh",2],0,qe),B("k",["kk",2],0,Ye),B("hmm",0,0,function(){return""+qe.apply(this)+W(this.minutes(),2)}),B("hmmss",0,0,function(){return""+qe.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),We("a",!0),We("A",!1),P("hour","h"),R("hour",13),X("a",Be),X("A",Be),X("H",Rr),X("h",Rr),X("HH",Rr,Nr),X("hh",Rr,Nr),X("hmm",Ur),X("hmmss",Vr),X("Hmm",Ur),X("Hmmss",Vr),ne(["H","HH"],ni),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[ni]=w(e),h(n).bigHour=!0}),ne("hmm",function(e,t,n){var r=e.length-2;t[ni]=w(e.substr(0,r)),t[ri]=w(e.substr(r)),h(n).bigHour=!0}),ne("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ni]=w(e.substr(0,r)),t[ri]=w(e.substr(r,2)),t[ii]=w(e.substr(i)),h(n).bigHour=!0}),ne("Hmm",function(e,t,n){var r=e.length-2;t[ni]=w(e.substr(0,r)),t[ri]=w(e.substr(r))}),ne("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ni]=w(e.substr(0,r)),t[ri]=w(e.substr(r,2)),t[ii]=w(e.substr(i))});var wi,xi=/[ap]\.?m?\.?/i,ki=V("Hours",!0),Ci={calendar:xr,longDateFormat:kr,invalidDate:Cr,ordinal:Sr,ordinalParse:_r,relativeTime:Er,months:li,monthsShort:ci,week:pi,weekdays:mi,weekdaysMin:vi,weekdaysShort:gi,meridiemParse:xi},Si={},_i=/^\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)?)?/,Ei=/^\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)?)?/,Di=/Z|[+-]\d\d(?::?\d\d)?/,Ai=[["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}/]],Ti=[["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/]],Mi=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=C("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){};var Oi=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Fi=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),Ii=function(){return Date.now?Date.now():+new Date};_t("Z",":"),_t("ZZ",""),X("Z",Gr),X("ZZ",Gr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Et(Gr,e)});var Ni=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Pi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ji=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Vt.fn=kt.prototype;var Li=Yt(1,"add"),Ri=Yt(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ui=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),_n("gggg","weekYear"),_n("ggggg","weekYear"),_n("GGGG","isoWeekYear"),_n("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),X("G",Wr),X("g",Wr),X("GG",Rr,Nr),X("gg",Rr,Nr),X("GGGG",Hr,jr),X("gggg",Hr,jr),X("GGGGG",qr,Lr),X("ggggg",qr,Lr),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=w(e)}),re(["gg","GG"],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)}),B("Q",0,"Qo","quarter"),P("quarter","Q"),R("quarter",7),X("Q",Ir),ne("Q",function(e,t){t[ei]=3*(w(e)-1)}),B("D",["DD",2],"Do","date"),P("date","D"),R("date",9),X("D",Rr),X("DD",Rr,Nr),X("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ne(["D","DD"],ti),ne("Do",function(e,t){t[ti]=w(e.match(Rr)[0],10)});var Vi=V("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),R("dayOfYear",4),X("DDD",zr),X("DDDD",Pr),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),B("m",["mm",2],0,"minute"),P("minute","m"),R("minute",14),X("m",Rr),X("mm",Rr,Nr),ne(["m","mm"],ri);var zi=V("Minutes",!1);B("s",["ss",2],0,"second"),P("second","s"),R("second",15),X("s",Rr),X("ss",Rr,Nr),ne(["s","ss"],ii);var Hi=V("Seconds",!1);B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),R("millisecond",16),X("S",zr,Ir),X("SS",zr,Nr),X("SSS",zr,Pr);var qi;for(qi="SSSS";qi.length<=9;qi+="S")X(qi,Yr);for(qi="S";qi.length<=9;qi+="S")ne(qi,Nn);var Yi=V("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var Wi=$.prototype;Wi.add=Li,Wi.calendar=Gt,Wi.clone=Zt,Wi.diff=nn,Wi.endOf=mn,Wi.format=sn,Wi.from=un,Wi.fromNow=ln,Wi.to=cn,Wi.toNow=fn,Wi.get=q,Wi.invalidAt=Cn,Wi.isAfter=Qt,Wi.isBefore=Jt,Wi.isBetween=Xt,Wi.isSame=Kt,Wi.isSameOrAfter=en,Wi.isSameOrBefore=tn,Wi.isValid=xn,Wi.lang=Ui,Wi.locale=dn,Wi.localeData=hn,Wi.max=Fi,Wi.min=Oi,Wi.parsingFlags=kn,Wi.set=Y,Wi.startOf=pn,Wi.subtract=Ri,Wi.toArray=yn,Wi.toObject=bn,Wi.toDate=$n,Wi.toISOString=an,Wi.toJSON=wn,Wi.toString=on,Wi.unix=vn,Wi.valueOf=gn,Wi.creationData=Sn,Wi.year=hi,Wi.isLeapYear=$e,Wi.weekYear=En,Wi.isoWeekYear=Dn,Wi.quarter=Wi.quarters=Fn,Wi.month=fe,Wi.daysInMonth=de,Wi.week=Wi.weeks=De,Wi.isoWeek=Wi.isoWeeks=Ae,Wi.weeksInYear=Tn,Wi.isoWeeksInYear=An,Wi.date=Vi,Wi.day=Wi.days=je,Wi.weekday=Le,Wi.isoWeekday=Re,Wi.dayOfYear=In,Wi.hour=Wi.hours=ki,Wi.minute=Wi.minutes=zi,Wi.second=Wi.seconds=Hi,Wi.millisecond=Wi.milliseconds=Yi,Wi.utcOffset=Tt,Wi.utc=Ot,Wi.local=Ft,Wi.parseZone=It,Wi.hasAlignedHourOffset=Nt,Wi.isDST=Pt,Wi.isLocal=Lt,Wi.isUtcOffset=Rt,Wi.isUtc=Ut,Wi.isUTC=Ut,Wi.zoneAbbr=Pn,Wi.zoneName=jn,Wi.dates=C("dates accessor is deprecated. Use date instead.",Vi),Wi.months=C("months accessor is deprecated. Use month instead",fe),Wi.years=C("years accessor is deprecated. Use year instead",hi),Wi.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mt),Wi.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",jt);var Bi=Wi,Gi=A.prototype;Gi.calendar=T,Gi.longDateFormat=M,Gi.invalidDate=O,Gi.ordinal=F,Gi.preparse=Un,Gi.postformat=Un,Gi.relativeTime=I,Gi.pastFuture=N,Gi.set=E,Gi.months=ae,Gi.monthsShort=se,Gi.monthsParse=le,Gi.monthsRegex=pe,Gi.monthsShortRegex=he,Gi.week=Se,Gi.firstDayOfYear=Ee,Gi.firstDayOfWeek=_e,Gi.weekdays=Oe,Gi.weekdaysMin=Ie,Gi.weekdaysShort=Fe,Gi.weekdaysParse=Pe,Gi.weekdaysRegex=Ue,Gi.weekdaysShortRegex=Ve,Gi.weekdaysMinRegex=ze,Gi.isPM=Ge,Gi.meridiem=Ze,Ke("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),n.lang=C("moment.lang is deprecated. Use moment.locale instead.",Ke),n.langData=C("moment.langData is deprecated. Use moment.localeData instead.",nt);var Zi=Math.abs,Qi=or("ms"),Ji=or("s"),Xi=or("m"),Ki=or("h"),eo=or("d"),to=or("w"),no=or("M"),ro=or("y"),io=sr("milliseconds"),oo=sr("seconds"),ao=sr("minutes"),so=sr("hours"),uo=sr("days"),lo=sr("months"),co=sr("years"),fo=Math.round,ho={s:45,m:45,h:22,d:26,M:11},po=Math.abs,mo=kt.prototype;mo.abs=Zn,mo.add=Jn,mo.subtract=Xn,mo.as=rr,mo.asMilliseconds=Qi,mo.asSeconds=Ji,mo.asMinutes=Xi,mo.asHours=Ki,mo.asDays=eo,mo.asWeeks=to,mo.asMonths=no,mo.asYears=ro,mo.valueOf=ir,mo._bubble=er,mo.get=ar,mo.milliseconds=io,mo.seconds=oo,mo.minutes=ao,mo.hours=so,mo.days=uo,mo.weeks=ur,mo.months=lo,mo.years=co,mo.humanize=hr,mo.toISOString=pr,mo.toString=pr,mo.toJSON=pr,mo.locale=dn,mo.localeData=hn,mo.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pr),mo.lang=Ui,B("X",0,0,"unix"),B("x",0,0,"valueOf"),X("x",Wr),X("X",Zr),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(w(e))}),n.version="2.15.2",r(yt),n.fn=Bi,n.min=wt,n.max=xt,n.now=Ii,n.utc=f,n.unix=Ln,n.months=qn,n.isDate=s,n.locale=Ke,n.invalid=m,n.duration=Vt,n.isMoment=y,n.weekdays=Wn,n.parseZone=Rn,n.localeData=nt,n.isDuration=Ct,n.monthsShort=Yn,n.weekdaysMin=Gn,n.defineLocale=et,n.updateLocale=tt,n.locales=rt,n.weekdaysShort=Bn,n.normalizeUnits=j,n.relativeTimeRounding=fr,n.relativeTimeThreshold=dr,n.calendarFormat=Bt,n.prototype=Bi;var go=n;return go})},{}],13:[function(e,t,n){!function(e,n){"use strict";var r,i,o,a=e,s=a.document,u=a.navigator,l=a.setTimeout,c=a.clearTimeout,f=a.setInterval,d=a.clearInterval,h=a.getComputedStyle,p=a.encodeURIComponent,m=a.ActiveXObject,g=a.Error,v=a.Number.parseInt||a.parseInt,$=a.Number.parseFloat||a.parseFloat,y=a.Number.isNaN||a.isNaN,b=a.Date.now,w=a.Object.keys,x=a.Object.defineProperty,k=a.Object.prototype.hasOwnProperty,C=a.Array.prototype.slice,S=function(){var e=function(e){return e};if("function"==typeof a.wrap&&"function"==typeof a.unwrap)try{var t=s.createElement("div"),n=a.unwrap(t);1===t.nodeType&&n&&1===n.nodeType&&(e=a.unwrap)}catch(r){}return e}(),_=function(e){return C.call(e,0)},E=function(){var e,t,r,i,o,a,s=_(arguments),u=s[0]||{};for(e=1,t=s.length;e<t;e++)if(null!=(r=s[e]))for(i in r)k.call(r,i)&&(o=u[i],a=r[i],u!==a&&a!==n&&(u[i]=a));return u},D=function(e){var t,n,r,i;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if("number"==typeof e.length)for(t=[],n=0,r=e.length;n<r;n++)k.call(e,n)&&(t[n]=D(e[n]));else{t={};for(i in e)k.call(e,i)&&(t[i]=D(e[i]))}return t},A=function(e,t){for(var n={},r=0,i=t.length;r<i;r++)t[r]in e&&(n[t[r]]=e[t[r]]);return n},T=function(e,t){var n={};for(var r in e)t.indexOf(r)===-1&&(n[r]=e[r]);return n},M=function(e){if(e)for(var t in e)k.call(e,t)&&delete e[t];return e},O=function(e,t){if(e&&1===e.nodeType&&e.ownerDocument&&t&&(1===t.nodeType&&t.ownerDocument&&t.ownerDocument===e.ownerDocument||9===t.nodeType&&!t.ownerDocument&&t===e.ownerDocument))do{if(e===t)return!0;e=e.parentNode}while(e);return!1},F=function(e){var t;return"string"==typeof e&&e&&(t=e.split("#")[0].split("?")[0],t=e.slice(0,e.lastIndexOf("/")+1)),t},I=function(e){var t,n;return"string"==typeof e&&e&&(n=e.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),n&&n[1]?t=n[1]:(n=e.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),n&&n[1]&&(t=n[1]))),t},N=function(){var e,t;try{throw new g}catch(n){t=n}return t&&(e=t.sourceURL||t.fileName||I(t.stack)),e},P=function(){var e,t,r;if(s.currentScript&&(e=s.currentScript.src))return e;if(t=s.getElementsByTagName("script"),1===t.length)return t[0].src||n;if("readyState"in t[0])for(r=t.length;r--;)if("interactive"===t[r].readyState&&(e=t[r].src))return e;return"loading"===s.readyState&&(e=t[t.length-1].src)?e:(e=N())?e:n},j=function(){var e,t,r,i=s.getElementsByTagName("script");for(e=i.length;e--;){if(!(r=i[e].src)){t=null;break}if(r=F(r),null==t)t=r;else if(t!==r){t=null;break}}return t||n},L=function(){var e=F(P())||j()||"";return e+"ZeroClipboard.swf"},R=function(){return null==e.opener&&(!!e.top&&e!=e.top||!!e.parent&&e!=e.parent)}(),U={bridge:null,version:"0.0.0",pluginType:"unknown",disabled:null,outdated:null,sandboxed:null,unavailable:null,degraded:null,deactivated:null,overdue:null,ready:null},V="11.0.0",z={},H={},q=null,Y=0,W=0,B={ready:"Flash communication is established",error:{"flash-disabled":"Flash is disabled or not installed. May also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-outdated":"Flash is too outdated to support ZeroClipboard","flash-sandboxed":"Attempting to run Flash in a sandboxed iframe, which is impossible","flash-unavailable":"Flash is unable to communicate bidirectionally with JavaScript","flash-degraded":"Flash is unable to preserve data fidelity when communicating with JavaScript","flash-deactivated":"Flash is too outdated for your browser and/or is configured as click-to-activate.\nThis may also mean that the ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity.\nMay also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-overdue":"Flash communication was established but NOT within the acceptable time limit","version-mismatch":"ZeroClipboard JS version number does not match ZeroClipboard SWF version number","clipboard-error":"At least one error was thrown while ZeroClipboard was attempting to inject your data into the clipboard","config-mismatch":"ZeroClipboard configuration does not match Flash's reality","swf-not-found":"The ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity"}},G=["flash-unavailable","flash-degraded","flash-overdue","version-mismatch","config-mismatch","clipboard-error"],Z=["flash-disabled","flash-outdated","flash-sandboxed","flash-unavailable","flash-degraded","flash-deactivated","flash-overdue"],Q=new RegExp("^flash-("+Z.map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),J=new RegExp("^flash-("+Z.slice(1).map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),X={swfPath:L(),trustedDomains:e.location.host?[e.location.host]:[],cacheBust:!0,forceEnhancedClipboard:!1,flashLoadTimeout:3e4,autoActivate:!0,bubbleEvents:!0,containerId:"global-zeroclipboard-html-bridge",containerClass:"global-zeroclipboard-container",swfObjectId:"global-zeroclipboard-flash-bridge",hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",forceHandCursor:!1,title:null,zIndex:999999999},K=function(e){if("object"==typeof e&&null!==e)for(var t in e)if(k.call(e,t))if(/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(t))X[t]=e[t];else if(null==U.bridge)if("containerId"===t||"swfObjectId"===t){if(!pe(e[t]))throw new Error("The specified `"+t+"` value is not valid as an HTML4 Element ID");X[t]=e[t]}else X[t]=e[t];{if("string"!=typeof e||!e)return D(X);if(k.call(X,e))return X[e]}},ee=function(){return We(),{browser:A(u,["userAgent","platform","appName"]),flash:T(U,["bridge"]),zeroclipboard:{version:Ge.version,config:Ge.config()}}},te=function(){return!!(U.disabled||U.outdated||U.sandboxed||U.unavailable||U.degraded||U.deactivated)},ne=function(e,t){var i,o,a,s={};if("string"==typeof e&&e)a=e.toLowerCase().split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(i in e)k.call(e,i)&&"string"==typeof i&&i&&"function"==typeof e[i]&&Ge.on(i,e[i]);if(a&&a.length){for(i=0,o=a.length;i<o;i++)e=a[i].replace(/^on/,""),s[e]=!0,z[e]||(z[e]=[]),z[e].push(t);if(s.ready&&U.ready&&Ge.emit({type:"ready"}),s.error){for(i=0,o=Z.length;i<o;i++)if(U[Z[i].replace(/^flash-/,"")]===!0){Ge.emit({type:"error",name:Z[i]});break}r!==n&&Ge.version!==r&&Ge.emit({type:"error",name:"version-mismatch",jsVersion:Ge.version,swfVersion:r})}}return Ge},re=function(e,t){var n,r,i,o,a;if(0===arguments.length)o=w(z);else if("string"==typeof e&&e)o=e.split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(n in e)k.call(e,n)&&"string"==typeof n&&n&&"function"==typeof e[n]&&Ge.off(n,e[n]);if(o&&o.length)for(n=0,r=o.length;n<r;n++)if(e=o[n].toLowerCase().replace(/^on/,""),a=z[e],a&&a.length)if(t)for(i=a.indexOf(t);i!==-1;)a.splice(i,1),i=a.indexOf(t,i);else a.length=0;return Ge},ie=function(e){var t;return t="string"==typeof e&&e?D(z[e])||null:D(z)},oe=function(e){var t,n,r;if(e=me(e),e&&!xe(e))return"ready"===e.type&&U.overdue===!0?Ge.emit({type:"error",name:"flash-overdue"}):(t=E({},e),be.call(this,t),"copy"===e.type&&(r=Te(H),n=r.data,q=r.formatMap),n)},ae=function(){var e=U.sandboxed;if(We(),"boolean"!=typeof U.ready&&(U.ready=!1),U.sandboxed!==e&&U.sandboxed===!0)U.ready=!1,Ge.emit({type:"error",name:"flash-sandboxed"});else if(!Ge.isFlashUnusable()&&null===U.bridge){var t=X.flashLoadTimeout;"number"==typeof t&&t>=0&&(Y=l(function(){"boolean"!=typeof U.deactivated&&(U.deactivated=!0),U.deactivated===!0&&Ge.emit({type:"error",name:"flash-deactivated"})},t)),U.overdue=!1,De()}},se=function(){Ge.clearData(),Ge.blur(),Ge.emit("destroy"),Ae(),Ge.off()},ue=function(e,t){var n;if("object"==typeof e&&e&&"undefined"==typeof t)n=e,Ge.clearData();else{if("string"!=typeof e||!e)return;n={},n[e]=t}for(var r in n)"string"==typeof r&&r&&k.call(n,r)&&"string"==typeof n[r]&&n[r]&&(H[r]=n[r])},le=function(e){"undefined"==typeof e?(M(H),q=null):"string"==typeof e&&k.call(H,e)&&delete H[e]},ce=function(e){return"undefined"==typeof e?D(H):"string"==typeof e&&k.call(H,e)?H[e]:void 0},fe=function(e){if(e&&1===e.nodeType){i&&(Le(i,X.activeClass),i!==e&&Le(i,X.hoverClass)),i=e,je(e,X.hoverClass);var t=e.getAttribute("title")||X.title;if("string"==typeof t&&t){var n=Ee(U.bridge);n&&n.setAttribute("title",t)}var r=X.forceHandCursor===!0||"pointer"===Re(e,"cursor");qe(r),He()}},de=function(){var e=Ee(U.bridge);e&&(e.removeAttribute("title"),e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px"),i&&(Le(i,X.hoverClass),Le(i,X.activeClass),i=null)},he=function(){return i||null},pe=function(e){return"string"==typeof e&&e&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(e)},me=function(e){var t;if("string"==typeof e&&e?(t=e,e={}):"object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(t=e.type),t){t=t.toLowerCase(),!e.target&&(/^(copy|aftercopy|_click)$/.test(t)||"error"===t&&"clipboard-error"===e.name)&&(e.target=o),E(e,{type:t,target:e.target||i||null,relatedTarget:e.relatedTarget||null,currentTarget:U&&U.bridge||null,timeStamp:e.timeStamp||b()||null});var n=B[e.type];return"error"===e.type&&e.name&&n&&(n=n[e.name]),n&&(e.message=n),"ready"===e.type&&E(e,{target:null,version:U.version}),"error"===e.type&&(Q.test(e.name)&&E(e,{target:null,minimumVersion:V}),J.test(e.name)&&E(e,{version:U.version})),"copy"===e.type&&(e.clipboardData={setData:Ge.setData,clearData:Ge.clearData}),"aftercopy"===e.type&&(e=Me(e,q)),e.target&&!e.relatedTarget&&(e.relatedTarget=ge(e.target)),ve(e)}},ge=function(e){var t=e&&e.getAttribute&&e.getAttribute("data-clipboard-target");return t?s.getElementById(t):null},ve=function(e){if(e&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type)){var t=e.target,r="_mouseover"===e.type&&e.relatedTarget?e.relatedTarget:n,i="_mouseout"===e.type&&e.relatedTarget?e.relatedTarget:n,o=Ue(t),u=a.screenLeft||a.screenX||0,l=a.screenTop||a.screenY||0,c=s.body.scrollLeft+s.documentElement.scrollLeft,f=s.body.scrollTop+s.documentElement.scrollTop,d=o.left+("number"==typeof e._stageX?e._stageX:0),h=o.top+("number"==typeof e._stageY?e._stageY:0),p=d-c,m=h-f,g=u+p,v=l+m,$="number"==typeof e.movementX?e.movementX:0,y="number"==typeof e.movementY?e.movementY:0;delete e._stageX,delete e._stageY,E(e,{srcElement:t,fromElement:r,toElement:i,
+screenX:g,screenY:v,pageX:d,pageY:h,clientX:p,clientY:m,x:p,y:m,movementX:$,movementY:y,offsetX:0,offsetY:0,layerX:0,layerY:0})}return e},$e=function(e){var t=e&&"string"==typeof e.type&&e.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(t)},ye=function(e,t,n,r){r?l(function(){e.apply(t,n)},0):e.apply(t,n)},be=function(e){if("object"==typeof e&&e&&e.type){var t=$e(e),n=z["*"]||[],r=z[e.type]||[],i=n.concat(r);if(i&&i.length){var o,s,u,l,c,f=this;for(o=0,s=i.length;o<s;o++)u=i[o],l=f,"string"==typeof u&&"function"==typeof a[u]&&(u=a[u]),"object"==typeof u&&u&&"function"==typeof u.handleEvent&&(l=u,u=u.handleEvent),"function"==typeof u&&(c=E({},e),ye(u,l,[c],t))}return this}},we=function(e){var t=null;return(R===!1||e&&"error"===e.type&&e.name&&G.indexOf(e.name)!==-1)&&(t=!1),t},xe=function(e){var t=e.target||i||null,n="swf"===e._source;switch(delete e._source,e.type){case"error":var a="flash-sandboxed"===e.name||we(e);"boolean"==typeof a&&(U.sandboxed=a),Z.indexOf(e.name)!==-1?E(U,{disabled:"flash-disabled"===e.name,outdated:"flash-outdated"===e.name,unavailable:"flash-unavailable"===e.name,degraded:"flash-degraded"===e.name,deactivated:"flash-deactivated"===e.name,overdue:"flash-overdue"===e.name,ready:!1}):"version-mismatch"===e.name&&(r=e.swfVersion,E(U,{disabled:!1,outdated:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1})),ze();break;case"ready":r=e.swfVersion;var s=U.deactivated===!0;E(U,{disabled:!1,outdated:!1,sandboxed:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:s,ready:!s}),ze();break;case"beforecopy":o=t;break;case"copy":var u,l,c=e.relatedTarget;!H["text/html"]&&!H["text/plain"]&&c&&(l=c.value||c.outerHTML||c.innerHTML)&&(u=c.value||c.textContent||c.innerText)?(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",u),l!==u&&e.clipboardData.setData("text/html",l)):!H["text/plain"]&&e.target&&(u=e.target.getAttribute("data-clipboard-text"))&&(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",u));break;case"aftercopy":ke(e),Ge.clearData(),t&&t!==Pe()&&t.focus&&t.focus();break;case"_mouseover":Ge.focus(t),X.bubbleEvents===!0&&n&&(t&&t!==e.relatedTarget&&!O(e.relatedTarget,t)&&Ce(E({},e,{type:"mouseenter",bubbles:!1,cancelable:!1})),Ce(E({},e,{type:"mouseover"})));break;case"_mouseout":Ge.blur(),X.bubbleEvents===!0&&n&&(t&&t!==e.relatedTarget&&!O(e.relatedTarget,t)&&Ce(E({},e,{type:"mouseleave",bubbles:!1,cancelable:!1})),Ce(E({},e,{type:"mouseout"})));break;case"_mousedown":je(t,X.activeClass),X.bubbleEvents===!0&&n&&Ce(E({},e,{type:e.type.slice(1)}));break;case"_mouseup":Le(t,X.activeClass),X.bubbleEvents===!0&&n&&Ce(E({},e,{type:e.type.slice(1)}));break;case"_click":o=null,X.bubbleEvents===!0&&n&&Ce(E({},e,{type:e.type.slice(1)}));break;case"_mousemove":X.bubbleEvents===!0&&n&&Ce(E({},e,{type:e.type.slice(1)}))}if(/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type))return!0},ke=function(e){if(e.errors&&e.errors.length>0){var t=D(e);E(t,{type:"error",name:"clipboard-error"}),delete t.success,l(function(){Ge.emit(t)},0)}},Ce=function(e){if(e&&"string"==typeof e.type&&e){var t,n=e.target||null,r=n&&n.ownerDocument||s,i={view:r.defaultView||a,canBubble:!0,cancelable:!0,detail:"click"===e.type?1:0,button:"number"==typeof e.which?e.which-1:"number"==typeof e.button?e.button:r.createEvent?0:1},o=E(i,e);n&&r.createEvent&&n.dispatchEvent&&(o=[o.type,o.canBubble,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget],t=r.createEvent("MouseEvents"),t.initMouseEvent&&(t.initMouseEvent.apply(t,o),t._source="js",n.dispatchEvent(t)))}},Se=function(){var e=X.flashLoadTimeout;if("number"==typeof e&&e>=0){var t=Math.min(1e3,e/10),n=X.swfObjectId+"_fallbackContent";W=f(function(){var e=s.getElementById(n);Ve(e)&&(ze(),U.deactivated=null,Ge.emit({type:"error",name:"swf-not-found"}))},t)}},_e=function(){var e=s.createElement("div");return e.id=X.containerId,e.className=X.containerClass,e.style.position="absolute",e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px",e.style.zIndex=""+Ye(X.zIndex),e},Ee=function(e){for(var t=e&&e.parentNode;t&&"OBJECT"===t.nodeName&&t.parentNode;)t=t.parentNode;return t||null},De=function(){var e,t=U.bridge,n=Ee(t);if(!t){var r=Ne(a.location.host,X),i="never"===r?"none":"all",o=Fe(E({jsVersion:Ge.version},X)),u=X.swfPath+Oe(X.swfPath,X);n=_e();var l=s.createElement("div");n.appendChild(l),s.body.appendChild(n);var c=s.createElement("div"),f="activex"===U.pluginType;c.innerHTML='<object id="'+X.swfObjectId+'" name="'+X.swfObjectId+'" width="100%" height="100%" '+(f?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'type="application/x-shockwave-flash" data="'+u+'"')+">"+(f?'<param name="movie" value="'+u+'"/>':"")+'<param name="allowScriptAccess" value="'+r+'"/><param name="allowNetworking" value="'+i+'"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+o+'"/><div id="'+X.swfObjectId+'_fallbackContent"> </div></object>',t=c.firstChild,c=null,S(t).ZeroClipboard=Ge,n.replaceChild(t,l),Se()}return t||(t=s[X.swfObjectId],t&&(e=t.length)&&(t=t[e-1]),!t&&n&&(t=n.firstChild)),U.bridge=t||null,t},Ae=function(){var e=U.bridge;if(e){var t=Ee(e);t&&("activex"===U.pluginType&&"readyState"in e?(e.style.display="none",function i(){if(4===e.readyState){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t)}else l(i,10)}()):(e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t))),ze(),U.ready=null,U.bridge=null,U.deactivated=null,r=n}},Te=function(e){var t={},n={};if("object"==typeof e&&e){for(var r in e)if(r&&k.call(e,r)&&"string"==typeof e[r]&&e[r])switch(r.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":t.text=e[r],n.text=r;break;case"text/html":case"html":case"air:html":case"flash:html":t.html=e[r],n.html=r;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":t.rtf=e[r],n.rtf=r}return{data:t,formatMap:n}}},Me=function(e,t){if("object"!=typeof e||!e||"object"!=typeof t||!t)return e;var n={};for(var r in e)if(k.call(e,r))if("errors"===r){n[r]=e[r]?e[r].slice():[];for(var i=0,o=n[r].length;i<o;i++)n[r][i].format=t[n[r][i].format]}else if("success"!==r&&"data"!==r)n[r]=e[r];else{n[r]={};var a=e[r];for(var s in a)s&&k.call(a,s)&&k.call(t,s)&&(n[r][t[s]]=a[s])}return n},Oe=function(e,t){var n=null==t||t&&t.cacheBust===!0;return n?(e.indexOf("?")===-1?"?":"&")+"noCache="+b():""},Fe=function(e){var t,n,r,i,o="",s=[];if(e.trustedDomains&&("string"==typeof e.trustedDomains?i=[e.trustedDomains]:"object"==typeof e.trustedDomains&&"length"in e.trustedDomains&&(i=e.trustedDomains)),i&&i.length)for(t=0,n=i.length;t<n;t++)if(k.call(i,t)&&i[t]&&"string"==typeof i[t]){if(r=Ie(i[t]),!r)continue;if("*"===r){s.length=0,s.push(r);break}s.push.apply(s,[r,"//"+r,a.location.protocol+"//"+r])}return s.length&&(o+="trustedOrigins="+p(s.join(","))),e.forceEnhancedClipboard===!0&&(o+=(o?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof e.swfObjectId&&e.swfObjectId&&(o+=(o?"&":"")+"swfObjectId="+p(e.swfObjectId)),"string"==typeof e.jsVersion&&e.jsVersion&&(o+=(o?"&":"")+"jsVersion="+p(e.jsVersion)),o},Ie=function(e){if(null==e||""===e)return null;if(e=e.replace(/^\s+|\s+$/g,""),""===e)return null;var t=e.indexOf("//");e=t===-1?e:e.slice(t+2);var n=e.indexOf("/");return e=n===-1?e:t===-1||0===n?null:e.slice(0,n),e&&".swf"===e.slice(-4).toLowerCase()?null:e||null},Ne=function(){var e=function(e){var t,n,r,i=[];if("string"==typeof e&&(e=[e]),"object"!=typeof e||!e||"number"!=typeof e.length)return i;for(t=0,n=e.length;t<n;t++)if(k.call(e,t)&&(r=Ie(e[t]))){if("*"===r){i.length=0,i.push("*");break}i.indexOf(r)===-1&&i.push(r)}return i};return function(t,n){var r=Ie(n.swfPath);null===r&&(r=t);var i=e(n.trustedDomains),o=i.length;if(o>0){if(1===o&&"*"===i[0])return"always";if(i.indexOf(t)!==-1)return 1===o&&t===r?"sameDomain":"always"}return"never"}}(),Pe=function(){try{return s.activeElement}catch(e){return null}},je=function(e,t){var n,r,i,o=[];if("string"==typeof t&&t&&(o=t.split(/\s+/)),e&&1===e.nodeType&&o.length>0)if(e.classList)for(n=0,r=o.length;n<r;n++)e.classList.add(o[n]);else if(e.hasOwnProperty("className")){for(i=" "+e.className+" ",n=0,r=o.length;n<r;n++)i.indexOf(" "+o[n]+" ")===-1&&(i+=o[n]+" ");e.className=i.replace(/^\s+|\s+$/g,"")}return e},Le=function(e,t){var n,r,i,o=[];if("string"==typeof t&&t&&(o=t.split(/\s+/)),e&&1===e.nodeType&&o.length>0)if(e.classList&&e.classList.length>0)for(n=0,r=o.length;n<r;n++)e.classList.remove(o[n]);else if(e.className){for(i=(" "+e.className+" ").replace(/[\r\n\t]/g," "),n=0,r=o.length;n<r;n++)i=i.replace(" "+o[n]+" "," ");e.className=i.replace(/^\s+|\s+$/g,"")}return e},Re=function(e,t){var n=h(e,null).getPropertyValue(t);return"cursor"!==t||n&&"auto"!==n||"A"!==e.nodeName?n:"pointer"},Ue=function(e){var t={left:0,top:0,width:0,height:0};if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),r=a.pageXOffset,i=a.pageYOffset,o=s.documentElement.clientLeft||0,u=s.documentElement.clientTop||0,l=0,c=0;if("relative"===Re(s.body,"position")){var f=s.body.getBoundingClientRect(),d=s.documentElement.getBoundingClientRect();l=f.left-d.left||0,c=f.top-d.top||0}t.left=n.left+r-o-l,t.top=n.top+i-u-c,t.width="width"in n?n.width:n.right-n.left,t.height="height"in n?n.height:n.bottom-n.top}return t},Ve=function(e){if(!e)return!1;var t=h(e,null),n=$(t.height)>0,r=$(t.width)>0,i=$(t.top)>=0,o=$(t.left)>=0,a=n&&r&&i&&o,s=a?null:Ue(e),u="none"!==t.display&&"collapse"!==t.visibility&&(a||!!s&&(n||s.height>0)&&(r||s.width>0)&&(i||s.top>=0)&&(o||s.left>=0));return u},ze=function(){c(Y),Y=0,d(W),W=0},He=function(){var e;if(i&&(e=Ee(U.bridge))){var t=Ue(i);E(e.style,{width:t.width+"px",height:t.height+"px",top:t.top+"px",left:t.left+"px",zIndex:""+Ye(X.zIndex)})}},qe=function(e){U.ready===!0&&(U.bridge&&"function"==typeof U.bridge.setHandCursor?U.bridge.setHandCursor(e):U.ready=!1)},Ye=function(e){if(/^(?:auto|inherit)$/.test(e))return e;var t;return"number"!=typeof e||y(e)?"string"==typeof e&&(t=Ye(v(e,10))):t=e,"number"==typeof t?t:"auto"},We=function(t){var n,r,i,o=U.sandboxed,a=null;if(t=t===!0,R===!1)a=!1;else{try{r=e.frameElement||null}catch(s){i={name:s.name,message:s.message}}if(r&&1===r.nodeType&&"IFRAME"===r.nodeName)try{a=r.hasAttribute("sandbox")}catch(s){a=null}else{try{n=document.domain||null}catch(s){n=null}(null===n||i&&"SecurityError"===i.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(i.message.toLowerCase()))&&(a=!0)}}return U.sandboxed=a,o===a||t||Be(m),a},Be=function(e){function t(e){var t=e.match(/[\d]+/g);return t.length=3,t.join(".")}function n(e){return!!e&&(e=e.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(e)||"chrome.plugin"===e.slice(-13))}function r(e){e&&(s=!0,e.version&&(f=t(e.version)),!f&&e.description&&(f=t(e.description)),e.filename&&(c=n(e.filename)))}var i,o,a,s=!1,l=!1,c=!1,f="";if(u.plugins&&u.plugins.length)i=u.plugins["Shockwave Flash"],r(i),u.plugins["Shockwave Flash 2.0"]&&(s=!0,f="2.0.0.11");else if(u.mimeTypes&&u.mimeTypes.length)a=u.mimeTypes["application/x-shockwave-flash"],i=a&&a.enabledPlugin,r(i);else if("undefined"!=typeof e){l=!0;try{o=new e("ShockwaveFlash.ShockwaveFlash.7"),s=!0,f=t(o.GetVariable("$version"))}catch(d){try{o=new e("ShockwaveFlash.ShockwaveFlash.6"),s=!0,f="6.0.21"}catch(h){try{o=new e("ShockwaveFlash.ShockwaveFlash"),s=!0,f=t(o.GetVariable("$version"))}catch(p){l=!1}}}}U.disabled=s!==!0,U.outdated=f&&$(f)<$(V),U.version=f||"0.0.0",U.pluginType=c?"pepper":l?"activex":s?"netscape":"unknown"};Be(m),We(!0);var Ge=function(){return this instanceof Ge?void("function"==typeof Ge._createClient&&Ge._createClient.apply(this,_(arguments))):new Ge};x(Ge,"version",{value:"2.2.0",writable:!1,configurable:!0,enumerable:!0}),Ge.config=function(){return K.apply(this,_(arguments))},Ge.state=function(){return ee.apply(this,_(arguments))},Ge.isFlashUnusable=function(){return te.apply(this,_(arguments))},Ge.on=function(){return ne.apply(this,_(arguments))},Ge.off=function(){return re.apply(this,_(arguments))},Ge.handlers=function(){return ie.apply(this,_(arguments))},Ge.emit=function(){return oe.apply(this,_(arguments))},Ge.create=function(){return ae.apply(this,_(arguments))},Ge.destroy=function(){return se.apply(this,_(arguments))},Ge.setData=function(){return ue.apply(this,_(arguments))},Ge.clearData=function(){return le.apply(this,_(arguments))},Ge.getData=function(){return ce.apply(this,_(arguments))},Ge.focus=Ge.activate=function(){return fe.apply(this,_(arguments))},Ge.blur=Ge.deactivate=function(){return de.apply(this,_(arguments))},Ge.activeElement=function(){return he.apply(this,_(arguments))};var Ze=0,Qe={},Je=0,Xe={},Ke={};E(X,{autoActivate:!0});var et=function(e){var t=this;t.id=""+Ze++,Qe[t.id]={instance:t,elements:[],handlers:{}},e&&t.clip(e),Ge.on("*",function(e){return t.emit(e)}),Ge.on("destroy",function(){t.destroy()}),Ge.create()},tt=function(e,t){var i,o,a,s={},u=Qe[this.id],l=u&&u.handlers;if(!u)throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");if("string"==typeof e&&e)a=e.toLowerCase().split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(i in e)k.call(e,i)&&"string"==typeof i&&i&&"function"==typeof e[i]&&this.on(i,e[i]);if(a&&a.length){for(i=0,o=a.length;i<o;i++)e=a[i].replace(/^on/,""),s[e]=!0,l[e]||(l[e]=[]),l[e].push(t);if(s.ready&&U.ready&&this.emit({type:"ready",client:this}),s.error){for(i=0,o=Z.length;i<o;i++)if(U[Z[i].replace(/^flash-/,"")]){this.emit({type:"error",name:Z[i],client:this});break}r!==n&&Ge.version!==r&&this.emit({type:"error",name:"version-mismatch",jsVersion:Ge.version,swfVersion:r})}}return this},nt=function(e,t){var n,r,i,o,a,s=Qe[this.id],u=s&&s.handlers;if(!u)return this;if(0===arguments.length)o=w(u);else if("string"==typeof e&&e)o=e.split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(n in e)k.call(e,n)&&"string"==typeof n&&n&&"function"==typeof e[n]&&this.off(n,e[n]);if(o&&o.length)for(n=0,r=o.length;n<r;n++)if(e=o[n].toLowerCase().replace(/^on/,""),a=u[e],a&&a.length)if(t)for(i=a.indexOf(t);i!==-1;)a.splice(i,1),i=a.indexOf(t,i);else a.length=0;return this},rt=function(e){var t=null,n=Qe[this.id]&&Qe[this.id].handlers;return n&&(t="string"==typeof e&&e?n[e]?n[e].slice(0):[]:D(n)),t},it=function(e){if(lt.call(this,e)){"object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(e=E({},e));var t=E({},me(e),{client:this});ct.call(this,t)}return this},ot=function(e){if(!Qe[this.id])throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");e=ft(e);for(var t=0;t<e.length;t++)if(k.call(e,t)&&e[t]&&1===e[t].nodeType){e[t].zcClippingId?Xe[e[t].zcClippingId].indexOf(this.id)===-1&&Xe[e[t].zcClippingId].push(this.id):(e[t].zcClippingId="zcClippingId_"+Je++,Xe[e[t].zcClippingId]=[this.id],X.autoActivate===!0&&dt(e[t]));var n=Qe[this.id]&&Qe[this.id].elements;n.indexOf(e[t])===-1&&n.push(e[t])}return this},at=function(e){var t=Qe[this.id];if(!t)return this;var n,r=t.elements;e="undefined"==typeof e?r.slice(0):ft(e);for(var i=e.length;i--;)if(k.call(e,i)&&e[i]&&1===e[i].nodeType){for(n=0;(n=r.indexOf(e[i],n))!==-1;)r.splice(n,1);var o=Xe[e[i].zcClippingId];if(o){for(n=0;(n=o.indexOf(this.id,n))!==-1;)o.splice(n,1);0===o.length&&(X.autoActivate===!0&&ht(e[i]),delete e[i].zcClippingId)}}return this},st=function(){var e=Qe[this.id];return e&&e.elements?e.elements.slice(0):[]},ut=function(){Qe[this.id]&&(this.unclip(),this.off(),delete Qe[this.id])},lt=function(e){if(!e||!e.type)return!1;if(e.client&&e.client!==this)return!1;var t=Qe[this.id],n=t&&t.elements,r=!!n&&n.length>0,i=!e.target||r&&n.indexOf(e.target)!==-1,o=e.relatedTarget&&r&&n.indexOf(e.relatedTarget)!==-1,a=e.client&&e.client===this;return!(!t||!(i||o||a))},ct=function(e){var t=Qe[this.id];if("object"==typeof e&&e&&e.type&&t){var n=$e(e),r=t&&t.handlers["*"]||[],i=t&&t.handlers[e.type]||[],o=r.concat(i);if(o&&o.length){var s,u,l,c,f,d=this;for(s=0,u=o.length;s<u;s++)l=o[s],c=d,"string"==typeof l&&"function"==typeof a[l]&&(l=a[l]),"object"==typeof l&&l&&"function"==typeof l.handleEvent&&(c=l,l=l.handleEvent),"function"==typeof l&&(f=E({},e),ye(l,c,[f],n))}}},ft=function(e){return"string"==typeof e&&(e=[]),"number"!=typeof e.length?[e]:e},dt=function(e){if(e&&1===e.nodeType){var t=function(e){(e||(e=a.event))&&("js"!==e._source&&(e.stopImmediatePropagation(),e.preventDefault()),delete e._source)},n=function(n){(n||(n=a.event))&&(t(n),Ge.focus(e))};e.addEventListener("mouseover",n,!1),e.addEventListener("mouseout",t,!1),e.addEventListener("mouseenter",t,!1),e.addEventListener("mouseleave",t,!1),e.addEventListener("mousemove",t,!1),Ke[e.zcClippingId]={mouseover:n,mouseout:t,mouseenter:t,mouseleave:t,mousemove:t}}},ht=function(e){if(e&&1===e.nodeType){var t=Ke[e.zcClippingId];if("object"==typeof t&&t){for(var n,r,i=["move","leave","enter","out","over"],o=0,a=i.length;o<a;o++)n="mouse"+i[o],r=t[n],"function"==typeof r&&e.removeEventListener(n,r,!1);delete Ke[e.zcClippingId]}}};Ge._createClient=function(){et.apply(this,_(arguments))},Ge.prototype.on=function(){return tt.apply(this,_(arguments))},Ge.prototype.off=function(){return nt.apply(this,_(arguments))},Ge.prototype.handlers=function(){return rt.apply(this,_(arguments))},Ge.prototype.emit=function(){return it.apply(this,_(arguments))},Ge.prototype.clip=function(){return ot.apply(this,_(arguments))},Ge.prototype.unclip=function(){return at.apply(this,_(arguments))},Ge.prototype.elements=function(){return st.apply(this,_(arguments))},Ge.prototype.destroy=function(){return ut.apply(this,_(arguments))},Ge.prototype.setText=function(e){if(!Qe[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.setData("text/plain",e),this},Ge.prototype.setHtml=function(e){if(!Qe[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.setData("text/html",e),this},Ge.prototype.setRichText=function(e){if(!Qe[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.setData("application/rtf",e),this},Ge.prototype.setData=function(){if(!Qe[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.setData.apply(this,_(arguments)),this},Ge.prototype.clearData=function(){if(!Qe[this.id])throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.clearData.apply(this,_(arguments)),this},Ge.prototype.getData=function(){if(!Qe[this.id])throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");return Ge.getData.apply(this,_(arguments))},"function"==typeof define&&define.amd?define(function(){return Ge}):"object"==typeof t&&t&&"object"==typeof t.exports&&t.exports?t.exports=Ge:e.ZeroClipboard=Ge}(function(){return this||window}())},{}],14:[function(e,t,n){t.exports='<div class="dropzone-container">\n <div class="dz-message">Drop files or click here to upload</div>\n</div>'},{}],15:[function(e,t,n){t.exports='\n<div class="image-picker">\n <div>\n <img ng-if="image && image !== \'none\'" ng-src="{{image}}" ng-class="{{imageClass}}" alt="Image Preview">\n <img ng-if="image === \'\' && defaultImage" ng-src="{{defaultImage}}" ng-class="{{imageClass}}" alt="Image Preview">\n </div>\n <button class="button" type="button" ng-click="showImageManager()">Select Image</button>\n <br>\n\n <button class="text-button" ng-click="reset()" type="button">Reset</button>\n <span ng-show="showRemove" class="sep">|</span>\n <button ng-show="showRemove" class="text-button neg" ng-click="remove()" type="button">Remove</button>\n\n <input type="hidden" ng-attr-name="{{name}}" ng-attr-id="{{name}}" ng-attr-value="{{value}}">\n</div>'},{}],16:[function(e,t,n){t.exports='<div class="toggle-switch" ng-click="switch()" ng-class="{\'active\': isActive}">\n <input type="hidden" ng-attr-name="{{name}}" ng-attr-value="{{value}}"/>\n <div class="switch-handle"></div>\n</div>'},{}],17:[function(e,t,n){"use strict";var r=e("moment");t.exports=function(t,n){t.controller("ImageManagerController",["$scope","$attrs","$http","$timeout","imageManagerService",function(e,t,r,i,o){function a(){e.searching=!1,e.searchTerm="",e.images=m,e.hasMore=g}function s(t){p&&p(t),e.hide()}function u(t){p=t,e.showing=!0,$("#image-manager").find(".overlay").css("display","flex").hide().fadeIn(240),h||(l(),h=!0)}function l(){var t=v+c+"?",n={};e.uploadedTo&&(n.page_id=e.uploadedTo),e.searching&&(n.term=e.searchTerm);var i=Object.keys(n).map(function(e){return e+"="+encodeURIComponent(n[e])}).join("&");t+=i,r.get(t).then(function(t){e.images=e.images.concat(t.data.images),e.hasMore=t.data.hasMore,c++})}e.images=[],e.imageType=t.imageType,e.selectedImage=!1,e.dependantPages=!1,e.showing=!1,e.hasMore=!1,e.imageUpdateSuccess=!1,e.imageDeleteSuccess=!1,e.uploadedTo=t.uploadedTo,e.view="all",e.searching=!1,e.searchTerm="";var c=0,f=0,d=0,h=!1,p=!1,m=[],g=!1;e.getUploadUrl=function(){return window.baseUrl("/images/"+e.imageType+"/upload")},e.cancelSearch=a,e.uploadSuccess=function(t,r){e.$apply(function(){e.images.unshift(r)}),n.emit("success","Image uploaded")},e.imageSelect=function(t){var n=300,r=Date.now(),i=r-f;i<n&&t.id===d?s(t):(e.selectedImage=t,e.dependantPages=!1),f=r,d=t.id},e.selectButtonClick=function(){s(e.selectedImage)},o.show=u,o.showExternal=function(t){e.$apply(function(){u(t)})},window.ImageManager=o,e.hide=function(){e.showing=!1,$("#image-manager").find(".overlay").fadeOut(240)};var v=window.baseUrl("/images/"+e.imageType+"/all/");e.fetchData=l,e.searchImages=function(){return""===e.searchTerm?void a():(e.searching||(m=e.images,g=e.hasMore),e.searching=!0,e.images=[],e.hasMore=!1,c=0,v=window.baseUrl("/images/"+e.imageType+"/search/"),void l())},e.setView=function(t){a(),e.images=[],e.hasMore=!1,c=0,e.view=t,v=window.baseUrl("/images/"+e.imageType+"/"+t+"/"),l()},e.saveImageDetails=function(t){t.preventDefault();var i=window.baseUrl("/images/update/"+e.selectedImage.id);r.put(i,this.selectedImage).then(function(e){n.emit("success","Image details updated")},function(e){if(422===e.status){var t=e.data,r="";Object.keys(t).forEach(function(e){r+=t[e].join("\n")}),n.emit("error",r)}else 403===e.status&&n.emit("error",e.data.error)})},e.deleteImage=function(t){t.preventDefault();var i=e.dependantPages!==!1,o=window.baseUrl("/images/"+e.selectedImage.id);i&&(o+="?force=true"),r["delete"](o).then(function(t){e.images.splice(e.images.indexOf(e.selectedImage),1),e.selectedImage=!1,n.emit("success","Image successfully deleted")},function(t){400===t.status?e.dependantPages=t.data:403===t.status&&n.emit("error",t.data.error)})},e.getDate=function(e){return new Date(e)}}]),t.controller("BookShowController",["$scope","$http","$attrs","$sce",function(e,t,n,r){e.searching=!1,e.searchTerm="",e.searchResults="",e.searchBook=function(i){i.preventDefault();var o=e.searchTerm;if(0!=o.length){e.searching=!0,e.searchResults="";var a=window.baseUrl("/search/book/"+n.bookId);a+="?term="+encodeURIComponent(o),t.get(a).then(function(t){e.searchResults=r.trustAsHtml(t.data)})}},e.checkSearchForm=function(){e.searchTerm.length<1&&(e.searching=!1)},e.clearSearch=function(){e.searching=!1,e.searchTerm=""}}]),t.controller("PageEditController",["$scope","$http","$attrs","$interval","$timeout","$sce",function(t,i,o,a,s,u){function l(){v.title=$("#name").val(),v.html=t.editContent,g=a(function(){var e=$("#name").val(),n=t.editContent;e===v.title&&n===v.html||(v.html=n,v.title=e,c())},1e3*p)}function c(){var e={name:$("#name").val(),html:m?u.getTrustedHtml(t.displayContent):t.editContent};m&&(e.markdown=t.editContent);var n=window.baseUrl("/ajax/page/"+d+"/save-draft");i.put(n,e).then(function(e){var n=r.utc(r.unix(e.data.timestamp)).toDate();t.draftText=e.data.message+r(n).format("HH:mm"),t.isNewPageDraft||(t.isUpdateDraft=!0),f()})}function f(){t.draftUpdated=!0,s(function(){t.draftUpdated=!1},2e3)}t.editorOptions=e("./pages/page-form"),t.editContent="",t.draftText="";var d=Number(o.pageId),h=0!==d,p=30,m="markdown"===o.editorType;t.isUpdateDraft=1===Number(o.pageUpdateDraft),t.isNewPageDraft=1===Number(o.pageNewDraft),t.isUpdateDraft||t.isNewPageDraft?t.draftText="Editing Draft":t.draftText="Editing Page";var g=!1,v={title:!1,html:!1};h&&setTimeout(function(){l()},1e3),m&&(t.displayContent="",t.editorChange=function(e){t.displayContent=u.trustAsHtml(e)}),m||(t.editorChange=function(){}),t.forceDraftSave=function(){c()},t.$on("editor-keydown",function(e,t){83==t.keyCode&&(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)&&(t.preventDefault(),c())}),t.discardDraft=function(){var e=window.baseUrl("/ajax/page/"+d);i.get(e).then(function(e){g&&a.cancel(g),t.draftText="Editing Page",t.isUpdateDraft=!1,t.$broadcast("html-update",e.data.html),t.$broadcast("markdown-update",e.data.markdown||e.data.html),$("#name").val(e.data.name),s(function(){l()},1e3),n.emit("success","Draft discarded, The editor has been updated with the current page content")})}}]),t.controller("PageTagController",["$scope","$http","$attrs",function(e,t,r){function i(){e.tags.push({name:"",value:""})}function o(){var n=window.baseUrl("/ajax/tags/get/page/"+s);t.get(n).then(function(t){e.tags=t.data,i()})}function a(){for(var t=0;t<e.tags.length;t++)e.tags[t].order=t}var s=Number(r.pageId);e.tags=[],e.sortOptions={handle:".handle",items:"> tr",containment:"parent",axis:"y"},e.addEmptyTag=i,o(),e.tagChange=function(t){var n=e.tags.indexOf(t);n===e.tags.length-1&&(""===t.name&&""===t.value||i())},e.tagBlur=function(t){var n=e.tags.length-1===e.tags.indexOf(t);if(""===t.name&&""===t.value&&!n){var r=e.tags.indexOf(t);e.tags.splice(r,1)}},e.saveTags=function(){a();var r={tags:e.tags},o=window.baseUrl("/ajax/tags/update/page/"+s);t.post(o,r).then(function(t){e.tags=t.data.tags,i(),n.emit("success",t.data.message)})},e.removeTag=function(t){var n=e.tags.indexOf(t);e.tags.splice(n,1)}}])}},{"./pages/page-form":20,moment:12}],18:[function(e,t,n){"use strict";var r=e("dropzone"),i=e("marked"),o=e("./components/toggle-switch.html"),a=e("./components/image-picker.html"),s=e("./components/drop-zone.html");t.exports=function(e,t){e.directive("toggleSwitch",function(){return{restrict:"A",template:o,scope:!0,link:function(e,t,n){e.name=n.name,e.value=n.value,e.isActive=1==e.value&&"false"!=e.value,e.value=1==e.value&&"false"!=e.value?"true":"false",e["switch"]=function(){e.isActive=!e.isActive,e.value=e.isActive?"true":"false"}}}}),e.directive("imagePicker",["$http","imageManagerService",function(e,t){return{restrict:"E",template:a,scope:{name:"@",resizeHeight:"@",resizeWidth:"@",resizeCrop:"@",showRemove:"=",currentImage:"@",currentId:"@",defaultImage:"@",imageClass:"@"},link:function(n,r,i){function o(e,t){n.image=t,n.value=a?e.id:t}var a="undefined"!=typeof n.currentId||"false"===n.currentId;n.image=n.currentImage,n.value=n.currentImage||"",a&&(n.value=n.currentId),n.reset=function(){o({id:0},n.defaultImage)},n.remove=function(){n.image="none",n.value="none"},n.showImageManager=function(){t.show(function(e){n.updateImageFromModel(e)})},n.updateImageFromModel=function(t){var r=n.resizeWidth&&n.resizeHeight;if(!r)return void n.$apply(function(){o(t,t.url)});var i=n.resizeCrop?"true":"false",a="/images/thumb/"+t.id+"/"+n.resizeWidth+"/"+n.resizeHeight+"/"+i;a=window.baseUrl(a),e.get(a).then(function(e){o(t,e.data.url)})}}}}]),e.directive("dropZone",[function(){return{restrict:"E",template:s,scope:{uploadUrl:"@",eventSuccess:"=",eventError:"=",uploadedTo:"@"},link:function(e,t,n){new r(t[0].querySelector(".dropzone-container"),{url:e.uploadUrl,init:function(){var t=this;t.on("sending",function(t,n,r){var i=window.document.querySelector("meta[name=token]").getAttribute("content");r.append("_token",i);var o="undefined"==typeof e.uploadedTo?0:e.uploadedTo;r.append("uploaded_to",o)}),"undefined"!=typeof e.eventSuccess&&t.on("success",e.eventSuccess),t.on("success",function(e,n){$(e.previewElement).fadeOut(400,function(){t.removeFile(e)})}),"undefined"!=typeof e.eventError&&t.on("error",e.eventError),t.on("error",function(e,t,n){function r(t){$(e.previewElement).find("[data-dz-errormessage]").text(t)}console.log(t),console.log(n),413===n.status&&r("The server does not allow uploads of this size. Please try a smaller file."),t.file&&r(t.file[0])})}})}}}]),e.directive("dropdown",[function(){return{restrict:"A",link:function(e,t,n){var r=t.find("ul");t.find("[dropdown-toggle]").on("click",function(){r.show().addClass("anim menuIn");var e=r.find("input"),n=e.length>0;n&&(e.first().focus(),t.on("keypress","input",function(e){if(13===e.keyCode)return e.preventDefault(),r.hide(),r.removeClass("anim menuIn"),!1})),t.mouseleave(function(){r.hide(),r.removeClass("anim menuIn")})})}}}]),e.directive("tinymce",["$timeout",function(e){return{restrict:"A",scope:{tinymce:"=",mceModel:"=",mceChange:"="},link:function(t,n,r){function i(n){n.on("ExecCommand change NodeChange ObjectResized",function(r){var i=n.getContent();e(function(){t.mceModel=i}),t.mceChange(i)}),n.on("keydown",function(e){t.$emit("editor-keydown",e)}),n.on("init",function(e){t.mceModel=n.getContent()}),t.$on("html-update",function(e,r){n.setContent(r),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),t.mceModel=n.getContent()})}t.tinymce.extraSetups.push(i),tinymce.PluginManager.add("customhr",function(e){e.addCommand("InsertHorizontalRule",function(){var t=document.createElement("hr"),n=e.selection.getNode(),r=n.parentNode;r.insertBefore(t,n)}),e.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),e.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})}),tinymce.init(t.tinymce)}}}]),e.directive("markdownInput",["$timeout",function(e){return{restrict:"A",scope:{mdModel:"=",mdChange:"="},link:function(t,n,r){n=n.find("textarea").first();var o=n.val();t.mdModel=o,t.mdChange(i(o)),n.on("change input",function(r){o=n.val(),e(function(){t.mdModel=o,t.mdChange(i(o))})}),t.$on("markdown-update",function(e,r){n.val(r),t.mdModel=r,t.mdChange(i(r))})}}}]),e.directive("markdownEditor",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){function r(){h=u[0].scrollHeight,p=u.height(),m=l[0].scrollHeight,g=l.height()}function i(){window.showEntityLinkSelector(function(e){var t=d,n=u[0].selectionEnd,r=n!==t,i=u.val();if(r){var o=i.substring(t,n),a="["+o+"]("+e.link+")";u.val(i.substring(0,t)+a+i.substring(n))}else{var s=" ["+e.name+"]("+e.link+") ";u.val(i.substring(0,t)+s+i.substring(t))}u.change()})}function o(e){if(e=e.originalEvent,e.clipboardData){var t=e.clipboardData.items;if(t)for(var n=0;n<t.length;n++)s(t[n].getAsFile())}}function a(e){e.stopPropagation(),e.preventDefault();for(var t=e.originalEvent.dataTransfer.files,n=0;n<t.length;n++)s(t[n])}function s(e){if(0===e.type.indexOf("image")){var t=new FormData,n="png",r=new XMLHttpRequest;if(e.name){var i=e.name.match(/\.(.+)$/);i&&(n=i[1])}var o="image-"+Math.random().toString(16).slice(2),a=u[0].selectionStart,s=u[0].selectionEnd,l=u[0].value,c=l.substring(a,s),f=window.baseUrl("/loading.gif#upload"+o),d=(s>a?"!["+c+"]":"![]")+("("+f+")");u[0].value=l.substring(0,a)+d+l.substring(s),u.focus(),u[0].selectionStart=a,u[0].selectionEnd=a;var h="image-"+Date.now()+"."+n;t.append("file",e,h),t.append("_token",document.querySelector('meta[name="token"]').getAttribute("content")),r.open("POST",window.baseUrl("/images/gallery/upload")),r.onload=function(){var e=u[0].selectionStart;if(200===r.status||201===r.status){var t=JSON.parse(r.responseText);u[0].value=u[0].value.replace(f,t.thumbs.display),
+u.change()}else console.log("An error occurred uploading the image"),console.log(r.responseText),u[0].value=u[0].value.replace(d,""),u.change();u.focus(),u[0].selectionStart=e,u[0].selectionEnd=e},r.send(t)}}var u=t.find("[markdown-input] textarea").first(),l=t.find(".markdown-display").first(),c=t.find('button[data-action="insertImage"]'),f=t.find('button[data-action="insertEntityLink"]'),d=0;u.blur(function(e){d=u[0].selectionStart});var h=void 0,p=void 0,m=void 0,g=void 0;setTimeout(function(){r()},200),window.addEventListener("resize",r);var v=800,$=0;u.on("scroll",function(e){var t=Date.now();t-$>v&&r();var n=u.scrollTop()/(h-p),i=(m-g)*n;l.scrollTop(i),$=t}),u.keydown(function(t){if(73===t.which&&t.ctrlKey&&t.shiftKey){t.preventDefault();var n=u[0].selectionStart,r=u.val(),o="";return u.val(r.substring(0,n)+o+r.substring(n)),u.focus(),u[0].selectionStart=n+"}return 75===t.which&&t.ctrlKey&&t.shiftKey?void i():void e.$emit("editor-keydown",t)}),c.click(function(e){window.ImageManager.showExternal(function(e){var t=d,n=u.val(),r="";u.val(n.substring(0,t)+r+n.substring(t)),u.change()})}),f.click(i),u.on("paste",o),u.on("drop",a)}}}]),e.directive("toolbox",[function(){return{restrict:"A",link:function(e,t,n){function r(e,n){i.removeClass("active"),o.hide(),i.filter('[tab-button="'+e+'"]').addClass("active"),o.filter('[tab-content="'+e+'"]').show(),n&&t.addClass("open")}var i=t.find("[tab-button]"),o=t.find("[tab-content]"),a=t.find("[toolbox-toggle]");a.click(function(e){t.toggleClass("open")}),r(o.first().attr("tab-content"),!1),i.click(function(e){var t=$(this).attr("tab-button");r(t,!0)})}}}]),e.directive("tagAutosuggestions",["$http",function(e){return{restrict:"A",link:function(t,n,r){function i(e,t){t[h].className="",h=e,t[h].className="active"}function o(e,t){if(0===t.length)return c.hide(),f=!1,void(m=t);if(f||(c.show(),f=!0),e!==d&&(c.detach(),e.after(c),d=e),m.join()===t.join())return void(m=t);c[0].innerHTML="";for(var n=0;n<t.length;n++){var r=document.createElement("li");r.textContent=t[n],r.onclick=a,0===n&&(r.className="active",h=0),c[0].appendChild(r)}m=t}function a(e){var t=this.textContent;d[0].value=t,d.focus(),c.hide(),f=!1}function s(t,n){var r=n.indexOf("?")!==-1,i=n+(r?"&":"?")+"search="+encodeURIComponent(t);return"undefined"!=typeof u[i]?new Promise(function(e,t){e(u[i])}):e.get(i).then(function(e){return u[i]=e.data,e.data})}var u={},l=document.createElement("ul");l.className="suggestion-box",l.style.position="absolute",l.style.display="none";var c=$(l),f=!1,d=!1,h=0;n.on("input focus","[autosuggest]",function(e){var t=$(this),n=t.val(),r=t.attr("autosuggest"),i=t.attr("autosuggest-type");if("value"===i.toLowerCase()){var a=t.closest("tr").find('[autosuggest-type="name"]').first(),u=a.val();""!==u&&(r+="?name="+encodeURIComponent(u))}var l=s(n.slice(0,3),r);l.then(function(e){0===n.length?o(t,e.slice(0,6)):(e=e.filter(function(e){return e.toLowerCase().indexOf(n.toLowerCase())!==-1}).slice(0,4),o(t,e))})});var p=0;n.on("blur","[autosuggest]",function(e){var t=Date.now();setTimeout(function(){p<t&&(c.hide(),f=!1)},200)}),n.on("focus","[autosuggest]",function(e){p=Date.now()}),n.on("keydown","[autosuggest]",function(e){if(f){var t=l.childNodes,n=t.length;if(40===e.keyCode){var r=h===n-1?0:h+1;i(r,t)}else if(38===e.keyCode){var o=0===h?n-1:h-1;i(o,t)}else if((13===e.keyCode||9===e.keyCode)&&!e.shiftKey){var a=t[h].textContent;if(d[0].value=a,d.focus(),c.hide(),f=!1,13===e.keyCode)return e.preventDefault(),!1}}});var m=[]}}}]),e.directive("entityLinkSelector",[function(e){return{restict:"A",link:function(e,n,r){function i(e){l=e,null===e?s.attr("disabled","true"):s.removeAttr("disabled")}function o(){n.fadeIn(240)}function a(){n.fadeOut(240)}var s=n.find(".entity-link-selector-confirm"),u=!1,l=null;t.listen("entity-select-change",i),s.click(function(e){a(),null!==l&&u(l)}),t.listen("entity-select-confirm",function(e){a(),u(e)}),window.showEntityLinkSelector=function(e){o(),u=e}}}}]),e.directive("entitySelector",["$http","$sce",function(e,n){return{restrict:"A",scope:!0,link:function(r,i,o){function a(){var e=Date.now(),t=e-c<300;return c=e,t}function s(e,n){var r=e.attr("data-entity-type"),o=e.attr("data-entity-id"),a=!e.hasClass("selected")||n;i.find(".selected").removeClass("selected").removeClass("primary-background"),a&&e.addClass("selected").addClass("primary-background");var s=a?r+":"+o:"";if(l.val(s),a||t.emit("entity-select-change",null),n||a){var u=e.find(".entity-list-item-link").attr("href"),c=e.find(".entity-list-item-name").text();n&&t.emit("entity-select-confirm",{id:Number(o),name:c,link:u}),a&&t.emit("entity-select-change",{id:Number(o),name:c,link:u})}}function u(){var e=o.entityTypes?encodeURIComponent(o.entityTypes):encodeURIComponent("page,book,chapter");return window.baseUrl("/ajax/search/entities?types="+e)}r.loading=!0,r.entityResults=!1,r.search="";var l=i.find("[entity-selector-input]").first(),c=0;i.on("click",".entity-list a",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).closest("[data-entity-type]");s(t,a())}),i.on("click","[data-entity-type]",function(e){s($(this),a())}),e.get(u()).then(function(e){r.entityResults=n.trustAsHtml(e.data),r.loading=!1}),r.searchEntities=function(){r.loading=!0,l.val("");var t=u()+"&term="+encodeURIComponent(r.search);e.get(t).then(function(e){r.entityResults=n.trustAsHtml(e.data),r.loading=!1})}}}}])}},{"./components/drop-zone.html":14,"./components/image-picker.html":15,"./components/toggle-switch.html":16,dropzone:10,marked:11}],19:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=e("angular");e("angular-resource"),e("angular-animate"),e("angular-sanitize");e("angular-ui-sortable"),window.baseUrl=function(e){var t=document.querySelector('meta[name="base-url"]').getAttribute("content");return"/"===t[t.length-1]&&(t=t.slice(0,t.length-1)),"/"===e[0]&&(e=e.slice(1)),t+"/"+e};var a=o.module("bookStack",["ngResource","ngAnimate","ngSanitize","ui.sortable"]),s=function(){function e(){r(this,e),this.listeners={}}return i(e,[{key:"emit",value:function(e,t){if("undefined"==typeof this.listeners[e])return this;for(var n=this.listeners[e],r=0;r<n.length;r++){var i=n[r];i(t)}return this}},{key:"listen",value:function(e,t){return"undefined"==typeof this.listeners[e]&&(this.listeners[e]=[]),this.listeners[e].push(t),this}}]),e}();window.Events=new s;e("./services")(a,window.Events),e("./directives")(a,window.Events),e("./controllers")(a,window.Events);jQuery.fn.smoothScrollTo=function(){if(0!==this.length){var e=0===document.documentElement.scrollTop?document.body:document.documentElement;return $(e).animate({scrollTop:this.offset().top-60},800),this}},jQuery.expr[":"].contains=$.expr.createPseudo(function(e){return function(t){return $(t).text().toUpperCase().indexOf(e.toUpperCase())>=0}}),$(function(){var e=$(".notification"),t=e.filter(".pos"),n=e.filter(".neg"),r=e.filter(".warning");window.Events.listen("success",function(e){t.hide(),t.find("span").text(e),setTimeout(function(){t.show()},1)}),window.Events.listen("warning",function(e){r.find("span").text(e),r.show()}),window.Events.listen("error",function(e){n.find("span").text(e),n.show()}),e.click(function(){$(this).fadeOut(100)}),$(".chapter-toggle").click(function(e){e.preventDefault(),$(this).toggleClass("open"),$(this).closest(".chapter").find(".inset-list").slideToggle(180)}),$("#back-to-top").click(function(){$("#header").smoothScrollTo()});var i=!1,o=document.getElementById("back-to-top"),a=1200;window.addEventListener("scroll",function(){var e=document.documentElement.scrollTop||document.body.scrollTop||0;!i&&e>a?(o.style.display="block",i=!0,setTimeout(function(){o.style.opacity=.4},1)):i&&e<a&&(o.style.opacity=0,i=!1,setTimeout(function(){o.style.display="none"},500))}),$('[data-action="expand-entity-list-details"]').click(function(){$(".entity-list.compact").find("p").not(".empty-text").slideToggle(240)}),$(".popup-close").click(function(){$(this).closest(".overlay").fadeOut(240)}),$(".overlay").click(function(e){$(e.target).hasClass("overlay")&&$(this).fadeOut(240)}),$(".markdown-display").on("click","a",function(e){e.preventDefault(),window.open($(this).attr("href"))}),(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0||navigator.userAgent.indexOf("Safari")!==-1)&&$("body").addClass("flexbox-support")}),e("./pages/page-show")},{"./controllers":17,"./directives":18,"./pages/page-show":21,"./services":22,angular:9,"angular-animate":2,"angular-resource":4,"angular-sanitize":6,"angular-ui-sortable":7}],20:[function(e,t,n){"use strict";function r(e,t){if(e.clipboardData){var n=e.clipboardData.items;if(n)for(var r=function(e){if(n[e].type.indexOf("image")===-1)return{v:void 0};var r=n[e].getAsFile(),i=new FormData,o="png",a=new XMLHttpRequest;if(r.name){var s=r.name.match(/\.(.+)$/);s&&(o=s[1])}var u="image-"+Math.random().toString(16).slice(2),l=window.baseUrl("/loading.gif");t.execCommand("mceInsertContent",!1,'<img src="'+l+'" id="'+u+'">');var c="image-"+Date.now()+"."+o;i.append("file",r,c),i.append("_token",document.querySelector('meta[name="token"]').getAttribute("content")),a.open("POST",window.baseUrl("/images/gallery/upload")),a.onload=function(){if(200===a.status||201===a.status){var e=JSON.parse(a.responseText);t.dom.setAttrib(u,"src",e.thumbs.display)}else console.log("An error occurred uploading the image",a.responseText),t.dom.remove(u)},a.send(i)},i=0;i<n.length;i++){var a=r(i);if("object"===("undefined"==typeof a?"undefined":o(a)))return a.v}}}function i(e){for(var t=1;t<5;t++)e.addShortcut("meta+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("meta+q","",["FormatBlock",!1,"blockquote"]),e.addShortcut("meta+d","",["FormatBlock",!1,"p"]),e.addShortcut("meta+e","",["FormatBlock",!1,"pre"]),e.addShortcut("meta+shift+E","",["FormatBlock",!1,"code"])}var o="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},a=t.exports={selector:"#html-editor",content_css:[window.baseUrl("/css/styles.css"),window.baseUrl("/libs/material-design-iconic-font/css/material-design-iconic-font.min.css")],body_class:"page-content",relative_urls:!1,remove_script_host:!1,document_base_url:window.baseUrl("/"),statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*]",automatic_uploads:!1,valid_children:"-div[p|pre|h1|h2|h3|h4|h5|h6|blockquote]",plugins:"image table textcolor paste link fullscreen imagetools code customhr autosave lists",imagetools_toolbar:"imageoptions",toolbar:"undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr | removeformat code fullscreen",content_style:"body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",style_formats:[{title:"Header 1",format:"h1"},{title:"Header 2",format:"h2"},{title:"Header 3",format:"h3"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Code Block",icon:"code",format:"pre"},{title:"Inline Code",icon:"code",inline:"code"},{title:"Callouts",items:[{title:"Success",block:"p",exact:!0,attributes:{"class":"callout success"}},{title:"Info",block:"p",exact:!0,attributes:{"class":"callout info"}},{title:"Warning",block:"p",exact:!0,attributes:{"class":"callout warning"}},{title:"Danger",block:"p",exact:!0,attributes:{"class":"callout danger"}}]}],style_formats_merge:!1,formats:{alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"}},file_browser_callback:function(e,t,n,r){"file"===n&&window.showEntityLinkSelector(function(t){var n=r.document.getElementById(e);n.value=t.link,$(n).closest(".mce-form").find("input").eq(2).val(t.name)}),"image"===n&&window.ImageManager.showExternal(function(t){if(r.document.getElementById(e).value=t.url,"createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent("change",!1,!0),r.document.getElementById(e).dispatchEvent(n)}else r.document.getElementById(e).fireEvent("onchange");var i='<a href="'+t.url+'" target="_blank">';i+='<img src="'+t.thumbs.display+'" alt="'+t.name+'">',i+="</a>",r.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,i)})},paste_preprocess:function(e,t){var n=t.content;n.indexOf('<img src="file://')!==-1&&(t.content="")},extraSetups:[],setup:function(e){for(var t=0;t<a.extraSetups.length;t++)a.extraSetups[t](e);i(e),function(){function t(e){return e&&!(!e.textContent&&!e.innerText)}var n;e.on("dragstart",function(){var r=e.selection.getNode();"IMG"===r.nodeName&&(n=e.dom.getParent(r,".mceTemp"),n||"A"!==r.parentNode.nodeName||t(r.parentNode)||(n=r.parentNode))}),e.on("drop",function(t){var r=e.dom,i=tinymce.dom.RangeUtils.getCaretRangeFromPoint(t.clientX,t.clientY,e.getDoc());r.getParent(i.startContainer,".mceTemp")?t.preventDefault():n&&(t.preventDefault(),e.undoManager.transact(function(){e.selection.setRng(i),e.selection.setNode(n),r.remove(n)})),n=null})}(),e.addButton("image-insert",{title:"My title",icon:"image",tooltip:"Insert an image",onclick:function(){window.ImageManager.showExternal(function(t){var n='<a href="'+t.url+'" target="_blank">';n+='<img src="'+t.thumbs.display+'" alt="'+t.name+'">',n+="</a>",e.execCommand("mceInsertContent",!1,n)})}}),e.on("paste",function(t){r(t,e)})}}},{}],21:[function(e,t,n){"use strict";var r=e("zeroclipboard");r.config({swfPath:window.baseUrl("/ZeroClipboard.swf")}),window.setupPageShow=t.exports=function(e){function t(e){var t=$(".page-content #"+e).first();0!==t.length?(t.smoothScrollTo(),t.css("background-color","rgba(244, 249, 54, 0.25)")):$(".page-content").find(':contains("'+e+'")').smoothScrollTo()}function n(){d.width(h.width()+15),d.addClass("fixed"),g=!0}function i(){d.css("width","auto"),d.removeClass("fixed"),g=!1}function o(e){var t=f.scrollTop()>m;!t||g&&!e?t||!g&&!e||i():n()}function a(){o(!1)}var s=$("#pointer").detach(),u=s.children("div.pointer").first(),l=!1;if(s.on("click","input",function(e){$(this).select(),e.stopPropagation()}),new r(s.find("button").first()[0]),$(document.body).find("*").on("click focus",function(e){l||s.detach()}),$('.page-content [id^="bkmrk"]').on("mouseup keyup",function(t){t.stopPropagation();var n=window.getSelection();if(0!==n.toString().length){var r=$(this),i=window.baseUrl("/link/"+e+"#"+r.attr("id"));0!==i.indexOf("http")&&(i=window.location.protocol+"//"+window.location.host+i),s.find("input").val(i),s.find("button").first().attr("data-clipboard-text",i),r.before(s),s.show();var o=t.pageX-r.offset().left-u.width()/2;o<0&&(o=0);var a=o/r.width()*100;u.css("left",a+"%"),l=!0,setTimeout(function(){l=!1},100)}}),window.location.hash){var c=window.location.hash.replace(/\%20/g," ").substr(1);t(c)}var f=$(window),d=$(".book-tree"),h=d.parent(),p=$(document).height()>f.height()&&d.height()<$(".page-content").height(),m=$("#header").height()+$(".toolbar").height(),g=f.scrollTop()>m;p&&f.width()>1e3&&(f.on("scroll",a),o(!0)),f.on("resize",function(e){p&&f.width()>1e3?(f.on("scroll",a),o(!0)):(f.off("scroll",a),i())})}},{zeroclipboard:13}],22:[function(e,t,n){"use strict";t.exports=function(e,t){e.factory("imageManagerService",function(){return{show:!1,showExternal:!1}})}},{}]},{},[19]);
\ No newline at end of file