text: !function e(t,n,i){function r(a,o){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!o&&l)return l(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return r(n||e)},c,c.exports,e,t,n,i)}return n[a].exports}for(var s="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){!function(e,i){if("function"==typeof define&&define.amd)define(["exports","module"],i);else if(void 0!==n&&void 0!==t)i(n,t);else{var r={exports:{}};i(r.exports,r),e.autosize=r.exports}}(this,function(e,t){"use strict";function n(e){function t(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function n(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function i(){var t=e.style.height,i=n(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="";var s=e.scrollHeight+o;0!==e.scrollHeight?(e.style.height=s+"px",l=e.clientWidth,i.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)):e.style.height=t}function r(){i();var n=Math.round(parseFloat(e.style.height)),r=window.getComputedStyle(e,null),s="content-box"===r.boxSizing?Math.round(parseFloat(r.height)):e.offsetHeight;if(s!==n?"hidden"===r.overflowY&&(t("scroll"),i(),s="content-box"===r.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==r.overflowY&&(t("hidden"),i(),s="content-box"===r.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),u!==s){u=s;var o=a("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!s.has(e)){var o=null,l=e.clientWidth,u=null,c=function(){e.clientWidth!==l&&r()},d=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",r,!1),e.removeEventListener("keyup",r,!1),e.removeEventListener("autosize:destroy",d,!1),e.removeEventListener("autosize:update",r,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),s.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",d,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",r,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",r,!1),e.addEventListener("autosize:update",r,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",s.set(e,{destroy:d,update:r}),function(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),o="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(o)&&(o=0),r()}()}}function i(e){var t=s.get(e);t&&t.destroy()}function r(e){var t=s.get(e);t&&t.update()}var s="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,i){-1===e.indexOf(n)&&(e.push(n),t.push(i))},delete:function(n){var i=e.indexOf(n);i>-1&&(e.splice(i,1),t.splice(i,1))}}}(),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var o=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((o=function(e){return e}).destroy=function(e){return e},o.update=function(e){return e}):((o=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},o.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.exports=o})},{}],2:[function(e,t,n){"use strict";function i(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function r(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(a),n=1;n<t.length;n++)e=i(t,n).join(""),t=e.match(a);return e}}function s(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=o.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=r(n[0]);i!==n[0]&&(t[n[0]]=i)}n=o.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var l=s[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}var a=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");t.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return s(e)}}},{}],3:[function(e,t,n){(function(e){!function(i){if("object"==typeof n&&void 0!==t)t.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:this).docCookies=i()}}(function(){return{getItem:function(e){return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(e,t,n,i,r,s){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var a="";if(n)switch(n.constructor){case Number:a=n===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:a="; expires="+n;break;case Date:a="; expires="+n.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+a+(r?"; domain="+r:"")+(i?"; path="+i:"")+(s?"; secure":""),!0},removeItem:function(e,t,n){return!!this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(t?"; path="+t:""),!0)},hasItem:function(e){return!!e&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,n=0;n<t;n++)e[n]=decodeURIComponent(e[n]);return e}}})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,n){!function(e,i){"object"==typeof n&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):e.exprEval=i()}(this,function(){"use strict";function e(e,t){this.type=e,this.value=void 0!==t&&null!==t?t:0}function t(t){return new e(X,t)}function n(t){return new e(J,t)}function i(t){return new e(Q,t)}function r(t,n,i,s,a){for(var o,l,u,c,d=[],h=[],f=0;f<t.length;f++){var p=t[f],m=p.type;if(m===$)d.push(p);else if(m===K&&a.hasOwnProperty(p.value))p=new e($,a[p.value]),d.push(p);else if(m===J&&d.length>1)l=d.pop(),o=d.pop(),c=i[p.value],p=new e($,c(o.value,l.value)),d.push(p);else if(m===Q&&d.length>2)u=d.pop(),l=d.pop(),o=d.pop(),"?"===p.value?d.push(o.value?l.value:u.value):(c=s[p.value],p=new e($,c(o.value,l.value,u.value)),d.push(p));else if(m===X&&d.length>0)o=d.pop(),c=n[p.value],p=new e($,c(o.value)),d.push(p);else if(m===te){for(;d.length>0;)h.push(d.shift());h.push(new e(te,r(p.value,n,i,s,a)))}else if(m===ne&&d.length>0)o=d.pop(),d.push(new e($,o.value[p.value]));else{for(;d.length>0;)h.push(d.shift());h.push(p)}}for(;d.length>0;)h.push(d.shift());return h}function s(r,a,o){for(var l=[],u=0;u<r.length;u++){var c=r[u],d=c.type;if(d===K&&c.value===a)for(var h=0;h<o.tokens.length;h++){var f,p=o.tokens[h];f=p.type===X?t(p.value):p.type===J?n(p.value):p.type===Q?i(p.value):new e(p.type,p.value),l.push(f)}else d===te?l.push(new e(te,s(c.value,a,o))):l.push(c)}return l}function a(e,t,n){for(var i,r,s,o,l=[],u=0;u<e.length;u++){var c=e[u],d=c.type;if(d===$)l.push(c.value);else if(d===J)r=l.pop(),i=l.pop(),o=t.binaryOps[c.value],l.push(o(i,r));else if(d===Q)s=l.pop(),r=l.pop(),i=l.pop(),"?"===c.value?l.push(a(i?r:s,t,n)):(o=t.ternaryOps[c.value],l.push(o(i,r,s)));else if(d===K)if(c.value in t.functions)l.push(t.functions[c.value]);else{var h=n[c.value];if(void 0===h)throw new Error("undefined variable: "+c.value);l.push(h)}else if(d===X)i=l.pop(),o=t.unaryOps[c.value],l.push(o(i));else if(d===ee){for(var f=c.value,p=[];f-- >0;)p.unshift(l.pop());if(!(o=l.pop()).apply||!o.call)throw new Error(o+" is not a function");l.push(o.apply(void 0,p))}else if(d===te)l.push(c.value);else{if(d!==ne)throw new Error("invalid Expression");i=l.pop(),l.push(i[c.value])}}if(l.length>1)throw new Error("invalid Expression (parity)");return l[0]}function o(e,t){for(var n,i,r,s,a=[],u=0;u<e.length;u++){var c=e[u],d=c.type;if(d===$)"number"==typeof c.value&&c.value<0?a.push("("+c.value+")"):a.push(l(c.value));else if(d===J)i=a.pop(),n=a.pop(),s=c.value,t?"^"===s?a.push("Math.pow("+n+", "+i+")"):"and"===s?a.push("(!!"+n+" && !!"+i+")"):"or"===s?a.push("(!!"+n+" || !!"+i+")"):"||"===s?a.push("(String("+n+") + String("+i+"))"):"=="===s?a.push("("+n+" === "+i+")"):"!="===s?a.push("("+n+" !== "+i+")"):a.push("("+n+" "+s+" "+i+")"):a.push("("+n+" "+s+" "+i+")");else if(d===Q){if(r=a.pop(),i=a.pop(),n=a.pop(),"?"!==(s=c.value))throw new Error("invalid Expression");a.push("("+n+" ? "+i+" : "+r+")")}else if(d===K)a.push(c.value);else if(d===X)n=a.pop(),"-"===(s=c.value)||"+"===s?a.push("("+s+n+")"):t?"not"===s?a.push("(!"+n+")"):"!"===s?a.push("fac("+n+")"):a.push(s+"("+n+")"):"!"===s?a.push("("+n+"!)"):a.push("("+s+" "+n+")");else if(d===ee){for(var h=c.value,f=[];h-- >0;)f.unshift(a.pop());s=a.pop(),a.push(s+"("+f.join(", ")+")")}else if(d===ne)n=a.pop(),a.push(n+"."+c.value);else{if(d!==te)throw new Error("invalid Expression");a.push("("+o(c.value,t)+")")}}if(a.length>1)throw new Error("invalid Expression (parity)");return a[0]}function l(e){return"string"==typeof e?JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):e}function u(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}function c(e,t,n){for(var i=!!(n=n||{}).withMembers,r=null,s=0;s<e.length;s++){var a=e[s];a.type!==K||u(t,a.value)?a.type===ne&&i&&null!==r?r+="."+a.value:a.type===te?c(a.value,t,n):null!==r&&(u(t,r)||t.push(r),r=null):i?null!==r?(u(t,r)||t.push(r),r=a.value):r=a.value:t.push(a.value)}null===r||u(t,r)||t.push(r)}function d(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}function h(e,t,n){this.type=e,this.value=t,this.index=n}function f(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options}function p(e){return se.hasOwnProperty(e)?se[e]:e}function m(e,t,n){this.parser=e,this.tokens=t,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=!1!==n.allowMemberAccess}function v(e,t){return Number(e)+Number(t)}function g(e,t){return e-t}function y(e,t){return e*t}function _(e,t){return e/t}function w(e,t){return e%t}function b(e,t){return""+e+t}function k(e,t){return e===t}function x(e,t){return e!==t}function D(e,t){return e>t}function M(e,t){return e<t}function S(e,t){return e>=t}function T(e,t){return e<=t}function O(e,t){return Boolean(e&&t)}function E(e,t){return Boolean(e||t)}function C(e,t){return u(t,e)}function Y(e){return(Math.exp(e)-Math.exp(-e))/2}function N(e){return(Math.exp(e)+Math.exp(-e))/2}function A(e){return e===1/0?1:e===-1/0?-1:(Math.exp(e)-Math.exp(-e))/(Math.exp(e)+Math.exp(-e))}function P(e){return e===-1/0?e:Math.log(e+Math.sqrt(e*e+1))}function R(e){return Math.log(e+Math.sqrt(e*e-1))}function L(e){return Math.log((1+e)/(1-e))/2}function F(e){return Math.log(e)*Math.LOG10E}function I(e){return-e}function j(e){return!e}function W(e){return e<0?Math.ceil(e):Math.floor(e)}function U(e){return Math.random()*(e||1)}function H(e){return V(e+1)}function z(e){return isFinite(e)&&e===Math.round(e)}function V(e){var t,n;if(z(e)){if(e<=0)return isFinite(e)?1/0:NaN;if(e>171)return 1/0;for(var i=e-2,r=e-1;i>1;)r*=i,i--;return 0===r&&(r=1),r}if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*V(1-e));if(e>=171.35)return 1/0;if(e>85){var s=e*e,a=s*e,o=a*e,l=o*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*s)-139/(51840*a)-571/(2488320*o)+163879/(209018880*l)+5246819/(75246796800*l*e))}--e,n=ce[0];for(var u=1;u<ce.length;++u)n+=ce[u]/(e+u);return t=e+ue+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*n}function G(e){return String(e).length}function B(){for(var e=0,t=0,n=0;n<arguments.length;n++){var i,r=Math.abs(arguments[n]);t<r?(e=e*(i=t/r)*i+1,t=r):e+=r>0?(i=r/t)*i:r}return t===1/0?1/0:t*Math.sqrt(e)}function q(e,t,n){return e?t:n}function Z(e){this.options=e||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||Y,cosh:Math.cosh||N,tanh:Math.tanh||A,asinh:Math.asinh||P,acosh:Math.acosh||R,atanh:Math.atanh||L,sqrt:Math.sqrt,log:Math.log,ln:Math.log,lg:Math.log10||F,log10:Math.log10||F,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||W,"-":I,"+":Number,exp:Math.exp,not:j,length:G,"!":H},this.binaryOps={"+":v,"-":g,"*":y,"/":_,"%":w,"^":Math.pow,"||":b,"==":k,"!=":x,">":D,"<":M,">=":S,"<=":T,and:O,or:E,in:C},this.ternaryOps={"?":q},this.functions={random:U,fac:H,min:Math.min,max:Math.max,hypot:Math.hypot||B,pyt:Math.hypot||B,pow:Math.pow,atan2:Math.atan2,if:q,gamma:V},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}var $="INUMBER",X="IOP1",J="IOP2",Q="IOP3",K="IVAR",ee="IFUNCALL",te="IEXPR",ne="IMEMBER";e.prototype.toString=function(){switch(this.type){case $:case X:case J:case Q:case K:return this.value;case ee:return"CALL "+this.value;case ne:return"."+this.value;default:return"Invalid Instruction"}},d.prototype.simplify=function(e){return e=e||{},new d(r(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,e),this.parser)},d.prototype.substitute=function(e,t){return t instanceof d||(t=this.parser.parse(String(t))),new d(s(this.tokens,e,t),this.parser)},d.prototype.evaluate=function(e){return e=e||{},a(this.tokens,this,e)},d.prototype.toString=function(){return o(this.tokens,!1)},d.prototype.symbols=function(e){e=e||{};var t=[];return c(this.tokens,t,e),t},d.prototype.variables=function(e){e=e||{};var t=[];c(this.tokens,t,e);var n=this.functions;return t.filter(function(e){return!(e in n)})},d.prototype.toJSFunction=function(e,t){var n=this,i=new Function(e,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+o(this.simplify(t).tokens,!0)+"; }");return function(){return i.apply(n,arguments)}};var ie="TOP";h.prototype.toString=function(){return this.type+": "+this.value},f.prototype.newToken=function(e,t,n){return new h(e,t,null!=n?n:this.pos)},f.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},f.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},f.prototype.next=function(){return this.pos>=this.expression.length?this.newToken("TEOF","EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isComma()||this.isNamedOp()||this.isConst()||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},f.prototype.isString=function(){var e=!1,t=this.pos,n=this.expression.charAt(t);if("'"===n||'"'===n)for(var i=this.expression.indexOf(n,t+1);i>=0&&this.pos<this.expression.length;){if(this.pos=i+1,"\\"!==this.expression.charAt(i-1)){var r=this.expression.substring(t+1,i);this.current=this.newToken("TSTRING",this.unescape(r),t),e=!0;break}i=this.expression.indexOf(n,i+1)}return e},f.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return("("===e||")"===e)&&(this.current=this.newToken("TPAREN",e),this.pos++,!0)},f.prototype.isComma=function(){return","===this.expression.charAt(this.pos)&&(this.current=this.newToken("TCOMMA",","),this.pos++,!0)},f.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||"_"!==n&&"."!==n&&(n<"0"||n>"9")))break}if(t>e){var i=this.expression.substring(e,t);if(i in this.consts)return this.current=this.newToken("TNUMBER",this.consts[i]),this.pos+=i.length,!0}return!1},f.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()&&(t===this.pos||"_"!==n&&(n<"0"||n>"9")))break}if(t>e){var i=this.expression.substring(e,t);if(this.isOperatorEnabled(i)&&(i in this.binaryOps||i in this.unaryOps||i in this.ternaryOps))return this.current=this.newToken(ie,i),this.pos+=i.length,!0}return!1},f.prototype.isName=function(){for(var e=this.pos,t=e,n=!1;t<this.expression.length;t++){var i=this.expression.charAt(t);if(i.toUpperCase()===i.toLowerCase()){if(t===this.pos&&"$"===i)continue;if(t===this.pos||!n||"_"!==i&&(i<"0"||i>"9"))break}else n=!0}if(n){var r=this.expression.substring(e,t);return this.current=this.newToken("TNAME",r),this.pos+=r.length,!0}return!1},f.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);!(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t||(e=!0,++this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var re=/^[0-9a-f]{4}$/i;f.prototype.unescape=function(e){var t=e.indexOf("\\");if(t<0)return e;for(var n=e.substring(0,t);t>=0;){var i=e.charAt(++t);switch(i){case"'":n+="'";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+="\t";break;case"u":var r=e.substring(t+1,t+5);re.test(r)||this.parseError("Illegal escape sequence: \\u"+r),n+=String.fromCharCode(parseInt(r,16)),t+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+i+'"')}++t;var s=e.indexOf("\\",t);n+=e.substring(t,s<0?e.length:s),t=s}return n},f.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},f.prototype.isRadixInteger=function(){var e=this.pos;if(e>=this.expression.length-2||"0"!==this.expression.charAt(e))return!1;++e;var t,n;if("x"===this.expression.charAt(e))t=16,n=/^[0-9a-f]$/i,++e;else{if("b"!==this.expression.charAt(e))return!1;t=2,n=/^[01]$/i,++e}for(var i=!1,r=e;e<this.expression.length;){var s=this.expression.charAt(e);if(!n.test(s))break;e++,i=!0}return i&&(this.current=this.newToken("TNUMBER",parseInt(this.expression.substring(r,e),t)),this.pos=e),i},f.prototype.isNumber=function(){for(var e,t=!1,n=this.pos,i=n,r=n,s=!1,a=!1;n<this.expression.length&&((e=this.expression.charAt(n))>="0"&&e<="9"||!s&&"."===e);)"."===e?s=!0:a=!0,n++,t=a;if(t&&(r=n),"e"===e||"E"===e){n++;for(var o=!0,l=!1;n<this.expression.length;){if(e=this.expression.charAt(n),!o||"+"!==e&&"-"!==e){if(!(e>="0"&&e<="9"))break;l=!0,o=!1}else o=!1;n++}l||(n=r)}return t?(this.current=this.newToken("TNUMBER",parseFloat(this.expression.substring(i,n))),this.pos=n):this.pos=r,t},f.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if("+"===t||"-"===t||"*"===t||"/"===t||"%"===t||"^"===t||"?"===t||":"===t||"."===t)this.current=this.newToken(ie,t);else if("∙"===t||"•"===t)this.current=this.newToken(ie,"*");else if(">"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(ie,">="),this.pos++):this.current=this.newToken(ie,">");else if("<"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(ie,"<="),this.pos++):this.current=this.newToken(ie,"<");else if("|"===t){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(ie,"||"),this.pos++}else if("="===t){if("="!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(ie,"=="),this.pos++}else{if("!"!==t)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(ie,"!="),this.pos++):this.current=this.newToken(ie,t)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=e,!1)};var se={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional"};f.prototype.isOperatorEnabled=function(e){var t=p(e),n=this.options.operators||{};return"in"===t?!!n.in:!(t in n&&!n[t])},f.prototype.getCoordinates=function(){var e,t=0,n=-1;do{t++,e=this.pos-n,n=this.expression.indexOf("\n",n+1)}while(n>=0&&n<this.pos);return{line:t,column:e}},f.prototype.parseError=function(e){var t=this.getCoordinates();throw new Error("parse error ["+t.line+":"+t.column+"]: "+e)},m.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},m.prototype.tokenMatches=function(e,t){return void 0===t||(Array.isArray(t)?u(t,e.value):"function"==typeof t?t(e):e.value===t)},m.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},m.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},m.prototype.accept=function(e,t){return!(this.nextToken.type!==e||!this.tokenMatches(this.nextToken,t))&&(this.next(),!0)},m.prototype.expect=function(e,t){if(!this.accept(e,t)){var n=this.tokens.getCoordinates();throw new Error("parse error ["+n.line+":"+n.column+"]: Expected "+(t||e))}},m.prototype.parseAtom=function(t){if(this.accept("TNAME"))t.push(new e(K,this.current.value));else if(this.accept("TNUMBER"))t.push(new e($,this.current.value));else if(this.accept("TSTRING"))t.push(new e($,this.current.value));else{if(!this.accept("TPAREN","("))throw new Error("unexpected "+this.nextToken);this.parseExpression(t),this.expect("TPAREN",")")}},m.prototype.parseExpression=function(e){this.parseConditionalExpression(e)},m.prototype.parseConditionalExpression=function(t){for(this.parseOrExpression(t);this.accept(ie,"?");){var n=[],r=[];this.parseConditionalExpression(n),this.expect(ie,":"),this.parseConditionalExpression(r),t.push(new e(te,n)),t.push(new e(te,r)),t.push(i("?"))}},m.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(ie,"or");)this.parseAndExpression(e),e.push(n("or"))},m.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(ie,"and");)this.parseComparison(e),e.push(n("and"))};var ae=["==","!=","<","<=",">=",">","in"];m.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(ie,ae);){var t=this.current;this.parseAddSub(e),e.push(n(t.value))}};var oe=["+","-","||"];m.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(ie,oe);){var t=this.current;this.parseTerm(e),e.push(n(t.value))}};var le=["*","/","%"];m.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(ie,le);){var t=this.current;this.parseFactor(e),e.push(n(t.value))}},m.prototype.parseFactor=function(e){var n=this.tokens.unaryOps;if(this.save(),this.accept(ie,function(e){return e.value in n}))if("-"!==this.current.value&&"+"!==this.current.value&&"TPAREN"===this.nextToken.type&&"("===this.nextToken.value)this.restore(),this.parseExponential(e);else{var i=this.current;this.parseFactor(e),e.push(t(i.value))}else this.parseExponential(e)},m.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(ie,"^");)this.parseFactor(e),e.push(n("^"))},m.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(ie,"!");)e.push(t("!"))},m.prototype.parseFunctionCall=function(n){var i=this.tokens.unaryOps;if(this.accept(ie,function(e){return e.value in i})){var r=this.current;this.parseAtom(n),n.push(t(r.value))}else for(this.parseMemberExpression(n);this.accept("TPAREN","(");)if(this.accept("TPAREN",")"))n.push(new e(ee,0));else{var s=this.parseArgumentList(n);n.push(new e(ee,s))}},m.prototype.parseArgumentList=function(e){for(var t=0;!this.accept("TPAREN",")");)for(this.parseExpression(e),++t;this.accept("TCOMMA");)this.parseExpression(e),++t;return t},m.prototype.parseMemberExpression=function(t){for(this.parseAtom(t);this.accept(ie,".");){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect("TNAME"),t.push(new e(ne,this.current.value))}};var ue=4.7421875,ce=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];Z.prototype.parse=function(e){var t=[],n=new m(this,new f(this,e),{allowMemberAccess:this.options.allowMemberAccess});return n.parseExpression(t),n.expect("TEOF","EOF"),new d(t,this)},Z.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var de=new Z;return Z.parse=function(e){return de.parse(e)},Z.evaluate=function(e,t){return de.parse(e).evaluate(t)},{Parser:Z,Expression:d}})},{}],5:[function(e,t,n){var i=i||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=function(){return e.URL||e.webkitURL||e},n=e.document.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in n,r=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},s=/constructor/i.test(e.HTMLElement)||e.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent),o=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},l=function(e){setTimeout(function(){"string"==typeof e?t().revokeObjectURL(e):e.remove()},4e4)},u=function(e,t,n){for(var i=(t=[].concat(t)).length;i--;){var r=e["on"+t[i]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){o(e)}}},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},d=function(o,d,h){h||(o=c(o));var f,p=this,m="application/octet-stream"===o.type,v=function(){u(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,i)return f=t().createObjectURL(o),void setTimeout(function(){n.href=f,n.download=d,r(n),v(),l(f),p.readyState=p.DONE});!function(){if((a||m&&s)&&e.FileReader){var n=new FileReader;return n.onloadend=function(){var t=a?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,p.readyState=p.DONE,v()},n.readAsDataURL(o),void(p.readyState=p.INIT)}f||(f=t().createObjectURL(o)),m?e.location.href=f:e.open(f,"_blank")||(e.location.href=f),p.readyState=p.DONE,v(),l(f)}()},h=d.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=c(e)),navigator.msSaveOrOpenBlob(e,t)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(e,t,n){return new d(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);void 0!==t&&t.exports?t.exports.saveAs=i:"undefined"!=typeof define&&null!==define&&null!==define.amd&&define("FileSaver.js",function(){return i})},{}],6:[function(e,t,n){var i=function(){function e(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var t=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={},s={compressToBase64:function(e){if(null==e)return"";var t=s._compress(e,6,function(e){return n.charAt(e)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(t){return null==t?"":""==t?null:s._decompress(t.length,32,function(i){return e(n,t.charAt(i))})},compressToUTF16:function(e){return null==e?"":s._compress(e,15,function(e){return t(e+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:s._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=s.compress(e),n=new Uint8Array(2*t.length),i=0,r=t.length;i<r;i++){var a=t.charCodeAt(i);n[2*i]=a>>>8,n[2*i+1]=a%256}return n},decompressFromUint8Array:function(e){if(null===e||void 0===e)return s.decompress(e);for(var n=new Array(e.length/2),i=0,r=n.length;i<r;i++)n[i]=256*e[2*i]+e[2*i+1];var a=[];return n.forEach(function(e){a.push(t(e))}),s.decompress(a.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":s._compress(e,6,function(e){return i.charAt(e)})},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),s._decompress(t.length,32,function(n){return e(i,t.charAt(n))}))},compress:function(e){return s._compress(e,16,function(e){return t(e)})},_compress:function(e,t,n){if(null==e)return"";var i,r,s,a={},o={},l="",u="",c="",d=2,h=3,f=2,p=[],m=0,v=0;for(s=0;s<e.length;s+=1)if(l=e.charAt(s),Object.prototype.hasOwnProperty.call(a,l)||(a[l]=h++,o[l]=!0),u=c+l,Object.prototype.hasOwnProperty.call(a,u))c=u;else{if(Object.prototype.hasOwnProperty.call(o,c)){if(c.charCodeAt(0)<256){for(i=0;i<f;i++)m<<=1,v==t-1?(v=0,p.push(n(m)),m=0):v++;for(r=c.charCodeAt(0),i=0;i<8;i++)m=m<<1|1&r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r>>=1}else{for(r=1,i=0;i<f;i++)m=m<<1|r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r=0;for(r=c.charCodeAt(0),i=0;i<16;i++)m=m<<1|1&r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r>>=1}0==--d&&(d=Math.pow(2,f),f++),delete o[c]}else for(r=a[c],i=0;i<f;i++)m=m<<1|1&r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r>>=1;0==--d&&(d=Math.pow(2,f),f++),a[u]=h++,c=String(l)}if(""!==c){if(Object.prototype.hasOwnProperty.call(o,c)){if(c.charCodeAt(0)<256){for(i=0;i<f;i++)m<<=1,v==t-1?(v=0,p.push(n(m)),m=0):v++;for(r=c.charCodeAt(0),i=0;i<8;i++)m=m<<1|1&r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r>>=1}else{for(r=1,i=0;i<f;i++)m=m<<1|r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r=0;for(r=c.charCodeAt(0),i=0;i<16;i++)m=m<<1|1&r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r>>=1}0==--d&&(d=Math.pow(2,f),f++),delete o[c]}else for(r=a[c],i=0;i<f;i++)m=m<<1|1&r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r>>=1;0==--d&&(d=Math.pow(2,f),f++)}for(r=2,i=0;i<f;i++)m=m<<1|1&r,v==t-1?(v=0,p.push(n(m)),m=0):v++,r>>=1;for(;;){if(m<<=1,v==t-1){p.push(n(m));break}v++}return p.join("")},decompress:function(e){return null==e?"":""==e?null:s._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,n,i){var r,s,a,o,l,u,c,d=[],h=4,f=4,p=3,m="",v=[],g={val:i(0),position:n,index:1};for(r=0;r<3;r+=1)d[r]=r;for(a=0,l=Math.pow(2,2),u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=i(g.index++)),a|=(o>0?1:0)*u,u<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=i(g.index++)),a|=(o>0?1:0)*u,u<<=1;c=t(a);break;case 1:for(a=0,l=Math.pow(2,16),u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=i(g.index++)),a|=(o>0?1:0)*u,u<<=1;c=t(a);break;case 2:return""}for(d[3]=c,s=c,v.push(c);;){if(g.index>e)return"";for(a=0,l=Math.pow(2,p),u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=i(g.index++)),a|=(o>0?1:0)*u,u<<=1;switch(c=a){case 0:for(a=0,l=Math.pow(2,8),u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=i(g.index++)),a|=(o>0?1:0)*u,u<<=1;d[f++]=t(a),c=f-1,h--;break;case 1:for(a=0,l=Math.pow(2,16),u=1;u!=l;)o=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=i(g.index++)),a|=(o>0?1:0)*u,u<<=1;d[f++]=t(a),c=f-1,h--;break;case 2:return v.join("")}if(0==h&&(h=Math.pow(2,p),p++),d[c])m=d[c];else{if(c!==f)return null;m=s+s.charAt(0)}v.push(m),d[f++]=s+m.charAt(0),s=m,0==--h&&(h=Math.pow(2,p),p++)}}};return s}();"function"==typeof define&&define.amd?define(function(){return i}):void 0!==t&&null!=t&&(t.exports=i)},{}],7:[function(e,t,n){!function(e,i){"object"==typeof n&&void 0!==t?t.exports=i():"function"==typeof define&&define.amd?define(i):e.moment=i()}(this,function(){"use strict";function n(){return wt.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){var t;for(t in e)return!1;return!0}function a(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,i){return Fe(e,t,n,i,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=f()),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=kt.call(t.parsedDateParts,function(e){return null!=e}),i=!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&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=h(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}function g(e,t){var n,i,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),xt.length>0)for(n=0;n<xt.length;n++)a(r=t[i=xt[n]])||(e[i]=r);return e}function y(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Dt&&(Dt=!0,n.updateOffset(this),Dt=!1)}function _(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function k(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&b(e[i])!==b(t[i]))&&a++;return a+s}function x(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var i=!0;return d(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){for(var r,s=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){r+="\n["+a+"] ";for(var o in arguments[0])r+=o+": "+arguments[0][o]+", ";r=r.slice(0,-2)}else r=arguments[a];s.push(r)}x(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)},t)}function M(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),Mt[e]||(x(t),Mt[e]=!0)}function S(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,i=d({},e);for(n in t)c(t,n)&&(r(e[n])&&r(t[n])?(i[n]={},d(i[n],e[n]),d(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)c(e,n)&&!c(t,n)&&r(e[n])&&(i[n]=d({},i[n]));return i}function O(e){null!=e&&this.set(e)}function E(e,t){var n=e.toLowerCase();At[n]=At[n+"s"]=At[t]=e}function C(e){return"string"==typeof e?At[e]||At[e.toLowerCase()]:void 0}function Y(e){var t,n,i={};for(n in e)c(e,n)&&(t=C(n))&&(i[t]=e[n]);return i}function N(e,t){Pt[e]=t}function A(e){var t=[];for(var n in e)t.push({unit:n,priority:Pt[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function P(e,t){return function(i){return null!=i?(L(this,e,i),n.updateOffset(this,t),this):R(this,e)}}function R(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function L(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function F(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function I(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(It[e]=r),t&&(It[t[0]]=function(){return F(r.apply(this,arguments),t[1],t[2])}),n&&(It[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e){var t,n,i=e.match(Rt);for(t=0,n=i.length;t<n;t++)It[i[t]]?i[t]=It[i[t]]:i[t]=j(i[t]);return function(t){var r,s="";for(r=0;r<n;r++)s+=S(i[r])?i[r].call(t,e):i[r];return s}}function U(e,t){return e.isValid()?(t=H(t,e.localeData()),Ft[t]=Ft[t]||W(t),Ft[t](e)):e.localeData().invalidDate()}function H(e,t){var n=5;for(Lt.lastIndex=0;n>=0&&Lt.test(e);)e=e.replace(Lt,function(e){return t.longDateFormat(e)||e}),Lt.lastIndex=0,n-=1;return e}function z(e,t,n){nn[e]=S(t)?t:function(e,i){return e&&n?n:t}}function V(e,t){return c(nn,e)?nn[e](t._strict,t._locale):new RegExp(G(e))}function G(e){return B(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function B(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function q(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),o(t)&&(i=function(e,n){n[t]=b(e)}),n=0;n<e.length;n++)rn[e[n]]=i}function Z(e,t){q(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function $(e,t,n){null!=t&&c(rn,e)&&rn[e](t,n._a,n,e)}function X(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function J(e,t,n){var i,r,s,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=pn.call(this._shortMonthsParse,a))?r:null:-1!==(r=pn.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=pn.call(this._shortMonthsParse,a))?r:-1!==(r=pn.call(this._longMonthsParse,a))?r:null:-1!==(r=pn.call(this._longMonthsParse,a))?r:-1!==(r=pn.call(this._shortMonthsParse,a))?r:null}function Q(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!o(t))return e;return n=Math.min(e.date(),X(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function K(e){return null!=e?(Q(this,e),n.updateOffset(this,!0),this):R(this,"Month")}function ee(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),s.sort(e),t=0;t<12;t++)i[t]=B(i[t]),r[t]=B(r[t]);for(t=0;t<24;t++)s[t]=B(s[t]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function te(e){return ne(e)?366:365}function ne(e){return e%4==0&&e%100!=0||e%400==0}function ie(e,t,n,i,r,s,a){var o=new Date(e,t,n,i,r,s,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}function re(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function se(e,t,n){var i=7+t-n;return-((7+re(e,0,i).getUTCDay()-t)%7)+i-1}function ae(e,t,n,i,r){var s,a,o=1+7*(t-1)+(7+n-i)%7+se(e,i,r);return o<=0?a=te(s=e-1)+o:o>te(e)?(s=e+1,a=o-te(e)):(s=e,a=o),{year:s,dayOfYear:a}}function oe(e,t,n){var i,r,s=se(e.year(),t,n),a=Math.floor((e.dayOfYear()-s-1)/7)+1;return a<1?i=a+le(r=e.year()-1,t,n):a>le(e.year(),t,n)?(i=a-le(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function le(e,t,n){var i=se(e,t,n),r=se(e+1,t,n);return(te(e)-i+r)/7}function ue(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function ce(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function de(e,t,n){var i,r,s,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=pn.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=pn.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=pn.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=pn.call(this._weekdaysParse,a))?r:-1!==(r=pn.call(this._shortWeekdaysParse,a))?r:-1!==(r=pn.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=pn.call(this._shortWeekdaysParse,a))?r:-1!==(r=pn.call(this._weekdaysParse,a))?r:-1!==(r=pn.call(this._minWeekdaysParse,a))?r:null:-1!==(r=pn.call(this._minWeekdaysParse,a))?r:-1!==(r=pn.call(this._weekdaysParse,a))?r:-1!==(r=pn.call(this._shortWeekdaysParse,a))?r:null}function he(){function e(e,t){return t.length-e.length}var t,n,i,r,s,a=[],o=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(i),o.push(r),l.push(s),u.push(i),u.push(r),u.push(s);for(a.sort(e),o.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)o[t]=B(o[t]),l[t]=B(l[t]),u[t]=B(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function fe(){return this.hours()%12||12}function pe(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function me(e,t){return t._meridiemParse}function ve(e){return e?e.toLowerCase().replace("_","-"):e}function ge(e){for(var t,n,i,r,s=0;s<e.length;){for(t=(r=ve(e[s]).split("-")).length,n=(n=ve(e[s+1]))?n.split("-"):null;t>0;){if(i=ye(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&k(r,n,!0)>=t-1)break;t--}s++}return null}function ye(n){var i=null;if(!Nn[n]&&void 0!==t&&t&&t.exports)try{i=On._abbr,e("./locale/"+n),_e(i)}catch(e){}return Nn[n]}function _e(e,t){var n;return e&&(n=a(t)?be(e):we(e,t))&&(On=n),On._abbr}function we(e,t){if(null!==t){var n=Yn;if(t.abbr=e,null!=Nn[e])M("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=Nn[e]._config;else if(null!=t.parentLocale){if(null==Nn[t.parentLocale])return An[t.parentLocale]||(An[t.parentLocale]=[]),An[t.parentLocale].push({name:e,config:t}),null;n=Nn[t.parentLocale]._config}return Nn[e]=new O(T(n,t)),An[e]&&An[e].forEach(function(e){we(e.name,e.config)}),_e(e),Nn[e]}return delete Nn[e],null}function be(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return On;if(!i(e)){if(t=ye(e))return t;e=[e]}return ge(e)}function ke(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[an]<0||n[an]>11?an:n[on]<1||n[on]>X(n[sn],n[an])?on:n[ln]<0||n[ln]>24||24===n[ln]&&(0!==n[un]||0!==n[cn]||0!==n[dn])?ln:n[un]<0||n[un]>59?un:n[cn]<0||n[cn]>59?cn:n[dn]<0||n[dn]>999?dn:-1,p(e)._overflowDayOfYear&&(t<sn||t>on)&&(t=on),p(e)._overflowWeeks&&-1===t&&(t=hn),p(e)._overflowWeekday&&-1===t&&(t=fn),p(e).overflow=t),e}function xe(e){var t,n,i,r,s,a,o=e._i,l=Pn.exec(o)||Rn.exec(o);if(l){for(p(e).iso=!0,t=0,n=Fn.length;t<n;t++)if(Fn[t][1].exec(l[1])){r=Fn[t][0],i=!1!==Fn[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=In.length;t<n;t++)if(In[t][1].exec(l[3])){s=(l[2]||" ")+In[t][0];break}if(null==s)return void(e._isValid=!1)}if(!i&&null!=s)return void(e._isValid=!1);if(l[4]){if(!Ln.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(s||"")+(a||""),Ce(e)}else e._isValid=!1}function De(e){var t,n,i,r,s,a,o,l,u={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"};if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=Wn.exec(t)){if(i=n[1]?"ddd"+(5===n[1].length?", ":" "):"",r="D MMM "+(n[2].length>10?"YYYY ":"YY "),s="HH:mm"+(n[4]?":ss":""),n[1]){var c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][new Date(n[2]).getDay()];if(n[1].substr(0,3)!==c)return p(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:o=0===l?" +0000":((l="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(n[5][1].toUpperCase())-12)<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00";break;case 4:o=u[n[5]];break;default:o=u[" GMT"]}n[5]=o,e._i=n.splice(1).join(""),a=" ZZ",e._f=i+r+s+a,Ce(e),p(e).rfc2822=!0}else e._isValid=!1}function Me(e){var t=jn.exec(e._i);null===t?(xe(e),!1===e._isValid&&(delete e._isValid,De(e),!1===e._isValid&&(delete e._isValid,n.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Se(e,t,n){return null!=e?e:null!=t?t:n}function Te(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Oe(e){var t,n,i,r,s=[];if(!e._d){for(i=Te(e),e._w&&null==e._a[on]&&null==e._a[an]&&Ee(e),null!=e._dayOfYear&&(r=Se(e._a[sn],i[sn]),(e._dayOfYear>te(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=re(r,0,e._dayOfYear),e._a[an]=n.getUTCMonth(),e._a[on]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ln]&&0===e._a[un]&&0===e._a[cn]&&0===e._a[dn]&&(e._nextDay=!0,e._a[ln]=0),e._d=(e._useUTC?re:ie).apply(null,s),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ln]=24)}}function Ee(e){var t,n,i,r,s,a,o,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)s=1,a=4,n=Se(t.GG,e._a[sn],oe(Ie(),1,4).year),i=Se(t.W,1),((r=Se(t.E,1))<1||r>7)&&(l=!0);else{s=e._locale._week.dow,a=e._locale._week.doy;var u=oe(Ie(),s,a);n=Se(t.gg,e._a[sn],u.year),i=Se(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+s,(t.e<0||t.e>6)&&(l=!0)):r=s}i<1||i>le(n,s,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(o=ae(n,i,r,s,a),e._a[sn]=o.year,e._dayOfYear=o.dayOfYear)}function Ce(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],p(e).empty=!0;var t,i,r,s,a,o=""+e._i,l=o.length,u=0;for(r=H(e._f,e._locale).match(Rt)||[],t=0;t<r.length;t++)s=r[t],(i=(o.match(V(s,e))||[])[0])&&((a=o.substr(0,o.indexOf(i))).length>0&&p(e).unusedInput.push(a),o=o.slice(o.indexOf(i)+i.length),u+=i.length),It[s]?(i?p(e).empty=!1:p(e).unusedTokens.push(s),$(s,i,e)):e._strict&&!i&&p(e).unusedTokens.push(s);p(e).charsLeftOver=l-u,o.length>0&&p(e).unusedInput.push(o),e._a[ln]<=12&&!0===p(e).bigHour&&e._a[ln]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[ln]=Ye(e._locale,e._a[ln],e._meridiem),Oe(e),ke(e)}else De(e);else xe(e)}function Ye(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function Ne(e){var t,n,i,r,s;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)s=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Ce(t),m(t)&&(s+=p(t).charsLeftOver,s+=10*p(t).unusedTokens.length,p(t).score=s,(null==i||s<i)&&(i=s,n=t));d(e,n||t)}function Ae(e){if(!e._d){var t=Y(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)}),Oe(e)}}function Pe(e){var t=new y(ke(Re(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Re(e){var t=e._i,n=e._f;return e._locale=e._locale||be(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new y(ke(t)):(l(t)?e._d=t:i(n)?Ne(e):n?Ce(e):Le(e),m(e)||(e._d=null),e))}function Le(e){var t=e._i;a(t)?e._d=new Date(n.now()):l(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Me(e):i(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),Oe(e)):r(t)?Ae(e):o(t)?e._d=new Date(t):n.createFromInputFallback(e)}function Fe(e,t,n,a,o){var l={};return!0!==n&&!1!==n||(a=n,n=void 0),(r(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=a,Pe(l)}function Ie(e,t,n,i){return Fe(e,t,n,i,!1)}function je(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ie();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function We(e){for(var t in e)if(-1===zn.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<zn.length;++i)if(e[zn[i]]){if(n)return!1;parseFloat(e[zn[i]])!==b(e[zn[i]])&&(n=!0)}return!0}function Ue(e){var t=Y(e),n=t.year||0,i=t.quarter||0,r=t.month||0,s=t.week||0,a=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=We(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=be(),this._bubble()}function He(e){return e instanceof Ue}function ze(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ve(e,t){I(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)})}function Ge(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Vn)||["-",0,0],r=60*i[1]+b(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Be(e,t){var i,r;return t._isUTC?(i=t.clone(),r=(_(e)||l(e)?e.valueOf():Ie(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):Ie(e).local()}function qe(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ze(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function $e(e,t){var n,i,r,s=e,a=null;return He(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(s={},t?s[t]=e:s.milliseconds=e):(a=Gn.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:b(a[on])*n,h:b(a[ln])*n,m:b(a[un])*n,s:b(a[cn])*n,ms:b(ze(1e3*a[dn]))*n}):(a=Bn.exec(e))?(n="-"===a[1]?-1:1,s={y:Xe(a[2],n),M:Xe(a[3],n),w:Xe(a[4],n),d:Xe(a[5],n),h:Xe(a[6],n),m:Xe(a[7],n),s:Xe(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=Qe(Ie(s.from),Ie(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),i=new Ue(s),He(e)&&c(e,"_locale")&&(i._locale=e._locale),i}function Xe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Je(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 Qe(e,t){var n;return e.isValid()&&t.isValid()?(t=Be(t,e),e.isBefore(t)?n=Je(e,t):((n=Je(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ke(e,t){return function(n,i){var r,s;return null===i||isNaN(+i)||(M(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."),s=n,n=i,i=s),n="string"==typeof n?+n:n,r=$e(n,i),et(this,r,e),this}}function et(e,t,i,r){var s=t._milliseconds,a=ze(t._days),o=ze(t._months);e.isValid()&&(r=null==r||r,s&&e._d.setTime(e._d.valueOf()+s*i),a&&L(e,"Date",R(e,"Date")+a*i),o&&Q(e,R(e,"Month")+o*i),r&&n.updateOffset(e,a||o))}function tt(e,t){var n,i=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(i,"months");return n=t-r<0?(t-r)/(r-e.clone().add(i-1,"months")):(t-r)/(e.clone().add(i+1,"months")-r),-(i+n)||0}function nt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=be(e))&&(this._locale=t),this)}function it(){return this._locale}function rt(e,t){I(0,[e,e.length],0,t)}function st(e,t,n,i,r){var s;return null==e?oe(this,i,r).year:(s=le(e,i,r),t>s&&(t=s),at.call(this,e,t,n,i,r))}function at(e,t,n,i,r){var s=ae(e,t,n,i,r),a=re(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function ot(e){return e}function lt(e,t,n,i){var r=be(),s=h().set(i,t);return r[n](s,e)}function ut(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return lt(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=lt(e,i,n,"month");return r}function ct(e,t,n,i){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var r=be(),s=e?r._week.dow:0;if(null!=n)return lt(t,(n+s)%7,i,"day");var a,l=[];for(a=0;a<7;a++)l[a]=lt(t,(a+s)%7,i,"day");return l}function dt(e,t,n,i){var r=$e(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function ht(e){return e<0?Math.floor(e):Math.ceil(e)}function ft(e){return 4800*e/146097}function pt(e){return 146097*e/4800}function mt(e){return function(){return this.as(e)}}function vt(e){return function(){return this.isValid()?this._data[e]:NaN}}function gt(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function yt(e,t,n){var i=$e(e).abs(),r=_i(i.as("s")),s=_i(i.as("m")),a=_i(i.as("h")),o=_i(i.as("d")),l=_i(i.as("M")),u=_i(i.as("y")),c=r<=wi.ss&&["s",r]||r<wi.s&&["ss",r]||s<=1&&["m"]||s<wi.m&&["mm",s]||a<=1&&["h"]||a<wi.h&&["hh",a]||o<=1&&["d"]||o<wi.d&&["dd",o]||l<=1&&["M"]||l<wi.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,gt.apply(null,c)}function _t(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=bi(this._milliseconds)/1e3,r=bi(this._days),s=bi(this._months);t=w((e=w(i/60))/60),i%=60,e%=60;var a=n=w(s/12),o=s%=12,l=r,u=t,c=e,d=i,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(a?a+"Y":"")+(o?o+"M":"")+(l?l+"D":"")+(u||c||d?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var wt,bt,kt=bt=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},xt=n.momentProperties=[],Dt=!1,Mt={};n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var St,Tt,Ot=St=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n},Et={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ct={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"},Yt=/\d{1,2}/,Nt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},At={},Pt={},Rt=/(\[[^\[]*\])|(\\)?([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,Lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ft={},It={},jt=/\d/,Wt=/\d\d/,Ut=/\d{3}/,Ht=/\d{4}/,zt=/[+-]?\d{6}/,Vt=/\d\d?/,Gt=/\d\d\d\d?/,Bt=/\d\d\d\d\d\d?/,qt=/\d{1,3}/,Zt=/\d{1,4}/,$t=/[+-]?\d{1,6}/,Xt=/\d+/,Jt=/[+-]?\d+/,Qt=/Z|[+-]\d\d:?\d\d/gi,Kt=/Z|[+-]\d\d(?::?\d\d)?/gi,en=/[+-]?\d+(\.\d{1,3})?/,tn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,nn={},rn={},sn=0,an=1,on=2,ln=3,un=4,cn=5,dn=6,hn=7,fn=8,pn=Tt=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};I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),E("month","M"),N("month",8),z("M",Vt),z("MM",Vt,Wt),z("MMM",function(e,t){return t.monthsShortRegex(e)}),z("MMMM",function(e,t){return t.monthsRegex(e)}),q(["M","MM"],function(e,t){t[an]=b(e)-1}),q(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[an]=r:p(n).invalidMonth=e});var mn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),yn=tn,_n=tn;I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),E("year","y"),N("year",1),z("Y",Jt),z("YY",Vt,Wt),z("YYYY",Zt,Ht),z("YYYYY",$t,zt),z("YYYYYY",$t,zt),q(["YYYYY","YYYYYY"],sn),q("YYYY",function(e,t){t[sn]=2===e.length?n.parseTwoDigitYear(e):b(e)}),q("YY",function(e,t){t[sn]=n.parseTwoDigitYear(e)}),q("Y",function(e,t){t[sn]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var wn=P("FullYear",!0);I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),N("week",5),N("isoWeek",5),z("w",Vt),z("ww",Vt,Wt),z("W",Vt),z("WW",Vt,Wt),Z(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=b(e)});var bn={dow:0,doy:6};I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),z("d",Vt),z("e",Vt),z("E",Vt),z("dd",function(e,t){return t.weekdaysMinRegex(e)}),z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),z("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,i){t[i]=b(e)});var kn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mn=tn,Sn=tn,Tn=tn;I("H",["HH",2],0,"hour"),I("h",["hh",2],0,fe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+fe.apply(this)+F(this.minutes(),2)}),I("hmmss",0,0,function(){return""+fe.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),pe("a",!0),pe("A",!1),E("hour","h"),N("hour",13),z("a",me),z("A",me),z("H",Vt),z("h",Vt),z("k",Vt),z("HH",Vt,Wt),z("hh",Vt,Wt),z("kk",Vt,Wt),z("hmm",Gt),z("hmmss",Bt),z("Hmm",Gt),z("Hmmss",Bt),q(["H","HH"],ln),q(["k","kk"],function(e,t,n){var i=b(e);t[ln]=24===i?0:i}),q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),q(["h","hh"],function(e,t,n){t[ln]=b(e),p(n).bigHour=!0}),q("hmm",function(e,t,n){var i=e.length-2;t[ln]=b(e.substr(0,i)),t[un]=b(e.substr(i)),p(n).bigHour=!0}),q("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[ln]=b(e.substr(0,i)),t[un]=b(e.substr(i,2)),t[cn]=b(e.substr(r)),p(n).bigHour=!0}),q("Hmm",function(e,t,n){var i=e.length-2;t[ln]=b(e.substr(0,i)),t[un]=b(e.substr(i))}),q("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[ln]=b(e.substr(0,i)),t[un]=b(e.substr(i,2)),t[cn]=b(e.substr(r))});var On,En=/[ap]\.?m?\.?/i,Cn=P("Hours",!0),Yn={calendar:Et,longDateFormat:Ct,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Yt,relativeTime:Nt,months:vn,monthsShort:gn,week:bn,weekdays:kn,weekdaysMin:Dn,weekdaysShort:xn,meridiemParse:En},Nn={},An={},Pn=/^\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)?)?$/,Rn=/^\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)?)?$/,Ln=/Z|[+-]\d\d(?::?\d\d)?/,Fn=[["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}/]],In=[["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/]],jn=/^\/?Date\((\-?\d+)/i,Wn=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;n.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/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(){},n.RFC_2822=function(){};var Un=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ie.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Hn=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ie.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),zn=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ve("Z",":"),Ve("ZZ",""),z("Z",Kt),z("ZZ",Kt),q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ge(Kt,e)});var Vn=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Gn=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Bn=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;$e.fn=Ue.prototype,$e.invalid=function(){return $e(NaN)};var qn=Ke(1,"add"),Zn=Ke(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $n=D("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)});I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rt("gggg","weekYear"),rt("ggggg","weekYear"),rt("GGGG","isoWeekYear"),rt("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),z("G",Jt),z("g",Jt),z("GG",Vt,Wt),z("gg",Vt,Wt),z("GGGG",Zt,Ht),z("gggg",Zt,Ht),z("GGGGG",$t,zt),z("ggggg",$t,zt),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=b(e)}),Z(["gg","GG"],function(e,t,i,r){t[r]=n.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),E("quarter","Q"),N("quarter",7),z("Q",jt),q("Q",function(e,t){t[an]=3*(b(e)-1)}),I("D",["DD",2],"Do","date"),E("date","D"),N("date",9),z("D",Vt),z("DD",Vt,Wt),z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),q(["D","DD"],on),q("Do",function(e,t){t[on]=b(e.match(Vt)[0],10)});var Xn=P("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),N("dayOfYear",4),z("DDD",qt),z("DDDD",Ut),q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),I("m",["mm",2],0,"minute"),E("minute","m"),N("minute",14),z("m",Vt),z("mm",Vt,Wt),q(["m","mm"],un);var Jn=P("Minutes",!1);I("s",["ss",2],0,"second"),E("second","s"),N("second",15),z("s",Vt),z("ss",Vt,Wt),q(["s","ss"],cn);var Qn=P("Seconds",!1);I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),E("millisecond","ms"),N("millisecond",16),z("S",qt,jt),z("SS",qt,Wt),z("SSS",qt,Ut);var Kn;for(Kn="SSSS";Kn.length<=9;Kn+="S")z(Kn,Xt);for(Kn="S";Kn.length<=9;Kn+="S")q(Kn,function(e,t){t[dn]=b(1e3*("0."+e))});var ei=P("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ti=y.prototype;ti.add=qn,ti.calendar=function(e,t){var i=e||Ie(),r=Be(i,this).startOf("day"),s=n.calendarFormat(this,r)||"sameElse",a=t&&(S(t[s])?t[s].call(this,i):t[s]);return this.format(a||this.localeData().calendar(s,this,Ie(i)))},ti.clone=function(){return new y(this)},ti.diff=function(e,t,n){var i,r,s,a;return this.isValid()&&(i=Be(e,this)).isValid()?(r=6e4*(i.utcOffset()-this.utcOffset()),"year"===(t=C(t))||"month"===t||"quarter"===t?(a=tt(this,i),"quarter"===t?a/=3:"year"===t&&(a/=12)):(s=this-i,a="second"===t?s/1e3:"minute"===t?s/6e4:"hour"===t?s/36e5:"day"===t?(s-r)/864e5:"week"===t?(s-r)/6048e5:s),n?a:w(a)):NaN},ti.endOf=function(e){return void 0===(e=C(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},ti.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},ti.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Ie(e).isValid())?$e({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ti.fromNow=function(e){return this.from(Ie(),e)},ti.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Ie(e).isValid())?$e({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ti.toNow=function(e){return this.to(Ie(),e)},ti.get=function(e){return e=C(e),S(this[e])?this[e]():this},ti.invalidAt=function(){return p(this).overflow},ti.isAfter=function(e,t){var n=_(e)?e:Ie(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=C(a(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},ti.isBefore=function(e,t){var n=_(e)?e:Ie(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=C(a(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},ti.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},ti.isSame=function(e,t){var n,i=_(e)?e:Ie(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=C(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},ti.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ti.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ti.isValid=function(){return m(this)},ti.lang=$n,ti.locale=nt,ti.localeData=it,ti.max=Hn,ti.min=Un,ti.parsingFlags=function(){return d({},p(this))},ti.set=function(e,t){if("object"==typeof e)for(var n=A(e=Y(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(e=C(e),S(this[e]))return this[e](t);return this},ti.startOf=function(e){switch(e=C(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},ti.subtract=Zn,ti.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ti.toObject=function(){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()}},ti.toDate=function(){return new Date(this.valueOf())},ti.toISOString=function(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?U(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):S(Date.prototype.toISOString)?this.toDate().toISOString():U(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},ti.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},ti.toJSON=function(){return this.isValid()?this.toISOString():null},ti.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ti.unix=function(){return Math.floor(this.valueOf()/1e3)},ti.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ti.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ti.year=wn,ti.isLeapYear=function(){return ne(this.year())},ti.weekYear=function(e){return st.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ti.isoWeekYear=function(e){return st.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ti.quarter=ti.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ti.month=K,ti.daysInMonth=function(){return X(this.year(),this.month())},ti.week=ti.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ti.isoWeek=ti.isoWeeks=function(e){var t=oe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ti.weeksInYear=function(){var e=this.localeData()._week;return le(this.year(),e.dow,e.doy)},ti.isoWeeksInYear=function(){return le(this.year(),1,4)},ti.date=Xn,ti.day=ti.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=ue(e,this.localeData()),this.add(e-t,"d")):t},ti.weekday=function(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")},ti.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=ce(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ti.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ti.hour=ti.hours=Cn,ti.minute=ti.minutes=Jn,ti.second=ti.seconds=Qn,ti.millisecond=ti.milliseconds=ei,ti.utcOffset=function(e,t,i){var r,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ge(Kt,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=qe(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?et(this,$e(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:qe(this)},ti.utc=function(e){return this.utcOffset(0,e)},ti.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qe(this),"m")),this},ti.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ge(Qt,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ti.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ie(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ti.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ti.isLocal=function(){return!!this.isValid()&&!this._isUTC},ti.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ti.isUtc=Ze,ti.isUTC=Ze,ti.zoneAbbr=function(){return this._isUTC?"UTC":""},ti.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ti.dates=D("dates accessor is deprecated. Use date instead.",Xn),ti.months=D("months accessor is deprecated. Use month instead",K),ti.years=D("years accessor is deprecated. Use year instead",wn),ti.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ti.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Re(e))._a){var t=e._isUTC?h(e._a):Ie(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var ni=O.prototype;ni.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return S(i)?i.call(t,n):i},ni.longDateFormat=function(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])},ni.invalidDate=function(){return this._invalidDate},ni.ordinal=function(e){return this._ordinal.replace("%d",e)},ni.preparse=ot,ni.postformat=ot,ni.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)},ni.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},ni.set=function(e){var t,n;for(n in e)S(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ni.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||mn).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},ni.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[mn.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ni.monthsParse=function(e,t,n){var i,r,s;if(this._monthsParseExact)return J.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},ni.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=_n),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ni.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=yn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ni.week=function(e){return oe(e,this._week.dow,this._week.doy).week},ni.firstDayOfYear=function(){return this._week.doy},ni.firstDayOfWeek=function(){return this._week.dow},ni.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},ni.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},ni.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},ni.weekdaysParse=function(e,t,n){var i,r,s;if(this._weekdaysParseExact)return de.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},ni.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||he.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Mn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ni.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||he.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ni.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||he.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Tn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ni.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ni.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_e("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",_e),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",be);var ii=Math.abs,ri=mt("ms"),si=mt("s"),ai=mt("m"),oi=mt("h"),li=mt("d"),ui=mt("w"),ci=mt("M"),di=mt("y"),hi=vt("milliseconds"),fi=vt("seconds"),pi=vt("minutes"),mi=vt("hours"),vi=vt("days"),gi=vt("months"),yi=vt("years"),_i=Math.round,wi={ss:44,s:45,m:45,h:22,d:26,M:11},bi=Math.abs,ki=Ue.prototype;return ki.isValid=function(){return this._isValid},ki.abs=function(){var e=this._data;return this._milliseconds=ii(this._milliseconds),this._days=ii(this._days),this._months=ii(this._months),e.milliseconds=ii(e.milliseconds),e.seconds=ii(e.seconds),e.minutes=ii(e.minutes),e.hours=ii(e.hours),e.months=ii(e.months),e.years=ii(e.years),this},ki.add=function(e,t){return dt(this,e,t,1)},ki.subtract=function(e,t){return dt(this,e,t,-1)},ki.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=C(e))||"year"===e)return t=this._days+i/864e5,n=this._months+ft(t),"month"===e?n:n/12;switch(t=this._days+Math.round(pt(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ki.asMilliseconds=ri,ki.asSeconds=si,ki.asMinutes=ai,ki.asHours=oi,ki.asDays=li,ki.asWeeks=ui,ki.asMonths=ci,ki.asYears=di,ki.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},ki._bubble=function(){var e,t,n,i,r,s=this._milliseconds,a=this._days,o=this._months,l=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*ht(pt(o)+a),a=0,o=0),l.milliseconds=s%1e3,e=w(s/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,a+=w(n/24),r=w(ft(a)),o+=r,a-=ht(pt(r)),i=w(o/12),o%=12,l.days=a,l.months=o,l.years=i,this},ki.get=function(e){return e=C(e),this.isValid()?this[e+"s"]():NaN},ki.milliseconds=hi,ki.seconds=fi,ki.minutes=pi,ki.hours=mi,ki.days=vi,ki.weeks=function(){return w(this.days()/7)},ki.months=gi,ki.years=yi,ki.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=yt(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},ki.toISOString=_t,ki.toString=_t,ki.toJSON=_t,ki.locale=nt,ki.localeData=it,ki.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_t),ki.lang=$n,I("X",0,0,"unix"),I("x",0,0,"valueOf"),z("x",Jt),z("X",en),q("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),q("x",function(e,t,n){n._d=new Date(b(e))}),n.version="2.18.1",function(e){wt=e}(Ie),n.fn=ti,n.min=function(){return je("isBefore",[].slice.call(arguments,0))},n.max=function(){return je("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(e){return Ie(1e3*e)},n.months=function(e,t){return ut(e,t,"months")},n.isDate=l,n.locale=_e,n.invalid=v,n.duration=$e,n.isMoment=_,n.weekdays=function(e,t,n){return ct(e,t,n,"weekdays")},n.parseZone=function(){return Ie.apply(null,arguments).parseZone()},n.localeData=be,n.isDuration=He,n.monthsShort=function(e,t){return ut(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return ct(e,t,n,"weekdaysMin")},n.defineLocale=we,n.updateLocale=function(e,t){if(null!=t){var n,i=Yn;null!=Nn[e]&&(i=Nn[e]._config),(n=new O(t=T(i,t))).parentLocale=Nn[e],Nn[e]=n,_e(e)}else null!=Nn[e]&&(null!=Nn[e].parentLocale?Nn[e]=Nn[e].parentLocale:null!=Nn[e]&&delete Nn[e]);return Nn[e]},n.locales=function(){return Ot(Nn)},n.weekdaysShort=function(e,t,n){return ct(e,t,n,"weekdaysShort")},n.normalizeUnits=C,n.relativeTimeRounding=function(e){return void 0===e?_i:"function"==typeof e&&(_i=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==wi[e]&&(void 0===t?wi[e]:(wi[e]=t,"s"===e&&(wi.ss=t-1),!0))},n.calendarFormat=function(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"},n.prototype=ti,n})},{}],8:[function(e,t,n){"use strict";function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,l=i(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)s.call(n,c)&&(l[c]=n[c]);if(r){o=r(n);for(var d=0;d<o.length;d++)a.call(n,o[d])&&(l[o[d]]=n[o[d]])}}return l}},{}],9:[function(e,t,n){!function(i,r){"use strict";var s;if("object"==typeof n){try{s=e("moment")}catch(e){}t.exports=r(s)}else"function"==typeof define&&define.amd?define(function(e){try{s=e("moment")}catch(e){}return r(s)}):i.Pikaday=r(i.moment)}(this,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,i=window.document,r=window.setTimeout,s=function(e,t,i,r){n?e.addEventListener(t,i,!!r):e.attachEvent("on"+t,i)},a=function(e,t,i,r){n?e.removeEventListener(t,i,!!r):e.detachEvent("on"+t,i)},o=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},l=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},u=function(e,t){l(e,t)||(e.className=""===e.className?t:e.className+" "+t)},c=function(e,t){e.className=o((" "+e.className+" ").replace(" "+t+" "," "))},d=function(e){return/Array/.test(Object.prototype.toString.call(e))},h=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},f=function(e){var t=e.getDay();return 0===t||6===t},p=function(e){return e%4==0&&e%100!=0||e%400==0},m=function(e,t){return[31,p(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},v=function(e){h(e)&&e.setHours(0,0,0,0)},g=function(e,t){return e.getTime()===t.getTime()},y=function(e,t,n){var i,r;for(i in t)(r=void 0!==e[i])&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?h(t[i])?n&&(e[i]=new Date(t[i].getTime())):d(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=y({},t[i],n):!n&&r||(e[i]=t[i]);return e},_=function(e,t,n){var r;i.createEvent?((r=i.createEvent("HTMLEvents")).initEvent(t,!0,!1),r=y(r,n),e.dispatchEvent(r)):i.createEventObject&&(r=i.createEventObject(),r=y(r,n),e.fireEvent("on"+t,r))},w=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},b={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},k=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},x=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},D=function(e,t,n){var i=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-i)/864e5+i.getDay()+1)/7)+"</td>"},M=function(e,t,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},S=function(e){return"<tbody>"+e.join("")+"</tbody>"},T=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+k(e,t)+'">'+k(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},O=function(e,t,n,i,r,s){var a,o,l,u,c,h=e._o,f=n===h.minYear,p=n===h.maxYear,m='<div id="'+s+'" class="pika-title" role="heading" aria-live="assertive">',v=!0,g=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===r?a-t:12+a-t)+'"'+(a===i?' selected="selected"':"")+(f&&a<h.minMonth||p&&a>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",d(h.yearRange)?(a=h.yearRange[0],o=h.yearRange[1]+1):(a=n-h.yearRange,o=1+n+h.yearRange),l=[];a<o&&a<=h.maxYear;a++)a>=h.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return c='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?m+=c+u:m+=u+c,f&&(0===i||h.minMonth>=i)&&(v=!1),p&&(11===i||h.maxMonth<=i)&&(g=!1),0===t&&(m+='<button class="pika-prev'+(v?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(g?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),m+="</div>"},E=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+T(e)+S(t)+"</table>"},C=function(a){var o=this,u=o.config(a);o._onMouseDown=function(e){if(o._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(l(t,"is-disabled")||(!l(t,"pika-button")||l(t,"is-empty")||l(t.parentNode,"is-disabled")?l(t,"pika-prev")?o.prevMonth():l(t,"pika-next")&&o.nextMonth():(o.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),u.bound&&r(function(){o.hide(),u.blurFieldOnSelect&&u.field&&u.field.blur()},100))),l(t,"pika-select"))o._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},o._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(l(t,"pika-select-month")?o.gotoMonth(t.value):l(t,"pika-select-year")&&o.gotoYear(t.value))},o._onKeyChange=function(e){if(e=e||window.event,o.isVisible())switch(e.keyCode){case 13:case 27:u.field&&u.field.blur();break;case 37:e.preventDefault(),o.adjustDate("subtract",1);break;case 38:o.adjustDate("subtract",7);break;case 39:o.adjustDate("add",1);break;case 40:o.adjustDate("add",7)}},o._onInputChange=function(n){var i;n.firedBy!==o&&(i=u.parse?u.parse(u.field.value,u.format):t?(i=e(u.field.value,u.format,u.formatStrict))&&i.isValid()?i.toDate():null:new Date(Date.parse(u.field.value)),h(i)&&o.setDate(i),o._v||o.show())},o._onInputFocus=function(){o.show()},o._onInputClick=function(){o.show()},o._onInputBlur=function(){var e=i.activeElement;do{if(l(e,"pika-single"))return}while(e=e.parentNode);o._c||(o._b=r(function(){o.hide()},50)),o._c=!1},o._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,i=t;if(t){!n&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),s(t,"change",o._onChange)));do{if(l(i,"pika-single")||i===u.trigger)return}while(i=i.parentNode);o._v&&t!==u.trigger&&i!==u.trigger&&o.hide()}},o.el=i.createElement("div"),o.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),s(o.el,"mousedown",o._onMouseDown,!0),s(o.el,"touchend",o._onMouseDown,!0),s(o.el,"change",o._onChange),s(i,"keydown",o._onKeyChange),u.field&&(u.container?u.container.appendChild(o.el):u.bound?i.body.appendChild(o.el):u.field.parentNode.insertBefore(o.el,u.field.nextSibling),s(u.field,"change",o._onInputChange),u.defaultDate||(t&&u.field.value?u.defaultDate=e(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var c=u.defaultDate;h(c)?u.setDefaultDate?o.setDate(c,!0):o.gotoDate(c):o.gotoDate(new Date),u.bound?(this.hide(),o.el.className+=" is-bound",s(u.trigger,"click",o._onInputClick),s(u.trigger,"focus",o._onInputFocus),s(u.trigger,"blur",o._onInputBlur)):this.show()};return C.prototype={config:function(e){this._o||(this._o=y({},b,!0));var t=y(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,h(t.minDate)||(t.minDate=!1),h(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),d(t.yearRange)){var i=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||b.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,h(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return h(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",_(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),h(e)){var n=this._o.minDate,i=this._o.maxDate;h(n)&&e<n?e=n:h(i)&&e>i&&(e=i),this._d=new Date(e.getTime()),v(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),_(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(h(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=r<n.getTime()||i.getTime()<r}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){var n,i=this.getDate()||new Date,r=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(i.valueOf()+r):"subtract"===e&&(n=new Date(i.valueOf()-r)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=w({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(v(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=b.minDate,this._o.minYear=b.minYear,this._o.minMonth=b.minMonth,this._o.startRange=b.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(v(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=b.maxDate,this._o.maxYear=b.maxYear,this._o.maxMonth=b.maxMonth,this._o.endRange=b.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,i=n.minYear,s=n.maxYear,a=n.minMonth,o=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=s&&(this._y=s,!isNaN(o)&&this._m>o&&(this._m=o)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<n.numberOfMonths;u++)l+='<div class="pika-lendar">'+O(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&r(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,r,s,a,o,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,r=this.el.offsetHeight,s=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,o=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)l=(c=e.getBoundingClientRect()).left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>s||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+r>a+o||this._o.position.indexOf("top")>-1&&u-r-e.offsetHeight>0)&&(u=u-r-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var i=this._o,r=new Date,s=m(e,t),a=new Date(e,t,1).getDay(),o=[],l=[];v(r),i.firstDay>0&&(a-=i.firstDay)<0&&(a+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,d=0===t?e-1:e,p=11===t?e+1:e,y=m(d,u),_=s+a,w=_;w>7;)w-=7;_+=7-w;for(var b=!1,k=0,S=0;k<_;k++){var T=new Date(e,t,k-a+1),O=!!h(this._d)&&g(T,this._d),C=g(T,r),Y=-1!==i.events.indexOf(T.toDateString()),N=k<a||k>=s+a,A=k-a+1,P=t,R=e,L=i.startRange&&g(i.startRange,T),F=i.endRange&&g(i.endRange,T),I=i.startRange&&i.endRange&&i.startRange<T&&T<i.endRange,j=i.minDate&&T<i.minDate||i.maxDate&&T>i.maxDate||i.disableWeekends&&f(T)||i.disableDayFn&&i.disableDayFn(T);N&&(k<a?(A=y+A,P=u,R=d):(A-=s,P=c,R=p));var W={day:A,month:P,year:R,hasEvent:Y,isSelected:O,isToday:C,isDisabled:j,isEmpty:N,isStartRange:L,isEndRange:F,isInRange:I,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&O&&(b=!0),l.push(x(W)),7==++S&&(i.showWeekNumber&&l.unshift(D(k-a,t,e)),o.push(M(l,i.isRTL,i.pickWholeWeek,b)),l=[],S=0,b=!1)}return E(i,o,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),c(this.el,"is-hidden"),this._o.bound&&(s(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&a(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",u(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),a(i,"keydown",this._onKeyChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},C})},{moment:7}],10:[function(e,t,n){"use strict";function i(e){switch(e.arrayFormat){case"index":return function(t,n,i){return null===n?[s(t,e),"[",i,"]"].join(""):[s(t,e),"[",s(i,e),"]=",s(n,e)].join("")};case"bracket":return function(t,n){return null===n?s(t,e):[s(t,e),"[]=",s(n,e)].join("")};default:return function(t,n){return null===n?s(t,e):[s(t,e),"=",s(n,e)].join("")}}}function r(e){var t;switch(e.arrayFormat){case"index":return function(e,n,i){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),i[e][t[1]]=n):i[e]=n};case"bracket":return function(e,n,i){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],n):i[e]=[n]:i[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function s(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function a(e){return Array.isArray(e)?e.sort():"object"==typeof e?a(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}var o=e("strict-uri-encode"),l=e("object-assign"),u=e("decode-uri-component");n.extract=function(e){return e.split("?")[1]||""},n.parse=function(e,t){var n=r(t=l({arrayFormat:"none"},t)),i=Object.create(null);return"string"!=typeof e?i:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),r=t.shift(),s=t.length>0?t.join("="):void 0;s=void 0===s?null:u(s),n(u(r),s,i)}),Object.keys(i).sort().reduce(function(e,t){var n=i[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=a(n):e[t]=n,e},Object.create(null))):i},n.stringify=function(e,t){var n=i(t=l({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map(function(i){var r=e[i];if(void 0===r)return"";if(null===r)return s(i,t);if(Array.isArray(r)){var a=[];return r.slice().forEach(function(e){void 0!==e&&a.push(n(i,e,a.length))}),a.join("&")}return s(i,t)+"="+s(r,t)}).filter(function(e){return e.length>0}).join("&"):""}},{"decode-uri-component":2,"object-assign":8,"strict-uri-encode":12}],11:[function(e,t,n){!function(e){"use strict";"function"==typeof define&&define.amd?define(e):void 0!==t&&void 0!==t.exports?t.exports=e():window.Sortable=e()}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=_({},t),e[G]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0}};for(var i in n)!(i in t)&&(t[i]=n[i]);ae(t);for(var r in this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Q,s(e,"mousedown",this._onTapStart),s(e,"touchstart",this._onTapStart),s(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(s(e,"dragover",this),s(e,"dragenter",this)),re.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e,t){"clone"!==e.lastPullMode&&(t=!0),M&&M.state!==t&&(l(M,"display",t?"none":""),t||M.state&&(e.options.group.revertClone?(S.insertBefore(M,T),e._animate(k,M)):S.insertBefore(M,k)),M.state=t)}function n(e,t,n){if(e){n=n||q;do{if(">*"===t&&e.parentNode===n||g(e,t))return e}while(e=i(e))}return null}function i(e){var t=e.host;return t&&t.nodeType?t:e.parentNode}function r(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}function s(e,t,n){e.addEventListener(t,n,J)}function a(e,t,n){e.removeEventListener(t,n,J)}function o(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(z," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(z," ")}}function l(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return q.defaultView&&q.defaultView.getComputedStyle?n=q.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function u(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,s=i.length;if(n)for(;r<s;r++)n(i[r],r);return i}return[]}function c(e,t,n,i,r,s,a){e=e||t[G];var o=q.createEvent("Event"),l=e.options,u="on"+n.charAt(0).toUpperCase()+n.substr(1);o.initEvent(n,!0,!0),o.to=t,o.from=r||t,o.item=i||t,o.clone=M,o.oldIndex=s,o.newIndex=a,t.dispatchEvent(o),l[u]&&l[u].call(e,o)}function d(e,t,n,i,r,s,a,o){var l,u,c=e[G],d=c.options.onMove;return(l=q.createEvent("Event")).initEvent("move",!0,!0),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=r||t,l.relatedRect=s||t.getBoundingClientRect(),l.willInsertAfter=o,e.dispatchEvent(l),d&&(u=d.call(c,l,a)),u}function h(e){e.draggable=!1}function f(){ee=!1}function p(e,t){var n=e.lastElementChild.getBoundingClientRect();return t.clientY-(n.top+n.height)>5||t.clientX-(n.left+n.width)>5}function m(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function v(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"===e.nodeName.toUpperCase()||">*"!==t&&!g(e,t)||n++;return n}function g(e,t){if(e){var n=(t=t.split(".")).shift().toUpperCase(),i=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");return!(""!==n&&e.nodeName.toUpperCase()!=n||t.length&&((" "+e.className+" ").match(i)||[]).length!=t.length)}return!1}function y(e,t){var n,i;return function(){void 0===n&&(n=arguments,i=this,setTimeout(function(){1===n.length?e.call(i,n[0]):e.apply(i,n),n=void 0},t))}}function _(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function w(e){return $?$(e).clone(!0)[0]:X&&X.dom?X.dom(e).cloneNode(!0):e.cloneNode(!0)}function b(e){for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&ie.push(i)}}if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var k,x,D,M,S,T,O,E,C,Y,N,A,P,R,L,F,I,j,W,U,H={},z=/\s+/g,V=/left|right|inline/,G="Sortable"+(new Date).getTime(),B=window,q=B.document,Z=B.parseInt,$=B.jQuery||B.Zepto,X=B.Polymer,J=!1,Q=!!("draggable"in q.createElement("div")),K=function(e){return!navigator.userAgent.match(/Trident.*rv[ :]?11\./)&&(e=q.createElement("x"),e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents)}(),ee=!1,te=Math.abs,ne=Math.min,ie=[],re=[],se=y(function(e,t,n){if(n&&t.scroll){var i,r,s,a,o,l,u=n[G],c=t.scrollSensitivity,d=t.scrollSpeed,h=e.clientX,f=e.clientY,p=window.innerWidth,m=window.innerHeight;if(C!==n&&(E=t.scroll,C=n,Y=t.scrollFn,!0===E)){E=n;do{if(E.offsetWidth<E.scrollWidth||E.offsetHeight<E.scrollHeight)break}while(E=E.parentNode)}E&&(i=E,r=E.getBoundingClientRect(),s=(te(r.right-h)<=c)-(te(r.left-h)<=c),a=(te(r.bottom-f)<=c)-(te(r.top-f)<=c)),s||a||(a=(m-f<=c)-(f<=c),((s=(p-h<=c)-(h<=c))||a)&&(i=B)),H.vx===s&&H.vy===a&&H.el===i||(H.el=i,H.vx=s,H.vy=a,clearInterval(H.pid),i&&(H.pid=setInterval(function(){if(l=a?a*d:0,o=s?s*d:0,"function"==typeof Y)return Y.call(u,o,l,e);i===B?B.scrollTo(B.pageXOffset+o,B.pageYOffset+l):(i.scrollTop+=l,i.scrollLeft+=o)},24)))}},30),ae=function(e){function t(e,t){return void 0!==e&&!0!==e||(e=n.name),"function"==typeof e?e:function(n,i){var r=i.options.group.name;return t?e:e&&(e.join?e.indexOf(r)>-1:r==e)}}var n={},i=e.group;i&&"object"==typeof i||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n};e.prototype={constructor:e,_onTapStart:function(e){var t,i=this,r=this.el,s=this.options,a=s.preventOnFilter,o=e.type,l=e.touches&&e.touches[0],u=(l||e).target,d=e.target.shadowRoot&&e.path&&e.path[0]||u,h=s.filter;if(b(r),!k&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||s.disabled)&&(u=n(u,s.draggable,r))&&O!==u){if(t=v(u,s.draggable),"function"==typeof h){if(h.call(this,e,u,this))return c(i,d,"filter",u,r,t),void(a&&e.preventDefault())}else if(h&&(h=h.split(",").some(function(e){if(e=n(d,e.trim(),r))return c(i,e,"filter",u,r,t),!0})))return void(a&&e.preventDefault());s.handle&&!n(d,s.handle,r)||this._prepareDragStart(e,l,u,t)}},_prepareDragStart:function(e,t,n,i){var r,a=this,l=a.el,d=a.options,f=l.ownerDocument;n&&!k&&n.parentNode===l&&(j=e,S=l,x=(k=n).parentNode,T=k.nextSibling,O=n,F=d.group,R=i,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,k.style["will-change"]="transform",r=function(){a._disableDelayedDrag(),k.draggable=a.nativeDraggable,o(k,d.chosenClass,!0),a._triggerDragStart(e,t),c(a,S,"choose",k,S,R)},d.ignore.split(",").forEach(function(e){u(k,e.trim(),h)}),s(f,"mouseup",a._onDrop),s(f,"touchend",a._onDrop),s(f,"touchcancel",a._onDrop),s(f,"pointercancel",a._onDrop),s(f,"selectstart",a),d.delay?(s(f,"mouseup",a._disableDelayedDrag),s(f,"touchend",a._disableDelayedDrag),s(f,"touchcancel",a._disableDelayedDrag),s(f,"mousemove",a._disableDelayedDrag),s(f,"touchmove",a._disableDelayedDrag),s(f,"pointermove",a._disableDelayedDrag),a._dragStartTimer=setTimeout(r,d.delay)):r())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),a(e,"mouseup",this._disableDelayedDrag),a(e,"touchend",this._disableDelayedDrag),a(e,"touchcancel",this._disableDelayedDrag),a(e,"mousemove",this._disableDelayedDrag),a(e,"touchmove",this._disableDelayedDrag),a(e,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,t){(t=t||("touch"==e.pointerType?e:null))?(j={target:k,clientX:t.clientX,clientY:t.clientY},this._onDragStart(j,"touch")):this.nativeDraggable?(s(k,"dragend",this),s(S,"dragstart",this._onDragStart)):this._onDragStart(j,!0);try{q.selection?setTimeout(function(){q.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){if(S&&k){var t=this.options;o(k,t.ghostClass,!0),o(k,t.dragClass,!1),e.active=this,c(this,S,"start",k,S,R)}else this._nulling()},_emulateDragOver:function(){if(W){if(this._lastX===W.clientX&&this._lastY===W.clientY)return;this._lastX=W.clientX,this._lastY=W.clientY,K||l(D,"display","none");var e=q.elementFromPoint(W.clientX,W.clientY),t=e,n=re.length;if(t)do{if(t[G]){for(;n--;)re[n]({clientX:W.clientX,clientY:W.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);K||l(D,"display","")}},_onTouchMove:function(t){if(j){var n=this.options,i=n.fallbackTolerance,r=n.fallbackOffset,s=t.touches?t.touches[0]:t,a=s.clientX-j.clientX+r.x,o=s.clientY-j.clientY+r.y,u=t.touches?"translate3d("+a+"px,"+o+"px,0)":"translate("+a+"px,"+o+"px)";if(!e.active){if(i&&ne(te(s.clientX-this._lastX),te(s.clientY-this._lastY))<i)return;this._dragStarted()}this._appendGhost(),U=!0,W=s,l(D,"webkitTransform",u),l(D,"mozTransform",u),l(D,"msTransform",u),l(D,"transform",u),t.preventDefault()}},_appendGhost:function(){if(!D){var e,t=k.getBoundingClientRect(),n=l(k),i=this.options;o(D=k.cloneNode(!0),i.ghostClass,!1),o(D,i.fallbackClass,!0),o(D,i.dragClass,!0),l(D,"top",t.top-Z(n.marginTop,10)),l(D,"left",t.left-Z(n.marginLeft,10)),l(D,"width",t.width),l(D,"height",t.height),l(D,"opacity","0.8"),l(D,"position","fixed"),l(D,"zIndex","100000"),l(D,"pointerEvents","none"),i.fallbackOnBody&&q.body.appendChild(D)||S.appendChild(D),e=D.getBoundingClientRect(),l(D,"width",2*t.width-e.width),l(D,"height",2*t.height-e.height)}},_onDragStart:function(e,t){var n=e.dataTransfer,i=this.options;this._offUpEvents(),F.checkPull(this,this,k,e)&&((M=w(k)).draggable=!1,M.style["will-change"]="",l(M,"display","none"),o(M,this.options.chosenClass,!1),S.insertBefore(M,k),c(this,S,"clone",k)),o(k,i.dragClass,!0),t?("touch"===t?(s(q,"touchmove",this._onTouchMove),s(q,"touchend",this._onDrop),s(q,"touchcancel",this._onDrop),s(q,"pointermove",this._onTouchMove),s(q,"pointerup",this._onDrop)):(s(q,"mousemove",this._onTouchMove),s(q,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(n&&(n.effectAllowed="move",i.setData&&i.setData.call(this,n,k)),s(q,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(i){var r,s,a,o,u=this.el,c=this.options,h=c.group,m=e.active,v=F===h,g=!1,y=c.sort;if(void 0!==i.preventDefault&&(i.preventDefault(),!c.dragoverBubble&&i.stopPropagation()),!k.animated&&(U=!0,m&&!c.disabled&&(v?y||(o=!S.contains(k)):I===this||(m.lastPullMode=F.checkPull(this,m,k,i))&&h.checkPut(this,m,k,i))&&(void 0===i.rootEl||i.rootEl===this.el))){if(se(i,c,this.el),ee)return;if(r=n(i.target,c.draggable,u),s=k.getBoundingClientRect(),I!==this&&(I=this,g=!0),o)return t(m,!0),x=S,void(M||T?S.insertBefore(k,M||T):y||S.appendChild(k));if(0===u.children.length||u.children[0]===D||u===i.target&&p(u,i)){if(0!==u.children.length&&u.children[0]!==D&&u===i.target&&(r=u.lastElementChild),r){if(r.animated)return;a=r.getBoundingClientRect()}t(m,v),!1!==d(S,u,k,s,r,a,i)&&(k.contains(u)||(u.appendChild(k),x=u),this._animate(s,k),r&&this._animate(a,r))}else if(r&&!r.animated&&r!==k&&void 0!==r.parentNode[G]){N!==r&&(N=r,A=l(r),P=l(r.parentNode));var _=(a=r.getBoundingClientRect()).right-a.left,w=a.bottom-a.top,b=V.test(A.cssFloat+A.display)||"flex"==P.display&&0===P["flex-direction"].indexOf("row"),O=r.offsetWidth>k.offsetWidth,E=r.offsetHeight>k.offsetHeight,C=(b?(i.clientX-a.left)/_:(i.clientY-a.top)/w)>.5,Y=r.nextElementSibling,R=!1;if(b){var L=k.offsetTop,j=r.offsetTop;R=L===j?r.previousElementSibling===k&&!O||C&&O:r.previousElementSibling===k||k.previousElementSibling===r?(i.clientY-a.top)/w>.5:j>L}else g||(R=Y!==k&&!E||C&&E);var W=d(S,u,k,s,r,a,i,R);!1!==W&&(1!==W&&-1!==W||(R=1===W),ee=!0,setTimeout(f,30),t(m,v),k.contains(u)||(R&&!Y?u.appendChild(k):r.parentNode.insertBefore(k,R?Y:r)),x=k.parentNode,this._animate(s,k),this._animate(a,r))}}},_animate:function(e,t){var n=this.options.animation;if(n){var i=t.getBoundingClientRect();1===e.nodeType&&(e=e.getBoundingClientRect()),l(t,"transition","none"),l(t,"transform","translate3d("+(e.left-i.left)+"px,"+(e.top-i.top)+"px,0)"),t.offsetWidth,l(t,"transition","all "+n+"ms"),l(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){l(t,"transition",""),l(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;a(q,"touchmove",this._onTouchMove),a(q,"pointermove",this._onTouchMove),a(e,"mouseup",this._onDrop),a(e,"touchend",this._onDrop),a(e,"pointerup",this._onDrop),a(e,"touchcancel",this._onDrop),a(e,"pointercancel",this._onDrop),a(e,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;clearInterval(this._loopId),clearInterval(H.pid),clearTimeout(this._dragStartTimer),a(q,"mousemove",this._onTouchMove),this.nativeDraggable&&(a(q,"drop",this),a(n,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(U&&(t.preventDefault(),!i.dropBubble&&t.stopPropagation()),D&&D.parentNode&&D.parentNode.removeChild(D),S!==x&&"clone"===e.active.lastPullMode||M&&M.parentNode&&M.parentNode.removeChild(M),k&&(this.nativeDraggable&&a(k,"dragend",this),h(k),k.style["will-change"]="",o(k,this.options.ghostClass,!1),o(k,this.options.chosenClass,!1),c(this,S,"unchoose",k,S,R),S!==x?(L=v(k,i.draggable))>=0&&(c(null,x,"add",k,S,R,L),c(this,S,"remove",k,S,R,L),c(null,x,"sort",k,S,R,L),c(this,S,"sort",k,S,R,L)):k.nextSibling!==T&&(L=v(k,i.draggable))>=0&&(c(this,S,"update",k,S,R,L),c(this,S,"sort",k,S,R,L)),e.active&&(null!=L&&-1!==L||(L=R),c(this,S,"end",k,S,R,L),this.save()))),this._nulling()},_nulling:function(){S=k=x=D=T=M=O=E=C=j=W=U=L=N=A=I=F=e.active=null,ie.forEach(function(e){e.checked=!0}),ie.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":k&&(this._onDragOver(e),r(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],i=this.el.children,r=0,s=i.length,a=this.options;r<s;r++)n(e=i[r],a.draggable,this.el)&&t.push(e.getAttribute(a.dataIdAttr)||m(e));return t},sort:function(e){var t={},i=this.el;this.toArray().forEach(function(e,r){var s=i.children[r];n(s,this.options.draggable,i)&&(t[e]=s)},this),e.forEach(function(e){t[e]&&(i.removeChild(t[e]),i.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return n(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];n[e]=t,"group"===e&&ae(n)},destroy:function(){var e=this.el;e[G]=null,a(e,"mousedown",this._onTapStart),a(e,"touchstart",this._onTapStart),a(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(a(e,"dragover",this),a(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),re.splice(re.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},s(q,"touchmove",function(t){e.active&&t.preventDefault()});try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){J={capture:!1,passive:!1}}}))}catch(e){}return e.utils={on:s,off:a,css:l,find:u,is:function(e,t){return!!n(e,t,e)},extend:_,throttle:y,closest:n,toggleClass:o,clone:w,index:v},e.create=function(t,n){return new e(t,n)},e.version="1.6.1",e})},{}],12:[function(e,t,n){"use strict";t.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},{}],13:[function(e,t,n){"use strict";function i(){var e={".mode-toggle":l,".lang-selector":x.switchLanguage,"#close":a,"#save":f,"#saveTemplate":p,"#card":k.trigger,"#workspace":r};Object.keys(e).forEach(function(t){document.querySelector(t).addEventListener("click",function(n){n.preventDefault(),e[t](n)})}),document.body.addEventListener("input",function(){return b.softUpdate()}),document.getElementById("loadFromFile").addEventListener("change",function(e){y.importFromFile(e.target.files[0],s)})}function r(e){var t=e.target,n=t.classList,i=t.dataset;n.contains("card-link")?s(g.open(i.id).card):n.contains("card-remove")&&o(i.id)}function s(e){w.showCard(),b.load(e),d()}function a(){h(),c(),b.close(),g.close(),_.refreshWorkspace(g.list()),w.showDashboard()}function o(e){g.remove(e),_.refreshWorkspace(g.list())}function l(){w.toggleMode(),b.update()}function u(){var e=v.parse(window.location.search);e.entry&&"savedCard"===e.entry?(_.highlightFileImport(),m()):(e.cardjson||e.cardurl)&&(y.urlImport(e,s),m())}function c(){g.save(b.pollData(),b.getTemplateName(),b.getName())}function d(){clearInterval(M),M=setInterval(c,D)}function h(){clearInterval(M)}function f(){y.exportCard(b.getName(),b.pollData())}function p(){y.exportCard(b.getTemplateName(),b.pollData(!0))}function m(){window.history.replaceState(null,null,""+window.location.pathname)}var v=e("query-string"),g=e("./workspace"),y=e("./store"),_=e("./ui/general"),w=e("./ui/mode"),b=e("./ui/card"),k=e("./ui/block-tool"),x=e("./ui/lang"),D=5e3,M=void 0;t.exports={init:function(){x.initLangSelector(),i(),u(),w.showDashboard(),_.refreshWorkspace(g.list()),x.refreshTranslations()}}},{"./store":39,"./ui/block-tool":43,"./ui/card":44,"./ui/general":45,"./ui/lang":46,"./ui/mode":47,"./workspace":49,"query-string":10}],14:[function(e,t,n){"use strict";function i(){return'<div class="cell"><p class="desc">'+o("description")+'</p></div>\n      <div class="cell"><textarea class="in name text"></textarea></div>'}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../translator").translate("blocks.bigtext.");t.exports={assemble:function(){var e=s("bigtext",i());return a(e),e}}},{"./../translator":42,"./util":29}],15:[function(e,t,n){"use strict";function i(e){var t=[].slice.call(e.querySelectorAll(".row")).reduce(function(e,t){return e+u(t.querySelector(".units"))},0);c(e.querySelector(".total"),t),r(e.querySelectorAll(".countlist-item"))}function r(e){var t=!1;[].slice.call(e).forEach(function(e){var n=e.querySelectorAll("input"),i=""===n[0].value&&""===n[1].value;e.style.display=t&&i?"none":"flex",t=i})}var s=e("./util"),a=s.wrap,o=s.init,l=e("./../fields/fields"),u=l.read,c=l.write,d=e("./../translator").translate("blocks.countlist."),h='<div class="cell"><div class="countlist-header grid-x">\n    <div class="cell medium-10"><p class="desc">'+d("unit")+'</p></div>\n    <div class="cell medium-2"><p class="desc">'+d("count")+"</p></div>\n  </div></div>",f='<div class="row grid-x countlist-item">\n    <div class="cell medium-10"><input type="text" class="in text"></div>\n    <div class="cell medium-2"><input type="text" class="in number units"></div>\n  </div>',p='<div class="totals grid-x">\n    <div class="cell medium-10"><p class="desc">'+d("total")+'</p></div>\n    <div class="cell medium-2"><input type="text" class="out name number total"></div>\n  </div>';t.exports={assemble:function(){var e=a("countlist",h+' <div class="cell">'+f.repeat(10)+" "+p+"</div>");return o(e,i),e},update:i}},{"./../fields/fields":36,"./../translator":42,"./util":29}],16:[function(e,t,n){"use strict";function i(){return'<div class="cell medium-3">\n        <input type="text" class="in name date">\n      </div>\n      <div class="cell medium-9">\n        <p class="desc">'+o("description")+"</p>\n      </div>"}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../translator").translate("blocks.dateinput.");t.exports={assemble:function(){var e=s("dateinput",i());return a(e),e}}},{"./../translator":42,"./util":29}],17:[function(e,t,n){"use strict";function i(){return'<div class="cell medium-3">\n        <input type="text" class="out formula date">\n      </div>\n      <div class="cell medium-9">\n        <p class="desc">'+u("description")+'</p>\n      </div>\n      <div class="cell">\n        '+'<div class="grid-x todo">\n    <div class="cell small-1"></div>\n    <div class="cell small-11">\n      <div class="input-group">\n        <label class="input-group-label"><input type="checkbox" class="in checkbox"></label>\n        <input type="text" class="input-group-field in text">\n      </div>\n    </div>\n  </div>'.repeat(10)+"\n      </div>"}function r(e){s(e.querySelectorAll(".todo"))}function s(e){var t=!1;[].slice.call(e).forEach(function(e){var n=""===e.querySelector('[type="text"]').value;e.style.display=t&&n?"none":"flex",t=n})}var a=e("./util"),o=a.wrap,l=a.init,u=e("./../translator").translate("blocks.dateoutput.");t.exports={assemble:function(){var e=o("dateoutput",i());return l(e,r),e}}},{"./../translator":42,"./util":29}],18:[function(e,t,n){"use strict";function i(){return'<div class="cell medium-6">\n      <p class="desc">'+o("description")+'</p>\n      <textarea class="in name text"></textarea>\n    </div>\n    <div class="cell medium-6">\n      <p class="desc">'+o("description")+'</p>\n      <textarea class="in name text"></textarea>\n    </div>'}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../translator").translate("blocks.doubletext.");t.exports={assemble:function(){var e=s("doubletext",i());return a(e),e}}},{"./../translator":42,"./util":29}],19:[function(e,t,n){"use strict";function i(){return'<div class="cell"><p style="height: 1rem">&nbsp;</p></div>'}var r=e("./util"),s=r.wrap,a=r.init;t.exports={assemble:function(){var e=s("final",i());return a(e),e}}},{"./util":29}],20:[function(e,t,n){"use strict";function i(){return'\n    <div class="cell medium-6 card-info">\n      <h4 class="desc card-name">'+o("title")+'</h4>\n      <p class="desc">'+o("short")+'</p>\n    </div>\n    <div class="cell medium-6 card-info">\n      <h4>'+o("authorHeading")+'</h4>\n      <p class="desc">'+o("author")+"</p>\n      <h4>"+o("licenseHeading")+'</h4>\n      <p class="desc">'+o("license")+'</p>\n    </div>\n    <div class="cell">\n      <p><label class="desc">'+o("activityName")+'</label>\n        <input name="_activity-name" type="text" class="in text">\n      </label></p>\n    </div>\n    <div class="cell medium-6">\n      <p><label>\n        '+o("goal")+'<br>\n        <textarea class="in text"></textarea>\n      </label></p>\n    </div>\n    <div class="cell medium-6">\n      <p><label>\n        '+o("notes")+'<br>\n        <textarea class="in text"></textarea>\n      </label></p>\n    </div>'}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../translator").translate("blocks.header.");t.exports={assemble:function(){var e=s("header",i());return a(e),e}}},{"./../translator":42,"./util":29}],21:[function(e,t,n){"use strict";function i(e){o(e.querySelector(".bool"))?e.classList.add("true"):e.classList.remove("true")}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../fields/fields").read,l=e("./../translator").translate("blocks.indicator."),u='\n<div class="cell is-true">\n  <p class="icon"><i class="fa fa-check" aria-hidden="true"></i></p>\n  <p class="desc">'+l("isTrue")+'</p>\n</div>\n<div class="cell is-false">\n  <p class="icon"><i class="fa fa-times" aria-hidden="true"></i></p>\n  <p class="desc">'+l("isFalse")+'</p>\n</div>\n<div class="cell hide-in-fill-mode"><input type="text" class="out name formula bool"></div>';t.exports={assemble:function(){var e=s("indicator",""+u);return a(e,i),e},update:i}},{"./../fields/fields":36,"./../translator":42,"./util":29}],22:[function(e,t,n){"use strict";function i(){return'<div class="cell"><p class="desc">'+o("text")+"</p></div>"}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../translator").translate("blocks.note.");t.exports={assemble:function(){var e=s("note",i());return a(e),e}}},{"./../translator":42,"./util":29}],23:[function(e,t,n){"use strict";function i(){return'<div class="cell medium-3">\n    <input type="text" class="in name number">\n  </div>\n  <div class="cell medium-9">\n    <p class="desc">'+o("description")+"</p>\n  </div>\n  "}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../translator").translate("blocks.number.");t.exports={assemble:function(){var e=s("number",i());return a(e),e}}},{"./../translator":42,"./util":29}],24:[function(e,t,n){"use strict";function i(e){var t=[].slice.call(e.querySelectorAll(".row")).reduce(function(e,t){var n=u(t.querySelector(".price")),i=u(t.querySelector(".units"));return c(t.querySelector(".subtotal"),n*i),e+n*i},0);c(e.querySelector(".total"),t),r(e.querySelectorAll(".pricelist-item"))}function r(e){var t=!1;[].slice.call(e).forEach(function(e){var n=e.querySelectorAll("input"),i=""===n[0].value&&""===n[1].value&&""===n[2].value;e.style.display=t&&i?"none":"flex",t=i})}var s=e("./util"),a=s.wrap,o=s.init,l=e("./../fields/fields"),u=l.read,c=l.write,d=e("./../translator").translate("blocks.pricelist."),h='<div class="cell"><div class="pricelist-header grid-x">\n    <div class="cell medium-6"><p class="desc">'+d("item")+'</p></div>\n    <div class="cell medium-2"><p class="desc">'+d("price")+'</p></div>\n    <div class="cell medium-2"><p class="desc">'+d("count")+'</p></div>\n    <div class="cell medium-2"><p class="desc">'+d("total")+"</p></div>\n  </div></div>",f='<div class="row grid-x pricelist-item">\n    <div class="cell medium-6"><input type="text" class="in text"></div>\n    <div class="cell medium-2"><input type="text" class="in number price"></div>\n    <div class="cell medium-2"><input type="text" class="in number units"></div>\n    <div class="cell medium-2"><input type="text" class="out number subtotal"></div>\n  </div>',p='<div class="totals grid-x">\n    <div class="cell medium-6"><p class="desc">'+d("total")+'</p></div>\n    <div class="cell medium-6"><input type="text" class="out name number total"></div>\n  </div>';t.exports={assemble:function(){var e=a("pricelist",h+' <div class="cell">'+f.repeat(10)+" "+p+"</div>");return o(e,i),e},update:i}},{"./../fields/fields":36,"./../translator":42,"./util":29}],25:[function(e,t,n){"use strict";var i=e("./util").wrap;t.exports={assemble:function(){return i("separator",'<div class="cell"><hr></div>')}}},{"./util":29}],26:[function(e,t,n){"use strict";function i(){return'\n    <div class="cell">\n      <h4 class="desc card-name">'+o("text")+"</h4>\n    </div>"}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../translator").translate("blocks.subhead.");t.exports={assemble:function(){var e=s("subhead",i());return a(e),e}}},{"./../translator":42,"./util":29}],27:[function(e,t,n){"use strict";function i(){return'<div class="cell medium-6">\n    <p class="desc">'+o("description")+'</p>\n  </div>\n  <div class="cell medium-6">\n    <input type="text" class="out name formula number">\n  </div>'}var r=e("./util"),s=r.wrap,a=r.init,o=e("./../translator").translate("blocks.sum.");t.exports={assemble:function(){var e=s("sum",i());return a(e),e}}},{"./../translator":42,"./util":29}],28:[function(e,t,n){"use strict";function i(e,t){return c(e,t).map(function(e){return d.read(e)})}function r(e){return c(e,".name-setter").map(function(e){return e.value})}function s(e){return c(e,".formula-setter").map(function(e){return e.value})}function a(e,t){o(e,".in",t.inputs),o(e,".desc",t.descriptions),l(e,t.names),u(e,t.formulas)}function o(e,t,n){n&&c(e,t).forEach(function(e,t){n[t]&&d.write(e,n[t])})}function l(e,t){t&&c(e,".name-setter").forEach(function(e,n){t[n]&&(e.value=t[n],e.dispatchEvent(new Event("input")))})}function u(e,t){t&&c(e,".formula-setter").forEach(function(e,n){t[n]&&(e.value=t[n],e.dispatchEvent(new Event("input")))})}var c=e("./../ui/util.js").allArray,d=e("./../fields/fields"),h=e("autosize"),f={bigtext:e("./_bigtext"),countlist:e("./_countlist"),dateinput:e("./_dateinput"),dateoutput:e("./_dateoutput"),doubletext:e("./_doubletext"),final:e("./_final"),header:e("./_header"),indicator:e("./_indicator"),pricelist:e("./_pricelist"),note:e("./_note"),number:e("./_number"),separator:e("./_separator"),subhead:e("./_subhead"),sum:e("./_sum")},p={text:["bigtext","doubletext","---","number","sum","---","dateinput","dateoutput"],list:["countlist","pricelist"],context:["subhead","note","separator","---","indicator"]};t.exports={create:function(e,t){var n=f[e].assemble();return t&&a(n,t),f[e].update&&f[e].update(n),h(n.querySelectorAll("textarea")),n},poll:function(e){return{type:e.dataset.type,data:{inputs:i(e,".in"),descriptions:i(e,".desc"),names:r(e),formulas:s(e)}}},fill:a,all:f,nav:p}},{"./../fields/fields":36,"./../ui/util.js":48,"./_bigtext":14,"./_countlist":15,"./_dateinput":16,"./_dateoutput":17,"./_doubletext":18,"./_final":19,"./_header":20,"./_indicator":21,"./_note":22,"./_number":23,"./_pricelist":24,"./_separator":25,"./_subhead":26,"./_sum":27,autosize:1}],29:[function(e,t,n){"use strict";var i=e("./../ui/util.js").allArray,r=e("./../fields/fields"),s=e("./../translator").translate;t.exports={wrap:function(e,t){var n=document.createElement("DIV");n.classList.add("grid-x"),n.classList.add("grid-margin-x"),n.classList.add("block"),n.dataset.type=e,n.classList.add("block-"+e),n.innerHTML=t;var i=document.createElement("DIV");return i.classList.add("cell"),i.classList.add("block-tools"),i.innerHTML='\n    <div class="external-tools">\n      <a class="add-block tool"><i class="fa fa-plus" aria-hidden="true"></i></a>\n    </div>\n    <p class="internal-tools">\n      <span class="block-handle">\n        <i class="fa fa-bars" aria-hidden="true"></i>\n        '+s("blocks",e,"name")+'\n      </span>\n      <a class="remove-block tool">\n        <i class="fa fa-times" aria-hidden="true"></i>\n      </a>\n    </p>',n.insertAdjacentElement("afterbegin",i),n},init:function(e,t){Object.keys(r.all).forEach(function(t){i(e,"."+t).forEach(function(e){return r.all[t].init(e)})}),e.addEventListener("externalUpdate",function(){t&&t(e)}),i(e,".in").forEach(function(n){return n.addEventListener("input",function(){t&&t(e)})})}}},{"./../fields/fields":36,"./../translator":42,"./../ui/util.js":48}],30:[function(e,t,n){"use strict";var i=e("./util").activate;t.exports={init:function(e){i(e,"bool")},read:function(e){return"true"===e.value},write:function(e,t){e.value=t}}},{"./util":37}],31:[function(e,t,n){"use strict";var i=e("./util").activate;t.exports={init:function(e){i(e,"checkbox")},read:function(e){return e.checked},write:function(e,t){e.checked=t}}},{"./util":37}],32:[function(e,t,n){"use strict";function i(e){e.classList.contains("in")&&new a({field:e,format:l("dateFormat"),firstDay:1,onSelect:function(){return e.dispatchEvent(new Event("input"))},i18n:l("pikadayNames")})}var r="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},s=e("moment"),a=e("pikaday"),o=e("./util").activate,l=e("./../translator").translate;t.exports={init:function(e){o(e,"date"),i(e)},read:function(e){return s(e.value,l("dateFormat"))},write:function(e,t){"string"==typeof t?e.value=s(t).format(l("dateFormat")):"object"===(void 0===t?"undefined":r(t))&&t.format===s.prototype.format&&(e.value=t.format(l("dateFormat")))}}},{"./../translator":42,"./util":37,moment:7,pikaday:9}],33:[function(e,t,n){"use strict";t.exports={init:function(e){e.dataset.fieldName="desc"},read:function(e){return e.innerHTML},write:function(e,t){e.innerHTML=t}}},{}],34:[function(e,t,n){"use strict";function i(e,t){var n="true"===e.dataset.isFloat?parseFloat(t,10):parseInt(t,10);return Number.isNaN(n)?0:n}var r=e("./util").activate;t.exports={init:function(e){e.dataset.isFloat=e.classList.contains("float")?"true":"false",r(e,"number")},read:function(e){return i(e,e.value)},write:function(e,t){e.value=i(e,t)}}},{"./util":37}],35:[function(e,t,n){"use strict";var i=e("./util").activate;t.exports={init:function(e){i(e,"text")},read:function(e){return e.value},write:function(e,t){e.value=t}}},{"./util":37}],36:[function(e,t,n){"use strict";var i={bool:e("./_bool"),date:e("./_date"),desc:e("./_desc"),number:e("./_number"),text:e("./_text"),checkbox:e("./_checkbox")};t.exports={read:function(e){return i[e.dataset.fieldName].read(e)},write:function(e,t){i[e.dataset.fieldName].write(e,t)},all:i}},{"./_bool":30,"./_checkbox":31,"./_date":32,"./_desc":33,"./_number":34,"./_text":35}],37:[function(e,t,n){"use strict";function i(e){var t=void 0,n=void 0,i=s("DIV",["descriptors"]);return e.classList.contains("name")&&(t=r("name",'<i class="fa fa-tag" aria-hidden="true"></i>',a,e),i.appendChild(t)),e.classList.contains("formula")&&(n=r("formula","&fnof;=",o,e),i.appendChild(n)),n||t?i:null}function r(e,t,n,i){var r=s("SPAN",["descriptor",e+"-descriptor"]),a=s("SPAN",["descriptor-label"],t);r.appendChild(a);var o=s("INPUT",["descriptor-value",e+"-setter"]);return o.addEventListener("input",function(){return n(i,o.value)}),o.setAttribute("placeholder",l(e)),r.appendChild(o),r}function s(e,t,n){var i=document.createElement(e);return t&&i.setAttribute("class",t.join(" ")),n&&(i.innerHTML=n),i}function a(e,t){e.setAttribute("name",t)}function o(e,t){e.dataset.formula=t}var l=e("./../translator").translate("fields.util.");t.exports={activate:function(e,t){e.dataset.fieldName=t,(e.classList.contains("out")||e.classList.contains("formula"))&&e.setAttribute("readonly","readonly");var n=i(e);n&&e.insertAdjacentElement("afterend",n)}}},{"./../translator":42}],38:[function(e,t,n){"use strict";function i(){r(),s.init()}function r(){document.getElementById("card").addEventListener("submit",function(e){return e.preventDefault()})}var s=e("./app");document.addEventListener("DOMContentLoaded",function(){i()})},{"./app":13}],39:[function(e,t,n){"use strict";function i(e,t){var n=JSON.stringify(t),i=u.compressToEncodedURIComponent(n),r="https://jan-martinek.github.io/plancards/";return'<!DOCTYPE html>\n  <html>\n  <head>\n    <meta charset="utf-8">\n    <title>'+c("export.storedCard")+" „"+e+'“</title>\n\n    <style>\n      body, html {\n        background: white;\n      }\n      h1, h2, p {\n        font-family: sans-serif;\n        font-weight: normal;\n      }\n      h1, h2 { margin: 2rem 0 0.5rem; }\n      p { margin: 0 0 1rem; }\n      .wrapper {\n        margin: 100px auto;\n        max-width: 450px;\n      }\n      .box {\n        padding: 2rem;\n        border: 1px solid #aaa;\n        background: #fafafa;\n      }\n    </style>\n  </head>\n  <body>\n    <div class="wrapper">\n      <h1>'+e+"</h1>\n      <p>"+c("export.storedCardLong")+'</p>\n      <div class="box">\n        <p>\n          '+c("export.usage")+'\n          <a href="'+r+'?entry=savedCard">'+c("export.usageLoc")+'</a>.\n        </p>\n\n        <div id="quickLink">\n          <h2>'+c("export.quickLink")+"</h2>\n          <p>\n            "+c("export.luck")+'\n            <a href="'+r+"?cardjson="+i+'">'+c("export.click")+"</a>.\n            "+c("export.depends")+"\n          </p>\n        </div>\n      </div>\n    </div>\n\n    <script>\n      // long links do not work at all in IE\n      // other browsers generally accept > 80k chars\n      var ua = window.navigator.userAgent;\n      if (ua.indexOf('MSIE ') > 0 || ua.indexOf('Trident/') > 0) {\n        document.getElementById('quickLink').style.display = 'none';\n      }\n    <\/script>\n\n\n    \x3c!-- !!!"+n+"!!! --\x3e\n  </body>\n  </html>"}function r(e){var t=/<!-- !!!([\S\s]+)!!! -->/.exec(e);return!!t&&JSON.parse(t[1])}function s(e,t){var n=c("export.quickLink"),r=i(e||n,t),s=new Blob([r],{type:"text/plain;charset=utf-8"}),a=(new Date).toISOString().split("T")[0];l.saveAs(s,(e||n)+"-"+a+".html")}function a(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(r(n.responseText))}}function o(e,t){t(JSON.parse(u.decompressFromEncodedURIComponent(e)))}var l=e("file-saver"),u=e("lz-string"),c=e("./translator").translate;t.exports={importFromFile:function(e,t){var n=new FileReader;n.readAsText(e),n.onload=function(e){return t(r(e.target.result))}},urlImport:function(e,t){e.cardurl?a(e.cardurl,t):e.cardjson&&o(e.cardjson,t)},exportCard:s,exportTemplate:function(e,t){s(e||c("export.template"),t)}}},{"./translator":42,"file-saver":5,"lz-string":6}],40:[function(e,t,n){"use strict";t.exports={lang:"česky",dateFormat:"D. M. YYYY",app:{plancards:"Plánovací karty",editCard:"upravit kartu",editingNow:"úpravy karty",download:"stáhnout",templateDownload:"stáhnout šablonu",saveAndClose:"uložit a zavřít"},home:{note:"Zaznamenávejte své postupy",improve:"Zlepšujte svou práci",share:"Sdílejte dobrou praxi",tips:"Tipy",purpose:"Na této stránce můžete vyplňovat a upravovat své plánovací karty.",privacy:"Všechny informace jsou uloženy ve vašem počítači a nikam se neodesílají, nezapomeňte však své karty proto ukládat.",shareHow:"Vytvořené karty můžete sdílet s ostatními — pošlete je mailem, sdílejte je na internetu.",open:"Otevřít kartu",openButton:"Otevřít",workspace:"Rozpracované karty",noneOpened:"Nemáte rozpracované žádné karty.",openFromFile:"Nahrát ze souboru",openFromFileHl:"Uložený soubor vyberte zde:",openFromUrl:"Otevřít pomocí odkazu",openFromUrlPlaceholder:"odkaz",basic:"Základní šablony",footer:'Vyvinuto v rámci projektu Profesionalizace <a href="http://www.ranapecezlin.cz">Střediska rané péče EDUCO Zlín z.s.</a>, který byl podpořen z Evropského sociálního fondu. Registrační číslo projektu: CZ.03.3.60/0.0/0.0/15_031/0001866.',partners:'Partnery projektu jsou <a href="http://fundraising.cz">České centrum fundraisingu</a> a <a href="http://muni.cz">Masarykova univerzita</a>.'},pikadayNames:{previousMonth:"Předchozí měsíc",nextMonth:"Následující měsíc",months:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],weekdays:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],weekdaysShort:["Ne","Po","Út","St","Čt","Pá","So"]},blocks:{bigtext:{name:"Velké textové pole",description:"Popis"},countlist:{name:"Položkový seznam (ks)",unit:"Položka",count:"Počet",total:"Celkem"},dateinput:{name:"Termín",description:"Popis"},dateoutput:{name:"Milník s úkoly",description:"Popis"},doubletext:{name:"Dvě textová pole",description:"Popis"},final:{name:"Závěrečný panel"},header:{name:"Hlavička",short:"Krátce popište, k čemu se tato karta hodí.",authorHeading:"Autor/ka karty",author:"Jméno Příjmení, jmeno.prijmeni@email.cz",licenseHeading:"Licence (pravidla pro sdílení)",license:"Zde krátce popište, zda kartu sdílíte volně nebo zda\n        žádáte o dodržení nějakých pravidel (např. ponechání kontaktu\n        na původního autora atp. Můžete určit i konkrétní licenci\n        (například Creative Commons).",activityName:"Název aktivity",goal:"Cíl aktivity v jedné větě",notes:"Poznámky"},indicator:{name:"Indikátor (ano/ne)",isTrue:"Text, pokud je podmínka splněna",isFalse:"Text, pokud podmínka není splněna"},pricelist:{name:"Položkový seznam (cena/ks)",item:"Položka",price:"Cena",count:"Počet",total:"Celkem"},note:{name:"Poznámka",text:"Text poznámky"},number:{name:"Číselná položka",description:"Popis číselné hodnoty"},separator:{name:"Oddělovač"},subhead:{name:"Mezititulek",text:"Mezititulek"},sum:{name:"Výpočet",description:"Popis"}},fields:{util:{name:"název",formula:"vzorec"}},blockNav:{text:"Políčka",list:"Seznamy",context:"Popisky"},export:{card:"karta",template:"šablona",storedCard:"Uložená karta",storedCardLong:"Uložená karta z aplikace „Plánovací karty“.",usage:"Obsah karty můžete otevřít a upravovat",usageLoc:"na webu Plánovacích karet",quickLink:"Rychlý odkaz",luck:"S trochou štěstí stačí",click:"kliknout na odkaz",depends:"Není nicméně funkční vždy — záleží to na prohlížeči a množství obsahu v kartě."}}},{}],41:[function(e,t,n){"use strict";t.exports={lang:"english",dateFormat:"M/D/YYYY",app:{plancards:"PlanCards",editCard:"edit card",editingNow:"editing card",download:"download",templateDownload:"download template",saveAndClose:"save and close"},home:{note:"Keep notes about repeating tasks",improve:"Improve solutions over time",share:"Share best practices",tips:"Tips",purpose:"Use this web app to create and edit your plan cards.",privacy:"Everything is stored in your browser. Export cards into a file to store it safely for a long time.",shareHow:"Share cards with other people — use e-mail or upload them on the web.",open:"Open card",openButton:"Open",workspace:"Opened cards",noneOpened:"You have no currently opened cards.",openFromFile:"Load from file",openFromFileHl:"Select a file from drive:",openFromUrl:"Load from a web link",openFromUrlPlaceholder:"web link",basic:"Basic templates",footer:'Developed as part of a project Profesionalization of <a href="http://www.ranapecezlin.cz">Early Intervention Centre Zlin o.p.s.</a>, supported by European Social Fund. Project ID: CZ.03.3.60/0.0/0.0/15_031/0001866.',partners:'Project’s partners are <a href="http://fundraising.cz">Czech Fundraising Center</a> and <a href="http://muni.cz">Masaryk University</a>.'},pikadayNames:{previousMonth:"Previous month",nextMonth:"Next month",months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},blocks:{bigtext:{name:"Large text field",description:"Description"},countlist:{name:"Item list",unit:"Item",count:"Count",total:"Total"},dateinput:{name:"Date",description:"Description"},dateoutput:{name:"Milestone with todos",description:"Description"},doubletext:{name:"Two text fields",description:"Description"},final:{name:"Final panel"},header:{name:"Header",short:"A few words about the purpose of this card.",authorHeading:"Card’s author",author:"Name Surname, name.surname@mailbox.xyz",licenseHeading:"License (rules for sharing)",license:"Is this card shared freely or do you want some\n      rules to be kept (e. g. leaving your contact intact)?\n      You can use a specific license, such as Creative Commons.",activityName:"Activity name",goal:"Goals (in one sentence)",notes:"Notes"},indicator:{name:"Indicator (yes/no)",isTrue:"Text displayed, when the condition is satisfied",isFalse:"Text displayed, when the condition isn’t satisfied"},pricelist:{name:"Pricelist (price/unit)",item:"Item",price:"Price",count:"Count",total:"Total"},note:{name:"Note",text:"Note’s content"},number:{name:"Numeric input",description:"Description of the number"},separator:{name:"Separator"},subhead:{name:"Subtitle",text:"Subtitle"},sum:{name:"Sum",description:"Description"}},fields:{util:{name:"name",formula:"formula"}},blockNav:{text:"Fields",list:"Lists",context:"Structure"},export:{card:"card",template:"template",storedCard:"Saved card",storedCardLong:"A card saved in the web app „Plan Cards“.",usage:"You can view and edit the contents of this card on the",usageLoc:"PlanCards website",quickLink:"Quick Link",luck:"With a little bit of luck, it might be enough",click:"to just click this link",depends:"It does not work all the time — it depends on your browser and the content of the card."}}},{}],42:[function(e,t,n){"use strict";function i(){return o.hasItem("lang")&&l[o.getItem("lang")]?o.getItem("lang"):"en"}function r(e){return e.match(/\.$/)?function(t){return r(e+t)}:(arguments.length>1?[].slice.call(arguments):e.split(".")).reduce(function(e,t){return e?e[t]:void 0},u)}var s=e("./translations/cs"),a=e("./translations/en"),o=e("doc-cookies"),l={en:a,cs:s},u=l[i()];t.exports={setLang:function(e){l[e]&&(o.setItem("lang",e),u=l[e])},getLang:i,getLanguages:function(){return Object.keys(l).map(function(e){return{short:e,name:l[e].lang}})},translate:r}},{"./translations/cs":40,"./translations/en":41,"doc-cookies":3}],43:[function(e,t,n){"use strict";function i(){var e=document.createElement("DIV");e.classList.add("add-block-tool"),e.innerHTML='<div class="arrow-up"></div><div class="content grid-x grid-margin-x"></div>';var t=e.querySelector(".content");return Object.keys(r.nav).forEach(function(e){var n=document.createDocumentFragment(),i=document.createElement("section");u(i,["cell","medium-4"]),i.innerHTML="<p>"+s("blockNav",e)+"</p>",n.appendChild(i),r.nav[e].forEach(function(e){if("---"===e)i.appendChild(document.createElement("HR"));else{var t=document.createElement("A");u(t,["tool","add-block-type"]),t.dataset.type=e,t.innerHTML=s("blocks",e,"name"),i.appendChild(t)}}),t.appendChild(n)}),e}var r=e("./../blocks/blocks"),s=e("./../translator").translate,a=e("./util"),o=a.allArray,l=a.findAncestor,u=a.setClasses,c={"swap-blocks":function(e){var t=l(e,"block"),n=t.previousSibling;n&&t.parentNode.insertBefore(t,n)},"remove-block":function(e){l(e,"block").remove()},"add-block":function(e){e.classList.contains("opened")?(l(e,"block-tools").querySelector(".add-block-tool").remove(),e.classList.remove("opened")):(l(e,"block-tools").insertAdjacentElement("beforeend",i()),e.classList.add("opened"))},"add-block-type":function(e){var t=l(e,"block"),n=r.create(e.dataset.type);t.insertAdjacentElement("beforebegin",n),o(n,".desc").forEach(function(e){e.setAttribute("contenteditable","true")}),l(e,"block-tools").querySelector(".add-block").classList.remove("opened"),l(e,"add-block-tool").remove()}};t.exports={trigger:function(e){var t=e.target.classList.contains("tool")?e.target:e.target.parentNode.classList.contains("tool")?e.target.parentNode:null;t&&Object.keys(c).forEach(function(e){t.classList.contains(e)&&c[e](t)})}}},{"./../blocks/blocks":28,"./../translator":42,"./util":48}],44:[function(e,t,n){"use strict";function i(){r(Object.assign({},s(),y)),o.update(document.querySelectorAll("textarea"))}function r(e){h(p,".formula").forEach(function(t){t.dataset.formula&&(c.write(t,l.evaluate(t.dataset.formula,e)),f(t,"block").dispatchEvent(new Event("externalUpdate")))})}function s(){return h(p,"[name]").reduce(function(e,t){return e[t.getAttribute("name")]=c.read(t),e},{})}var a=e("sortablejs"),o=e("autosize"),l=e("expr-eval").Parser,u=e("./../blocks/blocks"),c=e("./../fields/fields"),d=e("./util"),h=d.allArray,f=d.findAncestor,p=document.getElementById("card"),m=180,v=void 0,g=void 0,y={daysAfter:function(e,t){return e.clone().add(t,"days")},daysBefore:function(e,t){return e.clone().subtract(t,"days")}};t.exports={load:function(e){var t=document.createDocumentFragment();e.forEach(function(e){t.appendChild(u.create(e.type,e.data))}),p.appendChild(t),i(),g&&g.destroy(),g=a.create(p,{animation:150,handle:".block-handle",draggable:".block",filter:".block-header, .block-final",preventOnFilter:!1,ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag"})},close:function(){p.innerHTML=""},pollData:function(e){var t=[];return h(p,".block").forEach(function(n){var i=u.poll(n);e&&(i.data.inputs=[]),t.push(i)}),t},getName:function(){var e=document.querySelector('[name="_activity-name"]');return e&&e.value?e.value:"karta"},getTemplateName:function(){var e=document.querySelector(".card-name");return e&&e.innerHTML?e.innerHTML:"šablona"},update:i,softUpdate:function(){clearTimeout(v),v=setTimeout(i,m)}}},{"./../blocks/blocks":28,"./../fields/fields":36,"./util":48,autosize:1,"expr-eval":4,sortablejs:11}],45:[function(e,t,n){"use strict";var i=e("moment"),r=e("./util").findAncestor,s=e("./mode"),a=s.show,o=s.hide,l=e("./../translator").translate;t.exports={highlightFileImport:function(){var e=document.getElementById("loadFromFile"),t=r(e,"callout");t.insertBefore(document.createTextNode(l("openFromFileHl")+" "),e),t.classList.add("labelHighlight")},refreshWorkspace:function(e){var t=document.getElementById("workspace");if(t.innerHTML="",e.length>0){var n=document.createDocumentFragment();e.forEach(function(e){var t=i(e.mtime).format(l("dateFormat")),r=document.createElement("LI");r.innerHTML='<p>\n        <a class="card-link" data-id="'+e.id+'">'+e.cardName+'</a>\n        <i class="fa fa-times card-remove" data-id="'+e.id+'" aria-hidden="true"></i>\n        <br>\n        <span class="label">'+e.templateName+'</span>\n        <span class="label">'+t+"</span>\n      </p>",n.appendChild(r)}),t.appendChild(n),o("none-opened")}else a("none-opened")}}},{"./../translator":42,"./mode":47,"./util":48,moment:7}],46:[function(e,t,n){"use strict";function i(){var e=s.getLang();document.querySelectorAll(".lang-selector a").forEach(function(t){t.dataset.lang===e?t.classList.add("current"):t.classList.remove("current")})}function r(){var e=s.getLang();a(document.querySelector("html"),"[data-phrase]").forEach(function(t){t.dataset.currentLang!==e&&(t.dataset.currentLang=e,t.dataset.tt?t.setAttribute(t.dataset.tt,s.translate(t.dataset.phrase)):t.innerHTML=s.translate(t.dataset.phrase))})}var s=e("./../translator"),a=e("./util").allArray;t.exports={initLangSelector:function(){document.querySelector(".lang-selector").innerHTML=s.getLanguages().map(function(e){return'<a href="" data-lang="'+e.short+'">'+e.name+"</a>"}).join(" &middot; "),i()},switchLanguage:function(e){"A"===e.target.tagName&&(s.setLang(e.target.dataset.lang),r(),i())},refreshTranslations:r}},{"./../translator":42,"./util":48}],47:[function(e,t,n){"use strict";function i(){u(document.body,["edit-mode"],["fill-mode"]),l(document.body,".desc").forEach(function(e){e.setAttribute("contenteditable","true")})}function r(){u(document.body,["fill-mode"],["edit-mode"]),l(document.body,".desc").forEach(function(e){e.removeAttribute("contenteditable")})}function s(){[].forEach.call(arguments,function(e){document.getElementById(e).style.display=c[e].shown})}function a(){[].forEach.call(arguments,function(e){document.getElementById(e).style.display=c[e].hidden})}var o=e("./util"),l=o.allArray,u=o.setClasses,c={card:{shown:"block",hidden:"none"},toolbar:{shown:"flex",hidden:"none"},dashboard:{shown:"flex",hidden:"none"},"none-opened":{shown:"block",hidden:"none"}};t.exports={showCard:function(){a("dashboard"),s("card","toolbar"),r()},showDashboard:function(){s("dashboard"),a("card","toolbar")},toggleMode:function(){document.body.classList.contains("fill-mode")?i():r()},show:s,hide:a}},{"./util":48}],48:[function(e,t,n){"use strict";function i(e){return[].slice.call(e)}function r(e,t){var n=e.parentElement;return n.classList.contains(t)?n:r(n,t)}t.exports={allArray:function(e,t){return i(e.querySelectorAll(t))},findAncestor:r,setClasses:function(e,t,n){t&&t.length>0&&t.forEach(function(t){return e.classList.add(t)}),n&&n.length>0&&n.forEach(function(t){return e.classList.remove(t)})}}},{}],49:[function(e,t,n){"use strict";function i(e){return JSON.parse(localStorage.getItem(e))}var r=void 0;t.exports={save:function(e,t,n){var i=(new Date).getTime();r||(r="card"+i),localStorage.setItem(r,JSON.stringify({id:r,templateName:t,cardName:n,mtime:i,card:e}))},load:i,open:function(e){return r=e,i(e)},close:function(){r=null},remove:function(e){localStorage.removeItem(e)},list:function(){return Object.keys(localStorage).filter(function(e){return e.match(/^card\d+$/)}).map(function(e){return i(e)}).sort(function(e,t){return t.mtime-e.mtime})}}},{}]},{},[38]);
  //# sourceMappingURL=main.js.map
  