From 4f8904409e80bf5ede7ddfd3bb5a5af1980d0c38 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Fri, 8 Feb 2019 11:53:14 -0500 Subject: [PATCH] Merge pull request #364 from plotly/date-type Datetime data type --- packages/dash-table/CHANGELOG.md | 4 + packages/dash-table/dash_table/bundle.js | 6 +- packages/dash-table/dash_table/bundle.js.map | 2 +- packages/dash-table/dash_table/demo.js | 6 +- packages/dash-table/dash_table/demo.js.map | 2 +- packages/dash-table/dash_table/metadata.json | 12 +- .../dash-table/dash_table/package-info.json | 6 +- packages/dash-table/demo/AppMode.ts | 37 ++++- packages/dash-table/package-lock.json | 126 ++++++++-------- .../dash-table/src/dash-table/DataTable.js | 22 ++- .../src/dash-table/components/Table/props.ts | 27 +++- .../src/dash-table/reconcile/date.ts | 97 +++++++++++++ .../src/dash-table/reconcile/index.ts | 7 +- .../dash-table/tests/cypress/src/DashTable.ts | 12 +- .../tests/cypress/tests/server/dash_test.ts | 16 +- .../tests/standalone/edit_cell_test.ts | 65 ++++++++- .../cypress/tests/unit/dateCoercion_test.ts | 137 ++++++++++++++++++ .../cypress/tests/unit/dateValidation_test.ts | 137 ++++++++++++++++++ 18 files changed, 618 insertions(+), 103 deletions(-) create mode 100644 packages/dash-table/src/dash-table/reconcile/date.ts create mode 100644 packages/dash-table/tests/cypress/tests/unit/dateCoercion_test.ts create mode 100644 packages/dash-table/tests/cypress/tests/unit/dateValidation_test.ts diff --git a/packages/dash-table/CHANGELOG.md b/packages/dash-table/CHANGELOG.md index 55e90a2f15..43e103d3fd 100644 --- a/packages/dash-table/CHANGELOG.md +++ b/packages/dash-table/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Added +[#364](https://github.com/plotly/dash-table/pull/364) +- Added the `datetime` data type + ### Changed [#224](https://github.com/plotly/dash-table/issues/224) - Added support for unquoted column id with diff --git a/packages/dash-table/dash_table/bundle.js b/packages/dash-table/dash_table/bundle.js index eefb6c08a5..91dc3d6ae7 100644 --- a/packages/dash-table/dash_table/bundle.js +++ b/packages/dash-table/dash_table/bundle.js @@ -1,4 +1,4 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.dash_table=t(require("react"),require("react-dom")):e.dash_table=t(e.React,e.ReactDOM)}(window,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=117)}([function(e,t,n){e.exports=n(128)()},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),o=n(8);function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return Object(o.a)(n)?t:Object(r.a)(function(t){return e(n,t)});default:return Object(o.a)(n)&&Object(o.a)(i)?t:Object(o.a)(n)?Object(r.a)(function(t){return e(t,i)}):Object(o.a)(i)?Object(r.a)(function(t){return e(n,t)}):e(n,i)}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a});n(38);var r=n(26);function o(e){var t,n=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;ao;)K(e,n=r[o++],t[n]);return e},Z=function(e){var t=M.call(this,e=w(e,!0));return!(this===q&&o(L,e)&&!o(N,e))&&(!(t||!o(this,e)||!o(L,e)||o(this,D)&&this[D][e])||t)},J=function(e,t){if(e=x(e),t=w(t,!0),e!==q||!o(L,t)||o(N,t)){var n=A(e,t);return!n||!o(L,t)||o(e,D)&&e[D][t]||(n.enumerable=!0),n}},Y=function(e){for(var t,n=j(x(e)),r=[],i=0;n.length>i;)o(L,t=n[i++])||t==D||t==l||r.push(t);return r},X=function(e){for(var t,n=e===q,r=j(n?N:x(e)),i=[],a=0;r.length>a;)!o(L,t=r[a++])||n&&!o(q,t)||i.push(L[t]);return i};B||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(N,n),o(this,D)&&o(this[D],e)&&(this[D][e]=!1),W(this,e,_(1,n))};return i&&U&&W(q,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),O.f=J,E.f=K,n(97).f=S.f=Y,n(51).f=Z,n(75).f=X,i&&!n(49)&&s(q,"propertyIsEnumerable",Z,!0),h.f=function(e){return H(f(e))}),a(a.G+a.W+a.F*!B,{Symbol:R});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)f(Q[ee++]);for(var te=C(f.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return o(I,e+="")?I[e]:I[e]=R(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?k(e):$(k(e),t)},defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:J,getOwnPropertyNames:Y,getOwnPropertySymbols:X}),z&&a(a.S+a.F*(!B||c(function(){var e=R();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(m(t)||void 0!==e)&&!G(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,P.apply(z,r)}}),R.prototype[F]||n(30)(R.prototype,F,R.prototype.valueOf),p(R,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){var r=n(66)("wks"),o=n(46),i=n(14).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(91)(!0);n(77)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,"a",function(){return r})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(16);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(14),o=n(37),i=n(30),a=n(31),s=n(32),l=function(e,t,n){var c,u,p,d,f=e&l.F,h=e&l.G,v=e&l.S,g=e&l.P,b=e&l.B,y=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,m=h?o:o[t]||(o[t]={}),x=m.prototype||(m.prototype={});for(c in h&&(n=t),n)p=((u=!f&&y&&void 0!==y[c])?y:n)[c],d=b&&u?s(p,r):g&&"function"==typeof p?s(Function.call,p):p,y&&a(y,c,p,e&l.U),m[c]!=p&&i(m,c,d),g&&x[c]!=p&&(x[c]=p)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";var r=n(55),o=n(99),i=n(52),a=n(41);e.exports=n(77)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return!!e&&r.call(e,t)}var i=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function a(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var l=/&([a-z#][a-z0-9]{1,31});/gi,c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(109);function p(e,t){var n=0;return o(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}var d=/[&<>"]/,f=/[&<>"]/g,h={"&":"&","<":"<",">":">",'"':"""};function v(e){return h[e]}t.assign=function(e){return[].slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(i,"$1")},t.isValidEntityCode=a,t.fromCodePoint=s,t.replaceEntities=function(e){return e.indexOf("&")<0?e:e.replace(l,p)},t.escapeHtml=function(e){return d.test(e)?e.replace(f,v):e}},function(e,t,n){var r=n(17),o=n(85),i=n(64),a=Object.defineProperty;t.f=n(22)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(28)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";n(134);var r=n(17),o=n(71),i=n(22),a=/./.toString,s=function(e){n(31)(RegExp.prototype,"toString",e,!0)};n(28)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,n){"use strict";var r=n(32),o=n(18),i=n(44),a=n(100),s=n(101),l=n(39),c=n(135),u=n(102);o(o.S+o.F*!n(78)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,p,d=i(e),f="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v,b=0,y=u(d);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(t=l(d.length));t>b;b++)c(n,b,g?v(d[b],b):d[b]);else for(p=y.call(d),n=new f;!(o=p.next()).done;b++)c(n,b,g?a(p,v,[o.value,b],!0):o.value);return n.length=b,n}})},function(e,t,n){"use strict";t.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});n(10),n(11),n(9),n(19),n(132);function r(e){return(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})(e)}function o(e){return null!=e&&"object"===r(e)&&e.constructor===Object}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t||a(Object.values(e),Object.values(t),n)}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&e.length===t.length&&!!e.every(function(e,r){var s=t[r];return e===s||n&&(Array.isArray(e)&&Array.isArray(s)&&a(e,s,n)||o(e)&&o(s)&&i(e,s,n))})}},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.Text="text",e.Markdown="markdown"}(r||(r={}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(18);r(r.S+r.F,"Object",{assign:n(127)})},function(e,t,n){var r=n(21),o=n(47);e.exports=n(22)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(14),o=n(30),i=n(36),a=n(46)("src"),s=Function.toString,l=(""+s).split("toString");n(37).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(54);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,n){e.exports=t},function(e,t,n){var r; +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.dash_table=t(require("react"),require("react-dom")):e.dash_table=t(e.React,e.ReactDOM)}(window,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=119)}([function(e,t,n){e.exports=n(131)()},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),o=n(8);function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return Object(o.a)(n)?t:Object(r.a)(function(t){return e(n,t)});default:return Object(o.a)(n)&&Object(o.a)(i)?t:Object(o.a)(n)?Object(r.a)(function(t){return e(t,i)}):Object(o.a)(i)?Object(r.a)(function(t){return e(n,t)}):e(n,i)}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a});n(38);var r=n(27);function o(e){var t,n=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;ao;)K(e,n=r[o++],t[n]);return e},Z=function(e){var t=M.call(this,e=w(e,!0));return!(this===q&&o(L,e)&&!o(N,e))&&(!(t||!o(this,e)||!o(L,e)||o(this,D)&&this[D][e])||t)},J=function(e,t){if(e=x(e),t=w(t,!0),e!==q||!o(L,t)||o(N,t)){var n=A(e,t);return!n||!o(L,t)||o(e,D)&&e[D][t]||(n.enumerable=!0),n}},Y=function(e){for(var t,n=j(x(e)),r=[],i=0;n.length>i;)o(L,t=n[i++])||t==D||t==l||r.push(t);return r},X=function(e){for(var t,n=e===q,r=j(n?N:x(e)),i=[],a=0;r.length>a;)!o(L,t=r[a++])||n&&!o(q,t)||i.push(L[t]);return i};B||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(N,n),o(this,D)&&o(this[D],e)&&(this[D][e]=!1),W(this,e,_(1,n))};return i&&U&&W(q,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),O.f=J,E.f=K,n(77).f=S.f=Y,n(51).f=Z,n(76).f=X,i&&!n(48)&&s(q,"propertyIsEnumerable",Z,!0),h.f=function(e){return H(f(e))}),a(a.G+a.W+a.F*!B,{Symbol:R});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)f(Q[ee++]);for(var te=C(f.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return o(I,e+="")?I[e]:I[e]=R(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?k(e):$(k(e),t)},defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:J,getOwnPropertyNames:Y,getOwnPropertySymbols:X}),z&&a(a.S+a.F*(!B||c(function(){var e=R();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(m(t)||void 0!==e)&&!G(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,P.apply(z,r)}}),R.prototype[F]||n(32)(R.prototype,F,R.prototype.valueOf),p(R,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){var r=n(55)("wks"),o=n(46),i=n(14).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(95)(!0);n(79)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(14),o=n(37),i=n(32),a=n(29),s=n(33),l=function(e,t,n){var c,u,p,d,f=e&l.F,h=e&l.G,v=e&l.S,g=e&l.P,b=e&l.B,y=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,m=h?o:o[t]||(o[t]={}),x=m.prototype||(m.prototype={});for(c in h&&(n=t),n)p=((u=!f&&y&&void 0!==y[c])?y:n)[c],d=b&&u?s(p,r):g&&"function"==typeof p?s(Function.call,p):p,y&&a(y,c,p,e&l.U),m[c]!=p&&i(m,c,d),g&&x[c]!=p&&(x[c]=p)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,"a",function(){return r})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(17);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";var r=n(57),o=n(101),i=n(52),a=n(43);e.exports=n(79)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return!!e&&r.call(e,t)}var i=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function a(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var l=/&([a-z#][a-z0-9]{1,31});/gi,c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(111);function p(e,t){var n=0;return o(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}var d=/[&<>"]/,f=/[&<>"]/g,h={"&":"&","<":"<",">":">",'"':"""};function v(e){return h[e]}t.assign=function(e){return[].slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(i,"$1")},t.isValidEntityCode=a,t.fromCodePoint=s,t.replaceEntities=function(e){return e.indexOf("&")<0?e:e.replace(l,p)},t.escapeHtml=function(e){return d.test(e)?e.replace(f,v):e}},function(e,t,n){var r=n(18),o=n(89),i=n(54),a=Object.defineProperty;t.f=n(22)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n(137);var r=n(18),o=n(72),i=n(22),a=/./.toString,s=function(e){n(29)(RegExp.prototype,"toString",e,!0)};n(23)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,n){"use strict";var r=n(33),o=n(15),i=n(45),a=n(102),s=n(103),l=n(41),c=n(138),u=n(104);o(o.S+o.F*!n(80)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,p,d=i(e),f="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v,b=0,y=u(d);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(t=l(d.length));t>b;b++)c(n,b,g?v(d[b],b):d[b]);else for(p=y.call(d),n=new f;!(o=p.next()).done;b++)c(n,b,g?a(p,v,[o.value,b],!0):o.value);return n.length=b,n}})},function(e,t,n){"use strict";t.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});n(10),n(11),n(9),n(19),n(135);function r(e){return(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})(e)}function o(e){return null!=e&&"object"===r(e)&&e.constructor===Object}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e===t||a(Object.values(e),Object.values(t),n)}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&e.length===t.length&&!!e.every(function(e,r){var s=t[r];return e===s||n&&(Array.isArray(e)&&Array.isArray(s)&&a(e,s,n)||o(e)&&o(s)&&i(e,s,n))})}},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.Text="text",e.Markdown="markdown"}(r||(r={}))},function(e,t,n){var r=n(14),o=n(32),i=n(31),a=n(46)("src"),s=n(121),l=(""+s).split("toString");n(37).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(15);r(r.S+r.F,"Object",{assign:n(130)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(21),o=n(47);e.exports=n(22)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(56);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,n){e.exports=t},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -9,11 +9,11 @@ Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t1?arguments[1]:void 0)}}),n(55)("find")},function(e,t,n){var r=n(48),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(94),o=n(74);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(65),o=n(45);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(150),o=n(108);e.exports=n(151)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(45);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=!1},function(e,t,n){var r=n(21).f,o=n(36),i=n(12)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports={}},function(e,t,n){var r=n(46)("meta"),o=n(16),i=n(36),a=n(21).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(28)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&p.NEED&&l(e)&&!i(e,r)&&u(e),e}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(12)("unscopables"),o=Array.prototype;null==o[r]&&n(30)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=this.__rules__.length,n=-1;t--;)if(this.__rules__[++n].name===e)return n;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},r.prototype.at=function(e,t,n){var r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(e){e.enabled=!1}),e.forEach(function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!0},this),this.__cache__=null},r.prototype.disable=function(e){(e=Array.isArray(e)?e:[e]).forEach(function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!1},this),this.__cache__=null},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o,i=-1,a=e.posMax,s=e.pos,l=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,n=1;e.pos1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",r=new Date((new Date).getTime()-864e5).toUTCString();document.cookie="".concat(e,"=;expires=").concat(r,";domain=").concat(t,";path=").concat(n)}},{key:"get",value:function(e){if(e.length)return e=e.toLowerCase(),(document.cookie.split(";").map(function(e){var t=e.split("=");return{id:t[0].trim(),value:t[1]}}).find(function(t){return e===t.id.toLocaleLowerCase()})||{}).value}},{key:"set",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",i=new Date((new Date).getTime()+63072e7).toUTCString(),a="".concat(t,"=").concat(n,";expires=").concat(i,";domain=").concat(r,";path=").concat(o);e.get(t)&&e.delete(t,r,o),document.cookie=a}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}();function a(e,t){for(var n=0;n=0&&u.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return b(t,e.attrs),h(e,t),t}function b(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=l||(l=g(t)),r=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=p(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return d(n,t),function(e){for(var r=[],o=0;o1&&s.call(r[0],n,function(){for(o=1;o")}),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=s(e),f=!i(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),h=f?!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!t}):void 0;if(!f||!h||"replace"===e&&!u||"split"===e&&!p){var v=/./[d],g=n(a,d,""[e],function(e,t,n,r,o){return t.exec===l?f&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),b=g[0],y=g[1];r(String.prototype,e,b),o(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){var r=n(66)("keys"),o=n(46);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(17),o=n(125),i=n(74),a=n(73)("IE_PROTO"),s=function(){},l=function(){var e,t=n(63)("iframe"),r=i.length;for(t.style.display="none",n(96).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("