text: // rome@v1.1.3, MIT licensed. https://github.com/bevacqua/rome
  !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.rome=t()}}(function(){var t;return function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return a(n?n:e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(t,e){function n(){}var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=n,r.addListener=n,r.once=n,r.off=n,r.removeListener=n,r.removeAllListeners=n,r.emit=n,r.binding=function(){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw new Error("process.chdir is not supported")}},{}],2:[function(t,e){e.exports=t("./src/contra.emitter.js")},{"./src/contra.emitter.js":3}],3:[function(t,e){(function(t){!function(n,r){"use strict";function a(t,e){return Array.prototype.slice.call(t,e)}function i(t,e,n){t&&s(function(){t.apply(n||null,e||[])})}function o(t,e){var n=e||{},o={};return t===r&&(t={}),t.on=function(e,n){return o[e]?o[e].push(n):o[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var r=arguments.length;if(1===r)delete o[e];else if(0===r)o={};else{var a=o[e];if(!a)return t;a.splice(a.indexOf(n),1)}return t},t.emit=function(){var e=a(arguments),r=e.shift(),s=o[r];if("error"===r&&n.throws!==!1&&!s)throw 1===e.length?e[0]:e;return s?(o[r]=s.filter(function(r){return n.async?i(r,e,t):r.apply(t,e),!r._once}),t):t},t}var s,u=""+r,c="function"==typeof setImmediate;s=c?function(t){setImmediate(t)}:typeof t!==u&&t.nextTick?t.nextTick:function(t){setTimeout(t,0)},typeof e!==u&&e.exports?e.exports=o:(n.contra=n.contra||{},n.contra.emitter=o)}(this)}).call(this,t("FWaASH"))},{FWaASH:1}],4:[function(t,e){function n(t,e,n){var s=!0,u=!0;if(!a(t))throw new TypeError;return n===!1?s=!1:i(n)&&(s="leading"in n?n.leading:s,u="trailing"in n?n.trailing:u),o.leading=s,o.maxWait=e,o.trailing=u,r(t,e,o)}var r=t("lodash.debounce"),a=t("lodash.isfunction"),i=t("lodash.isobject"),o={leading:!1,maxWait:0,trailing:!1};e.exports=n},{"lodash.debounce":5,"lodash.isfunction":8,"lodash.isobject":9}],5:[function(t,e){function n(t,e,n){var s,u,c,l,d,f,h,m=0,y=!1,p=!0;if(!r(t))throw new TypeError;if(e=o(0,e)||0,n===!0){var _=!0;p=!1}else a(n)&&(_=n.leading,y="maxWait"in n&&(o(e,n.maxWait)||0),p="trailing"in n?n.trailing:p);var g=function(){var n=e-(i()-l);if(0>=n){u&&clearTimeout(u);var r=h;u=f=h=void 0,r&&(m=i(),c=t.apply(d,s),f||u||(s=d=null))}else f=setTimeout(g,n)},v=function(){f&&clearTimeout(f),u=f=h=void 0,(p||y!==e)&&(m=i(),c=t.apply(d,s),f||u||(s=d=null))};return function(){if(s=arguments,l=i(),d=this,h=p&&(f||!_),y===!1)var n=_&&!f;else{u||_||(m=l);var r=y-(l-m),a=0>=r;a?(u&&(u=clearTimeout(u)),m=l,c=t.apply(d,s)):u||(u=setTimeout(v,r))}return a&&f?f=clearTimeout(f):f||e===y||(f=setTimeout(g,e)),n&&(a=!0,c=t.apply(d,s)),!a||f||u||(s=d=null),c}}var r=t("lodash.isfunction"),a=t("lodash.isobject"),i=t("lodash.now"),o=Math.max;e.exports=n},{"lodash.isfunction":8,"lodash.isobject":9,"lodash.now":6}],6:[function(t,e){var n=t("lodash._isnative"),r=n(r=Date.now)&&r||function(){return(new Date).getTime()};e.exports=r},{"lodash._isnative":7}],7:[function(t,e){function n(t){return"function"==typeof t&&i.test(t)}var r=Object.prototype,a=r.toString,i=RegExp("^"+String(a).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");e.exports=n},{}],8:[function(t,e){function n(t){return"function"==typeof t}e.exports=n},{}],9:[function(t,e){function n(t){return!(!t||!r[typeof t])}var r=t("lodash._objecttypes");e.exports=n},{"lodash._objecttypes":10}],10:[function(t,e){var n={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};e.exports=n},{}],11:[function(e,n){(function(r){(function(a){function i(t,e,n){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:n;default:throw new Error("Implement me")}}function o(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function s(t,e){function n(){pe.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}var r=!0;return h(function(){return r&&(n(),r=!1),e.apply(this,arguments)},e)}function u(t,e){return function(n){return p(t.call(this,n),e)}}function c(t,e){return function(n){return this.lang().ordinal(t.call(this,n),e)}}function l(){}function d(t){O(t),h(this,t)}function f(t){var e=M(t),n=e.year||0,r=e.quarter||0,a=e.month||0,i=e.week||0,o=e.day||0,s=e.hour||0,u=e.minute||0,c=e.second||0,l=e.millisecond||0;this._milliseconds=+l+1e3*c+6e4*u+36e5*s,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._bubble()}function h(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function m(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&Fe.hasOwnProperty(e)&&(n[e]=t[e]);return n}function y(t){return 0>t?Math.ceil(t):Math.floor(t)}function p(t,e,n){for(var r=""+Math.abs(t),a=t>=0;r.length<e;)r="0"+r;return(a?n?"+":"":"-")+r}function _(t,e,n,r){var a=e._milliseconds,i=e._days,o=e._months;r=null==r?!0:r,a&&t._d.setTime(+t._d+a*n),i&&de(t,"Date",le(t,"Date")+i*n),o&&ce(t,le(t,"Month")+o*n),r&&pe.updateOffset(t,i||o)}function g(t){return"[object Array]"===Object.prototype.toString.call(t)}function v(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function w(t,e,n){var r,a=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),o=0;for(r=0;a>r;r++)(n&&t[r]!==e[r]||!n&&Y(t[r])!==Y(e[r]))&&o++;return o+i}function b(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=on[t]||sn[e]||e}return t}function M(t){var e,n,r={};for(n in t)t.hasOwnProperty(n)&&(e=b(n),e&&(r[e]=t[n]));return r}function D(t){var e,n;if(0===t.indexOf("week"))e=7,n="day";else{if(0!==t.indexOf("month"))return;e=12,n="month"}pe[t]=function(r,i){var o,s,u=pe.fn._lang[t],c=[];if("number"==typeof r&&(i=r,r=a),s=function(t){var e=pe().utc().set(n,t);return u.call(pe.fn._lang,e,r||"")},null!=i)return s(i);for(o=0;e>o;o++)c.push(s(o));return c}}function Y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function k(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function x(t,e,n){return ie(pe([t,11,31+e-n]),e,n).week}function T(t){return S(t)?366:365}function S(t){return t%4===0&&t%100!==0||t%400===0}function O(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[De]<0||t._a[De]>11?De:t._a[Ye]<1||t._a[Ye]>k(t._a[Me],t._a[De])?Ye:t._a[ke]<0||t._a[ke]>23?ke:t._a[xe]<0||t._a[xe]>59?xe:t._a[Te]<0||t._a[Te]>59?Te:t._a[Se]<0||t._a[Se]>999?Se:-1,t._pf._overflowDayOfYear&&(Me>e||e>Ye)&&(e=Ye),t._pf.overflow=e)}function F(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function C(t){return t?t.toLowerCase().replace("_","-"):t}function A(t,e){return e._isUTC?pe(t).zone(e._offset||0):pe(t).local()}function W(t,e){return e.abbr=t,Oe[t]||(Oe[t]=new l),Oe[t].set(e),Oe[t]}function I(t){delete Oe[t]}function E(t){var n,r,a,i,o=0,s=function(t){if(!Oe[t]&&Ce)try{e("./lang/"+t)}catch(n){}return Oe[t]};if(!t)return pe.fn._lang;if(!g(t)){if(r=s(t))return r;t=[t]}for(;o<t.length;){for(i=C(t[o]).split("-"),n=i.length,a=C(t[o+1]),a=a?a.split("-"):null;n>0;){if(r=s(i.slice(0,n).join("-")))return r;if(a&&a.length>=n&&w(i,a,!0)>=n-1)break;n--}o++}return pe.fn._lang}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function G(t){var e,n,r=t.match(Ee);for(e=0,n=r.length;n>e;e++)r[e]=fn[r[e]]?fn[r[e]]:H(r[e]);return function(a){var i="";for(e=0;n>e;e++)i+=r[e]instanceof Function?r[e].call(a,t):r[e];return i}}function N(t,e){return t.isValid()?(e=L(e,t.lang()),un[e]||(un[e]=G(e)),un[e](t)):t.lang().invalidDate()}function L(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(He.lastIndex=0;r>=0&&He.test(t);)t=t.replace(He,n),He.lastIndex=0,r-=1;return t}function P(t,e){var n,r=e._strict;switch(t){case"Q":return Be;case"DDDD":return $e;case"YYYY":case"GGGG":case"gggg":return r?Je:Le;case"Y":case"G":case"g":return Xe;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return r?Qe:Pe;case"S":if(r)return Be;case"SS":if(r)return Re;case"SSS":if(r)return $e;case"DDD":return Ne;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Ue;case"a":case"A":return E(e._l)._meridiemParse;case"X":return Ze;case"Z":case"ZZ":return je;case"T":return Ve;case"SSSS":return ze;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return r?Re:Ge;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ge;case"Do":return qe;default:return n=new RegExp($(R(t.replace("\\","")),"i"))}}function z(t){t=t||"";var e=t.match(je)||[],n=e[e.length-1]||[],r=(n+"").match(rn)||["-",0,0],a=+(60*r[1])+Y(r[2]);return"+"===r[0]?-a:a}function U(t,e,n){var r,a=n._a;switch(t){case"Q":null!=e&&(a[De]=3*(Y(e)-1));break;case"M":case"MM":null!=e&&(a[De]=Y(e)-1);break;case"MMM":case"MMMM":r=E(n._l).monthsParse(e),null!=r?a[De]=r:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(a[Ye]=Y(e));break;case"Do":null!=e&&(a[Ye]=Y(parseInt(e,10)));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=Y(e));break;case"YY":a[Me]=pe.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":a[Me]=Y(e);break;case"a":case"A":n._isPm=E(n._l).isPM(e);break;case"H":case"HH":case"h":case"hh":a[ke]=Y(e);break;case"m":case"mm":a[xe]=Y(e);break;case"s":case"ss":a[Te]=Y(e);break;case"S":case"SS":case"SSS":case"SSSS":a[Se]=Y(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=z(e);break;case"dd":case"ddd":case"dddd":r=E(n._l).weekdaysParse(e),null!=r?(n._w=n._w||{},n._w.d=r):n._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=Y(e));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=pe.parseTwoDigitYear(e)}}function j(t){var e,n,r,a,o,s,u,c;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,s=4,n=i(e.GG,t._a[Me],ie(pe(),1,4).year),r=i(e.W,1),a=i(e.E,1)):(c=E(t._l),o=c._week.dow,s=c._week.doy,n=i(e.gg,t._a[Me],ie(pe(),o,s).year),r=i(e.w,1),null!=e.d?(a=e.d,o>a&&++r):a=null!=e.e?e.e+o:o),u=oe(n,r,a,s,o),t._a[Me]=u.year,t._dayOfYear=u.dayOfYear}function V(t){var e,n,r,a,o=[];if(!t._d){for(r=q(t),t._w&&null==t._a[Ye]&&null==t._a[De]&&j(t),t._dayOfYear&&(a=i(t._a[Me],r[Me]),t._dayOfYear>T(a)&&(t._pf._overflowDayOfYear=!0),n=ee(a,0,t._dayOfYear),t._a[De]=n.getUTCMonth(),t._a[Ye]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;7>e;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];t._d=(t._useUTC?ee:te).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()+t._tzm)}}function Z(t){var e;t._d||(e=M(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],V(t))}function q(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function B(t){if(t._f===pe.ISO_8601)return void Q(t);t._a=[],t._pf.empty=!0;var e,n,r,a,i,o=E(t._l),s=""+t._i,u=s.length,c=0;for(r=L(t._f,o).match(Ee)||[],e=0;e<r.length;e++)a=r[e],n=(s.match(P(a,t))||[])[0],n&&(i=s.substr(0,s.indexOf(n)),i.length>0&&t._pf.unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),c+=n.length),fn[a]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(a),U(a,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(a);t._pf.charsLeftOver=u-c,s.length>0&&t._pf.unusedInput.push(s),t._isPm&&t._a[ke]<12&&(t._a[ke]+=12),t._isPm===!1&&12===t._a[ke]&&(t._a[ke]=0),V(t),O(t)}function R(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,a){return e||n||r||a})}function $(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(t){var e,n,r,a,i;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(0/0));for(a=0;a<t._f.length;a++)i=0,e=h({},t),e._pf=o(),e._f=t._f[a],B(e),F(e)&&(i+=e._pf.charsLeftOver,i+=10*e._pf.unusedTokens.length,e._pf.score=i,(null==r||r>i)&&(r=i,n=e));h(t,n||e)}function Q(t){var e,n,r=t._i,a=Ke.exec(r);if(a){for(t._pf.iso=!0,e=0,n=en.length;n>e;e++)if(en[e][1].exec(r)){t._f=en[e][0]+(a[6]||" ");break}for(e=0,n=nn.length;n>e;e++)if(nn[e][1].exec(r)){t._f+=nn[e][0];break}r.match(je)&&(t._f+="Z"),B(t)}else t._isValid=!1}function X(t){Q(t),t._isValid===!1&&(delete t._isValid,pe.createFromInputFallback(t))}function K(t){var e=t._i,n=Ae.exec(e);e===a?t._d=new Date:n?t._d=new Date(+n[1]):"string"==typeof e?X(t):g(e)?(t._a=e.slice(0),V(t)):v(e)?t._d=new Date(+e):"object"==typeof e?Z(t):"number"==typeof e?t._d=new Date(e):pe.createFromInputFallback(t)}function te(t,e,n,r,a,i,o){var s=new Date(t,e,n,r,a,i,o);return 1970>t&&s.setFullYear(t),s}function ee(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function ne(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function re(t,e,n,r,a){return a.relativeTime(e||1,!!n,t,r)}function ae(t,e,n){var r=be(Math.abs(t)/1e3),a=be(r/60),i=be(a/60),o=be(i/24),s=be(o/365),u=r<cn.s&&["s",r]||1===a&&["m"]||a<cn.m&&["mm",a]||1===i&&["h"]||i<cn.h&&["hh",i]||1===o&&["d"]||o<=cn.dd&&["dd",o]||o<=cn.dm&&["M"]||o<cn.dy&&["MM",be(o/30)]||1===s&&["y"]||["yy",s];return u[2]=e,u[3]=t>0,u[4]=n,re.apply({},u)}function ie(t,e,n){var r,a=n-e,i=n-t.day();return i>a&&(i-=7),a-7>i&&(i+=7),r=pe(t).add("d",i),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function oe(t,e,n,r,a){var i,o,s=ee(t,0,1).getUTCDay();return s=0===s?7:s,n=null!=n?n:a,i=a-s+(s>r?7:0)-(a>s?7:0),o=7*(e-1)+(n-a)+i+1,{year:o>0?t:t-1,dayOfYear:o>0?o:T(t-1)+o}}function se(t){var e=t._i,n=t._f;return null===e||n===a&&""===e?pe.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=E().preparse(e)),pe.isMoment(e)?(t=m(e),t._d=new Date(+e._d)):n?g(n)?J(t):B(t):K(t),new d(t))}function ue(t,e){var n,r;if(1===e.length&&g(e[0])&&(e=e[0]),!e.length)return pe();for(n=e[0],r=1;r<e.length;++r)e[r][t](n)&&(n=e[r]);return n}function ce(t,e){var n;return"string"==typeof e&&(e=t.lang().monthsParse(e),"number"!=typeof e)?t:(n=Math.min(t.date(),k(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function le(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function de(t,e,n){return"Month"===e?ce(t,n):t._d["set"+(t._isUTC?"UTC":"")+e](n)}function fe(t,e){return function(n){return null!=n?(de(this,t,n),pe.updateOffset(this,e),this):le(this,t)}}function he(t){pe.duration.fn[t]=function(){return this._data[t]}}function me(t,e){pe.duration.fn["as"+t]=function(){return+this/e}}function ye(t){"undefined"==typeof ender&&(_e=we.moment,we.moment=t?s("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",pe):pe)}for(var pe,_e,ge,ve="2.7.0",we="undefined"!=typeof r?r:this,be=Math.round,Me=0,De=1,Ye=2,ke=3,xe=4,Te=5,Se=6,Oe={},Fe={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_tzm:null,_isUTC:null,_offset:null,_pf:null,_lang:null},Ce="undefined"!=typeof n&&n.exports,Ae=/^\/?Date\((\-?\d+)/i,We=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Ie=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Ee=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,He=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Ge=/\d\d?/,Ne=/\d{1,3}/,Le=/\d{1,4}/,Pe=/[+\-]?\d{1,6}/,ze=/\d+/,Ue=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,je=/Z|[\+\-]\d\d:?\d\d/gi,Ve=/T/i,Ze=/[\+\-]?\d+(\.\d{1,3})?/,qe=/\d{1,2}/,Be=/\d/,Re=/\d\d/,$e=/\d{3}/,Je=/\d{4}/,Qe=/[+-]?\d{6}/,Xe=/[+-]?\d+/,Ke=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tn="YYYY-MM-DDTHH:mm:ssZ",en=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],nn=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],rn=/([\+\-]|\d\d)/gi,an=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),on={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},sn={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},un={},cn={s:45,m:45,h:22,dd:25,dm:45,dy:345},ln="DDD w W M D d".split(" "),dn="M D H h m s w W".split(" "),fn={M:function(){return this.month()+1},MMM:function(t){return this.lang().monthsShort(this,t)},MMMM:function(t){return this.lang().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.lang().weekdaysMin(this,t)},ddd:function(t){return this.lang().weekdaysShort(this,t)},dddd:function(t){return this.lang().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return p(this.year()%100,2)},YYYY:function(){return p(this.year(),4)},YYYYY:function(){return p(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+p(Math.abs(t),6)},gg:function(){return p(this.weekYear()%100,2)},gggg:function(){return p(this.weekYear(),4)},ggggg:function(){return p(this.weekYear(),5)},GG:function(){return p(this.isoWeekYear()%100,2)},GGGG:function(){return p(this.isoWeekYear(),4)},GGGGG:function(){return p(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return Y(this.milliseconds()/100)},SS:function(){return p(Y(this.milliseconds()/10),2)},SSS:function(){return p(this.milliseconds(),3)},SSSS:function(){return p(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+p(Y(t/60),2)+":"+p(Y(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+p(Y(t/60),2)+p(Y(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},hn=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];ln.length;)ge=ln.pop(),fn[ge+"o"]=c(fn[ge],ge);for(;dn.length;)ge=dn.pop(),fn[ge+ge]=u(fn[ge],2);for(fn.DDDD=u(fn.DDD,3),h(l.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,r;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=pe.utc([2e3,e]),r="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(r.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,r;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=pe([2e3,1]).day(e),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,r){var a=this._relativeTime[n];return"function"==typeof a?a(t,e,n,r):a.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return ie(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),pe=function(t,e,n,r){var i;return"boolean"==typeof n&&(r=n,n=a),i={},i._isAMomentObject=!0,i._i=t,i._f=e,i._l=n,i._strict=r,i._isUTC=!1,i._pf=o(),se(i)},pe.suppressDeprecationWarnings=!1,pe.createFromInputFallback=s("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i)}),pe.min=function(){var t=[].slice.call(arguments,0);return ue("isBefore",t)},pe.max=function(){var t=[].slice.call(arguments,0);return ue("isAfter",t)},pe.utc=function(t,e,n,r){var i;return"boolean"==typeof n&&(r=n,n=a),i={},i._isAMomentObject=!0,i._useUTC=!0,i._isUTC=!0,i._l=n,i._i=t,i._f=e,i._strict=r,i._pf=o(),se(i).utc()},pe.unix=function(t){return pe(1e3*t)},pe.duration=function(t,e){var n,r,a,i=t,o=null;return pe.isDuration(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(i={},e?i[e]=t:i.milliseconds=t):(o=We.exec(t))?(n="-"===o[1]?-1:1,i={y:0,d:Y(o[Ye])*n,h:Y(o[ke])*n,m:Y(o[xe])*n,s:Y(o[Te])*n,ms:Y(o[Se])*n}):(o=Ie.exec(t))&&(n="-"===o[1]?-1:1,a=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},i={y:a(o[2]),M:a(o[3]),d:a(o[4]),h:a(o[5]),m:a(o[6]),s:a(o[7]),w:a(o[8])}),r=new f(i),pe.isDuration(t)&&t.hasOwnProperty("_lang")&&(r._lang=t._lang),r},pe.version=ve,pe.defaultFormat=tn,pe.ISO_8601=function(){},pe.momentProperties=Fe,pe.updateOffset=function(){},pe.relativeTimeThreshold=function(t,e){return cn[t]===a?!1:(cn[t]=e,!0)},pe.lang=function(t,e){var n;return t?(e?W(C(t),e):null===e?(I(t),t="en"):Oe[t]||E(t),n=pe.duration.fn._lang=pe.fn._lang=E(t),n._abbr):pe.fn._lang._abbr},pe.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),E(t)},pe.isMoment=function(t){return t instanceof d||null!=t&&t.hasOwnProperty("_isAMomentObject")},pe.isDuration=function(t){return t instanceof f},ge=hn.length-1;ge>=0;--ge)D(hn[ge]);pe.normalizeUnits=function(t){return b(t)},pe.invalid=function(t){var e=pe.utc(0/0);return null!=t?h(e._pf,t):e._pf.userInvalidated=!0,e},pe.parseZone=function(){return pe.apply(null,arguments).parseZone()},pe.parseTwoDigitYear=function(t){return Y(t)+(Y(t)>68?1900:2e3)},h(pe.fn=d.prototype,{clone:function(){return pe(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=pe(this).utc();return 0<t.year()&&t.year()<=9999?N(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):N(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return F(this)},isDSTShifted:function(){return this._a?this.isValid()&&w(this._a,(this._isUTC?pe.utc(this._a):pe(this._a)).toArray())>0:!1},parsingFlags:function(){return h({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){var e=N(this,t||pe.defaultFormat);return this.lang().postformat(e)},add:function(t,e){var n;return n="string"==typeof t&&"string"==typeof e?pe.duration(isNaN(+e)?+t:+e,isNaN(+e)?e:t):"string"==typeof t?pe.duration(+e,t):pe.duration(t,e),_(this,n,1),this},subtract:function(t,e){var n;return n="string"==typeof t&&"string"==typeof e?pe.duration(isNaN(+e)?+t:+e,isNaN(+e)?e:t):"string"==typeof t?pe.duration(+e,t):pe.duration(t,e),_(this,n,-1),this},diff:function(t,e,n){var r,a,i=A(t,this),o=6e4*(this.zone()-i.zone());return e=b(e),"year"===e||"month"===e?(r=432e5*(this.daysInMonth()+i.daysInMonth()),a=12*(this.year()-i.year())+(this.month()-i.month()),a+=(this-pe(this).startOf("month")-(i-pe(i).startOf("month")))/r,a-=6e4*(this.zone()-pe(this).startOf("month").zone()-(i.zone()-pe(i).startOf("month").zone()))/r,"year"===e&&(a/=12)):(r=this-i,a="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-o)/864e5:"week"===e?(r-o)/6048e5:r),n?a:y(a)},from:function(t,e){return pe.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(pe(),t)},calendar:function(t){var e=t||pe(),n=A(e,this).startOf("day"),r=this.diff(n,"days",!0),a=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(this.lang().calendar(a,this))},isLeapYear:function(){return S(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=ne(t,this.lang()),this.add({d:t-e})):e},month:fe("Month",!0),startOf:function(t){switch(t=b(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=b(t),this.startOf(t).add("isoWeek"===t?"week":t,1).subtract("ms",1)},isAfter:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)>+pe(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+pe(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+A(t,this).startOf(e)},min:s("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(t){return t=pe.apply(null,arguments),this>t?this:t}),max:s("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return t=pe.apply(null,arguments),t>this?this:t}),zone:function(t,e){var n=this._offset||0;return null==t?this._isUTC?n:this._d.getTimezoneOffset():("string"==typeof t&&(t=z(t)),Math.abs(t)<16&&(t=60*t),this._offset=t,this._isUTC=!0,n!==t&&(!e||this._changeInProgress?_(this,pe.duration(n-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,pe.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?pe(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return k(this.year(),this.month())},dayOfYear:function(t){var e=be((pe(this).startOf("day")-pe(this).startOf("year"))/864e5)+1;return null==t?e:this.add("d",t-e)},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=ie(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=ie(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=ie(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return x(this.year(),1,4)},weeksInYear:function(){var t=this._lang._week;return x(this.year(),t.dow,t.doy)},get:function(t){return t=b(t),this[t]()},set:function(t,e){return t=b(t),"function"==typeof this[t]&&this[t](e),this},lang:function(t){return t===a?this._lang:(this._lang=E(t),this)}}),pe.fn.millisecond=pe.fn.milliseconds=fe("Milliseconds",!1),pe.fn.second=pe.fn.seconds=fe("Seconds",!1),pe.fn.minute=pe.fn.minutes=fe("Minutes",!1),pe.fn.hour=pe.fn.hours=fe("Hours",!0),pe.fn.date=fe("Date",!0),pe.fn.dates=s("dates accessor is deprecated. Use date instead.",fe("Date",!0)),pe.fn.year=fe("FullYear",!0),pe.fn.years=s("years accessor is deprecated. Use year instead.",fe("FullYear",!0)),pe.fn.days=pe.fn.day,pe.fn.months=pe.fn.month,pe.fn.weeks=pe.fn.week,pe.fn.isoWeeks=pe.fn.isoWeek,pe.fn.quarters=pe.fn.quarter,pe.fn.toJSON=pe.fn.toISOString,h(pe.duration.fn=f.prototype,{_bubble:function(){var t,e,n,r,a=this._milliseconds,i=this._days,o=this._months,s=this._data;s.milliseconds=a%1e3,t=y(a/1e3),s.seconds=t%60,e=y(t/60),s.minutes=e%60,n=y(e/60),s.hours=n%24,i+=y(n/24),s.days=i%30,o+=y(i/30),s.months=o%12,r=y(o/12),s.years=r},weeks:function(){return y(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12)},humanize:function(t){var e=+this,n=ae(e,!t,this.lang());return t&&(n=this.lang().pastFuture(e,n)),this.lang().postformat(n)},add:function(t,e){var n=pe.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this
  },subtract:function(t,e){var n=pe.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=b(t),this[t.toLowerCase()+"s"]()},as:function(t){return t=b(t),this["as"+t.charAt(0).toUpperCase()+t.slice(1)+"s"]()},lang:pe.fn.lang,toIsoString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),r=Math.abs(this.hours()),a=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(r||a||i?"T":"")+(r?r+"H":"")+(a?a+"M":"")+(i?i+"S":""):"P0D"}});for(ge in an)an.hasOwnProperty(ge)&&(me(ge,an[ge]),he(ge.toLowerCase()));me("Weeks",6048e5),pe.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},pe.lang("en",{ordinal:function(t){var e=t%10,n=1===Y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),Ce?n.exports=pe:"function"==typeof t&&t.amd?(t("moment",function(t,e,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(we.moment=_e),pe}),ye(!0)):ye()}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(t,e){for(var n=t("performance-now"),r="undefined"==typeof window?{}:window,a=["moz","webkit"],i="AnimationFrame",o=r["request"+i],s=r["cancel"+i]||r["cancelRequest"+i],u=0;u<a.length&&!o;u++)o=r[a[u]+"Request"+i],s=r[a[u]+"Cancel"+i]||r[a[u]+"CancelRequest"+i];if(!o||!s){var c=0,l=0,d=[],f=1e3/60;o=function(t){if(0===d.length){var e=n(),r=Math.max(0,f-(e-c));c=r+e,setTimeout(function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)t[e].cancelled||t[e].callback(c)},r)}return d.push({handle:++l,callback:t,cancelled:!1}),l},s=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}e.exports=function(){return o.apply(r,arguments)},e.exports.cancel=function(){s.apply(r,arguments)}},{"performance-now":13}],13:[function(t,e){(function(t){(function(){var n,r,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,n=function(){var t;return t=r(),1e9*t[0]+t[1]},a=n()):Date.now?(e.exports=function(){return Date.now()-a},a=Date.now()):(e.exports=function(){return(new Date).getTime()-a},a=(new Date).getTime())}).call(this)}).call(this,t("FWaASH"))},{FWaASH:1}],14:[function(t,e){"use strict";function n(t,e){var n=u[t.id];return n&&n[e.id]}function r(t,e){var n=u[t.id];n||(n=u[t.id]={});var r=i(e);n[e.id]=r,t.on("data",r),t.on("destroyed",a.bind(null,t,e))}function a(t,e){var n=u[t.id];if(n){var r=n[e.id];t.off("data",r),delete n[e.id]}}function i(t){return function(){t.refresh()}}function o(t,e){s(e.associated)||n(t,e)||r(t,e)}var s=t("./isInput"),u={};e.exports={add:o,remove:a}},{"./isInput":25}],15:[function(t,e){"use strict";function n(t){function e(e){return se=l(e||t,we),le||(le=o({className:se.styles.container})),fe=r,de=r,he=r,me=r,se.appendTo.appendChild(le),q(le),be=!1,ue=se.initialValue?se.initialValue:d.moment(),ce=ue.clone(),we.container=le,we.destroyed=!1,we.destroy=n.bind(we,!1),we.emitValues=j,we.getDate=ae,we.getDateString=ie,we.getMoment=oe,we.hide=O,we.options=p,we.options.reset=_,we.refresh=V,we.restore=m,we.setValue=Z,we.show=S,T(),y(),we.emit("ready",c(se)),we}function n(t){return le&&le.parentNode.removeChild(le),se&&y(!0),we.destroyed=!0,we.destroy=m,we.emitValues=m,we.getDate=m,we.getDateString=m,we.getMoment=m,we.hide=m,we.options=m,we.options.reset=m,we.refresh=m,we.restore=e,we.setValue=m,we.show=m,t!==!0&&we.emit("destroyed"),we.off(),we}function y(t){var e=t?"remove":"add";se.autoHideOnBlur&&h[e](document,"focusin",A),se.autoHideOnClick&&h[e](document,"click",W)}function p(t){return 0===arguments.length?c(se):(n(),e(t),we)}function _(){return p({})}function g(){be||(be=!0,v(),w(),we.emit("render"))}function v(){function t(t){var e=o({className:se.styles.month,parent:ye});0===t&&(pe=o({type:"button",className:se.styles.back,parent:e})),t===se.monthsInCalendar-1&&(_e=o({type:"button",className:se.styles.next,parent:e}));var n,r=o({className:se.styles.monthLabel,parent:e}),a=o({type:"table",className:se.styles.dayTable,parent:e}),i=o({type:"thead",className:se.styles.dayHead,parent:a}),s=o({type:"tr",className:se.styles.dayRow,parent:i}),u=o({type:"tbody",className:se.styles.dayBody,parent:a});for(n=0;Ye>n;n++)o({type:"th",className:se.styles.dayHeadElem,parent:s,text:De[b(n)]});u.setAttribute(Me,t),ke.push({label:r,body:u})}if(se.date){var e;for(ke=[],ye=o({className:se.styles.date,parent:le}),e=0;e<se.monthsInCalendar;e++)t(e);h.add(pe,"click",I),h.add(_e,"click",E),h.add(ye,"click",K)}}function w(){if(se.time&&se.timeInterval){var t=o({className:se.styles.time,parent:le});ge=o({className:se.styles.selectedTime,parent:t,text:ue.format(se.timeFormat)}),h.add(ge,"click",D),ve=o({className:se.styles.timeList,parent:t}),h.add(ve,"click",re);for(var e=d.moment("00:00:00","HH:mm:ss"),n=e.clone().add("days",1);e.isBefore(n);)o({className:se.styles.timeOption,parent:ve,text:e.format(se.timeFormat)}),e.add("seconds",se.timeInterval)}}function b(t,e){var n=e?-1:1,r=t+se.weekStart*n;return(r>=Ye||0>r)&&(r+=Ye*-n),r}function M(){if(se.time&&be){var t,e,n,r,a=ve.children,i=a.length;for(r=0;i>r;r++)n=a[r],e=d.moment(s(n),se.timeFormat),t=ne(ue.clone(),e),n.style.display=$(t,!1,se.timeValidator)?"block":"none"}}function D(t){var e="boolean"==typeof t?t:"none"===ve.style.display;e?Y():k()}function Y(){ve&&(ve.style.display="block")}function k(){ve&&(ve.style.display="none")}function x(){le.style.display="inline-block"}function T(){le.style.display="none"}function S(){return g(),V(),D(!se.date),x(),we}function O(){return k(),i(T),we}function F(){k();var t=f.contains(le,se.styles.positioned);return t&&i(T),we}function C(t){var e=t.target;if(e===we.associated)return!0;for(;e;){if(e===le)return!0;e=e.parentNode}}function A(t){C(t)||F()}function W(t){C(t)||F()}function I(){H("subtract")}function E(){H("add")}function H(t){var e,n="add"===t?-1:1,r=se.monthsInCalendar+n*ee(me);ce[t]("months",r),e=J(ce.clone()),ue=e||ue,e&&(ce=e.clone()),G()}function G(t){N(),U(),t!==!0&&j(),M()}function N(){function t(t,e){var n=ce.clone().add("months",e);s(t.label,n.format(se.monthFormat)),q(t.body)}if(se.date&&be){var e=ce.year(),n=ce.month(),r=ce.date();if(r!==he||n!==fe||e!==de){var a=P();if(he=ce.date(),fe=ce.month(),de=ce.year(),a)return void L();ke.forEach(t),B()}}}function L(){function t(t){var e,n=[];for(e=0;e<t.length;e++)n.push(t[e]);return n}function e(e){return t(e.children)}function n(t){return!f.contains(t,se.styles.dayPrevMonth)&&!f.contains(t,se.styles.dayNextMonth)}var r=ce.date()-1;te(!1),ke.forEach(function(a){var i;z(a.date,ce)&&(i=t(a.body.children).map(e),i=Array.prototype.concat.apply([],i).filter(n),te(i[r]))})}function P(){function t(t){return de?z(t.date,ce):!1}return ke.some(t)}function z(t,e){return t&&e&&t.year()===e.year()&&t.month()===e.month()}function U(){se.time&&be&&s(ge,ue.format(se.timeFormat))}function j(){return we.emit("data",ie()),we.emit("year",ue.year()),we.emit("month",ue.month()),we.emit("day",ue.day()),we.emit("time",ue.format(se.timeFormat)),we}function V(){de=!1,fe=!1,he=!1,G(!0)}function Z(t){var e=u(t,se.inputFormat);if(null!==e)return ue=J(e)||ue,ce=ue.clone(),G(!0),we}function q(t,e){for(;t&&t.firstChild;)t.removeChild(t.firstChild);e===!0&&t.parentNode.removeChild(t)}function B(){var t;for(t=0;t<se.monthsInCalendar;t++)R(t)}function R(t){function e(t){var e,r,a;for(e=0;e<t.length;e++)f.children.length===Ye&&(f=o({type:"tr",className:se.styles.dayRow,parent:i.body})),r=t.base.clone().add("days",e),a=o({type:"td",parent:f,text:r.format(se.dayFormat),className:n(r,t.cell.join(" ").split(" ")).join(" ")}),t.selectable&&r.date()===c&&te(a)}function n(t,e){return $(t,!0,se.dateValidator)||e.push(y),e}function r(t,e){return t&&e.push(se.styles.dayConcealed),e}var a,i=ke[t],s=ce.clone().add("months",t),u=s.daysInMonth(),c=s.month()!==ue.month()?-1:ue.date(),l=s.clone().date(1),d=b(l.day(),!0),f=o({type:"tr",className:se.styles.dayRow,parent:i.body}),h=r(0!==t,[se.styles.dayBodyElem,se.styles.dayPrevMonth]),m=r(t!==se.monthsInCalendar-1,[se.styles.dayBodyElem,se.styles.dayNextMonth]),y=se.styles.dayDisabled;e({base:l.clone().subtract("days",d),length:d,cell:h}),e({base:l.clone(),length:u,cell:[se.styles.dayBodyElem],selectable:!0}),a=l.clone().add("days",u),e({base:a,length:Ye-f.children.length,cell:m}),pe.disabled=!$(l,!0),_e.disabled=!$(a,!0),i.date=s.clone()}function $(t,e,n){var r=se.min?e?se.min.clone().startOf("day"):se.min:!1,a=se.max?e?se.max.clone().endOf("day"):se.max:!1;if(r&&t.isBefore(r))return!1;if(a&&t.isAfter(a))return!1;var i=(n||Function.prototype).call(we,t.toDate());return i!==!1}function J(t){if(se.min&&t.isBefore(se.min))return J(se.min.clone());if(se.max&&t.isAfter(se.max))return J(se.max.clone());var e=(t.daysInMonth(),t.clone().subtract("days",1));return X(e,t,"add")?Q(e):(e=t.clone(),X(e,t,"subtract")?Q(e):void 0)}function Q(t){var e,n=t.clone().subtract("seconds",se.timeInterval),r=Math.ceil(xe/se.timeInterval);for(e=0;r>e;e++)if(n.add("seconds",se.timeInterval),n.date()>t.date()&&n.subtract("days",1),se.timeValidator.call(we,n.toDate())!==!1)return n}function X(t,e,n){for(var r=!1;r===!1&&(t[n]("days",1),t.month()===e.month());)r=se.dateValidator.call(we,t.toDate());return r!==!1}function K(t){var e=t.target;if(!f.contains(e,se.styles.dayDisabled)&&f.contains(e,se.styles.dayBodyElem)){var n=parseInt(s(e),10),r=f.contains(e,se.styles.dayPrevMonth),a=f.contains(e,se.styles.dayNextMonth),i=ee(e)-ee(me);ue.add("months",i),(r||a)&&ue.add("months",r?-1:1),te(e),ue.date(n),ne(ue,J(ue)||ue),ce=ue.clone(),se.autoClose&&F(),G()}}function te(t){me&&f.remove(me,se.styles.selectedDay),t&&f.add(t,se.styles.selectedDay),me=t}function ee(t){for(var e;t&&t.getAttribute;){if(e=t.getAttribute(Me),"string"==typeof e)return parseInt(e,10);t=t.parentNode}return 0}function ne(t,e){return t.hour(e.hour()).minute(e.minute()).second(e.second()),t}function re(t){var e=t.target;if(f.contains(e,se.styles.timeOption)){var n=d.moment(s(e),se.timeFormat);ne(ue,n),ce=ue.clone(),j(),U(),!se.date&&se.autoClose?F():k()}}function ae(){return ue.toDate()}function ie(t){return ue.format(t||se.inputFormat)}function oe(){return ue.clone()}var se,ue,ce,le,de,fe,he,me,ye,pe,_e,ge,ve,we=a({}),be=!1,Me="data-rome-offset",De=d.moment.weekdaysMin(),Ye=De.length,ke=[],xe=86400;return n(!0),i(function(){e()}),we}var r,a=t("contra.emitter"),i=t("raf"),o=t("./dom"),s=t("./text"),u=t("./parse"),c=t("./clone"),l=t("./defaults"),d=t("./momentum"),f=t("./classes"),h=t("./events"),m=t("./noop");e.exports=n},{"./classes":16,"./clone":17,"./defaults":19,"./dom":20,"./events":21,"./momentum":26,"./noop":27,"./parse":28,"./text":40,"contra.emitter":2,raf:12}],16:[function(t,e){"use strict";function n(t){return t.className.replace(s,"").split(u)}function r(t,e){t.className=e.join(" ")}function a(t,e){var n=i(t,e);n.push(e),r(t,n)}function i(t,e){var a=n(t),i=a.indexOf(e);return-1!==i&&(a.splice(i,1),r(t,a)),a}function o(t,e){return-1!==n(t).indexOf(e)}var s=/^\s+|\s+$/g,u=/\s+/;e.exports={add:a,remove:i,contains:o}},{}],17:[function(t,e){"use strict";function n(t){var e,a={};for(var i in t)e=t[i],a[i]=e?r.isMoment(e)?e.clone():e._isStylesConfiguration?n(e):e:e;return a}var r=t("./momentum");e.exports=n},{"./momentum":26}],18:[function(t,e){"use strict";function n(t,e){var n,s=r.find(t);return s?s:(n=o(t)?a(t,e):i(t,e),n.associated=t,r.assign(t,n),n)}var r=t("./index"),a=t("./input"),i=t("./inline"),o=t("./isInput");e.exports=n},{"./index":22,"./inline":23,"./input":24,"./isInput":25}],19:[function(t,e){"use strict";function n(t,e){var n,i,o=t||{};if(o.autoHideOnClick===i&&(o.autoHideOnClick=!0),o.autoHideOnBlur===i&&(o.autoHideOnBlur=!0),o.autoClose===i&&(o.autoClose=!0),o.appendTo===i&&(o.appendTo=document.body),"parent"===o.appendTo){if(!a(e.associated))throw new Error("Inline calendars must be appended to a parent node explicitly.");o.appendTo=e.associated.parentNode}if(o.invalidate===i&&(o.invalidate=!0),o.required===i&&(o.required=!1),o.date===i&&(o.date=!0),o.time===i&&(o.time=!0),o.date===!1&&o.time===!1)throw new Error("At least one of `date` or `time` must be `true`.");if(o.inputFormat===i&&(o.inputFormat=o.date&&o.time?"YYYY-MM-DD HH:mm":o.date?"YYYY-MM-DD":"HH:mm"),o.initialValue=o.initialValue===i?null:r(o.initialValue,o.inputFormat),o.min=o.min===i?null:r(o.min,o.inputFormat),o.max=o.max===i?null:r(o.max,o.inputFormat),o.timeInterval===i&&(o.timeInterval=1800),o.min&&o.max)if(o.max.isBefore(o.min)&&(n=o.max,o.max=o.min,o.min=n),o.date===!0){if(o.max.clone().subtract("days",1).isBefore(o.min))throw new Error("`max` must be at least one day after `min`")}else if(1e3*o.timeInterval-o.min%(1e3*o.timeInterval)>o.max-o.min)throw new Error("`min` to `max` range must allow for at least one time option that matches `timeInterval`");o.dateValidator===i&&(o.dateValidator=Function.prototype),o.timeValidator===i&&(o.timeValidator=Function.prototype),o.timeFormat===i&&(o.timeFormat="HH:mm"),o.weekStart===i&&(o.weekStart=0),o.monthsInCalendar===i&&(o.monthsInCalendar=1),o.monthFormat===i&&(o.monthFormat="MMMM YYYY"),o.dayFormat===i&&(o.dayFormat="DD"),o.styles===i&&(o.styles={}),o.styles._isStylesConfiguration=!0;var s=o.styles;return s.back===i&&(s.back="rd-back"),s.container===i&&(s.container="rd-container"),s.positioned===i&&(s.positioned="rd-container-attachment"),s.date===i&&(s.date="rd-date"),s.dayBody===i&&(s.dayBody="rd-days-body"),s.dayBodyElem===i&&(s.dayBodyElem="rd-day-body"),s.dayPrevMonth===i&&(s.dayPrevMonth="rd-day-prev-month"),s.dayNextMonth===i&&(s.dayNextMonth="rd-day-next-month"),s.dayDisabled===i&&(s.dayDisabled="rd-day-disabled"),s.dayConcealed===i&&(s.dayConcealed="rd-day-concealed"),s.dayHead===i&&(s.dayHead="rd-days-head"),s.dayHeadElem===i&&(s.dayHeadElem="rd-day-head"),s.dayRow===i&&(s.dayRow="rd-days-row"),s.dayTable===i&&(s.dayTable="rd-days"),s.month===i&&(s.month="rd-month"),s.monthLabel===i&&(s.monthLabel="rd-month-label"),s.next===i&&(s.next="rd-next"),s.selectedDay===i&&(s.selectedDay="rd-day-selected"),s.selectedTime===i&&(s.selectedTime="rd-time-selected"),s.time===i&&(s.time="rd-time"),s.timeList===i&&(s.timeList="rd-time-list"),s.timeOption===i&&(s.timeOption="rd-time-option"),o}var r=t("./parse"),a=t("./isInput");e.exports=n},{"./isInput":25,"./parse":28}],20:[function(t,e){"use strict";function n(t){var e=t||{};e.type||(e.type="div");var n=document.createElement(e.type);return e.className&&(n.className=e.className),e.text&&(n.innerText=n.textContent=e.text),e.parent&&e.parent.appendChild(n),n}e.exports=n},{}],21:[function(t,e){function n(t,e,n){return t.addEventListener(e,n)}function r(t,e,n){return t.attachEvent("on"+e,function(e){var e=e||window.event;e.target=e.target||e.srcElement,e.preventDefault=e.preventDefault||function(){e.returnValue=!1},e.stopPropagation=e.stopPropagation||function(){e.cancelBubble=!0},n.call(t,e)})}function a(t,e,n){return t.removeEventListener(e,n)}function i(t,e,n){return t.detachEvent("on"+e,n)}var o=n,s=a;window.addEventListener||(o=r),window.removeEventListener||(s=i),e.exports={add:o,remove:s}},{}],22:[function(t,e){"use strict";function n(t){if("number"!=typeof t&&t&&t.getAttribute)return n(t.getAttribute(i));var e=o[t];return e!==a?e:null}function r(t,e){t.setAttribute(i,e.id=o.push(e)-1)}var a,i="data-rome-id",o=[];e.exports={find:n,assign:r}},{}],23:[function(t,e){"use strict";function n(t,e){function n(){r(o.show)}var i=e||{};i.appendTo=t;var o=a(i).on("ready",n);return o}var r=t("raf"),a=t("./calendar");e.exports=n},{"./calendar":15,raf:12}],24:[function(t,e){"use strict";function n(t,e){function n(e){M=i(e),u.add(k.container,M.styles.positioned),c.add(k.container,"mousedown",m),c.add(k.container,"click",h),k.getDate=b(k.getDate),k.getDateString=b(k.getDateString),k.getMoment=b(k.getMoment),M.initialValue&&(t.value=M.initialValue.format(M.inputFormat)),k.on("data",v),f(),x()}function l(){f(!0),a(d)}function d(){k.once("ready",n),k.once("destroyed",l)}function f(e){var n=e?"remove":"add";c[n](t,"click",p),c[n](t,"touchend",p),c[n](t,"focusin",p),c[n](t,"change",x),c[n](t,"keypress",x),c[n](t,"keydown",x),c[n](t,"input",x),M.invalidate&&c[n](t,"blur",y),c[n](window,"resize",T)}function h(){Y=!0,t.focus(),Y=!1}function m(){function t(){D=!1}D=!0,a(t)}function y(){D||w()||k.emitValues()}function p(){Y||(k.show(),_())}function _(){var e=t.getBoundingClientRect(),n=document.body.scrollTop||document.documentElement.scrollTop;k.container.style.top=e.top+n+t.offsetHeight+"px",k.container.style.left=e.left+"px"}function g(){var e=t.value.trim();if(!w()){var n=s.moment(e,M.inputFormat);k.setValue(n)}}function v(e){t.value=e}function w(){return M.required===!1&&""===t.value.trim()}function b(t){return function(){return w()?null:t.apply(this,arguments)}}var M,D,Y,k=o(e),x=r(g,50),T=r(_,30);return d(),k}var r=t("lodash.throttle"),a=t("raf"),i=t("./clone"),o=t("./calendar"),s=t("./momentum"),u=t("./classes"),c=t("./events");e.exports=n},{"./calendar":15,"./classes":16,"./clone":17,"./events":21,"./momentum":26,"lodash.throttle":4,raf:12}],25:[function(t,e){"use strict";function n(t){return t&&t.nodeName&&"input"===t.nodeName.toLowerCase()}e.exports=n},{}],26:[function(t,e){"use strict";function n(t){return t&&Object.prototype.hasOwnProperty.call(t,"_isAMomentObject")}var r={moment:null,isMoment:n};e.exports=r},{}],27:[function(t,e){"use strict";function n(){}e.exports=n},{}],28:[function(t,e){"use strict";function n(t,e){return"string"==typeof t?a.moment(t,e):"[object Date]"===Object.prototype.toString.call(t)?a.moment(t):a.isMoment(t)?t.clone():void 0}function r(t,e){var r=n(t,"string"==typeof e?e:null);return r&&r.isValid()?r:null}var a=t("./momentum");e.exports=r},{"./momentum":26}],29:[function(){Array.prototype.every||(Array.prototype.every=function(t,e){var n,r;if(null==this)throw new TypeError("this is null or not defined");var a=Object(this),i=a.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=0;i>r;){if(r in a){var o=t.call(n,a[r],r,a);if(!o)return!1}r++}return!0})},{}],30:[function(){Array.prototype.filter||(Array.prototype.filter=function(t,e){var n=[];return this.forEach(function(r,a,i){t.call(e,r,a,i)&&n.push(r)},e),n})},{}],31:[function(){Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;for(var n=this,r=n.length,a=0;r>a;a++)a in n&&t.call(e,n[a],a,n)})},{}],32:[function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){if(void 0===this||null===this)throw new TypeError;var n=this.length;for(e=+e||0,1/0===Math.abs(e)?e=0:0>e&&(e+=n,0>e&&(e=0));n>e;e++)if(this[e]===t)return e;return-1})},{}],33:[function(){Array.isArray||(Array.isArray=function(t){return""+t!==t&&"[object Array]"===Object.prototype.toString.call(t)})},{}],34:[function(){Array.prototype.map||(Array.prototype.map=function(t,e){var n,r,a;if(null==this)throw new TypeError("this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=new Array(o),a=0;o>a;)a in i&&(r[a]=t.call(n,i[a],a,i)),a++;return r})},{}],35:[function(){Array.prototype.some||(Array.prototype.some=function(t,e){var n,r;if(null==this)throw new TypeError("this is null or not defined");var a=Object(this),i=a.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=0;i>r;){if(r in a){var o=t.call(n,a[r],r,a);if(o)return!0}r++}return!1})},{}],36:[function(){Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},a=function(){var a=this instanceof r&&t?this:t,i=e.concat(Array.prototype.slice.call(arguments));return n.apply(a,i)};return r.prototype=this.prototype,a.prototype=new r,a})},{}],37:[function(){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})},{}],38:[function(t,e){"use strict";t("./polyfills/function.bind"),t("./polyfills/array.foreach"),t("./polyfills/array.map"),t("./polyfills/array.filter"),t("./polyfills/array.isarray"),t("./polyfills/array.indexof"),t("./polyfills/array.every"),t("./polyfills/array.some"),t("./polyfills/string.trim");var n=t("./core"),r=t("./index"),a=t("./use");n.use=a.bind(n),n.find=r.find,n.val=t("./validators"),e.exports=n},{"./core":18,"./index":22,"./polyfills/array.every":29,"./polyfills/array.filter":30,"./polyfills/array.foreach":31,"./polyfills/array.indexof":32,"./polyfills/array.isarray":33,"./polyfills/array.map":34,"./polyfills/array.some":35,"./polyfills/function.bind":36,"./polyfills/string.trim":37,"./use":41,"./validators":42}],39:[function(t,e){"use strict";var n=t("moment"),r=t("./rome");r.use(n),e.exports=r},{"./rome":38,moment:11}],40:[function(t,e){"use strict";function n(t,e){return 2===arguments.length&&(t.innerText=t.textContent=e),t.innerText||t.textContent}e.exports=n},{}],41:[function(t,e){"use strict";function n(t){this.moment=r.moment=t}var r=t("./momentum");e.exports=n},{"./momentum":26}],42:[function(t,e){"use strict";function n(t){return function(e){var n=i(e);return function(r){var s=a.find(e),u=i(r),c=n||s&&s.getMoment();return c?(s&&o.add(this,s),t(u,c)):!0}}}function r(t,e){return function(n,r){function s(t){var e,n,r=a.find(t);return r?e=n=r.getMoment():Array.isArray(t)?(e=t[0],n=t[1]):e=n=t,r&&o.add(r,this),{start:i(e).startOf("day").toDate(),end:i(n).endOf("day").toDate()}}var u,c=arguments.length;return Array.isArray(n)?u=n:1===c?u=[n]:2===c&&(u=[[n,r]]),function(n){return u.map(s.bind(this))[t](e.bind(this,n))}}}var a=t("./index"),i=t("./parse"),o=t("./association"),s=n(function(t,e){return t>=e}),u=n(function(t,e){return t>e}),c=n(function(t,e){return e>=t}),l=n(function(t,e){return e>t}),d=r("every",function(t,e){return e.start>t||e.end<t}),f=r("some",function(t,e){return e.start<=t&&e.end>=t});e.exports={afterEq:s,after:u,beforeEq:c,before:l,except:d,only:f}},{"./association":14,"./index":22,"./parse":28}]},{},[39])(39)});