From dd162d2e59faa1e8bac8c0d1a285109c08b9429c Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Tue, 1 Jan 2019 22:08:53 +0800 Subject: [PATCH] React Modal v3 (#4) * Deprecate "disableOverlay" prop and replace it with "disableOverlayClick" * Integrate Webpack 4, Babel 7 and Styleguidist * Bump to 3.0.0 * Update the code to use the `React.createRef()` API introduced in React 16.3 * Remove unused parameter * Update README.md * Update license year to 2019 --- .babelrc | 10 - README.md | 8 +- babel.config.js | 7 + dist/react-modal.css | 3 +- dist/react-modal.css.map | 2 +- dist/react-modal.min.css | 2 +- docs/4be67fb1948530c73d9a55b1736d6d7f.svg | 5 - docs/build/1.690ec258.js | 1 + docs/build/bundle.f6fa97ae.js | 66 + docs/bundle.js | 27558 -------------------- docs/bundle.js.map | 1 - docs/index.html | 47 +- docs/main.css | 162 + examples/.stylintrc | 38 - examples/index.html | 46 - examples/index.jsx | 292 - examples/webpack.config.js | 99 - package.json | 99 +- src/Modal.jsx | 34 +- src/ModalOverlay.jsx | 22 +- src/index.js | 2 +- styleguide.config.js | 125 + styleguide/Modal.md | 175 + {examples => styleguide}/ModalDialog.jsx | 0 styleguide/NestedModal.jsx | 54 + {examples => styleguide}/portal.jsx | 0 styleguide/setup.js | 12 + webpack.config.js | 61 +- 28 files changed, 747 insertions(+), 28184 deletions(-) delete mode 100644 .babelrc create mode 100644 babel.config.js delete mode 100644 docs/4be67fb1948530c73d9a55b1736d6d7f.svg create mode 100644 docs/build/1.690ec258.js create mode 100644 docs/build/bundle.f6fa97ae.js delete mode 100644 docs/bundle.js delete mode 100644 docs/bundle.js.map create mode 100644 docs/main.css delete mode 100644 examples/.stylintrc delete mode 100644 examples/index.html delete mode 100644 examples/index.jsx delete mode 100644 examples/webpack.config.js create mode 100644 styleguide.config.js create mode 100644 styleguide/Modal.md rename {examples => styleguide}/ModalDialog.jsx (100%) create mode 100644 styleguide/NestedModal.jsx rename {examples => styleguide}/portal.jsx (100%) create mode 100644 styleguide/setup.js diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 6504cb5..0000000 --- a/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - ["env", { "loose": true }], - "stage-0", - "react" - ], - "plugins": [ - "transform-decorators-legacy" - ] -} diff --git a/README.md b/README.md index 3d748a2..5f36e25 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ class ModalWrapper extends PureComponent { static propTypes = { ...Modal.propTypes }; + static defaultProps = { ...Modal.defaultProps }; @@ -118,12 +119,15 @@ class ModalWrapper extends PureComponent { } } } + componentDidMount() { this.changeBodyStyle(); } + componentWillUnmount() { this.restoreBodyStyle(); } + changeBodyStyle() { if (bodyStyle) { return; @@ -135,6 +139,7 @@ class ModalWrapper extends PureComponent { }; body.style.overflowY = 'hidden'; } + restoreBodyStyle() { if (bodyStyle) { const body = document.querySelector('body'); @@ -142,6 +147,7 @@ class ModalWrapper extends PureComponent { bodyStyle = null; } } + render() { const { onClose, ...props } = this.props; @@ -177,7 +183,7 @@ onClose | Function | | A callback fired on clicking the overlay or the close but show | Boolean | true | Whether the modal is visible. showCloseButton | Boolean | true | Whether the close button (x) is visible. showOverlay | Boolean | true | Display an overlay in the background. Defaults to `true`. -disableOverlay | Boolean | false | Don't close the modal on clicking the overlay. Defaults to `false`. +disableOverlayClick | Boolean | false | Don't close the modal on clicking the overlay. Defaults to `false`. overlayClassName | String | | className to assign to modal overlay. overlayStyle | Object | | style to assign to modal overlay. size | String | '' | One of: 'xs', 'sm', 'md', 'lg', 'extra-small', 'small', 'medium', 'large', or an empty string. Defaults to empty string that will automatically resize to fit contents. diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..728d703 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,7 @@ +module.exports = { + extends: '@trendmicro/babel-config', + presets: [ + '@babel/preset-env', + '@babel/preset-react' + ] +}; diff --git a/dist/react-modal.css b/dist/react-modal.css index d0f40db..1f34880 100644 --- a/dist/react-modal.css +++ b/dist/react-modal.css @@ -1,4 +1,4 @@ -/*! react-modal v2.3.0 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-modal */ +/*! react-modal v3.0.0 | (c) 2019 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-modal */ .modal---modal-overlay---3D5Nr { position: fixed; top: 0; @@ -161,4 +161,5 @@ margin-left: 8px; } + /*# sourceMappingURL=react-modal.css.map*/ \ No newline at end of file diff --git a/dist/react-modal.css.map b/dist/react-modal.css.map index 4f4293c..b4d3a53 100644 --- a/dist/react-modal.css.map +++ b/dist/react-modal.css.map @@ -1 +1 @@ -{"version":3,"sources":[],"names":[],"mappings":"","file":"../dist/react-modal.css","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./src/index.styl"],"names":[],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"../dist/react-modal.css","sourcesContent":[".modal---modal-overlay---3D5Nr {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(51,51,51,0.55);\n z-index: 1050;\n white-space: nowrap;\n overflow-x: auto;\n}\n.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5 {\n text-align: center;\n}\n.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5:before {\n content: '';\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n margin-right: -0.25em;\n}\n.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5 .modal---modal-content---3pwnC {\n display: inline-block;\n vertical-align: middle;\n text-align: left;\n}\n.modal---modal-content---3pwnC {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 20px;\n position: relative;\n display: inline-block;\n background-color: #fff;\n border: 1px solid #ccc;\n -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.5);\n box-shadow: 0 4px 16px rgba(0,0,0,0.5);\n min-width: 400px;\n white-space: normal;\n}\n.modal---modal-content---3pwnC *,\n.modal---modal-content---3pwnC *:before,\n.modal---modal-content---3pwnC *:after {\n -webkit-box-sizing: inherit;\n -moz-box-sizing: inherit;\n box-sizing: inherit;\n}\n.modal---modal-content---3pwnC.modal---xs---1z3ff {\n width: 400px;\n}\n.modal---modal-content---3pwnC.modal---xs---1z3ff .modal---modal-body---2HFnG {\n min-height: 184px;\n}\n.modal---modal-content---3pwnC.modal---xs---1z3ff .modal---modal-header---2YL1L + .modal---modal-body---2HFnG {\n min-height: 130px;\n}\n.modal---modal-content---3pwnC.modal---sm---20_2_ {\n width: 544px;\n}\n.modal---modal-content---3pwnC.modal---sm---20_2_ .modal---modal-body---2HFnG {\n min-height: 246px;\n}\n.modal---modal-content---3pwnC.modal---sm---20_2_ .modal---modal-header---2YL1L + .modal---modal-body---2HFnG {\n min-height: 192px;\n}\n.modal---modal-content---3pwnC.modal---md---2-zYL {\n width: 688px;\n}\n.modal---modal-content---3pwnC.modal---md---2-zYL .modal---modal-body---2HFnG {\n min-height: 246px;\n}\n.modal---modal-content---3pwnC.modal---md---2-zYL .modal---modal-header---2YL1L + .modal---modal-body---2HFnG {\n min-height: 192px;\n}\n.modal---modal-content---3pwnC.modal---lg---Hdvxb {\n width: 928px;\n}\n.modal---modal-content---3pwnC.modal---lg---Hdvxb .modal---modal-body---2HFnG {\n min-height: 246px;\n}\n.modal---modal-content---3pwnC.modal---lg---Hdvxb .modal---modal-header---2YL1L + .modal---modal-body---2HFnG {\n min-height: 192px;\n}\n.modal---modal-content---3pwnC.modal---close-button---2UJ1Z .modal---modal-header---2YL1L.modal---padding---2ENnv {\n padding: 16px 56px 16px 24px;\n}\n.modal---modal-content---3pwnC .modal---close---28rLZ {\n position: absolute;\n top: 16px;\n right: 24px;\n padding: 0;\n margin: 0;\n line-height: 20px;\n cursor: pointer;\n background: transparent url(data:image/svg+xml;base64,PCEtLSBHZW5lcmF0ZWQgYnkgVHJlbmQgTWljcm8gU3R5bGUgUG9ydGFsIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPg0KICA8dGl0bGU+Y2xvc2U8L3RpdGxlPg0KICA8cGF0aCBmaWxsPSJyZ2IoMzQsMzQsMzQpIiBkPSJNMTUgMmwtMS0xLTYgNi02LTYtMC45OSAwLjk5IDUuOTkgNi4wMTAtNiA2IDEgMSA2LTYgNiA2IDEtMS02LTYgNi02eiI+PC9wYXRoPg0KPC9zdmc+);\n border: 0;\n -webkit-appearance: none;\n text-shadow: none;\n opacity: 1;\n -ms-filter: none;\n filter: none;\n outline: none;\n width: 16px;\n height: 16px;\n opacity: 0.5;\n -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\";\n filter: alpha(opacity=50);\n}\n.modal---modal-content---3pwnC .modal---close---28rLZ:hover,\n.modal---modal-content---3pwnC .modal---close---28rLZ:focus {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n}\n.modal---modal-content---3pwnC .modal---modal-header---2YL1L {\n min-height: 54px;\n background-color: #fff;\n border-bottom: 1px solid #ccc;\n padding: 0;\n}\n.modal---modal-content---3pwnC .modal---modal-header---2YL1L.modal---padding---2ENnv {\n padding: 16px 24px;\n}\n.modal---modal-content---3pwnC .modal---modal-title---2JFyt {\n font-weight: 200;\n color: #222;\n letter-spacing: -0.02em;\n font-size: 18px;\n}\n.modal---modal-content---3pwnC .modal---modal-title---2JFyt.modal---ellipsis---1BpLN {\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.modal---modal-content---3pwnC .modal---modal-body---2HFnG {\n position: relative;\n padding: 0;\n}\n.modal---modal-content---3pwnC .modal---modal-body---2HFnG.modal---padding---2ENnv {\n padding: 54px 24px 16px 24px;\n}\n.modal---modal-content---3pwnC .modal---modal-header---2YL1L + .modal---modal-body---2HFnG.modal---padding---2ENnv {\n padding: 16px 24px;\n}\n.modal---modal-content---3pwnC .modal---modal-footer---20LPi {\n min-height: 56px;\n margin-top: 0;\n text-align: right;\n background-color: #eee;\n padding: 0;\n}\n.modal---modal-content---3pwnC .modal---modal-footer---20LPi.modal---padding---2ENnv {\n padding: 12px 24px;\n}\n.modal---modal-content---3pwnC .modal---modal-footer---20LPi button {\n min-width: 80px;\n}\n.modal---modal-content---3pwnC .modal---modal-footer---20LPi button + button {\n margin-left: 8px;\n}\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/react-modal.min.css b/dist/react-modal.min.css index bb7e13f..bf2904b 100644 --- a/dist/react-modal.min.css +++ b/dist/react-modal.min.css @@ -1 +1 @@ -/*! react-modal v2.3.0 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-modal */.modal---modal-overlay---3D5Nr{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(51,51,51,.55);z-index:1050;white-space:nowrap;overflow-x:auto}.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5{text-align:center}.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5 .modal---modal-content---3pwnC{display:inline-block;vertical-align:middle;text-align:left}.modal---modal-content---3pwnC{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;line-height:20px;position:relative;display:inline-block;background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:0 4px 16px rgba(0,0,0,.5);box-shadow:0 4px 16px rgba(0,0,0,.5);min-width:400px;white-space:normal}.modal---modal-content---3pwnC *,.modal---modal-content---3pwnC :after,.modal---modal-content---3pwnC :before{-webkit-box-sizing:inherit;-moz-box-sizing:inherit;box-sizing:inherit}.modal---modal-content---3pwnC.modal---xs---1z3ff{width:400px}.modal---modal-content---3pwnC.modal---xs---1z3ff .modal---modal-body---2HFnG{min-height:184px}.modal---modal-content---3pwnC.modal---xs---1z3ff .modal---modal-header---2YL1L+.modal---modal-body---2HFnG{min-height:130px}.modal---modal-content---3pwnC.modal---sm---20_2_{width:544px}.modal---modal-content---3pwnC.modal---sm---20_2_ .modal---modal-body---2HFnG{min-height:246px}.modal---modal-content---3pwnC.modal---sm---20_2_ .modal---modal-header---2YL1L+.modal---modal-body---2HFnG{min-height:192px}.modal---modal-content---3pwnC.modal---md---2-zYL{width:688px}.modal---modal-content---3pwnC.modal---md---2-zYL .modal---modal-body---2HFnG{min-height:246px}.modal---modal-content---3pwnC.modal---md---2-zYL .modal---modal-header---2YL1L+.modal---modal-body---2HFnG{min-height:192px}.modal---modal-content---3pwnC.modal---lg---Hdvxb{width:928px}.modal---modal-content---3pwnC.modal---lg---Hdvxb .modal---modal-body---2HFnG{min-height:246px}.modal---modal-content---3pwnC.modal---lg---Hdvxb .modal---modal-header---2YL1L+.modal---modal-body---2HFnG{min-height:192px}.modal---modal-content---3pwnC.modal---close-button---2UJ1Z .modal---modal-header---2YL1L.modal---padding---2ENnv{padding:16px 56px 16px 24px}.modal---modal-content---3pwnC .modal---close---28rLZ{position:absolute;top:16px;right:24px;padding:0;margin:0;line-height:20px;cursor:pointer;background:transparent url(data:image/svg+xml;base64,PCEtLSBHZW5lcmF0ZWQgYnkgVHJlbmQgTWljcm8gU3R5bGUgUG9ydGFsIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPg0KICA8dGl0bGU+Y2xvc2U8L3RpdGxlPg0KICA8cGF0aCBmaWxsPSJyZ2IoMzQsMzQsMzQpIiBkPSJNMTUgMmwtMS0xLTYgNi02LTYtMC45OSAwLjk5IDUuOTkgNi4wMTAtNiA2IDEgMSA2LTYgNiA2IDEtMS02LTYgNi02eiI+PC9wYXRoPg0KPC9zdmc+);border:0;-webkit-appearance:none;text-shadow:none;opacity:1;-ms-filter:none;filter:none;outline:0;width:16px;height:16px;opacity:.5}.modal---modal-content---3pwnC .modal---close---28rLZ:focus,.modal---modal-content---3pwnC .modal---close---28rLZ:hover{opacity:1;-ms-filter:none;filter:none}.modal---modal-content---3pwnC .modal---modal-header---2YL1L{min-height:54px;background-color:#fff;border-bottom:1px solid #ccc;padding:0}.modal---modal-content---3pwnC .modal---modal-header---2YL1L.modal---padding---2ENnv{padding:16px 24px}.modal---modal-content---3pwnC .modal---modal-title---2JFyt{font-weight:200;color:#222;letter-spacing:-.02em;font-size:18px}.modal---modal-content---3pwnC .modal---modal-title---2JFyt.modal---ellipsis---1BpLN{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.modal---modal-content---3pwnC .modal---modal-body---2HFnG{position:relative;padding:0}.modal---modal-content---3pwnC .modal---modal-body---2HFnG.modal---padding---2ENnv{padding:54px 24px 16px 24px}.modal---modal-content---3pwnC .modal---modal-header---2YL1L+.modal---modal-body---2HFnG.modal---padding---2ENnv{padding:16px 24px}.modal---modal-content---3pwnC .modal---modal-footer---20LPi{min-height:56px;margin-top:0;text-align:right;background-color:#eee;padding:0}.modal---modal-content---3pwnC .modal---modal-footer---20LPi.modal---padding---2ENnv{padding:12px 24px}.modal---modal-content---3pwnC .modal---modal-footer---20LPi button{min-width:80px}.modal---modal-content---3pwnC .modal---modal-footer---20LPi button+button{margin-left:8px} \ No newline at end of file +/*! react-modal v3.0.0 | (c) 2019 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-modal */.modal---modal-overlay---3D5Nr{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(51,51,51,.55);z-index:1050;white-space:nowrap;overflow-x:auto}.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5{text-align:center}.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.modal---modal-overlay---3D5Nr.modal---centered---1Tdo5 .modal---modal-content---3pwnC{display:inline-block;vertical-align:middle;text-align:left}.modal---modal-content---3pwnC{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;line-height:20px;position:relative;display:inline-block;background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:0 4px 16px rgba(0,0,0,.5);box-shadow:0 4px 16px rgba(0,0,0,.5);min-width:400px;white-space:normal}.modal---modal-content---3pwnC *,.modal---modal-content---3pwnC :after,.modal---modal-content---3pwnC :before{-webkit-box-sizing:inherit;-moz-box-sizing:inherit;box-sizing:inherit}.modal---modal-content---3pwnC.modal---xs---1z3ff{width:400px}.modal---modal-content---3pwnC.modal---xs---1z3ff .modal---modal-body---2HFnG{min-height:184px}.modal---modal-content---3pwnC.modal---xs---1z3ff .modal---modal-header---2YL1L+.modal---modal-body---2HFnG{min-height:130px}.modal---modal-content---3pwnC.modal---sm---20_2_{width:544px}.modal---modal-content---3pwnC.modal---sm---20_2_ .modal---modal-body---2HFnG{min-height:246px}.modal---modal-content---3pwnC.modal---sm---20_2_ .modal---modal-header---2YL1L+.modal---modal-body---2HFnG{min-height:192px}.modal---modal-content---3pwnC.modal---md---2-zYL{width:688px}.modal---modal-content---3pwnC.modal---md---2-zYL .modal---modal-body---2HFnG{min-height:246px}.modal---modal-content---3pwnC.modal---md---2-zYL .modal---modal-header---2YL1L+.modal---modal-body---2HFnG{min-height:192px}.modal---modal-content---3pwnC.modal---lg---Hdvxb{width:928px}.modal---modal-content---3pwnC.modal---lg---Hdvxb .modal---modal-body---2HFnG{min-height:246px}.modal---modal-content---3pwnC.modal---lg---Hdvxb .modal---modal-header---2YL1L+.modal---modal-body---2HFnG{min-height:192px}.modal---modal-content---3pwnC.modal---close-button---2UJ1Z .modal---modal-header---2YL1L.modal---padding---2ENnv{padding:16px 56px 16px 24px}.modal---modal-content---3pwnC .modal---close---28rLZ{position:absolute;top:16px;right:24px;padding:0;margin:0;line-height:20px;cursor:pointer;background:transparent url(data:image/svg+xml;base64,PCEtLSBHZW5lcmF0ZWQgYnkgVHJlbmQgTWljcm8gU3R5bGUgUG9ydGFsIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPg0KICA8dGl0bGU+Y2xvc2U8L3RpdGxlPg0KICA8cGF0aCBmaWxsPSJyZ2IoMzQsMzQsMzQpIiBkPSJNMTUgMmwtMS0xLTYgNi02LTYtMC45OSAwLjk5IDUuOTkgNi4wMTAtNiA2IDEgMSA2LTYgNiA2IDEtMS02LTYgNi02eiI+PC9wYXRoPg0KPC9zdmc+);border:0;-webkit-appearance:none;text-shadow:none;opacity:1;-ms-filter:none;filter:none;outline:0;width:16px;height:16px;opacity:.5}.modal---modal-content---3pwnC .modal---close---28rLZ:focus,.modal---modal-content---3pwnC .modal---close---28rLZ:hover{opacity:1;-ms-filter:none;filter:none}.modal---modal-content---3pwnC .modal---modal-header---2YL1L{min-height:54px;background-color:#fff;border-bottom:1px solid #ccc;padding:0}.modal---modal-content---3pwnC .modal---modal-header---2YL1L.modal---padding---2ENnv{padding:16px 24px}.modal---modal-content---3pwnC .modal---modal-title---2JFyt{font-weight:200;color:#222;letter-spacing:-.02em;font-size:18px}.modal---modal-content---3pwnC .modal---modal-title---2JFyt.modal---ellipsis---1BpLN{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.modal---modal-content---3pwnC .modal---modal-body---2HFnG{position:relative;padding:0}.modal---modal-content---3pwnC .modal---modal-body---2HFnG.modal---padding---2ENnv{padding:54px 24px 16px 24px}.modal---modal-content---3pwnC .modal---modal-header---2YL1L+.modal---modal-body---2HFnG.modal---padding---2ENnv{padding:16px 24px}.modal---modal-content---3pwnC .modal---modal-footer---20LPi{min-height:56px;margin-top:0;text-align:right;background-color:#eee;padding:0}.modal---modal-content---3pwnC .modal---modal-footer---20LPi.modal---padding---2ENnv{padding:12px 24px}.modal---modal-content---3pwnC .modal---modal-footer---20LPi button{min-width:80px}.modal---modal-content---3pwnC .modal---modal-footer---20LPi button+button{margin-left:8px} \ No newline at end of file diff --git a/docs/4be67fb1948530c73d9a55b1736d6d7f.svg b/docs/4be67fb1948530c73d9a55b1736d6d7f.svg deleted file mode 100644 index 47c245c..0000000 --- a/docs/4be67fb1948530c73d9a55b1736d6d7f.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - close - - \ No newline at end of file diff --git a/docs/build/1.690ec258.js b/docs/build/1.690ec258.js new file mode 100644 index 0000000..8cf0754 --- /dev/null +++ b/docs/build/1.690ec258.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{570:function(e,t,r){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),a=n||o||i,s=a&&(n?document.documentMode||6:+(i||o)[1]),l=!i&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!i&&/Chrome\//.test(e),d=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),f=/PhantomJS/.test(e),g=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),C=/\bCrOS\b/.test(e),b=/win/i.test(t),x=d&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(d=!1,l=!0);var w=y&&(c||d&&(null==x||x<12.11)),k=r||a&&s>=9;function classTest(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,M=function(e,t){var r=e.className,n=classTest(t).exec(r);if(n){var o=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(o?n[1]+o:"")}};function removeChildren(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function removeChildrenAndAdd(e,t){return removeChildren(e).appendChild(t)}function elt(e,t,r,n){var o=document.createElement(e);if(r&&(o.className=r),n&&(o.style.cssText=n),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=s-i,a+=r-a%r,i=s+1}}g?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var T=function(){this.id=null};function indexOf(e,t){for(var r=0;r=t)return n+Math.min(a,t-o);if(o+=i-n,n=i+1,(o+=r-o%r)>=t)return n}}var H=[""];function spaceStr(e){for(;H.length<=e;)H.push(lst(H)+" ");return H[e]}function lst(e){return e[e.length-1]}function map(e,t){for(var r=[],n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||E.test(e))}function isWordChar(e,t){return t?!!(t.source.indexOf("\\w")>-1&&isWordCharBasic(e))||t.test(e):isWordCharBasic(e)}function isEmpty(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var W=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function isExtendingChar(e){return e.charCodeAt(0)>=768&&W.test(e)}function skipExtendingChars(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var o=(t+r)/2,i=n<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:r;e(i)?r=i:t=i+n}}function Display(e,t,n){var o=this;this.input=n,o.scrollbarFiller=elt("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=elt("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=eltP("div",null,"CodeMirror-code"),o.selectionDiv=elt("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=elt("div",null,"CodeMirror-cursors"),o.measure=elt("div",null,"CodeMirror-measure"),o.lineMeasure=elt("div",null,"CodeMirror-measure"),o.lineSpace=eltP("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var i=eltP("div",[o.lineSpace],"CodeMirror-lines");o.mover=elt("div",[i],null,"position: relative"),o.sizer=elt("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=elt("div",null,null,"position: absolute; height: "+O+"px; width: 1px;"),o.gutters=elt("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=elt("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=elt("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||r&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}function getLine(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var o=r.children[n],i=o.chunkSize();if(t=e.first&&tr?Pos(r,getLine(e,r).text.length):clipToLen(t,getLine(e,t.line).text.length)}function clipToLen(e,t){var r=e.ch;return null==r||r>t?Pos(e.line,t):r<0?Pos(e.line,0):e}function clipPosArray(e,t){for(var r=[],n=0;n=t:i.to>t);(n||(n=[])).push(new MarkedSpan(a,i.from,l?null:i.to))}}return n}function markedSpansAfter(e,t,r){var n;if(e)for(var o=0;o=t:i.to>t);if(s||i.from==t&&"bookmark"==a.type&&(!r||i.marker.insertLeft)){var l=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var b=0;b0)){var u=[l,1],d=cmp(c.from,s.from),p=cmp(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&u.push({from:s.to,to:c.to}),o.splice.apply(o,u),l+=u.length-3}}return o}function detachMarkedSpans(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!r||compareCollapsedMarkers(r,i.marker)<0)&&(r=i.marker)}return r}function conflictingCollapsedRange(e,t,r,n,o){var i=getLine(e,t),a=F&&i.markedSpans;if(a)for(var s=0;s=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?cmp(c.to,r)>=0:cmp(c.to,r)>0)||u>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?cmp(c.from,n)<=0:cmp(c.from,n)<0)))return!0}}}function visualLine(e){for(var t;t=collapsedSpanAtStart(e);)e=t.find(-1,!0).line;return e}function visualLineEnd(e){for(var t;t=collapsedSpanAtEnd(e);)e=t.find(1,!0).line;return e}function visualLineContinued(e){for(var t,r;t=collapsedSpanAtEnd(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function visualLineNo(e,t){var r=getLine(e,t),n=visualLine(r);return r==n?t:lineNo(n)}function visualLineEndNo(e,t){if(t>e.lastLine())return t;var r,n=getLine(e,t);if(!lineIsHidden(e,n))return t;for(;r=collapsedSpanAtEnd(n);)n=r.find(1,!0).line;return lineNo(n)+1}function lineIsHidden(e,t){var r=F&&t.markedSpans;if(r)for(var n=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}function iterateBidiSections(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var o=!1,i=0;it||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),1==a.level?"rtl":"ltr",i),o=!0)}o||n(t,r,"ltr")}var B=null;function getBidiPartAt(e,t,r){var n;B=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==r?n=o:B=o),i.from==t&&(i.from!=i.to&&"before"!=r?n=o:B=o)}return null!=n?n:B}var R=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,i=/[Lb1n]/,a=/[1n]/;function BidiSpan(e,t,r){this.level=e,this.from=t,this.to=r}return function(s,l){var c,u="ltr"==l?"L":"R";if(0==s.length||"ltr"==l&&!r.test(s))return!1;for(var d=s.length,p=[],h=0;h-1&&(n[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function signal(e,t){var r=getHandlers(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),o=0;o0}function eventMixin(e){e.prototype.on=function(e,t){U(this,e,t)},e.prototype.off=function(e,t){off(this,e,t)}}function e_preventDefault(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function e_stopPropagation(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function e_defaultPrevented(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function e_stop(e){e_preventDefault(e),e_stopPropagation(e)}function e_target(e){return e.target||e.srcElement}function e_button(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var V,G,K=function(){if(a&&s<9)return!1;var e=elt("div");return"draggable"in e||"dragDrop"in e}();function zeroWidthElement(e){if(null==V){var t=elt("span","​");removeChildrenAndAdd(e,elt("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(V=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var r=V?elt("span","​"):elt("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function hasBadBidiRects(e){if(null!=G)return G;var t=removeChildrenAndAdd(e,document.createTextNode("AخA")),r=S(t,0,1).getBoundingClientRect(),n=S(t,1,2).getBoundingClientRect();return removeChildren(e),!(!r||r.left==r.right)&&(G=n.right-r.right<3)}var _,q=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(r.push(i.slice(0,a)),t+=a+1):(r.push(i),t=o+1)}return r}:function(e){return e.split(/\r\n?|\n/)},j=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},X="oncopy"in(_=elt("div"))||(_.setAttribute("oncopy","return;"),"function"==typeof _.oncopy),Y=null;function hasBadZoomedRects(e){if(null!=Y)return Y;var t=removeChildrenAndAdd(e,elt("span","x")),r=t.getBoundingClientRect(),n=S(t,0,1).getBoundingClientRect();return Y=Math.abs(r.left-n.left)>1}var Z={},J={};function defineMode(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Z[e]=t}function resolveMode(e){if("string"==typeof e&&J.hasOwnProperty(e))e=J[e];else if(e&&"string"==typeof e.name&&J.hasOwnProperty(e.name)){var t=J[e.name];"string"==typeof t&&(t={name:t}),(e=createObj(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return resolveMode("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return resolveMode("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function getMode(e,t){t=resolveMode(t);var r=Z[t.name];if(!r)return getMode(e,"text/plain");var n=r(e,t);if(Q.hasOwnProperty(t.name)){var o=Q[t.name];for(var i in o)o.hasOwnProperty(i)&&(n.hasOwnProperty(i)&&(n["_"+i]=n[i]),n[i]=o[i])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}var Q={};function extendMode(e,t){var r=Q.hasOwnProperty(e)?Q[e]:Q[e]={};copyObj(t,r)}function copyState(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var o=t[n];o instanceof Array&&(o=o.concat([])),r[n]=o}return r}function innerMode(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function startState(e,t,r){return!e.startState||e.startState(t,r)}var $=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};$.prototype.eol=function(){return this.pos>=this.string.length},$.prototype.sol=function(){return this.pos==this.lineStart},$.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$.prototype.next=function(){if(this.post},$.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},$.prototype.skipToEnd=function(){this.pos=this.string.length},$.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$.prototype.backUp=function(e){this.pos-=e},$.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var o=function(e){return r?e.toLowerCase():e},i=this.string.substr(this.pos,e.length);if(o(i)==o(e))return!1!==t&&(this.pos+=e.length),!0},$.prototype.current=function(){return this.string.slice(this.start,this.pos)},$.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},$.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},$.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ee=function(e,t){this.state=e,this.lookAhead=t},te=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function highlightLine(e,t,r,n){var o=[e.state.modeGen],i={};runMode(e,t.text,e.doc.mode,r,function(e,t){return o.push(e,t)},i,n);for(var a=r.state,s=function(n){r.baseTokens=o;var s=e.state.overlays[n],l=1,c=0;r.state=!0,runMode(e,t.text,s.mode,r,function(e,t){for(var r=l;ce&&o.splice(l,1,e,o[l+1],n),l+=2,c=Math.min(e,n)}if(t)if(s.opaque)o.splice(r,l-r,e,"overlay "+t),l=r+2;else for(;re.options.maxHighlightLength&©State(e.doc.mode,n.state),i=highlightLine(e,t,n);o&&(n.state=o),t.stateAfter=n.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function getContextBefore(e,t,r){var n=e.doc,o=e.display;if(!n.mode.startState)return new te(n,!0,t);var i=findStartLine(e,t,r),a=i>n.first&&getLine(n,i-1).stateAfter,s=a?te.fromSaved(n,a,i):new te(n,startState(n.mode),i);return n.iter(i,t,function(r){processLine(e,r.text,s);var n=s.line;r.stateAfter=n==t-1||n%5==0||n>=o.viewFrom&&nt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}te.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},te.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},te.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},te.fromSaved=function(e,t,r){return t instanceof ee?new te(e,copyState(e.mode,t.state),r,t.lookAhead):new te(e,copyState(e.mode,t),r)},te.prototype.save=function(e){var t=!1!==e?copyState(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ee(t,this.maxLookAhead):t};var re=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function takeToken(e,t,r,n){var o,i=e.doc,a=i.mode;t=clipPos(i,t);var s,l=getLine(i,t.line),c=getContextBefore(e,t.line,r),u=new $(l.text,e.options.tabSize,c);for(n&&(s=[]);(n||u.pose.options.maxHighlightLength?(s=!1,a&&processLine(e,t,n,d.pos),d.pos=t.length,l=null):l=extractLineClasses(readToken(r,d,n.state,p),i),p){var h=p[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;ca;--s){if(s<=i.first)return i.first;var l=getLine(i,s-1),c=l.stateAfter;if(c&&(!r||s+(c instanceof ee?c.lookAhead:0)<=i.modeFrontier))return s;var u=countColumn(l.text,null,e.options.tabSize);(null==o||n>u)&&(o=s-1,n=u)}return o}function retreatFrontier(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var o=getLine(e,n).stateAfter;if(o&&(!(o instanceof ee)||n+o.lookAhead1&&!/ /.test(e))return e;for(var r=t,n="",o=0;oc&&d.from<=c);p++);if(d.to>=u)return e(r,n,o,i,a,s,l);e(r,n.slice(0,d.to-c),o,i,null,s,l),i=null,n=n.slice(d.to-c),c=d.to}}}function buildCollapsedSpan(e,t,r,n){var o=!n&&r.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!n&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",r.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function insertLineContent(e,t,r){var n=e.markedSpans,o=e.text,i=0;if(n)for(var a,s,l,c,u,d,p,h=o.length,f=0,g=1,m="",v=0;;){if(v==f){l=c=u=s="",p=null,d=null,v=1/0;for(var y=[],C=void 0,b=0;bf||w.collapsed&&x.to==f&&x.from==f)){if(null!=x.to&&x.to!=f&&v>x.to&&(v=x.to,c=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&x.from==f&&(u+=" "+w.startStyle),w.endStyle&&x.to==v&&(C||(C=[])).push(w.endStyle,x.to),w.title&&((p||(p={})).title=w.title),w.attributes)for(var k in w.attributes)(p||(p={}))[k]=w.attributes[k];w.collapsed&&(!d||compareCollapsedMarkers(d.marker,w)<0)&&(d=x)}else x.from>f&&v>x.from&&(v=x.from)}if(C)for(var S=0;S=h)break;for(var L=Math.min(h,v);;){if(m){var T=f+m.length;if(!d){var O=T>L?m.slice(0,L-f):m;t.addToken(t,O,a?a+l:l,u,f+O.length==v?c:"",s,p)}if(T>=L){m=m.slice(L-f),f=L;break}f=T,u=""}m=o.slice(i,i=r[g++]),a=interpretTokenStyle(r[g++],t.cm.options)}}else for(var P=1;P2&&i.push((l.bottom+c.top)/2-r.top)}}i.push(r.bottom-r.top)}}function mapFromLineView(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;nr)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function updateExternalMeasurement(e,t){var r=lineNo(t=visualLine(t)),n=e.display.externalMeasured=new LineView(e.doc,t,r);n.lineN=r;var o=n.built=buildLineContent(e,n);return n.text=o.pre,removeChildrenAndAdd(e.display.lineMeasure,o.pre),n}function measureChar(e,t,r,n){return measureCharPrepared(e,prepareMeasureForLine(e,t),r,n)}function findViewForLine(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(o=(i=l-s)-1,t>=l&&(a="right")),null!=o){if(n=e[c+2],s==l&&r==(n.insertLeft?"left":"right")&&(a=r),"left"==r&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)n=e[2+(c-=3)],a="left";if("right"==r&&o==l-s)for(;c=0&&(r=e[o]).left==r.right;o--);return r}function measureCharInner(e,t,r,n){var o,i=nodeAndOffsetInLineMap(t.map,r,n),l=i.node,c=i.start,u=i.end,d=i.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&isExtendingChar(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u0&&(d=n="right"),o=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==n?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!o||!o.left&&!o.right)){var f=l.parentNode.getClientRects()[0];o=f?{left:f.left,right:f.left+charWidth(e.display),top:f.top,bottom:f.bottom}:ce}for(var g=o.top-t.rect.top,m=o.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,C=0;C=n.text.length?(s=n.text.length,l="before"):s<=0&&(s=0,l="after"),!a)return get("before"==l?s-1:s,"before"==l);function getBidi(e,t,r){var n=a[t],o=1==n.level;return get(r?e-1:e,o!=r)}var c=getBidiPartAt(a,s,l),u=B,d=getBidi(s,c,"before"==l);return null!=u&&(d.other=getBidi(s,u,"before"!=l)),d}function estimateCoords(e,t){var r=0;t=clipPos(e.doc,t),e.options.lineWrapping||(r=charWidth(e.display)*t.ch);var n=getLine(e.doc,t.line),o=heightAtLine(n)+paddingTop(e.display);return{left:r,right:r,top:o,bottom:o+n.height}}function PosWithInfo(e,t,r,n,o){var i=Pos(e,t,r);return i.xRel=o,n&&(i.outside=!0),i}function coordsChar(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return PosWithInfo(n.first,0,null,!0,-1);var o=lineAtHeight(n,r),i=n.first+n.size-1;if(o>i)return PosWithInfo(n.first+n.size-1,getLine(n,i).text.length,null,!0,1);t<0&&(t=0);for(var a=getLine(n,o);;){var s=coordsCharInner(e,a,o,t,r),l=collapsedSpanAround(a,s.ch+(s.xRel>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==o)return c;a=getLine(n,o=c.line)}}function wrappedLineExtent(e,t,r,n){n-=widgetTopHeight(t);var o=t.text.length,i=findFirst(function(t){return measureCharPrepared(e,r,t-1).bottom<=n},o,0);return o=findFirst(function(t){return measureCharPrepared(e,r,t).top>n},i,o),{begin:i,end:o}}function wrappedLineExtentChar(e,t,r,n){r||(r=prepareMeasureForLine(e,t));var o=intoCoordSystem(e,t,measureCharPrepared(e,r,n),"line").top;return wrappedLineExtent(e,t,r,o)}function boxIsAfter(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function coordsCharInner(e,t,r,n,o){o-=heightAtLine(t);var i=prepareMeasureForLine(e,t),a=widgetTopHeight(t),s=0,l=t.text.length,c=!0,u=getOrder(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?coordsBidiPartWrapped:coordsBidiPart)(e,t,r,i,u,n,o);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var p,h,f=null,g=null,m=findFirst(function(t){var r=measureCharPrepared(e,i,t);return r.top+=a,r.bottom+=a,!!boxIsAfter(r,n,o,!1)&&(r.top<=o&&r.left<=n&&(f=t,g=r),!0)},s,l),v=!1;if(g){var y=n-g.left=b.bottom}return m=skipExtendingChars(t.text,m,1),PosWithInfo(r,m,h,v,n-p)}function coordsBidiPart(e,t,r,n,o,i,a){var s=findFirst(function(s){var l=o[s],c=1!=l.level;return boxIsAfter(cursorCoords(e,Pos(r,c?l.to:l.from,c?"before":"after"),"line",t,n),i,a,!0)},0,o.length-1),l=o[s];if(s>0){var c=1!=l.level,u=cursorCoords(e,Pos(r,c?l.from:l.to,c?"after":"before"),"line",t,n);boxIsAfter(u,i,a,!0)&&u.top>a&&(l=o[s-1])}return l}function coordsBidiPartWrapped(e,t,r,n,o,i,a){var s=wrappedLineExtent(e,t,n,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p=c||h.to<=l)){var f=1!=h.level,g=measureCharPrepared(e,n,f?Math.min(c,h.to)-1:Math.max(l,h.from)).right,m=gm)&&(u=h,d=m)}}return u||(u=o[o.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function textHeight(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==le){le=elt("pre");for(var t=0;t<49;++t)le.appendChild(document.createTextNode("x")),le.appendChild(elt("br"));le.appendChild(document.createTextNode("x"))}removeChildrenAndAdd(e.measure,le);var r=le.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),removeChildren(e.measure),r||1}function charWidth(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=elt("span","xxxxxxxxxx"),r=elt("pre",[t]);removeChildrenAndAdd(e.measure,r);var n=t.getBoundingClientRect(),o=(n.right-n.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function getDimensions(e){for(var t=e.display,r={},n={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a)r[e.options.gutters[a]]=i.offsetLeft+i.clientLeft+o,n[e.options.gutters[a]]=i.clientWidth;return{fixedPos:compensateForHScroll(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function compensateForHScroll(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function estimateHeight(e){var t=textHeight(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/charWidth(e.display)-3);return function(o){if(lineIsHidden(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n=e.display.viewTo||s.to().line0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function ensureFocus(e){e.state.focused||(e.display.input.focus(),onFocus(e))}function delayBlurEvent(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,onBlur(e))},100)}function onFocus(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(signal(e,"focus",e,t),e.state.focused=!0,addClass(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),restartBlink(e))}function onBlur(e,t){e.state.delayingBlurEvent||(e.state.focused&&(signal(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function updateHeightsInViewport(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n.005||p<-.005)&&(updateLineHeight(o.line,l),updateWidgetHeight(o.line),o.rest))for(var h=0;he.display.sizerWidth){var f=Math.ceil(c/charWidth(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}}function updateWidgetHeight(e){if(e.widgets)for(var t=0;t=a&&(i=lineAtHeight(t,heightAtLine(getLine(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function alignHorizontally(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=compensateForHScroll(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=n+"px",a=0;a(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!f){var i=elt("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-paddingTop(e.display))+"px;\n height: "+(t.bottom-t.top+scrollGap(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function scrollPosIntoView(e,t,r,n){var o;null==n&&(n=0),e.options.lineWrapping||t!=r||(t=t.ch?Pos(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,r="before"==t.sticky?Pos(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var a=!1,s=cursorCoords(e,t),l=r&&r!=t?cursorCoords(e,r):s;o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-n,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+n};var c=calculateScrollPos(e,o),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(updateScrollTop(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(setScrollLeft(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return o}function calculateScrollPos(e,t){var r=e.display,n=textHeight(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,i=displayHeight(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+paddingVert(r),l=t.tops-n;if(t.topo+i){var u=Math.min(t.top,(c?s:t.bottom)-i);u!=o&&(a.scrollTop=u)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,p=displayWidth(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function addToScrollTop(e,t){null!=t&&(resolveScrollToPos(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ensureCursorVisible(e){resolveScrollToPos(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function scrollToCoords(e,t,r){null==t&&null==r||resolveScrollToPos(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function scrollToRange(e,t){resolveScrollToPos(e),e.curOp.scrollToPos=t}function resolveScrollToPos(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=estimateCoords(e,t.from),n=estimateCoords(e,t.to);scrollToCoordsRange(e,r,n,t.margin)}}function scrollToCoordsRange(e,t,r,n){var o=calculateScrollPos(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});scrollToCoords(e,o.scrollLeft,o.scrollTop)}function updateScrollTop(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||updateDisplaySimple(e,{top:t}),setScrollTop(e,t,!0),r&&updateDisplaySimple(e),startWorker(e,100))}function setScrollTop(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function setScrollLeft(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,alignHorizontally(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function measureForScrollbars(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+paddingVert(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+scrollGap(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var ue=function(e,t,r){this.cm=r;var n=this.vert=elt("div",[elt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=elt("div",[elt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=o.tabIndex=-1,e(n),e(o),U(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),U(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ue.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var o=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},ue.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ue.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ue.prototype.zeroWidthHack=function(){var e=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new T,this.disableVert=new T},ue.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto",t.set(1e3,function maybeDisable(){var n=e.getBoundingClientRect(),o="vert"==r?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,maybeDisable)})},ue.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var de=function(){};function updateScrollbars(e,t){t||(t=measureForScrollbars(e));var r=e.display.barWidth,n=e.display.barHeight;updateScrollbarsInner(e,t);for(var o=0;o<4&&r!=e.display.barWidth||n!=e.display.barHeight;o++)r!=e.display.barWidth&&e.options.lineWrapping&&updateHeightsInViewport(e),updateScrollbarsInner(e,measureForScrollbars(e)),r=e.display.barWidth,n=e.display.barHeight}function updateScrollbarsInner(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}de.prototype.update=function(){return{bottom:0,right:0}},de.prototype.setScrollLeft=function(){},de.prototype.setScrollTop=function(){},de.prototype.clear=function(){};var pe={native:ue,null:de};function initScrollbars(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new pe[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),U(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?setScrollLeft(e,t):updateScrollTop(e,t)},e),e.display.scrollbars.addClass&&addClass(e.display.wrapper,e.display.scrollbars.addClass)}var he=0;function startOperation(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++he},t=e.curOp,ae?ae.ops.push(t):t.ownsGroup=ae={ops:[t],delayedCallbacks:[]}}function endOperation(e){var t=e.curOp;t&&finishOperation(t,function(e){for(var t=0;t=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new fe(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function endOperation_R2(e){var t=e.cm,r=t.display;e.updatedDisplay&&updateHeightsInViewport(t),e.barMeasure=measureForScrollbars(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=measureChar(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+scrollGap(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-displayWidth(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function endOperation_W2(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)F&&visualLineNo(e.doc,t)o.viewFrom?resetView(e):(o.viewFrom+=n,o.viewTo+=n);else if(t<=o.viewFrom&&r>=o.viewTo)resetView(e);else if(t<=o.viewFrom){var i=viewCuttingPoint(e,r,r+n,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=n):resetView(e)}else if(r>=o.viewTo){var a=viewCuttingPoint(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):resetView(e)}else{var s=viewCuttingPoint(e,t,t,-1),l=viewCuttingPoint(e,r,r+n,1);s&&l?(o.view=o.view.slice(0,s.index).concat(buildViewArray(e,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=n):resetView(e)}var c=o.externalMeasured;c&&(r=o.lineN&&t=n.viewTo)){var i=n.view[findViewIndex(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==indexOf(a,r)&&a.push(r)}}}function resetView(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function viewCuttingPoint(e,t,r,n){var o,i=findViewIndex(e,t),a=e.display.view;if(!F||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var s=e.display.viewFrom,l=0;l0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,r+=o}for(;visualLineNo(e.doc,r)!=r;){if(i==(n<0?0:a.length-1))return null;r+=n*a[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function adjustView(e,t,r){var n=e.display,o=n.view;0==o.length||t>=n.viewTo||r<=n.viewFrom?(n.view=buildViewArray(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=buildViewArray(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,findViewIndex(e,r)))),n.viewTo=r}function countDirtyView(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo)){var r=+new Date+e.options.workTime,n=getContextBefore(e,t.highlightFrontier),o=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(n.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?copyState(t.mode,n.state):null,l=highlightLine(e,i,n,!0);s&&(n.state=s),i.styles=l.styles;var c=i.styleClasses,u=l.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var d=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&pr)return startWorker(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),o.length&&runInOp(e,function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==countDirtyView(e))return!1;maybeUpdateLineNumberWidth(e)&&(resetView(e),t.dims=getDimensions(e));var o=n.first+n.size,i=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);r.viewFroma&&r.viewTo-a<20&&(a=Math.min(o,r.viewTo)),F&&(i=visualLineNo(e.doc,i),a=visualLineEndNo(e.doc,a));var s=i!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;adjustView(e,i,a),r.viewOffset=heightAtLine(getLine(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=countDirtyView(e);if(!s&&0==l&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=selectionSnapshot(e);return l>4&&(r.lineDiv.style.display="none"),patchDisplay(e,r.updateLineNumbers,t.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,restoreSelection(c),removeChildren(r.cursorDiv),removeChildren(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,startWorker(e,400)),r.updateLineNumbers=null,!0}function postUpdateDisplay(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=displayWidth(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+paddingVert(e.display)-displayHeight(e),r.top)}),t.visible=visibleLines(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&updateDisplayIfNeeded(e,t);n=!1){updateHeightsInViewport(e);var o=measureForScrollbars(e);updateSelection(e),updateScrollbars(e,o),setDocumentHeight(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function updateDisplaySimple(e,t){var r=new fe(e,t);if(updateDisplayIfNeeded(e,r)){updateHeightsInViewport(e),postUpdateDisplay(e,r);var n=measureForScrollbars(e);updateSelection(e),updateScrollbars(e,n),setDocumentHeight(e,n),r.finish()}}function patchDisplay(e,t,r){var n=e.display,o=e.options.lineNumbers,i=n.lineDiv,a=i.firstChild;function rm(t){var r=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var s=n.view,c=n.viewFrom,u=0;u-1&&(p=!1),updateLineForChanges(e,d,c,r)),p&&(removeChildren(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(lineNumberFor(e.options,c)))),a=d.node.nextSibling}else{var h=buildLineElement(e,d,c,r);i.insertBefore(h,a)}c+=d.size}for(;a;)a=rm(a)}function updateGutterSpace(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function setDocumentHeight(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+scrollGap(e)+"px"}function updateGutters(e){var t=e.display.gutters,r=e.options.gutters;removeChildren(t);for(var n=0;n-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}fe.prototype.signal=function(e,t){hasHandler(e,t)&&this.events.push(arguments)},fe.prototype.finish=function(){for(var e=0;es.clientWidth,u=s.scrollHeight>s.clientHeight;if(o&&c||i&&u){if(i&&y&&l)e:for(var p=t.target,h=a.view;p!=s;p=p.parentNode)for(var f=0;f=0&&cmp(e,n.to())<=0)return r}return-1};var ye=function(e,t){this.anchor=e,this.head=t};function normalizeSelection(e,t,r){var n=e&&e.options.selectionsMayTouch,o=t[r];t.sort(function(e,t){return cmp(e.from(),t.from())}),r=indexOf(t,o);for(var i=1;i0:l>=0){var c=minPos(s.from(),a.from()),u=maxPos(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;i<=r&&--r,t.splice(--i,2,new ye(d?u:c,d?c:u))}}return new ve(t,r)}function simpleSelection(e,t){return new ve([new ye(e,t||e)],0)}function changeEnd(e){return e.text?Pos(e.from.line+e.text.length-1,lst(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function adjustForChange(e,t){if(cmp(e,t.from)<0)return e;if(cmp(e,t.to)<=0)return changeEnd(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=changeEnd(t).ch-t.to.ch),Pos(r,n)}function computeSelAfterChange(e,t){for(var r=[],n=0;n1&&e.remove(o.line+1,d-1),e.insert(o.line+1,f)}signalLater(e,"change",e,t)}function linkedDocs(e,t,r){!function propagate(e,n,o){if(e.linked)for(var i=0;i1&&!e.done[e.done.length-2].ranges?(e.done.pop(),lst(e.done)):void 0}function addChangeToHistory(e,t,r,n){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==n||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=lastChangeEvent(o,o.lastOp==n)))a=lst(i.changes),0==cmp(t.from,t.to)&&0==cmp(t.from,a.to)?a.to=changeEnd(t):i.changes.push(historyChangeFromChange(e,t));else{var l=lst(o.done);for(l&&l.ranges||pushSelectionToHistory(e.sel,o.done),i={changes:[historyChangeFromChange(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(r),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=n,o.lastOrigin=o.lastSelOrigin=t.origin,a||signal(e,"historyAdded")}function selectionEventCanBeMerged(e,t,r,n){var o=t.charAt(0);return"*"==o||"+"==o&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function addSelectionToHistory(e,t,r,n){var o=e.history,i=n&&n.origin;r==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||selectionEventCanBeMerged(e,i,lst(o.done),t))?o.done[o.done.length-1]=t:pushSelectionToHistory(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=r,n&&!1!==n.clearRedo&&clearSelectionEvents(o.undone)}function pushSelectionToHistory(e,t){var r=lst(t);r&&r.ranges&&r.equals(e)||t.push(e)}function attachLocalSpans(e,t,r,n){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=r.markedSpans),++i})}function removeClearedSpans(e){if(!e)return null;for(var t,r=0;r-1&&(lst(s)[d]=c[d],delete c[d])}}}return n}function extendRange(e,t,r,n){if(n){var o=e.anchor;if(r){var i=cmp(t,o)<0;i!=cmp(r,o)<0?(o=t,t=r):i!=cmp(t,r)<0&&(t=r)}return new ye(o,t)}return new ye(r||t,t)}function extendSelection(e,t,r,n,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),setSelection(e,new ve([extendRange(e.sel.primary(),t,r,o)],0),n)}function extendSelections(e,t,r){for(var n=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(o&&(signal(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(r){var c=l.find(n<0?1:-1),u=void 0;if((n<0?l.inclusiveRight:l.inclusiveLeft)&&(c=movePos(e,c,-n,c&&c.line==t.line?i:null)),c&&c.line==t.line&&(u=cmp(c,r))&&(n<0?u<0:u>0))return skipAtomicInner(e,c,t,n,o)}var d=l.find(n<0?-1:1);return(n<0?l.inclusiveLeft:l.inclusiveRight)&&(d=movePos(e,d,n,d.line==t.line?i:null)),d?skipAtomicInner(e,d,t,n,o):null}}return t}function skipAtomic(e,t,r,n,o){var i=n||1,a=skipAtomicInner(e,t,r,i,o)||!o&&skipAtomicInner(e,t,r,i,!0)||skipAtomicInner(e,t,r,-i,o)||!o&&skipAtomicInner(e,t,r,-i,!0);return a||(e.cantEdit=!0,Pos(e.first,0))}function movePos(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?clipPos(e,Pos(t.line-1)):null:r>0&&t.ch==(n||getLine(e,t.line)).text.length?t.line=0;--o)makeChangeInner(e,{from:n[o].from,to:n[o].to,text:o?[""]:t.text,origin:t.origin});else makeChangeInner(e,t)}}function makeChangeInner(e,t){if(1!=t.text.length||""!=t.text[0]||0!=cmp(t.from,t.to)){var r=computeSelAfterChange(e,t);addChangeToHistory(e,t,r,e.cm?e.cm.curOp.id:NaN),makeChangeSingleDoc(e,t,r,stretchSpansOverChange(e,t));var n=[];linkedDocs(e,function(e,r){r||-1!=indexOf(n,e.history)||(rebaseHist(e.history,t),n.push(e.history)),makeChangeSingleDoc(e,t,null,stretchSpansOverChange(e,t))})}}function makeChangeFromHistory(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,c=0;c=0;--h){var f=p(h);if(f)return f.v}}}}function shiftDoc(e,t){if(0!=t&&(e.first+=t,e.sel=new ve(map(e.sel.ranges,function(e){return new ye(Pos(e.anchor.line+t,e.anchor.ch),Pos(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){regChange(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.linei&&(t={from:t.from,to:Pos(i,getLine(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=getBetween(e,t.from,t.to),r||(r=computeSelAfterChange(e,t)),e.cm?makeChangeSingleDocInEditor(e.cm,t,n):updateDoc(e,t,n),setSelectionNoUndo(e,r,A)}}function makeChangeSingleDocInEditor(e,t,r){var n=e.doc,o=e.display,i=t.from,a=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=lineNo(visualLine(getLine(n,i.line))),n.iter(l,a.line+1,function(e){if(e==o.maxLine)return s=!0,!0})),n.sel.contains(t.from,t.to)>-1&&signalCursorActivity(e),updateDoc(n,t,r,estimateHeight(e)),e.options.lineWrapping||(n.iter(l,i.line+t.text.length,function(e){var t=lineLength(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),retreatFrontier(n,i.line),startWorker(e,400);var c=t.text.length-(a.line-i.line)-1;t.full?regChange(e):i.line!=a.line||1!=t.text.length||isWholeLineUpdate(e.doc,t)?regChange(e,i.line,a.line+1,c):regLineChange(e,i.line,"text");var u=hasHandler(e,"changes"),d=hasHandler(e,"change");if(d||u){var p={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&signalLater(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function replaceRange(e,t,r,n,o){var i;n||(n=r),cmp(n,r)<0&&(r=(i=[n,r])[0],n=i[1]),"string"==typeof t&&(t=e.splitLines(t)),makeChange(e,{from:r,to:n,text:t,origin:o})}function rebaseHistSelSingle(e,t,r,n){r1||!(this.children[0]instanceof LeafChunk))){var s=[];this.collapse(s),this.children=[new LeafChunk(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=eltP("span",[i.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(conflictingCollapsedRange(e,t.line,t,r,i)||t.line!=r.line&&conflictingCollapsedRange(e,r.line,t,r,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");F=!0}i.addToHistory&&addChangeToHistory(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,r.line+1,function(e){c&&i.collapsed&&!c.options.lineWrapping&&visualLine(e)==c.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&updateLineHeight(e,0),addMarkedSpan(e,new MarkedSpan(i,l==t.line?t.ch:null,l==r.line?r.ch:null)),++l}),i.collapsed&&e.iter(t.line,r.line+1,function(t){lineIsHidden(e,t)&&updateLineHeight(t,0)}),i.clearOnEnter&&U(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(I=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++be,i.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),i.collapsed)regChange(c,t.line,r.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=r.line;u++)regLineChange(c,u,"text");i.atomic&&reCheckSelection(c.doc),signalLater(c,"markerAdded",c,i)}return i}xe.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&startOperation(e),hasHandler(this,"clear")){var r=this.find();r&&signalLater(this,"clear",r.from,r.to)}for(var n=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&®Change(e,n,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&reCheckSelection(e.doc)),e&&signalLater(e,"markerCleared",e,this,n,o),t&&endOperation(e),this.parent&&this.parent.clear()}},xe.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;l--)makeChange(this,n[l]);s?setSelectionReplaceHistory(this,s):this.cm&&ensureCursorVisible(this.cm)}),undo:docMethodOp(function(){makeChangeFromHistory(this,"undo")}),redo:docMethodOp(function(){makeChangeFromHistory(this,"redo")}),undoSelection:docMethodOp(function(){makeChangeFromHistory(this,"undo",!0)}),redoSelection:docMethodOp(function(){makeChangeFromHistory(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,r){e=clipPos(this,e),t=clipPos(this,t);var n=[],o=e.line;return this.iter(e.line,t.line+1,function(i){var a=i.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||r&&!r(l.marker)||n.push(l.marker.parent||l.marker)}++o}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=i,++r}),clipPos(this,Pos(r,t))},indexFromPos:function(e){var t=(e=clipPos(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var u=e.dataTransfer.getData("Text");if(u){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),setSelectionNoUndo(t.doc,simpleSelection(r,r)),d)for(var p=0;p=0;t--)replaceRange(e.doc,"",n[t].from,n[t].to,"+delete");ensureCursorVisible(e)})}function moveCharLogically(e,t,r){var n=skipExtendingChars(e.text,t+r,r);return n<0||n>e.text.length?null:n}function moveLogically(e,t,r){var n=moveCharLogically(e,t.ch,r);return null==n?null:new Pos(t.line,n,r<0?"after":"before")}function endOfLine(e,t,r,n,o){if(e){var i=getOrder(r,t.doc.direction);if(i){var a,s=o<0?lst(i):i[0],l=o<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=prepareMeasureForLine(t,r);a=o<0?r.text.length-1:0;var d=measureCharPrepared(t,u,a).top;a=findFirst(function(e){return measureCharPrepared(t,u,e).top==d},o<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=moveCharLogically(r,a,1))}else a=o<0?s.to:s.from;return new Pos(n,a,c)}}return new Pos(n,o<0?r.text.length:0,o<0?"before":"after")}function moveVisually(e,t,r,n){var o=getOrder(t,e.doc.direction);if(!o)return moveLogically(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var i=getBidiPartAt(o,r.ch,r.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(n>0?a.to>r.ch:a.from=a.from&&p>=u.begin)){var h=d?"before":"after";return new Pos(r.line,p,h)}}var f=function(e,t,n){for(var i=function(e,t){return t?new Pos(r.line,l(e,1),"before"):new Pos(r.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?n.begin:l(n.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==m||n>0&&m==t.text.length||!(g=f(n>0?0:o.length-1,n,c(m)))?null:g}De.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},De.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},De.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},De.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},De.default=y?De.macDefault:De.pcDefault;var Ne={selectAll:selectAll,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),A)},killLine:function(e){return deleteNearSelection(e,function(t){if(t.empty()){var r=getLine(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)o=new Pos(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),Pos(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=getLine(e.doc,o.line-1).text;a&&(o=new Pos(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),Pos(o.line-1,a.length-1),o,"+transpose"))}r.push(new ye(o,o))}e.setSelections(r)})},newlineAndIndent:function(e){return runInOp(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(cmp((o=s.ranges[o]).from(),t)<0||t.xRel>0)&&(cmp(o.to(),t)>0||t.xRel<0)?leftButtonStartDrag(e,n,t,i):leftButtonSelect(e,n,t,i)}function leftButtonStartDrag(e,t,r,n){var o=e.display,i=!1,c=operation(e,function(t){l&&(o.scroller.draggable=!1),e.state.draggingText=!1,off(o.wrapper.ownerDocument,"mouseup",c),off(o.wrapper.ownerDocument,"mousemove",u),off(o.scroller,"dragstart",d),off(o.scroller,"drop",c),i||(e_preventDefault(t),n.addNew||extendSelection(e.doc,r,null,null,n.extend),l||a&&9==s?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()},20):o.input.focus())}),u=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return i=!0};l&&(o.scroller.draggable=!0),e.state.draggingText=c,c.copy=!n.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),U(o.wrapper.ownerDocument,"mouseup",c),U(o.wrapper.ownerDocument,"mousemove",u),U(o.scroller,"dragstart",d),U(o.scroller,"drop",c),delayBlurEvent(e),setTimeout(function(){return o.input.focus()},20)}function rangeForUnit(e,t,r){if("char"==r)return new ye(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new ye(Pos(t.line,0),clipPos(e.doc,Pos(t.line+1,0)));var n=r(e,t);return new ye(n.from,n.to)}function leftButtonSelect(e,t,r,n){var o=e.display,i=e.doc;e_preventDefault(t);var a,s,l=i.sel,c=l.ranges;if(n.addNew&&!n.extend?(s=i.sel.contains(r),a=s>-1?c[s]:new ye(r,r)):(a=i.sel.primary(),s=i.sel.primIndex),"rectangle"==n.unit)n.addNew||(a=new ye(r,r)),r=posFromMouse(e,t,!0,!0),s=-1;else{var u=rangeForUnit(e,r,n.unit);a=n.extend?extendRange(a,u.anchor,u.head,n.extend):u}n.addNew?-1==s?(s=c.length,setSelection(i,normalizeSelection(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==n.unit&&!n.extend?(setSelection(i,normalizeSelection(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=i.sel):replaceOneSelection(i,s,a,D):(s=0,setSelection(i,new ve([a],0),D),l=i.sel);var d=r;function extendTo(t){if(0!=cmp(d,t))if(d=t,"rectangle"==n.unit){for(var o=[],c=e.options.tabSize,u=countColumn(getLine(i,r.line).text,r.ch,c),p=countColumn(getLine(i,t.line).text,t.ch,c),h=Math.min(u,p),f=Math.max(u,p),g=Math.min(r.line,t.line),m=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=m;g++){var v=getLine(i,g).text,y=findColumn(v,h,c);h==f?o.push(new ye(Pos(g,y),Pos(g,y))):v.length>y&&o.push(new ye(Pos(g,y),Pos(g,findColumn(v,f,c))))}o.length||o.push(new ye(r,r)),setSelection(i,normalizeSelection(e,l.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var C,b=a,x=rangeForUnit(e,t,n.unit),w=b.anchor;cmp(x.anchor,w)>0?(C=x.head,w=minPos(b.from(),x.anchor)):(C=x.anchor,w=maxPos(b.to(),x.head));var k=l.ranges.slice(0);k[s]=bidiSimplify(e,new ye(clipPos(i,w),C)),setSelection(i,normalizeSelection(e,k,s),D)}}var p=o.wrapper.getBoundingClientRect(),h=0;function extend(t){var r=++h,a=posFromMouse(e,t,!0,"rectangle"==n.unit);if(a)if(0!=cmp(a,d)){e.curOp.focus=activeElt(),extendTo(a);var s=visibleLines(o,i);(a.line>=s.to||a.linep.bottom?20:0;l&&setTimeout(operation(e,function(){h==r&&(o.scroller.scrollTop+=l,extend(t))}),50)}}function done(t){e.state.selectingText=!1,h=1/0,e_preventDefault(t),o.input.focus(),off(o.wrapper.ownerDocument,"mousemove",f),off(o.wrapper.ownerDocument,"mouseup",g),i.history.lastSelOrigin=null}var f=operation(e,function(e){0!==e.buttons&&e_button(e)?extend(e):done(e)}),g=operation(e,done);e.state.selectingText=g,U(o.wrapper.ownerDocument,"mousemove",f),U(o.wrapper.ownerDocument,"mouseup",g)}function bidiSimplify(e,t){var r=t.anchor,n=t.head,o=getLine(e.doc,r.line);if(0==cmp(r,n)&&r.sticky==n.sticky)return t;var i=getOrder(o);if(!i)return t;var a=getBidiPartAt(i,r.ch,r.sticky),s=i[a];if(s.from!=r.ch&&s.to!=r.ch)return t;var l,c=a+(s.from==r.ch==(1!=s.level)?0:1);if(0==c||c==i.length)return t;if(n.line!=r.line)l=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=getBidiPartAt(i,n.ch,n.sticky),d=u-a||(n.ch-r.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=i[c+(l?-1:0)],h=l==(1==p.level),f=h?p.from:p.to,g=h?"after":"before";return r.ch==f&&r.sticky==g?t:new ye(new Pos(r.line,f,g),n)}function gutterEvent(e,t,r,n){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&e_preventDefault(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!hasHandler(e,r))return e_defaultPrevented(t);i-=s.top-a.viewOffset;for(var l=0;l=o){var u=lineAtHeight(e.doc,i),d=e.options.gutters[l];return signal(e,r,e,u,d,t),e_defaultPrevented(t)}}}function clickInGutter(e,t){return gutterEvent(e,t,"gutterClick",!0)}function onContextMenu(e,t){eventInWidget(e.display,t)||contextMenuInGutter(e,t)||signalDOMEvent(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function contextMenuInGutter(e,t){return!!hasHandler(e,"gutterContextMenu")&&gutterEvent(e,t,"gutterContextMenu",!1)}function themeChanged(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),clearCaches(e)}Fe.prototype.compare=function(e,t,r){return this.time+400>e&&0==cmp(t,this.pos)&&r==this.button};var Be={toString:function(){return"CodeMirror.Init"}},Re={},ze={};function guttersChanged(e){updateGutters(e),regChange(e),alignHorizontally(e)}function dragDropChanged(e,t,r){var n=r&&r!=Be;if(!t!=!n){var o=e.display.dragFunctions,i=t?U:off;i(e.display.scroller,"dragstart",o.start),i(e.display.scroller,"dragenter",o.enter),i(e.display.scroller,"dragover",o.over),i(e.display.scroller,"dragleave",o.leave),i(e.display.scroller,"drop",o.drop)}}function wrappingChanged(e){e.options.lineWrapping?(addClass(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),findMaxLine(e)),estimateLineHeights(e),regChange(e),clearCaches(e),setTimeout(function(){return updateScrollbars(e)},100)}function CodeMirror(e,t){var r=this;if(!(this instanceof CodeMirror))return new CodeMirror(e,t);this.options=t=t?copyObj(t):{},copyObj(Re,t,!1),setGuttersForLineNumbers(t);var n=t.value;"string"==typeof n?n=new Se(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var o=new CodeMirror.inputStyles[t.inputStyle](this),i=this.display=new Display(e,n,o);for(var c in i.wrapper.CodeMirror=this,updateGutters(this),themeChanged(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),initScrollbars(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new T,keySeq:null,specialChars:null},t.autofocus&&!v&&i.input.focus(),a&&s<11&&setTimeout(function(){return r.display.input.reset(!0)},20),registerEventHandlers(this),Le||(registerGlobalHandlers(),Le=!0),startOperation(this),this.curOp.forceUpdate=!0,attachDoc(this,n),t.autofocus&&!v||this.hasFocus()?setTimeout(bind(onFocus,this),20):onBlur(this),ze)ze.hasOwnProperty(c)&&ze[c](r,t[c],Be);maybeUpdateLineNumberWidth(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}U(t.scroller,"touchstart",function(o){if(!signalDOMEvent(e,o)&&!isMouseLikeTouchEvent(o)&&!clickInGutter(e,o)){t.input.ensurePolled(),clearTimeout(r);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-n.end<=300?n:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}}),U(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),U(t.scroller,"touchend",function(r){var n=t.activeTouch;if(n&&!eventInWidget(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var o,i=e.coordsChar(t.activeTouch,"page");o=!n.prev||farAway(n,n.prev)?new ye(i,i):!n.prev.prev||farAway(n,n.prev.prev)?e.findWordAt(i):new ye(Pos(i.line,0),clipPos(e.doc,Pos(i.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),e_preventDefault(r)}finishTouch()}),U(t.scroller,"touchcancel",finishTouch),U(t.scroller,"scroll",function(){t.scroller.clientHeight&&(updateScrollTop(e,t.scroller.scrollTop),setScrollLeft(e,t.scroller.scrollLeft,!0),signal(e,"scroll",e))}),U(t.scroller,"mousewheel",function(t){return onScrollWheel(e,t)}),U(t.scroller,"DOMMouseScroll",function(t){return onScrollWheel(e,t)}),U(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){signalDOMEvent(e,t)||e_stop(t)},over:function(t){signalDOMEvent(e,t)||(onDragOver(e,t),e_stop(t))},start:function(t){return onDragStart(e,t)},drop:operation(e,onDrop),leave:function(t){signalDOMEvent(e,t)||clearDragCursor(e)}};var o=t.input.getField();U(o,"keyup",function(t){return onKeyUp.call(e,t)}),U(o,"keydown",operation(e,onKeyDown)),U(o,"keypress",operation(e,onKeyPress)),U(o,"focus",function(t){return onFocus(e,t)}),U(o,"blur",function(t){return onBlur(e,t)})}CodeMirror.defaults=Re,CodeMirror.optionHandlers=ze;var Ue=[];function indentLine(e,t,r,n){var o,i=e.doc;null==r&&(r="add"),"smart"==r&&(i.mode.indent?o=getContextBefore(e,t).state:r="prev");var a=e.options.tabSize,s=getLine(i,t),l=countColumn(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((c=i.mode.indent(o,s.text.slice(u.length),s.text))==P||c>150)){if(!n)return;r="prev"}}else c=0,r="not";"prev"==r?c=t>i.first?countColumn(getLine(i,t-1).text,null,a):0:"add"==r?c=l+e.options.indentUnit:"subtract"==r?c=l-e.options.indentUnit:"number"==typeof r&&(c=l+r),c=Math.max(0,c);var d="",p=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)p+=a,d+="\t";if(p1)if(Ve&&Ve.text.join("\n")==t){if(n.ranges.length%Ve.text.length==0){l=[];for(var c=0;c=0;d--){var p=n.ranges[d],h=p.from(),f=p.to();p.empty()&&(r&&r>0?h=Pos(h.line,h.ch-r):e.state.overwrite&&!a?f=Pos(f.line,Math.min(getLine(i,f.line).text.length,f.ch+lst(s).length)):a&&Ve&&Ve.lineWise&&Ve.text.join("\n")==t&&(h=f=Pos(h.line,0)));var g={from:h,to:f,text:l?l[d%l.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};makeChange(e.doc,g),signalLater(e,"inputRead",e,g)}t&&!a&&triggerElectric(e,t),ensureCursorVisible(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function handlePaste(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||runInOp(t,function(){return applyTextInput(t,r,0,null,"paste")}),!0}function triggerElectric(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var o=r.ranges[n];if(!(o.head.ch>100||n&&r.ranges[n-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=indentLine(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(getLine(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=indentLine(e,o.head.line,"smart"));a&&signalLater(e,"electricInput",e,o.head.line)}}}function copyableRanges(e){for(var t=[],r=[],n=0;n=e.first+e.size||(t=new Pos(a,t.ch,t.sticky),!(s=getLine(e,a)))))return!1;t=endOfLine(o,e.cm,s,t.line,r)}else t=i;return!0}if("char"==n)moveOnce();else if("column"==n)moveOnce(!0);else if("word"==n||"group"==n)for(var l=null,c="group"==n,u=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(r<0)||moveOnce(!d);d=!1){var p=s.text.charAt(t.ch)||"\n",h=isWordChar(p,u)?"w":c&&"\n"==p?"n":!c||/\s/.test(p)?null:"p";if(!c||d||h||(h="s"),l&&l!=h){r<0&&(r=1,moveOnce(),t.sticky="after");break}if(h&&(l=h),r>0&&!moveOnce(!d))break}var f=skipAtomic(e,t,i,a,!0);return equalCursorPos(i,f)&&(f.hitSide=!0),f}function findPosV(e,t,r,n){var o,i,a=e.doc,s=t.left;if("page"==n){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*textHeight(e.display),3);o=(r>0?t.bottom:t.top)+r*c}else"line"==n&&(o=r>0?t.bottom+3:t.top-3);for(;(i=coordsChar(e,s,o)).outside;){if(r<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*r}return i}var Ge=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new T,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function posToDOM(e,t){var r=findViewForLine(e,t.line);if(!r||r.hidden)return null;var n=getLine(e.doc,t.line),o=mapFromLineView(r,n,t.line),i=getOrder(n,e.doc.direction),a="left";if(i){var s=getBidiPartAt(i,t.ch);a=s%2?"right":"left"}var l=nodeAndOffsetInLineMap(o.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function isInGutter(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function badPos(e,t){return t&&(e.bad=!0),e}function domTextBetween(e,t,r,n,o){var i="",a=!1,s=e.doc.lineSeparator(),l=!1;function close(){a&&(i+=s,l&&(i+=s),a=l=!1)}function addText(e){e&&(close(),i+=e)}function walk(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void addText(r);var i,c=t.getAttribute("cm-marker");if(c){var u=e.findMarks(Pos(n,0),Pos(o+1,0),(h=+c,function(e){return e.id==h}));return void(u.length&&(i=u[0].find(0))&&addText(getBetween(e.doc,i.from,i.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var d=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;d&&close();for(var p=0;p=t.display.viewTo||i.line=t.display.viewFrom&&posToDOM(t,o)||{node:l[0].measure.map[2],offset:0},u=i.linen.firstLine()&&(a=Pos(a.line-1,getLine(n.doc,a.line-1).length)),s.ch==getLine(n.doc,s.line).text.length&&s.lineo.viewTo-1)return!1;a.line==o.viewFrom||0==(e=findViewIndex(n,a.line))?(t=lineNo(o.view[0].line),r=o.view[0].node):(t=lineNo(o.view[e].line),r=o.view[e-1].node.nextSibling);var l,c,u=findViewIndex(n,s.line);if(u==o.view.length-1?(l=o.viewTo-1,c=o.lineDiv.lastChild):(l=lineNo(o.view[u+1].line)-1,c=o.view[u+1].node.previousSibling),!r)return!1;for(var d=n.doc.splitLines(domTextBetween(n,r,c,t,l)),p=getBetween(n.doc,Pos(t,0),Pos(l,getLine(n.doc,l).text.length));d.length>1&&p.length>1;)if(lst(d)==lst(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var h=0,f=0,g=d[0],m=p[0],v=Math.min(g.length,m.length);ha.ch&&y.charCodeAt(y.length-f-1)==C.charCodeAt(C.length-f-1);)h--,f++;d[d.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var x=Pos(t,h),w=Pos(l,p.length?lst(p).length-f:0);return d.length>1||d[0]||cmp(x,w)?(replaceRange(n.doc,d,x,w,"+input"),!0):void 0},Ge.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ge.prototype.reset=function(){this.forceCompositionEnd()},Ge.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ge.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ge.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||runInOp(this.cm,function(){return regChange(e.cm)})},Ge.prototype.setUneditable=function(e){e.contentEditable="false"},Ge.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||operation(this.cm,applyTextInput)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ge.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ge.prototype.onContextMenu=function(){},Ge.prototype.resetPosition=function(){},Ge.prototype.needsContentAttribute=!0;var Ke=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new T,this.hasSelection=!1,this.composing=null};Ke.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var o=this.textarea;function prepareCopyCut(e){if(!signalDOMEvent(n,e)){if(n.somethingSelected())setLastCopied({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=copyableRanges(n);setLastCopied({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,A):(r.prevInput="",o.value=t.text.join("\n"),L(o))}"cut"==e.type&&(n.state.cutIncoming=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),U(o,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),U(o,"paste",function(e){signalDOMEvent(n,e)||handlePaste(e,n)||(n.state.pasteIncoming=!0,r.fastPoll())}),U(o,"cut",prepareCopyCut),U(o,"copy",prepareCopyCut),U(e.scroller,"paste",function(t){eventInWidget(e,t)||signalDOMEvent(n,t)||(n.state.pasteIncoming=!0,r.focus())}),U(e.lineSpace,"selectstart",function(t){eventInWidget(e,t)||e_preventDefault(t)}),U(o,"compositionstart",function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}}),U(o,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Ke.prototype.createField=function(e){this.wrapper=hiddenTextarea(),this.textarea=this.wrapper.firstChild},Ke.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=prepareSelection(e);if(e.options.moveInputWithCursor){var o=cursorCoords(e,r.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return n},Ke.prototype.showSelection=function(e){var t=this.cm,r=t.display;removeChildrenAndAdd(r.cursorDiv,e.cursors),removeChildrenAndAdd(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ke.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ke.prototype.getField=function(){return this.textarea},Ke.prototype.supportsTouch=function(){return!1},Ke.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||activeElt()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ke.prototype.blur=function(){this.textarea.blur()},Ke.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ke.prototype.receivedFocus=function(){this.slowPoll()},Ke.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ke.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function p(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,p))})},Ke.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||j(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=r.value;if(o==n&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===o||y&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||n||(n="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(n.length,o.length);l1e3||o.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ke.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ke.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ke.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=posFromMouse(r,e),c=n.scroller.scrollTop;if(i&&!d){var u=r.options.resetSelectionOnContextMenu;u&&-1==r.doc.sel.contains(i)&&operation(r,setSelection)(r.doc,simpleSelection(i),A);var p,h=o.style.cssText,f=t.wrapper.style.cssText,g=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-g.top-5)+"px; left: "+(e.clientX-g.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(p=window.scrollY),n.input.focus(),l&&window.scrollTo(null,p),n.input.reset(),r.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=rehide,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),a&&s>=9&&prepareSelectAllHack(),k){e_stop(e);var m=function(){off(window,"mouseup",m),setTimeout(rehide,20)};U(window,"mouseup",m)}else setTimeout(rehide,50)}function prepareSelectAllHack(){if(null!=o.selectionStart){var e=r.somethingSelected(),i="​"+(e?o.value:"");o.value="⇚",o.value=i,t.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=i.length,n.selForContextMenu=r.doc.sel}}function rehide(){if(t.contextMenuPending==rehide&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,o.style.cssText=h,a&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&s<9)&&prepareSelectAllHack();var e=0,i=function(){n.selForContextMenu==r.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==t.prevInput?operation(r,selectAll)(r):e++<10?n.detectingSelectAll=setTimeout(i,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(i,200)}}},Ke.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ke.prototype.setUneditable=function(){},Ke.prototype.needsContentAttribute=!1,function defineOptions(e){var t=e.optionHandlers;function option(r,n,o,i){e.defaults[r]=n,o&&(t[r]=i?function(e,t,r){r!=Be&&o(e,t,r)}:o)}e.defineOption=option,e.Init=Be,option("value","",function(e,t){return e.setValue(t)},!0),option("mode",null,function(e,t){e.doc.modeOption=t,loadMode(e)},!0),option("indentUnit",2,loadMode,!0),option("indentWithTabs",!1),option("smartIndent",!0),option("tabSize",4,function(e){resetModeState(e),clearCaches(e),regChange(e)},!0),option("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,r.push(Pos(n,i))}n++});for(var o=r.length-1;o>=0;o--)replaceRange(e.doc,t,r[o],Pos(r[o].line,r[o].ch+t.length))}}),option("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Be&&e.refresh()}),option("specialCharPlaceholder",defaultSpecialCharPlaceholder,function(e){return e.refresh()},!0),option("electricChars",!0),option("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),option("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),option("rtlMoveVisually",!b),option("wholeLineUpdateBefore",!0),option("theme","default",function(e){themeChanged(e),guttersChanged(e)},!0),option("keyMap","default",function(e,t,r){var n=getKeyMap(t),o=r!=Be&&getKeyMap(r);o&&o.detach&&o.detach(e,n),n.attach&&n.attach(e,o||null)}),option("extraKeys",null),option("configureMouse",null),option("lineWrapping",!1,wrappingChanged,!0),option("gutters",[],function(e){setGuttersForLineNumbers(e.options),guttersChanged(e)},!0),option("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?compensateForHScroll(e.display)+"px":"0",e.refresh()},!0),option("coverGutterNextToScrollbar",!1,function(e){return updateScrollbars(e)},!0),option("scrollbarStyle","native",function(e){initScrollbars(e),updateScrollbars(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),option("lineNumbers",!1,function(e){setGuttersForLineNumbers(e.options),guttersChanged(e)},!0),option("firstLineNumber",1,guttersChanged,!0),option("lineNumberFormatter",function(e){return e},guttersChanged,!0),option("showCursorWhenSelecting",!1,updateSelection,!0),option("resetSelectionOnContextMenu",!0),option("lineWiseCopyCut",!0),option("pasteLinesPerSelection",!0),option("selectionsMayTouch",!1),option("readOnly",!1,function(e,t){"nocursor"==t&&(onBlur(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),option("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),option("dragDrop",!0,dragDropChanged),option("allowDropFileTypes",null),option("cursorBlinkRate",530),option("cursorScrollMargin",0),option("cursorHeight",1,updateSelection,!0),option("singleCursorHeightPerLine",!0,updateSelection,!0),option("workTime",100),option("workDelay",100),option("flattenSpans",!0,resetModeState,!0),option("addModeClass",!1,resetModeState,!0),option("pollInterval",100),option("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),option("historyEventDelay",1250),option("viewportMargin",10,function(e){return e.refresh()},!0),option("maxHighlightLength",1e4,resetModeState,!0),option("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),option("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),option("autofocus",null),option("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),option("phrases",null)}(CodeMirror),function addEditorMethods(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,o=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&operation(this,t[e])(this,r,o),signal(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](getKeyMap(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;rr&&(indentLine(this,o.head.line,e,!0),r=o.head.line,n==this.doc.sel.primIndex&&ensureCursorVisible(this));else{var i=o.from(),a=o.to(),s=Math.max(r,i.line);r=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&replaceOneSelection(this.doc,n,new ye(i,c[n].to()),A)}}}),getTokenAt:function(e,t){return takeToken(this,e,t)},getLineTokens:function(e,t){return takeToken(this,Pos(e),t,!0)},getTokenTypeAt:function(e){e=clipPos(this.doc,e);var t,r=getLineStyles(this,getLine(this.doc,e.line)),n=0,o=(r.length-1)/2,i=e.ch;if(0==i)t=r[2];else for(;;){var a=n+o>>1;if((a?r[2*a-1]:0)>=i)o=a;else{if(!(r[2*a+1]i&&(e=i,o=!0),n=getLine(this.doc,e)}else n=e;return intoCoordSystem(this,n,{top:0,left:0},t||"page",r||o).top+(o?this.doc.height-heightAtLine(n):0)},defaultTextHeight:function(){return textHeight(this.display)},defaultCharWidth:function(){return charWidth(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,o){var i,a,s,l=this.display,c=(e=cursorCoords(this,clipPos(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==n)c=e.top;else if("above"==n||"near"==n){var d=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(c=e.bottom),u+t.offsetWidth>p&&(u=p-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==o?(u=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?u=0:"middle"==o&&(u=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),r&&(i=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=calculateScrollPos(i,a)).scrollTop&&updateScrollTop(i,s.scrollTop),null!=s.scrollLeft&&setScrollLeft(i,s.scrollLeft))},triggerOnKeyDown:methodOp(onKeyDown),triggerOnKeyPress:methodOp(onKeyPress),triggerOnKeyUp:onKeyUp,triggerOnMouseDown:methodOp(onMouseDown),execCommand:function(e){if(Ne.hasOwnProperty(e))return Ne[e].call(null,this)},triggerElectric:methodOp(function(e){triggerElectric(this,e)}),findPosH:function(e,t,r,n){var o=1;t<0&&(o=-1,t=-t);for(var i=clipPos(this.doc,e),a=0;a0&&s(r.charAt(n-1));)--n;for(;o.5)&&estimateLineHeights(this),signal(this,"refresh",this)}),swapDoc:methodOp(function(e){var t=this.doc;return t.cm=null,attachDoc(this,e),clearCaches(this),this.display.input.reset(),scrollToCoords(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,signalLater(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},eventMixin(e),e.registerHelper=function(t,n,o){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=o},e.registerGlobalHelper=function(t,n,o,i){e.registerHelper(t,n,i),r[t]._global.push({pred:o,val:i})}}(CodeMirror);var _e="iter insert remove copy getEditor constructor".split(" ");for(var qe in Se.prototype)Se.prototype.hasOwnProperty(qe)&&indexOf(_e,qe)<0&&(CodeMirror.prototype[qe]=function(e){return function(){return e.apply(this.doc,arguments)}}(Se.prototype[qe]));return eventMixin(Se),CodeMirror.inputStyles={textarea:Ke,contenteditable:Ge},CodeMirror.defineMode=function(e){CodeMirror.defaults.mode||"null"==e||(CodeMirror.defaults.mode=e),defineMode.apply(this,arguments)},CodeMirror.defineMIME=function defineMIME(e,t){J[e]=t},CodeMirror.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),CodeMirror.defineMIME("text/plain","null"),CodeMirror.defineExtension=function(e,t){CodeMirror.prototype[e]=t},CodeMirror.defineDocExtension=function(e,t){Se.prototype[e]=t},CodeMirror.fromTextArea=function fromTextArea(e,t){if((t=t?copyObj(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=activeElt();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function save(){e.value=a.getValue()}var n;if(e.form&&(U(e.form,"submit",save),!t.leaveSubmitMethodAlone)){var o=e.form;n=o.submit;try{var i=o.submit=function(){save(),o.submit=n,o.submit(),o.submit=i}}catch(e){}}t.finishInit=function(t){t.save=save,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,save(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(off(e.form,"submit",save),"function"==typeof e.form.submit&&(e.form.submit=n))}},e.style.display="none";var a=CodeMirror(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},function addLegacyProps(e){e.off=off,e.on=U,e.wheelEventPixels=wheelEventPixels,e.Doc=Se,e.splitLines=q,e.countColumn=countColumn,e.findColumn=findColumn,e.isWordChar=isWordCharBasic,e.Pass=P,e.signal=signal,e.Line=ne,e.changeEnd=changeEnd,e.scrollbarModel=pe,e.Pos=Pos,e.cmpPos=cmp,e.modes=Z,e.mimeModes=J,e.resolveMode=resolveMode,e.getMode=getMode,e.modeExtensions=Q,e.extendMode=extendMode,e.copyState=copyState,e.startState=startState,e.innerMode=innerMode,e.commands=Ne,e.keyMap=De,e.keyName=keyName,e.isModifierKey=isModifierKey,e.lookupKey=lookupKey,e.normalizeKeyMap=normalizeKeyMap,e.StringStream=$,e.SharedTextMarker=we,e.TextMarker=xe,e.LineWidget=Ce,e.e_preventDefault=e_preventDefault,e.e_stopPropagation=e_stopPropagation,e.e_stop=e_stop,e.addClass=addClass,e.contains=contains,e.rmClass=M,e.keyNames=Te}(CodeMirror),CodeMirror.version="5.42.2",CodeMirror}()},571:function(e,t,r){"use strict";(function(e){var n,o=Object.assign||function(e){for(var t=1;t]*>\s*$/,!1)){for(;l.prev&&!l.startOfLine;)l=l.prev;l.startOfLine?s-=t.indentUnit:a.prev.state.lexical&&(s=a.prev.state.lexical.indented)}else 1==a.depth&&(s+=t.indentUnit);return i.context=new Context(e.startState(o,s),o,0,i.context),null}if(1==a.depth){if("<"==r.peek())return n.skipAttribute(a.state),i.context=new Context(e.startState(n,flatXMLIndent(a.state)),n,0,i.context),null;if(r.match("//"))return r.skipToEnd(),"comment";if(r.match("/*"))return a.depth=2,token(r,i)}var c,u=n.token(r,a.state),d=r.current();return/\btag\b/.test(u)?/>$/.test(d)?a.state.context?a.depth=0:i.context=i.context.prev:/^-1&&r.backUp(d.length-c),u}function jsToken(t,r,i){if("<"==t.peek()&&o.expressionAllowed(t,i.state))return o.skipExpression(i.state),r.context=new Context(e.startState(n,o.indent(i.state,"")),n,0,r.context),null;var a=o.token(t,i.state);if(!a&&null!=i.depth){var s=t.current();"{"==s?i.depth++:"}"==s&&0==--i.depth&&(r.context=r.context.prev)}return a}return{startState:function(){return{context:new Context(e.startState(o),o)}},copyState:function(e){return{context:copyContext(e.context)}},token:token,indent:function(e,t,r){return e.context.mode.indent(e.context.state,t,r)},innerMode:function(e){return e.context}}},"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(r(570),r(573),r(574))},573:function(e,t,r){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(n,o){var i,a,s=n.indentUnit,l={},c=o.htmlMode?t:r;for(var u in c)l[u]=c[u];for(var u in o)l[u]=o[u];function inText(e,t){function chain(r){return t.tokenize=r,r(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?chain(inBlock("atom","]]>")):null:e.match("--")?chain(inBlock("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),chain(doctype(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=inBlock("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=inTag,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function inTag(e,t){var r,n,o=e.next();if(">"==o||"/"==o&&e.eat(">"))return t.tokenize=inText,i=">"==o?"endTag":"selfcloseTag","tag bracket";if("="==o)return i="equals",null;if("<"==o){t.tokenize=inText,t.state=baseState,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(o)?(t.tokenize=(r=o,(n=function(e,t){for(;!e.eol();)if(e.next()==r){t.tokenize=inTag;break}return"string"}).isInAttribute=!0,n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function inBlock(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=inText;break}r.next()}return e}}function doctype(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=doctype(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=inText;break}return r.tokenize=doctype(e-1),r.tokenize(t,r)}}return"meta"}}function Context(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function popContext(e){e.context&&(e.context=e.context.prev)}function maybePopContext(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(t))return;popContext(e)}}function baseState(e,t,r){return"openTag"==e?(r.tagStart=t.column(),tagNameState):"closeTag"==e?closeTagNameState:baseState}function tagNameState(e,t,r){return"word"==e?(r.tagName=t.current(),a="tag",attrState):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",attrState(e,0,r)):(a="error",tagNameState)}function closeTagNameState(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&popContext(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(a="tag",closeState):(a="tag error",closeStateErr)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",closeState(e,0,r)):(a="error",closeStateErr)}function closeState(e,t,r){return"endTag"!=e?(a="error",closeState):(popContext(r),baseState)}function closeStateErr(e,t,r){return a="error",closeState(e,0,r)}function attrState(e,t,r){if("word"==e)return a="attribute",attrEqState;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,o=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(n)?maybePopContext(r,n):(maybePopContext(r,n),r.context=new Context(r,n,o==r.indented)),baseState}return a="error",attrState}function attrEqState(e,t,r){return"equals"==e?attrValueState:(l.allowMissing||(a="error"),attrState(e,0,r))}function attrValueState(e,t,r){return"string"==e?attrContinuedState:"word"==e&&l.allowUnquoted?(a="string",attrState):(a="error",attrState(e,0,r))}function attrContinuedState(e,t,r){return"string"==e?attrContinuedState:attrState(e,0,r)}return inText.isInText=!0,{startState:function(e){var t={tokenize:inText,state:baseState,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var r=t.tokenize(e,t);return(r||i)&&"comment"!=r&&(a=null,t.state=t.state(i||r,e,t),a&&(r="error"==a?r+" error":a)),r},indent:function(t,r,n){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=inTag&&t.tokenize!=inText)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==attrValueState&&(e.state=attrState)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(r(570))},574:function(e,t,r){!function(e){"use strict";e.defineMode("javascript",function(t,r){var n,o,i=t.indentUnit,a=r.statementIndent,s=r.jsonld,l=r.json||s,c=r.typescript,u=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function kw(e){return{type:e,style:"keyword"}}var e=kw("keyword a"),t=kw("keyword b"),r=kw("keyword c"),n=kw("keyword d"),o=kw("operator"),i={type:"atom",style:"atom"};return{if:kw("if"),while:e,with:e,else:t,do:t,try:t,finally:t,return:n,break:n,continue:n,new:kw("new"),delete:r,void:r,throw:r,debugger:kw("debugger"),var:kw("var"),const:kw("var"),let:kw("var"),function:kw("function"),catch:kw("catch"),for:kw("for"),switch:kw("switch"),case:kw("case"),default:kw("default"),in:o,typeof:o,instanceof:o,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:kw("this"),class:kw("class"),super:kw("atom"),yield:r,export:kw("export"),import:kw("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function readRegexp(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function ret(e,t,r){return n=e,o=r,t}function tokenBase(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,o=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=tokenBase,ret("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||o);)o=!o&&"\\"==n;return o||(t.tokenize=tokenBase),ret("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return ret("number","number");if("."==n&&e.match(".."))return ret("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return ret(n);if("="==n&&e.eat(">"))return ret("=>","operator");if("0"==n&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return ret("number","number");if(/\d/.test(n))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),ret("number","number");if("/"==n)return e.eat("*")?(t.tokenize=tokenComment,tokenComment(e,t)):e.eat("/")?(e.skipToEnd(),ret("comment","comment")):expressionAllowed(e,t,1)?(readRegexp(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ret("regexp","string-2")):(e.eat("="),ret("operator","operator",e.current()));if("`"==n)return t.tokenize=tokenQuasi,tokenQuasi(e,t);if("#"==n)return e.skipToEnd(),ret("error","error");if(p.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),ret("operator","operator",e.current());if(u.test(n)){e.eatWhile(u);var o=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(o)){var i=d[o];return ret(i.type,i.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return ret("async","keyword",o)}return ret("variable","variable",o)}}function tokenComment(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=tokenBase;break}n="*"==r}return ret("comment","comment")}function tokenQuasi(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=tokenBase;break}n=!n&&"\\"==r}return ret("quasi","string-2",e.current())}var f="([{}])";function findFatArrow(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var o=0,i=!1,a=r-1;a>=0;--a){var s=e.string.charAt(a),l=f.indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(i=!0);break}}else if(l>=3&&l<6)++o;else if(u.test(s))i=!0;else{if(/["'\/]/.test(s))return;if(i&&!o){++a;break}}}i&&!o&&(t.fatArrowAt=a)}}var g={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function JSLexical(e,t,r,n,o,i){this.indented=e,this.column=t,this.type=r,this.prev=o,this.info=i,null!=n&&(this.align=n)}function inScope(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function parseJS(e,t,r,n,o){var i=e.cc;for(m.state=e,m.stream=o,m.marked=null,m.cc=i,m.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var a=i.length?i.pop():l?expression:statement;if(a(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return m.marked?m.marked:"variable"==r&&inScope(e,n)?"variable-2":t}}}var m={state:null,column:null,marked:null,cc:null};function pass(){for(var e=arguments.length-1;e>=0;e--)m.cc.push(arguments[e])}function cont(){return pass.apply(null,arguments),!0}function inList(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function register(e){var t=m.state;if(m.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=registerVarScoped(e,t.context);if(null!=n)return void(t.context=n)}else if(!inList(e,t.localVars))return void(t.localVars=new Var(e,t.localVars));r.globalVars&&!inList(e,t.globalVars)&&(t.globalVars=new Var(e,t.globalVars))}function registerVarScoped(e,t){if(t){if(t.block){var r=registerVarScoped(e,t.prev);return r?r==t.prev?t:new Context(r,t.vars,!0):null}return inList(e,t.vars)?t:new Context(t.prev,new Var(e,t.vars),!1)}return null}function isModifier(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function Context(e,t,r){this.prev=e,this.vars=t,this.block=r}function Var(e,t){this.name=e,this.next=t}var v=new Var("this",new Var("arguments",null));function pushcontext(){m.state.context=new Context(m.state.context,m.state.localVars,!1),m.state.localVars=v}function pushblockcontext(){m.state.context=new Context(m.state.context,m.state.localVars,!0),m.state.localVars=null}function popcontext(){m.state.localVars=m.state.context.vars,m.state.context=m.state.context.prev}function pushlex(e,t){var r=function(){var r=m.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var o=r.lexical;o&&")"==o.type&&o.align;o=o.prev)n=o.indented;r.lexical=new JSLexical(n,m.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function poplex(){var e=m.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function expect(e){return function exp(t){return t==e?cont():";"==e||"}"==t||")"==t||"]"==t?pass():cont(exp)}}function statement(e,t){return"var"==e?cont(pushlex("vardef",t),vardef,expect(";"),poplex):"keyword a"==e?cont(pushlex("form"),parenExpr,statement,poplex):"keyword b"==e?cont(pushlex("form"),statement,poplex):"keyword d"==e?m.stream.match(/^\s*$/,!1)?cont():cont(pushlex("stat"),maybeexpression,expect(";"),poplex):"debugger"==e?cont(expect(";")):"{"==e?cont(pushlex("}"),pushblockcontext,block,poplex,popcontext):";"==e?cont():"if"==e?("else"==m.state.lexical.info&&m.state.cc[m.state.cc.length-1]==poplex&&m.state.cc.pop()(),cont(pushlex("form"),parenExpr,statement,poplex,maybeelse)):"function"==e?cont(functiondef):"for"==e?cont(pushlex("form"),forspec,statement,poplex):"class"==e||c&&"interface"==t?(m.marked="keyword",cont(pushlex("form"),className,poplex)):"variable"==e?c&&"declare"==t?(m.marked="keyword",cont(statement)):c&&("module"==t||"enum"==t||"type"==t)&&m.stream.match(/^\s*\w/,!1)?(m.marked="keyword","enum"==t?cont(enumdef):"type"==t?cont(typeexpr,expect("operator"),typeexpr,expect(";")):cont(pushlex("form"),pattern,expect("{"),pushlex("}"),block,poplex,poplex)):c&&"namespace"==t?(m.marked="keyword",cont(pushlex("form"),expression,block,poplex)):c&&"abstract"==t?(m.marked="keyword",cont(statement)):cont(pushlex("stat"),maybelabel):"switch"==e?cont(pushlex("form"),parenExpr,expect("{"),pushlex("}","switch"),pushblockcontext,block,poplex,poplex,popcontext):"case"==e?cont(expression,expect(":")):"default"==e?cont(expect(":")):"catch"==e?cont(pushlex("form"),pushcontext,maybeCatchBinding,statement,poplex,popcontext):"export"==e?cont(pushlex("stat"),afterExport,poplex):"import"==e?cont(pushlex("stat"),afterImport,poplex):"async"==e?cont(statement):"@"==t?cont(expression,statement):pass(pushlex("stat"),expression,expect(";"),poplex)}function maybeCatchBinding(e){if("("==e)return cont(funarg,expect(")"))}function expression(e,t){return expressionInner(e,t,!1)}function expressionNoComma(e,t){return expressionInner(e,t,!0)}function parenExpr(e){return"("!=e?pass():cont(pushlex(")"),expression,expect(")"),poplex)}function expressionInner(e,t,r){if(m.state.fatArrowAt==m.stream.start){var n=r?arrowBodyNoComma:arrowBody;if("("==e)return cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,expect("=>"),n,popcontext);if("variable"==e)return pass(pushcontext,pattern,expect("=>"),n,popcontext)}var o=r?maybeoperatorNoComma:maybeoperatorComma;return g.hasOwnProperty(e)?cont(o):"function"==e?cont(functiondef,o):"class"==e||c&&"interface"==t?(m.marked="keyword",cont(pushlex("form"),classExpression,poplex)):"keyword c"==e||"async"==e?cont(r?expressionNoComma:expression):"("==e?cont(pushlex(")"),maybeexpression,expect(")"),poplex,o):"operator"==e||"spread"==e?cont(r?expressionNoComma:expression):"["==e?cont(pushlex("]"),arrayLiteral,poplex,o):"{"==e?contCommasep(objprop,"}",null,o):"quasi"==e?pass(quasi,o):"new"==e?cont(maybeTarget(r)):"import"==e?cont(expression):cont()}function maybeexpression(e){return e.match(/[;\}\)\],]/)?pass():pass(expression)}function maybeoperatorComma(e,t){return","==e?cont(expression):maybeoperatorNoComma(e,t,!1)}function maybeoperatorNoComma(e,t,r){var n=0==r?maybeoperatorComma:maybeoperatorNoComma,o=0==r?expression:expressionNoComma;return"=>"==e?cont(pushcontext,r?arrowBodyNoComma:arrowBody,popcontext):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?cont(n):c&&"<"==t&&m.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?cont(pushlex(">"),commasep(typeexpr,">"),poplex,n):"?"==t?cont(expression,expect(":"),o):cont(o):"quasi"==e?pass(quasi,n):";"!=e?"("==e?contCommasep(expressionNoComma,")","call",n):"."==e?cont(property,n):"["==e?cont(pushlex("]"),maybeexpression,expect("]"),poplex,n):c&&"as"==t?(m.marked="keyword",cont(typeexpr,n)):"regexp"==e?(m.state.lastType=m.marked="operator",m.stream.backUp(m.stream.pos-m.stream.start-1),cont(o)):void 0:void 0}function quasi(e,t){return"quasi"!=e?pass():"${"!=t.slice(t.length-2)?cont(quasi):cont(expression,continueQuasi)}function continueQuasi(e){if("}"==e)return m.marked="string-2",m.state.tokenize=tokenQuasi,cont(quasi)}function arrowBody(e){return findFatArrow(m.stream,m.state),pass("{"==e?statement:expression)}function arrowBodyNoComma(e){return findFatArrow(m.stream,m.state),pass("{"==e?statement:expressionNoComma)}function maybeTarget(e){return function(t){return"."==t?cont(e?targetNoComma:target):"variable"==t&&c?cont(maybeTypeArgs,e?maybeoperatorNoComma:maybeoperatorComma):pass(e?expressionNoComma:expression)}}function target(e,t){if("target"==t)return m.marked="keyword",cont(maybeoperatorComma)}function targetNoComma(e,t){if("target"==t)return m.marked="keyword",cont(maybeoperatorNoComma)}function maybelabel(e){return":"==e?cont(poplex,statement):pass(maybeoperatorComma,expect(";"),poplex)}function property(e){if("variable"==e)return m.marked="property",cont()}function objprop(e,t){return"async"==e?(m.marked="property",cont(objprop)):"variable"==e||"keyword"==m.style?(m.marked="property","get"==t||"set"==t?cont(getterSetter):(c&&m.state.fatArrowAt==m.stream.start&&(r=m.stream.match(/^\s*:\s*/,!1))&&(m.state.fatArrowAt=m.stream.pos+r[0].length),cont(afterprop))):"number"==e||"string"==e?(m.marked=s?"property":m.style+" property",cont(afterprop)):"jsonld-keyword"==e?cont(afterprop):c&&isModifier(t)?(m.marked="keyword",cont(objprop)):"["==e?cont(expression,maybetype,expect("]"),afterprop):"spread"==e?cont(expressionNoComma,afterprop):"*"==t?(m.marked="keyword",cont(objprop)):":"==e?pass(afterprop):void 0;var r}function getterSetter(e){return"variable"!=e?pass(afterprop):(m.marked="property",cont(functiondef))}function afterprop(e){return":"==e?cont(expressionNoComma):"("==e?pass(functiondef):void 0}function commasep(e,t,r){function proceed(n,o){if(r?r.indexOf(n)>-1:","==n){var i=m.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),cont(function(r,n){return r==t||n==t?pass():pass(e)},proceed)}return n==t||o==t?cont():cont(expect(t))}return function(r,n){return r==t||n==t?cont():pass(e,proceed)}}function contCommasep(e,t,r){for(var n=3;n"),typeexpr):void 0}function maybeReturnType(e){if("=>"==e)return cont(typeexpr)}function typeprop(e,t){return"variable"==e||"keyword"==m.style?(m.marked="property",cont(typeprop)):"?"==t?cont(typeprop):":"==e?cont(typeexpr):"["==e?cont(expression,maybetype,expect("]"),typeprop):void 0}function typearg(e,t){return"variable"==e&&m.stream.match(/^\s*[?:]/,!1)||"?"==t?cont(typearg):":"==e?cont(typeexpr):pass(typeexpr)}function afterType(e,t){return"<"==t?cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType):"|"==t||"."==e||"&"==t?cont(typeexpr):"["==e?cont(expect("]"),afterType):"extends"==t||"implements"==t?(m.marked="keyword",cont(typeexpr)):void 0}function maybeTypeArgs(e,t){if("<"==t)return cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType)}function typeparam(){return pass(typeexpr,maybeTypeDefault)}function maybeTypeDefault(e,t){if("="==t)return cont(typeexpr)}function vardef(e,t){return"enum"==t?(m.marked="keyword",cont(enumdef)):pass(pattern,maybetype,maybeAssign,vardefCont)}function pattern(e,t){return c&&isModifier(t)?(m.marked="keyword",cont(pattern)):"variable"==e?(register(t),cont()):"spread"==e?cont(pattern):"["==e?contCommasep(eltpattern,"]"):"{"==e?contCommasep(proppattern,"}"):void 0}function proppattern(e,t){return"variable"!=e||m.stream.match(/^\s*:/,!1)?("variable"==e&&(m.marked="property"),"spread"==e?cont(pattern):"}"==e?pass():"["==e?cont(expression,expect("]"),expect(":"),proppattern):cont(expect(":"),pattern,maybeAssign)):(register(t),cont(maybeAssign))}function eltpattern(){return pass(pattern,maybeAssign)}function maybeAssign(e,t){if("="==t)return cont(expressionNoComma)}function vardefCont(e){if(","==e)return cont(vardef)}function maybeelse(e,t){if("keyword b"==e&&"else"==t)return cont(pushlex("form","else"),statement,poplex)}function forspec(e,t){return"await"==t?cont(forspec):"("==e?cont(pushlex(")"),forspec1,expect(")"),poplex):void 0}function forspec1(e){return"var"==e?cont(vardef,expect(";"),forspec2):";"==e?cont(forspec2):"variable"==e?cont(formaybeinof):pass(expression,expect(";"),forspec2)}function formaybeinof(e,t){return"in"==t||"of"==t?(m.marked="keyword",cont(expression)):cont(maybeoperatorComma,forspec2)}function forspec2(e,t){return";"==e?cont(forspec3):"in"==t||"of"==t?(m.marked="keyword",cont(expression)):pass(expression,expect(";"),forspec3)}function forspec3(e){")"!=e&&cont(expression)}function functiondef(e,t){return"*"==t?(m.marked="keyword",cont(functiondef)):"variable"==e?(register(t),cont(functiondef)):"("==e?cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,mayberettype,statement,popcontext):c&&"<"==t?cont(pushlex(">"),commasep(typeparam,">"),poplex,functiondef):void 0}function funarg(e,t){return"@"==t&&cont(expression,funarg),"spread"==e?cont(funarg):c&&isModifier(t)?(m.marked="keyword",cont(funarg)):pass(pattern,maybetype,maybeAssign)}function classExpression(e,t){return"variable"==e?className(e,t):classNameAfter(e,t)}function className(e,t){if("variable"==e)return register(t),cont(classNameAfter)}function classNameAfter(e,t){return"<"==t?cont(pushlex(">"),commasep(typeparam,">"),poplex,classNameAfter):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(m.marked="keyword"),cont(c?typeexpr:expression,classNameAfter)):"{"==e?cont(pushlex("}"),classBody,poplex):void 0}function classBody(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&isModifier(t))&&m.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(m.marked="keyword",cont(classBody)):"variable"==e||"keyword"==m.style?(m.marked="property",cont(c?classfield:functiondef,classBody)):"["==e?cont(expression,maybetype,expect("]"),c?classfield:functiondef,classBody):"*"==t?(m.marked="keyword",cont(classBody)):";"==e?cont(classBody):"}"==e?cont():"@"==t?cont(expression,classBody):void 0}function classfield(e,t){return"?"==t?cont(classfield):":"==e?cont(typeexpr,maybeAssign):"="==t?cont(expressionNoComma):pass(functiondef)}function afterExport(e,t){return"*"==t?(m.marked="keyword",cont(maybeFrom,expect(";"))):"default"==t?(m.marked="keyword",cont(expression,expect(";"))):"{"==e?cont(commasep(exportField,"}"),maybeFrom,expect(";")):pass(statement)}function exportField(e,t){return"as"==t?(m.marked="keyword",cont(expect("variable"))):"variable"==e?pass(expressionNoComma,exportField):void 0}function afterImport(e){return"string"==e?cont():"("==e?pass(expression):pass(importSpec,maybeMoreImports,maybeFrom)}function importSpec(e,t){return"{"==e?contCommasep(importSpec,"}"):("variable"==e&®ister(t),"*"==t&&(m.marked="keyword"),cont(maybeAs))}function maybeMoreImports(e){if(","==e)return cont(importSpec,maybeMoreImports)}function maybeAs(e,t){if("as"==t)return m.marked="keyword",cont(importSpec)}function maybeFrom(e,t){if("from"==t)return m.marked="keyword",cont(expression)}function arrayLiteral(e){return"]"==e?cont():pass(commasep(expressionNoComma,"]"))}function enumdef(){return pass(pushlex("form"),pattern,expect("{"),pushlex("}"),commasep(enummember,"}"),poplex,poplex)}function enummember(){return pass(pattern,maybeAssign)}function isContinuedStatement(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function expressionAllowed(e,t,r){return t.tokenize==tokenBase&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return popcontext.lex=!0,poplex.lex=!0,{startState:function(e){var t={tokenize:tokenBase,lastType:"sof",cc:[],lexical:new JSLexical((e||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new Context(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),findFatArrow(e,t)),t.tokenize!=tokenComment&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=o&&"--"!=o?n:"incdec",parseJS(t,r,n,o,e))},indent:function(t,n){if(t.tokenize==tokenComment)return e.Pass;if(t.tokenize!=tokenBase)return 0;var o,s=n&&n.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==poplex)l=l.prev;else if(u!=maybeelse)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(o=t.cc[t.cc.length-1])&&(o==maybeoperatorComma||o==maybeoperatorNoComma)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,p=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+i:"stat"==d?l.indented+(isContinuedStatement(t,n)?a||i:0):"switch"!=l.info||p||0==r.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:i):l.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:expressionAllowed,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=expression&&t!=expressionNoComma||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(r(570))},575:function(e,t,r){var n=r(576);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(157)(n,o);n.locals&&(e.exports=n.locals)},576:function(e,t,r){(e.exports=r(246)(!1)).push([e.i,"/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor-mark {\n background-color: rgba(20, 255, 20, 0.5);\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n}\n.cm-animate-fat-cursor {\n width: auto;\n border: 0;\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n background-color: #7e7;\n}\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: -20px;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px; margin-right: -30px;\n padding-bottom: 30px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 30px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -30px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""])},577:function(e,t,r){var n=r(578);"string"==typeof n&&(n=[[e.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(157)(n,o);n.locals&&(e.exports=n.locals)},578:function(e,t,r){(e.exports=r(246)(!1)).push([e.i,"/*\n\n Name: Base16 Default Light\n Author: Chris Kempson (http://chriskempson.com)\n\n CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)\n Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)\n\n*/\n\n.cm-s-base16-light.CodeMirror { background: #f5f5f5; color: #202020; }\n.cm-s-base16-light div.CodeMirror-selected { background: #e0e0e0; }\n.cm-s-base16-light .CodeMirror-line::selection, .cm-s-base16-light .CodeMirror-line > span::selection, .cm-s-base16-light .CodeMirror-line > span > span::selection { background: #e0e0e0; }\n.cm-s-base16-light .CodeMirror-line::-moz-selection, .cm-s-base16-light .CodeMirror-line > span::-moz-selection, .cm-s-base16-light .CodeMirror-line > span > span::-moz-selection { background: #e0e0e0; }\n.cm-s-base16-light .CodeMirror-gutters { background: #f5f5f5; border-right: 0px; }\n.cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; }\n.cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; }\n.cm-s-base16-light .CodeMirror-linenumber { color: #b0b0b0; }\n.cm-s-base16-light .CodeMirror-cursor { border-left: 1px solid #505050; }\n\n.cm-s-base16-light span.cm-comment { color: #8f5536; }\n.cm-s-base16-light span.cm-atom { color: #aa759f; }\n.cm-s-base16-light span.cm-number { color: #aa759f; }\n\n.cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute { color: #90a959; }\n.cm-s-base16-light span.cm-keyword { color: #ac4142; }\n.cm-s-base16-light span.cm-string { color: #f4bf75; }\n\n.cm-s-base16-light span.cm-variable { color: #90a959; }\n.cm-s-base16-light span.cm-variable-2 { color: #6a9fb5; }\n.cm-s-base16-light span.cm-def { color: #d28445; }\n.cm-s-base16-light span.cm-bracket { color: #202020; }\n.cm-s-base16-light span.cm-tag { color: #ac4142; }\n.cm-s-base16-light span.cm-link { color: #aa759f; }\n.cm-s-base16-light span.cm-error { background: #ac4142; color: #505050; }\n\n.cm-s-base16-light .CodeMirror-activeline-background { background: #DDDCDC; }\n.cm-s-base16-light .CodeMirror-matchingbracket { color: #f5f5f5 !important; background-color: #6A9FB5 !important}\n",""])},579:function(e,t,r){"use strict";r.r(t),r.d(t,"Editor",function(){return f});var n=r(1),o=r.n(n),i=r(0),a=r.n(i),s=r(3),l=r(218),c=r.n(l),u=r(571),d=(r(572),Object.assign||function(e){for(var t=1;t",lt:"<",nbsp:" ",quot:"“"},g=["style","script"],y=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,_=/mailto:/i,x=/\n{2,}$/,w=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,S=/^ *> ?/gm,C=/^ {2,}\n/,E=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,P=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,O=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,T=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,R=/^(?:\n *)*\n/,M=/\r\n?/g,N=/^\[\^(.*)\](:.*)\n/,I=/^\[\^(.*)\]/,L=/\f/g,A=/^\s*?\[(x|\s)\]/,D=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,F=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,U=/^ *<([A-Za-z][^ >\/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/,B=/&([a-z]+);/g,V=/^/,W=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,q=/^\{.*\}$/,H=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,K=/^<([^ >]+@[^ >]+)>/,J=/^<([^ >]+:\/[^ >]+)>/,X=/ *\n+$/,Z=/(?:^|\n)( *)$/,Q=/-([a-z])?/gi,G=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Y=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,$=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,tt=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,et=/^\[([^\]]*)\] ?\[([^\]]*)\]/,nt=/(\[|\])/g,rt=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,it=/\t/g,ot=/(^ *\||\| *$)/g,at=/^ *:-+: *$/,st=/^ *:-+ *$/,ut=/^ *-+: *$/,lt=/ *\| */,ct=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,pt=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,ft=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,ht=/^\\([^0-9A-Za-z\s])/,dt=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,mt=/(^\n+|(\n|\s)+$)/g,vt=/^([ \t]*)/,gt=/\\([^0-9A-Z\s])/gi,yt=/^( *)((?:[*+-]|\d+\.)) +/,bt=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,_t=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,xt=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,wt=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,St=[w,O,P,D,F,U,V,z,bt,_t,G,Y];function containsBlockSyntax(t){return St.some(function(e){return e.test(t)})}function slugify(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function parseTableAlignCapture(t){return ut.test(t)?"right":at.test(t)?"center":st.test(t)?"left":null}function parseTableHeader(t,e,n){return t[1].replace(ot,"").trim().split(lt).map(function(t){return e(t,n)})}function parseTableAlign(t){return t[2].replace(ot,"").trim().split(lt).map(parseTableAlignCapture)}function parseTableCells(t,e,n){return t[3].replace(ot,"").trim().split("\n").map(function(t){return t.replace(ot,"").split(lt).map(function(t){return e(t.trim(),n)})})}function parseTable(t,e,n){n.inline=!0;var r=parseTableHeader(t,e,n),i=parseTableAlign(t),o=parseTableCells(t,e,n);return n.inline=!1,{align:i,cells:o,header:r,type:"table"}}function getTableStyle(t,e){return null==t.align[e]?{}:{textAlign:t.align[e]}}function normalizeAttributeKey(t){return-1!==t.indexOf("-")&&null===t.match(W)&&(t=t.replace(Q,function(t,e){return e.toUpperCase()})),t}function attributeValueToJSXPropValue(t,e){return"style"===t?e.split(/;\s?/).reduce(function(t,e){var n=e.slice(0,e.indexOf(":")),r=n.replace(/(-[a-z])/g,function(t){return t[1].toUpperCase()});return t[r]=e.slice(n.length+1).trim(),t},{}):(e.match(q)&&(e=e.slice(1,e.length-1)),"true"===e||"false"!==e&&e)}function normalizeWhitespace(t){return t.replace(M,"\n").replace(L,"").replace(it," ")}function parserFor(t){function b(n,r){for(var i=[],o="";n;)for(var a=0;a2?o-2:0),s=2;s1?i=d(e?"span":"div",null,r):1===r.length?"string"==typeof(i=r[0])&&(i=d("span",null,i)):i=d("span",null),i}function e(t){var e=t.match(y);return e?e.reduce(function(t,e,n){var r=e.indexOf("=");if(-1!==r){var i=normalizeAttributeKey(e.slice(0,r)).trim(),o=l()(e.slice(r+1).trim()),a=m[i]||i,u=t[a]=attributeValueToJSXPropValue(i,o);(U.test(u)||z.test(u))&&(t[a]=s.a.cloneElement(c(u.trim()),{key:n}))}else t[m[e]||e]=!0;return t},{}):void 0}(n=n||{}).overrides=n.overrides||{},n.slugify=n.slugify||slugify;var r=n.createElement||s.a.createElement;var i=[],o={},a={blockQuote:{match:blockRegex(w),order:Et,parse:function d(t,e,n){return{content:e(t[0].replace(S,""),n)}},react:function e(t,n,r){return d("blockquote",{key:r.key},n(t.content,r))}},breakLine:{match:anyScopeRegex(C),order:Et,parse:captureNothing,react:function e(t,n,r){return d("br",{key:r.key})}},breakThematic:{match:blockRegex(E),order:Et,parse:captureNothing,react:function e(t,n,r){return d("hr",{key:r.key})}},codeBlock:{match:blockRegex(O),order:Ct,parse:function c(t){return{content:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function e(t,n,r){return d("pre",{key:r.key},d("code",{className:t.lang?"lang-"+t.lang:""},t.content))}},codeFenced:{match:blockRegex(P),order:Ct,parse:function b(t){return{content:t[3],lang:t[2]||void 0,type:"codeBlock"}}},codeInline:{match:simpleInlineRegex(T),order:Pt,parse:function b(t){return{content:t[2]}},react:function e(t,n,r){return d("code",{key:r.key},t.content)}},footnote:{match:blockRegex(N),order:Ct,parse:function b(t){return i.push({footnote:t[2],identifier:t[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(I),order:Et,parse:function b(t){return{content:t[1],target:"#"+t[1]}},react:function e(t,n,r){return d("a",{key:r.key,href:sanitizeUrl(t.target)},d("sup",{key:r.key},t.content))}},gfmTask:{match:inlineRegex(A),order:Et,parse:function b(t){return{completed:"x"===t[1].toLowerCase()}},react:function e(t,n,r){return d("input",{checked:t.completed,key:r.key,readOnly:!0,type:"checkbox"})}},heading:{match:blockRegex(D),order:Et,parse:function e(t,r,i){return{content:parseInline(r,t[2],i),id:n.slugify(t[2]),level:t[1].length}},react:function f(t,e,n){return d("h"+t.level,{id:t.id,key:n.key},e(t.content,n))}},headingSetext:{match:blockRegex(F),order:Ct,parse:function d(t,e,n){return{content:parseInline(e,t[1],n),level:"="===t[2]?1:2,type:"heading"}}},htmlBlock:{match:anyScopeRegex(U),order:Et,parse:function k(t,n,r){var i=t[3].match(vt)[1],o=new RegExp("^"+i,"gm"),a=t[3].replace(o,""),s=containsBlockSyntax(a)?parseBlock:parseInline,u=-1!==g.indexOf(t[1]);return{attrs:e(t[2]),content:u?t[3]:s(n,a,r),noInnerParse:u,tag:t[1]}},react:function e(t,n,r){return d(t.tag,p({key:r.key},t.attrs),t.noInnerParse?t.content:n(t.content,r))}},htmlComment:{match:anyScopeRegex(V),order:Et,parse:function a(){return{}},react:renderNothing},htmlSelfClosing:{match:anyScopeRegex(z),order:Et,parse:function b(t){return{attrs:e(t[2]||""),tag:t[1]}},react:function e(t,n,r){return d(t.tag,p({},t.attrs,{key:r.key}))}},image:{match:simpleInlineRegex(wt),order:Et,parse:function b(t){return{alt:t[1],target:unescapeUrl(t[2]),title:t[3]}},react:function e(t,n,r){return d("img",{key:r.key,alt:t.alt||void 0,title:t.title||void 0,src:sanitizeUrl(t.target)})}},link:{match:inlineRegex(xt),order:Pt,parse:function d(t,e,n){return{content:parseSimpleInline(e,t[1],n),target:unescapeUrl(t[2]),title:t[3]}},react:function e(t,n,r){return d("a",{key:r.key,href:sanitizeUrl(t.target),title:t.title},n(t.content,r))}},linkAngleBraceStyleDetector:{match:inlineRegex(J),order:Ct,parse:function b(t){return{content:[{content:t[1],type:"text"}],target:t[1],type:"link"}}},linkBareUrlDetector:{match:inlineRegex(H),order:Ct,parse:function b(t){return{content:[{content:t[1],type:"text"}],target:t[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:inlineRegex(K),order:Ct,parse:function d(t){var e=t[1],n=t[1];return _.test(n)||(n="mailto:"+n),{content:[{content:e.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match:function f(t,e,n){var r=Z.exec(n),i=e._list||!e.inline;return r&&i?(t=r[1]+t,_t.exec(t)):null},order:Et,parse:function j(t,e,n){var r=t[2],i=r.length>1,o=i?+r:void 0,a=t[0].replace(x,"\n").match(bt),s=!1;return{items:a.map(function(t,r){var i=yt.exec(t)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),u=t.replace(o,"").replace(yt,""),l=r===a.length-1,c=-1!==u.indexOf("\n\n")||l&&s;s=c;var p,f=n.inline,h=n._list;n._list=!0,c?(n.inline=!1,p=u.replace(X,"\n\n")):(n.inline=!0,p=u.replace(X,""));var d=e(p,n);return n.inline=f,n._list=h,d}),ordered:i,start:o}},react:function f(t,e,n){return d(t.ordered?"ol":"ul",{key:n.key,start:t.start},t.items.map(function(t,r){return d("li",{key:r},e(t,n))}))}},newlineCoalescer:{match:blockRegex(R),order:Pt,parse:captureNothing,react:function a(){return"\n"}},paragraph:{match:blockRegex(Y),order:Pt,parse:parseCaptureInline,react:function e(t,n,r){return d("p",{key:r.key},n(t.content,r))}},ref:{match:inlineRegex($),order:Ct,parse:function b(t){return o[t[1]]={target:t[2],title:t[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(tt),order:Ct,parse:function b(t){return{alt:t[1]||void 0,ref:t[2]}},react:function e(t,n,r){return d("img",{key:r.key,alt:t.alt,src:sanitizeUrl(o[t.ref].target),title:o[t.ref].title})}},refLink:{match:inlineRegex(et),order:Ct,parse:function d(t,e,n){return{content:e(t[1],n),fallbackContent:e(t[0].replace(nt,"\\$1"),n),ref:t[2]}},react:function e(t,n,r){return o[t.ref]?d("a",{key:r.key,href:sanitizeUrl(o[t.ref].target),title:o[t.ref].title},n(t.content,r)):d("span",null,n(t.fallbackContent,r))}},table:{match:blockRegex(G),order:Et,parse:parseTable,react:function f(t,e,n){return d("table",{key:n.key},d("thead",null,d("tr",null,t.header.map(function(r,i){return d("th",{key:i,style:getTableStyle(t,i)},e(r,n))}))),d("tbody",null,t.cells.map(function(r,i){return d("tr",{key:i},r.map(function(r,i){return d("td",{key:i,style:getTableStyle(t,i)},e(r,n))}))})))}},text:{match:anyScopeRegex(dt),order:Ot,parse:function b(t){return{content:t[0].replace(B,function(t,e){return v[e]?v[e]:t})}},react:function b(t){return t.content}},textBolded:{match:simpleInlineRegex(ct),order:kt,parse:function d(t,e,n){return{content:e(t[2],n)}},react:function e(t,n,r){return d("strong",{key:r.key},n(t.content,r))}},textEmphasized:{match:simpleInlineRegex(pt),order:Pt,parse:function d(t,e,n){return{content:e(t[2],n)}},react:function e(t,n,r){return d("em",{key:r.key},n(t.content,r))}},textEscaped:{match:simpleInlineRegex(ht),order:Et,parse:function b(t){return{content:t[1],type:"text"}}},textStrikethroughed:{match:simpleInlineRegex(ft),order:Pt,parse:parseCaptureInline,react:function e(t,n,r){return d("del",{key:r.key},n(t.content,r))}}},u=parserFor(a),h=reactFor(ruleOutput(a)),j=c(t);return i.length&&j.props.children.push(d("footer",null,i.map(function(t){return d("div",{id:t.identifier,key:t.identifier},t.identifier,h(u(t.footnote,{inline:!0})))}))),j}var jt=r(108),Tt=r(33),Rt=r(68),Mt=r(3),Nt=r(65);function MarkdownHeadingRenderer(t){var e=t.classes,n=t.level,r=t.children;return s.a.createElement("div",{className:e.spacing},s.a.createElement(Nt.a,{level:n},r))}MarkdownHeadingRenderer.propTypes={classes:o.a.object.isRequired,level:o.a.oneOf([1,2,3,4,5,6]).isRequired,children:o.a.node};var It=Object(Mt.a)(function styles(t){return{spacing:{marginBottom:t.space[2]}}})(MarkdownHeadingRenderer),Lt=r(4),At=r.n(Lt);function ListRenderer(t){var e=t.classes,n=t.ordered,r=t.children,i=n?"ol":"ul",o=At()(e.list,n&&e.ordered);return s.a.createElement(i,{className:o},a.Children.map(r,function(t){return Object(a.cloneElement)(t,{className:e.li})}))}ListRenderer.propTypes={classes:o.a.object.isRequired,ordered:o.a.bool,children:o.a.node.isRequired},ListRenderer.defaultProps={ordered:!1};var Dt=Object(Mt.a)(function styles(t){var e=t.space,n=t.color,r=t.fontFamily;return{list:{marginTop:0,marginBottom:e[2],paddingLeft:e[3],fontSize:"inherit"},ordered:{listStyleType:"decimal"},li:{color:n.base,fontFamily:r.base,fontSize:"inherit",lineHeight:1.5,listStyleType:"inherit"}}})(ListRenderer);function BlockquoteRenderer(t){var e=t.classes,n=t.className,r=t.children,i=At()(e.blockquote,n);return s.a.createElement("blockquote",{className:i},r)}BlockquoteRenderer.propTypes={classes:o.a.object.isRequired,className:o.a.string,children:o.a.node.isRequired};var Ft=Object(Mt.a)(function styles(t){var e=t.space,n=t.color,r=t.fontSize,i=t.fontFamily;return{blockquote:{margin:[[e[2],e[4]]],padding:0,color:n.base,fontFamily:i.base,fontSize:r.base,lineHeight:1.5}}})(BlockquoteRenderer);function PreRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("pre",{className:e.pre},n)}PreRenderer.propTypes={classes:o.a.object.isRequired,children:o.a.node.isRequired};var Ut=Object(Mt.a)(function styles(t){var e=t.space,n=t.color,r=t.fontSize,i=t.fontFamily,o=t.borderRadius;return{pre:{fontFamily:i.base,fontSize:r.small,lineHeight:1.5,color:n.base,whiteSpace:"pre",backgroundColor:n.codeBackground,padding:[[e[1],e[2]]],border:[[1,n.border,"solid"]],borderRadius:o,marginTop:0,marginBottom:e[2]}}})(PreRenderer),Bt=r(70),Vt=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function CheckboxRenderer(t){var e=t.classes,n=CheckboxRenderer_objectWithoutProperties(t,["classes"]);return s.a.createElement("input",Vt({},n,{type:"checkbox",className:e.input}))}CheckboxRenderer.propTypes={classes:o.a.object.isRequired};var Wt=Object(Mt.a)(function styles(){return{input:{isolate:!1,display:"inline-block",verticalAlign:"middle"}}})(CheckboxRenderer);function HrRenderer(t){var e=t.classes;return s.a.createElement("hr",{className:e.hr})}HrRenderer.propTypes={classes:o.a.object.isRequired};var zt=Object(Mt.a)(function styles(t){var e=t.space;return{hr:{borderBottom:[[1,t.color.border,"solid"]],marginTop:0,marginBottom:e[2]}}})(HrRenderer);function DetailsRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("details",{className:e.details},n)}DetailsRenderer.propTypes={classes:o.a.object.isRequired,children:o.a.node.isRequired};var qt=Object(Mt.a)(function styles(t){var e=t.space,n=t.color,r=t.fontSize,i=t.fontFamily;return{details:{marginBottom:e[2],fontFamily:i.base,fontSize:r.base,color:n.base}}})(DetailsRenderer);function DetailsSummaryRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("summary",{className:e.summary},n)}DetailsSummaryRenderer.propTypes={classes:o.a.object.isRequired,children:o.a.node.isRequired};var Ht=Object(Mt.a)(function styles(t){var e=t.space,n=t.color,r=t.fontSize,i=t.fontFamily;return{summary:{marginBottom:e[1],fontFamily:i.base,fontSize:r.base,color:n.base,cursor:"pointer","&:focus":{isolate:!1,outline:[[1,"dotted",n.linkHover]],outlineOffset:2}}}})(DetailsSummaryRenderer);function TableRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("table",{className:e.table},n)}TableRenderer.propTypes={classes:o.a.object.isRequired,children:o.a.node.isRequired};var Kt=Object(Mt.a)(function styles(t){return{table:{marginTop:0,marginBottom:t.space[2],borderCollapse:"collapse"}}})(TableRenderer);function TableHeadRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("thead",{className:e.thead},n)}TableHeadRenderer.propTypes={classes:o.a.object.isRequired,children:o.a.node.isRequired};var Jt=Object(Mt.a)(function styles(t){return{thead:{borderBottom:[[1,t.color.border,"solid"]]}}})(TableHeadRenderer);function TableBodyRenderer(t){var e=t.children;return s.a.createElement("tbody",null,e)}TableBodyRenderer.propTypes={children:o.a.node.isRequired};var Xt=TableBodyRenderer;function TableRowRenderer(t){var e=t.children;return s.a.createElement("tr",null,e)}TableRowRenderer.propTypes={children:o.a.node.isRequired};var Zt=TableRowRenderer;function TableCellRenderer(t){var e=t.classes,n=t.header,r=t.children;return n?s.a.createElement("th",{className:e.th},r):s.a.createElement("td",{className:e.td},r)}TableCellRenderer.propTypes={classes:o.a.object.isRequired,header:o.a.bool,children:o.a.node.isRequired},TableCellRenderer.defaultProps={header:!1};var Qt=Object(Mt.a)(function styles(t){var e=t.space,n=t.color,r=t.fontSize,i=t.fontFamily;return{td:{padding:[[e[0],e[2],e[0],0]],fontFamily:i.base,fontSize:r.base,color:n.base,lineHeight:1.5},th:{composes:"$td",fontWeight:"bold"}}})(TableCellRenderer),Gt=Object.assign||function(t){for(var e=1;e0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(6),i=n(158),o=n(40),a=Object.defineProperty;e.f=n(14)?Object.defineProperty:function defineProperty(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n=t.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"c",function(){return unquote}),n.d(e,"a",function(){return getType}),n.d(e,"b",function(){return showSpaces});var r=Object.assign||function(t){for(var e=1;e"+i+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(13),i=n(46);t.exports=n(14)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(71),i=n(37);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(195),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(t){console.error(t)}}(),t.exports=n(421)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(72),i=n(46),o=n(22),a=n(40),s=n(20),u=n(158),l=Object.getOwnPropertyDescriptor;e.f=n(14)?l:function getOwnPropertyDescriptor(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(2),i=n(15),o=n(5);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(34),i=n(71),o=n(18),a=n(12),s=n(340);t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,c=4==t,p=6==t,f=5==t||p,h=e||s;return function(e,s,d){for(var m,v,g=o(e),y=i(g),b=r(s,d,3),_=a(y.length),x=0,w=n?h(e,_):u?h(e,0):void 0;_>x;x++)if((f||x in y)&&(v=b(m=y[x],x,g),t))if(n)w[x]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:w.push(m)}else if(c)return!1;return p?-1:l||c?c:w}}},function(t,e){t.exports=function isObject(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(3),u=n(4),l=n.n(u),c=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function TextRenderer(t){var e,n=t.classes,r=t.semantic,o=t.size,a=t.color,s=t.underlined,u=t.children,p=_objectWithoutProperties(t,["classes","semantic","size","color","underlined","children"]),f=r||"span",h=l()(n.text,n[o+"Size"],n[a+"Color"],(_defineProperty(e={},n[r],r),_defineProperty(e,n.isUnderlined,s),e));return i.a.createElement(f,c({},p,{className:h}),u)}TextRenderer.propTypes={classes:a.a.object.isRequired,semantic:a.a.oneOf(["em","strong"]),size:a.a.oneOf(["inherit","small","base","text"]),color:a.a.oneOf(["base","light"]),underlined:a.a.bool,children:a.a.node.isRequired},TextRenderer.defaultProps={size:"inherit",color:"base",underlined:!1};var p=Object(s.a)(function styles(t){var e=t.fontFamily,n=t.fontSize,r=t.color;return{text:{fontFamily:e.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:n.small},baseSize:{fontSize:n.base},textSize:{fontSize:n.text},baseColor:{color:r.base},lightColor:{color:r.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",r.lightest]]}}})(TextRenderer);n.d(e,"a",function(){return p})},function(t,e,n){var r=n(35);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(14)){var r=n(48),i=n(7),o=n(5),a=n(2),s=n(89),u=n(137),l=n(34),c=n(61),p=n(46),f=n(21),h=n(62),d=n(28),m=n(12),v=n(184),g=n(50),y=n(40),b=n(20),_=n(73),x=n(8),w=n(18),S=n(129),C=n(51),E=n(53),k=n(52).f,P=n(131),O=n(47),j=n(10),T=n(31),R=n(79),M=n(74),N=n(133),I=n(58),L=n(82),A=n(60),D=n(132),F=n(175),U=n(13),B=n(29),V=U.f,W=B.f,z=i.RangeError,q=i.TypeError,H=i.Uint8Array,K=Array.prototype,J=u.ArrayBuffer,X=u.DataView,Z=T(0),Q=T(2),G=T(3),Y=T(4),$=T(5),tt=T(6),et=R(!0),nt=R(!1),rt=N.values,it=N.keys,ot=N.entries,at=K.lastIndexOf,st=K.reduce,ut=K.reduceRight,lt=K.join,ct=K.sort,pt=K.slice,ft=K.toString,ht=K.toLocaleString,dt=j("iterator"),mt=j("toStringTag"),vt=O("typed_constructor"),gt=O("def_constructor"),yt=s.CONSTR,bt=s.TYPED,_t=s.VIEW,xt=T(1,function(t,e){return kt(M(t,t[gt]),e)}),wt=o(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),St=!!H&&!!H.prototype.set&&o(function(){new H(1).set({})}),Ct=function(t,e){var n=d(t);if(n<0||n%e)throw z("Wrong offset!");return n},Et=function(t){if(x(t)&&bt in t)return t;throw q(t+" is not a typed array!")},kt=function(t,e){if(!(x(t)&&vt in t))throw q("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Ot(M(t,t[gt]),e)},Ot=function(t,e){for(var n=0,r=e.length,i=kt(t,r);r>n;)i[n]=e[n++];return i},jt=function(t,e,n){V(t,e,{get:function(){return this._d[n]}})},Tt=function from(t){var e,n,r,i,o,a,s=w(t),u=arguments.length,c=u>1?arguments[1]:void 0,p=void 0!==c,f=P(s);if(null!=f&&!S(f)){for(a=f.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(p&&u>2&&(c=l(c,arguments[2],2)),e=0,n=m(s.length),i=kt(this,n);n>e;e++)i[e]=p?c(s[e],e):s[e];return i},Rt=function of(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},Mt=!!H&&o(function(){ht.call(new H(1))}),Nt=function toLocaleString(){return ht.apply(Mt?pt.call(Et(this)):Et(this),arguments)},It={copyWithin:function copyWithin(t,e){return F.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function every(t){return Y(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function fill(t){return D.apply(Et(this),arguments)},filter:function filter(t){return Pt(this,Q(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function find(t){return $(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function findIndex(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function forEach(t){Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function indexOf(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function includes(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function join(t){return lt.apply(Et(this),arguments)},lastIndexOf:function lastIndexOf(t){return at.apply(Et(this),arguments)},map:function map(t){return xt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function reduce(t){return st.apply(Et(this),arguments)},reduceRight:function reduceRight(t){return ut.apply(Et(this),arguments)},reverse:function reverse(){for(var t,e=Et(this).length,n=Math.floor(e/2),r=0;r1?arguments[1]:void 0)},sort:function sort(t){return ct.call(Et(this),t)},subarray:function subarray(t,e){var n=Et(this),r=n.length,i=g(t,r);return new(M(n,n[gt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===e?r:g(e,r))-i))}},Lt=function slice(t,e){return Pt(this,pt.call(Et(this),t,e))},At=function set(t){Et(this);var e=Ct(arguments[1],1),n=this.length,r=w(t),i=m(r.length),o=0;if(i+e>n)throw z("Wrong length!");for(;o255?255:255&r),i.v[h](n*e+i.o,r,wt)},j=function(t,e){V(t,e,{get:function(){return P(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};b?(d=n(function(t,n,r,i){c(t,d,l,"_d");var o,a,s,u,p=0,h=0;if(x(n)){if(!(n instanceof J||"ArrayBuffer"==(u=_(n))||"SharedArrayBuffer"==u))return bt in n?Ot(d,n):Tt.call(d,n);o=n,h=Ct(r,e);var g=n.byteLength;if(void 0===i){if(g%e)throw z("Wrong length!");if((a=g-h)<0)throw z("Wrong length!")}else if((a=m(i)*e)+h>g)throw z("Wrong length!");s=a/e}else s=v(n),o=new J(a=s*e);for(f(t,"_d",{b:o,o:h,l:a,e:s,v:new X(o)});p=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;ndocument.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function create(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(160),i=n(115).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return r(t,i)}},function(t,e,n){var r=n(20),i=n(18),o=n(114)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(466),i=n(471);t.exports=function getNative(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(94),i=n(467),o=n(468),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;t.exports=function baseGetTag(t){return null==t?void 0===t?s:a:u&&u in Object(t)?i(t):o(t)}},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(3),u=n(4),l=n.n(u);function NameRenderer(t){var e,n,r,o=t.classes,a=t.children,s=t.deprecated,u=l()(o.name,(e={},n=o.isDeprecated,r=s,n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e));return i.a.createElement("code",{className:u},a)}NameRenderer.propTypes={classes:a.a.object.isRequired,children:a.a.node.isRequired,deprecated:a.a.bool};var c=Object(s.a)(function styles(t){var e=t.fontFamily,n=t.fontSize,r=t.color;return{name:{fontFamily:e.monospace,fontSize:n.small,color:r.name},isDeprecated:{color:r.light,textDecoration:"line-through"}}})(NameRenderer);n.d(e,"a",function(){return c})},function(t,e,n){var r=n(13).f,i=n(20),o=n(10)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(10)("unscopables"),i=Array.prototype;null==i[r]&&n(21)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){"use strict";var r=n(7),i=n(13),o=n(14),a=n(10)("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function HeadingRenderer(t){var e=t.classes,n=t.level,r=t.children,o=_objectWithoutProperties(t,["classes","level","children"]),a="h"+n,s=u()(e.heading,e["heading"+n]);return i.a.createElement(a,c({},o,{className:s}),r)}HeadingRenderer.propTypes={classes:a.a.object.isRequired,level:a.a.oneOf([1,2,3,4,5,6]).isRequired,children:a.a.node};var p=Object(l.a)(function styles(t){var e=t.color,n=t.fontFamily,r=t.fontSize;return{heading:{margin:0,color:e.base,fontFamily:n.base,fontWeight:"normal"},heading1:{fontSize:r.h1},heading2:{fontSize:r.h2},heading3:{fontSize:r.h3},heading4:{fontSize:r.h4},heading5:{fontSize:r.h5,fontWeight:"bold"},heading6:{fontSize:r.h6,fontStyle:"italic"}}})(HeadingRenderer);n.d(e,"a",function(){return p})},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(11),u=n(232),l=n.n(u),c=function plural(t,e){return 1===t.length?e:e+"s"},p=function list(t){return t.map(function(t){return t.description}).join(", ")},f=function paragraphs(t){return t.map(function(t){return t.description}).join("\n\n")},h={deprecated:function deprecated(t){return"**Deprecated:** "+t[0].description},see:function see(t){return f(t)},link:function link(t){return f(t)},author:function author(t){return c(t,"Author")+": "+p(t)},version:function version(t){return"Version: "+t[0].description},since:function since(t){return"Since: "+t[0].description}};function getMarkdown(t){return l()(h,function(e,n){return t[n]&&e(t[n])}).filter(Boolean).join("\n\n")}function JsDoc(t){var e=getMarkdown(t);return e?i.a.createElement(s.a,{text:e}):null}JsDoc.propTypes={deprecated:a.a.array,see:a.a.array,link:a.a.array,author:a.a.array,version:a.a.array,since:a.a.array},n.d(e,"a",function(){return JsDoc})},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(3),u=n(11),l=n(56),c=n(45),p=n(78),f=n.n(p),h=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function ArgumentRenderer(t){var e=t.classes,n=t.name,r=t.type,o=t.description,a=t.returns,s=t.block,p=_objectWithoutProperties(t,["classes","name","type","description","returns","block"]),d=r&&"OptionalType"===r.type,m=p.default;return d&&(r=r.expression),i.a.createElement(f.a,h({className:s&&e.block},p),a&&"Returns",n&&i.a.createElement("span",null,i.a.createElement(l.a,null,n),r&&":"),r&&i.a.createElement(c.a,null,r.name,d&&"?",!!m&&"="+m),r&&o&&" — ",o&&i.a.createElement(u.a,{text:""+o,inline:!0}))}ArgumentRenderer.propTypes={classes:a.a.object.isRequired,name:a.a.string,type:a.a.object,default:a.a.string,description:a.a.string,returns:a.a.bool,block:a.a.bool};var d=Object(s.a)(function styles(t){return{block:{marginBottom:t.space[2]}}})(ArgumentRenderer);n.d(e,"a",function(){return d})},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(3);function ParaRenderer(t){var e=t.classes,n=t.semantic,r=t.children,o=n||"div";return i.a.createElement(o,{className:e.para},r)}ParaRenderer.propTypes={classes:a.a.object.isRequired,semantic:a.a.oneOf(["p"]),children:a.a.node.isRequired};var u=Object(s.a)(function styles(t){var e=t.space,n=t.color,r=t.fontFamily;return{para:{marginTop:0,marginBottom:e[2],color:n.base,fontFamily:r.base,fontSize:"inherit",lineHeight:1.5}}})(ParaRenderer);n.d(e,"a",function(){return u})},function(t,e,n){var r=n(211),i=n(212),o=n(98),a=n(27),s=n(44),u=n(99),l=n(97),c=n(100),p="[object Map]",f="[object Set]",h=Object.prototype.hasOwnProperty;t.exports=function isEmpty(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||c(t)||o(t)))return!t.length;var e=i(t);if(e==p||e==f)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(4),u=n.n(s),l=n(3);function CodeRenderer(t){var e=t.classes,n=t.className,r=t.children,o=u()(n,e.code);return n&&-1!==n.indexOf("lang-")?i.a.createElement("code",{className:o,dangerouslySetInnerHTML:{__html:r}}):i.a.createElement("code",{className:o},r)}CodeRenderer.propTypes={classes:a.a.object.isRequired,className:a.a.string,children:a.a.node.isRequired};var c=Object(l.a)(function styles(t){return{code:{fontFamily:t.fontFamily.monospace,fontSize:"inherit",color:"inherit",background:"transparent",whiteSpace:"inherit"}}})(CodeRenderer);n.d(e,"a",function(){return c})},function(t,e,n){var r=n(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(36),i=n(10)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(6),i=n(35),o=n(10)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e1&&(n=[e.shift()],e.forEach(function(t,e){if(o){var a="separator-"+(t.key||e);i=r.cloneElement(i,{key:a})}return n.push(i,t)})),r.createElement(t.inline?"span":"div",{className:t.className},n)}Group.propTypes={children:i.node,inline:i.bool,separator:i.node,className:i.string},Group.defaultProps={separator:" "},t.exports=Group},function(t,e,n){var r=n(22),i=n(12),o=n(50);t.exports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2),i=n(37),o=n(5),a=n(119),s="["+a+"]",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),c=function(t,e,n){var i={},s=o(function(){return!!a[t]()||"​…"!="​…"[t]()}),u=i[t]=s?e(p):a[t];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},p=c.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=c},function(t,e,n){var r=n(10)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(6);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(73),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e,n){"use strict";n(177);var r=n(17),i=n(21),o=n(5),a=n(37),s=n(10),u=n(134),l=s("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),p=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),h=!o(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),d=h?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!e}):void 0;if(!h||!d||"replace"===t&&!c||"split"===t&&!p){var m=/./[f],v=n(a,f,""[t],function maybeCallNative(t,e,n,r,i){return e.exec===u?h&&!i?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),g=v[0],y=v[1];r(String.prototype,t,g),i(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var r=n(34),i=n(173),o=n(129),a=n(6),s=n(12),u=n(131),l={},c={};(e=t.exports=function(t,e,n,p,f){var h,d,m,v,g=f?function(){return t}:u(t),y=r(n,p,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(h=s(t.length);h>b;b++)if((v=e?y(a(d=t[b])[0],d[1]):y(t[b]))===l||v===c)return v}else for(m=g.call(t);!(d=m.next()).done;)if((v=i(m,y,d.value,e))===l||v===c)return v}).BREAK=l,e.RETURN=c},function(t,e,n){var r=n(7).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(7),i=n(2),o=n(17),a=n(62),s=n(41),u=n(86),l=n(61),c=n(8),p=n(5),f=n(82),h=n(57),d=n(120);t.exports=function(t,e,n,m,v,g){var y=r[t],b=y,_=v?"set":"add",x=b&&b.prototype,w={},S=function(t){var e=x[t];o(x,t,"delete"==t?function(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function has(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function get(t){return g&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function add(t){return e.call(this,0===t?0:t),this}:function set(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(g||x.forEach&&!p(function(){(new b).entries().next()}))){var C=new b,E=C[_](g?{}:-0,1)!=C,k=p(function(){C.has(1)}),P=f(function(t){new b(t)}),O=!g&&p(function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)});P||((b=e(function(e,n){l(e,b,t);var r=d(new y,e,b);return null!=n&&u(n,v,r[_],r),r})).prototype=x,x.constructor=b),(k||O)&&(S("delete"),S("has"),v&&S("get")),(O||E)&&S(_),g&&x.clear&&delete x.clear}else b=m.getConstructor(e,t,v,_),a(b.prototype,n),s.NEED=!0;return h(b,t),w[t]=b,i(i.G+i.W+i.F*(b!=y),w),g||m.setStrong(b,t,v),b}},function(t,e,n){for(var r,i=n(7),o=n(21),a=n(47),s=a("typed_array"),u=a("view"),l=!(!i.ArrayBuffer||!i.DataView),c=l,p=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");p<9;)(r=i[f[p++]])?(o(r.prototype,s,!0),o(r.prototype,u,!0)):c=!1;t.exports={ABV:l,CONSTR:c,TYPED:s,VIEW:u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function toCssValue(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"unnamed",e=arguments[1],n=arguments[2],a=n.jss,s=(0,o.default)(e),u=a.plugins.onCreateRule(t,s,n);if(u)return u;"@"===t[0]&&(0,r.default)(!1,"[JSS] Unknown at-rule %s",t);return new i.default(t,s,n)};var r=_interopRequireDefault(n(42)),i=_interopRequireDefault(n(64)),o=_interopRequireDefault(n(433));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){var r=n(456),i=n(457),o=n(458),a=n(459),s=n(460);function ListCache(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}var p=function mapSizeToStyle(t){return{xs:c.a.xs,sm:c.a.sm,md:c.a.md,lg:c.a.lg,"extra-small":c.a.xs,small:c.a.sm,medium:c.a.md,large:c.a.lg}[t]},f=function ModalContent(t){var e=t.className,n=t.size,r=_objectWithoutProperties(t,["className","size"]);return u.a.createElement("div",_extends({},r,{className:i()(e,c.a.modalContent,p(n))}))};f.propTypes={size:a.a.oneOf(["","xs","sm","md","lg","large","medium","small","extra-small"])},e.a=f},function(t,e,n){var r=n(558)(n(559));t.exports=r},function(t,e){t.exports={HOMEPAGE:"https://react-styleguidist.js.org/",BUGS:"https://github.com/styleguidist/react-styleguidist/issues",DOCS_CONFIG:"https://react-styleguidist.js.org/docs/configuration.html",DOCS_COMPONENTS:"https://react-styleguidist.js.org/docs/components.html",DOCS_WEBPACK:"https://react-styleguidist.js.org/docs/webpack.html",DOCS_DOCUMENTING:"https://react-styleguidist.js.org/docs/documenting.html",DOCS_THIRDPARTIES:"https://react-styleguidist.js.org/docs/thirdparties.html"}},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(4),u=n.n(s),l=n(3),c=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function LinkRenderer(t){var e=t.classes,n=t.children,r=_objectWithoutProperties(t,["classes","children"]);return i.a.createElement("a",c({},r,{className:u()(e.link,r.className)}),n)}LinkRenderer.propTypes={children:a.a.node,className:a.a.string,classes:a.a.object.isRequired};var p=Object(l.a)(function styles(t){var e=t.color;return{link:{"&, &:link, &:visited":{fontSize:"inherit",color:e.link,textDecoration:"none"},"&:hover, &:active":{isolate:!1,color:e.linkHover,cursor:"pointer"}}}})(LinkRenderer);n.d(e,"a",function(){return p})},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(3);function TableRenderer(t){var e=t.classes,n=t.columns,r=t.rows,o=t.getRowKey;return i.a.createElement("table",{className:e.table},i.a.createElement("thead",{className:e.tableHead},i.a.createElement("tr",null,n.map(function(t){var n=t.caption;return i.a.createElement("th",{key:n,className:e.cellHeading},n)}))),i.a.createElement("tbody",null,r.map(function(t){return i.a.createElement("tr",{key:o(t)},n.map(function(n,r){var o=n.render;return i.a.createElement("td",{key:r,className:e.cell},o(t))}))})))}TableRenderer.propTypes={classes:a.a.object.isRequired,columns:a.a.arrayOf(a.a.shape({caption:a.a.string.isRequired,render:a.a.func.isRequired})).isRequired,rows:a.a.arrayOf(a.a.object).isRequired,getRowKey:a.a.func.isRequired};var u=Object(s.a)(function styles(t){var e=t.space,n=t.color,r=t.fontFamily,i=t.fontSize;return{table:{width:"100%",borderCollapse:"collapse",marginBottom:e[4]},tableHead:{borderBottom:[[1,n.border,"solid"]]},cellHeading:{color:n.base,paddingRight:e[2],paddingBottom:e[1],textAlign:"left",fontFamily:r.base,fontWeight:"bold",fontSize:i.small,whiteSpace:"nowrap"},cell:{color:n.base,paddingRight:e[2],paddingTop:e[1],paddingBottom:e[1],verticalAlign:"top",fontFamily:r.base,fontSize:i.small,"&:last-child":{isolate:!1,width:"99%",paddingRight:0},"& p:last-child":{isolate:!1,marginBottom:0}}}})(TableRenderer);n.d(e,"a",function(){return u})},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(67),u=n(65),l=n(3),c=Object.assign||function(t){for(var e=1;e0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function sign(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function expm1(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(28),i=n(37);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(48),i=n(2),o=n(17),a=n(21),s=n(58),u=n(172),l=n(57),c=n(53),p=n(10)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,m,v,g){u(n,e,d);var y,b,_,x=function(t){if(!f&&t in E)return E[t];switch(t){case"keys":return function keys(){return new n(this,t)};case"values":return function values(){return new n(this,t)}}return function entries(){return new n(this,t)}},w=e+" Iterator",S="values"==m,C=!1,E=t.prototype,k=E[p]||E["@@iterator"]||m&&E[m],P=k||x(m),O=m?S?x("entries"):P:void 0,j="Array"==e&&E.entries||k;if(j&&(_=c(j.call(new t)))!==Object.prototype&&_.next&&(l(_,w,!0),r||"function"==typeof _[p]||a(_,p,h)),S&&k&&"values"!==k.name&&(C=!0,P=function values(){return k.call(this)}),r&&!g||!f&&!C&&E[p]||a(E,p,P),s[e]=P,s[w]=h,m)if(y={values:S?P:x("values"),keys:v?P:x("keys"),entries:O},g)for(b in y)b in E||o(E,b,y[b]);else i(i.P+i.F*(f||C),e,y);return y}},function(t,e,n){var r=n(127),i=n(37);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(8),i=n(36),o=n(10)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(10)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(58),i=n(10)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(13),i=n(46);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(73),i=n(10)("iterator"),o=n(58);t.exports=n(15).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(18),i=n(50),o=n(12);t.exports=function fill(t){for(var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(59),i=n(176),o=n(58),a=n(22);t.exports=n(125)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,i,o=n(83),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,l=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(l||c)&&(u=function exec(t){var e,n,r,i,u=this;return c&&(n=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),l&&(e=u.lastIndex),r=a.call(u,t),l&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),c&&r&&r.length>1&&s.call(r[0],n,function(){for(i=1;in;)e.push(arguments[n++]);return g[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},h=function clearImmediate(t){delete g[t]},"process"==n(36)(p)?r=function(t){p.nextTick(a(y,t,1))}:m&&m.now?r=function(t){m.now(a(y,t,1))}:d?(o=(i=new d).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):r="onreadystatechange"in l("script")?function(t){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:f,clear:h}},function(t,e,n){"use strict";var r=n(7),i=n(14),o=n(48),a=n(89),s=n(21),u=n(62),l=n(5),c=n(61),p=n(28),f=n(12),h=n(184),d=n(52).f,m=n(13).f,v=n(132),g=n(57),y="prototype",b="Wrong index!",_=r.ArrayBuffer,x=r.DataView,w=r.Math,S=r.RangeError,C=r.Infinity,E=_,k=w.abs,P=w.pow,O=w.floor,j=w.log,T=w.LN2,R=i?"_b":"buffer",M=i?"_l":"byteLength",N=i?"_o":"byteOffset";function packIEEE754(t,e,n){var r,i,o,a=new Array(n),s=8*n-e-1,u=(1<>1,c=23===e?P(2,-24)-P(2,-77):0,p=0,f=t<0||0===t&&1/t<0?1:0;for((t=k(t))!=t||t===C?(i=t!=t?1:0,r=u):(r=O(j(t)/T),t*(o=P(2,-r))<1&&(r--,o*=2),(t+=r+l>=1?c/o:c*P(2,1-l))*o>=2&&(r++,o/=2),r+l>=u?(i=0,r=u):r+l>=1?(i=(t*o-1)*P(2,e),r+=l):(i=t*P(2,l-1)*P(2,e),r=0));e>=8;a[p++]=255&i,i/=256,e-=8);for(r=r<0;a[p++]=255&r,r/=256,s-=8);return a[--p]|=128*f,a}function unpackIEEE754(t,e,n){var r,i=8*n-e-1,o=(1<>1,s=i-7,u=n-1,l=t[u--],c=127&l;for(l>>=7;s>0;c=256*c+t[u],u--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=e;s>0;r=256*r+t[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return r?NaN:l?-C:C;r+=P(2,e),c-=a}return(l?-1:1)*r*P(2,c-e)}function unpackI32(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function packI8(t){return[255&t]}function packI16(t){return[255&t,t>>8&255]}function packI32(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function packF64(t){return packIEEE754(t,52,8)}function packF32(t){return packIEEE754(t,23,4)}function addGetter(t,e,n){m(t[y],e,{get:function(){return this[n]}})}function get(t,e,n,r){var i=h(+n);if(i+e>t[M])throw S(b);var o=t[R]._b,a=i+t[N],s=o.slice(a,a+e);return r?s:s.reverse()}function set(t,e,n,r,i,o){var a=h(+n);if(a+e>t[M])throw S(b);for(var s=t[R]._b,u=a+t[N],l=r(+i),c=0;cD;)(I=A[D++])in _||s(_,I,E[I]);o||(L.constructor=_)}var F=new x(new _(2)),U=x[y].setInt8;F.setInt8(0,2147483648),F.setInt8(1,2147483649),!F.getInt8(0)&&F.getInt8(1)||u(x[y],{setInt8:function setInt8(t,e){U.call(this,t,e<<24>>24)},setUint8:function setUint8(t,e){U.call(this,t,e<<24>>24)}},!0)}else _=function ArrayBuffer(t){c(this,_,"ArrayBuffer");var e=h(t);this._b=v.call(new Array(e),0),this[M]=e},x=function DataView(t,e,n){c(this,x,"DataView"),c(t,_,"DataView");var r=t[M],i=p(e);if(i<0||i>r)throw S("Wrong offset!");if(i+(n=void 0===n?r-i:f(n))>r)throw S("Wrong length!");this[R]=t,this[N]=i,this[M]=n},i&&(addGetter(_,"byteLength","_l"),addGetter(x,"buffer","_b"),addGetter(x,"byteLength","_l"),addGetter(x,"byteOffset","_o")),u(x[y],{getInt8:function getInt8(t){return get(this,1,t)[0]<<24>>24},getUint8:function getUint8(t){return get(this,1,t)[0]},getInt16:function getInt16(t){var e=get(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function getUint16(t){var e=get(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function getInt32(t){return unpackI32(get(this,4,t,arguments[1]))},getUint32:function getUint32(t){return unpackI32(get(this,4,t,arguments[1]))>>>0},getFloat32:function getFloat32(t){return unpackIEEE754(get(this,4,t,arguments[1]),23,4)},getFloat64:function getFloat64(t){return unpackIEEE754(get(this,8,t,arguments[1]),52,8)},setInt8:function setInt8(t,e){set(this,1,t,packI8,e)},setUint8:function setUint8(t,e){set(this,1,t,packI8,e)},setInt16:function setInt16(t,e){set(this,2,t,packI16,e,arguments[2])},setUint16:function setUint16(t,e){set(this,2,t,packI16,e,arguments[2])},setInt32:function setInt32(t,e){set(this,4,t,packI32,e,arguments[2])},setUint32:function setUint32(t,e){set(this,4,t,packI32,e,arguments[2])},setFloat32:function setFloat32(t,e){set(this,4,t,packF32,e,arguments[2])},setFloat64:function setFloat64(t,e){set(this,8,t,packF64,e,arguments[2])}});g(_,"ArrayBuffer"),g(x,"DataView"),s(x[y],a.VIEW,!0),e.ArrayBuffer=_,e.DataView=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function toCss(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="";if(!e)return i;var o=n.indent,a=void 0===o?0:o,s=e.fallbacks;if(a++,s)if(Array.isArray(s))for(var u=0;u-1&&t%1==0&&t<=n}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function isIndex(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var a=function IconBase(t,e){var n=t.children,o=t.color,a=t.size,s=t.style,u=t.width,l=t.height,c=_objectWithoutProperties(t,["children","color","size","style","width","height"]),p=e.reactIconBase,f=void 0===p?{}:p,h=a||f.size||"1em";return i.default.createElement("svg",r({children:n,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:l||h,width:u||h},f,c,{style:r({verticalAlign:"middle",color:o||f.color},f.style||{},s)}))};a.propTypes={color:o.default.string,size:o.default.oneOfType([o.default.string,o.default.number]),width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),style:o.default.object},a.contextTypes={reactIconBase:o.default.shape(a.propTypes)},e.default=a,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.createGenerateClassName=e.sheets=e.RuleList=e.SheetsManager=e.SheetsRegistry=e.toCssValue=e.getDynamicStyles=void 0;var r=n(431);Object.defineProperty(e,"getDynamicStyles",{enumerable:!0,get:function get(){return _interopRequireDefault(r).default}});var i=n(90);Object.defineProperty(e,"toCssValue",{enumerable:!0,get:function get(){return _interopRequireDefault(i).default}});var o=n(190);Object.defineProperty(e,"SheetsRegistry",{enumerable:!0,get:function get(){return _interopRequireDefault(o).default}});var a=n(432);Object.defineProperty(e,"SheetsManager",{enumerable:!0,get:function get(){return _interopRequireDefault(a).default}});var s=n(75);Object.defineProperty(e,"RuleList",{enumerable:!0,get:function get(){return _interopRequireDefault(s).default}});var u=n(139);Object.defineProperty(e,"sheets",{enumerable:!0,get:function get(){return _interopRequireDefault(u).default}});var l=n(193);Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function get(){return _interopRequireDefault(l).default}});var c=_interopRequireDefault(n(438));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var p=e.create=function create(t){return new c.default(t)};e.default=p()},function(t,e,n){var r=n(143),i="Expected a function";function memoize(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(memoize.Cache||r),n}memoize.Cache=r,t.exports=memoize},function(t,e,n){var r=n(215);t.exports=function get(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(455),i=n(505)(function(t,e,n){r(t,e,n)});t.exports=i},function(t,e,n){var r=n(563);t.exports=function isNaN(t){return r(t)&&t!=+t}},function(t,e,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(t,e){return e?e.querySelector(t):document.querySelector(t)},u=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=s.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),l=null,c=0,p=[],f=n(417);function addStylesToDom(t,e){for(var n=0;n=0&&p.splice(e,1)}function createStyleElement(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=getNonce();n&&(t.attrs.nonce=n)}return addAttrs(e,t.attrs),insertStyleElement(t,e),e}function createLinkElement(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",addAttrs(e,t.attrs),insertStyleElement(t,e),e}function addAttrs(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function getNonce(){return n.nc}function addStyle(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=c++;n=l||(l=createStyleElement(e)),r=applyToSingletonTag.bind(null,n,a,!1),i=applyToSingletonTag.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=createLinkElement(e),r=updateLink.bind(null,n,e),i=function(){removeStyleElement(n),n.href&&URL.revokeObjectURL(n.href)}):(n=createStyleElement(e),r=applyToTag.bind(null,n),i=function(){removeStyleElement(n)});return r(t),function updateStyle(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=listToStyles(t,e);return addStylesToDom(n,e),function update(t){for(var r=[],i=0;iu;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(13),i=n(6),o=n(49);t.exports=n(14)?Object.defineProperties:function defineProperties(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(22),i=n(52).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function getOwnPropertyNames(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){"use strict";var r=n(49),i=n(80),o=n(72),a=n(18),s=n(71),u=Object.assign;t.exports=!u||n(5)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function assign(t,e){for(var n=a(t),u=arguments.length,l=1,c=i.f,p=o.f;u>l;)for(var f,h=s(arguments[l++]),d=c?r(h).concat(c(h)):r(h),m=d.length,v=0;m>v;)p.call(h,f=d[v++])&&(n[f]=h[f]);return n}:u},function(t,e){t.exports=Object.is||function is(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(35),i=n(8),o=n(166),a=[].slice,s={},u=function(t,e,n){if(!(e in s)){for(var r=[],i=0;i>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(7).parseFloat,i=n(81).trim;t.exports=1/r(n(119)+"-0")!=-1/0?function parseFloat(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(36);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(8),i=Math.floor;t.exports=function isInteger(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e){t.exports=Math.log1p||function log1p(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(51),i=n(46),o=n(57),a={};n(21)(a,n(10)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(6);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(35),i=n(18),o=n(71),a=n(12);t.exports=function(t,e,n,s,u){r(e);var l=i(t),c=o(l),p=a(l.length),f=u?p-1:0,h=u?-1:1;if(n<2)for(;;){if(f in c){s=c[f],f+=h;break}if(f+=h,u?f<0:p<=f)throw TypeError("Reduce of empty array with no initial value")}for(;u?f>=0:p>f;f+=h)f in c&&(s=e(s,c[f],f,l));return s}},function(t,e,n){"use strict";var r=n(18),i=n(50),o=n(12);t.exports=[].copyWithin||function copyWithin(t,e){var n=r(this),a=o(n.length),s=i(t,a),u=i(e,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:i(l,a))-u,a-s),p=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=p,u+=p;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(134);n(2)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(14)&&"g"!=/./g.flags&&n(13).f(RegExp.prototype,"flags",{configurable:!0,get:n(83)})},function(t,e,n){"use strict";var r,i,o,a,s=n(48),u=n(7),l=n(34),c=n(73),p=n(2),f=n(8),h=n(35),d=n(61),m=n(86),v=n(74),g=n(136).set,y=n(361)(),b=n(180),_=n(362),x=n(87),w=n(181),S=u.TypeError,C=u.process,E=C&&C.versions,k=E&&E.v8||"",P=u.Promise,O="process"==c(C),j=function(){},T=i=b.f,R=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n(10)("species")]=function(t){t(j,j)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof e&&0!==k.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),M=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},N=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,s=i?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(i||(2==t._h&&A(t),t._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===e.promise?l(S("Promise-chain cycle")):(o=M(n))?o.call(n,u,l):u(n)):l(r)}catch(t){c&&!a&&c.exit(),l(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){g.call(u,function(){var e,n,r,i=t._v,o=L(t);if(o&&(e=_(function(){O?C.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=O||L(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},A=function(t){g.call(u,function(){var e;O?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),N(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=M(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,l(F,r,1),l(D,r,1))}catch(t){D.call(r,t)}}):(n._v=t,n._s=1,N(n,!1))}catch(t){D.call({_w:n,_d:!1},t)}}};R||(P=function Promise(t){d(this,P,"Promise","_h"),h(t),r.call(this);try{t(l(F,this,1),l(D,this,1))}catch(t){D.call(this,t)}},(r=function Promise(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(62)(P.prototype,{then:function then(t,e){var n=T(v(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&N(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(F,t,1),this.reject=l(D,t,1)},b.f=T=function(t){return t===P||t===a?new o(t):i(t)}),p(p.G+p.W+p.F*!R,{Promise:P}),n(57)(P,"Promise"),n(60)("Promise"),a=n(15).Promise,p(p.S+p.F*!R,"Promise",{reject:function reject(t){var e=T(this);return(0,e.reject)(t),e.promise}}),p(p.S+p.F*(s||!R),"Promise",{resolve:function resolve(t){return w(s&&this===a?P:this,t)}}),p(p.S+p.F*!(R&&n(82)(function(t){P.all(t).catch(j)})),"Promise",{all:function all(t){var e=this,n=T(e),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,a=1;m(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function race(t){var e=this,n=T(e),r=n.reject,i=_(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){"use strict";var r=n(35);function PromiseCapability(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new PromiseCapability(t)}},function(t,e,n){var r=n(6),i=n(8),o=n(180);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(13).f,i=n(51),o=n(62),a=n(34),s=n(61),u=n(86),l=n(125),c=n(176),p=n(60),f=n(14),h=n(41).fastKey,d=n(63),m=f?"_s":"size",v=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var c=t(function(t,r){s(t,c,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,null!=r&&u(r,n,t[l],t)});return o(c.prototype,{clear:function clear(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=d(this,e),r=v(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function forEach(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function has(t){return!!v(d(this,e),t)}}),f&&r(c.prototype,"size",{get:function(){return d(this,e)[m]}}),c},def:function(t,e,n){var r,i,o=v(t,e);return o?o.v=n:(t._l=o={i:i=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:v,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=d(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?c(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),p(e)}}},function(t,e,n){"use strict";var r=n(62),i=n(41).getWeak,o=n(6),a=n(8),s=n(61),u=n(86),l=n(31),c=n(20),p=n(63),f=l(5),h=l(6),d=0,m=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return f(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var l=t(function(t,r){s(t,l,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=r&&u(r,n,t[o],t)});return r(l.prototype,{delete:function(t){if(!a(t))return!1;var n=i(t);return!0===n?m(p(this,e)).delete(t):n&&c(n,this._i)&&delete n[this._i]},has:function has(t){if(!a(t))return!1;var n=i(t);return!0===n?m(p(this,e)).has(t):n&&c(n,this._i)}}),l},def:function(t,e,n){var r=i(o(e),!0);return!0===r?m(t).set(e,n):r[t._i]=n,t},ufstore:m}},function(t,e,n){var r=n(28),i=n(12);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(52),i=n(80),o=n(6),a=n(7).Reflect;t.exports=a&&a.ownKeys||function ownKeys(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(12),i=n(121),o=n(37);t.exports=function(t,e,n,a){var s=String(o(t)),u=s.length,l=void 0===n?" ":String(n),c=r(e);if(c<=u||""==l)return s;var p=c-u,f=i.call(l,Math.ceil(p/l.length));return f.length>p&&(f=f.slice(0,p)),a?f+s:s+f}},function(t,e,n){var r=n(49),i=n(22),o=n(72).f;t.exports=function(t){return function(e){for(var n,a=i(e),s=r(a),u=s.length,l=0,c=[];u>l;)o.call(a,n=s[l++])&&c.push(t?[n,a[n]]:a[n]);return c}}},function(t,e,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function toObject(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=toObject(t),u=1;u1)for(var n=1;n=this.index)e.push(t);else for(var r=0;rn)return void e.splice(r,0,t)}},{key:"reset",value:function reset(){this.registry=[]}},{key:"remove",value:function remove(t){var e=this.registry.indexOf(t);this.registry.splice(e,1)}},{key:"toString",value:function toString(t){return this.registry.filter(function(t){return t.attached}).map(function(e){return e.toString(t)}).join("\n")}},{key:"index",get:function get(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),SheetsRegistry}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(n(434));e.default=function(t){return t&&t[r.default]&&t===t[r.default]()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function linkRule(t,e){t.renderable=e,t.rules&&e.cssRules&&t.rules.link(e.cssRules)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=_interopRequireDefault(n(42)),i=(_interopRequireDefault(n(194)),_interopRequireDefault(n(437)));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}e.default=function(){var t=0;return function(e,n){(t+=1)>1e10&&(0,r.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",t);var o="c",a="";return n&&(o=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(a+=n.options.jss.id)),""+o+i.default+a+t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e-1)return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_6__.a,null,Object(_util__WEBPACK_IMPORTED_MODULE_14__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_14__.c)(prop.defaultValue.value)));if("func"===propName||"function"===propName)return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_11__.a,{size:"small",color:"light",underlined:!0,title:Object(_util__WEBPACK_IMPORTED_MODULE_14__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_14__.c)(prop.defaultValue.value))},"Function");if("shape"===propName||"object"===propName)try{var object=eval("("+prop.defaultValue.value+")");return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_11__.a,{size:"small",color:"light",underlined:!0,title:javascript_stringify__WEBPACK_IMPORTED_MODULE_3___default()(object,null,2)},"Shape")}catch(t){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_11__.a,{size:"small",color:"light",underlined:!0,title:prop.defaultValue.value},"Shape")}}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_6__.a,null,Object(_util__WEBPACK_IMPORTED_MODULE_14__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_14__.c)(prop.defaultValue.value)))}return prop.required?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_11__.a,{size:"small",color:"light"},"Required"):""}function renderDescription(t){var e=t.description,n=t.tags,r=void 0===n?{}:n,i=renderExtra(t),o=[].concat(_toConsumableArray(r.arg||[]),_toConsumableArray(r.argument||[]),_toConsumableArray(r.param||[])),a=r.return&&r.return[0]||r.returns&&r.returns[0];return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",null,e&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Markdown__WEBPACK_IMPORTED_MODULE_8__.a,{text:e}),i&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Para__WEBPACK_IMPORTED_MODULE_12__.a,null,i),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_JsDoc__WEBPACK_IMPORTED_MODULE_7__.a,r),o.length>0&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Arguments__WEBPACK_IMPORTED_MODULE_4__.a,{args:o,heading:!0}),a&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Argument__WEBPACK_IMPORTED_MODULE_5__.a,_extends({},a,{returns:!0})))}function renderExtra(t){var e=Object(_util__WEBPACK_IMPORTED_MODULE_14__.a)(t);if(!e)return null;switch(e.name){case"enum":return renderEnum(t);case"union":return renderUnion(t);case"shape":return renderShape(t.type.value);case"arrayOf":case"objectOf":return"shape"===e.value.name?renderShape(t.type.value.value):null;default:return null}}function renderUnion(t){var e=Object(_util__WEBPACK_IMPORTED_MODULE_14__.a)(t);if(!Array.isArray(e.value))return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",null,e.value);var n=e.value.map(function(t,e){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_10__.a,{key:t.name+"-"+e},renderType(t))});return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span",null,"One of type:"," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_group__WEBPACK_IMPORTED_MODULE_2___default.a,{separator:", ",inline:!0},n))}function renderName(t){var e=t.name,n=t.tags,r=void 0===n?{}:n;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Name__WEBPACK_IMPORTED_MODULE_9__.a,{deprecated:!!r.deprecated},e)}function renderTypeColumn(t){return t.flowType?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_10__.a,null,renderFlowType(Object(_util__WEBPACK_IMPORTED_MODULE_14__.a)(t))):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_10__.a,null,renderType(Object(_util__WEBPACK_IMPORTED_MODULE_14__.a)(t)))}function getRowKey(t){return t.name}var columns=[{caption:"Prop name",render:renderName},{caption:"Type",render:renderTypeColumn},{caption:"Default",render:renderDefault},{caption:"Description",render:renderDescription}];function PropsRenderer(t){var e=t.props;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Table__WEBPACK_IMPORTED_MODULE_13__.a,{columns:columns,rows:e,getRowKey:getRowKey})}PropsRenderer.propTypes={props:prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired}},function(t,e,n){"use strict";(function(t){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n(514),i=n(515),o=n(516);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(t,e){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|t}function byteLength(t,e){if(Buffer.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(t).length;default:if(r)return utf8ToBytes(t).length;e=(""+e).toLowerCase(),r=!0}}function slowToString(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return hexSlice(this,e,n);case"utf8":case"utf-8":return utf8Slice(this,e,n);case"ascii":return asciiSlice(this,e,n);case"latin1":case"binary":return latin1Slice(this,e,n);case"base64":return base64Slice(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function swap(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function bidirectionalIndexOf(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=Buffer.from(e,r)),Buffer.isBuffer(e))return 0===e.length?-1:arrayIndexOf(t,e,n,r,i);if("number"==typeof e)return e&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):arrayIndexOf(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function read(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var c=!0,p=0;pi&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return decodeCodePointsArray(r)}e.Buffer=Buffer,e.SlowBuffer=function SlowBuffer(t){+t!=t&&(t=0);return Buffer.alloc(+t)},e.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(t){return t.__proto__=Buffer.prototype,t},Buffer.from=function(t,e,n){return from(null,t,e,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(t,e,n){return alloc(null,t,e,n)},Buffer.allocUnsafe=function(t){return allocUnsafe(null,t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(null,t)},Buffer.isBuffer=function isBuffer(t){return!(null==t||!t._isBuffer)},Buffer.compare=function compare(t,e){if(!Buffer.isBuffer(t)||!Buffer.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},Buffer.prototype.compare=function compare(t,e,n,r,i){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n),c=0;ci)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return hexWrite(this,t,e,n);case"utf8":case"utf-8":return utf8Write(this,t,e,n);case"ascii":return asciiWrite(this,t,e,n);case"latin1":case"binary":return latin1Write(this,t,e,n);case"base64":return base64Write(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var a=4096;function decodeCodePointsArray(t){var e=t.length;if(e<=a)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function checkInt(t,e,n,r,i,o){if(!Buffer.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function objectWriteUInt16(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function objectWriteUInt32(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function checkIEEE754(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(t,e,n,r,o){return o||checkIEEE754(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function writeDouble(t,e,n,r,o){return o||checkIEEE754(t,0,n,8),i.write(t,e,n,r,52,8),n+8}Buffer.prototype.slice=function slice(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},Buffer.prototype.readUInt8=function readUInt8(t,e){return e||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function readUInt16LE(t,e){return e||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(t,e){return e||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(t,e){return e||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(t,e){return e||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function readIntLE(t,e,n){t|=0,e|=0,n||checkOffset(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},Buffer.prototype.readIntBE=function readIntBE(t,e,n){t|=0,e|=0,n||checkOffset(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},Buffer.prototype.readInt8=function readInt8(t,e){return e||checkOffset(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Buffer.prototype.readInt16LE=function readInt16LE(t,e){e||checkOffset(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function readInt16BE(t,e){e||checkOffset(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function readInt32LE(t,e){return e||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(t,e){return e||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function readFloatLE(t,e){return e||checkOffset(t,4,this.length),i.read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(t,e){return e||checkOffset(t,4,this.length),i.read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(t,e){return e||checkOffset(t,8,this.length),i.read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(t,e){return e||checkOffset(t,8,this.length),i.read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(t,e,n,r){(t=+t,e|=0,n|=0,r)||checkInt(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},Buffer.prototype.writeUInt8=function writeUInt8(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):objectWriteUInt16(this,t,e,!0),e+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):objectWriteUInt16(this,t,e,!1),e+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):objectWriteUInt32(this,t,e,!0),e+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):objectWriteUInt32(this,t,e,!1),e+4},Buffer.prototype.writeIntLE=function writeIntLE(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);checkInt(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},Buffer.prototype.writeIntBE=function writeIntBE(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);checkInt(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Buffer.prototype.writeInt8=function writeInt8(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Buffer.prototype.writeInt16LE=function writeInt16LE(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):objectWriteUInt16(this,t,e,!0),e+2},Buffer.prototype.writeInt16BE=function writeInt16BE(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):objectWriteUInt16(this,t,e,!1),e+2},Buffer.prototype.writeInt32LE=function writeInt32LE(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):objectWriteUInt32(this,t,e,!0),e+4},Buffer.prototype.writeInt32BE=function writeInt32BE(t,e,n){return t=+t,e|=0,n||checkInt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):objectWriteUInt32(this,t,e,!1),e+4},Buffer.prototype.writeFloatLE=function writeFloatLE(t,e,n){return writeFloat(this,t,e,!0,n)},Buffer.prototype.writeFloatBE=function writeFloatBE(t,e,n){return writeFloat(this,t,e,!1,n)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(t,e,n){return writeDouble(this,t,e,!0,n)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(t,e,n){return writeDouble(this,t,e,!1,n)},Buffer.prototype.copy=function copy(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function asciiToBytes(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function base64ToBytes(t){return r.toByteArray(base64clean(t))}function blitBuffer(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(25))},function(t,e){t.exports=function arrayMap(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++nf))return!1;var d=c.get(t);if(d&&c.get(e))return d==e;var m=-1,v=!0,g=n&s?new r:void 0;for(c.set(t,e),c.set(e,t);++m=e||n<0||g&&t-m>=p}function timerExpired(){var t=i();if(shouldInvoke(t))return trailingEdge(t);h=setTimeout(timerExpired,remainingWait(t))}function trailingEdge(t){return h=void 0,y&&l?invokeFunc(t):(l=c=void 0,f)}function debounced(){var t=i(),n=shouldInvoke(t);if(l=arguments,c=this,d=t,n){if(void 0===h)return leadingEdge(d);if(g)return h=setTimeout(timerExpired,e),invokeFunc(d)}return void 0===h&&(h=setTimeout(timerExpired,e)),f}return e=o(e)||0,r(n)&&(v=!!n.leading,p=(g="maxWait"in n)?s(o(n.maxWait)||0,e):p,y="trailing"in n?!!n.trailing:y),debounced.cancel=function cancel(){void 0!==h&&clearTimeout(h),m=0,l=d=c=h=void 0},debounced.flush=function flush(){return void 0===h?f:trailingEdge(i())},debounced}},function(t,e,n){var r=n(32),i=n(102),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function toNumber(t){if("number"==typeof t)return t;if(i(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=u.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):s.test(t)?o:+t}},function(t,e,n){ +/*! react-buttons v1.3.1 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-buttons */ +t.exports=function(t){var e={};function __webpack_require__(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.d=function(t,e,n){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},__webpack_require__.n=function(t){var e=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(e,"a",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=6)}([function(t,e){t.exports=n(4)},function(t,e){t.exports=n(1)},function(t,e){t.exports={btn:"buttons---btn---2jZHN",active:"buttons---active---2-a32",focus:"buttons---focus---1kVJZ",hover:"buttons---hover---42FF2",disabled:"buttons---disabled---eCY9b","btn-default":"buttons---btn-default---1wWXD",btnDefault:"buttons---btn-default---1wWXD","btn-primary":"buttons---btn-primary---Wp1wb",btnPrimary:"buttons---btn-primary---Wp1wb","btn-danger":"buttons---btn-danger---1UUqU",btnDanger:"buttons---btn-danger---1UUqU","btn-border":"buttons---btn-border---1O58b",btnBorder:"buttons---btn-border---1O58b",open:"buttons---open---1ju75","dropdown-toggle":"buttons---dropdown-toggle---vMtjL",dropdownToggle:"buttons---dropdown-toggle---vMtjL","btn-link":"buttons---btn-link---1xwS4",btnLink:"buttons---btn-link---1xwS4","btn-lg":"buttons---btn-lg---2xtUV",btnLg:"buttons---btn-lg---2xtUV","btn-group-lg":"buttons---btn-group-lg---3C8An",btnGroupLg:"buttons---btn-group-lg---3C8An","btn-compact":"buttons---btn-compact---mXDAU",btnCompact:"buttons---btn-compact---mXDAU","btn-md":"buttons---btn-md---HRR_F",btnMd:"buttons---btn-md---HRR_F","btn-group-md":"buttons---btn-group-md---3FQVP",btnGroupMd:"buttons---btn-group-md---3FQVP","btn-sm":"buttons---btn-sm---3cNnY",btnSm:"buttons---btn-sm---3cNnY","btn-group-sm":"buttons---btn-group-sm---3_QLf",btnGroupSm:"buttons---btn-group-sm---3_QLf","btn-xs":"buttons---btn-xs---2eEDQ",btnXs:"buttons---btn-xs---2eEDQ","btn-group-xs":"buttons---btn-group-xs---1c4pb",btnGroupXs:"buttons---btn-group-xs---1c4pb","btn-block":"buttons---btn-block---1nSNV",btnBlock:"buttons---btn-block---1nSNV","btn-group":"buttons---btn-group---1jaDo",btnGroup:"buttons---btn-group---1jaDo","btn-group-vertical":"buttons---btn-group-vertical---3Lm1e",btnGroupVertical:"buttons---btn-group-vertical---3Lm1e","btn-toolbar":"buttons---btn-toolbar---2-GfJ",btnToolbar:"buttons---btn-toolbar---2-GfJ","input-group":"buttons---input-group---1T18I",inputGroup:"buttons---input-group---1T18I","btn-group-justified":"buttons---btn-group-justified---3qB9u",btnGroupJustified:"buttons---btn-group-justified---3qB9u","dropdown-menu":"buttons---dropdown-menu---1fkH0",dropdownMenu:"buttons---dropdown-menu---1fkH0"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=(i=r=function(t){function Button(){return _classCallCheck(this,Button),_possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).apply(this,arguments))}return _inherits(Button,l.PureComponent),a(Button,[{key:"render",value:function render(){var t,e=this.props,n=e.className,r=e.componentClass,i=e.type,a=e.btnSize,u=e.btnStyle,l=e.active,p=e.hover,h=e.focus,d=e.disabled,m=e.block,v=e.compact,g=e.iconOnly,y=e.dropdownToggle,b=_objectWithoutProperties(e,["className","componentClass","type","btnSize","btnStyle","active","hover","focus","disabled","block","compact","iconOnly","dropdownToggle"]),_=(_defineProperty(t={},f.default.btn,!0),_defineProperty(t,f.default.btnLg,"large"===a||"lg"===a),_defineProperty(t,f.default.btnMd,"medium"===a||"md"===a),_defineProperty(t,f.default.btnSm,"small"===a||"sm"===a),_defineProperty(t,f.default.btnXs,"extra-small"===a||"xs"===a),_defineProperty(t,f.default.btnDefault,"default"===u),_defineProperty(t,f.default.btnPrimary,"primary"===u),_defineProperty(t,f.default.btnDanger,"danger"===u||"emphasis"===u),_defineProperty(t,f.default.btnBorder,"border"===u||"flat"===u),_defineProperty(t,f.default.btnLink,"link"===u),_defineProperty(t,f.default.btnBlock,m),_defineProperty(t,f.default.btnCompact,v||g),_defineProperty(t,f.default.hover,p),_defineProperty(t,f.default.active,l),_defineProperty(t,f.default.focus,h),_defineProperty(t,f.default.dropdownToggle,y),t);return c.default.createElement(r,o({},b,{type:i,className:(0,s.default)(n,_),disabled:d}))}}]),Button}(),r.propTypes={componentClass:u.default.oneOfType([u.default.func,u.default.string]),type:u.default.oneOf(["button","reset","submit"]),btnSize:u.default.oneOf(p.btnSizes),btnStyle:u.default.oneOf(p.btnStyles),active:u.default.bool,hover:u.default.bool,focus:u.default.bool,disabled:u.default.bool,block:u.default.bool,compact:u.default.bool,iconOnly:u.default.bool,dropdownToggle:u.default.bool},r.defaultProps={componentClass:"button",type:"button",btnSize:"md",btnStyle:"default",active:!1,hover:!1,focus:!1,disabled:!1,block:!1,compact:!1,iconOnly:!1,dropdownToggle:!1},i);e.default=h},function(t,e){t.exports=n(0)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.btnSizes=["lg","md","sm","xs","large","medium","small","extra-small"],e.btnStyles=["default","primary","danger","emphasis","border","flat","link"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonToolbar=e.ButtonGroup=e.Button=void 0;var r=_interopRequireDefault(n(3)),i=_interopRequireDefault(n(7)),o=_interopRequireDefault(n(8));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}e.Button=r.default,e.ButtonGroup=i.default,e.ButtonToolbar=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var p=function getComponentType(t){return t?s.default.createElement(t,null).type:void 0},f=function ButtonGroup(t){var e,n=t.btnSize,o=t.btnStyle,f=t.vertical,h=t.dropdownOpen,d=t.children,m=t.className,v=_objectWithoutProperties(t,["btnSize","btnStyle","vertical","dropdownOpen","children","className"]),g=(_defineProperty(e={},c.default.btnGroup,!0),_defineProperty(e,c.default.btnGroupLg,"large"===n||"lg"===n),_defineProperty(e,c.default.btnGroupMd,"medium"===n||"md"===n),_defineProperty(e,c.default.btnGroupSm,"small"===n||"sm"===n),_defineProperty(e,c.default.btnGroupXs,"extra-small"===n||"xs"===n),_defineProperty(e,c.default.btnGroupVertical,f),_defineProperty(e,c.default.open,h),e);return s.default.createElement("div",r({},v,{className:(0,i.default)(m,g)}),s.default.Children.map(d,function(t){if(s.default.isValidElement(t)&&t.type===p(u.default)){var e={};return l.btnSizes.indexOf(n)>=0&&(e.btnSize=n),l.btnStyles.indexOf(o)>=0&&(e.btnStyle=o),(0,a.cloneElement)(t,e)}return t}))};f.propTypes={btnSize:o.default.oneOf(l.btnSizes),btnStyle:o.default.oneOf(l.btnStyles),vertical:o.default.bool,dropdownOpen:o.default.bool},f.defaultProps={vertical:!1,dropdownOpen:!1},e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}e.default=function ButtonToolbar(t){var e=t.className,n=_objectWithoutProperties(t,["className"]);return o.default.createElement("div",r({},n,{className:(0,i.default)(e,a.default.btnToolbar)}))}}])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_interopRequireDefault(n(24)),i=_interopRequireDefault(n(424)),o=_interopRequireDefault(n(425));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var a=r.default.createPortal?i.default:o.default;e.default=a},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(24),a=n.n(o);e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(n,r){var o=null;e||((o=document.createElement("div")).setAttribute("data-portal",""),document&&document.body&&document.body.appendChild(o)),a.a.render(i.a.createElement(t,{onClose:function onClose(){setTimeout(function(){e?a.a.unmountComponentAtNode(e):o&&(a.a.unmountComponentAtNode(o),document&&document.body&&document.body.removeChild(o),o=null),n()},0)}}),e||o)})}},function(t,e,n){"use strict";function symbolObservablePonyfill(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",function(){return symbolObservablePonyfill})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=!1,n=[],r=void 0,i=void 0,o=function setSelector(){i.selector=n.join(",\n")},a=f(o);return{onProcessRule:function onProcessRule(o,u){if(!u||u===r||"style"!==o.type)return;if(!p(o,u,t))return;i||(r=o.options.jss.createStyleSheet(null,s),i=r.addRule("reset",l(t.reset)),r.attach());var c=o.selector;-1===n.indexOf(c)&&(n.push(c),e=a())},onProcessSheet:function onProcessSheet(){!e&&n.length&&o()}}};var o=_interopRequireDefault(n(451)),a=_interopRequireDefault(n(452));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var s={meta:"jss-isolate",index:-1/0,link:!0},u={inherited:o.default,all:a.default},l=function getStyle(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inherited";if("string"==typeof t)return u[t];if("object"===(void 0===t?"undefined":i(t))){if(Array.isArray(t)){var e=t[0],n=t[1];return r({},u[e],n)}return r({},o.default,t)}return o.default},c={keyframes:!0,conditional:!0},p=function shouldIsolate(t,e,n){var r=t.options.parent;if(r&&c[r.type])return!1;var i=null==n.isolate||n.isolate;return null!=e.options.isolate&&(i=e.options.isolate),null!=t.style.isolate&&(i=t.style.isolate,delete t.style.isolate),"string"==typeof i?i===t.key:i},f=function createDebounced(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Date.now();return function(){var r=Date.now();return!(r-n0&&void 0!==arguments[0]?arguments[0]:{});return{onProcessStyle:function onProcessStyle(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=iterate(r,e[r],t);return e},onChangeValue:function onChangeValue(e,n){return iterate(n,e,t)}}};var i=addCamelCasedVersion(function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(n(454)).default);function iterate(t,e,n){if(!e)return e;var o=e,a=void 0===e?"undefined":r(e);switch("object"===a&&Array.isArray(e)&&(a="array"),a){case"object":if("fallbacks"===t){for(var s in e)e[s]=iterate(s,e[s],n);break}for(var u in e)e[u]=iterate(t+"-"+u,e[u],n);break;case"array":for(var l=0;l-1)return registerClass(t,e.split(" "));var i=t.options.parent;if("$"===e[0]){var o=i.getRule(e.substr(1));return o?o===t?((0,r.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",t),!1):(i.classes[t.key]+=" "+i.classes[o.key],!0):((0,r.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",t),!1)}return t.options.parent.classes[t.key]+=" "+e,!0}},function(t,e,n){(function(e){t.exports=function(){var t=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'",'"':'\\"',"\\":"\\\\"};function escapeChar(t){var e=n[t];return e||"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}var r={};"break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ").map(function(t){r[t]=!0});var i=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function isValidVariableName(t){return!r[t]&&i.test(t)}function toGlobalVariable(t){return"Function("+stringify("return this;")+")()"}function toPath(t){for(var e="",n=0;n-1)return void f.push(u.slice(),p[r]);c.push(t),p.push(u.slice())}if(!(u.length>i||s--<=0))return e(t,n,next)}:function(t,e){var r=l.indexOf(t);if(!(r>-1||u.length>i||s--<=0)){l.push(t);var t=e(t,n,next);return l.pop(),t}};if("function"==typeof e){var d=h;h=function(t,n){return d(t,function(t,r,i){return e(t,r,function(t){return n(t,r,i)})})}}var m=h(t,stringify);if(f.length){for(var v=n?"\n":"",g=n?" = ":"=",y=";"+v,d=n?"(function () {":"(function(){",b=["var x"+g+m],_=0;_",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},a=/^[\da-fA-F]+$/,s=/^\d+$/,u="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var l=createCommonjsModule(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function injectDynamicImport(t){var e=t.tokTypes;function parseDynamicImport(){var t=this.startNode();return this.next(),this.type!==e.parenL&&this.unexpected(),this.finishNode(t,n)}function peekNext(){return this.input[this.pos]}return e._import.startsExpr=!0,t.plugins.dynamicImport=function dynamicImportPlugin(t){t.extend("parseStatement",function(t){return function parseStatement(){var n=this.startNode();if(this.type===e._import&&peekNext.call(this)===e.parenL.label){var r=this.parseExpression();return this.parseExpressionStatement(n,r)}for(var i=arguments.length,o=Array(i),a=0;ae)return{line:n+1,column:e-o,char:n};o=a}throw new Error("Could not determine location of character")}function repeat(t,e){for(var n="";e--;)n+=t;return n}function getSnippet(t,e,n){void 0===n&&(n=1);var r=Math.max(e.line-5,0),i=e.line,o=String(i).length,a=t.split("\n").slice(r,i),s=a[a.length-1].slice(0,e.column).replace(/\t/g," ").length,u=a.map(function(t,e){return n=o,(i=String(e+r+1))+repeat(" ",n-i.length)+" : "+t.replace(/\t/g," ");var n,i}).join("\n");return u+="\n"+repeat(" ",o+3+s)+repeat("^",n)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach(function(t){return h[t]=!0}),Scope.prototype={addDeclaration:function addDeclaration(t,e){for(var n=0,r=extractNames(t);n1&&(c=e(o),s.push(function(e,n,s){t.prependRight(i.start,(a?"":n+"var ")+c+" = "),t.overwrite(i.start,r=i.start+1,o),t.appendLeft(r,s),t.overwrite(i.start,r=i.start+1,(a?"":n+"var ")+c+" = "+o+s),t.move(i.start,r,e)})),destructureObjectPattern(t,e,n,i,c,a,s);break;case"ArrayPattern":if(t.remove(r,r=i.start),i.elements.filter(Boolean).length>1){var p=e(o);s.push(function(e,n,s){t.prependRight(i.start,(a?"":n+"var ")+p+" = "),t.overwrite(i.start,r=i.start+1,o,{contentOnly:!0}),t.appendLeft(r,s),t.move(i.start,r,e)}),i.elements.forEach(function(i,o){i&&("RestElement"===i.type?handleProperty(t,e,n,r,i.argument,p+".slice("+o+")",a,s):handleProperty(t,e,n,r,i,p+"["+o+"]",a,s),r=i.end)})}else{var f=findIndex(i.elements,Boolean),h=i.elements[f];"RestElement"===h.type?handleProperty(t,e,n,r,h.argument,o+".slice("+f+")",a,s):handleProperty(t,e,n,r,h,o+"["+f+"]",a,s),r=h.end}t.remove(r,i.end);break;default:throw new Error("Unexpected node type in destructuring ("+i.type+")")}}var v=function(t){function BlockStatement(){t.apply(this,arguments)}return t&&(BlockStatement.__proto__=t),BlockStatement.prototype=Object.create(t&&t.prototype),BlockStatement.prototype.constructor=BlockStatement,BlockStatement.prototype.createScope=function createScope(){var t=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new Scope({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function(e){return t.createdDeclarations.push(e)}}),this.parentIsFunction&&this.parent.params.forEach(function(e){t.scope.addDeclaration(e,"param")})},BlockStatement.prototype.initialise=function initialise(t){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach(function(e){return e.initialise(t)}),this.scope.consolidate()},BlockStatement.prototype.findLexicalBoundary=function findLexicalBoundary(){return"Program"===this.type?this:/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},BlockStatement.prototype.findScope=function findScope(t){return t&&!this.isFunctionBlock?this.parent.findScope(t):this.scope},BlockStatement.prototype.getArgumentsAlias=function getArgumentsAlias(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},BlockStatement.prototype.getArgumentsArrayAlias=function getArgumentsArrayAlias(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},BlockStatement.prototype.getThisAlias=function getThisAlias(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},BlockStatement.prototype.getIndentation=function getIndentation(){if(void 0===this.indentation){for(var t=this.program.magicString.original,e=this.synthetic||!this.body.length,n=e?this.start:this.body[0].start;n&&"\n"!==t[n];)n-=1;for(this.indentation="";;){var r=t[n+=1];if(" "!==r&&"\t"!==r)break;this.indentation+=r}for(var i=this.program.magicString.getIndentString(),o=this.parent;o;)"constructor"!==o.kind||o.parent.parent.superClass||(this.indentation=this.indentation.replace(i,"")),o=o.parent;e&&(this.indentation+=i)}return this.indentation},BlockStatement.prototype.transpile=function transpile(e,n){var r,i,o=this,a=this.getIndentation(),s=[];if(this.argumentsAlias&&s.push(function(t,n,r){var i=n+"var "+o.argumentsAlias+" = arguments"+r;e.appendLeft(t,i)}),this.thisAlias&&s.push(function(t,n,r){var i=n+"var "+o.thisAlias+" = this"+r;e.appendLeft(t,i)}),this.argumentsArrayAlias&&s.push(function(t,n,r){var i=o.scope.createIdentifier("i"),s=n+"var "+i+" = arguments.length, "+o.argumentsArrayAlias+" = Array("+i+");\n"+a+"while ( "+i+"-- ) "+o.argumentsArrayAlias+"["+i+"] = arguments["+i+"]"+r;e.appendLeft(t,s)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,e,n,a,s):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],e,n,a,s),n.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(e),t.prototype.transpile.call(this,e,n),this.createdDeclarations.length&&s.push(function(t,n,r){var i=n+"var "+o.createdDeclarations.join(", ")+r;e.appendLeft(t,i)}),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var u=this.body[0];s.length?(e.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),e.prependRight(u.start,"\n"+a+"return "),e.appendLeft(u.end,";\n")):n.arrow&&(e.prependRight(u.start,"{ return "),e.appendLeft(u.end,"; }"))}else s.length&&e.prependRight(this.start,"{").appendLeft(this.end,"}");i=this.body[0],r=i&&"ExpressionStatement"===i.type&&"Literal"===i.expression.type&&"use strict"===i.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var l="\n"+a,c=";";s.forEach(function(t,e){e===s.length-1&&(c=";\n"),t(r,l,c)})},BlockStatement.prototype.transpileParameters=function transpileParameters(t,e,n,r,i){var o=this;t.forEach(function(a){if("AssignmentPattern"===a.type&&"Identifier"===a.left.type)n.defaultParameter&&i.push(function(t,n,r){var i=n+"if ( "+a.left.name+" === void 0 ) "+a.left.name;e.prependRight(a.left.end,i).move(a.left.end,a.right.end,t).appendLeft(a.right.end,r)});else if("RestElement"===a.type)n.spreadRest&&i.push(function(n,i,s){var u=t[t.length-2];if(u)e.remove(u?u.end:a.start,a.end);else{for(var l=a.start,c=a.end;/\s/.test(e.original[l-1]);)l-=1;for(;/\s/.test(e.original[c]);)c+=1;e.remove(l,c)}var p=a.argument.name,f=o.scope.createIdentifier("len"),h=t.length-1;h?e.prependRight(n,i+"var "+p+" = [], "+f+" = arguments.length - "+h+";\n"+r+"while ( "+f+"-- > 0 ) "+p+"[ "+f+" ] = arguments[ "+f+" + "+h+" ]"+s):e.prependRight(n,i+"var "+p+" = [], "+f+" = arguments.length;\n"+r+"while ( "+f+"-- ) "+p+"[ "+f+" ] = arguments[ "+f+" ]"+s)});else if("Identifier"!==a.type&&n.parameterDestructuring){var s=o.scope.createIdentifier("ref");destructure(e,function(t){return o.scope.createIdentifier(t)},function(t){var e=t.name;return o.scope.resolveName(e)},a,s,!1,i),e.prependRight(a.start,s)}})},BlockStatement.prototype.transpileBlockScopedIdentifiers=function transpileBlockScopedIdentifiers(t){var e=this;Object.keys(this.scope.blockScopedDeclarations).forEach(function(n){for(var r=0,i=e.scope.blockScopedDeclarations[n];r0},ArrowFunctionExpression}(p);function checkConst(t,e){var n=e.findDeclaration(t.name);if(n&&"const"===n.kind)throw new d(t.name+" is read-only",t)}var b=function(t){function AssignmentExpression(){t.apply(this,arguments)}return t&&(AssignmentExpression.__proto__=t),AssignmentExpression.prototype=Object.create(t&&t.prototype),AssignmentExpression.prototype.constructor=AssignmentExpression,AssignmentExpression.prototype.initialise=function initialise(e){if("Identifier"===this.left.type){var n=this.findScope(!1).findDeclaration(this.left.name),r=n&&n.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.left.name]=!0)}t.prototype.initialise.call(this,e)},AssignmentExpression.prototype.transpile=function transpile(e,n){"Identifier"===this.left.type&&checkConst(this.left,this.findScope(!1)),"**="===this.operator&&n.exponentiation?this.transpileExponentiation(e,n):/Pattern/.test(this.left.type)&&n.destructuring&&this.transpileDestructuring(e,n),t.prototype.transpile.call(this,e,n)},AssignmentExpression.prototype.transpileDestructuring=function transpileDestructuring(t){var e=this,n=this.findScope(!0),r=this.findScope(!1),i=n.createDeclaration("assign");t.appendRight(this.left.end,"("+i),t.appendLeft(this.right.end,", ");var o=[];destructure(t,function(t){return n.createDeclaration(t)},function(t){var e=r.resolveName(t.name);return checkConst(t,r),e},this.left,i,!0,o);var a=", ";o.forEach(function(t,n){n===o.length-1&&(a=""),t(e.end,"",a)}),"ExpressionStatement"===this.unparenthesizedParent().type?t.prependRight(this.end,")"):t.appendRight(this.end,", "+i+")")},AssignmentExpression.prototype.transpileExponentiation=function transpileExponentiation(t){for(var e,n=this.findScope(!1),r=this.left.end;"*"!==t.original[r];)r+=1;t.remove(r,r+2);var i=this.left.unparenthesize();if("Identifier"===i.type)e=n.resolveName(i.name);else if("MemberExpression"===i.type){var o,a,s=!1,u=!1,l=this.findNearest(/(?:Statement|Declaration)$/),c=l.getIndentation();"Identifier"===i.property.type?a=i.computed?n.resolveName(i.property.name):i.property.name:(a=n.createDeclaration("property"),u=!0),"Identifier"===i.object.type?o=n.resolveName(i.object.name):(o=n.createDeclaration("object"),s=!0),i.start===l.start?s&&u?(t.prependRight(l.start,o+" = "),t.overwrite(i.object.end,i.property.start,";\n"+c+a+" = "),t.overwrite(i.property.end,i.end,";\n"+c+o+"["+a+"]")):s?(t.prependRight(l.start,o+" = "),t.appendLeft(i.object.end,";\n"+c),t.appendLeft(i.object.end,o)):u&&(t.prependRight(i.property.start,a+" = "),t.appendLeft(i.property.end,";\n"+c),t.move(i.property.start,i.property.end,this.start),t.appendLeft(i.object.end,"["+a+"]"),t.remove(i.object.end,i.property.start),t.remove(i.property.end,i.end)):(s&&u?(t.prependRight(i.start,"( "+o+" = "),t.overwrite(i.object.end,i.property.start,", "+a+" = "),t.overwrite(i.property.end,i.end,", "+o+"["+a+"]")):s?(t.prependRight(i.start,"( "+o+" = "),t.appendLeft(i.object.end,", "+o)):u&&(t.prependRight(i.property.start,"( "+a+" = "),t.appendLeft(i.property.end,", "),t.move(i.property.start,i.property.end,i.start),t.overwrite(i.object.end,i.property.start,"["+a+"]"),t.remove(i.property.end,i.end)),u&&t.appendLeft(this.end," )")),e=o+(i.computed||u?"["+a+"]":"."+a)}t.prependRight(this.right.start,"Math.pow( "+e+", "),t.appendLeft(this.right.end," )")},AssignmentExpression}(p),_=function(t){function BinaryExpression(){t.apply(this,arguments)}return t&&(BinaryExpression.__proto__=t),BinaryExpression.prototype=Object.create(t&&t.prototype),BinaryExpression.prototype.constructor=BinaryExpression,BinaryExpression.prototype.transpile=function transpile(e,n){"**"===this.operator&&n.exponentiation&&(e.prependRight(this.start,"Math.pow( "),e.overwrite(this.left.end,this.right.start,", "),e.appendLeft(this.end," )")),t.prototype.transpile.call(this,e,n)},BinaryExpression}(p),x=/(?:For(?:In|Of)?|While)Statement/,w=function(t){function BreakStatement(){t.apply(this,arguments)}return t&&(BreakStatement.__proto__=t),BreakStatement.prototype=Object.create(t&&t.prototype),BreakStatement.prototype.constructor=BreakStatement,BreakStatement.prototype.initialise=function initialise(){var t=this.findNearest(x),e=this.findNearest("SwitchCase");t&&(!e||t.depth>e.depth)&&(t.canBreak=!0,this.loop=t)},BreakStatement.prototype.transpile=function transpile(t){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new d("Labels are not currently supported in a loop with locally-scoped variables",this);t.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(p),S=function(t){function CallExpression(){t.apply(this,arguments)}return t&&(CallExpression.__proto__=t),CallExpression.prototype=Object.create(t&&t.prototype),CallExpression.prototype.constructor=CallExpression,CallExpression.prototype.initialise=function initialise(e){if(e.spreadRest&&this.arguments.length>1)for(var n=this.findLexicalBoundary(),r=this.arguments.length;r--;){var i=this.arguments[r];"SpreadElement"===i.type&&isArguments(i.argument)&&(this.argumentsArrayAlias=n.getArgumentsArrayAlias())}t.prototype.initialise.call(this,e)},CallExpression.prototype.transpile=function transpile(e,n){if(n.spreadRest&&this.arguments.length){var r,i=!1,o=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===o.type&&(e.remove(o.start,o.argument.start),i=!0):i=spread(e,this.arguments,o.start,this.argumentsArrayAlias),i){var a=null;if("Super"===this.callee.type?a=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(a=this.callee.object),a||"MemberExpression"!==this.callee.type)r="void 0";else if("Identifier"===this.callee.object.type)r=this.callee.object.name;else{r=this.findScope(!0).createDeclaration("ref");var s=this.callee.object;e.prependRight(s.start,"("+r+" = "),e.appendLeft(s.end,")")}e.appendLeft(this.callee.end,".apply"),a?(a.noCall=!0,this.arguments.length>1&&("SpreadElement"!==o.type&&e.prependRight(o.start,"[ "),e.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?e.prependRight(o.start,r+", "):("SpreadElement"===o.type?e.appendLeft(o.start,r+", "):e.appendLeft(o.start,r+", [ "),e.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}n.trailingFunctionCommas&&this.arguments.length&&removeTrailingComma(e,this.arguments[this.arguments.length-1].end),t.prototype.transpile.call(this,e,n)},CallExpression}(p),C=function(t){function ClassBody(){t.apply(this,arguments)}return t&&(ClassBody.__proto__=t),ClassBody.prototype=Object.create(t&&t.prototype),ClassBody.prototype.constructor=ClassBody,ClassBody.prototype.transpile=function transpile(e,n,r,i){var o=this;if(n.classes){var a=this.parent.name,s=e.getIndentString(),u=this.getIndentation()+(r?s:""),l=u+s,c=findIndex(this.body,function(t){return"constructor"===t.kind}),p=this.body[c],f="",d="";if(this.body.length?(e.remove(this.start,this.body[0].start),e.remove(this.body[this.body.length-1].end,this.end)):e.remove(this.start,this.end),p){p.value.body.isConstructorBody=!0;var m=this.body[c-1],v=this.body[c+1];c>0&&(e.remove(m.end,p.start),e.move(p.start,v?v.start:this.end-1,this.body[0].start)),r||e.appendLeft(p.end,";")}var g=!1!==this.program.options.namedFunctionExpressions,y=g||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var b="if ( "+i+" ) "+a+".__proto__ = "+i+";\n"+u+a+".prototype = Object.create( "+i+" && "+i+".prototype );\n"+u+a+".prototype.constructor = "+a+";";if(p)f+="\n\n"+u+b;else f+=(b="function "+a+" () {"+(i?"\n"+l+i+".apply(this, arguments);\n"+u+"}":"}")+(r?"":";")+(this.body.length?"\n\n"+u:"")+b)+"\n\n"+u}else if(!p){var _="function "+(y?a+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(_+=";"),this.body.length&&(_+="\n\n"+u),f+=_}var x,w,S=this.findScope(!1),C=[],E=[];if(this.body.forEach(function(t,n){if("constructor"!==t.kind){if(t.static){var r=" "==e.original[t.start+6]?7:6;e.remove(t.start,t.start+r)}var i,s="method"!==t.kind,l=t.key.name;(h[l]||t.value.body.scope.references[l])&&(l=S.createIdentifier(l));var p=!1;if(t.computed||"Literal"!==t.key.type||(p=!0,t.computed=!0),s){if(t.computed)throw new Error("Computed accessor properties are not currently supported");e.remove(t.start,t.key.start),t.static?(~E.indexOf(t.key.name)||E.push(t.key.name),w||(w=S.createIdentifier("staticAccessors")),i=""+w):(~C.indexOf(t.key.name)||C.push(t.key.name),x||(x=S.createIdentifier("prototypeAccessors")),i=""+x)}else i=t.static?""+a:a+".prototype";t.computed||(i+="."),(c>0&&n===c+1||0===n&&c===o.body.length-1)&&(i="\n\n"+u+i);var f=t.key.end;if(t.computed)if(p)e.prependRight(t.key.start,"["),e.appendLeft(t.key.end,"]");else{for(;"]"!==e.original[f];)f+=1;f+=1}var d=t.computed||s||!g?"":l+" ",m=(s?"."+t.kind:"")+" = function"+(t.value.generator?"* ":" ")+d;e.remove(f,t.value.start),e.prependRight(t.value.start,m),e.appendLeft(t.end,";"),t.value.generator&&e.remove(t.start,t.key.start),e.prependRight(t.start,i)}else{var v=y?" "+a:"";e.overwrite(t.key.start,t.key.end,"function"+v)}}),C.length||E.length){var k=[],P=[];C.length&&(k.push("var "+x+" = { "+C.map(function(t){return t+": { configurable: true }"}).join(",")+" };"),P.push("Object.defineProperties( "+a+".prototype, "+x+" );")),E.length&&(k.push("var "+w+" = { "+E.map(function(t){return t+": { configurable: true }"}).join(",")+" };"),P.push("Object.defineProperties( "+a+", "+w+" );")),p&&(f+="\n\n"+u),f+=k.join("\n"+u),p||(f+="\n\n"+u),d+="\n\n"+u+P.join("\n"+u)}p?e.appendLeft(p.end,f):e.prependRight(this.start,f),e.appendLeft(this.end,d)}t.prototype.transpile.call(this,e,n)},ClassBody}(p);function deindent(t,e){var n=t.start,r=t.end,i=e.getIndentString(),o=i.length,a=n-o;t.program.indentExclusions[a]||e.original.slice(a,n)!==i||e.remove(a,n);for(var s,u=new RegExp(i+"\\S","g"),l=e.original.slice(n,r);s=u.exec(l);){var c=n+s.index;t.program.indentExclusions[c]||e.remove(c,c+o)}}var E=function(t){function ClassDeclaration(){t.apply(this,arguments)}return t&&(ClassDeclaration.__proto__=t),ClassDeclaration.prototype=Object.create(t&&t.prototype),ClassDeclaration.prototype.constructor=ClassDeclaration,ClassDeclaration.prototype.initialise=function initialise(e){this.id?(this.name=this.id.name,this.findScope(!0).addDeclaration(this.id,"class")):this.name=this.findScope(!0).createIdentifier("defaultExport"),t.prototype.initialise.call(this,e)},ClassDeclaration.prototype.transpile=function transpile(t,e){if(e.classes){this.superClass||deindent(this.body,t);var n=this.superClass&&(this.superClass.name||"superclass"),r=this.getIndentation(),i=r+t.getIndentString(),o="ExportDefaultDeclaration"===this.parent.type;o&&t.remove(this.parent.start,this.start);var a=this.start;this.id?(t.overwrite(a,this.id.start,"var "),a=this.id.end):t.prependLeft(a,"var "+this.name),this.superClass?this.superClass.end===this.body.start?(t.remove(a,this.superClass.start),t.appendLeft(a," = (function ("+n+") {\n"+i)):(t.overwrite(a,this.superClass.start," = "),t.overwrite(this.superClass.end,this.body.start,"(function ("+n+") {\n"+i)):a===this.body.start?t.appendLeft(a," = "):t.overwrite(a,this.body.start," = "),this.body.transpile(t,e,!!this.superClass,n);var s=o?"\n\n"+r+"export default "+this.name+";":"";this.superClass?(t.appendLeft(this.end,"\n\n"+i+"return "+this.name+";\n"+r+"}("),t.move(this.superClass.start,this.superClass.end,this.end),t.prependRight(this.end,"));"+s)):s&&t.prependRight(this.end,s)}else this.body.transpile(t,e,!1,null)},ClassDeclaration}(p),k=function(t){function ClassExpression(){t.apply(this,arguments)}return t&&(ClassExpression.__proto__=t),ClassExpression.prototype=Object.create(t&&t.prototype),ClassExpression.prototype.constructor=ClassExpression,ClassExpression.prototype.initialise=function initialise(e){this.name=(this.id?this.id.name:"VariableDeclarator"===this.parent.type?this.parent.id.name:"AssignmentExpression"!==this.parent.type?null:"Identifier"===this.parent.left.type?this.parent.left.name:"MemberExpression"===this.parent.left.type?this.parent.left.property.name:null)||this.findScope(!0).createIdentifier("anonymous"),t.prototype.initialise.call(this,e)},ClassExpression.prototype.transpile=function transpile(t,e){if(e.classes){var n=this.superClass&&(this.superClass.name||"superclass"),r=this.getIndentation(),i=r+t.getIndentString();this.superClass?(t.remove(this.start,this.superClass.start),t.remove(this.superClass.end,this.body.start),t.appendLeft(this.start,"(function ("+n+") {\n"+i)):t.overwrite(this.start,this.body.start,"(function () {\n"+i),this.body.transpile(t,e,!0,n);var o="\n\n"+i+"return "+this.name+";\n"+r+"}(";this.superClass?(t.appendLeft(this.end,o),t.move(this.superClass.start,this.superClass.end,this.end),t.prependRight(this.end,"))")):t.appendLeft(this.end,"\n\n"+i+"return "+this.name+";\n"+r+"}())")}else this.body.transpile(t,e,!1)},ClassExpression}(p),P=function(t){function ContinueStatement(){t.apply(this,arguments)}return t&&(ContinueStatement.__proto__=t),ContinueStatement.prototype=Object.create(t&&t.prototype),ContinueStatement.prototype.constructor=ContinueStatement,ContinueStatement.prototype.transpile=function transpile(t){if(this.findNearest(x).shouldRewriteAsFunction){if(this.label)throw new d("Labels are not currently supported in a loop with locally-scoped variables",this);t.overwrite(this.start,this.start+8,"return")}},ContinueStatement}(p),O=function(t){function ExportDefaultDeclaration(){t.apply(this,arguments)}return t&&(ExportDefaultDeclaration.__proto__=t),ExportDefaultDeclaration.prototype=Object.create(t&&t.prototype),ExportDefaultDeclaration.prototype.constructor=ExportDefaultDeclaration,ExportDefaultDeclaration.prototype.initialise=function initialise(e){if(e.moduleExport)throw new d("export is not supported",this);t.prototype.initialise.call(this,e)},ExportDefaultDeclaration}(p),j=function(t){function ExportNamedDeclaration(){t.apply(this,arguments)}return t&&(ExportNamedDeclaration.__proto__=t),ExportNamedDeclaration.prototype=Object.create(t&&t.prototype),ExportNamedDeclaration.prototype.constructor=ExportNamedDeclaration,ExportNamedDeclaration.prototype.initialise=function initialise(e){if(e.moduleExport)throw new d("export is not supported",this);t.prototype.initialise.call(this,e)},ExportNamedDeclaration}(p),T=function(t){function LoopStatement(){t.apply(this,arguments)}return t&&(LoopStatement.__proto__=t),LoopStatement.prototype=Object.create(t&&t.prototype),LoopStatement.prototype.constructor=LoopStatement,LoopStatement.prototype.findScope=function findScope(t){return t||!this.createdScope?this.parent.findScope(t):this.body.scope},LoopStatement.prototype.initialise=function initialise(e){if(this.body.createScope(),this.createdScope=!0,this.reassigned=Object.create(null),this.aliases=Object.create(null),t.prototype.initialise.call(this,e),e.letConst)for(var n=Object.keys(this.body.scope.declarations),r=n.length;r--;){for(var i=n[r],o=this.body.scope.declarations[i],a=o.instances.length;a--;){var s=o.instances[a].findNearest(/Function/);if(s&&s.depth>this.depth){this.shouldRewriteAsFunction=!0;break}}if(this.shouldRewriteAsFunction)break}},LoopStatement.prototype.transpile=function transpile(e,n){var r="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var i=this.getIndentation(),o=i+e.getIndentString(),a=this.args?" "+this.args.join(", ")+" ":"",s=this.params?" "+this.params.join(", ")+" ":"",u=this.findScope(!0),l=u.createIdentifier("loop"),c="var "+l+" = function ("+s+") "+(this.body.synthetic?"{\n"+i+e.getIndentString():""),p=(this.body.synthetic?"\n"+i+"}":"")+";\n\n"+i;if(e.prependRight(this.body.start,c),e.appendLeft(this.body.end,p),e.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var f=u.createIdentifier("returned"),h="{\n"+o+"var "+f+" = "+l+"("+a+");\n";this.canBreak&&(h+="\n"+o+"if ( "+f+" === 'break' ) break;"),this.canReturn&&(h+="\n"+o+"if ( "+f+" ) return "+f+".v;"),h+="\n"+i+"}",e.prependRight(this.body.end,h)}else{var d=l+"("+a+");";"DoWhileStatement"===this.type?e.overwrite(this.start,this.body.start,"do {\n"+o+d+"\n"+i+"}"):e.prependRight(this.body.end,d)}}else r&&(e.appendLeft(this.body.start,"{ "),e.prependRight(this.body.end," }"));t.prototype.transpile.call(this,e,n)},LoopStatement}(p),R=function(t){function ForStatement(){t.apply(this,arguments)}return t&&(ForStatement.__proto__=t),ForStatement.prototype=Object.create(t&&t.prototype),ForStatement.prototype.constructor=ForStatement,ForStatement.prototype.findScope=function findScope(t){return t||!this.createdScope?this.parent.findScope(t):this.body.scope},ForStatement.prototype.transpile=function transpile(e,n){var r=this,i=this.getIndentation()+e.getIndentString();if(this.shouldRewriteAsFunction){var o="VariableDeclaration"===this.init.type?this.init.declarations.map(function(t){return extractNames(t.id)}):[],a=this.aliases;this.args=o.map(function(t){return t in r.aliases?r.aliases[t].outer:t}),this.params=o.map(function(t){return t in r.aliases?r.aliases[t].inner:t});var s=Object.keys(this.reassigned).map(function(t){return a[t].outer+" = "+a[t].inner+";"});if(s.length)if(this.body.synthetic)e.appendLeft(this.body.body[0].end,"; "+s.join(" "));else{var u=this.body.body[this.body.body.length-1];e.appendLeft(u.end,"\n\n"+i+s.join("\n"+i))}}t.prototype.transpile.call(this,e,n)},ForStatement}(T),M=function(t){function ForInStatement(){t.apply(this,arguments)}return t&&(ForInStatement.__proto__=t),ForInStatement.prototype=Object.create(t&&t.prototype),ForInStatement.prototype.constructor=ForInStatement,ForInStatement.prototype.findScope=function findScope(t){return t||!this.createdScope?this.parent.findScope(t):this.body.scope},ForInStatement.prototype.transpile=function transpile(e,n){var r=this,i="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var o=i?this.left.declarations.map(function(t){return extractNames(t.id)}):[];this.args=o.map(function(t){return t in r.aliases?r.aliases[t].outer:t}),this.params=o.map(function(t){return t in r.aliases?r.aliases[t].inner:t})}t.prototype.transpile.call(this,e,n);var a=i?this.left.declarations[0].id:this.left;"Identifier"!==a.type&&this.destructurePattern(e,a,i)},ForInStatement.prototype.destructurePattern=function destructurePattern(t,e,n){var r=this.findScope(!0),i=this.getIndentation()+t.getIndentString(),o=r.createIdentifier("ref"),a=this.body.body.length?this.body.body[0].start:this.body.start+1;t.move(e.start,e.end,a),t.prependRight(e.end,n?o:"var "+o);var s=[];destructure(t,function(t){return r.createIdentifier(t)},function(t){var e=t.name;return r.resolveName(e)},e,o,!1,s);var u=";\n"+i;s.forEach(function(t,e){e===s.length-1&&(u=";\n\n"+i),t(a,"",u)})},ForInStatement}(T),N=function(t){function ForOfStatement(){t.apply(this,arguments)}return t&&(ForOfStatement.__proto__=t),ForOfStatement.prototype=Object.create(t&&t.prototype),ForOfStatement.prototype.constructor=ForOfStatement,ForOfStatement.prototype.initialise=function initialise(e){if(e.forOf&&!e.dangerousForOf)throw new d("for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing",this);t.prototype.initialise.call(this,e)},ForOfStatement.prototype.transpile=function transpile(e,n){if(t.prototype.transpile.call(this,e,n),n.dangerousForOf)if(this.body.body[0]){var r=this.findScope(!0),i=this.getIndentation(),o=i+e.getIndentString(),a=r.createIdentifier("i"),s=r.createIdentifier("list");this.body.synthetic&&(e.prependRight(this.left.start,"{\n"+o),e.appendLeft(this.body.body[0].end,"\n"+i+"}"));var u=this.body.body[0].start;e.remove(this.left.end,this.right.start),e.move(this.left.start,this.left.end,u),e.prependRight(this.right.start,"var "+a+" = 0, "+s+" = "),e.appendLeft(this.right.end,"; "+a+" < "+s+".length; "+a+" += 1");var l="VariableDeclaration"===this.left.type,c=l?this.left.declarations[0].id:this.left;if("Identifier"!==c.type){var p=[],f=r.createIdentifier("ref");destructure(e,function(t){return r.createIdentifier(t)},function(t){var e=t.name;return r.resolveName(e)},c,f,!l,p);var h=";\n"+o;p.forEach(function(t,e){e===p.length-1&&(h=";\n\n"+o),t(u,"",h)}),l?(e.appendLeft(this.left.start+this.left.kind.length+1,f),e.appendLeft(this.left.end," = "+s+"["+a+"];\n"+o)):e.appendLeft(this.left.end,"var "+f+" = "+s+"["+a+"];\n"+o)}else e.appendLeft(this.left.end," = "+s+"["+a+"];\n\n"+o)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(e.remove(this.start,this.left.start),e.appendLeft(this.left.end,";"),e.remove(this.left.end,this.end)):e.remove(this.start,this.end)},ForOfStatement}(T),I=function(t){function FunctionDeclaration(){t.apply(this,arguments)}return t&&(FunctionDeclaration.__proto__=t),FunctionDeclaration.prototype=Object.create(t&&t.prototype),FunctionDeclaration.prototype.constructor=FunctionDeclaration,FunctionDeclaration.prototype.initialise=function initialise(e){if(this.generator&&e.generator)throw new d("Generators are not supported",this);this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),t.prototype.initialise.call(this,e)},FunctionDeclaration.prototype.transpile=function transpile(e,n){t.prototype.transpile.call(this,e,n),n.trailingFunctionCommas&&this.params.length&&removeTrailingComma(e,this.params[this.params.length-1].end)},FunctionDeclaration}(p),L=function(t){function FunctionExpression(){t.apply(this,arguments)}return t&&(FunctionExpression.__proto__=t),FunctionExpression.prototype=Object.create(t&&t.prototype),FunctionExpression.prototype.constructor=FunctionExpression,FunctionExpression.prototype.initialise=function initialise(e){if(this.generator&&e.generator)throw new d("Generators are not supported",this);this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),t.prototype.initialise.call(this,e);var n,r=this.parent;if(e.conciseMethodProperty&&"Property"===r.type&&"init"===r.kind&&r.method&&"Identifier"===r.key.type?n=r.key.name:e.classes&&"MethodDefinition"===r.type&&"method"===r.kind&&"Identifier"===r.key.type?n=r.key.name:this.id&&"Identifier"===this.id.type&&(n=this.id.alias||this.id.name),n)for(var i=0,o=this.params;ie.depth&&(this.alias=e.getArgumentsAlias()),r&&r.body.contains(this)&&r.depth>e.depth&&(this.alias=e.getArgumentsAlias())}this.findScope(!1).addReference(this)}},Identifier.prototype.transpile=function transpile(t){this.alias&&t.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},Identifier}(p),D=function(t){function IfStatement(){t.apply(this,arguments)}return t&&(IfStatement.__proto__=t),IfStatement.prototype=Object.create(t&&t.prototype),IfStatement.prototype.constructor=IfStatement,IfStatement.prototype.initialise=function initialise(e){t.prototype.initialise.call(this,e)},IfStatement.prototype.transpile=function transpile(e,n){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(e.appendLeft(this.consequent.start,"{ "),e.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(e.appendLeft(this.alternate.start,"{ "),e.prependRight(this.alternate.end," }")),t.prototype.transpile.call(this,e,n)},IfStatement}(p),F=function(t){function ImportDeclaration(){t.apply(this,arguments)}return t&&(ImportDeclaration.__proto__=t),ImportDeclaration.prototype=Object.create(t&&t.prototype),ImportDeclaration.prototype.constructor=ImportDeclaration,ImportDeclaration.prototype.initialise=function initialise(e){if(e.moduleImport)throw new d("import is not supported",this);t.prototype.initialise.call(this,e)},ImportDeclaration}(p),U=function(t){function ImportDefaultSpecifier(){t.apply(this,arguments)}return t&&(ImportDefaultSpecifier.__proto__=t),ImportDefaultSpecifier.prototype=Object.create(t&&t.prototype),ImportDefaultSpecifier.prototype.constructor=ImportDefaultSpecifier,ImportDefaultSpecifier.prototype.initialise=function initialise(e){this.findScope(!0).addDeclaration(this.local,"import"),t.prototype.initialise.call(this,e)},ImportDefaultSpecifier}(p),B=function(t){function ImportSpecifier(){t.apply(this,arguments)}return t&&(ImportSpecifier.__proto__=t),ImportSpecifier.prototype=Object.create(t&&t.prototype),ImportSpecifier.prototype.constructor=ImportSpecifier,ImportSpecifier.prototype.initialise=function initialise(e){this.findScope(!0).addDeclaration(this.local,"import"),t.prototype.initialise.call(this,e)},ImportSpecifier}(p),V=function(t){function JSXAttribute(){t.apply(this,arguments)}return t&&(JSXAttribute.__proto__=t),JSXAttribute.prototype=Object.create(t&&t.prototype),JSXAttribute.prototype.constructor=JSXAttribute,JSXAttribute.prototype.transpile=function transpile(e,n){var r,i=this.name,o=i.start,a=i.name,s=this.value?this.value.start:this.name.end;e.overwrite(o,s,(/-/.test(r=a)?"'"+r+"'":r)+": "+(this.value?"":"true")),t.prototype.transpile.call(this,e,n)},JSXAttribute}(p);var W=function(t){function JSXClosingElement(){t.apply(this,arguments)}return t&&(JSXClosingElement.__proto__=t),JSXClosingElement.prototype=Object.create(t&&t.prototype),JSXClosingElement.prototype.constructor=JSXClosingElement,JSXClosingElement.prototype.transpile=function transpile(t){var e,n=!0,r=this.parent.children[this.parent.children.length-1];(r&&("JSXText"===(e=r).type&&!/\S/.test(e.value)&&/\n/.test(e.value))||this.parent.openingElement.attributes.length)&&(n=!1),t.overwrite(this.start,this.end,n?" )":")")},JSXClosingElement}(p);var z=function(t){function JSXClosingFragment(){t.apply(this,arguments)}return t&&(JSXClosingFragment.__proto__=t),JSXClosingFragment.prototype=Object.create(t&&t.prototype),JSXClosingFragment.prototype.constructor=JSXClosingFragment,JSXClosingFragment.prototype.transpile=function transpile(t){var e,n=!0,r=this.parent.children[this.parent.children.length-1];r&&("JSXText"===(e=r).type&&!/\S/.test(e.value)&&/\n/.test(e.value))&&(n=!1),t.overwrite(this.start,this.end,n?" )":")")},JSXClosingFragment}(p);function normalise(t,e){return t=t.replace(/\u00a0/g," "),e&&/\n/.test(t)&&(t=t.replace(/\s+$/,"")),t=t.replace(/^\n\r?\s+/,"").replace(/\s*\n\r?\s*/gm," "),JSON.stringify(t)}var q=function(t){function JSXElement(){t.apply(this,arguments)}return t&&(JSXElement.__proto__=t),JSXElement.prototype=Object.create(t&&t.prototype),JSXElement.prototype.constructor=JSXElement,JSXElement.prototype.transpile=function transpile(e,n){t.prototype.transpile.call(this,e,n);var r=this.children.filter(function(t){return"JSXText"!==t.type||(/\S/.test(t.raw)||!/\n/.test(t.raw))});if(r.length){var i,o=this.openingElement.end;for(i=0;i0&&(c.start===o?e.prependRight(o,", "):e.overwrite(o,c.start,", ")),l&&"JSXSpreadAttribute"!==c.type){var p=this.attributes[a-1],f=this.attributes[a+1];p&&"JSXSpreadAttribute"!==p.type||e.prependRight(c.start,"{ "),f&&"JSXSpreadAttribute"!==f.type||e.appendLeft(c.end," }")}o=c.end}if(l)if(1===i)u=r?"',":",";else{if(!this.program.options.objectAssign)throw new d("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);u=r?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",s=")"}else u=r?"', {":", {",s=" }";e.prependRight(this.name.end,u),s&&e.appendLeft(this.attributes[i-1].end,s)}else e.appendLeft(this.name.end,r?"', null":", null"),o=this.name.end;this.selfClosing?e.overwrite(o,this.end,this.attributes.length?")":" )"):e.remove(o,this.end)},JSXOpeningElement}(p),X=function(t){function JSXOpeningFragment(){t.apply(this,arguments)}return t&&(JSXOpeningFragment.__proto__=t),JSXOpeningFragment.prototype=Object.create(t&&t.prototype),JSXOpeningFragment.prototype.constructor=JSXOpeningFragment,JSXOpeningFragment.prototype.transpile=function transpile(t){t.overwrite(this.start,this.end,this.program.jsx+"( React.Fragment, null")},JSXOpeningFragment}(p),Z=function(t){function JSXSpreadAttribute(){t.apply(this,arguments)}return t&&(JSXSpreadAttribute.__proto__=t),JSXSpreadAttribute.prototype=Object.create(t&&t.prototype),JSXSpreadAttribute.prototype.constructor=JSXSpreadAttribute,JSXSpreadAttribute.prototype.transpile=function transpile(e,n){e.remove(this.start,this.argument.start),e.remove(this.argument.end,this.end),t.prototype.transpile.call(this,e,n)},JSXSpreadAttribute}(p),Q=createCommonjsModule(function(t,e){ +/*! + * regjsgen 0.3.0 + * Copyright 2014-2016 Benjamin Tan + * Available under MIT license + */ +(function(){var n={function:!0,object:!0},r=n[typeof window]&&window||this,i=n.object&&e,o=n.object&&t&&!t.nodeType&&t,a=i&&o&&"object"==typeof u&&u;!a||a.global!==a&&a.window!==a&&a.self!==a||(r=a);var s=Object.prototype.hasOwnProperty,l=String.fromCharCode,c=Math.floor;function fromCodePoint(){var t,e,n=[],r=-1,i=arguments.length;if(!i)return"";for(var o="";++r1114111||c(a)!=a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(t=55296+((a-=65536)>>10),e=a%1024+56320,n.push(t,e)),(r+1==i||n.length>16384)&&(o+=l.apply(null,n),n.length=0)}return o}var p={};function assertType(t,e){if(-1==e.indexOf("|")){if(t==e)return;throw Error("Invalid node type: "+t+"; expected type: "+e)}if(!(e=s.call(p,e)?p[e]:p[e]=RegExp("^(?:"+e+")$")).test(t))throw Error("Invalid node type: "+t+"; expected types: "+e)}function generate(t){var e=t.type;if(s.call(f,e))return f[e](t);throw Error("Invalid node type: "+e)}function generateAtom(t){return assertType(t.type,"anchor|characterClass|characterClassEscape|dot|group|reference|value"),generate(t)}function generateClassAtom(t){return assertType(t.type,"anchor|characterClassEscape|characterClassRange|dot|value"),generate(t)}function generateTerm(t){return assertType(t.type,"anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value"),generate(t)}var f={alternative:function generateAlternative(t){assertType(t.type,"alternative");for(var e=t.body,n=-1,r=e.length,i="";++n=55296&&r<=56319&&(e=lookahead().charCodeAt(0))>=56320&&e<=57343?createValue("symbol",1024*(r-55296)+e-56320+65536,++s-2,s):createValue("symbol",r,s-1,s)}function createDisjunction(t,e,n){return addRaw({type:"disjunction",body:t,range:[e,n]})}function createGroup(t,e,n,r){return addRaw({type:"group",behavior:t,body:e,range:[n,r]})}function createQuantifier(t,e,n,r){return null==r&&(n=s-1,r=s),addRaw({type:"quantifier",min:t,max:e,greedy:!0,body:null,range:[n,r]})}function createAlternative(t,e,n){return addRaw({type:"alternative",body:t,range:[e,n]})}function createCharacterClass(t,e,n,r){return addRaw({type:"characterClass",body:t,negative:e,range:[n,r]})}function createClassRange(t,e,n,r){return t.codePoint>e.codePoint&&bail("invalid range in character class",t.raw+"-"+e.raw,n,r),addRaw({type:"characterClassRange",min:t,max:e,range:[n,r]})}function flattenBody(t){return"alternative"===t.type?t.body:[t]}function incr(e){e=e||1;var n=t.substring(s,s+e);return s+=e||1,n}function skip(t){match(t)||bail("character",t)}function match(e){if(t.indexOf(e,s)===s)return incr(e.length)}function lookahead(){return t[s]}function current(e){return t.indexOf(e,s)===s}function next(e){return t[s+1]===e}function matchReg(e){var n=t.substring(s).match(e);return n&&(n.range=[],n.range[0]=s,incr(n[0].length),n.range[1]=s),n}function parseDisjunction(){var t=[],e=s;for(t.push(parseAlternative());match("|");)t.push(parseAlternative());return 1===t.length?t[0]:createDisjunction(t,e,s)}function parseAlternative(){for(var t,e=[],n=s;t=parseTerm();)e.push(t);return 1===e.length?e[0]:createAlternative(e,n,s)}function parseTerm(){if(s>=t.length||current("|")||current(")"))return null;var e=match("^")?createAnchor("start",1):match("$")?createAnchor("end",1):match("\\b")?createAnchor("boundary",2):match("\\B")?createAnchor("not-boundary",2):parseGroup("(?=","lookahead","(?!","negativeLookahead");if(e)return e;var n,r=(n=matchReg(/^[^^$\\.*+?(){[|]/))?createCharacter(n):match(".")?addRaw({type:"dot",range:[s-1,s]}):match("\\")?((n=parseAtomEscape())||bail("atomEscape"),n):(n=parseCharacterClass())?n:parseGroup("(?:","ignore","(","normal");r||bail("Expected atom");var i=parseQuantifier()||!1;return i?(i.body=flattenBody(r),updateRawStart(i,r.range[0]),i):r}function parseGroup(t,e,n,r){var a=null,u=s;if(match(t))a=e;else{if(!match(n))return!1;a=r}var l=parseDisjunction();l||bail("Expected disjunction"),skip(")");var c=createGroup(a,flattenBody(l),u,s);return"normal"==a&&o&&i++,c}function parseQuantifier(){var t,e,n,r,i=s;return match("*")?e=createQuantifier(0):match("+")?e=createQuantifier(1):match("?")?e=createQuantifier(0,1):(t=matchReg(/^\{([0-9]+)\}/))?e=createQuantifier(n=parseInt(t[1],10),n,t.range[0],t.range[1]):(t=matchReg(/^\{([0-9]+),\}/))?e=createQuantifier(n=parseInt(t[1],10),void 0,t.range[0],t.range[1]):(t=matchReg(/^\{([0-9]+),([0-9]+)\}/))&&((n=parseInt(t[1],10))>(r=parseInt(t[2],10))&&bail("numbers out of order in {} quantifier","",i,s),e=createQuantifier(n,r,t.range[0],t.range[1])),e&&match("?")&&(e.greedy=!1,e.range[1]+=1),e}function parseUnicodeSurrogatePairEscape(t){var e,n;if(a&&"unicodeEscape"==t.kind&&(e=t.codePoint)>=55296&&e<=56319&¤t("\\")&&next("u")){var r=s;s++;var i=parseClassEscape();"unicodeEscape"==i.kind&&(n=i.codePoint)>=56320&&n<=57343?(t.range[1]=i.range[1],t.codePoint=1024*(e-55296)+n-56320+65536,t.type="value",t.kind="unicodeCodePointEscape",addRaw(t)):s=r}return t}function parseClassEscape(){return parseAtomEscape(!0)}function parseAtomEscape(t){var e,n=s;if(e=parseDecimalEscape())return e;if(t){if(match("b"))return createEscaped("singleEscape",8,"\\b");match("B")&&bail("\\B not possible inside of CharacterClass","",n)}return e=parseCharacterEscape()}function parseDecimalEscape(){var t,e,n;if(t=matchReg(/^(?!0)\d+/)){e=t[0];var o=parseInt(t[0],10);return o<=i?(n=t[0],addRaw({type:"reference",matchIndex:parseInt(n,10),range:[s-1-n.length,s]})):(r.push(o),incr(-t[0].length),(t=matchReg(/^[0-7]{1,3}/))?createEscaped("octal",parseInt(t[0],8),t[0],1):updateRawStart(t=createCharacter(matchReg(/^[89]/)),t.range[0]-1))}return(t=matchReg(/^[0-7]{1,3}/))?(e=t[0],/^0{1,3}$/.test(e)?createEscaped("null",0,"0",e.length+1):createEscaped("octal",parseInt(e,8),e,1)):!!(t=matchReg(/^[dDsSwW]/))&&addRaw({type:"characterClassEscape",value:t[0],range:[s-2,s]})}function parseCharacterEscape(){var t,e,r,i;if(t=matchReg(/^[fnrtv]/)){var o=0;switch(t[0]){case"t":o=9;break;case"n":o=10;break;case"v":o=11;break;case"f":o=12;break;case"r":o=13}return createEscaped("singleEscape",o,"\\"+t[0])}return(t=matchReg(/^c([a-zA-Z])/))?createEscaped("controlLetter",t[1].charCodeAt(0)%32,t[1],2):(t=matchReg(/^x([0-9a-fA-F]{2})/))?createEscaped("hexadecimalEscape",parseInt(t[1],16),t[1],2):(t=matchReg(/^u([0-9a-fA-F]{4})/))?parseUnicodeSurrogatePairEscape(createEscaped("unicodeEscape",parseInt(t[1],16),t[1],2)):a&&(t=matchReg(/^u\{([0-9a-fA-F]+)\}/))?createEscaped("unicodeCodePointEscape",parseInt(t[1],16),t[1],4):n.unicodePropertyEscape&&a&&(t=matchReg(/^([pP])\{([^\}]+)\}/))?addRaw({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):(r=lookahead(),i=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),36===r||95===r||r>=65&&r<=90||r>=97&&r<=122||r>=48&&r<=57||92===r||r>=128&&i.test(String.fromCharCode(r))?match("‌")?createEscaped("identifier",8204,"‌"):match("‍")?createEscaped("identifier",8205,"‍"):null:createEscaped("identifier",(e=incr()).charCodeAt(0),e,1))}function parseCharacterClass(){var t,e=s;return(t=matchReg(/^\[\^/))?(t=parseClassRanges(),skip("]"),createCharacterClass(t,!0,e,s)):match("[")?(t=parseClassRanges(),skip("]"),createCharacterClass(t,!1,e,s)):null}function parseClassRanges(){var t,e;return current("]")?[]:((e=parseClassAtom())||bail("classAtom"),(t=current("]")?[e]:parseHelperClassRanges(e))||bail("nonEmptyClassRanges"),t)}function parseHelperClassRanges(t){var e,n,r;if(current("-")&&!next("]")){skip("-"),(r=parseClassAtom())||bail("classAtom"),n=s;var i=parseClassRanges();return i||bail("classRanges"),e=t.range[0],"empty"===i.type?[createClassRange(t,r,e,n)]:[createClassRange(t,r,e,n)].concat(i)}return(r=parseNonemptyClassRangesNoDash())||bail("nonEmptyClassRangesNoDash"),[t].concat(r)}function parseNonemptyClassRangesNoDash(){var t=parseClassAtom();return t||bail("classAtom"),current("]")?t:parseHelperClassRanges(t)}function parseClassAtom(){return match("-")?createCharacter("-"):(t=matchReg(/^[^\\\]-]/))?createCharacter(t[0]):match("\\")?((t=parseClassEscape())||bail("classEscape"),parseUnicodeSurrogatePairEscape(t)):void 0;var t}function bail(e,n,r,i){r=null==r?s:r,i=null==i?r:i;var o=Math.max(0,r-10),a=Math.min(i+10,t.length),u=" "+t.substring(o,a),l=" "+new Array(r-o+1).join(" ")+"^";throw SyntaxError(e+" at position "+r+(n?": "+n:"")+"\n"+u+"\n"+l)}n||(n={});var r=[],i=0,o=!0,a=-1!==(e||"").indexOf("u"),s=0;""===(t=String(t))&&(t="(?:)");var u=parseDisjunction();u.range[1]!==t.length&&bail("Could not parse entire input - got stuck","",u.range[1]);for(var l=0;l=n&&en)return t;if(e<=r&&n>=i)t.splice(o,2);else{if(e>=r&&n=r&&e<=i)t[o+1]=e;else if(n>=r&&n<=i)return t[o]=n+1,t;o+=2}}return t},w=function(t,e){var n,r,i=0,o=null,a=t.length;if(e<0||e>1114111)throw RangeError(s);for(;i=n&&ee)return t.splice(null!=o?o+2:0,0,e,e+1),t;if(e==r)return e+1==t[i+2]?(t.splice(i,4,n,t[i+3]),t):(t[i+1]=e+1,t);o=i,i+=2}return t.push(e,e+1),t},S=function(t,e){for(var n,r,i=0,o=t.slice(),a=e.length;i1114111||n<0||n>1114111)throw RangeError(s);for(var r,i,o=0,u=!1,l=t.length;on)return t;r>=e&&r<=n&&(i>e&&i-1<=n?(t.splice(o,2),o-=2):(t.splice(o-1,2),o-=2))}else{if(r==n+1)return t[o]=e,t;if(r>n)return t.splice(o,0,e,n+1),t;if(e>=r&&e=r&&e=i&&(t[o]=e,t[o+1]=n+1,u=!0)}o+=2}return u||t.push(e,n+1),t},k=function(t,e){var n=0,r=t.length,i=t[n],o=t[r-1];if(r>=2&&(eo))return!1;for(;n=i&&e=40&&t<=43||t>=45&&t<=47||63==t||t>=91&&t<=94||t>=123&&t<=125?"\\"+I(t):t>=32&&t<=126?I(t):t<=255?"\\x"+v(g(t),2):"\\u"+v(g(t),4)},A=function(t){return t<=65535?L(t):"\\u{"+t.toString(16).toUpperCase()+"}"},D=function(t){var e=t.length,n=t.charCodeAt(0);return n>=55296&&n<=56319&&e>1?1024*(n-55296)+t.charCodeAt(1)-56320+65536:n},F=function(t){var e,n,r="",i=0,o=t.length;if(j(t))return L(t[0]);for(;i=55296&&n<=56319&&(o.push(e,55296),r.push(55296,n+1)),n>=56320&&n<=57343&&(o.push(e,55296),r.push(55296,56320),i.push(56320,n+1)),n>57343&&(o.push(e,55296),r.push(55296,56320),i.push(56320,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):e>=55296&&e<=56319?(n>=55296&&n<=56319&&r.push(e,n+1),n>=56320&&n<=57343&&(r.push(e,56320),i.push(56320,n+1)),n>57343&&(r.push(e,56320),i.push(56320,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):e>=56320&&e<=57343?(n>=56320&&n<=57343&&i.push(e,n+1),n>57343&&(i.push(e,57344),n<=65535?o.push(57344,n+1):(o.push(57344,65536),a.push(65536,n+1)))):e>57343&&e<=65535?n<=65535?o.push(e,n+1):(o.push(e,65536),a.push(65536,n+1)):a.push(e,n+1),s+=2;return{loneHighSurrogates:r,loneLowSurrogates:i,bmp:o,astral:a}},V=function(t){for(var e,n,r,i,o,a,s=[],u=[],l=!1,c=-1,p=t.length;++c1&&(t=y.call(arguments)),this instanceof K?(this.data=[],t?this.add(t):this):(new K).add(t)};K.version="1.3.3";var J=K.prototype;!function(t,e){var n;for(n in e)p.call(e,n)&&(t[n]=e[n])}(J,{add:function(t){var e=this;return null==t?e:t instanceof K?(e.data=S(e.data,t.data),e):(arguments.length>1&&(t=y.call(arguments)),d(t)?(f(t,function(t){e.add(t)}),e):(e.data=w(e.data,m(t)?t:D(t)),e))},remove:function(t){var e=this;return null==t?e:t instanceof K?(e.data=C(e.data,t.data),e):(arguments.length>1&&(t=y.call(arguments)),d(t)?(f(t,function(t){e.remove(t)}),e):(e.data=_(e.data,m(t)?t:D(t)),e))},addRange:function(t,e){return this.data=E(this.data,m(t)?t:D(t),m(e)?e:D(e)),this},removeRange:function(t,e){var n=m(t)?t:D(t),r=m(e)?e:D(e);return this.data=x(this.data,n,r),this},intersection:function(t){var e=t instanceof K?T(t.data):t;return this.data=P(this.data,e),this},contains:function(t){return k(this.data,m(t)?t:D(t))},clone:function(){var t=new K;return t.data=this.data.slice(0),t},toString:function(t){var e=H(this.data,!!t&&t.bmpOnly,!!t&&t.hasUnicodeFlag);return e?e.replace(l,"\\0$1"):"[]"},toRegExp:function(t){var e=this.toString(t&&-1!=t.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(e,t||"")},valueOf:function(){return T(this.data)}}),J.toArray=J.valueOf,r&&!r.nodeType?i?i.exports=K:r.regenerate=K:n.regenerate=K}(u)}),$=new Set(["General_Category","Script","Script_Extensions","Alphabetic","Any","ASCII","ASCII_Hex_Digit","Assigned","Bidi_Control","Bidi_Mirrored","Case_Ignorable","Cased","Changes_When_Casefolded","Changes_When_Casemapped","Changes_When_Lowercased","Changes_When_NFKC_Casefolded","Changes_When_Titlecased","Changes_When_Uppercased","Dash","Default_Ignorable_Code_Point","Deprecated","Diacritic","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Grapheme_Base","Grapheme_Extend","Hex_Digit","ID_Continue","ID_Start","Ideographic","IDS_Binary_Operator","IDS_Trinary_Operator","Join_Control","Logical_Order_Exception","Lowercase","Math","Noncharacter_Code_Point","Pattern_Syntax","Pattern_White_Space","Quotation_Mark","Radical","Regional_Indicator","Sentence_Terminal","Soft_Dotted","Terminal_Punctuation","Unified_Ideograph","Uppercase","Variation_Selector","White_Space","XID_Continue","XID_Start"]),tt=new Map([["scx","Script_Extensions"],["sc","Script"],["gc","General_Category"],["AHex","ASCII_Hex_Digit"],["Alpha","Alphabetic"],["Bidi_C","Bidi_Control"],["Bidi_M","Bidi_Mirrored"],["Cased","Cased"],["CI","Case_Ignorable"],["CWCF","Changes_When_Casefolded"],["CWCM","Changes_When_Casemapped"],["CWKCF","Changes_When_NFKC_Casefolded"],["CWL","Changes_When_Lowercased"],["CWT","Changes_When_Titlecased"],["CWU","Changes_When_Uppercased"],["Dash","Dash"],["Dep","Deprecated"],["DI","Default_Ignorable_Code_Point"],["Dia","Diacritic"],["Ext","Extender"],["Gr_Base","Grapheme_Base"],["Gr_Ext","Grapheme_Extend"],["Hex","Hex_Digit"],["IDC","ID_Continue"],["Ideo","Ideographic"],["IDS","ID_Start"],["IDSB","IDS_Binary_Operator"],["IDST","IDS_Trinary_Operator"],["Join_C","Join_Control"],["LOE","Logical_Order_Exception"],["Lower","Lowercase"],["Math","Math"],["NChar","Noncharacter_Code_Point"],["Pat_Syn","Pattern_Syntax"],["Pat_WS","Pattern_White_Space"],["QMark","Quotation_Mark"],["Radical","Radical"],["RI","Regional_Indicator"],["SD","Soft_Dotted"],["STerm","Sentence_Terminal"],["Term","Terminal_Punctuation"],["UIdeo","Unified_Ideograph"],["Upper","Uppercase"],["VS","Variation_Selector"],["WSpace","White_Space"],["space","White_Space"],["XIDC","XID_Continue"],["XIDS","XID_Start"]]),et=function(t){if($.has(t))return t;if(tt.has(t))return tt.get(t);throw new Error("Unknown property: "+t)},nt=new Map([["General_Category",new Map([["C","Other"],["Cc","Control"],["cntrl","Control"],["Cf","Format"],["Cn","Unassigned"],["Co","Private_Use"],["Cs","Surrogate"],["L","Letter"],["LC","Cased_Letter"],["Ll","Lowercase_Letter"],["Lm","Modifier_Letter"],["Lo","Other_Letter"],["Lt","Titlecase_Letter"],["Lu","Uppercase_Letter"],["M","Mark"],["Combining_Mark","Mark"],["Mc","Spacing_Mark"],["Me","Enclosing_Mark"],["Mn","Nonspacing_Mark"],["N","Number"],["Nd","Decimal_Number"],["digit","Decimal_Number"],["Nl","Letter_Number"],["No","Other_Number"],["P","Punctuation"],["punct","Punctuation"],["Pc","Connector_Punctuation"],["Pd","Dash_Punctuation"],["Pe","Close_Punctuation"],["Pf","Final_Punctuation"],["Pi","Initial_Punctuation"],["Po","Other_Punctuation"],["Ps","Open_Punctuation"],["S","Symbol"],["Sc","Currency_Symbol"],["Sk","Modifier_Symbol"],["Sm","Math_Symbol"],["So","Other_Symbol"],["Z","Separator"],["Zl","Line_Separator"],["Zp","Paragraph_Separator"],["Zs","Space_Separator"],["Other","Other"],["Control","Control"],["Format","Format"],["Unassigned","Unassigned"],["Private_Use","Private_Use"],["Surrogate","Surrogate"],["Letter","Letter"],["Cased_Letter","Cased_Letter"],["Lowercase_Letter","Lowercase_Letter"],["Modifier_Letter","Modifier_Letter"],["Other_Letter","Other_Letter"],["Titlecase_Letter","Titlecase_Letter"],["Uppercase_Letter","Uppercase_Letter"],["Mark","Mark"],["Spacing_Mark","Spacing_Mark"],["Enclosing_Mark","Enclosing_Mark"],["Nonspacing_Mark","Nonspacing_Mark"],["Number","Number"],["Decimal_Number","Decimal_Number"],["Letter_Number","Letter_Number"],["Other_Number","Other_Number"],["Punctuation","Punctuation"],["Connector_Punctuation","Connector_Punctuation"],["Dash_Punctuation","Dash_Punctuation"],["Close_Punctuation","Close_Punctuation"],["Final_Punctuation","Final_Punctuation"],["Initial_Punctuation","Initial_Punctuation"],["Other_Punctuation","Other_Punctuation"],["Open_Punctuation","Open_Punctuation"],["Symbol","Symbol"],["Currency_Symbol","Currency_Symbol"],["Modifier_Symbol","Modifier_Symbol"],["Math_Symbol","Math_Symbol"],["Other_Symbol","Other_Symbol"],["Separator","Separator"],["Line_Separator","Line_Separator"],["Paragraph_Separator","Paragraph_Separator"],["Space_Separator","Space_Separator"]])],["Script",new Map([["Adlm","Adlam"],["Aghb","Caucasian_Albanian"],["Ahom","Ahom"],["Arab","Arabic"],["Armi","Imperial_Aramaic"],["Armn","Armenian"],["Avst","Avestan"],["Bali","Balinese"],["Bamu","Bamum"],["Bass","Bassa_Vah"],["Batk","Batak"],["Beng","Bengali"],["Bhks","Bhaiksuki"],["Bopo","Bopomofo"],["Brah","Brahmi"],["Brai","Braille"],["Bugi","Buginese"],["Buhd","Buhid"],["Cakm","Chakma"],["Cans","Canadian_Aboriginal"],["Cari","Carian"],["Cham","Cham"],["Cher","Cherokee"],["Copt","Coptic"],["Qaac","Coptic"],["Cprt","Cypriot"],["Cyrl","Cyrillic"],["Deva","Devanagari"],["Dsrt","Deseret"],["Dupl","Duployan"],["Egyp","Egyptian_Hieroglyphs"],["Elba","Elbasan"],["Ethi","Ethiopic"],["Geor","Georgian"],["Glag","Glagolitic"],["Gonm","Masaram_Gondi"],["Goth","Gothic"],["Gran","Grantha"],["Grek","Greek"],["Gujr","Gujarati"],["Guru","Gurmukhi"],["Hang","Hangul"],["Hani","Han"],["Hano","Hanunoo"],["Hatr","Hatran"],["Hebr","Hebrew"],["Hira","Hiragana"],["Hluw","Anatolian_Hieroglyphs"],["Hmng","Pahawh_Hmong"],["Hrkt","Katakana_Or_Hiragana"],["Hung","Old_Hungarian"],["Ital","Old_Italic"],["Java","Javanese"],["Kali","Kayah_Li"],["Kana","Katakana"],["Khar","Kharoshthi"],["Khmr","Khmer"],["Khoj","Khojki"],["Knda","Kannada"],["Kthi","Kaithi"],["Lana","Tai_Tham"],["Laoo","Lao"],["Latn","Latin"],["Lepc","Lepcha"],["Limb","Limbu"],["Lina","Linear_A"],["Linb","Linear_B"],["Lisu","Lisu"],["Lyci","Lycian"],["Lydi","Lydian"],["Mahj","Mahajani"],["Mand","Mandaic"],["Mani","Manichaean"],["Marc","Marchen"],["Mend","Mende_Kikakui"],["Merc","Meroitic_Cursive"],["Mero","Meroitic_Hieroglyphs"],["Mlym","Malayalam"],["Modi","Modi"],["Mong","Mongolian"],["Mroo","Mro"],["Mtei","Meetei_Mayek"],["Mult","Multani"],["Mymr","Myanmar"],["Narb","Old_North_Arabian"],["Nbat","Nabataean"],["Newa","Newa"],["Nkoo","Nko"],["Nshu","Nushu"],["Ogam","Ogham"],["Olck","Ol_Chiki"],["Orkh","Old_Turkic"],["Orya","Oriya"],["Osge","Osage"],["Osma","Osmanya"],["Palm","Palmyrene"],["Pauc","Pau_Cin_Hau"],["Perm","Old_Permic"],["Phag","Phags_Pa"],["Phli","Inscriptional_Pahlavi"],["Phlp","Psalter_Pahlavi"],["Phnx","Phoenician"],["Plrd","Miao"],["Prti","Inscriptional_Parthian"],["Rjng","Rejang"],["Runr","Runic"],["Samr","Samaritan"],["Sarb","Old_South_Arabian"],["Saur","Saurashtra"],["Sgnw","SignWriting"],["Shaw","Shavian"],["Shrd","Sharada"],["Sidd","Siddham"],["Sind","Khudawadi"],["Sinh","Sinhala"],["Sora","Sora_Sompeng"],["Soyo","Soyombo"],["Sund","Sundanese"],["Sylo","Syloti_Nagri"],["Syrc","Syriac"],["Tagb","Tagbanwa"],["Takr","Takri"],["Tale","Tai_Le"],["Talu","New_Tai_Lue"],["Taml","Tamil"],["Tang","Tangut"],["Tavt","Tai_Viet"],["Telu","Telugu"],["Tfng","Tifinagh"],["Tglg","Tagalog"],["Thaa","Thaana"],["Thai","Thai"],["Tibt","Tibetan"],["Tirh","Tirhuta"],["Ugar","Ugaritic"],["Vaii","Vai"],["Wara","Warang_Citi"],["Xpeo","Old_Persian"],["Xsux","Cuneiform"],["Yiii","Yi"],["Zanb","Zanabazar_Square"],["Zinh","Inherited"],["Qaai","Inherited"],["Zyyy","Common"],["Zzzz","Unknown"],["Adlam","Adlam"],["Caucasian_Albanian","Caucasian_Albanian"],["Arabic","Arabic"],["Imperial_Aramaic","Imperial_Aramaic"],["Armenian","Armenian"],["Avestan","Avestan"],["Balinese","Balinese"],["Bamum","Bamum"],["Bassa_Vah","Bassa_Vah"],["Batak","Batak"],["Bengali","Bengali"],["Bhaiksuki","Bhaiksuki"],["Bopomofo","Bopomofo"],["Brahmi","Brahmi"],["Braille","Braille"],["Buginese","Buginese"],["Buhid","Buhid"],["Chakma","Chakma"],["Canadian_Aboriginal","Canadian_Aboriginal"],["Carian","Carian"],["Cherokee","Cherokee"],["Coptic","Coptic"],["Cypriot","Cypriot"],["Cyrillic","Cyrillic"],["Devanagari","Devanagari"],["Deseret","Deseret"],["Duployan","Duployan"],["Egyptian_Hieroglyphs","Egyptian_Hieroglyphs"],["Elbasan","Elbasan"],["Ethiopic","Ethiopic"],["Georgian","Georgian"],["Glagolitic","Glagolitic"],["Masaram_Gondi","Masaram_Gondi"],["Gothic","Gothic"],["Grantha","Grantha"],["Greek","Greek"],["Gujarati","Gujarati"],["Gurmukhi","Gurmukhi"],["Hangul","Hangul"],["Han","Han"],["Hanunoo","Hanunoo"],["Hatran","Hatran"],["Hebrew","Hebrew"],["Hiragana","Hiragana"],["Anatolian_Hieroglyphs","Anatolian_Hieroglyphs"],["Pahawh_Hmong","Pahawh_Hmong"],["Katakana_Or_Hiragana","Katakana_Or_Hiragana"],["Old_Hungarian","Old_Hungarian"],["Old_Italic","Old_Italic"],["Javanese","Javanese"],["Kayah_Li","Kayah_Li"],["Katakana","Katakana"],["Kharoshthi","Kharoshthi"],["Khmer","Khmer"],["Khojki","Khojki"],["Kannada","Kannada"],["Kaithi","Kaithi"],["Tai_Tham","Tai_Tham"],["Lao","Lao"],["Latin","Latin"],["Lepcha","Lepcha"],["Limbu","Limbu"],["Linear_A","Linear_A"],["Linear_B","Linear_B"],["Lycian","Lycian"],["Lydian","Lydian"],["Mahajani","Mahajani"],["Mandaic","Mandaic"],["Manichaean","Manichaean"],["Marchen","Marchen"],["Mende_Kikakui","Mende_Kikakui"],["Meroitic_Cursive","Meroitic_Cursive"],["Meroitic_Hieroglyphs","Meroitic_Hieroglyphs"],["Malayalam","Malayalam"],["Mongolian","Mongolian"],["Mro","Mro"],["Meetei_Mayek","Meetei_Mayek"],["Multani","Multani"],["Myanmar","Myanmar"],["Old_North_Arabian","Old_North_Arabian"],["Nabataean","Nabataean"],["Nko","Nko"],["Nushu","Nushu"],["Ogham","Ogham"],["Ol_Chiki","Ol_Chiki"],["Old_Turkic","Old_Turkic"],["Oriya","Oriya"],["Osage","Osage"],["Osmanya","Osmanya"],["Palmyrene","Palmyrene"],["Pau_Cin_Hau","Pau_Cin_Hau"],["Old_Permic","Old_Permic"],["Phags_Pa","Phags_Pa"],["Inscriptional_Pahlavi","Inscriptional_Pahlavi"],["Psalter_Pahlavi","Psalter_Pahlavi"],["Phoenician","Phoenician"],["Miao","Miao"],["Inscriptional_Parthian","Inscriptional_Parthian"],["Rejang","Rejang"],["Runic","Runic"],["Samaritan","Samaritan"],["Old_South_Arabian","Old_South_Arabian"],["Saurashtra","Saurashtra"],["SignWriting","SignWriting"],["Shavian","Shavian"],["Sharada","Sharada"],["Siddham","Siddham"],["Khudawadi","Khudawadi"],["Sinhala","Sinhala"],["Sora_Sompeng","Sora_Sompeng"],["Soyombo","Soyombo"],["Sundanese","Sundanese"],["Syloti_Nagri","Syloti_Nagri"],["Syriac","Syriac"],["Tagbanwa","Tagbanwa"],["Takri","Takri"],["Tai_Le","Tai_Le"],["New_Tai_Lue","New_Tai_Lue"],["Tamil","Tamil"],["Tangut","Tangut"],["Tai_Viet","Tai_Viet"],["Telugu","Telugu"],["Tifinagh","Tifinagh"],["Tagalog","Tagalog"],["Thaana","Thaana"],["Tibetan","Tibetan"],["Tirhuta","Tirhuta"],["Ugaritic","Ugaritic"],["Vai","Vai"],["Warang_Citi","Warang_Citi"],["Old_Persian","Old_Persian"],["Cuneiform","Cuneiform"],["Yi","Yi"],["Zanabazar_Square","Zanabazar_Square"],["Inherited","Inherited"],["Common","Common"],["Unknown","Unknown"]])],["Script_Extensions",new Map([["Adlm","Adlam"],["Aghb","Caucasian_Albanian"],["Ahom","Ahom"],["Arab","Arabic"],["Armi","Imperial_Aramaic"],["Armn","Armenian"],["Avst","Avestan"],["Bali","Balinese"],["Bamu","Bamum"],["Bass","Bassa_Vah"],["Batk","Batak"],["Beng","Bengali"],["Bhks","Bhaiksuki"],["Bopo","Bopomofo"],["Brah","Brahmi"],["Brai","Braille"],["Bugi","Buginese"],["Buhd","Buhid"],["Cakm","Chakma"],["Cans","Canadian_Aboriginal"],["Cari","Carian"],["Cham","Cham"],["Cher","Cherokee"],["Copt","Coptic"],["Qaac","Coptic"],["Cprt","Cypriot"],["Cyrl","Cyrillic"],["Deva","Devanagari"],["Dsrt","Deseret"],["Dupl","Duployan"],["Egyp","Egyptian_Hieroglyphs"],["Elba","Elbasan"],["Ethi","Ethiopic"],["Geor","Georgian"],["Glag","Glagolitic"],["Gonm","Masaram_Gondi"],["Goth","Gothic"],["Gran","Grantha"],["Grek","Greek"],["Gujr","Gujarati"],["Guru","Gurmukhi"],["Hang","Hangul"],["Hani","Han"],["Hano","Hanunoo"],["Hatr","Hatran"],["Hebr","Hebrew"],["Hira","Hiragana"],["Hluw","Anatolian_Hieroglyphs"],["Hmng","Pahawh_Hmong"],["Hrkt","Katakana_Or_Hiragana"],["Hung","Old_Hungarian"],["Ital","Old_Italic"],["Java","Javanese"],["Kali","Kayah_Li"],["Kana","Katakana"],["Khar","Kharoshthi"],["Khmr","Khmer"],["Khoj","Khojki"],["Knda","Kannada"],["Kthi","Kaithi"],["Lana","Tai_Tham"],["Laoo","Lao"],["Latn","Latin"],["Lepc","Lepcha"],["Limb","Limbu"],["Lina","Linear_A"],["Linb","Linear_B"],["Lisu","Lisu"],["Lyci","Lycian"],["Lydi","Lydian"],["Mahj","Mahajani"],["Mand","Mandaic"],["Mani","Manichaean"],["Marc","Marchen"],["Mend","Mende_Kikakui"],["Merc","Meroitic_Cursive"],["Mero","Meroitic_Hieroglyphs"],["Mlym","Malayalam"],["Modi","Modi"],["Mong","Mongolian"],["Mroo","Mro"],["Mtei","Meetei_Mayek"],["Mult","Multani"],["Mymr","Myanmar"],["Narb","Old_North_Arabian"],["Nbat","Nabataean"],["Newa","Newa"],["Nkoo","Nko"],["Nshu","Nushu"],["Ogam","Ogham"],["Olck","Ol_Chiki"],["Orkh","Old_Turkic"],["Orya","Oriya"],["Osge","Osage"],["Osma","Osmanya"],["Palm","Palmyrene"],["Pauc","Pau_Cin_Hau"],["Perm","Old_Permic"],["Phag","Phags_Pa"],["Phli","Inscriptional_Pahlavi"],["Phlp","Psalter_Pahlavi"],["Phnx","Phoenician"],["Plrd","Miao"],["Prti","Inscriptional_Parthian"],["Rjng","Rejang"],["Runr","Runic"],["Samr","Samaritan"],["Sarb","Old_South_Arabian"],["Saur","Saurashtra"],["Sgnw","SignWriting"],["Shaw","Shavian"],["Shrd","Sharada"],["Sidd","Siddham"],["Sind","Khudawadi"],["Sinh","Sinhala"],["Sora","Sora_Sompeng"],["Soyo","Soyombo"],["Sund","Sundanese"],["Sylo","Syloti_Nagri"],["Syrc","Syriac"],["Tagb","Tagbanwa"],["Takr","Takri"],["Tale","Tai_Le"],["Talu","New_Tai_Lue"],["Taml","Tamil"],["Tang","Tangut"],["Tavt","Tai_Viet"],["Telu","Telugu"],["Tfng","Tifinagh"],["Tglg","Tagalog"],["Thaa","Thaana"],["Thai","Thai"],["Tibt","Tibetan"],["Tirh","Tirhuta"],["Ugar","Ugaritic"],["Vaii","Vai"],["Wara","Warang_Citi"],["Xpeo","Old_Persian"],["Xsux","Cuneiform"],["Yiii","Yi"],["Zanb","Zanabazar_Square"],["Zinh","Inherited"],["Qaai","Inherited"],["Zyyy","Common"],["Zzzz","Unknown"],["Adlam","Adlam"],["Caucasian_Albanian","Caucasian_Albanian"],["Arabic","Arabic"],["Imperial_Aramaic","Imperial_Aramaic"],["Armenian","Armenian"],["Avestan","Avestan"],["Balinese","Balinese"],["Bamum","Bamum"],["Bassa_Vah","Bassa_Vah"],["Batak","Batak"],["Bengali","Bengali"],["Bhaiksuki","Bhaiksuki"],["Bopomofo","Bopomofo"],["Brahmi","Brahmi"],["Braille","Braille"],["Buginese","Buginese"],["Buhid","Buhid"],["Chakma","Chakma"],["Canadian_Aboriginal","Canadian_Aboriginal"],["Carian","Carian"],["Cherokee","Cherokee"],["Coptic","Coptic"],["Cypriot","Cypriot"],["Cyrillic","Cyrillic"],["Devanagari","Devanagari"],["Deseret","Deseret"],["Duployan","Duployan"],["Egyptian_Hieroglyphs","Egyptian_Hieroglyphs"],["Elbasan","Elbasan"],["Ethiopic","Ethiopic"],["Georgian","Georgian"],["Glagolitic","Glagolitic"],["Masaram_Gondi","Masaram_Gondi"],["Gothic","Gothic"],["Grantha","Grantha"],["Greek","Greek"],["Gujarati","Gujarati"],["Gurmukhi","Gurmukhi"],["Hangul","Hangul"],["Han","Han"],["Hanunoo","Hanunoo"],["Hatran","Hatran"],["Hebrew","Hebrew"],["Hiragana","Hiragana"],["Anatolian_Hieroglyphs","Anatolian_Hieroglyphs"],["Pahawh_Hmong","Pahawh_Hmong"],["Katakana_Or_Hiragana","Katakana_Or_Hiragana"],["Old_Hungarian","Old_Hungarian"],["Old_Italic","Old_Italic"],["Javanese","Javanese"],["Kayah_Li","Kayah_Li"],["Katakana","Katakana"],["Kharoshthi","Kharoshthi"],["Khmer","Khmer"],["Khojki","Khojki"],["Kannada","Kannada"],["Kaithi","Kaithi"],["Tai_Tham","Tai_Tham"],["Lao","Lao"],["Latin","Latin"],["Lepcha","Lepcha"],["Limbu","Limbu"],["Linear_A","Linear_A"],["Linear_B","Linear_B"],["Lycian","Lycian"],["Lydian","Lydian"],["Mahajani","Mahajani"],["Mandaic","Mandaic"],["Manichaean","Manichaean"],["Marchen","Marchen"],["Mende_Kikakui","Mende_Kikakui"],["Meroitic_Cursive","Meroitic_Cursive"],["Meroitic_Hieroglyphs","Meroitic_Hieroglyphs"],["Malayalam","Malayalam"],["Mongolian","Mongolian"],["Mro","Mro"],["Meetei_Mayek","Meetei_Mayek"],["Multani","Multani"],["Myanmar","Myanmar"],["Old_North_Arabian","Old_North_Arabian"],["Nabataean","Nabataean"],["Nko","Nko"],["Nushu","Nushu"],["Ogham","Ogham"],["Ol_Chiki","Ol_Chiki"],["Old_Turkic","Old_Turkic"],["Oriya","Oriya"],["Osage","Osage"],["Osmanya","Osmanya"],["Palmyrene","Palmyrene"],["Pau_Cin_Hau","Pau_Cin_Hau"],["Old_Permic","Old_Permic"],["Phags_Pa","Phags_Pa"],["Inscriptional_Pahlavi","Inscriptional_Pahlavi"],["Psalter_Pahlavi","Psalter_Pahlavi"],["Phoenician","Phoenician"],["Miao","Miao"],["Inscriptional_Parthian","Inscriptional_Parthian"],["Rejang","Rejang"],["Runic","Runic"],["Samaritan","Samaritan"],["Old_South_Arabian","Old_South_Arabian"],["Saurashtra","Saurashtra"],["SignWriting","SignWriting"],["Shavian","Shavian"],["Sharada","Sharada"],["Siddham","Siddham"],["Khudawadi","Khudawadi"],["Sinhala","Sinhala"],["Sora_Sompeng","Sora_Sompeng"],["Soyombo","Soyombo"],["Sundanese","Sundanese"],["Syloti_Nagri","Syloti_Nagri"],["Syriac","Syriac"],["Tagbanwa","Tagbanwa"],["Takri","Takri"],["Tai_Le","Tai_Le"],["New_Tai_Lue","New_Tai_Lue"],["Tamil","Tamil"],["Tangut","Tangut"],["Tai_Viet","Tai_Viet"],["Telugu","Telugu"],["Tifinagh","Tifinagh"],["Tagalog","Tagalog"],["Thaana","Thaana"],["Tibetan","Tibetan"],["Tirhuta","Tirhuta"],["Ugaritic","Ugaritic"],["Vai","Vai"],["Warang_Citi","Warang_Citi"],["Old_Persian","Old_Persian"],["Cuneiform","Cuneiform"],["Yi","Yi"],["Zanabazar_Square","Zanabazar_Square"],["Inherited","Inherited"],["Common","Common"],["Unknown","Unknown"]])]]),rt=function(t,e){var n=nt.get(t);if(!n)throw new Error("Unknown property `"+t+"`.");var r=n.get(e);if(r)return r;throw new Error("Unknown value `"+e+"` for property `"+t+"`.")},it=new Map([[75,8490],[83,383],[107,8490],[115,383],[181,924],[197,8491],[223,7838],[229,8491],[383,83],[452,453],[453,452],[455,456],[456,455],[458,459],[459,458],[497,498],[498,497],[618,42926],[669,42930],[837,8126],[914,976],[917,1013],[920,1012],[921,8126],[922,1008],[924,181],[928,982],[929,1009],[931,962],[934,981],[937,8486],[952,1012],[962,931],[969,8486],[976,914],[977,1012],[981,934],[982,928],[1008,922],[1009,929],[1012,[920,977,952]],[1013,917],[1042,7296],[1044,7297],[1054,7298],[1057,7299],[1058,7301],[1066,7302],[1074,7296],[1076,7297],[1086,7298],[1089,7299],[1090,[7300,7301]],[1098,7302],[1122,7303],[1123,7303],[5024,43888],[5025,43889],[5026,43890],[5027,43891],[5028,43892],[5029,43893],[5030,43894],[5031,43895],[5032,43896],[5033,43897],[5034,43898],[5035,43899],[5036,43900],[5037,43901],[5038,43902],[5039,43903],[5040,43904],[5041,43905],[5042,43906],[5043,43907],[5044,43908],[5045,43909],[5046,43910],[5047,43911],[5048,43912],[5049,43913],[5050,43914],[5051,43915],[5052,43916],[5053,43917],[5054,43918],[5055,43919],[5056,43920],[5057,43921],[5058,43922],[5059,43923],[5060,43924],[5061,43925],[5062,43926],[5063,43927],[5064,43928],[5065,43929],[5066,43930],[5067,43931],[5068,43932],[5069,43933],[5070,43934],[5071,43935],[5072,43936],[5073,43937],[5074,43938],[5075,43939],[5076,43940],[5077,43941],[5078,43942],[5079,43943],[5080,43944],[5081,43945],[5082,43946],[5083,43947],[5084,43948],[5085,43949],[5086,43950],[5087,43951],[5088,43952],[5089,43953],[5090,43954],[5091,43955],[5092,43956],[5093,43957],[5094,43958],[5095,43959],[5096,43960],[5097,43961],[5098,43962],[5099,43963],[5100,43964],[5101,43965],[5102,43966],[5103,43967],[5104,5112],[5105,5113],[5106,5114],[5107,5115],[5108,5116],[5109,5117],[5112,5104],[5113,5105],[5114,5106],[5115,5107],[5116,5108],[5117,5109],[7296,[1042,1074]],[7297,[1044,1076]],[7298,[1054,1086]],[7299,[1057,1089]],[7300,[7301,1090]],[7301,[1058,7300,1090]],[7302,[1066,1098]],[7303,[1122,1123]],[7304,[42570,42571]],[7776,7835],[7835,7776],[7838,223],[8064,8072],[8065,8073],[8066,8074],[8067,8075],[8068,8076],[8069,8077],[8070,8078],[8071,8079],[8072,8064],[8073,8065],[8074,8066],[8075,8067],[8076,8068],[8077,8069],[8078,8070],[8079,8071],[8080,8088],[8081,8089],[8082,8090],[8083,8091],[8084,8092],[8085,8093],[8086,8094],[8087,8095],[8088,8080],[8089,8081],[8090,8082],[8091,8083],[8092,8084],[8093,8085],[8094,8086],[8095,8087],[8096,8104],[8097,8105],[8098,8106],[8099,8107],[8100,8108],[8101,8109],[8102,8110],[8103,8111],[8104,8096],[8105,8097],[8106,8098],[8107,8099],[8108,8100],[8109,8101],[8110,8102],[8111,8103],[8115,8124],[8124,8115],[8126,[837,921]],[8131,8140],[8140,8131],[8179,8188],[8188,8179],[8486,[937,969]],[8490,75],[8491,[197,229]],[42570,7304],[42571,7304],[42926,618],[42930,669],[42931,43859],[42932,42933],[42933,42932],[42934,42935],[42935,42934],[43859,42931],[43888,5024],[43889,5025],[43890,5026],[43891,5027],[43892,5028],[43893,5029],[43894,5030],[43895,5031],[43896,5032],[43897,5033],[43898,5034],[43899,5035],[43900,5036],[43901,5037],[43902,5038],[43903,5039],[43904,5040],[43905,5041],[43906,5042],[43907,5043],[43908,5044],[43909,5045],[43910,5046],[43911,5047],[43912,5048],[43913,5049],[43914,5050],[43915,5051],[43916,5052],[43917,5053],[43918,5054],[43919,5055],[43920,5056],[43921,5057],[43922,5058],[43923,5059],[43924,5060],[43925,5061],[43926,5062],[43927,5063],[43928,5064],[43929,5065],[43930,5066],[43931,5067],[43932,5068],[43933,5069],[43934,5070],[43935,5071],[43936,5072],[43937,5073],[43938,5074],[43939,5075],[43940,5076],[43941,5077],[43942,5078],[43943,5079],[43944,5080],[43945,5081],[43946,5082],[43947,5083],[43948,5084],[43949,5085],[43950,5086],[43951,5087],[43952,5088],[43953,5089],[43954,5090],[43955,5091],[43956,5092],[43957,5093],[43958,5094],[43959,5095],[43960,5096],[43961,5097],[43962,5098],[43963,5099],[43964,5100],[43965,5101],[43966,5102],[43967,5103],[66560,66600],[66561,66601],[66562,66602],[66563,66603],[66564,66604],[66565,66605],[66566,66606],[66567,66607],[66568,66608],[66569,66609],[66570,66610],[66571,66611],[66572,66612],[66573,66613],[66574,66614],[66575,66615],[66576,66616],[66577,66617],[66578,66618],[66579,66619],[66580,66620],[66581,66621],[66582,66622],[66583,66623],[66584,66624],[66585,66625],[66586,66626],[66587,66627],[66588,66628],[66589,66629],[66590,66630],[66591,66631],[66592,66632],[66593,66633],[66594,66634],[66595,66635],[66596,66636],[66597,66637],[66598,66638],[66599,66639],[66600,66560],[66601,66561],[66602,66562],[66603,66563],[66604,66564],[66605,66565],[66606,66566],[66607,66567],[66608,66568],[66609,66569],[66610,66570],[66611,66571],[66612,66572],[66613,66573],[66614,66574],[66615,66575],[66616,66576],[66617,66577],[66618,66578],[66619,66579],[66620,66580],[66621,66581],[66622,66582],[66623,66583],[66624,66584],[66625,66585],[66626,66586],[66627,66587],[66628,66588],[66629,66589],[66630,66590],[66631,66591],[66632,66592],[66633,66593],[66634,66594],[66635,66595],[66636,66596],[66637,66597],[66638,66598],[66639,66599],[66736,66776],[66737,66777],[66738,66778],[66739,66779],[66740,66780],[66741,66781],[66742,66782],[66743,66783],[66744,66784],[66745,66785],[66746,66786],[66747,66787],[66748,66788],[66749,66789],[66750,66790],[66751,66791],[66752,66792],[66753,66793],[66754,66794],[66755,66795],[66756,66796],[66757,66797],[66758,66798],[66759,66799],[66760,66800],[66761,66801],[66762,66802],[66763,66803],[66764,66804],[66765,66805],[66766,66806],[66767,66807],[66768,66808],[66769,66809],[66770,66810],[66771,66811],[66776,66736],[66777,66737],[66778,66738],[66779,66739],[66780,66740],[66781,66741],[66782,66742],[66783,66743],[66784,66744],[66785,66745],[66786,66746],[66787,66747],[66788,66748],[66789,66749],[66790,66750],[66791,66751],[66792,66752],[66793,66753],[66794,66754],[66795,66755],[66796,66756],[66797,66757],[66798,66758],[66799,66759],[66800,66760],[66801,66761],[66802,66762],[66803,66763],[66804,66764],[66805,66765],[66806,66766],[66807,66767],[66808,66768],[66809,66769],[66810,66770],[66811,66771],[68736,68800],[68737,68801],[68738,68802],[68739,68803],[68740,68804],[68741,68805],[68742,68806],[68743,68807],[68744,68808],[68745,68809],[68746,68810],[68747,68811],[68748,68812],[68749,68813],[68750,68814],[68751,68815],[68752,68816],[68753,68817],[68754,68818],[68755,68819],[68756,68820],[68757,68821],[68758,68822],[68759,68823],[68760,68824],[68761,68825],[68762,68826],[68763,68827],[68764,68828],[68765,68829],[68766,68830],[68767,68831],[68768,68832],[68769,68833],[68770,68834],[68771,68835],[68772,68836],[68773,68837],[68774,68838],[68775,68839],[68776,68840],[68777,68841],[68778,68842],[68779,68843],[68780,68844],[68781,68845],[68782,68846],[68783,68847],[68784,68848],[68785,68849],[68786,68850],[68800,68736],[68801,68737],[68802,68738],[68803,68739],[68804,68740],[68805,68741],[68806,68742],[68807,68743],[68808,68744],[68809,68745],[68810,68746],[68811,68747],[68812,68748],[68813,68749],[68814,68750],[68815,68751],[68816,68752],[68817,68753],[68818,68754],[68819,68755],[68820,68756],[68821,68757],[68822,68758],[68823,68759],[68824,68760],[68825,68761],[68826,68762],[68827,68763],[68828,68764],[68829,68765],[68830,68766],[68831,68767],[68832,68768],[68833,68769],[68834,68770],[68835,68771],[68836,68772],[68837,68773],[68838,68774],[68839,68775],[68840,68776],[68841,68777],[68842,68778],[68843,68779],[68844,68780],[68845,68781],[68846,68782],[68847,68783],[68848,68784],[68849,68785],[68850,68786],[71840,71872],[71841,71873],[71842,71874],[71843,71875],[71844,71876],[71845,71877],[71846,71878],[71847,71879],[71848,71880],[71849,71881],[71850,71882],[71851,71883],[71852,71884],[71853,71885],[71854,71886],[71855,71887],[71856,71888],[71857,71889],[71858,71890],[71859,71891],[71860,71892],[71861,71893],[71862,71894],[71863,71895],[71864,71896],[71865,71897],[71866,71898],[71867,71899],[71868,71900],[71869,71901],[71870,71902],[71871,71903],[71872,71840],[71873,71841],[71874,71842],[71875,71843],[71876,71844],[71877,71845],[71878,71846],[71879,71847],[71880,71848],[71881,71849],[71882,71850],[71883,71851],[71884,71852],[71885,71853],[71886,71854],[71887,71855],[71888,71856],[71889,71857],[71890,71858],[71891,71859],[71892,71860],[71893,71861],[71894,71862],[71895,71863],[71896,71864],[71897,71865],[71898,71866],[71899,71867],[71900,71868],[71901,71869],[71902,71870],[71903,71871],[125184,125218],[125185,125219],[125186,125220],[125187,125221],[125188,125222],[125189,125223],[125190,125224],[125191,125225],[125192,125226],[125193,125227],[125194,125228],[125195,125229],[125196,125230],[125197,125231],[125198,125232],[125199,125233],[125200,125234],[125201,125235],[125202,125236],[125203,125237],[125204,125238],[125205,125239],[125206,125240],[125207,125241],[125208,125242],[125209,125243],[125210,125244],[125211,125245],[125212,125246],[125213,125247],[125214,125248],[125215,125249],[125216,125250],[125217,125251],[125218,125184],[125219,125185],[125220,125186],[125221,125187],[125222,125188],[125223,125189],[125224,125190],[125225,125191],[125226,125192],[125227,125193],[125228,125194],[125229,125195],[125230,125196],[125231,125197],[125232,125198],[125233,125199],[125234,125200],[125235,125201],[125236,125202],[125237,125203],[125238,125204],[125239,125205],[125240,125206],[125241,125207],[125242,125208],[125243,125209],[125244,125210],[125245,125211],[125246,125212],[125247,125213],[125248,125214],[125249,125215],[125250,125216],[125251,125217]]),ot={REGULAR:new Map([["d",Y().addRange(48,57)],["D",Y().addRange(0,47).addRange(58,65535)],["s",Y(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Y().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,65535)],["w",Y(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Y(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)]]),UNICODE:new Map([["d",Y().addRange(48,57)],["D",Y().addRange(0,47).addRange(58,1114111)],["s",Y(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Y().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111)],["w",Y(95).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Y(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)]]),UNICODE_IGNORE_CASE:new Map([["d",Y().addRange(48,57)],["D",Y().addRange(0,47).addRange(58,1114111)],["s",Y(32,160,5760,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233)],["S",Y().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111)],["w",Y(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122)],["W",Y(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,382).addRange(384,8489).addRange(8491,1114111)]])},at=createCommonjsModule(function(t){var e=Q.generate,n=G.parse,r=Y().addRange(0,1114111),i=Y().addRange(0,65535),o=r.clone().remove(10,13,8232,8233),a=o.clone().intersection(i),s=function(t,e,n){return e?n?ot.UNICODE_IGNORE_CASE.get(t):ot.UNICODE.get(t):ot.REGULAR.get(t)},u=function(t,e){try{return commonjsRequire()}catch(n){throw new Error("Failed to recognize value `"+e+"` for property `"+t+"`.")}},l=function(t){try{var e=rt("General_Category",t);return u("General_Category",e)}catch(t){}var n=et(t);return u(n)},c=function(t,e){var n,i=t.split("="),o=i[0];if(1==i.length)n=l(o);else{var a=et(o),s=rt(a,i[1]);n=u(a,s)}return e?r.clone().remove(n):n.clone()};Y.prototype.iuAddRange=function(t,e){do{var n=h(t);n&&this.add(n)}while(++t<=e);return this};var p=function(t,e){var r=n(e,v.useUnicodeFlag?"u":"");switch(r.type){case"characterClass":case"group":case"value":break;default:r=f(r,e)}Object.assign(t,r)},f=function(t,e){return{type:"group",behavior:"ignore",body:[t],raw:"(?:"+e+")"}},h=function(t){return it.get(t)||!1},d=function(t,e){for(var n=Y(),o=0,a=t.body;oT&&e.remove(T,k.value.start),e.prependLeft(T," = ")):e.overwrite(k.start,k.key.end+1,"["+e.slice(k.start,k.key.end)+"] = "),!k.method||!k.computed&&n.conciseMethodProperty||(k.value.generator&&e.remove(k.start,k.key.start),e.prependRight(k.value.start,"function"+(k.value.generator?"*":"")+" "))}else"SpreadElement"===k.type?g&&E>0&&(x||(x=this.properties[E-1]),e.appendLeft(x.end,", "+g+" )"),x=null,g=null):(!C&&o&&(e.prependRight(k.start,"{"),e.appendLeft(k.end,"}")),S=!0);if(C&&("SpreadElement"===k.type||k.computed)){var R=S?this.properties[this.properties.length-1].end:this.end-1;","==e.original[R]&&++R;var M=e.slice(R,_);e.prependLeft(P,M),e.remove(R,_),C=!1}var N=k.end;if(Ethis.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(t)},ReturnStatement.prototype.transpile=function transpile(t,e){var n=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(n&&t.prependRight(this.argument.start,"{ v: "),this.argument.transpile(t,e),n&&t.appendLeft(this.argument.end," }")):n&&t.appendLeft(this.start+6," {}")},ReturnStatement}(p),SpreadElement:function(t){function SpreadElement(){t.apply(this,arguments)}return t&&(SpreadElement.__proto__=t),SpreadElement.prototype=Object.create(t&&t.prototype),SpreadElement.prototype.constructor=SpreadElement,SpreadElement.prototype.transpile=function transpile(e,n){"ObjectExpression"==this.parent.type&&(e.remove(this.start,this.argument.start),e.remove(this.argument.end,this.end)),t.prototype.transpile.call(this,e,n)},SpreadElement}(p),Super:function(t){function Super(){t.apply(this,arguments)}return t&&(Super.__proto__=t),Super.prototype=Object.create(t&&t.prototype),Super.prototype.constructor=Super,Super.prototype.initialise=function initialise(t){if(t.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new d("use of super outside class method",this);var e=this.findNearest("ClassBody").parent;if(this.superClassName=e.superClass&&(e.superClass.name||"superclass"),!this.superClassName)throw new d("super used in base class",this);if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new d("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new d("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(t.arrow){var n=this.findLexicalBoundary(),r=this.findNearest("ArrowFunctionExpression"),i=this.findNearest(x);r&&r.depth>n.depth&&(this.thisAlias=n.getThisAlias()),i&&i.body.contains(this)&&i.depth>n.depth&&(this.thisAlias=n.getThisAlias())}},Super.prototype.transpile=function transpile(t,e){if(e.classes){var n=this.isCalled||this.method.static?this.superClassName:this.superClassName+".prototype";t.overwrite(this.start,this.end,n,{storeName:!0,contentOnly:!0});var r=this.isCalled?this.parent:this.parent.parent;if(r&&"CallExpression"===r.type){this.noCall||t.appendLeft(r.callee.end,".call");var i=this.thisAlias||"this";r.arguments.length?t.appendLeft(r.arguments[0].start,i+", "):t.appendLeft(r.end-1,""+i)}}},Super}(p),TaggedTemplateExpression:function(t){function TaggedTemplateExpression(){t.apply(this,arguments)}return t&&(TaggedTemplateExpression.__proto__=t),TaggedTemplateExpression.prototype=Object.create(t&&t.prototype),TaggedTemplateExpression.prototype.constructor=TaggedTemplateExpression,TaggedTemplateExpression.prototype.initialise=function initialise(e){if(e.templateString&&!e.dangerousTaggedTemplateString)throw new d("Tagged template strings are not supported. Use `transforms: { templateString: false }` to skip transformation and disable this error, or `transforms: { dangerousTaggedTemplateString: true }` if you know what you're doing",this);t.prototype.initialise.call(this,e)},TaggedTemplateExpression.prototype.transpile=function transpile(e,n){if(n.templateString&&n.dangerousTaggedTemplateString){var r=this.quasi.expressions.concat(this.quasi.quasis).sort(function(t,e){return t.start-e.start}),i=this.program.body.scope,o=this.quasi.quasis.map(function(t){return JSON.stringify(t.value.cooked)}).join(", "),a=this.program.templateLiteralQuasis[o];a||(a=i.createIdentifier("templateObject"),e.prependRight(this.program.prependAt,"var "+a+" = Object.freeze(["+o+"]);\n"),this.program.templateLiteralQuasis[o]=a),e.overwrite(this.tag.end,r[0].start,"("+a);var s=r[0].start;r.forEach(function(t){"TemplateElement"===t.type?e.remove(s,t.end):e.overwrite(s,t.start,", "),s=t.end}),e.overwrite(s,this.end,")")}t.prototype.transpile.call(this,e,n)},TaggedTemplateExpression}(p),TemplateElement:function(t){function TemplateElement(){t.apply(this,arguments)}return t&&(TemplateElement.__proto__=t),TemplateElement.prototype=Object.create(t&&t.prototype),TemplateElement.prototype.constructor=TemplateElement,TemplateElement.prototype.initialise=function initialise(){this.program.indentExclusionElements.push(this)},TemplateElement}(p),TemplateLiteral:function(t){function TemplateLiteral(){t.apply(this,arguments)}return t&&(TemplateLiteral.__proto__=t),TemplateLiteral.prototype=Object.create(t&&t.prototype),TemplateLiteral.prototype.constructor=TemplateLiteral,TemplateLiteral.prototype.transpile=function transpile(e,n){if(t.prototype.transpile.call(this,e,n),n.templateString&&"TaggedTemplateExpression"!==this.parent.type){var r=this.expressions.concat(this.quasis).sort(function(t,e){return t.start-e.start||t.end-e.end}).filter(function(t,e){return"TemplateElement"!==t.type||(!!t.value.raw||!e)});if(r.length>=3){var i=r[0],o=r[2];"TemplateElement"===i.type&&""===i.value.raw&&"TemplateElement"===o.type&&r.shift()}var a=!(1===this.quasis.length&&0===this.expressions.length||"TemplateLiteral"===this.parent.type||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);a&&e.appendRight(this.start,"(");var s=this.start;r.forEach(function(t,n){var r=0===n?a?"(":"":" + ";if("TemplateElement"===t.type)e.overwrite(s,t.end,r+JSON.stringify(t.value.cooked));else{var i="Identifier"!==t.type;i&&(r+="("),e.remove(s,t.start),r&&e.prependRight(t.start,r),i&&e.appendLeft(t.end,")")}s=t.end}),a&&e.appendLeft(s,")"),e.overwrite(s,this.end,"",{contentOnly:!0})}},TemplateLiteral}(p),ThisExpression:function(t){function ThisExpression(){t.apply(this,arguments)}return t&&(ThisExpression.__proto__=t),ThisExpression.prototype=Object.create(t&&t.prototype),ThisExpression.prototype.constructor=ThisExpression,ThisExpression.prototype.initialise=function initialise(t){if(t.arrow){var e=this.findLexicalBoundary(),n=this.findNearest("ArrowFunctionExpression"),r=this.findNearest(x);(n&&n.depth>e.depth||r&&r.body.contains(this)&&r.depth>e.depth||r&&r.right&&r.right.contains(this))&&(this.alias=e.getThisAlias())}},ThisExpression.prototype.transpile=function transpile(t){this.alias&&t.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},ThisExpression}(p),UpdateExpression:function(t){function UpdateExpression(){t.apply(this,arguments)}return t&&(UpdateExpression.__proto__=t),UpdateExpression.prototype=Object.create(t&&t.prototype),UpdateExpression.prototype.constructor=UpdateExpression,UpdateExpression.prototype.initialise=function initialise(e){if("Identifier"===this.argument.type){var n=this.findScope(!1).findDeclaration(this.argument.name),r=n&&n.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.argument.name]=!0)}t.prototype.initialise.call(this,e)},UpdateExpression.prototype.transpile=function transpile(e,n){"Identifier"===this.argument.type&&checkConst(this.argument,this.findScope(!1)),t.prototype.transpile.call(this,e,n)},UpdateExpression}(p),VariableDeclaration:function(t){function VariableDeclaration(){t.apply(this,arguments)}return t&&(VariableDeclaration.__proto__=t),VariableDeclaration.prototype=Object.create(t&&t.prototype),VariableDeclaration.prototype.constructor=VariableDeclaration,VariableDeclaration.prototype.initialise=function initialise(t){this.scope=this.findScope("var"===this.kind),this.declarations.forEach(function(e){return e.initialise(t)})},VariableDeclaration.prototype.transpile=function transpile(t,e){var n=this,r=this.getIndentation(),i=this.kind;if(e.letConst&&"var"!==i&&(i="var",t.overwrite(this.start,this.start+this.kind.length,i,{contentOnly:!0,storeName:!0})),e.destructuring&&"ForOfStatement"!==this.parent.type&&"ForInStatement"!==this.parent.type){var o,a=this.start;this.declarations.forEach(function(i,s){if(i.transpile(t,e),"Identifier"===i.id.type)s>0&&"Identifier"!==n.declarations[s-1].id.type&&t.overwrite(a,i.id.start,"var ");else{var u=x.test(n.parent.type);0===s?t.remove(a,i.id.start):t.overwrite(a,i.id.start,";\n"+r);var l="Identifier"===i.init.type&&!i.init.rewritten,c=l?i.init.alias||i.init.name:i.findScope(!0).createIdentifier("ref");a=i.start;var p=[];l?t.remove(i.id.end,i.end):p.push(function(e,n,r){t.prependRight(i.id.end,"var "+c),t.appendLeft(i.init.end,""+r),t.move(i.id.end,i.end,e)});var f=i.findScope(!1);destructure(t,function(t){return f.createIdentifier(t)},function(t){var e=t.name;return f.resolveName(e)},i.id,c,u,p);var h=u?"var ":"",d=u?", ":";\n"+r;p.forEach(function(t,e){s===n.declarations.length-1&&e===p.length-1&&(d=u?"":";"),t(i.start,0===e?h:"",d)})}a=i.end,o="Identifier"!==i.id.type}),o&&this.end>a&&t.overwrite(a,this.end,"",{contentOnly:!0})}else this.declarations.forEach(function(n){n.transpile(t,e)})},VariableDeclaration}(p),VariableDeclarator:function(t){function VariableDeclarator(){t.apply(this,arguments)}return t&&(VariableDeclarator.__proto__=t),VariableDeclarator.prototype=Object.create(t&&t.prototype),VariableDeclarator.prototype.constructor=VariableDeclarator,VariableDeclarator.prototype.initialise=function initialise(e){var n=this.parent.kind;"let"===n&&"ForStatement"===this.parent.parent.type&&(n="for.let"),this.parent.scope.addDeclaration(this.id,n),t.prototype.initialise.call(this,e)},VariableDeclarator.prototype.transpile=function transpile(t,e){if(!this.init&&e.letConst&&"var"!==this.parent.kind){var n=this.findNearest(/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!n||/Function/.test(n.type)||this.isLeftDeclaratorOfLoop()||t.appendLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(t,e),this.init&&this.init.transpile(t,e)},VariableDeclarator.prototype.isLeftDeclaratorOfLoop=function isLeftDeclaratorOfLoop(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this},VariableDeclarator}(p),WhileStatement:T},ut={Program:["body"],Literal:[]},lt={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"};function wrap(t,e){if(t)if("length"in t)for(var n=t.length;n--;)wrap(t[n],e);else if(!t.__wrapped){t.__wrapped=!0,ut[t.type]||(ut[t.type]=Object.keys(t).filter(function(e){return"object"==typeof t[e]}));var r=lt[t.type];if(r&&"BlockStatement"!==t[r].type){var i=t[r];t[r]={start:i.start,end:i.end,type:"BlockStatement",body:[i],synthetic:!0}}t.parent=e,t.program=e.program||e,t.depth=e.depth+1,t.keys=ut[t.type],t.indentation=void 0;for(var o=0,a=ut[t.type];o...",!0,!0),e.jsxName=new t.TokenType("jsxName"),e.jsxText=new t.TokenType("jsxText",{beforeExpr:!0}),e.jsxTagStart=new t.TokenType("jsxTagStart"),e.jsxTagEnd=new t.TokenType("jsxTagEnd"),e.jsxTagStart.updateContext=function(){this.context.push(n.j_expr),this.context.push(n.j_oTag),this.exprAllowed=!1},e.jsxTagEnd.updateContext=function(t){var r=this.context.pop();r===n.j_oTag&&t===e.slash||r===n.j_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===n.j_expr):this.exprAllowed=!0};var r=t.Parser.prototype;function getQualifiedJSXName(t){return t?"JSXIdentifier"===t.type?t.name:"JSXNamespacedName"===t.type?t.namespace.name+":"+t.name.name:"JSXMemberExpression"===t.type?getQualifiedJSXName(t.object)+"."+getQualifiedJSXName(t.property):void 0:t}return r.jsx_readToken=function(){for(var n="",r=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var i=this.input.charCodeAt(this.pos);switch(i){case 60:case 123:return this.pos===this.start?60===i&&this.exprAllowed?(++this.pos,this.finishToken(e.jsxTagStart)):this.getTokenFromCode(i):(n+=this.input.slice(r,this.pos),this.finishToken(e.jsxText,n));case 38:n+=this.input.slice(r,this.pos),n+=this.jsx_readEntity(),r=this.pos;break;default:t.isNewLine(i)?(n+=this.input.slice(r,this.pos),n+=this.jsx_readNewLine(!0),r=this.pos):++this.pos}}},r.jsx_readNewLine=function(t){var e,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,e=t?"\n":"\r\n"):e=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),e},r.jsx_readString=function(n){for(var r="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var o=this.input.charCodeAt(this.pos);if(o===n)break;38===o?(r+=this.input.slice(i,this.pos),r+=this.jsx_readEntity(),i=this.pos):t.isNewLine(o)?(r+=this.input.slice(i,this.pos),r+=this.jsx_readNewLine(!1),i=this.pos):++this.pos}return r+=this.input.slice(i,this.pos++),this.finishToken(e.string,r)},r.jsx_readEntity=function(){var t,e="",n=0,r=this.input[this.pos];"&"!==r&&this.raise(this.pos,"Entity must start with an ampersand");for(var i=++this.pos;this.pos")}return r.openingElement=o,r.closingElement=a,r.children=i,this.type===e.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,o.name?"JSXElement":"JSXFragment")},r.jsx_parseText=function(t){var e=this.parseLiteral(t);return e.type="JSXText",e},r.jsx_parseElement=function(){var t=this.start,e=this.startLoc;return this.next(),this.jsx_parseElementAt(t,e)},t.plugins.jsx=function(r,i){i&&("object"!=typeof i&&(i={}),r.options.plugins.jsx={allowNamespaces:!1!==i.allowNamespaces,allowNamespacedObjects:!!i.allowNamespacedObjects},r.extend("parseExprAtom",function(t){return function(n){return this.type===e.jsxText?this.jsx_parseText(this.value):this.type===e.jsxTagStart?this.jsx_parseElement():t.call(this,n)}}),r.extend("readToken",function(r){return function(i){var o=this.curContext();if(o===n.j_expr)return this.jsx_readToken();if(o===n.j_oTag||o===n.j_cTag){if(t.isIdentifierStart(i))return this.jsx_readWord();if(62==i)return++this.pos,this.finishToken(e.jsxTagEnd);if((34===i||39===i)&&o==n.j_oTag)return this.jsx_readString(i)}return 60===i&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(e.jsxTagStart)):r.call(this,i)}}),r.extend("updateContext",function(t){return function(r){if(this.type==e.braceL){var i=this.curContext();i==n.j_oTag?this.context.push(n.b_expr):i==n.j_expr?this.context.push(n.b_tmpl):t.call(this,r),this.exprAllowed=!0}else{if(this.type!==e.slash||r!==e.jsxTagStart)return t.call(this,r);this.context.length-=2,this.context.push(n.j_cTag),this.exprAllowed=!1}}}))},t},c].reduce(function(t,e){return e(t)},i).parse,ht=["dangerousTaggedTemplateString","dangerousForOf"];function target(t){var e=Object.keys(t).length?1048575:262144;Object.keys(t).forEach(function(n){var r=ct[n];if(!r)throw new Error("Unknown environment '"+n+"'. Please raise an issue at https://github.com/Rich-Harris/buble/issues");var i=t[n];if(!(i in r))throw new Error("Support data exists for the following versions of "+n+": "+Object.keys(r).join(", ")+". Please raise an issue at https://github.com/Rich-Harris/buble/issues");var o=r[i];e&=o});var n=Object.create(null);return pt.forEach(function(t,r){n[t]=!(e&1<=r.length)return"\t";var i=r.reduce(function(t,e){var n=/^ +/.exec(e)[0].length;return Math.min(n,t)},1/0);return new Array(i+1).join(" ")}function getRelativePath(t,e){var n=t.split(/[\/\\]/),r=e.split(/[\/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var i=n.length;i--;)n[i]="..";return n.concat(r).join("/")}SourceMap.prototype={toString:function toString(){return JSON.stringify(this)},toUrl:function toUrl(){return"data:application/json;charset=utf-8;base64,"+o(this.toString())}};var a=Object.prototype.toString;function isObject(t){return"[object Object]"===a.call(t)}function getLocator(t){var e=t.split("\n"),n=0,r=e.map(function(t,e){var r=n+t.length+1,i={start:n,end:r,line:e};return n=r,i}),i=0;function rangeContains(t,e){return t.start<=e&&e=e.end?1:-1;e;){if(rangeContains(e,t))return getLocation(e,t);e=r[i+=n]}}}function Mappings(t){var e=this,n={generatedCodeColumn:0,sourceIndex:0,sourceCodeLine:0,sourceCodeColumn:0,sourceCodeName:0},r=0,o=0;this.raw=[];var a=this.raw[r]=[],s=null;this.addEdit=function(t,n,r,i,u){n.length?a.push([o,t,i.line,i.column,u]):s&&a.push(s),e.advance(n),s=null},this.addUneditedChunk=function(n,i,u,l,c){for(var p=i.start,f=!0;p=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(n);var r=this.byStart[t],i=this.byEnd[e],o=r.previous,a=i.next,s=this.byStart[n];if(!s&&i===this.lastChunk)return this;var u=s?s.previous:this.lastChunk;return o&&(o.next=a),a&&(a.previous=o),u&&(u.next=r),s&&(s.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=u,i.next=s||null,u||(this.firstChunk=r),s||(this.lastChunk=i),this},overwrite:function overwrite(t,e,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(e),!0===r&&(u.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),u.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,o=void 0!==r&&r.contentOnly;if(i){var a=this.original.slice(t,e);this.storedNames[a]=!0}var s=this.byStart[t],l=this.byEnd[e];if(s){if(e>s.end&&s.next!==this.byStart[s.end])throw new Error("Cannot overwrite across a split point");if(s.edit(n,i,o),s!==l){for(var c=s.next;c!==l;)c.edit("",!1),c=c.next;c.edit("",!1)}}else{var p=new Chunk(t,e,"").edit(n,i);l.next=p,p.previous=l}return this},prepend:function prepend(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this},prependLeft:function prependLeft(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.prependLeft(e):this.intro=e+this.intro,this},prependRight:function prependRight(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.prependRight(e):this.outro=e+this.outro,this},remove:function remove(t,e){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);for(var n=this.byStart[t];n;)n.intro="",n.outro="",n.edit(""),n=e>n.end?this.byStart[n.end]:null;return this},slice:function slice(t,e){for(void 0===t&&(t=0),void 0===e&&(e=this.original.length);t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>t||r.end<=t);){if(r.start=e)return n;r=r.next}if(r&&r.edited&&r.start!==t)throw new Error("Cannot use replaced character "+t+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==t||(n+=r.intro);var o=r.start=e;if(o&&r.edited&&r.end!==e)throw new Error("Cannot use replaced character "+e+" as slice end anchor.");var a=i===r?t-r.start:0,s=o?r.content.length+e-r.end:r.content.length;if(n+=r.content.slice(a,s),!r.outro||o&&r.end!==e||(n+=r.outro),o)break;r=r.next}return n},snip:function snip(t,e){var n=this.clone();return n.remove(0,t),n.remove(e,n.original.length),n},_split:function _split(t){if(!this.byStart[t]&&!this.byEnd[t])for(var e=this.lastSearchedChunk,n=t>e.end;;){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}},_splitChunk:function _splitChunk(t,e){if(t.edited&&t.content.length){var n=getLocator(this.original)(e);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+t.original+'")')}var r=t.split(e);return this.byEnd[e]=t,this.byStart[e]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0},toString:function toString(){for(var t=this.intro,e=this.firstChunk;e;)t+=e.toString(),e=e.next;return t+this.outro},trimLines:function trimLines(){return this.trim("[\\r\\n]")},trim:function trim(t){return this.trimStart(t).trimEnd(t)},trimEnd:function trimEnd(t){var e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return this;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(e);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return this;n=n.previous}while(n);return this},trimStart:function trimStart(t){var e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return this;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(e);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return this;n=n.next}while(n);return this}};var l=Object.prototype.hasOwnProperty;function Bundle(t){void 0===t&&(t={}),this.intro=t.intro||"",this.separator=void 0!==t.separator?t.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}Bundle.prototype={addSource:function addSource(t){if(t instanceof MagicString$1)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!isObject(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(e){l.call(t,e)||(t[e]=t.content[e])}),void 0===t.separator&&(t.separator=this.separator),t.filename)if(l.call(this.uniqueSourceIndexByFilename,t.filename)){var e=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==e.content)throw new Error("Illegal source: same filename ("+t.filename+"), different contents")}else this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});return this.sources.push(t),this},append:function append(t,e){return this.addSource({content:new MagicString$1(t),separator:e&&e.separator||""}),this},clone:function clone(){var t=new Bundle({intro:this.intro,separator:this.separator});return this.sources.forEach(function(e){t.addSource({filename:e.filename,content:e.content.clone(),separator:e.separator})}),t},generateMap:function generateMap(t){var e=this;void 0===t&&(t={});var n=[];this.sources.forEach(function(t){Object.keys(t.content.storedNames).forEach(function(t){~n.indexOf(t)||n.push(t)})});var r=new Mappings(t.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(function(t,i){i>0&&r.advance(e.separator);var o=t.filename?e.uniqueSourceIndexByFilename[t.filename]:-1,a=t.content,s=getLocator(a.original);a.intro&&r.advance(a.intro),a.firstChunk.eachNext(function(e){var i=s(e.start);e.intro.length&&r.advance(e.intro),t.filename?e.edited?r.addEdit(o,e.content,e.original,i,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(o,e,a.original,i,a.sourcemapLocations):r.advance(e.content),e.outro.length&&r.advance(e.outro)}),a.outro&&r.advance(a.outro)}),new SourceMap({file:t.file?t.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(e){return t.file?getRelativePath(t.file,e.filename):e.filename}),sourcesContent:this.uniqueSources.map(function(e){return t.includeContent?e.content:null}),names:n,mappings:r.encode()})},getIndentString:function getIndentString(){var t={};return this.sources.forEach(function(e){var n=e.content.indentStr;null!==n&&(t[n]||(t[n]=0),t[n]+=1)}),Object.keys(t).sort(function(e,n){return t[e]-t[n]})[0]||"\t"},indent:function indent(t){var e=this;if(arguments.length||(t=this.getIndentString()),""===t)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(r,i){var o=void 0!==r.separator?r.separator:e.separator,a=n||i>0&&/\r?\n$/.test(o);r.content.indent(t,{exclude:r.indentExclusionRanges,indentStart:a}),n="\n"===r.content.toString().slice(0,-1)}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,function(e,n){return n>0?t+e:e})),this},prepend:function prepend(t){return this.intro=t+this.intro,this},toString:function toString(){var t=this,e=this.sources.map(function(e,n){var r=void 0!==e.separator?e.separator:t.separator;return(n>0?r:"")+e.content.toString()}).join("");return this.intro+e},trimLines:function trimLines(){return this.trim("[\\r\\n]")},trim:function trim(t){return this.trimStart(t).trimEnd(t)},trimStart:function trimStart(t){var e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r]))break;n.content.trimStart(t),r+=1}while(""===n.content.toString())}return this},trimEnd:function trimEnd(t){var e,n=new RegExp((t||"\\s")+"+$"),r=this.sources.length-1;do{if(!(e=this.sources[r])){this.intro=this.intro.replace(n,"");break}e.content.trimEnd(t),r-=1}while(""===e.content.toString());return this}},e.a=MagicString$1}).call(this,n(207).Buffer,n(189))},function(t,e,n){"use strict";n.d(e,"a",function(){return encode});var r={},i={};function encode(t){var e;if("number"==typeof t)e=encodeInteger(t);else{e="";for(var n=0;n>=5)>0&&(n|=32),e+=i[n]}while(t>0);return e}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(t,e){r[t]=e,i[e]=t})},function(t,e,n){"use strict";n.r(e),n.d(e,"version",function(){return rt}),n.d(e,"parse",function(){return parse}),n.d(e,"parseExpressionAt",function(){return parseExpressionAt}),n.d(e,"tokenizer",function(){return tokenizer}),n.d(e,"parse_dammit",function(){return tt}),n.d(e,"LooseParser",function(){return et}),n.d(e,"pluginsLoose",function(){return nt}),n.d(e,"addLooseExports",function(){return addLooseExports}),n.d(e,"Parser",function(){return T}),n.d(e,"plugins",function(){return j}),n.d(e,"defaultOptions",function(){return O}),n.d(e,"Position",function(){return k}),n.d(e,"SourceLocation",function(){return P}),n.d(e,"getLineInfo",function(){return getLineInfo}),n.d(e,"Node",function(){return z}),n.d(e,"TokenType",function(){return h}),n.d(e,"tokTypes",function(){return g}),n.d(e,"keywordTypes",function(){return v}),n.d(e,"TokContext",function(){return H}),n.d(e,"tokContexts",function(){return K}),n.d(e,"isIdentifierChar",function(){return isIdentifierChar}),n.d(e,"isIdentifierStart",function(){return isIdentifierStart}),n.d(e,"Token",function(){return G}),n.d(e,"isNewLine",function(){return isNewLine}),n.d(e,"lineBreak",function(){return y}),n.d(e,"lineBreakG",function(){return b}),n.d(e,"nonASCIIwhitespace",function(){return _});var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:i,6:i+" const class extends export import super"},a=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",l=new RegExp("["+s+"]"),c=new RegExp("["+s+u+"]");s=u=null;var p=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function isInAstralSet(t,e){for(var n=65536,r=0;rt)return!1;if((n+=e[r+1])>=t)return!0}}function isIdentifierStart(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&l.test(String.fromCharCode(t)):!1!==e&&isInAstralSet(t,p)))}function isIdentifierChar(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&c.test(String.fromCharCode(t)):!1!==e&&(isInAstralSet(t,p)||isInAstralSet(t,f)))))}var h=function TokenType(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function binop(t,e){return new h(t,{beforeExpr:!0,binop:e})}var d={beforeExpr:!0},m={startsExpr:!0},v={};function kw(t,e){return void 0===e&&(e={}),e.keyword=t,v[t]=new h(t,e)}var g={num:new h("num",m),regexp:new h("regexp",m),string:new h("string",m),name:new h("name",m),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",d),semi:new h(";",d),colon:new h(":",d),dot:new h("."),question:new h("?",d),arrow:new h("=>",d),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",d),backQuote:new h("`",m),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new h("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",d),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",d),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",d),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",m),_if:kw("if"),_return:kw("return",d),_switch:kw("switch"),_throw:kw("throw",d),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",m),_super:kw("super",m),_class:kw("class",m),_extends:kw("extends",d),_export:kw("export"),_import:kw("import"),_null:kw("null",m),_true:kw("true",m),_false:kw("false",m),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},y=/\r\n?|\n|\u2028|\u2029/,b=new RegExp(y.source,"g");function isNewLine(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var _=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,x=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,w=Object.prototype,S=w.hasOwnProperty,C=w.toString;function has(t,e){return S.call(t,e)}var E=Array.isArray||function(t){return"[object Array]"===C.call(t)},k=function Position(t,e){this.line=t,this.column=e};k.prototype.offset=function offset(t){return new k(this.line,this.column+t)};var P=function SourceLocation(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function getLineInfo(t,e){for(var n=1,r=0;;){b.lastIndex=r;var i=b.exec(t);if(!(i&&i.index=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),E(e.onToken)){var r=e.onToken;e.onToken=function(t){return r.push(t)}}return E(e.onComment)&&(e.onComment=pushComment(e,e.onComment)),e}function pushComment(t,e){return function(n,r,i,o,a,s){var u={type:n?"Block":"Line",value:r,start:i,end:o};t.locations&&(u.loc=new P(this,a,s)),t.ranges&&(u.range=[i,o]),e.push(u)}}var j={};function keywordRegexp(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var T=function Parser(t,e,n){this.options=t=getOptions(t),this.sourceFile=t.sourceFile,this.keywords=keywordRegexp(o[t.ecmaVersion>=6?6:5]);var i="";if(!t.allowReserved){for(var a=t.ecmaVersion;!(i=r[a]);a--);"module"===t.sourceType&&(i+=" await")}this.reservedWords=keywordRegexp(i);var s=(i?i+" ":"")+r.strict;this.reservedWordsStrict=keywordRegexp(s),this.reservedWordsStrictBind=keywordRegexp(s+" "+r.strictBind),this.input=String(e),this.containsEsc=!1,this.loadPlugins(t.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(y).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope(),this.regexpState=null};T.prototype.isKeyword=function isKeyword(t){return this.keywords.test(t)},T.prototype.isReservedWord=function isReservedWord(t){return this.reservedWords.test(t)},T.prototype.extend=function extend(t,e){this[t]=e(this[t])},T.prototype.loadPlugins=function loadPlugins(t){for(var e in t){var n=j[e];if(!n)throw new Error("Plugin '"+e+"' not found");n(this,t[e])}},T.prototype.parse=function parse(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};var R=T.prototype,M=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}R.strictDirective=function(t){for(;;){x.lastIndex=t,t+=x.exec(this.input)[0].length;var e=M.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2]))return!0;t+=e[0].length}},R.eat=function(t){return this.type===t&&(this.next(),!0)},R.isContextual=function(t){return this.type===g.name&&this.value===t&&!this.containsEsc},R.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},R.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},R.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||y.test(this.input.slice(this.lastTokEnd,this.start))},R.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},R.semicolon=function(){this.eat(g.semi)||this.insertSemicolon()||this.unexpected()},R.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},R.expect=function(t){this.eat(t)||this.unexpected()},R.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},R.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},R.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,r=t.doubleProto;if(!e)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},R.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var I={kind:"loop"},L={kind:"switch"};N.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;x.lastIndex=this.pos;var t=x.exec(this.input),e=this.pos+t[0].length,n=this.input.charCodeAt(e);if(91===n||123===n)return!0;if(isIdentifierStart(n,!0)){for(var r=e+1;isIdentifierChar(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(e,r);if(!a.test(i))return!0}return!1},N.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;x.lastIndex=this.pos;var t=x.exec(this.input),e=this.pos+t[0].length;return!(y.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!==this.input.length&&isIdentifierChar(this.input.charAt(e+8)))},N.parseStatement=function(t,e,n){var r,i=this.type,o=this.startNode();switch(this.isLet()&&(i=g._var,r="let"),i){case g._break:case g._continue:return this.parseBreakContinueStatement(o,i.keyword);case g._debugger:return this.parseDebuggerStatement(o);case g._do:return this.parseDoStatement(o);case g._for:return this.parseForStatement(o);case g._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1);case g._class:return t||this.unexpected(),this.parseClass(o,!0);case g._if:return this.parseIfStatement(o);case g._return:return this.parseReturnStatement(o);case g._switch:return this.parseSwitchStatement(o);case g._throw:return this.parseThrowStatement(o);case g._try:return this.parseTryStatement(o);case g._const:case g._var:return r=r||this.value,t||"var"===r||this.unexpected(),this.parseVarStatement(o,r);case g._while:return this.parseWhileStatement(o);case g._with:return this.parseWithStatement(o);case g.braceL:return this.parseBlock();case g.semi:return this.parseEmptyStatement(o);case g._export:case g._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===g._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return t||this.unexpected(),this.next(),this.parseFunctionStatement(o,!0);var a=this.value,s=this.parseExpression();return i===g.name&&"Identifier"===s.type&&this.eat(g.colon)?this.parseLabeledStatement(o,a,s):this.parseExpressionStatement(o,s)}},N.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(g.semi)||this.insertSemicolon()?t.label=null:this.type!==g.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(g.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},N.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(I),this.enterLexicalScope(),this.expect(g.parenL),this.type===g.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===g._var||this.type===g._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(e>-1&&this.unexpected(e),this.parseFor(t,r)):(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,r))}var o=new DestructuringErrors,a=this.parseExpression(!0,o);return this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,o),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(o,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))},N.parseFunctionStatement=function(t,e){return this.next(),this.parseFunction(t,!0,!1,e)},N.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!this.strict&&this.type===g._function),t.alternate=this.eat(g._else)?this.parseStatement(!this.strict&&this.type===g._function):null,this.finishNode(t,"IfStatement")},N.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},N.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(g.braceL),this.labels.push(L),this.enterLexicalScope();for(var n=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var r=this.type===g._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(g.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},N.parseThrowStatement=function(t){return this.next(),y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var A=[];N.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===g._catch){var e=this.startNode();this.next(),this.eat(g.parenL)?(e.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(e.param,"let"),this.expect(g.parenR)):(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterLexicalScope()),e.body=this.parseBlock(!1),this.exitLexicalScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(g._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},N.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},N.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(I),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},N.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},N.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},N.parseLabeledStatement=function(t,e,n){for(var r=0,i=this.labels;r=0;a--){var s=this.labels[a];if(s.statementStart!==t.start)break;s.statementStart=this.start,s.kind=o}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(!0),("ClassDeclaration"===t.body.type||"VariableDeclaration"===t.body.type&&"var"!==t.body.kind||"FunctionDeclaration"===t.body.type&&(this.strict||t.body.generator||t.body.async))&&this.raiseRecoverable(t.body.start,"Invalid labeled declaration"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},N.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},N.parseBlock=function(t){void 0===t&&(t=!0);var e=this.startNode();for(e.body=[],this.expect(g.braceL),t&&this.enterLexicalScope();!this.eat(g.braceR);){var n=this.parseStatement(!0);e.body.push(n)}return t&&this.exitLexicalScope(),this.finishNode(e,"BlockStatement")},N.parseFor=function(t,e){return t.init=e,this.expect(g.semi),t.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),t.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),this.exitLexicalScope(),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},N.parseForIn=function(t,e){var n=this.type===g._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"===n&&("AssignmentPattern"===e.type||"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(this.strict||"Identifier"!==e.declarations[0].id.type))&&this.raise(e.start,"Invalid assignment in for-in loop head"),t.left=e,t.right="ForInStatement"===n?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),this.exitLexicalScope(),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,n)},N.parseVar=function(t,e,n){for(t.declarations=[],t.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(g.eq)?r.init=this.parseMaybeAssign(e):"const"!==n||this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||e&&(this.type===g._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(g.comma))break}return t},N.parseVarId=function(t,e){t.id=this.parseBindingAtom(e),this.checkLVal(t.id,e,!1)},N.parseFunction=function(t,e,n,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(t.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&&(t.id="nullableID"===e&&this.type!==g.name?null:this.parseIdent(),t.id&&this.checkLVal(t.id,this.inModule&&!this.inFunction?"let":"var"));var i=this.inGenerator,o=this.inAsync,a=this.yieldPos,s=this.awaitPos,u=this.inFunction;return this.inGenerator=t.generator,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),e||(t.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n),this.inGenerator=i,this.inAsync=o,this.yieldPos=a,this.awaitPos=s,this.inFunction=u,this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},N.parseFunctionParams=function(t){this.expect(g.parenL),t.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},N.parseClass=function(t,e){this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),r=!1;for(n.body=[],this.expect(g.braceL);!this.eat(g.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},N.parseClassMember=function(t){var e=this;if(this.eat(g.semi))return null;var n=this.startNode(),r=function(t,r){void 0===r&&(r=!1);var i=e.start,o=e.startLoc;return!!e.eatContextual(t)&&(!(e.type===g.parenL||r&&e.canInsertSemicolon())||(n.key&&e.unexpected(),n.computed=!1,n.key=e.startNodeAt(i,o),n.key.name=t,e.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(g.star),o=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(o=!0,i=this.options.ecmaVersion>=9&&this.eat(g.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),o&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(t,n,i,o),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},N.parseClassMethod=function(t,e,n,r){e.value=this.parseMethod(n,r),t.body.push(this.finishNode(e,"MethodDefinition"))},N.parseClassId=function(t,e){t.id=this.type===g.name?this.parseIdent():!0===e?this.unexpected():null},N.parseClassSuper=function(t){t.superClass=this.eat(g._extends)?this.parseExprSubscripts():null},N.parseExport=function(t,e){if(this.next(),this.eat(g.star))return this.expectContextual("from"),this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(g._default)){var n;if(this.checkExport(e,"default",this.lastTokStart),this.type===g._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),t.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===g._class){var i=this.startNode();t.declaration=this.parseClass(i,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(!0),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var o=0,a=t.specifiers;o=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=t.properties;r=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r,i=t.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var o=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===o&&(e.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),e.proto=!0);else{var a=e[r="$"+r];if(a)("init"===o?this.strict&&a.init||a.get||a.set:a.init||a[o])&&this.raiseRecoverable(i.start,"Redefinition of property");else a=e[r]={init:!1,get:!1,set:!1};a[o]=!0}}},F.parseExpression=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===g.comma){var o=this.startNodeAt(n,r);for(o.expressions=[i];this.eat(g.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return i},F.parseMaybeAssign=function(t,e,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,o=-1;e?(i=e.parenthesizedAssign,o=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new DestructuringErrors,r=!0);var a=this.start,s=this.startLoc;this.type!==g.parenL&&this.type!==g.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(t,e);if(n&&(u=n.call(this,u,a,s)),this.type.isAssign){var l=this.startNodeAt(a,s);return l.operator=this.value,l.left=this.type===g.eq?this.toAssignable(u,!1,e):u,r||DestructuringErrors.call(e),e.shorthandAssign=-1,this.checkLVal(u),this.next(),l.right=this.parseMaybeAssign(t),this.finishNode(l,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),i>-1&&(e.parenthesizedAssign=i),o>-1&&(e.trailingComma=o),u},F.parseMaybeConditional=function(t,e){var n=this.start,r=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(g.question)){var o=this.startNodeAt(n,r);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(g.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return i},F.parseExprOps=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)?i:i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,t)},F.parseExprOp=function(t,e,n,r,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==g._in)&&o>r){var a=this.type===g.logicalOR||this.type===g.logicalAND,s=this.value;this.next();var u=this.start,l=this.startLoc,c=this.parseExprOp(this.parseMaybeUnary(null,!1),u,l,o,i),p=this.buildBinary(e,n,t,c,s,a);return this.parseExprOp(p,e,n,r,i)}return t},F.buildBinary=function(t,e,n,r,i,o){var a=this.startNodeAt(t,e);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,o?"LogicalExpression":"BinaryExpression")},F.parseMaybeUnary=function(t,e){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),e=!0;else if(this.type.prefix){var o=this.startNode(),a=this.type===g.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),a?this.checkLVal(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):e=!0,n=this.finishNode(o,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!e&&this.eat(g.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},F.parseExprSubscripts=function(t){var e=this.start,n=this.startLoc,r=this.parseExprAtom(t),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(t)||i)return r;var o=this.parseSubscripts(r,e,n);return t&&"MemberExpression"===o.type&&(t.parenthesizedAssign>=o.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=o.start&&(t.parenthesizedBind=-1)),o},F.parseSubscripts=function(t,e,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(t.start,t.end),o=void 0;;)if((o=this.eat(g.bracketL))||this.eat(g.dot)){var a=this.startNodeAt(e,n);a.object=t,a.property=o?this.parseExpression():this.parseIdent(!0),a.computed=!!o,o&&this.expect(g.bracketR),t=this.finishNode(a,"MemberExpression")}else if(!r&&this.eat(g.parenL)){var s=new DestructuringErrors,u=this.yieldPos,l=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var c=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,s);if(i&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=l,this.parseArrowExpression(this.startNodeAt(e,n),c,!0);this.checkExpressionErrors(s,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=l||this.awaitPos;var p=this.startNodeAt(e,n);p.callee=t,p.arguments=c,t=this.finishNode(p,"CallExpression")}else{if(this.type!==g.backQuote)return t;var f=this.startNodeAt(e,n);f.tag=t,f.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(f,"TaggedTemplateExpression")}},F.parseExprAtom=function(t){var e,n=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),e=this.startNode(),this.next(),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(e,"Super");case g._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case g.name:var r=this.start,i=this.startLoc,o=this.containsEsc,a=this.parseIdent(this.type!==g.name);if(this.options.ecmaVersion>=8&&!o&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(g._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===g.name&&!o)return a=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(g.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[a],!0)}return a;case g.regexp:var s=this.value;return(e=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},e;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return(e=this.startNode()).value=this.type===g._null?null:this.type===g._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case g.parenL:var u=this.start,l=this.parseParenAndDistinguishExpression(n);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),l;case g.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(g.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case g.braceL:return this.parseObj(!1,t);case g._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();default:this.unexpected()}},F.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},F.parseParenExpression=function(){this.expect(g.parenL);var t=this.parseExpression();return this.expect(g.parenR),t},F.parseParenAndDistinguishExpression=function(t){var e,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,s=this.startLoc,u=[],l=!0,c=!1,p=new DestructuringErrors,f=this.yieldPos,h=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;){if(l?l=!1:this.expect(g.comma),i&&this.afterTrailingComma(g.parenR,!0)){c=!0;break}if(this.type===g.ellipsis){o=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var d=this.start,m=this.startLoc;if(this.expect(g.parenR),t&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=h,this.parseParenArrowList(n,r,u);u.length&&!c||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=h||this.awaitPos,u.length>1?((e=this.startNodeAt(a,s)).expressions=u,this.finishNodeAt(e,"SequenceExpression",d,m)):e=u[0]}else e=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(n,r);return v.expression=e,this.finishNode(v,"ParenthesizedExpression")}return e},F.parseParenItem=function(t){return t},F.parseParenArrowList=function(t,e,n){return this.parseArrowExpression(this.startNodeAt(t,e),n)};var U=[];F.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(g.dot)){t.meta=e;var n=this.containsEsc;return t.property=this.parseIdent(!0),("target"!==t.property.name||n)&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(t.start,"new.target can only be used in functions"),this.finishNode(t,"MetaProperty")}var r=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(g.parenL)?t.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):t.arguments=U,this.finishNode(t,"NewExpression")},F.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===g.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===g.backQuote,this.finishNode(n,"TemplateElement")},F.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(n.quasis=[r];!r.tail;)this.type===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(g.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},F.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!y.test(this.input.slice(this.lastTokEnd,this.start))},F.parseObj=function(t,e){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var o=this.parseProperty(t,e);t||this.checkPropClash(o,i,e),n.properties.push(o)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},F.parseProperty=function(t,e){var n,r,i,o,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===g.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,e),this.type===g.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(i=this.start,o=this.startLoc),t||(n=this.eat(g.star)));var s=this.containsEsc;return this.parsePropertyName(a),!t&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(a,e)):r=!1,this.parsePropertyValue(a,t,n,r,i,o,e,s),this.finishNode(a,"Property")},F.parsePropertyValue=function(t,e,n,r,i,o,a,s){if((n||r)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===g.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(n,r);else if(e||s||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===g.comma||this.type===g.braceR)this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?(this.checkUnreserved(t.key),t.kind="init",e?t.value=this.parseMaybeDefault(i,o,t.key):this.type===g.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,o,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var u="get"===t.kind?0:1;if(t.value.params.length!==u){var l=t.value.start;"get"===t.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}},F.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(g.bracketR),t.key;t.computed=!1}return t.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(!0)},F.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},F.parseMethod=function(t,e){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,o=this.yieldPos,a=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(g.parenL),n.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=o,this.awaitPos=a,this.inFunction=s,this.finishNode(n,"FunctionExpression")},F.parseArrowExpression=function(t,e,n){var r=this.inGenerator,i=this.inAsync,o=this.yieldPos,a=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.inGenerator=!1,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=o,this.awaitPos=a,this.inFunction=s,this.finishNode(t,"ArrowFunctionExpression")},F.parseFunctionBody=function(t,e){var n=e&&this.type!==g.braceL,r=this.strict,i=!1;if(n)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);r&&!o||(i=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(t,!r&&!i&&!e&&this.isSimpleParamList(t.params)),t.body=this.parseBlock(!1),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=a}this.exitFunctionScope(),this.strict&&t.id&&this.checkLVal(t.id,"none"),this.strict=r},F.isSimpleParamList=function(t){for(var e=0,n=t;e0;)e[n]=arguments[n+1];for(var r=0,i=e;r=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},J.updateContext=function(t){var e,n=this.type;n.keyword&&t===g.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},g.parenR.updateContext=g.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===K.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},g.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?K.b_stat:K.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(K.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(t){var e=t===g._if||t===g._for||t===g._with||t===g._while;this.context.push(e?K.p_stat:K.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(t){t.beforeExpr&&t!==g.semi&&t!==g._else&&(t!==g.colon&&t!==g.braceL||this.curContext()!==K.b_stat)?this.context.push(K.f_expr):this.context.push(K.f_stat),this.exprAllowed=!1},g.backQuote.updateContext=function(){this.curContext()===K.q_tmpl?this.context.pop():this.context.push(K.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(t){if(t===g._function){var e=this.context.length-1;this.context[e]===K.f_expr?this.context[e]=K.f_expr_gen:this.context[e]=K.f_gen}this.exprAllowed=!0},g.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==g.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var X={$LONE:["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],General_Category:["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],Script:["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Warang_Citi","Wara","Yi","Yiii","Zanabazar_Square","Zanb"]};Array.prototype.push.apply(X.$LONE,X.General_Category),X.gc=X.General_Category,X.sc=X.Script_Extensions=X.scx=X.Script;var Z=T.prototype,Q=function RegExpValidationState(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString$1(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function isSyntaxCharacter(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function isRegExpIdentifierStart(t){return isIdentifierStart(t,!0)||36===t||95===t}function isRegExpIdentifierPart(t){return isIdentifierChar(t,!0)||36===t||95===t||8204===t||8205===t}function isControlLetter(t){return t>=65&&t<=90||t>=97&&t<=122}function isCharacterClassEscape(t){return 100===t||68===t||115===t||83===t||119===t||87===t}function isUnicodePropertyNameCharacter(t){return isControlLetter(t)||95===t}function isUnicodePropertyValueCharacter(t){return isUnicodePropertyNameCharacter(t)||isDecimalDigit(t)}function isDecimalDigit(t){return t>=48&&t<=57}function isHexDigit(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function hexToInt(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function isOctalDigit(t){return t>=48&&t<=55}Q.prototype.reset=function reset(t,e,n){var r=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Q.prototype.raise=function raise(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Q.prototype.at=function at(t){var e=this.source,n=e.length;if(t>=n)return-1;var r=e.charCodeAt(t);return!this.switchU||r<=55295||r>=57344||t+1>=n?r:(r<<10)+e.charCodeAt(t+1)-56613888},Q.prototype.nextIndex=function nextIndex(t){var e=this.source,n=e.length;if(t>=n)return n;var r=e.charCodeAt(t);return!this.switchU||r<=55295||r>=57344||t+1>=n?t+1:t+2},Q.prototype.current=function current(){return this.at(this.pos)},Q.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},Q.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},Q.prototype.eat=function eat(t){return this.current()===t&&(this.advance(),!0)},Z.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,r=0;r-1&&this.raise(t.start,"Duplicate regular expression flag")}},Z.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},Z.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1},Z.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},Z.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},Z.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},Z.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},Z.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},Z.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!isSyntaxCharacter(e)&&(t.lastIntValue=e,t.advance(),!0)},Z.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!isSyntaxCharacter(n);)t.advance();return t.pos!==e},Z.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e)&&(t.advance(),!0)},Z.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},Z.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},Z.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=codePointToString$1(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=codePointToString$1(t.lastIntValue);return!0}return!1},Z.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),isRegExpIdentifierStart(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},Z.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),isRegExpIdentifierPart(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},Z.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},Z.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1},Z.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},Z.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},Z.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},Z.regexp_eatZero=function(t){return 48===t.current()&&!isDecimalDigit(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},Z.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},Z.regexp_eatControlLetter=function(t){var e=t.current();return!!isControlLetter(e)&&(t.lastIntValue=e%32,t.advance(),!0)},Z.regexp_eatRegExpUnicodeEscapeSequence=function(t){var e,n=t.pos;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var r=t.lastIntValue;if(t.switchU&&r>=55296&&r<=56319){var i=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=1024*(r-55296)+(o-56320)+65536,!0}t.pos=i,t.lastIntValue=r}return!0}if(t.switchU&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((e=t.lastIntValue)>=0&&e<=1114111))return!0;t.switchU&&t.raise("Invalid unicode escape"),t.pos=n}return!1},Z.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e)&&(t.lastIntValue=e,t.advance(),!0)},Z.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},Z.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(isCharacterClassEscape(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1},Z.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,r),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i),!0}return!1},Z.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){X.hasOwnProperty(e)&&-1!==X[e].indexOf(n)||t.raise("Invalid property name")},Z.regexp_validateUnicodePropertyNameOrValue=function(t,e){-1===X.$LONE.indexOf(e)&&t.raise("Invalid property name")},Z.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";isUnicodePropertyNameCharacter(e=t.current());)t.lastStringValue+=codePointToString$1(e),t.advance();return""!==t.lastStringValue},Z.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";isUnicodePropertyValueCharacter(e=t.current());)t.lastStringValue+=codePointToString$1(e),t.advance();return""!==t.lastStringValue},Z.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},Z.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},Z.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;!t.switchU||-1!==e&&-1!==n||t.raise("Invalid character class"),-1!==e&&-1!==n&&e>n&&t.raise("Range out of order in character class")}}},Z.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(99===n||isOctalDigit(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return 93!==r&&(t.lastIntValue=r,t.advance(),!0)},Z.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},Z.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!isDecimalDigit(e)&&95!==e)&&(t.lastIntValue=e%32,t.advance(),!0)},Z.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},Z.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;isDecimalDigit(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},Z.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;isHexDigit(n=t.current());)t.lastIntValue=16*t.lastIntValue+hexToInt(n),t.advance();return t.pos!==e},Z.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*n+t.lastIntValue:t.lastIntValue=8*e+n}else t.lastIntValue=e;return!0}return!1},Z.regexp_eatOctalDigit=function(t){var e=t.current();return isOctalDigit(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},Z.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var r=0;r>10),56320+(1023&t)))}Y.next=function(){this.options.onToken&&this.options.onToken(new G(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Y.getToken=function(){return this.next(),new G(this)},"undefined"!=typeof Symbol&&(Y[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===g.eof,value:e}}}}),Y.curContext=function(){return this.context[this.context.length-1]},Y.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(g.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Y.readToken=function(t){return isIdentifierStart(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Y.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},Y.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(b.lastIndex=n;(t=b.exec(this.input))&&t.index8&&t<14||t>=5760&&_.test(String.fromCharCode(t))))break t;++this.pos}}},Y.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)},Y.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(g.ellipsis)):(++this.pos,this.finishToken(g.dot))},Y.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(g.assign,2):this.finishOp(g.slash,1)},Y.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,r=42===t?g.star:g.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++n,r=g.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(g.assign,n+1):this.finishOp(r,n)},Y.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?g.logicalOR:g.logicalAND,2):61===e?this.finishOp(g.assign,2):this.finishOp(124===t?g.bitwiseOR:g.bitwiseAND,1)},Y.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)},Y.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!y.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(g.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)},Y.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(g.assign,n+1):this.finishOp(g.bitShift,n)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(n=2),this.finishOp(g.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Y.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(g.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(61===t?g.eq:g.prefix,1)},Y.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 63:return++this.pos,this.finishToken(g.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(g.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString(t)+"'")},Y.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},Y.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(y.test(r)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===r)e=!0;else if("]"===r&&e)e=!1;else if("/"===r&&!e)break;t="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var o=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(o);var s=this.regexpState||(this.regexpState=new Q(this));s.reset(n,i,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var u=null;try{u=new RegExp(i,a)}catch(t){}return this.finishToken(g.regexp,{pattern:i,flags:a,value:u})},Y.readInt=function(t,e){for(var n=this.pos,r=0,i=0,o=null==e?1/0:e;i=97?a-97+10:a>=65?a-65+10:a>=48&&a<=57?a-48:1/0)>=t)break;++this.pos,r=r*t+s}return this.pos===n||null!=e&&this.pos-n!==e?null:r},Y.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,e)},Y.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10)||this.raise(e,"Invalid number");var n=this.pos-e>=2&&48===this.input.charCodeAt(e);n&&this.strict&&this.raise(e,"Invalid number"),n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(e,this.pos),o=n?parseInt(i,8):parseFloat(i);return this.finishToken(g.num,o)},Y.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Y.readString=function(t){for(var e="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;92===r?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):(isNewLine(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(g.string,e)};var $={};Y.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==$)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Y.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $;this.raise(t,e)},Y.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==g.template&&this.type!==g.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(g.template,t)):36===n?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(isNewLine(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Y.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),"0"===n&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(e)}},Y.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},Y.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ModalBody_objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}function ModalBody_classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ModalBody_defineProperties(t,e){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ModalFooter_objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}function ModalFooter_classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ModalFooter_defineProperties(t,e){for(var n=0;ni;)J(t,n=r[i++],e[n]);return t},Z=function propertyIsEnumerable(t){var e=A.call(this,t=x(t,!0));return!(this===B&&i(F,t)&&!i(U,t))&&(!(e||!i(this,t)||!i(F,t)||i(this,I)&&this[I][t])||e)},Q=function getOwnPropertyDescriptor(t,e){if(t=_(t),e=x(e,!0),t!==B||!i(F,e)||i(U,e)){var n=O(t,e);return!n||!i(F,e)||i(t,I)&&t[I][e]||(n.enumerable=!0),n}},G=function getOwnPropertyNames(t){for(var e,n=T(_(t)),r=[],o=0;n.length>o;)i(F,e=n[o++])||e==I||e==u||r.push(e);return r},Y=function getOwnPropertySymbols(t){for(var e,n=t===B,r=T(n?U:_(t)),o=[],a=0;r.length>a;)!i(F,e=r[a++])||n&&!i(B,e)||o.push(F[e]);return o};V||(s((R=function Symbol(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(U,n),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),q(this,t,w(1,n))};return o&&z&&q(B,t,{configurable:!0,set:e}),H(t)}).prototype,"toString",function toString(){return this._k}),E.f=Q,k.f=J,n(52).f=C.f=G,n(72).f=Z,n(80).f=Y,o&&!n(48)&&s(B,"propertyIsEnumerable",Z,!0),d.f=function(t){return H(h(t))}),a(a.G+a.W+a.F*!V,{Symbol:R});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)h($[tt++]);for(var et=P(h.store),nt=0;et.length>nt;)m(et[nt++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return i(D,t+="")?D[t]:D[t]=R(t)},keyFor:function keyFor(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!V,"Object",{create:function create(t,e){return void 0===e?S(t):X(S(t),e)},defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:G,getOwnPropertySymbols:Y}),M&&a(a.S+a.F*(!V||l(function(){var t=R();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function stringify(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,N.apply(M,r)}}),R.prototype[L]||n(21)(R.prototype,L,R.prototype.valueOf),p(R,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){var r=n(49),i=n(80),o=n(72);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,n){var r=n(2);r(r.S,"Object",{create:n(51)})},function(t,e,n){var r=n(2);r(r.S+r.F*!n(14),"Object",{defineProperty:n(13).f})},function(t,e,n){var r=n(2);r(r.S+r.F*!n(14),"Object",{defineProperties:n(161)})},function(t,e,n){var r=n(22),i=n(29).f;n(30)("getOwnPropertyDescriptor",function(){return function getOwnPropertyDescriptor(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(18),i=n(53);n(30)("getPrototypeOf",function(){return function getPrototypeOf(t){return i(r(t))}})},function(t,e,n){var r=n(18),i=n(49);n(30)("keys",function(){return function keys(t){return i(r(t))}})},function(t,e,n){n(30)("getOwnPropertyNames",function(){return n(162).f})},function(t,e,n){var r=n(8),i=n(41).onFreeze;n(30)("freeze",function(t){return function freeze(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(8),i=n(41).onFreeze;n(30)("seal",function(t){return function seal(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(8),i=n(41).onFreeze;n(30)("preventExtensions",function(t){return function preventExtensions(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(8);n(30)("isFrozen",function(t){return function isFrozen(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(8);n(30)("isSealed",function(t){return function isSealed(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(8);n(30)("isExtensible",function(t){return function isExtensible(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(163)})},function(t,e,n){var r=n(2);r(r.S,"Object",{is:n(164)})},function(t,e,n){var r=n(2);r(r.S,"Object",{setPrototypeOf:n(118).set})},function(t,e,n){"use strict";var r=n(73),i={};i[n(10)("toStringTag")]="z",i+""!="[object z]"&&n(17)(Object.prototype,"toString",function toString(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(2);r(r.P,"Function",{bind:n(165)})},function(t,e,n){var r=n(13).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(14)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(8),i=n(53),o=n(10)("hasInstance"),a=Function.prototype;o in a||n(13).f(a,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(2),i=n(167);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(2),i=n(168);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){"use strict";var r=n(7),i=n(20),o=n(36),a=n(120),s=n(40),u=n(5),l=n(52).f,c=n(29).f,p=n(13).f,f=n(81).trim,h=r.Number,d=h,m=h.prototype,v="Number"==o(n(51)(m)),g="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=g?e.trim():f(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,u=e.slice(2),l=0,c=u.length;li)return NaN;return parseInt(u,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function Number(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(v?u(function(){m.valueOf.call(n)}):"Number"!=o(n))?a(new d(y(e)),n,h):y(e)};for(var b,_=n(14)?l(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(d,b=_[x])&&!i(h,b)&&p(h,b,c(d,b));h.prototype=m,m.constructor=h,n(17)(r,"Number",h)}},function(t,e,n){"use strict";var r=n(2),i=n(28),o=n(169),a=n(121),s=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",p=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*l[n],l[n]=r%1e7,r=u(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=l[e],l[e]=u(n/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var n=String(l[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)},m=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(5)(function(){s.call({})})),"Number",{toFixed:function toFixed(t){var e,n,r,s,u=o(this,c),l=i(t),v="",g="0";if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(v="-",u=-u),u>1e-21)if(n=(e=m(u*d(2,69,1))-69)<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(p(0,n),r=l;r>=7;)p(1e7,0),r-=7;for(p(d(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<0?v+((s=g.length)<=l?"0."+a.call("0",l-s)+g:g.slice(0,s-l)+"."+g.slice(s-l)):v+g}})},function(t,e,n){"use strict";var r=n(2),i=n(5),o=n(169),a=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function toPrecision(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var r=n(2);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(2),i=n(7).isFinite;r(r.S,"Number",{isFinite:function isFinite(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(2);r(r.S,"Number",{isInteger:n(170)})},function(t,e,n){var r=n(2);r(r.S,"Number",{isNaN:function isNaN(t){return t!=t}})},function(t,e,n){var r=n(2),i=n(170),o=Math.abs;r(r.S,"Number",{isSafeInteger:function isSafeInteger(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(2);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(2);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(2),i=n(168);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(2),i=n(167);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(2),i=n(171),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function acosh(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var r=n(2),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function asinh(t){return isFinite(t=+t)&&0!=t?t<0?-asinh(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(t,e,n){var r=n(2),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function atanh(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(2),i=n(122);r(r.S,"Math",{cbrt:function cbrt(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(2);r(r.S,"Math",{clz32:function clz32(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(2),i=Math.exp;r(r.S,"Math",{cosh:function cosh(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(2),i=n(123);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(2);r(r.S,"Math",{fround:n(294)})},function(t,e,n){var r=n(122),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);t.exports=Math.fround||function fround(t){var e,n,i=Math.abs(t),l=r(t);return is||n!=n?l*(1/0):l*n}},function(t,e,n){var r=n(2),i=Math.abs;r(r.S,"Math",{hypot:function hypot(t,e){for(var n,r,o=0,a=0,s=arguments.length,u=0;a0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(2),i=Math.imul;r(r.S+r.F*n(5)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function imul(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(2);r(r.S,"Math",{log10:function log10(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(2);r(r.S,"Math",{log1p:n(171)})},function(t,e,n){var r=n(2);r(r.S,"Math",{log2:function log2(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(2);r(r.S,"Math",{sign:n(122)})},function(t,e,n){var r=n(2),i=n(123),o=Math.exp;r(r.S+r.F*n(5)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function sinh(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(2),i=n(123),o=Math.exp;r(r.S,"Math",{tanh:function tanh(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(2);r(r.S,"Math",{trunc:function trunc(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(2),i=n(50),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function fromCodePoint(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(2),i=n(22),o=n(12);r(r.S,"String",{raw:function raw(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(2),i=n(124)(!1);r(r.P,"String",{codePointAt:function codePointAt(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(2),i=n(12),o=n(126),a="".endsWith;r(r.P+r.F*n(128)("endsWith"),"String",{endsWith:function endsWith(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),s=void 0===n?r:Math.min(i(n),r),u=String(t);return a?a.call(e,u,s):e.slice(s-u.length,s)===u}})},function(t,e,n){"use strict";var r=n(2),i=n(126);r(r.P+r.F*n(128)("includes"),"String",{includes:function includes(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(2);r(r.P,"String",{repeat:n(121)})},function(t,e,n){"use strict";var r=n(2),i=n(12),o=n(126),a="".startsWith;r(r.P+r.F*n(128)("startsWith"),"String",{startsWith:function startsWith(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(19)("anchor",function(t){return function anchor(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(19)("big",function(t){return function big(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(19)("blink",function(t){return function blink(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(19)("bold",function(t){return function bold(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(19)("fixed",function(t){return function fixed(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(19)("fontcolor",function(t){return function fontcolor(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(19)("fontsize",function(t){return function fontsize(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(19)("italics",function(t){return function italics(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(19)("link",function(t){return function link(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(19)("small",function(t){return function small(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(19)("strike",function(t){return function strike(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(19)("sub",function(t){return function sub(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(19)("sup",function(t){return function sup(){return t(this,"sup","","")}})},function(t,e,n){var r=n(2);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(2),i=n(18),o=n(40);r(r.P+r.F*n(5)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function toJSON(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(2),i=n(329);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(5),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function toISOString(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(17)(r,"toString",function toString(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"})},function(t,e,n){var r=n(10)("toPrimitive"),i=Date.prototype;r in i||n(21)(i,r,n(332))},function(t,e,n){"use strict";var r=n(6),i=n(40);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,e,n){var r=n(2);r(r.S,"Array",{isArray:n(116)})},function(t,e,n){"use strict";var r=n(34),i=n(2),o=n(18),a=n(173),s=n(129),u=n(12),l=n(130),c=n(131);i(i.S+i.F*!n(82)(function(t){Array.from(t)}),"Array",{from:function from(t){var e,n,i,p,f=o(t),h="function"==typeof this?this:Array,d=arguments.length,m=d>1?arguments[1]:void 0,v=void 0!==m,g=0,y=c(f);if(v&&(m=r(m,d>2?arguments[2]:void 0,2)),null==y||h==Array&&s(y))for(n=new h(e=u(f.length));e>g;g++)l(n,g,v?m(f[g],g):f[g]);else for(p=y.call(f),n=new h;!(i=p.next()).done;g++)l(n,g,v?a(p,m,[i.value,g],!0):i.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(2),i=n(130);r(r.S+r.F*n(5)(function(){function F(){}return!(Array.of.call(F)instanceof F)}),"Array",{of:function of(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(2),i=n(22),o=[].join;r(r.P+r.F*(n(71)!=Object||!n(26)(o)),"Array",{join:function join(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(2),i=n(117),o=n(36),a=n(50),s=n(12),u=[].slice;r(r.P+r.F*n(5)(function(){i&&u.call(i)}),"Array",{slice:function slice(t,e){var n=s(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=a(t,n),l=a(e,n),c=s(l-i),p=new Array(c),f=0;f1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(2);r(r.P,"Array",{copyWithin:n(175)}),n(59)("copyWithin")},function(t,e,n){var r=n(2);r(r.P,"Array",{fill:n(132)}),n(59)("fill")},function(t,e,n){"use strict";var r=n(2),i=n(31)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function find(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(59)("find")},function(t,e,n){"use strict";var r=n(2),i=n(31)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function findIndex(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(59)(o)},function(t,e,n){n(60)("Array")},function(t,e,n){var r=n(7),i=n(120),o=n(13).f,a=n(52).f,s=n(127),u=n(83),l=r.RegExp,c=l,p=l.prototype,f=/a/g,h=/a/g,d=new l(f)!==f;if(n(14)&&(!d||n(5)(function(){return h[n(10)("match")]=!1,l(f)!=f||l(h)==h||"/a/i"!=l(f,"i")}))){l=function RegExp(t,e){var n=this instanceof l,r=s(t),o=void 0===e;return!n&&r&&t.constructor===l&&o?t:i(d?new c(r&&!o?t.source:t,e):c((r=t instanceof l)?t.source:t,r&&o?u.call(t):e),n?this:p,l)};for(var m=function(t){t in l||o(l,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})},v=a(c),g=0;v.length>g;)m(v[g++]);p.constructor=l,l.prototype=p,n(17)(r,"RegExp",l)}n(60)("RegExp")},function(t,e,n){"use strict";n(178);var r=n(6),i=n(83),o=n(14),a=/./.toString,s=function(t){n(17)(RegExp.prototype,"toString",t,!0)};n(5)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function toString(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=a.name&&s(function toString(){return a.call(this)})},function(t,e,n){"use strict";var r=n(6),i=n(12),o=n(135),a=n(84);n(85)("match",1,function(t,e,n,s){return[function match(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var u=r(t),l=String(this);if(!u.global)return a(u,l);var c=u.unicode;u.lastIndex=0;for(var p,f=[],h=0;null!==(p=a(u,l));){var d=String(p[0]);f[h]=d,""===d&&(u.lastIndex=o(l,i(u.lastIndex),c)),h++}return 0===h?null:f}]})},function(t,e,n){"use strict";var r=n(6),i=n(18),o=n(12),a=n(28),s=n(135),u=n(84),l=Math.max,c=Math.min,p=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(85)("replace",2,function(t,e,n,d){return[function replace(r,i){var o=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=d(n,t,this,e);if(i.done)return i.value;var p=r(t),f=String(this),h="function"==typeof e;h||(e=String(e));var m=p.global;if(m){var v=p.unicode;p.lastIndex=0}for(var g=[];;){var y=u(p,f);if(null===y)break;if(g.push(y),!m)break;""===String(y[0])&&(p.lastIndex=s(f,o(p.lastIndex),v))}for(var b,_="",x=0,w=0;w=x&&(_+=f.slice(x,C)+j,x=C+S.length)}return _+f.slice(x)}];function getSubstitution(t,e,r,o,a,s){var u=r+t.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=f),n.call(s,c,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return i;if(c>l){var f=p(c/10);return 0===f?i:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):i}s=o[c-1]}return void 0===s?"":s})}})},function(t,e,n){"use strict";var r=n(6),i=n(164),o=n(84);n(85)("search",1,function(t,e,n,a){return[function search(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=r(t),u=String(this),l=s.lastIndex;i(l,0)||(s.lastIndex=0);var c=o(s,u);return i(s.lastIndex,l)||(s.lastIndex=l),null===c?-1:c.index}]})},function(t,e,n){"use strict";var r=n(127),i=n(6),o=n(74),a=n(135),s=n(12),u=n(84),l=n(134),c=Math.min,p=[].push,f=!!function(){try{return new RegExp("x","y")}catch(t){}}();n(85)("split",2,function(t,e,n,h){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);for(var o,a,s,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,c+"g");(o=l.call(d,i))&&!((a=d.lastIndex)>f&&(u.push(i.slice(f,o.index)),o.length>1&&o.index=h));)d.lastIndex===o.index&&d.lastIndex++;return f===i.length?!s&&d.test("")||u.push(""):u.push(i.slice(f)),u.length>h?u.slice(0,h):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function split(n,r){var i=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):d.call(String(i),n,r)},function(t,e){var r=h(d,t,this,e,d!==n);if(r.done)return r.value;var l=i(t),p=String(this),m=o(l,RegExp),v=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(f?"y":"g"),y=new m(f?l:"^(?:"+l.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===p.length)return null===u(y,p)?[p]:[];for(var _=0,x=0,w=[];x0?arguments[0]:void 0)}},{get:function get(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function set(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(182),i=n(63);t.exports=n(88)("Set",function(t){return function Set(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function add(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(31)(0),o=n(17),a=n(41),s=n(163),u=n(183),l=n(8),c=n(5),p=n(63),f=a.getWeak,h=Object.isExtensible,d=u.ufstore,m={},v=function(t){return function WeakMap(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function get(t){if(l(t)){var e=f(t);return!0===e?d(p(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function set(t,e){return u.def(p(this,"WeakMap"),t,e)}},y=t.exports=n(88)("WeakMap",v,g,u,!0,!0);c(function(){return 7!=(new y).set((Object.freeze||Object)(m),7).get(m)})&&(s((r=u.getConstructor(v,"WeakMap")).prototype,g),a.NEED=!0,i(["delete","has","get","set"],function(t){var e=y.prototype,n=e[t];o(e,t,function(e,i){if(l(e)&&!h(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(183),i=n(63);n(88)("WeakSet",function(t){return function WeakSet(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function add(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(2),i=n(89),o=n(137),a=n(6),s=n(50),u=n(12),l=n(8),c=n(7).ArrayBuffer,p=n(74),f=o.ArrayBuffer,h=o.DataView,d=i.ABV&&c.isView,m=f.prototype.slice,v=i.VIEW;r(r.G+r.W+r.F*(c!==f),{ArrayBuffer:f}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function isView(t){return d&&d(t)||l(t)&&v in t}}),r(r.P+r.U+r.F*n(5)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function slice(t,e){if(void 0!==m&&void 0===e)return m.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),o=new(p(this,f))(u(i-r)),l=new h(this),c=new h(o),d=0;r=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function enumerate(t){return new o(t)}})},function(t,e,n){var r=n(29),i=n(53),o=n(20),a=n(2),s=n(8),u=n(6);a(a.S,"Reflect",{get:function get(t,e){var n,a,l=arguments.length<3?t:arguments[2];return u(t)===l?t[e]:(n=r.f(t,e))?o(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:s(a=i(t))?get(a,e,l):void 0}})},function(t,e,n){var r=n(29),i=n(2),o=n(6);i(i.S,"Reflect",{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(2),i=n(53),o=n(6);r(r.S,"Reflect",{getPrototypeOf:function getPrototypeOf(t){return i(o(t))}})},function(t,e,n){var r=n(2);r(r.S,"Reflect",{has:function has(t,e){return e in t}})},function(t,e,n){var r=n(2),i=n(6),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function isExtensible(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(2);r(r.S,"Reflect",{ownKeys:n(185)})},function(t,e,n){var r=n(2),i=n(6),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function preventExtensions(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(13),i=n(29),o=n(53),a=n(20),s=n(2),u=n(46),l=n(6),c=n(8);s(s.S,"Reflect",{set:function set(t,e,n){var s,p,f=arguments.length<4?t:arguments[3],h=i.f(l(t),e);if(!h){if(c(p=o(t)))return set(p,e,n,f);h=u(0)}if(a(h,"value")){if(!1===h.writable||!c(f))return!1;if(s=i.f(f,e)){if(s.get||s.set||!1===s.writable)return!1;s.value=n,r.f(f,e,s)}else r.f(f,e,u(0,n));return!0}return void 0!==h.set&&(h.set.call(f,n),!0)}})},function(t,e,n){var r=n(2),i=n(118);i&&r(r.S,"Reflect",{setPrototypeOf:function setPrototypeOf(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(393),t.exports=n(15).Array.includes},function(t,e,n){"use strict";var r=n(2),i=n(79)(!0);r(r.P,"Array",{includes:function includes(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(59)("includes")},function(t,e,n){n(395),t.exports=n(15).String.padStart},function(t,e,n){"use strict";var r=n(2),i=n(186),o=n(87);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function padStart(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(397),t.exports=n(15).String.padEnd},function(t,e,n){"use strict";var r=n(2),i=n(186),o=n(87);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function padEnd(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(399),t.exports=n(113).f("asyncIterator")},function(t,e,n){n(159)("asyncIterator")},function(t,e,n){n(401),t.exports=n(15).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(2),i=n(185),o=n(22),a=n(29),s=n(130);r(r.S,"Object",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(t){for(var e,n,r=o(t),u=a.f,l=i(r),c={},p=0;l.length>p;)void 0!==(n=u(r,e=l[p++]))&&s(c,e,n);return c}})},function(t,e,n){n(403),t.exports=n(15).Object.values},function(t,e,n){var r=n(2),i=n(187)(!1);r(r.S,"Object",{values:function values(t){return i(t)}})},function(t,e,n){n(405),t.exports=n(15).Object.entries},function(t,e,n){var r=n(2),i=n(187)(!0);r(r.S,"Object",{entries:function entries(t){return i(t)}})},function(t,e,n){"use strict";n(179),n(407),t.exports=n(15).Promise.finally},function(t,e,n){"use strict";var r=n(2),i=n(15),o=n(7),a=n(74),s=n(181);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){n(409),n(410),n(411),t.exports=n(15)},function(t,e,n){var r=n(7),i=n(2),o=n(87),a=[].slice,s=/MSIE .\./.test(o),u=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(2),i=n(136);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(133),i=n(49),o=n(17),a=n(7),s=n(21),u=n(58),l=n(10),c=l("iterator"),p=l("toStringTag"),f=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(h),m=0;m=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;resetTryEntry(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:values(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function wrap(t,e,n,r){var i=e&&e.prototype instanceof Generator?e:Generator,o=Object.create(i.prototype),a=new Context(r||[]);return o._invoke=makeInvokeMethod(t,n,a),o}function tryCatch(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function AsyncIterator(t){function invoke(e,n,r,o){var a=tryCatch(t[e],t,n);if("throw"!==a.type){var s=a.arg,u=s.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){invoke("next",t,r,o)},function(t){invoke("throw",t,r,o)}):Promise.resolve(u).then(function(t){s.value=t,r(s)},function(t){return invoke("throw",t,r,o)})}o(a.arg)}var e;this._invoke=function enqueue(t,n){function callInvokeWithMethodAndArg(){return new Promise(function(e,r){invoke(t,n,e,r)})}return e=e?e.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function makeInvokeMethod(t,e,n){var r=p;return function invoke(i,o){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return doneResult()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=maybeInvokeDelegate(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=tryCatch(t,e,n);if("normal"===u.type){if(r=n.done?d:f,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}function maybeInvokeDelegate(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,maybeInvokeDelegate(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=tryCatch(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function next(){for(;++r [class*="loader-container"] {\n display: inline-block;\n}\n.buttons---btn---2jZHN > [class*="loader-container"] > [class*="loader"] {\n margin-top: 2px;\n margin-right: 8px;\n}\n.buttons---btn-default---1wWXD {\n color: #222;\n background-color: #fbfbfb;\n background-image: -webkit-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -moz-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -o-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -ms-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: linear-gradient(to bottom, #fbfbfb 0%, #ececec 100%);\n background-repeat: repeat-x;\n border-color: #ccc;\n}\n.buttons---btn-default---1wWXD:active,\n.buttons---btn-default---1wWXD.buttons---active---2-a32 {\n color: #222;\n background-color: #eee;\n background-image: none;\n border-color: #bbb;\n -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.1) inset;\n box-shadow: 0 1px 4px rgba(0,0,0,0.1) inset;\n}\n.buttons---btn-default---1wWXD:focus,\n.buttons---btn-default---1wWXD.buttons---focus---1kVJZ {\n color: #222;\n border-color: #0096cc;\n}\n.buttons---btn-default---1wWXD:hover,\n.buttons---btn-default---1wWXD.buttons---hover---42FF2 {\n color: #222;\n background-color: #fff;\n background-image: -webkit-linear-gradient(top, #fff 0%, #f5f5f5 100%);\n background-image: -moz-linear-gradient(top, #fff 0%, #f5f5f5 100%);\n background-image: -o-linear-gradient(top, #fff 0%, #f5f5f5 100%);\n background-image: -ms-linear-gradient(top, #fff 0%, #f5f5f5 100%);\n background-image: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);\n background-repeat: repeat-x;\n border-color: #999;\n}\n.buttons---btn-default---1wWXD.buttons---disabled---eCY9b:hover,\n.buttons---btn-default---1wWXD[disabled]:hover,\nfieldset[disabled] .buttons---btn-default---1wWXD:hover,\n.buttons---btn-default---1wWXD.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-default---1wWXD[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-default---1wWXD.buttons---hover---42FF2,\n.buttons---btn-default---1wWXD.buttons---disabled---eCY9b:focus,\n.buttons---btn-default---1wWXD[disabled]:focus,\nfieldset[disabled] .buttons---btn-default---1wWXD:focus,\n.buttons---btn-default---1wWXD.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-default---1wWXD[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-default---1wWXD.buttons---focus---1kVJZ {\n background-color: #fbfbfb;\n background-image: -webkit-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -moz-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -o-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -ms-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: linear-gradient(to bottom, #fbfbfb 0%, #ececec 100%);\n background-repeat: repeat-x;\n border-color: #ccc;\n}\n.buttons---btn-primary---Wp1wb {\n color: #fff;\n background-color: #0096cc;\n background-image: -webkit-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -moz-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -o-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -ms-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: linear-gradient(to bottom, #00a7e6 0%, #0096cc 100%);\n background-repeat: repeat-x;\n border-color: #0095ce;\n}\n.buttons---btn-primary---Wp1wb > [class*="loader-container"] > [class*="loader"] {\n border-color: rgba(255,255,255,0.4);\n border-left-color: #fff;\n}\n.buttons---btn-primary---Wp1wb:active,\n.buttons---btn-primary---Wp1wb.buttons---active---2-a32 {\n color: #fff;\n background-color: #009ed8;\n background-image: none;\n border-color: #00759f;\n -webkit-box-shadow: 0 1px 6px rgba(0,0,0,0.15) inset;\n box-shadow: 0 1px 6px rgba(0,0,0,0.15) inset;\n}\n.buttons---btn-primary---Wp1wb:focus,\n.buttons---btn-primary---Wp1wb.buttons---focus---1kVJZ {\n color: #fff;\n border-color: #444;\n -webkit-box-shadow: 0 0 1px #fff inset;\n box-shadow: 0 0 1px #fff inset;\n}\n.buttons---btn-primary---Wp1wb:hover,\n.buttons---btn-primary---Wp1wb.buttons---hover---42FF2 {\n color: #fff;\n background-color: #1daee5;\n background-image: -webkit-linear-gradient(top, #1daee5 0%, #00a3df 100%);\n background-image: -moz-linear-gradient(top, #1daee5 0%, #00a3df 100%);\n background-image: -o-linear-gradient(top, #1daee5 0%, #00a3df 100%);\n background-image: -ms-linear-gradient(top, #1daee5 0%, #00a3df 100%);\n background-image: linear-gradient(to bottom, #1daee5 0%, #00a3df 100%);\n background-repeat: repeat-x;\n border-color: #00759f;\n}\n.buttons---btn-primary---Wp1wb.buttons---disabled---eCY9b:hover,\n.buttons---btn-primary---Wp1wb[disabled]:hover,\nfieldset[disabled] .buttons---btn-primary---Wp1wb:hover,\n.buttons---btn-primary---Wp1wb.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-primary---Wp1wb[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-primary---Wp1wb.buttons---hover---42FF2,\n.buttons---btn-primary---Wp1wb.buttons---disabled---eCY9b:focus,\n.buttons---btn-primary---Wp1wb[disabled]:focus,\nfieldset[disabled] .buttons---btn-primary---Wp1wb:focus,\n.buttons---btn-primary---Wp1wb.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-primary---Wp1wb[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-primary---Wp1wb.buttons---focus---1kVJZ {\n background-color: #0096cc;\n background-image: -webkit-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -moz-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -o-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -ms-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: linear-gradient(to bottom, #00a7e6 0%, #0096cc 100%);\n background-repeat: repeat-x;\n border-color: #0095ce;\n}\n.buttons---btn-danger---1UUqU {\n color: #fff;\n background-color: #db3d44;\n background-image: -webkit-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -moz-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -o-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -ms-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: linear-gradient(to bottom, #e15054 0%, #db3d44 100%);\n background-repeat: repeat-x;\n border-color: #d8262b;\n}\n.buttons---btn-danger---1UUqU:active,\n.buttons---btn-danger---1UUqU.buttons---active---2-a32 {\n color: #fff;\n background-color: #e15054;\n background-image: none;\n border-color: #c22327;\n -webkit-box-shadow: 0 1px 6px rgba(0,0,0,0.15) inset;\n box-shadow: 0 1px 6px rgba(0,0,0,0.15) inset;\n}\n.buttons---btn-danger---1UUqU:focus,\n.buttons---btn-danger---1UUqU.buttons---focus---1kVJZ {\n color: #fff;\n border-color: #444;\n -webkit-box-shadow: 0 0 1px #fff inset;\n box-shadow: 0 0 1px #fff inset;\n}\n.buttons---btn-danger---1UUqU:hover,\n.buttons---btn-danger---1UUqU.buttons---hover---42FF2 {\n color: #fff;\n background-color: #e15f5f;\n background-image: -webkit-linear-gradient(top, #e15f5f 0%, #e15054 100%);\n background-image: -moz-linear-gradient(top, #e15f5f 0%, #e15054 100%);\n background-image: -o-linear-gradient(top, #e15f5f 0%, #e15054 100%);\n background-image: -ms-linear-gradient(top, #e15f5f 0%, #e15054 100%);\n background-image: linear-gradient(to bottom, #e15f5f 0%, #e15054 100%);\n background-repeat: repeat-x;\n border-color: #c22327;\n}\n.buttons---btn-danger---1UUqU.buttons---disabled---eCY9b:hover,\n.buttons---btn-danger---1UUqU[disabled]:hover,\nfieldset[disabled] .buttons---btn-danger---1UUqU:hover,\n.buttons---btn-danger---1UUqU.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-danger---1UUqU[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-danger---1UUqU.buttons---hover---42FF2,\n.buttons---btn-danger---1UUqU.buttons---disabled---eCY9b:focus,\n.buttons---btn-danger---1UUqU[disabled]:focus,\nfieldset[disabled] .buttons---btn-danger---1UUqU:focus,\n.buttons---btn-danger---1UUqU.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-danger---1UUqU[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-danger---1UUqU.buttons---focus---1kVJZ {\n background-color: #db3d44;\n background-image: -webkit-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -moz-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -o-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -ms-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: linear-gradient(to bottom, #e15054 0%, #db3d44 100%);\n background-repeat: repeat-x;\n border-color: #d8262b;\n}\n.buttons---btn-border---1O58b {\n color: #222;\n background-color: #fff;\n background-image: -webkit-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -moz-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -o-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -ms-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: linear-gradient(to bottom, #fff 0%, #fff 100%);\n background-repeat: repeat-x;\n border-color: #ccc;\n -webkit-transition: all 0.2s linear 0s;\n -moz-transition: all 0.2s linear 0s;\n -o-transition: all 0.2s linear 0s;\n -ms-transition: all 0.2s linear 0s;\n transition: all 0.2s linear 0s;\n}\n.buttons---btn-border---1O58b:hover,\n.buttons---btn-border---1O58b.buttons---hover---42FF2 {\n color: #222;\n background-color: #f4f4f4;\n background-image: -webkit-linear-gradient(top, #f4f4f4 0%, #f4f4f4 100%);\n background-image: -moz-linear-gradient(top, #f4f4f4 0%, #f4f4f4 100%);\n background-image: -o-linear-gradient(top, #f4f4f4 0%, #f4f4f4 100%);\n background-image: -ms-linear-gradient(top, #f4f4f4 0%, #f4f4f4 100%);\n background-image: linear-gradient(to bottom, #f4f4f4 0%, #f4f4f4 100%);\n background-repeat: repeat-x;\n border-color: #999;\n}\n.buttons---btn-border---1O58b:focus,\n.buttons---btn-border---1O58b.buttons---focus---1kVJZ {\n color: #222;\n border-color: #0096cc;\n}\n.buttons---btn-border---1O58b:active,\n.buttons---btn-border---1O58b.buttons---active---2-a32,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b {\n color: #222;\n background-color: #eee;\n background-image: none;\n border-color: #bbb;\n -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.1) inset;\n box-shadow: 0px 1px 2px rgba(0,0,0,0.1) inset;\n}\n.buttons---btn-border---1O58b:active:hover,\n.buttons---btn-border---1O58b.buttons---active---2-a32:hover,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b:hover,\n.buttons---btn-border---1O58b:active.buttons---hover---42FF2,\n.buttons---btn-border---1O58b.buttons---active---2-a32.buttons---hover---42FF2,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b.buttons---hover---42FF2,\n.buttons---btn-border---1O58b:active:focus,\n.buttons---btn-border---1O58b.buttons---active---2-a32:focus,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b:focus,\n.buttons---btn-border---1O58b:active.buttons---focus---1kVJZ,\n.buttons---btn-border---1O58b.buttons---active---2-a32.buttons---focus---1kVJZ,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b.buttons---focus---1kVJZ {\n color: #222;\n border-color: #bbb;\n -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;\n box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;\n}\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b,\n.buttons---btn-border---1O58b[disabled],\nfieldset[disabled] .buttons---btn-border---1O58b {\n opacity: 0.4;\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";\n filter: alpha(opacity=40);\n cursor: not-allowed;\n}\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b:hover,\n.buttons---btn-border---1O58b[disabled]:hover,\nfieldset[disabled] .buttons---btn-border---1O58b:hover,\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-border---1O58b[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-border---1O58b.buttons---hover---42FF2,\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b:focus,\n.buttons---btn-border---1O58b[disabled]:focus,\nfieldset[disabled] .buttons---btn-border---1O58b:focus,\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-border---1O58b[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-border---1O58b.buttons---focus---1kVJZ {\n background-color: #fff;\n background-image: -webkit-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -moz-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -o-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -ms-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: linear-gradient(to bottom, #fff 0%, #fff 100%);\n background-repeat: repeat-x;\n border-color: #ccc;\n}\n.buttons---btn-link---1xwS4 {\n padding-right: 0;\n padding-left: 0;\n font-weight: normal;\n color: #0096cc;\n border-radius: 0;\n}\n.buttons---btn-link---1xwS4,\n.buttons---btn-link---1xwS4:active,\n.buttons---btn-link---1xwS4.buttons---active---2-a32,\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b,\n.buttons---btn-link---1xwS4[disabled],\nfieldset[disabled] .buttons---btn-link---1xwS4 {\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.buttons---btn-link---1xwS4,\n.buttons---btn-link---1xwS4:hover,\n.buttons---btn-link---1xwS4.buttons---hover---42FF2,\n.buttons---btn-link---1xwS4:focus,\n.buttons---btn-link---1xwS4:active {\n border-color: transparent;\n}\n.buttons---btn-link---1xwS4:hover,\n.buttons---btn-link---1xwS4.buttons---hover---42FF2,\n.buttons---btn-link---1xwS4:focus {\n color: #db3d44;\n text-decoration: underline;\n background-color: transparent;\n}\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b:hover,\n.buttons---btn-link---1xwS4[disabled]:hover,\nfieldset[disabled] .buttons---btn-link---1xwS4:hover,\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-link---1xwS4[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-link---1xwS4.buttons---hover---42FF2,\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b:focus,\n.buttons---btn-link---1xwS4[disabled]:focus,\nfieldset[disabled] .buttons---btn-link---1xwS4:focus,\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-link---1xwS4[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-link---1xwS4.buttons---focus---1kVJZ {\n color: #e6e6e6;\n text-decoration: none;\n}\n.buttons---btn-lg---2xtUV,\n.buttons---btn-group-lg---3C8An > .buttons---btn---2jZHN {\n padding: 9px 12px;\n font-size: 16px;\n line-height: 24px;\n border-radius: 3px;\n}\n.buttons---btn-lg---2xtUV.buttons---btn-compact---mXDAU,\n.buttons---btn-group-lg---3C8An > .buttons---btn---2jZHN.buttons---btn-compact---mXDAU {\n padding-left: 0;\n padding-right: 0;\n min-width: 58px;\n}\n.buttons---btn-md---HRR_F,\n.buttons---btn-group-md---3FQVP > .buttons---btn---2jZHN {\n padding: 5px 12px;\n font-size: 13px;\n line-height: 20px;\n border-radius: 3px;\n}\n.buttons---btn-md---HRR_F.buttons---btn-compact---mXDAU,\n.buttons---btn-group-md---3FQVP > .buttons---btn---2jZHN.buttons---btn-compact---mXDAU {\n padding-left: 0;\n padding-right: 0;\n min-width: 42px;\n}\n.buttons---btn-sm---3cNnY,\n.buttons---btn-group-sm---3_QLf > .buttons---btn---2jZHN {\n padding: 4px 12px;\n font-size: 12px;\n line-height: 18px;\n border-radius: 3px;\n}\n.buttons---btn-sm---3cNnY.buttons---btn-compact---mXDAU,\n.buttons---btn-group-sm---3_QLf > .buttons---btn---2jZHN.buttons---btn-compact---mXDAU {\n padding-left: 0;\n padding-right: 0;\n min-width: 36px;\n}\n.buttons---btn-xs---2eEDQ,\n.buttons---btn-group-xs---1c4pb > .buttons---btn---2jZHN {\n padding: 1px 12px;\n font-size: 12px;\n line-height: 18px;\n border-radius: 3px;\n}\n.buttons---btn-xs---2eEDQ.buttons---btn-compact---mXDAU,\n.buttons---btn-group-xs---1c4pb > .buttons---btn---2jZHN.buttons---btn-compact---mXDAU {\n padding-left: 0;\n padding-right: 0;\n min-width: 28px;\n}\n.buttons---btn-block---1nSNV {\n display: block;\n width: 100%;\n}\n.buttons---btn-block---1nSNV.buttons---btn---2jZHN + .buttons---btn-block---1nSNV.buttons---btn---2jZHN,\n.buttons---btn-block---1nSNV + .buttons---btn-block---1nSNV {\n margin-left: 0;\n margin-top: 8px;\n}\ninput[type="submit"].buttons---btn-block---1nSNV,\ninput[type="reset"].buttons---btn-block---1nSNV,\ninput[type="button"].buttons---btn-block---1nSNV {\n width: 100%;\n}\n.buttons---btn-group---1jaDo,\n.buttons---btn-group-vertical---3Lm1e {\n position: relative;\n display: inline-block;\n vertical-align: top;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN {\n position: relative;\n float: left;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:hover,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:hover,\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN.buttons---hover---42FF2,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN.buttons---hover---42FF2,\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:active,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:active,\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN.buttons---active---2-a32,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN.buttons---active---2-a32 {\n z-index: 2;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:focus,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:focus,\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN.buttons---focus---1kVJZ,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN.buttons---focus---1kVJZ {\n z-index: 3;\n}\n.buttons---btn-group---1jaDo .buttons---btn---2jZHN + .buttons---btn---2jZHN,\n.buttons---btn-group---1jaDo .buttons---btn---2jZHN + .buttons---btn-group---1jaDo,\n.buttons---btn-group---1jaDo .buttons---btn-group---1jaDo + .buttons---btn---2jZHN,\n.buttons---btn-group---1jaDo .buttons---btn-group---1jaDo + .buttons---btn-group---1jaDo {\n margin-left: -1px;\n}\n.buttons---btn-group---1jaDo + .buttons---btn-group---1jaDo {\n margin-left: 8px;\n}\n.buttons---btn-toolbar---2-GfJ {\n margin-left: -5px;\n zoom: 1;\n}\n.buttons---btn-toolbar---2-GfJ:before,\n.buttons---btn-toolbar---2-GfJ:after {\n content: "";\n display: table;\n}\n.buttons---btn-toolbar---2-GfJ:after {\n clear: both;\n}\n.buttons---btn-toolbar---2-GfJ .buttons---btn---2jZHN,\n.buttons---btn-toolbar---2-GfJ .buttons---btn-group---1jaDo,\n.buttons---btn-toolbar---2-GfJ .buttons---input-group---1T18I {\n float: left;\n}\n.buttons---btn-toolbar---2-GfJ > .buttons---btn---2jZHN,\n.buttons---btn-toolbar---2-GfJ > .buttons---btn-group---1jaDo,\n.buttons---btn-toolbar---2-GfJ > .buttons---input-group---1T18I {\n margin-left: 5px;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:not(:first-child):not(:last-child):not(.buttons---dropdown-toggle---vMtjL) {\n border-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:first-child {\n margin-left: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:first-child:not(:last-child):not(.buttons---dropdown-toggle---vMtjL) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:last-child:not(:first-child),\n.buttons---btn-group---1jaDo > .buttons---dropdown-toggle---vMtjL:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo {\n float: left;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo:not(:first-child):not(:last-child) > .buttons---btn---2jZHN {\n border-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo:first-child:not(:last-child) > .buttons---btn---2jZHN:last-child,\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo:first-child:not(:last-child) > .buttons---dropdown-toggle---vMtjL {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo:last-child:not(:first-child) > .buttons---btn---2jZHN:first-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.buttons---btn-group---1jaDo .buttons---dropdown-toggle---vMtjL:active,\n.buttons---btn-group---1jaDo.buttons---open---1ju75 .buttons---dropdown-toggle---vMtjL {\n outline: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo > .buttons---btn---2jZHN {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo {\n zoom: 1;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:before,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:after {\n content: "";\n display: table;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:after {\n clear: both;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo > .buttons---btn---2jZHN {\n float: none;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN + .buttons---btn---2jZHN,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN + .buttons---btn-group---1jaDo,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo + .buttons---btn---2jZHN,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo + .buttons---btn-group---1jaDo {\n margin-top: -1px;\n margin-left: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:first-child:not(:last-child) {\n border-top-radius: 3px;\n border-bottom-radius: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:last-child:not(:first-child) {\n border-top-radius: 0;\n border-bottom-radius: 3px;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:not(:first-child):not(:last-child) > .buttons---btn---2jZHN {\n border-radius: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:first-child:not(:last-child) > .buttons---btn---2jZHN:last-child,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:first-child:not(:last-child) > .buttons---dropdown-toggle---vMtjL {\n border-bottom-radius: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:last-child:not(:first-child) > .buttons---btn---2jZHN:first-child {\n border-top-radius: 0;\n}\n.buttons---btn-group-justified---3qB9u {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n}\n.buttons---btn-group-justified---3qB9u > .buttons---btn---2jZHN,\n.buttons---btn-group-justified---3qB9u > .buttons---btn-group---1jaDo {\n float: none;\n display: table-cell;\n width: 1%;\n}\n.buttons---btn-group-justified---3qB9u > .buttons---btn-group---1jaDo .buttons---btn---2jZHN {\n width: 100%;\n}\n.buttons---btn-group-justified---3qB9u > .buttons---btn-group---1jaDo .buttons---dropdown-menu---1fkH0 {\n left: auto;\n}\n.buttons---dropdown-toggle---vMtjL {\n min-width: 0;\n}\n.buttons---dropdown-toggle---vMtjL.buttons---btn---2jZHN {\n text-align: left;\n padding-left: 12px;\n padding-right: 12px;\n}\n.buttons---dropdown-toggle---vMtjL.buttons---btn-compact---mXDAU {\n text-align: center;\n}\n.buttons---dropdown-toggle---vMtjL.buttons---btn-link---1xwS4 {\n color: #222;\n padding-left: 0;\n padding-right: 0;\n text-decoration: none;\n}\n.buttons---dropdown-toggle---vMtjL.buttons---btn-link---1xwS4:hover,\n.buttons---dropdown-toggle---vMtjL.buttons---btn-link---1xwS4:hover > * {\n color: #0096cc;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN + .buttons---dropdown-toggle---vMtjL {\n padding-left: 8px;\n padding-right: 8px;\n min-width: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-lg---2xtUV + .buttons---dropdown-toggle---vMtjL {\n padding-left: 12px;\n padding-right: 12px;\n}\n[data-toggle="buttons"] > .buttons---btn---2jZHN input[type="radio"],\n[data-toggle="buttons"] > .buttons---btn-group---1jaDo > .buttons---btn---2jZHN input[type="radio"],\n[data-toggle="buttons"] > .buttons---btn---2jZHN input[type="checkbox"],\n[data-toggle="buttons"] > .buttons---btn-group---1jaDo > .buttons---btn---2jZHN input[type="checkbox"] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none;\n}\n.buttons---btn---2jZHN.buttons---btn-compact---mXDAU .fa {\n margin-right: 0;\n}\n.buttons---btn---2jZHN .fa {\n font-size: 14px;\n margin-right: 8px;\n}\n.buttons---btn---2jZHN i.fa,\n.buttons---btn---2jZHN span.fa {\n font-size: 14px;\n color: #666;\n}\n.buttons---btn-primary---Wp1wb i.fa,\n.buttons---btn-danger---1UUqU i.fa,\n.buttons---btn-primary---Wp1wb span.fa,\n.buttons---btn-danger---1UUqU span.fa {\n color: inherit;\n}\n.buttons---btn-lg---2xtUV.buttons---btn---2jZHN i.fa,\n.buttons---btn-sm---3cNnY.buttons---btn---2jZHN i.fa,\n.buttons---btn-xs---2eEDQ.buttons---btn---2jZHN i.fa,\n.buttons---btn-lg---2xtUV.buttons---btn---2jZHN span.fa,\n.buttons---btn-sm---3cNnY.buttons---btn---2jZHN span.fa,\n.buttons---btn-xs---2eEDQ.buttons---btn---2jZHN span.fa {\n font-size: inherit;\n}\n.buttons---btn-lg---2xtUV.buttons---btn---2jZHN i.svg,\n.buttons---btn-lg---2xtUV.buttons---btn---2jZHN span.svg {\n width: 24px;\n height: 24px;\n}\n.buttons---btn---2jZHN i.svg,\n.buttons---btn---2jZHN span.svg {\n width: 16px;\n height: 16px;\n}\n.buttons---btn-sm---3cNnY.buttons---btn---2jZHN i.svg,\n.buttons---btn-xs---2eEDQ.buttons---btn---2jZHN i.svg,\n.buttons---btn-sm---3cNnY.buttons---btn---2jZHN span.svg,\n.buttons---btn-xs---2eEDQ.buttons---btn---2jZHN span.svg {\n width: 12px;\n height: 12px;\n}',""])},function(t,e,n){"use strict";function cssWithMappingToString(t,e){var n,r,i=t[1]||"",o=t[3];if(!o)return i;if(e&&"function"==typeof btoa){var a=(n=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+r)+" */"),s=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[i].concat(s).concat([a]).join("\n")}return[i].join("\n")}t.exports=function(t){var e=[];return e.toString=function toString(){return this.map(function(e){var n=cssWithMappingToString(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;ik.length&&k.push(t)}function T(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var s=!1;if(null===t)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case a:s=!0}}if(s)return n(r,t,""===e?"."+U(t,0):e),1;if(s=0,e=""===e?".":e+":",Array.isArray(t))for(var u=0;uthis.eventPool.length&&this.eventPool.push(e)}function jb(t){t.eventPool=[],t.getPooled=kb,t.release=lb}s(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=hb)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=hb)},persist:function(){this.isPersistent=hb},isPersistent:ib,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ib,this._dispatchInstances=this._dispatchListeners=null}}),z.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},z.extend=function(t){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var n=new b;return s(n,c.prototype),c.prototype=n,c.prototype.constructor=c,c.Interface=s({},e.Interface,t),c.extend=e.extend,jb(c),c},jb(z);var ut=z.extend({data:null}),lt=z.extend({data:null}),ct=[9,13,27,32],pt=Z&&"CompositionEvent"in window,ft=null;Z&&"documentMode"in document&&(ft=document.documentMode);var ht=Z&&"TextEvent"in window&&!ft,dt=Z&&(!pt||ft&&8=ft),mt=String.fromCharCode(32),vt={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},gt=!1;function wb(t,e){switch(t){case"keyup":return-1!==ct.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function xb(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var yt=!1;function zb(t,e){switch(t){case"compositionend":return xb(e);case"keypress":return 32!==e.which?null:(gt=!0,mt);case"textInput":return(t=e.data)===mt&>?null:t;default:return null}}function Ab(t,e){if(yt)return"compositionend"===t||!pt&&wb(t,e)?(t=gb(),st=at=ot=null,yt=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1e}return!1}function E(t,e,n,r,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e}var Ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ht[t]=new E(t,0,!1,t,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ht[e]=new E(e,1,!1,t[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ht[t]=new E(t,2,!1,t.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ht[t]=new E(t,2,!1,t,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ht[t]=new E(t,3,!1,t.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(t){Ht[t]=new E(t,3,!0,t,null)}),["capture","download"].forEach(function(t){Ht[t]=new E(t,4,!1,t,null)}),["cols","rows","size","span"].forEach(function(t){Ht[t]=new E(t,6,!1,t,null)}),["rowSpan","start"].forEach(function(t){Ht[t]=new E(t,5,!1,t.toLowerCase(),null)});var Kt=/[\-:]([a-z])/g;function wc(t){return t[1].toUpperCase()}function xc(t,e,n,r){var i=Ht.hasOwnProperty(e)?Ht[e]:null;(null!==i?0===i.type:!r&&(2an.length&&an.push(t)}}}var un={},ln=0,cn="_reactListenersID"+(""+Math.random()).slice(2);function Od(t){return Object.prototype.hasOwnProperty.call(t,cn)||(t[cn]=ln++,un[t[cn]]={}),un[t[cn]]}function Pd(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Qd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rd(t,e){var n,r=Qd(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=Qd(r)}}function Sd(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?Sd(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function Td(){for(var t=window,e=Pd();e instanceof t.HTMLIFrameElement;){try{t=e.contentDocument.defaultView}catch(t){break}e=Pd(t.document)}return e}function Ud(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var pn=Z&&"documentMode"in document&&11>=document.documentMode,fn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},hn=null,dn=null,mn=null,vn=!1;function ae(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return vn||null==hn||hn!==Pd(n)?null:("selectionStart"in(n=hn)&&Ud(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},mn&&jd(mn,n)?null:(mn=n,(t=z.getPooled(fn.select,dn,t,e)).type="select",t.target=hn,Ra(t),t))}var gn={eventTypes:fn,extractEvents:function(t,e,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){t:{o=Od(o),i=A.onSelect;for(var a=0;a=n.length||t("93"),n=n[0]),r=n),null==r&&(r="")),e._wrapperState={initialValue:yc(r)}}function ie(t,e){var n=yc(e.value),r=yc(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function je(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}W.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),D=La,F=Ja,U=Ka,W.injectEventPluginsByName({SimpleEventPlugin:rn,EnterLeaveEventPlugin:Ee,ChangeEventPlugin:Gt,SelectEventPlugin:gn,BeforeInputEventPlugin:bt});var yn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function le(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?le(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var bn,_n=void 0,xn=(bn=function(t,e){if(t.namespaceURI!==yn.svg||"innerHTML"in t)t.innerHTML=e;else{for((_n=_n||document.createElement("div")).innerHTML=""+e+"",e=_n.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction(function(){return bn(t,e)})}:bn);function pe(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var wn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sn=["Webkit","ms","Moz","O"];function se(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||wn.hasOwnProperty(t)&&wn[t]?(""+e).trim():e+"px"}function te(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=se(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(wn).forEach(function(t){Sn.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),wn[e]=wn[t]})});var Cn=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,n){n&&(Cn[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML)&&t("137",e,""),null!=n.dangerouslySetInnerHTML&&(null!=n.children&&t("60"),"object"==typeof n.dangerouslySetInnerHTML&&"__html"in n.dangerouslySetInnerHTML||t("61")),null!=n.style&&"object"!=typeof n.style&&t("62",""))}function we(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(t,e){var n=Od(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=A[e];for(var r=0;rTn||(t.current=jn[Tn],jn[Tn]=null,Tn--)}function J(t,e){jn[++Tn]=t.current,t.current=e}var Rn={},Mn={current:Rn},Nn={current:!1},In=Rn;function Me(t,e){var n=t.type.contextTypes;if(!n)return Rn;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function M(t){return null!=(t=t.childContextTypes)}function Ne(t){I(Nn),I(Mn)}function Oe(t){I(Nn),I(Mn)}function Pe(e,n,r){Mn.current!==Rn&&t("168"),J(Mn,n),J(Nn,r)}function Qe(e,n,r){var i=e.stateNode;if(e=n.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())o in e||t("108",mc(n)||"Unknown",o);return s({},r,i)}function Re(t){var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Rn,In=Mn.current,J(Mn,e),J(Nn,Nn.current),!0}function Se(e,n,r){var i=e.stateNode;i||t("169"),r?(n=Qe(e,n,In),i.__reactInternalMemoizedMergedChildContext=n,I(Nn),I(Mn),J(Mn,n)):I(Nn),J(Nn,r)}var Ln=null,An=null;function Ve(t){return function(e){try{return t(e)}catch(t){}}}function We(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Ln=Ve(function(t){return e.onCommitFiberRoot(n,t)}),An=Ve(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function Xe(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function N(t,e,n,r){return new Xe(t,e,n,r)}function Ye(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Ze(t){if("function"==typeof t)return Ye(t)?1:0;if(null!=t){if((t=t.$$typeof)===At)return 11;if(t===Ft)return 14}return 2}function $e(t,e){var n=t.alternate;return null===n?((n=N(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,n.firstContextDependency=t.firstContextDependency,n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function af(e,n,r,i,o,a){var s=2;if(i=e,"function"==typeof e)Ye(e)&&(s=1);else if("string"==typeof e)s=5;else t:switch(e){case Tt:return bf(r.children,o,a,n);case Lt:return cf(r,3|o,a,n);case Rt:return cf(r,2|o,a,n);case Mt:return(e=N(12,r,n,4|o)).elementType=Mt,e.type=Mt,e.expirationTime=a,e;case Dt:return(e=N(13,r,n,o)).elementType=Dt,e.type=Dt,e.expirationTime=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Nt:s=10;break t;case It:s=9;break t;case At:s=11;break t;case Ft:s=14;break t;case Ut:s=16,i=null;break t}t("130",null==e?e:typeof e,"")}return(n=N(s,r,n,o)).elementType=e,n.type=i,n.expirationTime=a,n}function bf(t,e,n,r){return(t=N(7,t,r,e)).expirationTime=n,t}function cf(t,e,n,r){return t=N(8,t,r,e),e=0==(1&e)?Rt:Lt,t.elementType=e,t.type=e,t.expirationTime=n,t}function df(t,e,n){return(t=N(6,t,null,e)).expirationTime=n,t}function ef(t,e,n){return(e=N(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ff(t,e){t.didError=!1;var n=t.earliestPendingTime;0===n?t.earliestPendingTime=t.latestPendingTime=e:ne&&(t.latestPendingTime=e),gf(e,t)}function hf(t,e){t.didError=!1,t.latestPingedTime>=e&&(t.latestPingedTime=0);var n=t.earliestPendingTime,r=t.latestPendingTime;n===e?t.earliestPendingTime=r===e?t.latestPendingTime=0:r:r===e&&(t.latestPendingTime=n),n=t.earliestSuspendedTime,r=t.latestSuspendedTime,0===n?t.earliestSuspendedTime=t.latestSuspendedTime=e:ne&&(t.latestSuspendedTime=e),gf(e,t)}function jf(t,e){var n=t.earliestPendingTime;return n>e&&(e=n),(t=t.earliestSuspendedTime)>e&&(e=t),e}function gf(t,e){var n=e.earliestSuspendedTime,r=e.latestSuspendedTime,i=e.earliestPendingTime,o=e.latestPingedTime;0===(i=0!==i?i:o)&&(0===t||rt&&(t=n),e.nextExpirationTimeToWorkOn=i,e.expirationTime=t}var Dn=!1;function lf(t){return{baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function mf(t){return{baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function nf(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function of(t,e){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e)}function pf(t,e){var n=t.alternate;if(null===n){var r=t.updateQueue,i=null;null===r&&(r=t.updateQueue=lf(t.memoizedState))}else r=t.updateQueue,i=n.updateQueue,null===r?null===i?(r=t.updateQueue=lf(t.memoizedState),i=n.updateQueue=lf(n.memoizedState)):r=t.updateQueue=mf(i):null===i&&(i=n.updateQueue=mf(r));null===i||r===i?of(r,e):null===r.lastUpdate||null===i.lastUpdate?(of(r,e),of(i,e)):(of(r,e),i.lastUpdate=e)}function qf(t,e){var n=t.updateQueue;null===(n=null===n?t.updateQueue=lf(t.memoizedState):rf(t,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=e:(n.lastCapturedUpdate.next=e,n.lastCapturedUpdate=e)}function rf(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=mf(e)),e}function sf(t,e,n,r,i,o){switch(n.tag){case 1:return"function"==typeof(t=n.payload)?t.call(o,r,i):t;case 3:t.effectTag=-2049&t.effectTag|64;case 0:if(null==(i="function"==typeof(t=n.payload)?t.call(o,r,i):t))break;return s({},r,i);case 2:Dn=!0}return r}function tf(t,e,n,r,i){Dn=!1;for(var o=(e=rf(t,e)).baseState,a=null,s=0,u=e.firstUpdate,l=o;null!==u;){var c=u.expirationTime;cl?(p=u,u=null):p=u.sibling;var h=w(t,u,i[l],o);if(null===h){null===u&&(u=p);break}n&&u&&null===h.alternate&&b(t,u),e=f(h,e,l),null===s?a=h:s.sibling=h,s=h,u=p}if(l===i.length)return c(t,u),a;if(null===u){for(;lp?(h=l,l=null):h=l.sibling;var v=w(e,l,m.value,a);if(null===v){l||(l=h);break}n&&l&&null===v.alternate&&b(e,l),i=f(v,i,p),null===u?s=v:u.sibling=v,u=v,l=h}if(m.done)return c(e,l),s;if(null===l){for(;!m.done;p++,m=o.next())null!==(m=r(e,m.value,a))&&(i=f(m,i,p),null===u?s=m:u.sibling=m,u=m);return s}for(l=d(e,l);!m.done;p++,m=o.next())null!==(m=y(l,e,p,m.value,a))&&(n&&null!==m.alternate&&l.delete(null===m.key?p:m.key),i=f(m,i,p),null===u?s=m:u.sibling=m,u=m);return n&&l.forEach(function(t){return b(e,t)}),s}return function(n,r,i,o){var a="object"==typeof i&&null!==i&&i.type===Tt&&null===i.key;a&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case Ot:t:{for(s=i.key,a=r;null!==a;){if(a.key===s){if(7===a.tag?i.type===Tt:a.elementType===i.type){c(n,a.sibling),(r=e(a,i.type===Tt?i.props.children:i.props)).ref=bg(n,a,i),r.return=n,n=r;break t}c(n,a);break}b(n,a),a=a.sibling}i.type===Tt?((r=bf(i.props.children,n.mode,o,i.key)).return=n,n=r):((o=af(i.type,i.key,i.props,null,n.mode,o)).ref=bg(n,r,i),o.return=n,n=o)}return g(n);case jt:t:{for(a=i.key;null!==r;){if(r.key===a){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){c(n,r.sibling),(r=e(r,i.children||[])).return=n,n=r;break t}c(n,r);break}b(n,r),r=r.sibling}(r=ef(i,n.mode,o)).return=n,n=r}return g(n)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(c(n,r.sibling),(r=e(r,i)).return=n,n=r):(c(n,r),(r=df(i,n.mode,o)).return=n,n=r),g(n);if(Zn(i))return B(n,r,i,o);if(lc(i))return R(n,r,i,o);if(s&&cg(n,i),void 0===i&&!a)switch(n.tag){case 1:case 0:t("152",(o=n.type).displayName||o.name||"Component")}return c(n,r)}}var Qn=dg(!0),Gn=dg(!1),Yn=null,$n=null,tr=!1;function jg(t,e){var n=N(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function kg(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function lg(t){if(tr){var e=$n;if(e){var n=e;if(!kg(t,e)){if(!(e=Ge(n))||!kg(t,e))return t.effectTag|=2,tr=!1,void(Yn=t);jg(Yn,n)}Yn=t,$n=He(e)}else t.effectTag|=2,tr=!1,Yn=t}}function mg(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;Yn=t}function ng(t){if(t!==Yn)return!1;if(!tr)return mg(t),tr=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!Ce(e,t.memoizedProps))for(e=$n;e;)jg(t,e),e=Ge(e);return mg(t),$n=Yn?Ge(t.stateNode):null,!0}function og(){$n=Yn=null,tr=!1}var er=Et.ReactCurrentOwner;function Q(t,e,n,r){e.child=null===t?Gn(e,null,n,r):Qn(e,t.child,n,r)}function qg(t,e,n,r,i){n=n.render;var o=e.ref;return Df(e),r=n(r,o),e.effectTag|=1,Q(t,e,r,i),e.child}function rg(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!=typeof a||Ye(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=af(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,sg(t,e,a,r,i,o))}return a=t.child,i=r?zg(e,n,r):null!==(n=tg(e,n,r))?n.sibling:null}return tg(e,n,r)}switch(n.expirationTime=0,n.tag){case 2:i=n.elementType,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps;var o=Me(n,Mn.current);if(Df(n),o=i(e,o),n.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(n.tag=1,M(i)){var a=!0;Re(n)}else a=!1;n.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var s=i.getDerivedStateFromProps;"function"==typeof s&&Qf(n,i,s,e),o.updater=Xn,n.stateNode=o,o._reactInternalFiber=n,$f(n,i,e,r),n=xg(null,n,i,!0,a,r)}else n.tag=0,Q(null,n,o,r),n=n.child;return n;case 16:switch(o=n.elementType,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),a=n.pendingProps,e=Nf(o),n.type=e,o=n.tag=Ze(e),a=P(e,a),s=void 0,o){case 0:s=ug(null,n,e,a,r);break;case 1:s=wg(null,n,e,a,r);break;case 11:s=qg(null,n,e,a,r);break;case 14:s=rg(null,n,e,P(e.type,a),i,r);break;default:t("306",e,"")}return s;case 0:return i=n.type,o=n.pendingProps,ug(e,n,i,o=n.elementType===i?o:P(i,o),r);case 1:return i=n.type,o=n.pendingProps,wg(e,n,i,o=n.elementType===i?o:P(i,o),r);case 3:return yg(n),null===(i=n.updateQueue)&&t("282"),o=null!==(o=n.memoizedState)?o.element:null,tf(n,i,n.pendingProps,null,r),(i=n.memoizedState.element)===o?(og(),n=tg(e,n,r)):(o=n.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&($n=He(n.stateNode.containerInfo),Yn=n,o=tr=!0),o?(n.effectTag|=2,n.child=Gn(n,null,i,r)):(Q(e,n,i,r),og()),n=n.child),n;case 5:return Lf(n),null===e&&lg(n),i=n.type,o=n.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,Ce(i,o)?s=null:null!==a&&Ce(i,a)&&(n.effectTag|=16),vg(e,n),1!==r&&1&n.mode&&o.hidden?(n.expirationTime=1,n=null):(Q(e,n,s,r),n=n.child),n;case 6:return null===e&&lg(n),null;case 13:return zg(e,n,r);case 4:return Jf(n,n.stateNode.containerInfo),i=n.pendingProps,null===e?n.child=Qn(n,null,i,r):Q(e,n,i,r),n.child;case 11:return i=n.type,o=n.pendingProps,qg(e,n,i,o=n.elementType===i?o:P(i,o),r);case 7:return Q(e,n,n.pendingProps,r),n.child;case 8:case 12:return Q(e,n,n.pendingProps.children,r),n.child;case 10:t:{if(i=n.type._context,o=n.pendingProps,s=n.memoizedProps,Bf(n,a=o.value),null!==s){var u=s.value;if(0===(a=u===a&&(0!==u||1/u==1/a)||u!=u&&a!=a?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(u,a):1073741823))){if(s.children===o.children&&!Nn.current){n=tg(e,n,r);break t}}else for(null!==(s=n.child)&&(s.return=n);null!==s;){if(null!==(u=s.firstContextDependency))do{if(u.context===i&&0!=(u.observedBits&a)){if(1===s.tag){var l=nf(r);l.tag=2,pf(s,l)}s.expirationTime<\/script>",p=o.removeChild(o.firstChild)):"string"==typeof h.is?p=p.createElement(o,{is:h.is}):(p=p.createElement(o),"select"===o&&h.multiple&&(p.multiple=!0)):p=p.createElementNS(c,o),(o=p)[K]=f,o[X]=u,nr(o,n,!1,!1),h=o;var d=l,m=we(p=a,f=u);switch(p){case"iframe":case"object":H("load",h),l=f;break;case"video":case"audio":for(l=0;lu&&(u=o),(l=a.childExpirationTime)>u&&(u=l),a=a.sibling;n.childExpirationTime=u}if(null!==hr)return hr;null!==r&&0==(1024&r.effectTag)&&(null===r.firstEffect&&(r.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==r.lastEffect&&(r.lastEffect.nextEffect=e.firstEffect),r.lastEffect=e.lastEffect),1=d?f=0:(-1===f||d component higher in the tree to provide a loading indicator or placeholder to display."+nc(l))}gr=!0,c=wf(c,l),s=u;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=a,qf(s,a=Vg(s,c,a));break t;case 1:if(p=c,f=s.type,h=s.stateNode,0==(64&s.effectTag)&&("function"==typeof f.getDerivedStateFromError||null!==h&&"function"==typeof h.componentDidCatch&&(null===wr||!wr.has(h)))){s.effectTag|=2048,s.expirationTime=a,qf(s,a=Xg(s,p,a));break t}}s=s.return}while(null!==s)}hr=kh(o);continue}i=!0,Wg(n)}}break}if(fr=!1,Vn=Bn=Un=lr.currentDispatcher=null,i)dr=null,e.finishedWork=null;else if(null!==hr)e.finishedWork=null;else{if(null===(i=e.current.alternate)&&t("281"),dr=null,gr){if(o=e.latestPendingTime,a=e.latestSuspendedTime,s=e.latestPingedTime,0!==o&&on?0:n)):(e.pendingCommitExpirationTime=r,e.finishedWork=i)}}function Mg(t,e){for(var n=t.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===wr||!wr.has(r)))return pf(n,t=Xg(n,t=wf(e,t),1073741823)),void Uf(n,1073741823);break;case 3:return pf(n,t=Vg(n,t=wf(e,t),1073741823)),void Uf(n,1073741823)}n=n.return}3===t.tag&&(pf(t,n=Vg(t,n=wf(e,t),1073741823)),Uf(t,1073741823))}function Sf(t,e){return 0!==pr?t=pr:fr?t=br?1073741823:mr:1&e.mode?(t=Lr?1073741822-10*(1+((1073741822-t+15)/10|0)):1073741822-25*(1+((1073741822-t+500)/25|0)),null!==dr&&t===mr&&--t):t=1073741823,Lr&&(0===Tr||t=r&&(t.didError=!1,(0===(e=t.latestPingedTime)||e>n)&&(t.latestPingedTime=n),gf(n,t),0!==(n=t.expirationTime)&&sh(t,n)))}function Tg(t,e){var n=t.stateNode;null!==n&&n.delete(e),null!==(t=th(t,e=Sf(e=Rf(),t)))&&(ff(t,e),0!==(e=t.expirationTime)&&sh(t,e))}function th(t,e){t.expirationTimemr&&jh(),ff(e,n),fr&&!br&&dr===e||sh(e,e.expirationTime),Vr>Br&&(Vr=0,t("185")))}function wh(t,e,n,r,i){var o=pr;pr=1073741823;try{return t(e,n,r,i)}finally{pr=o}}var Sr=null,Cr=null,Er=0,kr=void 0,Pr=!1,Or=null,jr=0,Tr=0,Rr=!1,Mr=null,Nr=!1,Ir=!1,Lr=!1,Ar=null,Dr=u.unstable_now(),Fr=1073741822-(Dr/10|0),Ur=Fr,Br=50,Vr=0,Wr=null;function Jh(){Fr=1073741822-((u.unstable_now()-Dr)/10|0)}function Kh(t,e){if(0!==Er){if(et.expirationTime&&(t.expirationTime=e),Pr||(Nr?Ir&&(Or=t,jr=1073741823,Ph(t,1073741823,!1)):1073741823===e?Qh(1073741823,!1):Kh(t,e))}function Oh(){var e=0,n=null;if(null!==Cr)for(var r=Cr,i=Sr;null!==i;){var o=i.expirationTime;if(0===o){if((null===r||null===Cr)&&t("244"),i===i.nextScheduledRoot){Sr=Cr=i.nextScheduledRoot=null;break}if(i===Sr)Sr=o=i.nextScheduledRoot,Cr.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===Cr){(Cr=r).nextScheduledRoot=Sr,i.nextScheduledRoot=null;break}r.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=r.nextScheduledRoot}else{if(o>e&&(e=o,n=i),i===Cr)break;if(1073741823===e)break;r=i,i=i.nextScheduledRoot}}Or=n,jr=e}var zr=!1;function nh(){return!!zr||!!u.unstable_shouldYield()&&(zr=!0)}function Lh(){try{if(!nh()&&null!==Sr){Jh();var t=Sr;do{var e=t.expirationTime;0!==e&&Fr<=e&&(t.nextExpirationTimeToWorkOn=Fr),t=t.nextScheduledRoot}while(t!==Sr)}Qh(0,!0)}finally{zr=!1}}function Qh(t,e){if(Oh(),e)for(Jh(),Ur=Fr;null!==Or&&0!==jr&&t<=jr&&!(zr&&Fr>jr);)Ph(Or,jr,Fr>jr),Oh(),Jh(),Ur=Fr;else for(;null!==Or&&0!==jr&&t<=jr;)Ph(Or,jr,!1),Oh();if(e&&(Er=0,kr=null),0!==jr&&Kh(Or,jr),Vr=0,Wr=null,null!==Ar)for(t=Ar,Ar=null,e=0;e=r&&(null===Ar?Ar=[i]:Ar.push(i),i._defer))return e.finishedWork=n,void(e.expirationTime=0);e.finishedWork=null,e===Wr?Vr++:(Wr=e,Vr=0),br=fr=!0,e.current===n&&t("177"),0===(r=e.pendingCommitExpirationTime)&&t("261"),e.pendingCommitExpirationTime=0,i=n.expirationTime;var o=n.childExpirationTime;if(i=o>i?o:i,e.didError=!1,0===i?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(ii?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>i&&(e.earliestPendingTime=e.latestPendingTime)),0===(o=e.earliestSuspendedTime)?ff(e,i):io&&ff(e,i)),gf(0,e),lr.current=null,1y&&(b=y,y=k,k=b),b=Rd(S,k),_=Rd(S,y),b&&_&&(1!==E.rangeCount||E.anchorNode!==b.node||E.anchorOffset!==b.offset||E.focusNode!==_.node||E.focusOffset!==_.offset)&&((C=C.createRange()).setStart(b.node,b.offset),E.removeAllRanges(),k>y?(E.addRange(C),E.extend(_.node,_.offset)):(C.setEnd(_.node,_.offset),E.addRange(C))))),C=[];for(E=S;E=E.parentNode;)1===E.nodeType&&C.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof S.focus&&S.focus(),S=0;SO?n:O)&&(wr=null),e.expirationTime=n,e.finishedWork=null}function Wg(e){null===Or&&t("246"),Or.expirationTime=0,Rr||(Rr=!0,Mr=e)}function Th(t,e){var n=Nr;Nr=!0;try{return t(e)}finally{(Nr=n)||Pr||Qh(1073741823,!1)}}function Uh(t,e){if(Nr&&!Ir){Ir=!0;try{return t(e)}finally{Ir=!1}}return t(e)}function Wh(t,e,n){if(Lr)return t(e,n);Nr||Pr||0===Tr||(Qh(Tr,!1),Tr=0);var r=Lr,i=Nr;Nr=Lr=!0;try{return t(e,n)}finally{Lr=r,(Nr=i)||Pr||Qh(1073741823,!1)}}function Xh(e,n,r,i,o){var a=n.current;t:if(r){e:{2===kd(r=r._reactInternalFiber)&&1===r.tag||t("170");var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(M(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(null!==s);t("171"),s=void 0}if(1===r.tag){var u=r.type;if(M(u)){r=Qe(r,u,s);break t}}r=s}else r=Rn;return null===n.context?n.context=r:n.pendingContext=r,n=o,(o=nf(i)).payload={element:e},null!==(n=void 0===n?null:n)&&(o.callback=n),Tf(),pf(a,o),Uf(a,i),i}function Yh(t,e,n,r){var i=e.current;return Xh(t,e,n,i=Sf(Rf(),i),r)}function Zh(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function $h(t,e,n){var r=3=cr&&(e=cr-1),this._expirationTime=cr=e,this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function bi(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function ci(t,e,n){t={current:e=N(3,null,null,e?3:0),containerInfo:t,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=e.stateNode=t}function di(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function ei(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new ci(t,!1,e)}function fi(e,n,r,i,o){di(r)||t("200");var a=r._reactRootContainer;if(a){if("function"==typeof o){var s=o;o=function(){var t=Zh(a._internalRoot);s.call(t)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,n,o):a.render(n,o)}else{if(a=r._reactRootContainer=ei(r,i),"function"==typeof o){var u=o;o=function(){var t=Zh(a._internalRoot);u.call(t)}}Uh(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,n,o):a.render(n,o)})}return Zh(a._internalRoot)}function gi(e,n){var r=2=e;)n=r,r=r._next;t._next=r,null!==n&&(n._next=t)}return t},Kb=Th,Lb=Wh,Mb=function(){Pr||0===Tr||(Qh(Tr,!1),Tr=0)};var qr={createPortal:gi,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternalFiber;return void 0===n&&("function"==typeof e.render?t("188"):t("268",Object.keys(e))),e=null===(e=nd(n))?null:e.stateNode},hydrate:function(t,e,n){return fi(null,t,e,!0,n)},render:function(t,e,n){return fi(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(e,n,r,i){return(null==e||void 0===e._reactInternalFiber)&&t("38"),fi(e,n,r,!1,i)},unmountComponentAtNode:function(e){return di(e)||t("40"),!!e._reactRootContainer&&(Uh(function(){fi(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return gi.apply(void 0,arguments)},unstable_batchedUpdates:Th,unstable_interactiveUpdates:Wh,flushSync:function(e,n){Pr&&t("187");var r=Nr;Nr=!0;try{return wh(e,n)}finally{Nr=r,Qh(1073741823,!1)}},unstable_createRoot:function hi(e,n){return di(e)||t("299","unstable_createRoot"),new ci(e,!0,null!=n&&!0===n.hydrate)},unstable_flushControlled:function(t){var e=Nr;Nr=!0;try{wh(t)}finally{(Nr=e)||Pr||Qh(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Ja,Ka,La,W.injectEventPluginsByName,T,Ra,function(t){za(t,Qa)},Ib,Jb,Jd,Ea]}};!function(t){var e=t.findFiberByHostInstance;We(s({},t,{overrideProps:null,findHostInstanceByFiber:function(t){return null===(t=nd(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null}}))}({findFiberByHostInstance:Ia,bundleType:0,version:"16.7.0",rendererPackageName:"react-dom"});var Hr={default:qr},Kr=Hr&&qr||Hr;n.exports=Kr.default||Kr},function(t,e,n){"use strict";t.exports=n(423)},function(e,n,r){"use strict";(function(e){ +/** @license React v0.12.0 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +Object.defineProperty(n,"__esModule",{value:!0});var r=null,i=!1,o=3,a=-1,s=-1,l=!1,c=!1;function p(){if(!l){var e=r.expirationTime;c?w():c=!0,x(t,e)}}function u(){var t=r,e=r.next;if(r===e)r=null;else{var n=r.previous;r=n.next=e,e.previous=n}t.next=t.previous=null,n=t.callback,e=t.expirationTime,t=t.priorityLevel;var i=o,a=s;o=t,s=e;try{var u=n()}finally{o=i,s=a}if("function"==typeof u)if(u={callback:u,priorityLevel:t,expirationTime:e,next:null,previous:null},null===r)r=u.next=u.previous=u;else{n=null,t=r;do{if(t.expirationTime>=e){n=t;break}t=t.next}while(t!==r);null===n?n=r:n===r&&(r=u,p()),(e=n.previous).next=n.previous=u,u.next=n,u.previous=e}}function v(){if(-1===a&&null!==r&&1===r.priorityLevel){l=!0;try{do{u()}while(null!==r&&1===r.priorityLevel)}finally{l=!1,null!==r?p():c=!1}}}function t(t){l=!0;var e=i;i=t;try{if(t)for(;null!==r;){var o=n.unstable_now();if(!(r.expirationTime<=o))break;do{u()}while(null!==r&&r.expirationTime<=o)}else if(null!==r)do{u()}while(null!==r&&!S())}finally{l=!1,i=e,null!==r?p():c=!1,v()}}var f,h,d=Date,m="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function E(t){f=y(function(e){g(h),t(e)}),h=m(function(){b(f),t(n.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var _=performance;n.unstable_now=function(){return _.now()}}else n.unstable_now=function(){return d.now()};var x,w,S,C=null;if("undefined"!=typeof window?C=window:void 0!==e&&(C=e),C&&C._schedMock){var k=C._schedMock;x=k[0],w=k[1],S=k[2],n.unstable_now=k[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var P=null,O=function(t){if(null!==P)try{P(t)}finally{P=null}};x=function(t){null!==P?setTimeout(x,0,t):(P=t,setTimeout(O,0,!1))},w=function(){P=null},S=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var j=null,T=!1,R=-1,M=!1,N=!1,I=0,L=33,A=33;S=function(){return I<=n.unstable_now()};var D=new MessageChannel,F=D.port2;D.port1.onmessage=function(){T=!1;var t=j,e=R;j=null,R=-1;var r=n.unstable_now(),i=!1;if(0>=I-r){if(!(-1!==e&&e<=r))return M||(M=!0,E(U)),j=t,void(R=e);i=!0}if(null!==t){N=!0;try{t(i)}finally{N=!1}}};var U=function(t){if(null!==j){E(U);var e=t-I+A;ee&&(e=8),A=ee?F.postMessage(void 0):M||(M=!0,E(U))},w=function(){j=null,T=!1,R=-1}}n.unstable_ImmediatePriority=1,n.unstable_UserBlockingPriority=2,n.unstable_NormalPriority=3,n.unstable_IdlePriority=5,n.unstable_LowPriority=4,n.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=o,i=a;o=t,a=n.unstable_now();try{return e()}finally{o=r,a=i,v()}},n.unstable_scheduleCallback=function(t,e){var i=-1!==a?a:n.unstable_now();if("object"==typeof e&&null!==e&&"number"==typeof e.timeout)e=i+e.timeout;else switch(o){case 1:e=i+-1;break;case 2:e=i+250;break;case 5:e=i+1073741823;break;case 4:e=i+1e4;break;default:e=i+5e3}if(t={callback:t,priorityLevel:o,expirationTime:e,next:null,previous:null},null===r)r=t.next=t.previous=t,p();else{i=null;var s=r;do{if(s.expirationTime>e){i=s;break}s=s.next}while(s!==r);null===i?i=r:i===r&&(r=t,p()),(e=i.previous).next=i.previous=t,t.next=i,t.previous=e}return t},n.unstable_cancelCallback=function(t){var e=t.next;if(null!==e){if(e===t)r=null;else{t===r&&(r=e);var n=t.previous;n.next=e,e.previous=n}t.next=t.previous=null}},n.unstable_wrapCallback=function(t){var e=o;return function(){var r=o,i=a;o=e,a=n.unstable_now();try{return t.apply(this,arguments)}finally{o=r,a=i,v()}}},n.unstable_getCurrentPriorityLevel=function(){return o},n.unstable_shouldYield=function(){return!i&&(null!==r&&r.expirationTime0&&(this.refs[e]--,0===this.refs[e]&&this.sheets[e].detach()):(0,i.default)(!1,"SheetsManager: can't find sheet to unmanage")}},{key:"size",get:function get(){return this.keys.length}}]),SheetsManager}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function cloneStyle(t){if(null==t)return t;var e=void 0===t?"undefined":r(t);if("string"===e||"number"===e||"function"===e)return t;if(o(t))return t.map(cloneStyle);if((0,i.default)(t))return t;var n={};for(var a in t){var s=t[a];"object"!==(void 0===s?"undefined":r(s))?n[a]=s:n[a]=cloneStyle(s)}return n};var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(n(191));var o=Array.isArray},function(t,e,n){"use strict";n.r(e),function(t,r){var i,o=n(223);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var a=Object(o.a)(i);e.default=a}.call(this,n(25),n(435)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});t.CSS;e.default=function(t){return t}}).call(this,n(25))},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n="2f1acc6c3a606b082e5eef5e54414ffb";null==t[n]&&(t[n]=0),e.default=t[n]++}).call(this,n(25))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return t.createGenerateClassName&&(this.options.createGenerateClassName=t.createGenerateClassName,this.generateClassName=t.createGenerateClassName()),null!=t.insertionPoint&&(this.options.insertionPoint=t.insertionPoint),(t.virtual||t.Renderer)&&(this.options.Renderer=t.Renderer||(t.virtual?g.default:v.default)),t.plugins&&this.use.apply(this,t.plugins),this}},{key:"createStyleSheet",value:function createStyleSheet(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.index;"number"!=typeof n&&(n=0===f.default.index?0:f.default.index+1);var r=new s.default(t,i({},e,{jss:this,generateClassName:e.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r}},{key:"removeStyleSheet",value:function removeStyleSheet(t){return t.detach(),f.default.remove(t),this}},{key:"createRule",value:function createRule(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===t?"undefined":r(t))&&(n=e,e=t,t=void 0);var i=n;i.jss=this,i.Renderer=this.options.Renderer,i.generateClassName||(i.generateClassName=this.generateClassName),i.classes||(i.classes={});var o=(0,m.default)(t,e,i);return!i.selector&&o instanceof h.default&&(o.selector="."+i.generateClassName(o)),this.plugins.onProcessRule(o),o}},{key:"use",value:function use(){for(var t=this,e=arguments.length,n=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{indent:1},e=this.rules.toString(t);return e&&(e+="\n"),this.key+" {\n"+e+"}"}}]),KeyframesRule}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{indent:1},e=this.rules.toString(t);return e?this.key+" {\n"+e+"\n}":""}}]),ConditionalRule}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function defineProperties(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return t.substr(e,t.indexOf("{")-1)},function(t){if(t.type===c)return t.selectorText;if(t.type===p){var e=t.name;if(e)return"@keyframes "+e;var n=t.cssText;return"@"+l(n,n.indexOf("keyframes"))}return l(t.cssText)});function setSelector(t,e){return t.selectorText=e,t.selectorText===e}var h,d,m=u(function(){return document.head||document.getElementsByTagName("head")[0]}),v=(h=void 0,d=!1,function(t){var e={};h||(h=document.createElement("style"));for(var n=0;ne.index&&r.options.insertionPoint===e.insertionPoint)return r}return null}function findHighestSheet(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.attached&&r.options.insertionPoint===e.insertionPoint)return r}return null}function findCommentNode(t){for(var e=m(),n=0;n0){var n=findHigherSheet(e,t);if(n)return n.renderer.element;if(n=findHighestSheet(e,t))return n.renderer.element.nextElementSibling}var r=t.insertionPoint;if(r&&"string"==typeof r){var a=findCommentNode(r);if(a)return a.nextSibling;(0,i.default)("jss"===r,'[JSS] Insertion point "%s" not found.',r)}return null}function insertStyle(t,e){var n=e.insertionPoint,r=findPrevNode(e);if(r){var o=r.parentNode;o&&o.insertBefore(t,r)}else if(n&&"number"==typeof n.nodeType){var a=n,s=a.parentNode;s?s.insertBefore(t,a.nextSibling):(0,i.default)(!1,"[JSS] Insertion point is not in the DOM.")}else m().insertBefore(t,r)}var g=u(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),y=function(){function DomRenderer(t){_classCallCheck(this,DomRenderer),this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.getKey=f,this.getUnescapedKeysMap=v,this.hasInsertedRules=!1,t&&o.default.add(t),this.sheet=t;var e=this.sheet?this.sheet.options:{},n=e.media,r=e.meta,i=e.element;this.element=i||document.createElement("style"),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var a=g();a&&this.element.setAttribute("nonce",a)}return r(DomRenderer,[{key:"attach",value:function attach(){!this.element.parentNode&&this.sheet&&(this.hasInsertedRules&&(this.deploy(),this.hasInsertedRules=!1),insertStyle(this.element,this.sheet.options))}},{key:"detach",value:function detach(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function deploy(){this.sheet&&(this.element.textContent="\n"+this.sheet.toString()+"\n")}},{key:"insertRule",value:function insertRule(t,e){var n=this.element.sheet,r=n.cssRules,o=t.toString();if(e||(e=r.length),!o)return!1;try{n.insertRule(o,e)}catch(e){return(0,i.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",t),!1}return this.hasInsertedRules=!0,r[e]}},{key:"deleteRule",value:function deleteRule(t){var e=this.element.sheet,n=this.indexOf(t);return-1!==n&&(e.deleteRule(n),!0)}},{key:"indexOf",value:function indexOf(t){for(var e=this.element.sheet.cssRules,n=0;n-1}},function(t,e,n){var r=n(93);t.exports=function listCacheSet(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(92);t.exports=function stackClear(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function stackDelete(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function stackGet(t){return this.__data__.get(t)}},function(t,e){t.exports=function stackHas(t){return this.__data__.has(t)}},function(t,e,n){var r=n(92),i=n(141),o=n(143),a=200;t.exports=function stackSet(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(76),i=n(44),o=n(147),a=n(32);t.exports=function isIterateeCall(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){"use strict";e.byteLength=function byteLength(t){var e=getLens(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function toByteArray(t){for(var e,n=getLens(t),r=n[0],a=n[1],s=new o(_byteLength(t,r,a)),u=0,l=a>0?r-4:r,c=0;c>16&255,s[u++]=e>>8&255,s[u++]=255&e;2===a&&(e=i[t.charCodeAt(c)]<<2|i[t.charCodeAt(c+1)]>>4,s[u++]=255&e);1===a&&(e=i[t.charCodeAt(c)]<<10|i[t.charCodeAt(c+1)]<<4|i[t.charCodeAt(c+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e);return s},e.fromByteArray=function fromByteArray(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function _byteLength(t,e,n){return 3*(e+n)/4-n}function encodeChunk(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,p=n?i-1:0,f=n?-1:1,h=t[e+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+p],p+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+p],p+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=c?(s=0,a=c):a+p>=1?(s=(e*u-1)*Math.pow(2,i),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<0;t[n+h]=255&a,h+=d,a/=256,l-=8);t[n+h-d]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var r=n(518);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(157)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(246)(!1)).push([t.i,"/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */\n\n/* Tomorrow Comment */\n.hljs-comment,\n.hljs-quote {\n color: #8e908c;\n}\n\n/* Tomorrow Red */\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag,\n.hljs-name,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-regexp,\n.hljs-deletion {\n color: #c82829;\n}\n\n/* Tomorrow Orange */\n.hljs-number,\n.hljs-built_in,\n.hljs-builtin-name,\n.hljs-literal,\n.hljs-type,\n.hljs-params,\n.hljs-meta,\n.hljs-link {\n color: #f5871f;\n}\n\n/* Tomorrow Yellow */\n.hljs-attribute {\n color: #eab700;\n}\n\n/* Tomorrow Green */\n.hljs-string,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-addition {\n color: #718c00;\n}\n\n/* Tomorrow Blue */\n.hljs-title,\n.hljs-section {\n color: #4271ae;\n}\n\n/* Tomorrow Purple */\n.hljs-keyword,\n.hljs-selector-tag {\n color: #8959a8;\n}\n\n.hljs {\n display: block;\n overflow-x: auto;\n background: white;\n color: #4d4d4c;\n padding: 0.5em;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n",""])},function(t,e,n){var r=n(520),i=n(542),o=n(214);t.exports=function baseMatches(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(140),i=n(209),o=1,a=2;t.exports=function baseIsMatch(t,e,n,s){var u=n.length,l=u,c=!s;if(null==t)return!l;for(t=Object(t);u--;){var p=n[u];if(c&&p[2]?p[1]!==t[p[0]]:!(p[0]in t))return!1}for(;++u-1?s[u?e[l]:l]:void 0}}},function(t,e,n){var r=n(560),i=n(149),o=n(561),a=Math.max;t.exports=function findIndex(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(t,i(e,3),u)}},function(t,e){t.exports=function baseFindIndex(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o\n \n \n Modal title\n \n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n \n \n \n \n',settings:{},evalInContext:o},{type:"code",content:"\n \n
\n \n
\n \n

The storage space is running out. Select a folder with adequate storage space and try again.

\n
\n
\n
\n \n \n \n \n
",settings:{},evalInContext:o},{type:"markdown",content:"### Sizes"},{type:"code",content:"const loremIpsum = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';\n\nconst openModal = (props) => (event) => {\n const { size } = { ...props };\n\n portal(({ onClose }) => (\n \n \n {loremIpsum}\n \n \n \n \n \n ));\n};\n\n\n \n Auto\n \n \n Extra Small\n \n \n Small\n \n \n Medium\n \n \n Large\n \n",settings:{},evalInContext:o},{type:"markdown",content:"### Nested modals"},{type:"code",content:'const openNestedModals = (props) => (event) => {\n portal(({ onClose }) => (\n \n \n \n Modal title\n \n \n \n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n \n \n \n Cancel\n \n {\n portal(({ onClose }) => (\n \n \n \n Delete item\n \n \n \n Are you sure you want to delete this item?\n \n \n \n No\n \n \n Yes\n \n \n \n ));\n }}\n >\n Delete\n \n \n \n ));\n};\n\n\n Launch Modal\n',settings:{},evalInContext:o}]},function(t,e){t.exports=function requireInRuntime(t,e){if(!(e in t))throw new Error('require() statements can be added only by editing a Markdown example file: require("'+e+'")');return t[e]}},function(t,e){t.exports=function evalInContext(t,e,n){return new Function("require","state","setState",t+n).bind(null,e)}},function(t,e,n){"use strict";n.r(e);n(426),n(427),n(429);var r=n(77).a.createStyleSheet({body:{isolate:!1,margin:0,padding:0,minWidth:0,maxWidth:"100%",border:0}}).attach().classes.body;document.body.classList.add(r);var i=n(24),o=n.n(i),a=n(1),s=n.n(a),u=n(0),l=n.n(u),c=n(3);function EditorLoaderRenderer(t){var e=t.classes;return s.a.createElement("div",{className:e.root},"Loading…")}EditorLoaderRenderer.propTypes={classes:l.a.object.isRequired};var p=Object(c.a)(function styles(t){var e=t.fontFamily,n=t.color,r=t.space,i=t.fontSize;return{root:{padding:[[r[1],r[2],r[1],r[1]]],fontFamily:e.base,fontSize:i.small,color:n.light,backgroundColor:n.codeBackground}}})(EditorLoaderRenderer),f=function(){function defineProperties(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,n=t.slug,r=t.example,i=t.anchor,o=t.isolated,a=t.nochrome,s=t.absolute,u=t.hashPath,l=t.id,c=t.takeHash,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location,f=p.origin,h=p.pathname,d=p.hash,m=h;return c&&(d.indexOf("?")>-1?m+=d.substring(0,d.indexOf("?")):m+=d),a&&(m+="?nochrome"),i?m+="#"+n:(o||a)&&(m+="#!/"+e),u&&(l||(u=[].concat(_toConsumableArray(u),[e])),m+="#/"+u.join("/")),l&&(m+="?id="+n),void 0!==r&&(m+="/"+r),s?f+m:m}var N=function IsolateButton(t){var e=t.name,n=t.example;return t.isolated?s.a.createElement(M,{href:getUrl({anchor:!0,slug:"/"}),title:"Show all components"},s.a.createElement(j.a,null)):s.a.createElement(M,{href:getUrl({name:e,example:n,isolated:!0}),title:"Open isolated"},s.a.createElement(P.a,null))};N.propTypes={name:l.a.string.isRequired,example:l.a.number,isolated:l.a.bool};var I=N;function TabButtonRenderer(t){var e,n,r,i=t.classes,o=t.name,a=t.className,u=t.onClick,l=t.active,c=t.children,p=R()(i.button,a,(e={},n=i.isActive,r=l,n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e));return s.a.createElement("button",{type:"button",name:o,className:p,onClick:u},c)}TabButtonRenderer.propTypes={classes:l.a.object.isRequired,name:l.a.string,className:l.a.string,onClick:l.a.func,active:l.a.bool,children:l.a.node};var L=Object(c.a)(function styles(t){var e=t.space,n=t.color,r=t.fontFamily,i=t.fontSize,o=t.buttonTextTransform;return{button:{padding:[[e[1],0]],fontFamily:r.base,fontSize:i.base,color:n.light,background:"transparent",textTransform:o,transition:"color 750ms ease-out",border:"none",cursor:"pointer","&:hover, &:focus":{isolate:!1,outline:0,color:n.linkHover,transition:"color 150ms ease-in"},"&:focus:not($isActive)":{isolate:!1,outline:[[1,"dotted",n.linkHover]]},"& + &":{isolate:!1,marginLeft:e[1]}},isActive:{borderBottom:[[2,n.linkHover,"solid"]]}}})(TabButtonRenderer),A=function CodeTabButton(t){return s.a.createElement(L,t,"View Code")};A.propTypes={onClick:l.a.func.isRequired,name:l.a.string.isRequired,active:l.a.bool};var D=A,F=function UsageTabButton(t){var e=t.props;return!E()(e.props)||!E()(e.methods)?s.a.createElement(L,t,"Props & methods"):null};F.propTypes={onClick:l.a.func.isRequired,name:l.a.string.isRequired,props:l.a.shape({props:l.a.array,methods:l.a.array}).isRequired,active:l.a.bool};var U=F,B="rsg-code-editor",V="rsg-usage",W=function(){var t=[I];return{sectionToolbar:t,componentToolbar:t,exampleToolbar:t,exampleTabButtons:[{id:B,render:D}],exampleTabs:[{id:B,render:h}],docsTabButtons:[{id:V,render:U}],docsTabs:[{id:V,render:Usage}]}},z=n(108),q=n(235),H=n.n(q),K="#/",J=/(.*)\?/;function trimHash(t,e){if(!t)return"";var n=new RegExp("^"+H()(e||K),"g");return t.replace(n,"")}var X=function trimParams(t){var e=J.exec(t);return e&&e[1]||t},Z=function hasInHash(t,e){return""!==t&&t.indexOf(e)>-1},Q=function getHash(t,e){return decodeURIComponent(X(trimHash(t,e)))},G=function getHashAsArray(t,e){return Q(t,e).split("/")},Y=function getParameterByName(t,e){e=e.replace(/[[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null};function ComponentsListRenderer(t){var e=t.classes,n=t.items;if(!(n=n.filter(function(t){return t.visibleName})).length)return null;var r=window.location.pathname+Q(window.location.hash);return s.a.createElement("ul",{className:e.list},n.map(function(t){var n=t.heading,i=t.visibleName,o=t.href,a=t.content,u=t.external,l=Z(r,o);return s.a.createElement("li",{className:R()(e.item,(!a||!a.props.items.length)&&e.isChild,l&&e.isSelected),key:o},s.a.createElement(z.a,{className:R()(n&&e.heading),href:o,target:u?"_blank":void 0},i),a)}))}ComponentsListRenderer.propTypes={items:l.a.array.isRequired,classes:l.a.object.isRequired};var $=Object(c.a)(function styles(t){var e,n,r,i=t.color,o=t.fontFamily,a=t.fontSize,s=t.space,u=t.mq;return{list:{margin:0,paddingLeft:s[2]},item:{color:i.base,display:"block",margin:[[s[1],0,s[1],0]],fontFamily:o.base,fontSize:a.base,listStyle:"none",overflow:"hidden",textOverflow:"ellipsis"},isChild:(e={},n=u.small,r={display:"inline-block",margin:[[0,s[1],0,0]]},n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e),heading:{color:i.base,marginTop:s[1],fontFamily:o.base,fontWeight:"bold"},isSelected:{fontWeight:"bold"}}})(ComponentsListRenderer),tt=Object.assign||function(t){for(var e=1;e0||t.sections.length>0||n.test(t.name)})}var it=function(){function defineProperties(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t.map(function(t){var o=[].concat(TableOfContents_toConsumableArray(t.sections||[]),TableOfContents_toConsumableArray(t.components||[])),a=t.sectionDepth||0,s=0===a&&i?r:[].concat(TableOfContents_toConsumableArray(r),[t.name]);return Object.assign({},t,{heading:!!t.name&&o.length>0,content:o.length>0&&n.renderLevel(o,e,s,0===a)})});return s.a.createElement(et,{items:o,hashPath:r,useHashId:i,useRouterLinks:e})}},{key:"renderSections",value:function renderSections(){var t=this.state.searchTerm,e=this.props,n=e.sections,r=e.useRouterLinks,i=filterSectionsByName(1===n.length?n[0].components:n,t);return this.renderLevel(i,r)}},{key:"render",value:function render(){var t=this,e=this.state.searchTerm;return s.a.createElement(nt,{searchTerm:e,onSearchTermChange:function onSearchTermChange(e){return t.setState({searchTerm:e})}},this.renderSections())}}]),TableOfContents}();ot.propTypes={sections:l.a.array.isRequired,useRouterLinks:l.a.bool};var at=ot;function LogoRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("h1",{className:e.logo},n)}LogoRenderer.propTypes={classes:l.a.object.isRequired,children:l.a.node};var st=Object(c.a)(function styles(t){var e=t.color,n=t.fontFamily,r=t.fontSize;return{logo:{color:e.base,margin:0,fontFamily:n.base,fontSize:r.h4,fontWeight:"normal"}}})(LogoRenderer);function RibbonRenderer(t){var e=t.classes,n=t.url,r=t.text;return s.a.createElement("div",{className:e.root},s.a.createElement("a",{href:n,className:e.link},r))}RibbonRenderer.defaultProps={text:"Fork me on GitHub"},RibbonRenderer.propTypes={classes:l.a.object.isRequired,url:l.a.string.isRequired,text:l.a.string};var ut=Object(c.a)(function styles(t){var e=t.color,n=t.space,r=t.fontSize;return{root:{position:"fixed",top:0,right:0,width:149,height:149,zIndex:999},link:{fontFamily:t.fontFamily.base,position:"relative",right:-37,top:-22,display:"block",width:190,padding:[[n[0],n[2]]],textAlign:"center",color:e.ribbonText,fontSize:r.base,background:e.ribbonBackground,textDecoration:"none",textShadow:[[0,"-1px",0,"rgba(0,0,0,.15)"]],transformOrigin:[[0,0]],transform:"rotate(45deg)",cursor:"pointer"}}})(RibbonRenderer);function Ribbon(t,e){var n=e.config.ribbon;return n?s.a.createElement(ut,n):null}Ribbon.contextTypes={config:l.a.object};function VersionRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("p",{"aria-label":"version",className:e.version},n)}VersionRenderer.propTypes={classes:l.a.object.isRequired,children:l.a.node};var lt=Object(c.a)(function styles(t){var e=t.color,n=t.fontFamily,r=t.fontSize;return{version:{color:e.light,margin:[[5,0,0,0]],fontFamily:n.base,fontSize:r.base,fontWeight:"normal"}}})(VersionRenderer);function StyleGuideRenderer_defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function StyleGuideRenderer(t){var e=t.classes,n=t.title,r=t.version,i=t.homepageUrl,o=t.children,a=t.toc,u=t.hasSidebar;return s.a.createElement("div",{className:R()(e.root,u&&e.hasSidebar)},s.a.createElement("main",{className:e.content},o,s.a.createElement("footer",{className:e.footer},s.a.createElement(m.a,{text:"Generated with [React Styleguidist]("+i+")"}))),u&&s.a.createElement("div",{className:e.sidebar},s.a.createElement("div",{className:e.logo},s.a.createElement(st,null,n),r&&s.a.createElement(lt,null,r)),a),s.a.createElement(Ribbon,null))}StyleGuideRenderer.propTypes={classes:l.a.object.isRequired,title:l.a.string.isRequired,version:l.a.string,homepageUrl:l.a.string.isRequired,children:l.a.node.isRequired,toc:l.a.node.isRequired,hasSidebar:l.a.bool};var ct=Object(c.a)(function styles(t){var e,n=t.color,r=t.fontFamily,i=t.fontSize,o=t.sidebarWidth,a=t.mq,s=t.space,u=t.maxWidth;return{root:{minHeight:"100vh",backgroundColor:n.baseBackground},hasSidebar:StyleGuideRenderer_defineProperty({paddingLeft:o},a.small,{paddingLeft:0}),content:(e={maxWidth:u,padding:[[s[2],s[4]]],margin:[[0,"auto"]]},StyleGuideRenderer_defineProperty(e,a.small,{padding:s[2]}),StyleGuideRenderer_defineProperty(e,"display","block"),e),sidebar:StyleGuideRenderer_defineProperty({backgroundColor:n.sidebarBackground,border:[[n.border,"solid"]],borderWidth:[[0,1,0,0]],position:"fixed",top:0,left:0,bottom:0,width:o,overflow:"auto",WebkitOverflowScrolling:"touch"},a.small,{position:"static",width:"auto",borderWidth:[[1,0,0,0]],paddingBottom:s[0]}),logo:{padding:s[2],borderBottom:[[1,n.border,"solid"]]},footer:{display:"block",color:n.light,fontFamily:r.base,fontSize:i.small}}})(StyleGuideRenderer);function componentWillMount(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function componentWillReceiveProps(t){this.setState(function updater(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function componentWillUpdate(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var pt=n(218),ft=n.n(pt);function PlaygroundErrorRenderer(t){var e=t.classes,n=t.message;return s.a.createElement("pre",{className:e.root},n)}PlaygroundErrorRenderer.propTypes={classes:l.a.object.isRequired,message:l.a.string.isRequired};var ht=Object(c.a)(function styles(t){var e=t.fontFamily,n=t.fontSize,r=t.color;return{root:{margin:0,lineHeight:1.2,fontSize:n.small,fontFamily:e.monospace,color:r.error,whiteSpace:"pre-wrap"}}})(PlaygroundErrorRenderer),dt=n(236),mt=function(){function defineProperties(t,e){for(var n=0;nt)return!1;if((n+=e[r+1])>=t)return!0}}function isIdentifierStart(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Ct.test(String.fromCharCode(t)):!1!==e&&isInAstralSet(t,kt)))}function isIdentifierChar(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Et.test(String.fromCharCode(t)):!1!==e&&(isInAstralSet(t,kt)||isInAstralSet(t,Pt)))))}var Ot=function TokenType(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function binop(t,e){return new Ot(t,{beforeExpr:!0,binop:e})}var jt={beforeExpr:!0},Tt={startsExpr:!0},Rt={};function kw(t,e){return void 0===e&&(e={}),e.keyword=t,Rt[t]=new Ot(t,e)}var Mt={num:new Ot("num",Tt),regexp:new Ot("regexp",Tt),string:new Ot("string",Tt),name:new Ot("name",Tt),eof:new Ot("eof"),bracketL:new Ot("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ot("]"),braceL:new Ot("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ot("}"),parenL:new Ot("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ot(")"),comma:new Ot(",",jt),semi:new Ot(";",jt),colon:new Ot(":",jt),dot:new Ot("."),question:new Ot("?",jt),arrow:new Ot("=>",jt),template:new Ot("template"),invalidTemplate:new Ot("invalidTemplate"),ellipsis:new Ot("...",jt),backQuote:new Ot("`",Tt),dollarBraceL:new Ot("${",{beforeExpr:!0,startsExpr:!0}),eq:new Ot("=",{beforeExpr:!0,isAssign:!0}),assign:new Ot("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ot("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ot("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new Ot("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new Ot("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",jt),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",jt),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",jt),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",Tt),_if:kw("if"),_return:kw("return",jt),_switch:kw("switch"),_throw:kw("throw",jt),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",Tt),_super:kw("super",Tt),_class:kw("class",Tt),_extends:kw("extends",jt),_export:kw("export"),_import:kw("import"),_null:kw("null",Tt),_true:kw("true",Tt),_false:kw("false",Tt),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Nt=/\r\n?|\n|\u2028|\u2029/,It=new RegExp(Nt.source,"g");function isNewLine(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var Lt=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,At=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Dt=Object.prototype,Ft=Dt.hasOwnProperty,Ut=Dt.toString;function has(t,e){return Ft.call(t,e)}var Bt=Array.isArray||function(t){return"[object Array]"===Ut.call(t)},Vt=function Position(t,e){this.line=t,this.column=e};Vt.prototype.offset=function offset(t){return new Vt(this.line,this.column+t)};var Wt=function SourceLocation(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function getLineInfo(t,e){for(var n=1,r=0;;){It.lastIndex=r;var i=It.exec(t);if(!(i&&i.index=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),Bt(e.onToken)){var r=e.onToken;e.onToken=function(t){return r.push(t)}}return Bt(e.onComment)&&(e.onComment=pushComment(e,e.onComment)),e}function pushComment(t,e){return function(n,r,i,o,a,s){var u={type:n?"Block":"Line",value:r,start:i,end:o};t.locations&&(u.loc=new Wt(this,a,s)),t.ranges&&(u.range=[i,o]),e.push(u)}}var qt={};function keywordRegexp(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var Ht=function Parser(t,e,n){this.options=t=getOptions(t),this.sourceFile=t.sourceFile,this.keywords=keywordRegexp(_t[t.ecmaVersion>=6?6:5]);var r="";if(!t.allowReserved){for(var i=t.ecmaVersion;!(r=yt[i]);i--);"module"===t.sourceType&&(r+=" await")}this.reservedWords=keywordRegexp(r);var o=(r?r+" ":"")+yt.strict;this.reservedWordsStrict=keywordRegexp(o),this.reservedWordsStrictBind=keywordRegexp(o+" "+yt.strictBind),this.input=String(e),this.containsEsc=!1,this.loadPlugins(t.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Nt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Mt.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterFunctionScope(),this.regexpState=null};Ht.prototype.isKeyword=function isKeyword(t){return this.keywords.test(t)},Ht.prototype.isReservedWord=function isReservedWord(t){return this.reservedWords.test(t)},Ht.prototype.extend=function extend(t,e){this[t]=e(this[t])},Ht.prototype.loadPlugins=function loadPlugins(t){for(var e in t){var n=qt[e];if(!n)throw new Error("Plugin '"+e+"' not found");n(this,t[e])}},Ht.prototype.parse=function parse(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};var Kt=Ht.prototype,Jt=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)"|;)/;function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Kt.strictDirective=function(t){for(;;){At.lastIndex=t,t+=At.exec(this.input)[0].length;var e=Jt.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2]))return!0;t+=e[0].length}},Kt.eat=function(t){return this.type===t&&(this.next(),!0)},Kt.isContextual=function(t){return this.type===Mt.name&&this.value===t&&!this.containsEsc},Kt.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Kt.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Kt.canInsertSemicolon=function(){return this.type===Mt.eof||this.type===Mt.braceR||Nt.test(this.input.slice(this.lastTokEnd,this.start))},Kt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Kt.semicolon=function(){this.eat(Mt.semi)||this.insertSemicolon()||this.unexpected()},Kt.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Kt.expect=function(t){this.eat(t)||this.unexpected()},Kt.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},Kt.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},Kt.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,r=t.doubleProto;if(!e)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},Kt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var Zt={kind:"loop"},Qt={kind:"switch"};Xt.isLet=function(){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;At.lastIndex=this.pos;var t=At.exec(this.input),e=this.pos+t[0].length,n=this.input.charCodeAt(e);if(91===n||123===n)return!0;if(isIdentifierStart(n,!0)){for(var r=e+1;isIdentifierChar(this.input.charCodeAt(r),!0);)++r;var i=this.input.slice(e,r);if(!xt.test(i))return!0}return!1},Xt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;At.lastIndex=this.pos;var t=At.exec(this.input),e=this.pos+t[0].length;return!(Nt.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!==this.input.length&&isIdentifierChar(this.input.charAt(e+8)))},Xt.parseStatement=function(t,e,n){var r,i=this.type,o=this.startNode();switch(this.isLet()&&(i=Mt._var,r="let"),i){case Mt._break:case Mt._continue:return this.parseBreakContinueStatement(o,i.keyword);case Mt._debugger:return this.parseDebuggerStatement(o);case Mt._do:return this.parseDoStatement(o);case Mt._for:return this.parseForStatement(o);case Mt._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1);case Mt._class:return t||this.unexpected(),this.parseClass(o,!0);case Mt._if:return this.parseIfStatement(o);case Mt._return:return this.parseReturnStatement(o);case Mt._switch:return this.parseSwitchStatement(o);case Mt._throw:return this.parseThrowStatement(o);case Mt._try:return this.parseTryStatement(o);case Mt._const:case Mt._var:return r=r||this.value,t||"var"===r||this.unexpected(),this.parseVarStatement(o,r);case Mt._while:return this.parseWhileStatement(o);case Mt._with:return this.parseWithStatement(o);case Mt.braceL:return this.parseBlock();case Mt.semi:return this.parseEmptyStatement(o);case Mt._export:case Mt._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===Mt._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return t||this.unexpected(),this.next(),this.parseFunctionStatement(o,!0);var a=this.value,s=this.parseExpression();return i===Mt.name&&"Identifier"===s.type&&this.eat(Mt.colon)?this.parseLabeledStatement(o,a,s):this.parseExpressionStatement(o,s)}},Xt.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(Mt.semi)||this.insertSemicolon()?t.label=null:this.type!==Mt.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(Mt.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},Xt.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Zt),this.enterLexicalScope(),this.expect(Mt.parenL),this.type===Mt.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===Mt._var||this.type===Mt._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===Mt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(e>-1&&this.unexpected(e),this.parseFor(t,r)):(this.options.ecmaVersion>=9&&(this.type===Mt._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,r))}var o=new DestructuringErrors,a=this.parseExpression(!0,o);return this.type===Mt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Mt._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,o),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(o,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))},Xt.parseFunctionStatement=function(t,e){return this.next(),this.parseFunction(t,!0,!1,e)},Xt.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!this.strict&&this.type===Mt._function),t.alternate=this.eat(Mt._else)?this.parseStatement(!this.strict&&this.type===Mt._function):null,this.finishNode(t,"IfStatement")},Xt.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Mt.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},Xt.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(Mt.braceL),this.labels.push(Qt),this.enterLexicalScope();for(var n=!1;this.type!==Mt.braceR;)if(this.type===Mt._case||this.type===Mt._default){var r=this.type===Mt._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(Mt.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(!0));return this.exitLexicalScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},Xt.parseThrowStatement=function(t){return this.next(),Nt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Gt=[];Xt.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===Mt._catch){var e=this.startNode();this.next(),this.eat(Mt.parenL)?(e.param=this.parseBindingAtom(),this.enterLexicalScope(),this.checkLVal(e.param,"let"),this.expect(Mt.parenR)):(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterLexicalScope()),e.body=this.parseBlock(!1),this.exitLexicalScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(Mt._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},Xt.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},Xt.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Zt),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},Xt.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},Xt.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},Xt.parseLabeledStatement=function(t,e,n){for(var r=0,i=this.labels;r=0;a--){var s=this.labels[a];if(s.statementStart!==t.start)break;s.statementStart=this.start,s.kind=o}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(!0),("ClassDeclaration"===t.body.type||"VariableDeclaration"===t.body.type&&"var"!==t.body.kind||"FunctionDeclaration"===t.body.type&&(this.strict||t.body.generator||t.body.async))&&this.raiseRecoverable(t.body.start,"Invalid labeled declaration"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},Xt.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},Xt.parseBlock=function(t){void 0===t&&(t=!0);var e=this.startNode();for(e.body=[],this.expect(Mt.braceL),t&&this.enterLexicalScope();!this.eat(Mt.braceR);){var n=this.parseStatement(!0);e.body.push(n)}return t&&this.exitLexicalScope(),this.finishNode(e,"BlockStatement")},Xt.parseFor=function(t,e){return t.init=e,this.expect(Mt.semi),t.test=this.type===Mt.semi?null:this.parseExpression(),this.expect(Mt.semi),t.update=this.type===Mt.parenR?null:this.parseExpression(),this.expect(Mt.parenR),this.exitLexicalScope(),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},Xt.parseForIn=function(t,e){var n=this.type===Mt._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"===n&&("AssignmentPattern"===e.type||"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(this.strict||"Identifier"!==e.declarations[0].id.type))&&this.raise(e.start,"Invalid assignment in for-in loop head"),t.left=e,t.right="ForInStatement"===n?this.parseExpression():this.parseMaybeAssign(),this.expect(Mt.parenR),this.exitLexicalScope(),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,n)},Xt.parseVar=function(t,e,n){for(t.declarations=[],t.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(Mt.eq)?r.init=this.parseMaybeAssign(e):"const"!==n||this.type===Mt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||e&&(this.type===Mt._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(Mt.comma))break}return t},Xt.parseVarId=function(t,e){t.id=this.parseBindingAtom(e),this.checkLVal(t.id,e,!1)},Xt.parseFunction=function(t,e,n,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(t.generator=this.eat(Mt.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&&(t.id="nullableID"===e&&this.type!==Mt.name?null:this.parseIdent(),t.id&&this.checkLVal(t.id,this.inModule&&!this.inFunction?"let":"var"));var i=this.inGenerator,o=this.inAsync,a=this.yieldPos,s=this.awaitPos,u=this.inFunction;return this.inGenerator=t.generator,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),e||(t.id=this.type===Mt.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n),this.inGenerator=i,this.inAsync=o,this.yieldPos=a,this.awaitPos=s,this.inFunction=u,this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},Xt.parseFunctionParams=function(t){this.expect(Mt.parenL),t.params=this.parseBindingList(Mt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Xt.parseClass=function(t,e){this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),r=!1;for(n.body=[],this.expect(Mt.braceL);!this.eat(Mt.braceR);){var i=this.parseClassMember(n);i&&"MethodDefinition"===i.type&&"constructor"===i.kind&&(r&&this.raise(i.start,"Duplicate constructor in the same class"),r=!0)}return t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},Xt.parseClassMember=function(t){var e=this;if(this.eat(Mt.semi))return null;var n=this.startNode(),r=function(t,r){void 0===r&&(r=!1);var i=e.start,o=e.startLoc;return!!e.eatContextual(t)&&(!(e.type===Mt.parenL||r&&e.canInsertSemicolon())||(n.key&&e.unexpected(),n.computed=!1,n.key=e.startNodeAt(i,o),n.key.name=t,e.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(Mt.star),o=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(o=!0,i=this.options.ecmaVersion>=9&&this.eat(Mt.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),o&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor"),this.parseClassMethod(t,n,i,o),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},Xt.parseClassMethod=function(t,e,n,r){e.value=this.parseMethod(n,r),t.body.push(this.finishNode(e,"MethodDefinition"))},Xt.parseClassId=function(t,e){t.id=this.type===Mt.name?this.parseIdent():!0===e?this.unexpected():null},Xt.parseClassSuper=function(t){t.superClass=this.eat(Mt._extends)?this.parseExprSubscripts():null},Xt.parseExport=function(t,e){if(this.next(),this.eat(Mt.star))return this.expectContextual("from"),this.type!==Mt.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(Mt._default)){var n;if(this.checkExport(e,"default",this.lastTokStart),this.type===Mt._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),t.declaration=this.parseFunction(r,"nullableID",!1,n)}else if(this.type===Mt._class){var i=this.startNode();t.declaration=this.parseClass(i,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(!0),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==Mt.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var o=0,a=t.specifiers;o=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=t.properties;r=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r,i=t.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var o=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===o&&(e.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),e.proto=!0);else{var a=e[r="$"+r];if(a)("init"===o?this.strict&&a.init||a.get||a.set:a.init||a[o])&&this.raiseRecoverable(i.start,"Redefinition of property");else a=e[r]={init:!1,get:!1,set:!1};a[o]=!0}}},$t.parseExpression=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===Mt.comma){var o=this.startNodeAt(n,r);for(o.expressions=[i];this.eat(Mt.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return i},$t.parseMaybeAssign=function(t,e,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1,o=-1;e?(i=e.parenthesizedAssign,o=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new DestructuringErrors,r=!0);var a=this.start,s=this.startLoc;this.type!==Mt.parenL&&this.type!==Mt.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(t,e);if(n&&(u=n.call(this,u,a,s)),this.type.isAssign){var l=this.startNodeAt(a,s);return l.operator=this.value,l.left=this.type===Mt.eq?this.toAssignable(u,!1,e):u,r||DestructuringErrors.call(e),e.shorthandAssign=-1,this.checkLVal(u),this.next(),l.right=this.parseMaybeAssign(t),this.finishNode(l,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),i>-1&&(e.parenthesizedAssign=i),o>-1&&(e.trailingComma=o),u},$t.parseMaybeConditional=function(t,e){var n=this.start,r=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(Mt.question)){var o=this.startNodeAt(n,r);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(Mt.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return i},$t.parseExprOps=function(t,e){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)?i:i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,t)},$t.parseExprOp=function(t,e,n,r,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==Mt._in)&&o>r){var a=this.type===Mt.logicalOR||this.type===Mt.logicalAND,s=this.value;this.next();var u=this.start,l=this.startLoc,c=this.parseExprOp(this.parseMaybeUnary(null,!1),u,l,o,i),p=this.buildBinary(e,n,t,c,s,a);return this.parseExprOp(p,e,n,r,i)}return t},$t.buildBinary=function(t,e,n,r,i,o){var a=this.startNodeAt(t,e);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,o?"LogicalExpression":"BinaryExpression")},$t.parseMaybeUnary=function(t,e){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),e=!0;else if(this.type.prefix){var o=this.startNode(),a=this.type===Mt.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),a?this.checkLVal(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):e=!0,n=this.finishNode(o,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,i);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!e&&this.eat(Mt.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},$t.parseExprSubscripts=function(t){var e=this.start,n=this.startLoc,r=this.parseExprAtom(t),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(t)||i)return r;var o=this.parseSubscripts(r,e,n);return t&&"MemberExpression"===o.type&&(t.parenthesizedAssign>=o.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=o.start&&(t.parenthesizedBind=-1)),o},$t.parseSubscripts=function(t,e,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(t.start,t.end),o=void 0;;)if((o=this.eat(Mt.bracketL))||this.eat(Mt.dot)){var a=this.startNodeAt(e,n);a.object=t,a.property=o?this.parseExpression():this.parseIdent(!0),a.computed=!!o,o&&this.expect(Mt.bracketR),t=this.finishNode(a,"MemberExpression")}else if(!r&&this.eat(Mt.parenL)){var s=new DestructuringErrors,u=this.yieldPos,l=this.awaitPos;this.yieldPos=0,this.awaitPos=0;var c=this.parseExprList(Mt.parenR,this.options.ecmaVersion>=8,!1,s);if(i&&!this.canInsertSemicolon()&&this.eat(Mt.arrow))return this.checkPatternErrors(s,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=l,this.parseArrowExpression(this.startNodeAt(e,n),c,!0);this.checkExpressionErrors(s,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=l||this.awaitPos;var p=this.startNodeAt(e,n);p.callee=t,p.arguments=c,t=this.finishNode(p,"CallExpression")}else{if(this.type!==Mt.backQuote)return t;var f=this.startNodeAt(e,n);f.tag=t,f.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(f,"TaggedTemplateExpression")}},$t.parseExprAtom=function(t){var e,n=this.potentialArrowAt===this.start;switch(this.type){case Mt._super:return this.inFunction||this.raise(this.start,"'super' outside of function or class"),e=this.startNode(),this.next(),this.type!==Mt.dot&&this.type!==Mt.bracketL&&this.type!==Mt.parenL&&this.unexpected(),this.finishNode(e,"Super");case Mt._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case Mt.name:var r=this.start,i=this.startLoc,o=this.containsEsc,a=this.parseIdent(this.type!==Mt.name);if(this.options.ecmaVersion>=8&&!o&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(Mt._function))return this.parseFunction(this.startNodeAt(r,i),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(Mt.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===Mt.name&&!o)return a=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(Mt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[a],!0)}return a;case Mt.regexp:var s=this.value;return(e=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},e;case Mt.num:case Mt.string:return this.parseLiteral(this.value);case Mt._null:case Mt._true:case Mt._false:return(e=this.startNode()).value=this.type===Mt._null?null:this.type===Mt._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case Mt.parenL:var u=this.start,l=this.parseParenAndDistinguishExpression(n);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),l;case Mt.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(Mt.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case Mt.braceL:return this.parseObj(!1,t);case Mt._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case Mt._class:return this.parseClass(this.startNode(),!1);case Mt._new:return this.parseNew();case Mt.backQuote:return this.parseTemplate();default:this.unexpected()}},$t.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},$t.parseParenExpression=function(){this.expect(Mt.parenL);var t=this.parseExpression();return this.expect(Mt.parenR),t},$t.parseParenAndDistinguishExpression=function(t){var e,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,s=this.startLoc,u=[],l=!0,c=!1,p=new DestructuringErrors,f=this.yieldPos,h=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Mt.parenR;){if(l?l=!1:this.expect(Mt.comma),i&&this.afterTrailingComma(Mt.parenR,!0)){c=!0;break}if(this.type===Mt.ellipsis){o=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===Mt.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var d=this.start,m=this.startLoc;if(this.expect(Mt.parenR),t&&!this.canInsertSemicolon()&&this.eat(Mt.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=h,this.parseParenArrowList(n,r,u);u.length&&!c||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=h||this.awaitPos,u.length>1?((e=this.startNodeAt(a,s)).expressions=u,this.finishNodeAt(e,"SequenceExpression",d,m)):e=u[0]}else e=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(n,r);return v.expression=e,this.finishNode(v,"ParenthesizedExpression")}return e},$t.parseParenItem=function(t){return t},$t.parseParenArrowList=function(t,e,n){return this.parseArrowExpression(this.startNodeAt(t,e),n)};var te=[];$t.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Mt.dot)){t.meta=e;var n=this.containsEsc;return t.property=this.parseIdent(!0),("target"!==t.property.name||n)&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(t.start,"new.target can only be used in functions"),this.finishNode(t,"MetaProperty")}var r=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(Mt.parenL)?t.arguments=this.parseExprList(Mt.parenR,this.options.ecmaVersion>=8,!1):t.arguments=te,this.finishNode(t,"NewExpression")},$t.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===Mt.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===Mt.backQuote,this.finishNode(n,"TemplateElement")},$t.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(n.quasis=[r];!r.tail;)this.type===Mt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Mt.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Mt.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},$t.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===Mt.name||this.type===Mt.num||this.type===Mt.string||this.type===Mt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Mt.star)&&!Nt.test(this.input.slice(this.lastTokEnd,this.start))},$t.parseObj=function(t,e){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(Mt.braceR);){if(r)r=!1;else if(this.expect(Mt.comma),this.afterTrailingComma(Mt.braceR))break;var o=this.parseProperty(t,e);t||this.checkPropClash(o,i,e),n.properties.push(o)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},$t.parseProperty=function(t,e){var n,r,i,o,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Mt.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===Mt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===Mt.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,e),this.type===Mt.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(i=this.start,o=this.startLoc),t||(n=this.eat(Mt.star)));var s=this.containsEsc;return this.parsePropertyName(a),!t&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(Mt.star),this.parsePropertyName(a,e)):r=!1,this.parsePropertyValue(a,t,n,r,i,o,e,s),this.finishNode(a,"Property")},$t.parsePropertyValue=function(t,e,n,r,i,o,a,s){if((n||r)&&this.type===Mt.colon&&this.unexpected(),this.eat(Mt.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Mt.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(n,r);else if(e||s||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===Mt.comma||this.type===Mt.braceR)this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?(this.checkUnreserved(t.key),t.kind="init",e?t.value=this.parseMaybeDefault(i,o,t.key):this.type===Mt.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,o,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var u="get"===t.kind?0:1;if(t.value.params.length!==u){var l=t.value.start;"get"===t.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}},$t.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(Mt.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(Mt.bracketR),t.key;t.computed=!1}return t.key=this.type===Mt.num||this.type===Mt.string?this.parseExprAtom():this.parseIdent(!0)},$t.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},$t.parseMethod=function(t,e){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,o=this.yieldPos,a=this.awaitPos,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.enterFunctionScope(),this.expect(Mt.parenL),n.params=this.parseBindingList(Mt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=o,this.awaitPos=a,this.inFunction=s,this.finishNode(n,"FunctionExpression")},$t.parseArrowExpression=function(t,e,n){var r=this.inGenerator,i=this.inAsync,o=this.yieldPos,a=this.awaitPos,s=this.inFunction;return this.enterFunctionScope(),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.inGenerator=!1,this.inAsync=t.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=o,this.awaitPos=a,this.inFunction=s,this.finishNode(t,"ArrowFunctionExpression")},$t.parseFunctionBody=function(t,e){var n=e&&this.type!==Mt.braceL,r=this.strict,i=!1;if(n)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);r&&!o||(i=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(t,!r&&!i&&!e&&this.isSimpleParamList(t.params)),t.body=this.parseBlock(!1),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=a}this.exitFunctionScope(),this.strict&&t.id&&this.checkLVal(t.id,"none"),this.strict=r},$t.isSimpleParamList=function(t){for(var e=0,n=t;e0;)e[n]=arguments[n+1];for(var r=0,i=e;r=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},ue.updateContext=function(t){var e,n=this.type;n.keyword&&t===Mt.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},Mt.parenR.updateContext=Mt.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===se.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},Mt.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?se.b_stat:se.b_expr),this.exprAllowed=!0},Mt.dollarBraceL.updateContext=function(){this.context.push(se.b_tmpl),this.exprAllowed=!0},Mt.parenL.updateContext=function(t){var e=t===Mt._if||t===Mt._for||t===Mt._with||t===Mt._while;this.context.push(e?se.p_stat:se.p_expr),this.exprAllowed=!0},Mt.incDec.updateContext=function(){},Mt._function.updateContext=Mt._class.updateContext=function(t){t.beforeExpr&&t!==Mt.semi&&t!==Mt._else&&(t!==Mt.colon&&t!==Mt.braceL||this.curContext()!==se.b_stat)?this.context.push(se.f_expr):this.context.push(se.f_stat),this.exprAllowed=!1},Mt.backQuote.updateContext=function(){this.curContext()===se.q_tmpl?this.context.pop():this.context.push(se.q_tmpl),this.exprAllowed=!1},Mt.star.updateContext=function(t){if(t===Mt._function){var e=this.context.length-1;this.context[e]===se.f_expr?this.context[e]=se.f_expr_gen:this.context[e]=se.f_gen}this.exprAllowed=!0},Mt.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==Mt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var le={$LONE:["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","Emoji_Modifier","Emoji_Modifier_Base","Emoji_Presentation","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],General_Category:["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],Script:["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Warang_Citi","Wara","Yi","Yiii","Zanabazar_Square","Zanb"]};Array.prototype.push.apply(le.$LONE,le.General_Category),le.gc=le.General_Category,le.sc=le.Script_Extensions=le.scx=le.Script;var ce=Ht.prototype,pe=function RegExpValidationState(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString$1(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function isSyntaxCharacter(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function isRegExpIdentifierStart(t){return isIdentifierStart(t,!0)||36===t||95===t}function isRegExpIdentifierPart(t){return isIdentifierChar(t,!0)||36===t||95===t||8204===t||8205===t}function isControlLetter(t){return t>=65&&t<=90||t>=97&&t<=122}function isCharacterClassEscape(t){return 100===t||68===t||115===t||83===t||119===t||87===t}function isUnicodePropertyNameCharacter(t){return isControlLetter(t)||95===t}function isUnicodePropertyValueCharacter(t){return isUnicodePropertyNameCharacter(t)||isDecimalDigit(t)}function isDecimalDigit(t){return t>=48&&t<=57}function isHexDigit(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function hexToInt(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function isOctalDigit(t){return t>=48&&t<=55}pe.prototype.reset=function reset(t,e,n){var r=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},pe.prototype.raise=function raise(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},pe.prototype.at=function at(t){var e=this.source,n=e.length;if(t>=n)return-1;var r=e.charCodeAt(t);return!this.switchU||r<=55295||r>=57344||t+1>=n?r:(r<<10)+e.charCodeAt(t+1)-56613888},pe.prototype.nextIndex=function nextIndex(t){var e=this.source,n=e.length;if(t>=n)return n;var r=e.charCodeAt(t);return!this.switchU||r<=55295||r>=57344||t+1>=n?t+1:t+2},pe.prototype.current=function current(){return this.at(this.pos)},pe.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},pe.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},pe.prototype.eat=function eat(t){return this.current()===t&&(this.advance(),!0)},ce.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,r=0;r-1&&this.raise(t.start,"Duplicate regular expression flag")}},ce.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},ce.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1},ce.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},ce.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},ce.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},ce.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},ce.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},ce.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!isSyntaxCharacter(e)&&(t.lastIntValue=e,t.advance(),!0)},ce.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!isSyntaxCharacter(n);)t.advance();return t.pos!==e},ce.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e)&&(t.advance(),!0)},ce.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},ce.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},ce.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=codePointToString$1(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=codePointToString$1(t.lastIntValue);return!0}return!1},ce.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),isRegExpIdentifierStart(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},ce.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),isRegExpIdentifierPart(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},ce.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},ce.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1},ce.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},ce.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},ce.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},ce.regexp_eatZero=function(t){return 48===t.current()&&!isDecimalDigit(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},ce.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},ce.regexp_eatControlLetter=function(t){var e=t.current();return!!isControlLetter(e)&&(t.lastIntValue=e%32,t.advance(),!0)},ce.regexp_eatRegExpUnicodeEscapeSequence=function(t){var e,n=t.pos;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var r=t.lastIntValue;if(t.switchU&&r>=55296&&r<=56319){var i=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=1024*(r-55296)+(o-56320)+65536,!0}t.pos=i,t.lastIntValue=r}return!0}if(t.switchU&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((e=t.lastIntValue)>=0&&e<=1114111))return!0;t.switchU&&t.raise("Invalid unicode escape"),t.pos=n}return!1},ce.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e)&&(t.lastIntValue=e,t.advance(),!0)},ce.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},ce.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(isCharacterClassEscape(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1},ce.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,n,r),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i),!0}return!1},ce.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){le.hasOwnProperty(e)&&-1!==le[e].indexOf(n)||t.raise("Invalid property name")},ce.regexp_validateUnicodePropertyNameOrValue=function(t,e){-1===le.$LONE.indexOf(e)&&t.raise("Invalid property name")},ce.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";isUnicodePropertyNameCharacter(e=t.current());)t.lastStringValue+=codePointToString$1(e),t.advance();return""!==t.lastStringValue},ce.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";isUnicodePropertyValueCharacter(e=t.current());)t.lastStringValue+=codePointToString$1(e),t.advance();return""!==t.lastStringValue},ce.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},ce.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},ce.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;!t.switchU||-1!==e&&-1!==n||t.raise("Invalid character class"),-1!==e&&-1!==n&&e>n&&t.raise("Range out of order in character class")}}},ce.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(99===n||isOctalDigit(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return 93!==r&&(t.lastIntValue=r,t.advance(),!0)},ce.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},ce.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!isDecimalDigit(e)&&95!==e)&&(t.lastIntValue=e%32,t.advance(),!0)},ce.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},ce.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;isDecimalDigit(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},ce.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;isHexDigit(n=t.current());)t.lastIntValue=16*t.lastIntValue+hexToInt(n),t.advance();return t.pos!==e},ce.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*n+t.lastIntValue:t.lastIntValue=8*e+n}else t.lastIntValue=e;return!0}return!1},ce.regexp_eatOctalDigit=function(t){var e=t.current();return isOctalDigit(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},ce.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var r=0;r>10),56320+(1023&t)))}he.next=function(){this.options.onToken&&this.options.onToken(new fe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},he.getToken=function(){return this.next(),new fe(this)},"undefined"!=typeof Symbol&&(he[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===Mt.eof,value:e}}}}),he.curContext=function(){return this.context[this.context.length-1]},he.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Mt.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},he.readToken=function(t){return isIdentifierStart(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},he.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},he.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(It.lastIndex=n;(t=It.exec(this.input))&&t.index8&&t<14||t>=5760&&Lt.test(String.fromCharCode(t))))break t;++this.pos}}},he.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)},he.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(Mt.ellipsis)):(++this.pos,this.finishToken(Mt.dot))},he.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(Mt.assign,2):this.finishOp(Mt.slash,1)},he.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,r=42===t?Mt.star:Mt.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++n,r=Mt.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(Mt.assign,n+1):this.finishOp(r,n)},he.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?Mt.logicalOR:Mt.logicalAND,2):61===e?this.finishOp(Mt.assign,2):this.finishOp(124===t?Mt.bitwiseOR:Mt.bitwiseAND,1)},he.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Mt.assign,2):this.finishOp(Mt.bitwiseXOR,1)},he.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Nt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Mt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(Mt.assign,2):this.finishOp(Mt.plusMin,1)},he.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(Mt.assign,n+1):this.finishOp(Mt.bitShift,n)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(n=2),this.finishOp(Mt.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},he.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(Mt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Mt.arrow)):this.finishOp(61===t?Mt.eq:Mt.prefix,1)},he.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Mt.parenL);case 41:return++this.pos,this.finishToken(Mt.parenR);case 59:return++this.pos,this.finishToken(Mt.semi);case 44:return++this.pos,this.finishToken(Mt.comma);case 91:return++this.pos,this.finishToken(Mt.bracketL);case 93:return++this.pos,this.finishToken(Mt.bracketR);case 123:return++this.pos,this.finishToken(Mt.braceL);case 125:return++this.pos,this.finishToken(Mt.braceR);case 58:return++this.pos,this.finishToken(Mt.colon);case 63:return++this.pos,this.finishToken(Mt.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Mt.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(Mt.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString(t)+"'")},he.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},he.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Nt.test(r)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===r)e=!0;else if("]"===r&&e)e=!1;else if("/"===r&&!e)break;t="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var o=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(o);var s=this.regexpState||(this.regexpState=new pe(this));s.reset(n,i,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var u=null;try{u=new RegExp(i,a)}catch(t){}return this.finishToken(Mt.regexp,{pattern:i,flags:a,value:u})},he.readInt=function(t,e){for(var n=this.pos,r=0,i=0,o=null==e?1/0:e;i=97?a-97+10:a>=65?a-65+10:a>=48&&a<=57?a-48:1/0)>=t)break;++this.pos,r=r*t+s}return this.pos===n||null!=e&&this.pos-n!==e?null:r},he.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Mt.num,e)},he.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10)||this.raise(e,"Invalid number");var n=this.pos-e>=2&&48===this.input.charCodeAt(e);n&&this.strict&&this.raise(e,"Invalid number"),n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(e,this.pos),o=n?parseInt(i,8):parseFloat(i);return this.finishToken(Mt.num,o)},he.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},he.readString=function(t){for(var e="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;92===r?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):(isNewLine(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(Mt.string,e)};var de={};he.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==de)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},he.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw de;this.raise(t,e)},he.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Mt.template&&this.type!==Mt.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(Mt.template,t)):36===n?(this.pos+=2,this.finishToken(Mt.dollarBraceL)):(++this.pos,this.finishToken(Mt.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(isNewLine(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},he.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),"0"===n&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return String.fromCharCode(e)}},he.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},he.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos"+t+";"},we=function(t){function StateHolder(){var t,e,n;ReactExample_classCallCheck(this,StateHolder);for(var r=arguments.length,i=Array(r),o=0;o0&&console.clear(),this.executeCode()}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(t,e){return this.state.error!==e.error||this.props.code!==t.code}},{key:"componentDidUpdate",value:function componentDidUpdate(t){this.props.code!==t.code&&this.executeCode()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.unmountPreview()}},{key:"unmountPreview",value:function unmountPreview(){this.mountNode&&o.a.unmountComponentAtNode(this.mountNode)}},{key:"executeCode",value:function executeCode(){var t=this;this.setState({error:null});var e=this.props.code;if(e){var n=s.a.createElement(Ce,{code:e,evalInContext:this.props.evalInContext,onError:this.handleError,compilerConfig:this.context.config.compilerConfig});window.requestAnimationFrame(function(){t.unmountPreview();try{o.a.render(n,t.mountNode)}catch(e){t.handleError(e)}})}}},{key:"render",value:function render(){var t=this,e=this.state.error;return s.a.createElement(ke,null,s.a.createElement("div",{ref:function ref(e){return t.mountNode=e}}),e&&s.a.createElement(ht,{message:e}))}}]),Preview}();Pe.propTypes={code:l.a.string.isRequired,evalInContext:l.a.func.isRequired},Pe.contextTypes={config:l.a.object.isRequired,codeRevision:l.a.number.isRequired};var Oe=Pe,je=n(68),Te=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function PlaygroundRenderer(t){var e=t.classes,n=t.name,r=t.preview,i=t.previewProps,o=t.tabButtons,a=t.tabBody,u=t.toolbar,l=i.className,c=_objectWithoutProperties(i,["className"]);return s.a.createElement("div",{className:e.root},s.a.createElement("div",Re({className:R()(e.preview,l)},c,{"data-preview":n}),r),s.a.createElement("div",{className:e.controls},s.a.createElement("div",{className:e.tabs},o),s.a.createElement("div",{className:e.toolbar},u)),s.a.createElement("div",{className:e.tab},a))}PlaygroundRenderer.propTypes={classes:l.a.object.isRequired,name:l.a.string.isRequired,preview:l.a.node.isRequired,previewProps:l.a.object.isRequired,tabButtons:l.a.node.isRequired,tabBody:l.a.node.isRequired,toolbar:l.a.node.isRequired};var Me=Object(c.a)(function styles(t){var e=t.space,n=t.color,r=t.borderRadius;return{root:{marginBottom:e[4]},preview:{padding:e[2],border:[[1,n.border,"solid"]],borderRadius:r,width:"100%",display:"inline-block"},controls:{display:"flex",alignItems:"center"},toolbar:{marginLeft:"auto"},tab:{}}})(PlaygroundRenderer),Ne=Object.freeze({all:"all",section:"section",component:"component",example:"example",notFound:"notFound"}),Ie=Object.freeze({hide:"hide",collapse:"collapse",expand:"expand"}),Le=Object.freeze({hide:"hide",collapse:"collapse",expand:"expand"}),Ae=function(){function defineProperties(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function SectionHeading(t){var e=t.slotName,n=t.slotProps,r=t.children,i=t.id,o=t.pagePerSection,a=SectionHeading_objectWithoutProperties(t,["slotName","slotProps","children","id","pagePerSection"]),u=getUrl(o?{slug:i,id:1!==a.depth,takeHash:!0}:{slug:i,anchor:!0});return s.a.createElement(Ve,We({toolbar:s.a.createElement(Slot,{name:e,props:n}),id:i,href:u},a),r)}SectionHeading.propTypes={children:l.a.node,id:l.a.string.isRequired,slotName:l.a.string.isRequired,slotProps:l.a.object.isRequired,depth:l.a.number.isRequired,deprecated:l.a.bool,pagePerSection:l.a.bool};var ze=n(240),qe=n.n(ze),He=n(241),Ke=n.n(He);function PathlineRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("div",{className:e.pathline},n,s.a.createElement(M,{small:!0,className:e.copyButton,onClick:function onClick(){return qe()(n)},title:"Copy to clipboard"},s.a.createElement(Ke.a,null)))}PathlineRenderer.propTypes={classes:l.a.object.isRequired,children:l.a.string};var Je=Object(c.a)(function styles(t){var e=t.space,n=t.fontFamily,r=t.fontSize,i=t.color;return{pathline:{fontFamily:n.monospace,fontSize:r.small,color:i.light,wordBreak:"break-all"},copyButton:{marginLeft:e[0]}}})(PathlineRenderer);function ReactComponentRenderer(t){var e=t.classes,n=t.name,r=t.heading,i=t.pathLine,o=t.description,a=t.docs,u=t.examples,l=t.tabButtons,c=t.tabBody;return s.a.createElement("div",{className:e.root,id:n+"-container"},s.a.createElement("header",{className:e.header},r,i&&s.a.createElement(Je,null,i)),(o||a)&&s.a.createElement("div",{className:e.docs},o,a),l&&s.a.createElement("div",{className:e.tabs},s.a.createElement("div",{className:e.tabButtons},l),s.a.createElement("div",{className:e.tabBody},c)),u)}ReactComponentRenderer.propTypes={classes:l.a.object.isRequired,name:l.a.string.isRequired,heading:l.a.node.isRequired,filepath:l.a.string,pathLine:l.a.string,tabButtons:l.a.node,tabBody:l.a.node,description:l.a.node,docs:l.a.node,examples:l.a.node,isolated:l.a.bool};var Xe=Object(c.a)(function styles(t){var e=t.color,n=t.fontSize,r=t.space;return{root:{marginBottom:r[6]},header:{marginBottom:r[3]},tabs:{marginBottom:r[3]},tabButtons:{marginBottom:r[2]},tabBody:{overflowX:"auto",maxWidth:"100%",WebkitOverflowScrolling:"touch"},docs:{color:e.base,fontSize:n.text}}})(ReactComponentRenderer),Ze=Object.assign||function(t){for(var e=1;e0?s.a.createElement(Examples,{examples:_,name:c,exampleMode:l}):s.a.createElement(Ge,{name:c}),tabButtons:S&&s.a.createElement(Slot,{name:"docsTabButtons",active:t,props:Ze({},o,{onClick:this.handleTabChange})}),tabBody:s.a.createElement(Slot,{name:"docsTabs",active:t,onlyActive:!0,props:o})})}}]),ReactComponent}();Ye.propTypes={component:l.a.object.isRequired,depth:l.a.number.isRequired,exampleMode:l.a.string.isRequired,usageMode:l.a.string.isRequired},Ye.contextTypes={config:l.a.object.isRequired,displayMode:l.a.string};var $e=Ye;function ComponentsRenderer(t){var e=t.children;return s.a.createElement("div",null,e)}function Components(t){var e=t.components,n=t.depth,r=t.exampleMode,i=t.usageMode;return s.a.createElement(ComponentsRenderer,null,e.map(function(t){return s.a.createElement($e,{key:t.filepath,component:t,exampleMode:r,usageMode:i,depth:n})}))}ComponentsRenderer.propTypes={children:l.a.node.isRequired},Components.propTypes={components:l.a.array.isRequired,depth:l.a.number.isRequired,exampleMode:l.a.string.isRequired,usageMode:l.a.string.isRequired};function SectionRenderer(t){var e=t.classes,n=t.name,r=t.slug,i=t.content,o=t.components,a=t.sections,u=t.depth,l=t.description,c=t.pagePerSection;return s.a.createElement("section",{className:e.root},n&&s.a.createElement(SectionHeading,{depth:u,id:r,slotName:"sectionToolbar",pagePerSection:c,slotProps:t},n),l&&s.a.createElement(m.a,{text:l}),i,a,o)}SectionRenderer.propTypes={classes:l.a.object.isRequired,name:l.a.string,description:l.a.string,slug:l.a.string,filepath:l.a.string,content:l.a.node,components:l.a.node,sections:l.a.node,isolated:l.a.bool,depth:l.a.number.isRequired,pagePerSection:l.a.bool};var tn=Object(c.a)(function styles(t){return{root:{marginBottom:t.space[4]}}})(SectionRenderer);function Section(t,e){var n=t.section,r=t.depth,i=e.displayMode,o=e.config.pagePerSection,a=n.name,u=n.slug,l=n.filepath,c=n.content,p=n.components,f=n.sections,h=n.description,d=n.exampleMode,m=n.usageMode,v=c&&s.a.createElement(Examples,{examples:c,name:a,exampleMode:d}),g=p&&s.a.createElement(Components,{usageMode:m,exampleMode:d,components:p,depth:r+1}),y=f&&s.a.createElement(Sections,{sections:f,depth:r+1});return s.a.createElement(tn,{description:h,pagePerSection:o,name:a,slug:u,filepath:l,content:v,components:g,sections:y,isolated:i!==Ne.all,depth:r})}Section.propTypes={section:l.a.object.isRequired,depth:l.a.number.isRequired},Section.contextTypes={displayMode:l.a.string,config:l.a.object.isRequired};function SectionsRenderer(t){var e=t.classes,n=t.children;return s.a.createElement("section",{className:e.root},n)}SectionsRenderer.propTypes={classes:l.a.object.isRequired,children:l.a.node};var en=Object(c.a)(function styles(){return{root:{}}})(SectionsRenderer);function Sections(t){var e=t.sections,n=t.depth;return s.a.createElement(en,null,e.filter(function(t){return!t.href}).map(function(t,e){return s.a.createElement(Section,{key:e,section:t,depth:n})}))}Sections.propTypes={sections:l.a.array.isRequired,root:l.a.bool,depth:l.a.number.isRequired};var nn=n(107);function WelcomeRenderer(t){var e=t.classes,n=t.patterns;return s.a.createElement("div",{className:e.root},s.a.createElement(m.a,{text:"\n# Welcome to React Styleguidist!\n\n**We couldn’t find any components** using these patterns:\n\n"+n.map(function(t){return"- `"+t+"`"}).join("\n")+"\n\nCreate **styleguide.config.js** file in your project root directory like this:\n\n module.exports = {\n components: 'src/components/**/*.js'\n };\n\nRead more in the [locating components guide]("+nn.DOCS_COMPONENTS+").\n\t\t\t\t"}))}WelcomeRenderer.propTypes={classes:l.a.object.isRequired,patterns:l.a.array.isRequired};var rn=Object(c.a)(function styles(t){var e=t.space;return{root:{maxWidth:t.maxWidth,margin:[[0,"auto"]],padding:e[4]}}})(WelcomeRenderer);function ErrorRenderer(t){var e=t.classes,n=t.error,r=t.info;return s.a.createElement("div",{className:e.root},s.a.createElement("pre",{className:e.stack},n.toString(),r.componentStack.toString()),s.a.createElement("div",{className:e.message},s.a.createElement("p",null,"This may be due to an error in a component you are overriding, or a bug in React Styleguidist."),s.a.createElement("p",null,"If you believe this is a bug, ",s.a.createElement("a",{style:{color:"inherit"},href:"https://github.com/styleguidist/react-styleguidist/issues"},"please submit an issue"),".")))}ErrorRenderer.propTypes={classes:l.a.object.isRequired,error:l.a.object.isRequired,info:l.a.shape({componentStack:l.a.any.isRequired}).isRequired};var on=Object(c.a)(function styles(t){var e=t.fontFamily,n=t.fontSize,r=t.color;return{root:{margin:t.space[2],lineHeight:1.2,fontSize:n.small},stack:{color:r.error,whiteSpace:"pre-wrap",fontFamily:e.monospace},message:{color:r.error,fontFamily:e.base}}})(ErrorRenderer);function NotFoundRenderer(t){var e=t.classes;return s.a.createElement("div",{className:e.root},s.a.createElement(m.a,{text:"\n# Page not found\nThe link you followed may be broken, or the page may have been removed.\n"}))}NotFoundRenderer.propTypes={classes:l.a.object.isRequired};var an=Object(c.a)(function styles(t){return{root:{maxWidth:t.maxWidth,margin:[[0,"auto"]]}}})(NotFoundRenderer),sn=function(){function defineProperties(t,e){for(var n=0;n0&&i&&(r=yn({},r,{sections:[],components:[]})),t=[r]}else t=[]}}),t.length||(c=Ne.notFound),a=s[s.length-1];else if((p=filterComponentsInSectionsByExactName(t,a,!0)).length)t=p,c=Ne.component;else{var f=findSection(t,a);t=f?[f]:[],c=Ne.section}if(hn()(u))if(1===p.length){var h=p[0].components;t=[yn({},p[0],{components:[(r=h[0],i=u,dn({},r,{props:dn({},r.props,{examples:[r.props.examples[i]]})}))]})],c=Ne.example}else 1===t.length&&(t=[filterSectionExamples(t[0],u)],c=Ne.example)}return{sections:t,displayMode:c}}var bn=n(243);function globalizeComponents(t){t.forEach(function(t){t.components&&t.components.forEach(bn.a),t.sections&&globalizeComponents(t.sections)})}var _n=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:window.location,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.history,o=processSections(t.sections);globalizeComponents(o);var a=t.config,u=a.title,l=a.pagePerSection,c=getRouteData(o,n.hash,l),p=c.sections,f=c.displayMode;if(r.title=getPageTitle(p,u,f),"#/"===n.hash){var h=n.pathname+n.search;i.replaceState("",r.title,h)}return s.a.createElement(ln,{codeRevision:e,config:t.config,slots:W(t.config),welcomeScreen:t.welcomeScreen,patterns:t.patterns,sections:p,allSections:o,displayMode:f,pagePerSection:l})}var wn=function render(){var t=n(564);o.a.render(renderStyleguide(t,0),document.getElementById(t.config.mountPointId))};window.addEventListener("hashchange",wn),window.addEventListener("hashchange",function scrollToOrigin(){var t=window.location.hash;if(Z(t,"#/")||Z(t,"#!/")){var e=Y(t,"id"),n=0;if(e){var r=document.getElementById(e);r&&r.offsetTop&&(n=r.offsetTop)}window.scrollTo(0,n)}}),wn()}]); \ No newline at end of file diff --git a/docs/bundle.js b/docs/bundle.js deleted file mode 100644 index eff06a8..0000000 --- a/docs/bundle.js +++ /dev/null @@ -1,27558 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ } -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./index.jsx"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "../node_modules/@trendmicro/react-buttons/dist/react-buttons.css": -/***/ (function(module, exports, __webpack_require__) { - - -var content = __webpack_require__("../node_modules/css-loader/index.js!../node_modules/@trendmicro/react-buttons/dist/react-buttons.css"); - -if(typeof content === 'string') content = [[module.i, content, '']]; - -var transform; -var insertInto; - - - -var options = {"hmr":true} - -options.transform = transform -options.insertInto = undefined; - -var update = __webpack_require__("../node_modules/style-loader/lib/addStyles.js")(content, options); - -if(content.locals) module.exports = content.locals; - -if(false) { - module.hot.accept("!!../../../css-loader/index.js!./react-buttons.css", function() { - var newContent = require("!!../../../css-loader/index.js!./react-buttons.css"); - - if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; - - var locals = (function(a, b) { - var key, idx = 0; - - for(key in a) { - if(!b || a[key] !== b[key]) return false; - idx++; - } - - for(key in b) idx--; - - return idx === 0; - }(content.locals, newContent.locals)); - - if(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.'); - - update(newContent); - }); - - module.hot.dispose(function() { update(); }); -} - -/***/ }), - -/***/ "../node_modules/@trendmicro/react-buttons/lib/index.js": -/***/ (function(module, exports, __webpack_require__) { - -/*! react-buttons v1.3.1 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-buttons */ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ } -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 6); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__("../node_modules/classnames/index.js"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__("../node_modules/react/index.js"); - -/***/ }), -/* 2 */ -/***/ (function(module, exports) { - -// removed by extract-text-webpack-plugin -module.exports = {"btn":"buttons---btn---2jZHN","active":"buttons---active---2-a32","focus":"buttons---focus---1kVJZ","hover":"buttons---hover---42FF2","disabled":"buttons---disabled---eCY9b","btn-default":"buttons---btn-default---1wWXD","btnDefault":"buttons---btn-default---1wWXD","btn-primary":"buttons---btn-primary---Wp1wb","btnPrimary":"buttons---btn-primary---Wp1wb","btn-danger":"buttons---btn-danger---1UUqU","btnDanger":"buttons---btn-danger---1UUqU","btn-border":"buttons---btn-border---1O58b","btnBorder":"buttons---btn-border---1O58b","open":"buttons---open---1ju75","dropdown-toggle":"buttons---dropdown-toggle---vMtjL","dropdownToggle":"buttons---dropdown-toggle---vMtjL","btn-link":"buttons---btn-link---1xwS4","btnLink":"buttons---btn-link---1xwS4","btn-lg":"buttons---btn-lg---2xtUV","btnLg":"buttons---btn-lg---2xtUV","btn-group-lg":"buttons---btn-group-lg---3C8An","btnGroupLg":"buttons---btn-group-lg---3C8An","btn-compact":"buttons---btn-compact---mXDAU","btnCompact":"buttons---btn-compact---mXDAU","btn-md":"buttons---btn-md---HRR_F","btnMd":"buttons---btn-md---HRR_F","btn-group-md":"buttons---btn-group-md---3FQVP","btnGroupMd":"buttons---btn-group-md---3FQVP","btn-sm":"buttons---btn-sm---3cNnY","btnSm":"buttons---btn-sm---3cNnY","btn-group-sm":"buttons---btn-group-sm---3_QLf","btnGroupSm":"buttons---btn-group-sm---3_QLf","btn-xs":"buttons---btn-xs---2eEDQ","btnXs":"buttons---btn-xs---2eEDQ","btn-group-xs":"buttons---btn-group-xs---1c4pb","btnGroupXs":"buttons---btn-group-xs---1c4pb","btn-block":"buttons---btn-block---1nSNV","btnBlock":"buttons---btn-block---1nSNV","btn-group":"buttons---btn-group---1jaDo","btnGroup":"buttons---btn-group---1jaDo","btn-group-vertical":"buttons---btn-group-vertical---3Lm1e","btnGroupVertical":"buttons---btn-group-vertical---3Lm1e","btn-toolbar":"buttons---btn-toolbar---2-GfJ","btnToolbar":"buttons---btn-toolbar---2-GfJ","input-group":"buttons---input-group---1T18I","inputGroup":"buttons---input-group---1T18I","btn-group-justified":"buttons---btn-group-justified---3qB9u","btnGroupJustified":"buttons---btn-group-justified---3qB9u","dropdown-menu":"buttons---dropdown-menu---1fkH0","dropdownMenu":"buttons---dropdown-menu---1fkH0"}; - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _classnames = __webpack_require__(0); - -var _classnames2 = _interopRequireDefault(_classnames); - -var _propTypes = __webpack_require__(4); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _react = __webpack_require__(1); - -var _react2 = _interopRequireDefault(_react); - -var _constants = __webpack_require__(5); - -var _index = __webpack_require__(2); - -var _index2 = _interopRequireDefault(_index); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Button = (_temp = _class = function (_PureComponent) { - _inherits(Button, _PureComponent); - - function Button() { - _classCallCheck(this, Button); - - return _possibleConstructorReturn(this, (Button.__proto__ || Object.getPrototypeOf(Button)).apply(this, arguments)); - } - - _createClass(Button, [{ - key: 'render', - value: function render() { - var _classes; - - var _props = this.props, - className = _props.className, - Component = _props.componentClass, - type = _props.type, - btnSize = _props.btnSize, - btnStyle = _props.btnStyle, - active = _props.active, - hover = _props.hover, - focus = _props.focus, - disabled = _props.disabled, - block = _props.block, - compact = _props.compact, - iconOnly = _props.iconOnly, - dropdownToggle = _props.dropdownToggle, - props = _objectWithoutProperties(_props, ['className', 'componentClass', 'type', 'btnSize', 'btnStyle', 'active', 'hover', 'focus', 'disabled', 'block', 'compact', 'iconOnly', 'dropdownToggle']); - - var classes = (_classes = {}, _defineProperty(_classes, _index2.default.btn, true), _defineProperty(_classes, _index2.default.btnLg, btnSize === 'large' || btnSize === 'lg'), _defineProperty(_classes, _index2.default.btnMd, btnSize === 'medium' || btnSize === 'md'), _defineProperty(_classes, _index2.default.btnSm, btnSize === 'small' || btnSize === 'sm'), _defineProperty(_classes, _index2.default.btnXs, btnSize === 'extra-small' || btnSize === 'xs'), _defineProperty(_classes, _index2.default.btnDefault, btnStyle === 'default'), _defineProperty(_classes, _index2.default.btnPrimary, btnStyle === 'primary'), _defineProperty(_classes, _index2.default.btnDanger, btnStyle === 'danger' || btnStyle === 'emphasis'), _defineProperty(_classes, _index2.default.btnBorder, btnStyle === 'border' || btnStyle === 'flat'), _defineProperty(_classes, _index2.default.btnLink, btnStyle === 'link'), _defineProperty(_classes, _index2.default.btnBlock, block), _defineProperty(_classes, _index2.default.btnCompact, compact || iconOnly), _defineProperty(_classes, _index2.default.hover, hover), _defineProperty(_classes, _index2.default.active, active), _defineProperty(_classes, _index2.default.focus, focus), _defineProperty(_classes, _index2.default.dropdownToggle, dropdownToggle), _classes); - - return _react2.default.createElement(Component, _extends({}, props, { - type: type, - className: (0, _classnames2.default)(className, classes), - disabled: disabled - })); - } - }]); - - return Button; -}(_react.PureComponent), _class.propTypes = { - componentClass: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]), - type: _propTypes2.default.oneOf(['button', 'reset', 'submit']), - btnSize: _propTypes2.default.oneOf(_constants.btnSizes), - btnStyle: _propTypes2.default.oneOf(_constants.btnStyles), - active: _propTypes2.default.bool, - hover: _propTypes2.default.bool, - focus: _propTypes2.default.bool, - disabled: _propTypes2.default.bool, - block: _propTypes2.default.bool, - compact: _propTypes2.default.bool, - iconOnly: _propTypes2.default.bool, // alias of compact - - // Apply styles for use in a Dropdown. - // This prop will be set automatically when the Button is used inside a Dropdown. - dropdownToggle: _propTypes2.default.bool -}, _class.defaultProps = { - componentClass: 'button', - type: 'button', - btnSize: 'md', - btnStyle: 'default', - active: false, - hover: false, - focus: false, - disabled: false, - block: false, - compact: false, - iconOnly: false, // alias of compact - dropdownToggle: false -}, _temp); -exports.default = Button; - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - -module.exports = __webpack_require__("../node_modules/prop-types/index.js"); - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var btnSizes = exports.btnSizes = ['lg', 'md', 'sm', 'xs', 'large', 'medium', 'small', 'extra-small']; - -var btnStyles = exports.btnStyles = ['default', 'primary', 'danger', 'emphasis', // alias of "danger" -'border', 'flat', // alias of "border" -'link']; - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.ButtonToolbar = exports.ButtonGroup = exports.Button = undefined; - -var _Button2 = __webpack_require__(3); - -var _Button3 = _interopRequireDefault(_Button2); - -var _ButtonGroup2 = __webpack_require__(7); - -var _ButtonGroup3 = _interopRequireDefault(_ButtonGroup2); - -var _ButtonToolbar2 = __webpack_require__(8); - -var _ButtonToolbar3 = _interopRequireDefault(_ButtonToolbar2); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.Button = _Button3.default; -exports.ButtonGroup = _ButtonGroup3.default; -exports.ButtonToolbar = _ButtonToolbar3.default; - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _classnames = __webpack_require__(0); - -var _classnames2 = _interopRequireDefault(_classnames); - -var _propTypes = __webpack_require__(4); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _react = __webpack_require__(1); - -var _react2 = _interopRequireDefault(_react); - -var _Button = __webpack_require__(3); - -var _Button2 = _interopRequireDefault(_Button); - -var _constants = __webpack_require__(5); - -var _index = __webpack_require__(2); - -var _index2 = _interopRequireDefault(_index); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - -var getComponentType = function getComponentType(Component) { - return Component ? _react2.default.createElement(Component, null).type : undefined; -}; - -var ButtonGroup = function ButtonGroup(_ref) { - var _classes; - - var btnSize = _ref.btnSize, - btnStyle = _ref.btnStyle, - vertical = _ref.vertical, - dropdownOpen = _ref.dropdownOpen, - children = _ref.children, - className = _ref.className, - props = _objectWithoutProperties(_ref, ['btnSize', 'btnStyle', 'vertical', 'dropdownOpen', 'children', 'className']); - - var classes = (_classes = {}, _defineProperty(_classes, _index2.default.btnGroup, true), _defineProperty(_classes, _index2.default.btnGroupLg, btnSize === 'large' || btnSize === 'lg'), _defineProperty(_classes, _index2.default.btnGroupMd, btnSize === 'medium' || btnSize === 'md'), _defineProperty(_classes, _index2.default.btnGroupSm, btnSize === 'small' || btnSize === 'sm'), _defineProperty(_classes, _index2.default.btnGroupXs, btnSize === 'extra-small' || btnSize === 'xs'), _defineProperty(_classes, _index2.default.btnGroupVertical, vertical), _defineProperty(_classes, _index2.default.open, dropdownOpen), _classes); - - return _react2.default.createElement( - 'div', - _extends({}, props, { - className: (0, _classnames2.default)(className, classes) - }), - _react2.default.Children.map(children, function (child) { - if (_react2.default.isValidElement(child) && child.type === getComponentType(_Button2.default)) { - var childProps = {}; - if (_constants.btnSizes.indexOf(btnSize) >= 0) { - childProps.btnSize = btnSize; - } - if (_constants.btnStyles.indexOf(btnStyle) >= 0) { - childProps.btnStyle = btnStyle; - } - return (0, _react.cloneElement)(child, childProps); - } - - return child; - }) - ); -}; - -ButtonGroup.propTypes = { - btnSize: _propTypes2.default.oneOf(_constants.btnSizes), - btnStyle: _propTypes2.default.oneOf(_constants.btnStyles), - vertical: _propTypes2.default.bool, - - // Apply styles for use in a Dropdown. - // This prop will be set automatically when the ButtonGroup is used inside a Dropdown. - dropdownOpen: _propTypes2.default.bool -}; -ButtonGroup.defaultProps = { - vertical: false, - dropdownOpen: false -}; - -exports.default = ButtonGroup; - -/***/ }), -/* 8 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _classnames = __webpack_require__(0); - -var _classnames2 = _interopRequireDefault(_classnames); - -var _react = __webpack_require__(1); - -var _react2 = _interopRequireDefault(_react); - -var _index = __webpack_require__(2); - -var _index2 = _interopRequireDefault(_index); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - -var ButtonToolbar = function ButtonToolbar(_ref) { - var className = _ref.className, - props = _objectWithoutProperties(_ref, ['className']); - - return _react2.default.createElement('div', _extends({}, props, { - className: (0, _classnames2.default)(className, _index2.default.btnToolbar) - })); -}; - -exports.default = ButtonToolbar; - -/***/ }) -/******/ ]); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "../node_modules/@trendmicro/react-portal/LegacyPortal.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _propTypes = _interopRequireDefault(__webpack_require__("../node_modules/prop-types/index.js")); - -var _react = _interopRequireDefault(__webpack_require__("../node_modules/react/index.js")); - -var _reactDom = _interopRequireDefault(__webpack_require__("../node_modules/react-dom/index.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -var Portal = -/*#__PURE__*/ -function (_React$Component) { - _inherits(Portal, _React$Component); - - function Portal(props) { - var _this; - - _classCallCheck(this, Portal); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Portal).call(this, props)); - _this.node = document.createElement('div'); - - _this.node.setAttribute('data-reactportal', ''); - - return _this; - } - - _createClass(Portal, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.node) { - this.props.node.appendChild(this.node); - } else { - document.body.appendChild(this.node); - } - - this.componentDidUpdate(); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.node) { - _reactDom.default.unmountComponentAtNode(this.node); - - if (this.node.parentNode) { - this.node.parentNode.removeChild(this.node); - } - - this.node = null; - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - _reactDom.default.render(this.props.children, this.node); - } - }, { - key: "render", - value: function render() { - return null; - } - }]); - - return Portal; -}(_react.default.Component); - -_defineProperty(Portal, "propTypes", { - node: _propTypes.default.any -}); - -var _default = Portal; -exports.default = _default; - -/***/ }), - -/***/ "../node_modules/@trendmicro/react-portal/Portal.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _propTypes = _interopRequireDefault(__webpack_require__("../node_modules/prop-types/index.js")); - -var _react = _interopRequireDefault(__webpack_require__("../node_modules/react/index.js")); - -var _reactDom = _interopRequireDefault(__webpack_require__("../node_modules/react-dom/index.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -var Portal = -/*#__PURE__*/ -function (_React$Component) { - _inherits(Portal, _React$Component); - - function Portal(props) { - var _this; - - _classCallCheck(this, Portal); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(Portal).call(this, props)); - _this.node = document.createElement('div'); - - _this.node.setAttribute('data-reactportal', ''); - - return _this; - } - - _createClass(Portal, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (this.props.node) { - this.props.node.appendChild(this.node); - } else { - document.body.appendChild(this.node); - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.node) { - if (this.node.parentNode) { - this.node.parentNode.removeChild(this.node); - } - - this.node = null; - } - } - }, { - key: "render", - value: function render() { - return _reactDom.default.createPortal(this.props.children, this.node); - } - }]); - - return Portal; -}(_react.default.Component); - -_defineProperty(Portal, "propTypes", { - node: _propTypes.default.any -}); - -var _default = Portal; -exports.default = _default; - -/***/ }), - -/***/ "../node_modules/@trendmicro/react-portal/index.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _reactDom = _interopRequireDefault(__webpack_require__("../node_modules/react-dom/index.js")); - -var _Portal = _interopRequireDefault(__webpack_require__("../node_modules/@trendmicro/react-portal/Portal.js")); - -var _LegacyPortal = _interopRequireDefault(__webpack_require__("../node_modules/@trendmicro/react-portal/LegacyPortal.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var _default = !!_reactDom.default.createPortal ? _Portal.default : _LegacyPortal.default; - -exports.default = _default; - -/***/ }), - -/***/ "../node_modules/chained-function/lib/chained-function.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -exports.default = function () { - for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { - funcs[_key] = arguments[_key]; - } - - return funcs.filter(function (func) { - return typeof func === 'function'; - }).reduce(function (accumulator, func) { - if (accumulator === null) { - return func; - } - - return function chainedFunction() { - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - accumulator.apply(this, args); - func.apply(this, args); - }; - }, null); -}; - -/***/ }), - -/***/ "../node_modules/chained-function/lib/index.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _chainedFunction = __webpack_require__("../node_modules/chained-function/lib/chained-function.js"); - -var _chainedFunction2 = _interopRequireDefault(_chainedFunction); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = _chainedFunction2.default; - -/***/ }), - -/***/ "../node_modules/classnames/index.js": -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/* global define */ - -(function () { - 'use strict'; - - var hasOwn = {}.hasOwnProperty; - - function classNames () { - var classes = []; - - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - - var argType = typeof arg; - - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg) && arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } else if (argType === 'object') { - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } - - return classes.join(' '); - } - - if (typeof module !== 'undefined' && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else { - window.classNames = classNames; - } -}()); - - -/***/ }), - -/***/ "../node_modules/css-loader/index.js!../node_modules/@trendmicro/react-buttons/dist/react-buttons.css": -/***/ (function(module, exports, __webpack_require__) { - -exports = module.exports = __webpack_require__("../node_modules/css-loader/lib/css-base.js")(false); -// imports - - -// module -exports.push([module.i, "/*! react-buttons v1.3.1 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-buttons */\n.buttons---btn---2jZHN {\n display: inline-block;\n min-width: 80px;\n padding: 5px 12px;\n margin-bottom: 0;\n font-size: 13px;\n font-weight: normal;\n line-height: 20px;\n text-align: center;\n white-space: nowrap;\n vertical-align: middle;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n border-radius: 3px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.buttons---btn---2jZHN:focus,\n.buttons---btn---2jZHN:active:focus,\n.buttons---btn---2jZHN.buttons---active---2-a32:focus,\n.buttons---btn---2jZHN.buttons---focus---1kVJZ,\n.buttons---btn---2jZHN:active.buttons---focus---1kVJZ,\n.buttons---btn---2jZHN.buttons---active---2-a32.buttons---focus---1kVJZ {\n outline: none;\n}\n.buttons---btn---2jZHN:hover,\n.buttons---btn---2jZHN.buttons---hover---42FF2,\n.buttons---btn---2jZHN:focus,\n.buttons---btn---2jZHN.buttons---focus---1kVJZ {\n color: #222;\n text-decoration: none;\n}\n.buttons---btn---2jZHN:active,\n.buttons---btn---2jZHN.buttons---active---2-a32 {\n outline: none;\n background-image: none;\n -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.1) inset;\n box-shadow: 0 1px 4px rgba(0,0,0,0.1) inset;\n}\n.buttons---btn---2jZHN.buttons---disabled---eCY9b,\n.buttons---btn---2jZHN[disabled],\nfieldset[disabled] .buttons---btn---2jZHN {\n cursor: not-allowed;\n opacity: 0.4;\n -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)\";\n filter: alpha(opacity=40);\n}\na .buttons---btn---2jZHN.buttons---disabled---eCY9b,\nfieldset[disabled] a .buttons---btn---2jZHN {\n pointer-events: none;\n}\n.buttons---btn---2jZHN + .buttons---btn---2jZHN {\n margin-left: 8px;\n}\n.buttons---btn---2jZHN > [class*=\"loader-container\"] {\n display: inline-block;\n}\n.buttons---btn---2jZHN > [class*=\"loader-container\"] > [class*=\"loader\"] {\n margin-top: 2px;\n margin-right: 8px;\n}\n.buttons---btn-default---1wWXD {\n color: #222;\n background-color: #fbfbfb;\n background-image: -webkit-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -moz-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -o-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -ms-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: linear-gradient(to bottom, #fbfbfb 0%, #ececec 100%);\n background-repeat: repeat-x;\n border-color: #ccc;\n}\n.buttons---btn-default---1wWXD:active,\n.buttons---btn-default---1wWXD.buttons---active---2-a32 {\n color: #222;\n background-color: #eee;\n background-image: none;\n border-color: #bbb;\n -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.1) inset;\n box-shadow: 0 1px 4px rgba(0,0,0,0.1) inset;\n}\n.buttons---btn-default---1wWXD:focus,\n.buttons---btn-default---1wWXD.buttons---focus---1kVJZ {\n color: #222;\n border-color: #0096cc;\n}\n.buttons---btn-default---1wWXD:hover,\n.buttons---btn-default---1wWXD.buttons---hover---42FF2 {\n color: #222;\n background-color: #fff;\n background-image: -webkit-linear-gradient(top, #fff 0%, #f5f5f5 100%);\n background-image: -moz-linear-gradient(top, #fff 0%, #f5f5f5 100%);\n background-image: -o-linear-gradient(top, #fff 0%, #f5f5f5 100%);\n background-image: -ms-linear-gradient(top, #fff 0%, #f5f5f5 100%);\n background-image: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);\n background-repeat: repeat-x;\n border-color: #999;\n}\n.buttons---btn-default---1wWXD.buttons---disabled---eCY9b:hover,\n.buttons---btn-default---1wWXD[disabled]:hover,\nfieldset[disabled] .buttons---btn-default---1wWXD:hover,\n.buttons---btn-default---1wWXD.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-default---1wWXD[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-default---1wWXD.buttons---hover---42FF2,\n.buttons---btn-default---1wWXD.buttons---disabled---eCY9b:focus,\n.buttons---btn-default---1wWXD[disabled]:focus,\nfieldset[disabled] .buttons---btn-default---1wWXD:focus,\n.buttons---btn-default---1wWXD.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-default---1wWXD[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-default---1wWXD.buttons---focus---1kVJZ {\n background-color: #fbfbfb;\n background-image: -webkit-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -moz-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -o-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: -ms-linear-gradient(top, #fbfbfb 0%, #ececec 100%);\n background-image: linear-gradient(to bottom, #fbfbfb 0%, #ececec 100%);\n background-repeat: repeat-x;\n border-color: #ccc;\n}\n.buttons---btn-primary---Wp1wb {\n color: #fff;\n background-color: #0096cc;\n background-image: -webkit-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -moz-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -o-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -ms-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: linear-gradient(to bottom, #00a7e6 0%, #0096cc 100%);\n background-repeat: repeat-x;\n border-color: #0095ce;\n}\n.buttons---btn-primary---Wp1wb > [class*=\"loader-container\"] > [class*=\"loader\"] {\n border-color: rgba(255,255,255,0.4);\n border-left-color: #fff;\n}\n.buttons---btn-primary---Wp1wb:active,\n.buttons---btn-primary---Wp1wb.buttons---active---2-a32 {\n color: #fff;\n background-color: #009ed8;\n background-image: none;\n border-color: #00759f;\n -webkit-box-shadow: 0 1px 6px rgba(0,0,0,0.15) inset;\n box-shadow: 0 1px 6px rgba(0,0,0,0.15) inset;\n}\n.buttons---btn-primary---Wp1wb:focus,\n.buttons---btn-primary---Wp1wb.buttons---focus---1kVJZ {\n color: #fff;\n border-color: #444;\n -webkit-box-shadow: 0 0 1px #fff inset;\n box-shadow: 0 0 1px #fff inset;\n}\n.buttons---btn-primary---Wp1wb:hover,\n.buttons---btn-primary---Wp1wb.buttons---hover---42FF2 {\n color: #fff;\n background-color: #1daee5;\n background-image: -webkit-linear-gradient(top, #1daee5 0%, #00a3df 100%);\n background-image: -moz-linear-gradient(top, #1daee5 0%, #00a3df 100%);\n background-image: -o-linear-gradient(top, #1daee5 0%, #00a3df 100%);\n background-image: -ms-linear-gradient(top, #1daee5 0%, #00a3df 100%);\n background-image: linear-gradient(to bottom, #1daee5 0%, #00a3df 100%);\n background-repeat: repeat-x;\n border-color: #00759f;\n}\n.buttons---btn-primary---Wp1wb.buttons---disabled---eCY9b:hover,\n.buttons---btn-primary---Wp1wb[disabled]:hover,\nfieldset[disabled] .buttons---btn-primary---Wp1wb:hover,\n.buttons---btn-primary---Wp1wb.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-primary---Wp1wb[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-primary---Wp1wb.buttons---hover---42FF2,\n.buttons---btn-primary---Wp1wb.buttons---disabled---eCY9b:focus,\n.buttons---btn-primary---Wp1wb[disabled]:focus,\nfieldset[disabled] .buttons---btn-primary---Wp1wb:focus,\n.buttons---btn-primary---Wp1wb.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-primary---Wp1wb[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-primary---Wp1wb.buttons---focus---1kVJZ {\n background-color: #0096cc;\n background-image: -webkit-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -moz-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -o-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: -ms-linear-gradient(top, #00a7e6 0%, #0096cc 100%);\n background-image: linear-gradient(to bottom, #00a7e6 0%, #0096cc 100%);\n background-repeat: repeat-x;\n border-color: #0095ce;\n}\n.buttons---btn-danger---1UUqU {\n color: #fff;\n background-color: #db3d44;\n background-image: -webkit-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -moz-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -o-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -ms-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: linear-gradient(to bottom, #e15054 0%, #db3d44 100%);\n background-repeat: repeat-x;\n border-color: #d8262b;\n}\n.buttons---btn-danger---1UUqU:active,\n.buttons---btn-danger---1UUqU.buttons---active---2-a32 {\n color: #fff;\n background-color: #e15054;\n background-image: none;\n border-color: #c22327;\n -webkit-box-shadow: 0 1px 6px rgba(0,0,0,0.15) inset;\n box-shadow: 0 1px 6px rgba(0,0,0,0.15) inset;\n}\n.buttons---btn-danger---1UUqU:focus,\n.buttons---btn-danger---1UUqU.buttons---focus---1kVJZ {\n color: #fff;\n border-color: #444;\n -webkit-box-shadow: 0 0 1px #fff inset;\n box-shadow: 0 0 1px #fff inset;\n}\n.buttons---btn-danger---1UUqU:hover,\n.buttons---btn-danger---1UUqU.buttons---hover---42FF2 {\n color: #fff;\n background-color: #e15f5f;\n background-image: -webkit-linear-gradient(top, #e15f5f 0%, #e15054 100%);\n background-image: -moz-linear-gradient(top, #e15f5f 0%, #e15054 100%);\n background-image: -o-linear-gradient(top, #e15f5f 0%, #e15054 100%);\n background-image: -ms-linear-gradient(top, #e15f5f 0%, #e15054 100%);\n background-image: linear-gradient(to bottom, #e15f5f 0%, #e15054 100%);\n background-repeat: repeat-x;\n border-color: #c22327;\n}\n.buttons---btn-danger---1UUqU.buttons---disabled---eCY9b:hover,\n.buttons---btn-danger---1UUqU[disabled]:hover,\nfieldset[disabled] .buttons---btn-danger---1UUqU:hover,\n.buttons---btn-danger---1UUqU.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-danger---1UUqU[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-danger---1UUqU.buttons---hover---42FF2,\n.buttons---btn-danger---1UUqU.buttons---disabled---eCY9b:focus,\n.buttons---btn-danger---1UUqU[disabled]:focus,\nfieldset[disabled] .buttons---btn-danger---1UUqU:focus,\n.buttons---btn-danger---1UUqU.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-danger---1UUqU[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-danger---1UUqU.buttons---focus---1kVJZ {\n background-color: #db3d44;\n background-image: -webkit-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -moz-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -o-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: -ms-linear-gradient(top, #e15054 0%, #db3d44 100%);\n background-image: linear-gradient(to bottom, #e15054 0%, #db3d44 100%);\n background-repeat: repeat-x;\n border-color: #d8262b;\n}\n.buttons---btn-border---1O58b {\n color: #222;\n background-color: #fff;\n background-image: -webkit-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -moz-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -o-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -ms-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: linear-gradient(to bottom, #fff 0%, #fff 100%);\n background-repeat: repeat-x;\n border-color: #ccc;\n -webkit-transition: all 0.2s linear 0s;\n -moz-transition: all 0.2s linear 0s;\n -o-transition: all 0.2s linear 0s;\n -ms-transition: all 0.2s linear 0s;\n transition: all 0.2s linear 0s;\n}\n.buttons---btn-border---1O58b:hover,\n.buttons---btn-border---1O58b.buttons---hover---42FF2 {\n color: #222;\n background-color: #f4f4f4;\n background-image: -webkit-linear-gradient(top, #f4f4f4 0%, #f4f4f4 100%);\n background-image: -moz-linear-gradient(top, #f4f4f4 0%, #f4f4f4 100%);\n background-image: -o-linear-gradient(top, #f4f4f4 0%, #f4f4f4 100%);\n background-image: -ms-linear-gradient(top, #f4f4f4 0%, #f4f4f4 100%);\n background-image: linear-gradient(to bottom, #f4f4f4 0%, #f4f4f4 100%);\n background-repeat: repeat-x;\n border-color: #999;\n}\n.buttons---btn-border---1O58b:focus,\n.buttons---btn-border---1O58b.buttons---focus---1kVJZ {\n color: #222;\n border-color: #0096cc;\n}\n.buttons---btn-border---1O58b:active,\n.buttons---btn-border---1O58b.buttons---active---2-a32,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b {\n color: #222;\n background-color: #eee;\n background-image: none;\n border-color: #bbb;\n -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.1) inset;\n box-shadow: 0px 1px 2px rgba(0,0,0,0.1) inset;\n}\n.buttons---btn-border---1O58b:active:hover,\n.buttons---btn-border---1O58b.buttons---active---2-a32:hover,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b:hover,\n.buttons---btn-border---1O58b:active.buttons---hover---42FF2,\n.buttons---btn-border---1O58b.buttons---active---2-a32.buttons---hover---42FF2,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b.buttons---hover---42FF2,\n.buttons---btn-border---1O58b:active:focus,\n.buttons---btn-border---1O58b.buttons---active---2-a32:focus,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b:focus,\n.buttons---btn-border---1O58b:active.buttons---focus---1kVJZ,\n.buttons---btn-border---1O58b.buttons---active---2-a32.buttons---focus---1kVJZ,\n.buttons---open---1ju75 > .buttons---dropdown-toggle---vMtjL.buttons---btn-border---1O58b.buttons---focus---1kVJZ {\n color: #222;\n border-color: #bbb;\n -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;\n box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;\n}\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b,\n.buttons---btn-border---1O58b[disabled],\nfieldset[disabled] .buttons---btn-border---1O58b {\n opacity: 0.4;\n -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)\";\n filter: alpha(opacity=40);\n cursor: not-allowed;\n}\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b:hover,\n.buttons---btn-border---1O58b[disabled]:hover,\nfieldset[disabled] .buttons---btn-border---1O58b:hover,\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-border---1O58b[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-border---1O58b.buttons---hover---42FF2,\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b:focus,\n.buttons---btn-border---1O58b[disabled]:focus,\nfieldset[disabled] .buttons---btn-border---1O58b:focus,\n.buttons---btn-border---1O58b.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-border---1O58b[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-border---1O58b.buttons---focus---1kVJZ {\n background-color: #fff;\n background-image: -webkit-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -moz-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -o-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: -ms-linear-gradient(top, #fff 0%, #fff 100%);\n background-image: linear-gradient(to bottom, #fff 0%, #fff 100%);\n background-repeat: repeat-x;\n border-color: #ccc;\n}\n.buttons---btn-link---1xwS4 {\n padding-right: 0;\n padding-left: 0;\n font-weight: normal;\n color: #0096cc;\n border-radius: 0;\n}\n.buttons---btn-link---1xwS4,\n.buttons---btn-link---1xwS4:active,\n.buttons---btn-link---1xwS4.buttons---active---2-a32,\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b,\n.buttons---btn-link---1xwS4[disabled],\nfieldset[disabled] .buttons---btn-link---1xwS4 {\n background-color: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.buttons---btn-link---1xwS4,\n.buttons---btn-link---1xwS4:hover,\n.buttons---btn-link---1xwS4.buttons---hover---42FF2,\n.buttons---btn-link---1xwS4:focus,\n.buttons---btn-link---1xwS4:active {\n border-color: transparent;\n}\n.buttons---btn-link---1xwS4:hover,\n.buttons---btn-link---1xwS4.buttons---hover---42FF2,\n.buttons---btn-link---1xwS4:focus {\n color: #db3d44;\n text-decoration: underline;\n background-color: transparent;\n}\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b:hover,\n.buttons---btn-link---1xwS4[disabled]:hover,\nfieldset[disabled] .buttons---btn-link---1xwS4:hover,\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b.buttons---hover---42FF2,\n.buttons---btn-link---1xwS4[disabled].buttons---hover---42FF2,\nfieldset[disabled] .buttons---btn-link---1xwS4.buttons---hover---42FF2,\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b:focus,\n.buttons---btn-link---1xwS4[disabled]:focus,\nfieldset[disabled] .buttons---btn-link---1xwS4:focus,\n.buttons---btn-link---1xwS4.buttons---disabled---eCY9b.buttons---focus---1kVJZ,\n.buttons---btn-link---1xwS4[disabled].buttons---focus---1kVJZ,\nfieldset[disabled] .buttons---btn-link---1xwS4.buttons---focus---1kVJZ {\n color: #e6e6e6;\n text-decoration: none;\n}\n.buttons---btn-lg---2xtUV,\n.buttons---btn-group-lg---3C8An > .buttons---btn---2jZHN {\n padding: 9px 12px;\n font-size: 16px;\n line-height: 24px;\n border-radius: 3px;\n}\n.buttons---btn-lg---2xtUV.buttons---btn-compact---mXDAU,\n.buttons---btn-group-lg---3C8An > .buttons---btn---2jZHN.buttons---btn-compact---mXDAU {\n padding-left: 0;\n padding-right: 0;\n min-width: 58px;\n}\n.buttons---btn-md---HRR_F,\n.buttons---btn-group-md---3FQVP > .buttons---btn---2jZHN {\n padding: 5px 12px;\n font-size: 13px;\n line-height: 20px;\n border-radius: 3px;\n}\n.buttons---btn-md---HRR_F.buttons---btn-compact---mXDAU,\n.buttons---btn-group-md---3FQVP > .buttons---btn---2jZHN.buttons---btn-compact---mXDAU {\n padding-left: 0;\n padding-right: 0;\n min-width: 42px;\n}\n.buttons---btn-sm---3cNnY,\n.buttons---btn-group-sm---3_QLf > .buttons---btn---2jZHN {\n padding: 4px 12px;\n font-size: 12px;\n line-height: 18px;\n border-radius: 3px;\n}\n.buttons---btn-sm---3cNnY.buttons---btn-compact---mXDAU,\n.buttons---btn-group-sm---3_QLf > .buttons---btn---2jZHN.buttons---btn-compact---mXDAU {\n padding-left: 0;\n padding-right: 0;\n min-width: 36px;\n}\n.buttons---btn-xs---2eEDQ,\n.buttons---btn-group-xs---1c4pb > .buttons---btn---2jZHN {\n padding: 1px 12px;\n font-size: 12px;\n line-height: 18px;\n border-radius: 3px;\n}\n.buttons---btn-xs---2eEDQ.buttons---btn-compact---mXDAU,\n.buttons---btn-group-xs---1c4pb > .buttons---btn---2jZHN.buttons---btn-compact---mXDAU {\n padding-left: 0;\n padding-right: 0;\n min-width: 28px;\n}\n.buttons---btn-block---1nSNV {\n display: block;\n width: 100%;\n}\n.buttons---btn-block---1nSNV.buttons---btn---2jZHN + .buttons---btn-block---1nSNV.buttons---btn---2jZHN,\n.buttons---btn-block---1nSNV + .buttons---btn-block---1nSNV {\n margin-left: 0;\n margin-top: 8px;\n}\ninput[type=\"submit\"].buttons---btn-block---1nSNV,\ninput[type=\"reset\"].buttons---btn-block---1nSNV,\ninput[type=\"button\"].buttons---btn-block---1nSNV {\n width: 100%;\n}\n.buttons---btn-group---1jaDo,\n.buttons---btn-group-vertical---3Lm1e {\n position: relative;\n display: inline-block;\n vertical-align: top;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN {\n position: relative;\n float: left;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:hover,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:hover,\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN.buttons---hover---42FF2,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN.buttons---hover---42FF2,\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:active,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:active,\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN.buttons---active---2-a32,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN.buttons---active---2-a32 {\n z-index: 2;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:focus,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:focus,\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN.buttons---focus---1kVJZ,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN.buttons---focus---1kVJZ {\n z-index: 3;\n}\n.buttons---btn-group---1jaDo .buttons---btn---2jZHN + .buttons---btn---2jZHN,\n.buttons---btn-group---1jaDo .buttons---btn---2jZHN + .buttons---btn-group---1jaDo,\n.buttons---btn-group---1jaDo .buttons---btn-group---1jaDo + .buttons---btn---2jZHN,\n.buttons---btn-group---1jaDo .buttons---btn-group---1jaDo + .buttons---btn-group---1jaDo {\n margin-left: -1px;\n}\n.buttons---btn-group---1jaDo + .buttons---btn-group---1jaDo {\n margin-left: 8px;\n}\n.buttons---btn-toolbar---2-GfJ {\n margin-left: -5px;\n zoom: 1;\n}\n.buttons---btn-toolbar---2-GfJ:before,\n.buttons---btn-toolbar---2-GfJ:after {\n content: \"\";\n display: table;\n}\n.buttons---btn-toolbar---2-GfJ:after {\n clear: both;\n}\n.buttons---btn-toolbar---2-GfJ .buttons---btn---2jZHN,\n.buttons---btn-toolbar---2-GfJ .buttons---btn-group---1jaDo,\n.buttons---btn-toolbar---2-GfJ .buttons---input-group---1T18I {\n float: left;\n}\n.buttons---btn-toolbar---2-GfJ > .buttons---btn---2jZHN,\n.buttons---btn-toolbar---2-GfJ > .buttons---btn-group---1jaDo,\n.buttons---btn-toolbar---2-GfJ > .buttons---input-group---1T18I {\n margin-left: 5px;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:not(:first-child):not(:last-child):not(.buttons---dropdown-toggle---vMtjL) {\n border-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:first-child {\n margin-left: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:first-child:not(:last-child):not(.buttons---dropdown-toggle---vMtjL) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN:last-child:not(:first-child),\n.buttons---btn-group---1jaDo > .buttons---dropdown-toggle---vMtjL:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo {\n float: left;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo:not(:first-child):not(:last-child) > .buttons---btn---2jZHN {\n border-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo:first-child:not(:last-child) > .buttons---btn---2jZHN:last-child,\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo:first-child:not(:last-child) > .buttons---dropdown-toggle---vMtjL {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-group---1jaDo:last-child:not(:first-child) > .buttons---btn---2jZHN:first-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.buttons---btn-group---1jaDo .buttons---dropdown-toggle---vMtjL:active,\n.buttons---btn-group---1jaDo.buttons---open---1ju75 .buttons---dropdown-toggle---vMtjL {\n outline: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo > .buttons---btn---2jZHN {\n display: block;\n float: none;\n width: 100%;\n max-width: 100%;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo {\n zoom: 1;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:before,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:after {\n content: \"\";\n display: table;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:after {\n clear: both;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo > .buttons---btn---2jZHN {\n float: none;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN + .buttons---btn---2jZHN,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN + .buttons---btn-group---1jaDo,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo + .buttons---btn---2jZHN,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo + .buttons---btn-group---1jaDo {\n margin-top: -1px;\n margin-left: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:first-child:not(:last-child) {\n border-top-radius: 3px;\n border-bottom-radius: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn---2jZHN:last-child:not(:first-child) {\n border-top-radius: 0;\n border-bottom-radius: 3px;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:not(:first-child):not(:last-child) > .buttons---btn---2jZHN {\n border-radius: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:first-child:not(:last-child) > .buttons---btn---2jZHN:last-child,\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:first-child:not(:last-child) > .buttons---dropdown-toggle---vMtjL {\n border-bottom-radius: 0;\n}\n.buttons---btn-group-vertical---3Lm1e > .buttons---btn-group---1jaDo:last-child:not(:first-child) > .buttons---btn---2jZHN:first-child {\n border-top-radius: 0;\n}\n.buttons---btn-group-justified---3qB9u {\n display: table;\n width: 100%;\n table-layout: fixed;\n border-collapse: separate;\n}\n.buttons---btn-group-justified---3qB9u > .buttons---btn---2jZHN,\n.buttons---btn-group-justified---3qB9u > .buttons---btn-group---1jaDo {\n float: none;\n display: table-cell;\n width: 1%;\n}\n.buttons---btn-group-justified---3qB9u > .buttons---btn-group---1jaDo .buttons---btn---2jZHN {\n width: 100%;\n}\n.buttons---btn-group-justified---3qB9u > .buttons---btn-group---1jaDo .buttons---dropdown-menu---1fkH0 {\n left: auto;\n}\n.buttons---dropdown-toggle---vMtjL {\n min-width: 0;\n}\n.buttons---dropdown-toggle---vMtjL.buttons---btn---2jZHN {\n text-align: left;\n padding-left: 12px;\n padding-right: 12px;\n}\n.buttons---dropdown-toggle---vMtjL.buttons---btn-compact---mXDAU {\n text-align: center;\n}\n.buttons---dropdown-toggle---vMtjL.buttons---btn-link---1xwS4 {\n color: #222;\n padding-left: 0;\n padding-right: 0;\n text-decoration: none;\n}\n.buttons---dropdown-toggle---vMtjL.buttons---btn-link---1xwS4:hover,\n.buttons---dropdown-toggle---vMtjL.buttons---btn-link---1xwS4:hover > * {\n color: #0096cc;\n}\n.buttons---btn-group---1jaDo > .buttons---btn---2jZHN + .buttons---dropdown-toggle---vMtjL {\n padding-left: 8px;\n padding-right: 8px;\n min-width: 0;\n}\n.buttons---btn-group---1jaDo > .buttons---btn-lg---2xtUV + .buttons---dropdown-toggle---vMtjL {\n padding-left: 12px;\n padding-right: 12px;\n}\n[data-toggle=\"buttons\"] > .buttons---btn---2jZHN input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .buttons---btn-group---1jaDo > .buttons---btn---2jZHN input[type=\"radio\"],\n[data-toggle=\"buttons\"] > .buttons---btn---2jZHN input[type=\"checkbox\"],\n[data-toggle=\"buttons\"] > .buttons---btn-group---1jaDo > .buttons---btn---2jZHN input[type=\"checkbox\"] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none;\n}\n.buttons---btn---2jZHN.buttons---btn-compact---mXDAU .fa {\n margin-right: 0;\n}\n.buttons---btn---2jZHN .fa {\n font-size: 14px;\n margin-right: 8px;\n}\n.buttons---btn---2jZHN i.fa,\n.buttons---btn---2jZHN span.fa {\n font-size: 14px;\n color: #666;\n}\n.buttons---btn-primary---Wp1wb i.fa,\n.buttons---btn-danger---1UUqU i.fa,\n.buttons---btn-primary---Wp1wb span.fa,\n.buttons---btn-danger---1UUqU span.fa {\n color: inherit;\n}\n.buttons---btn-lg---2xtUV.buttons---btn---2jZHN i.fa,\n.buttons---btn-sm---3cNnY.buttons---btn---2jZHN i.fa,\n.buttons---btn-xs---2eEDQ.buttons---btn---2jZHN i.fa,\n.buttons---btn-lg---2xtUV.buttons---btn---2jZHN span.fa,\n.buttons---btn-sm---3cNnY.buttons---btn---2jZHN span.fa,\n.buttons---btn-xs---2eEDQ.buttons---btn---2jZHN span.fa {\n font-size: inherit;\n}\n.buttons---btn-lg---2xtUV.buttons---btn---2jZHN i.svg,\n.buttons---btn-lg---2xtUV.buttons---btn---2jZHN span.svg {\n width: 24px;\n height: 24px;\n}\n.buttons---btn---2jZHN i.svg,\n.buttons---btn---2jZHN span.svg {\n width: 16px;\n height: 16px;\n}\n.buttons---btn-sm---3cNnY.buttons---btn---2jZHN i.svg,\n.buttons---btn-xs---2eEDQ.buttons---btn---2jZHN i.svg,\n.buttons---btn-sm---3cNnY.buttons---btn---2jZHN span.svg,\n.buttons---btn-xs---2eEDQ.buttons---btn---2jZHN span.svg {\n width: 12px;\n height: 12px;\n}", ""]); - -// exports - - -/***/ }), - -/***/ "../node_modules/css-loader/index.js?camelCase&modules&importLoaders=1&localIdentName=[local]---[hash:base64:5]!../node_modules/stylus-loader/index.js!../node_modules/stylint-loader/index.js!../src/index.styl": -/***/ (function(module, exports, __webpack_require__) { - -var escape = __webpack_require__("../node_modules/css-loader/lib/url/escape.js"); -exports = module.exports = __webpack_require__("../node_modules/css-loader/lib/css-base.js")(false); -// imports - - -// module -exports.push([module.i, ".modal-overlay---1x_yE {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(51,51,51,0.55);\n z-index: 1050;\n white-space: nowrap;\n overflow-x: auto;\n}\n.modal-overlay---1x_yE.centered---1FYfF {\n text-align: center;\n}\n.modal-overlay---1x_yE.centered---1FYfF:before {\n content: '';\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n margin-right: -0.25em;\n}\n.modal-overlay---1x_yE.centered---1FYfF .modal-content---3hUtG {\n display: inline-block;\n vertical-align: middle;\n text-align: left;\n}\n.modal-content---3hUtG {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 20px;\n position: relative;\n display: inline-block;\n background-color: #fff;\n border: 1px solid #ccc;\n -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.5);\n box-shadow: 0 4px 16px rgba(0,0,0,0.5);\n min-width: 400px;\n white-space: normal;\n}\n.modal-content---3hUtG *,\n.modal-content---3hUtG *:before,\n.modal-content---3hUtG *:after {\n -webkit-box-sizing: inherit;\n -moz-box-sizing: inherit;\n box-sizing: inherit;\n}\n.modal-content---3hUtG.xs---8dzzc {\n width: 400px;\n}\n.modal-content---3hUtG.xs---8dzzc .modal-body---22INy {\n min-height: 184px;\n}\n.modal-content---3hUtG.xs---8dzzc .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 130px;\n}\n.modal-content---3hUtG.sm---3ceuY {\n width: 544px;\n}\n.modal-content---3hUtG.sm---3ceuY .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.sm---3ceuY .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG.md---3OKcy {\n width: 688px;\n}\n.modal-content---3hUtG.md---3OKcy .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.md---3OKcy .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG.lg---2kMz1 {\n width: 928px;\n}\n.modal-content---3hUtG.lg---2kMz1 .modal-body---22INy {\n min-height: 246px;\n}\n.modal-content---3hUtG.lg---2kMz1 .modal-header---1FIQ_ + .modal-body---22INy {\n min-height: 192px;\n}\n.modal-content---3hUtG.close-button---2mREQ .modal-header---1FIQ_.padding---2pFRu {\n padding: 16px 56px 16px 24px;\n}\n.modal-content---3hUtG .close---fVKdP {\n position: absolute;\n top: 16px;\n right: 24px;\n padding: 0;\n margin: 0;\n line-height: 20px;\n cursor: pointer;\n background: transparent url(" + escape(__webpack_require__("../src/close.svg")) + ");\n border: 0;\n -webkit-appearance: none;\n text-shadow: none;\n opacity: 1;\n -ms-filter: none;\n filter: none;\n outline: none;\n width: 16px;\n height: 16px;\n opacity: 0.5;\n -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\";\n filter: alpha(opacity=50);\n}\n.modal-content---3hUtG .close---fVKdP:hover,\n.modal-content---3hUtG .close---fVKdP:focus {\n opacity: 1;\n -ms-filter: none;\n filter: none;\n}\n.modal-content---3hUtG .modal-header---1FIQ_ {\n min-height: 54px;\n background-color: #fff;\n border-bottom: 1px solid #ccc;\n padding: 0;\n}\n.modal-content---3hUtG .modal-header---1FIQ_.padding---2pFRu {\n padding: 16px 24px;\n}\n.modal-content---3hUtG .modal-title---2qyMh {\n font-weight: 200;\n color: #222;\n letter-spacing: -0.02em;\n font-size: 18px;\n}\n.modal-content---3hUtG .modal-title---2qyMh.ellipsis---3BkJT {\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.modal-content---3hUtG .modal-body---22INy {\n position: relative;\n padding: 0;\n}\n.modal-content---3hUtG .modal-body---22INy.padding---2pFRu {\n padding: 54px 24px 16px 24px;\n}\n.modal-content---3hUtG .modal-header---1FIQ_ + .modal-body---22INy.padding---2pFRu {\n padding: 16px 24px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF {\n min-height: 56px;\n margin-top: 0;\n text-align: right;\n background-color: #eee;\n padding: 0;\n}\n.modal-content---3hUtG .modal-footer---3bXnF.padding---2pFRu {\n padding: 12px 24px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF button {\n min-width: 80px;\n}\n.modal-content---3hUtG .modal-footer---3bXnF button + button {\n margin-left: 8px;\n}\n", ""]); - -// exports -exports.locals = { - "modal-overlay": "modal-overlay---1x_yE", - "modalOverlay": "modal-overlay---1x_yE", - "centered": "centered---1FYfF", - "modal-content": "modal-content---3hUtG", - "modalContent": "modal-content---3hUtG", - "xs": "xs---8dzzc", - "modal-body": "modal-body---22INy", - "modalBody": "modal-body---22INy", - "modal-header": "modal-header---1FIQ_", - "modalHeader": "modal-header---1FIQ_", - "sm": "sm---3ceuY", - "md": "md---3OKcy", - "lg": "lg---2kMz1", - "close-button": "close-button---2mREQ", - "closeButton": "close-button---2mREQ", - "padding": "padding---2pFRu", - "close": "close---fVKdP", - "modal-title": "modal-title---2qyMh", - "modalTitle": "modal-title---2qyMh", - "ellipsis": "ellipsis---3BkJT", - "modal-footer": "modal-footer---3bXnF", - "modalFooter": "modal-footer---3bXnF" -}; - -/***/ }), - -/***/ "../node_modules/css-loader/lib/css-base.js": -/***/ (function(module, exports) { - -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -// css base code, injected by the css-loader -module.exports = function(useSourceMap) { - var list = []; - - // return the list of modules as css string - list.toString = function toString() { - return this.map(function (item) { - var content = cssWithMappingToString(item, useSourceMap); - if(item[2]) { - return "@media " + item[2] + "{" + content + "}"; - } else { - return content; - } - }).join(""); - }; - - // import a list of modules into the list - list.i = function(modules, mediaQuery) { - if(typeof modules === "string") - modules = [[null, modules, ""]]; - var alreadyImportedModules = {}; - for(var i = 0; i < this.length; i++) { - var id = this[i][0]; - if(typeof id === "number") - alreadyImportedModules[id] = true; - } - for(i = 0; i < modules.length; i++) { - var item = modules[i]; - // skip already imported module - // this implementation is not 100% perfect for weird media query combinations - // when a module is imported multiple times with different media queries. - // I hope this will never occur (Hey this way we have smaller bundles) - if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { - if(mediaQuery && !item[2]) { - item[2] = mediaQuery; - } else if(mediaQuery) { - item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; - } - list.push(item); - } - } - }; - return list; -}; - -function cssWithMappingToString(item, useSourceMap) { - var content = item[1] || ''; - var cssMapping = item[3]; - if (!cssMapping) { - return content; - } - - if (useSourceMap && typeof btoa === 'function') { - var sourceMapping = toComment(cssMapping); - var sourceURLs = cssMapping.sources.map(function (source) { - return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' - }); - - return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); - } - - return [content].join('\n'); -} - -// Adapted from convert-source-map (MIT) -function toComment(sourceMap) { - // eslint-disable-next-line no-undef - var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); - var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; - - return '/*# ' + data + ' */'; -} - - -/***/ }), - -/***/ "../node_modules/css-loader/lib/url/escape.js": -/***/ (function(module, exports) { - -module.exports = function escape(url) { - if (typeof url !== 'string') { - return url - } - // If url is already wrapped in quotes, remove them - if (/^['"].*['"]$/.test(url)) { - url = url.slice(1, -1); - } - // Should url be wrapped? - // See https://drafts.csswg.org/css-values-3/#urls - if (/["'() \t\n]/.test(url)) { - return '"' + url.replace(/"/g, '\\"').replace(/\n/g, '\\n') + '"' - } - - return url -} - - -/***/ }), - -/***/ "../node_modules/object-assign/index.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ - - -/* eslint-disable no-unused-vars */ -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var hasOwnProperty = Object.prototype.hasOwnProperty; -var propIsEnumerable = Object.prototype.propertyIsEnumerable; - -function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); -} - -function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } -} - -module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; -}; - - -/***/ }), - -/***/ "../node_modules/process/browser.js": -/***/ (function(module, exports) { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), - -/***/ "../node_modules/prop-types/checkPropTypes.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var printWarning = function() {}; - -if (process.env.NODE_ENV !== 'production') { - var ReactPropTypesSecret = __webpack_require__("../node_modules/prop-types/lib/ReactPropTypesSecret.js"); - var loggedTypeFailures = {}; - - printWarning = function(text) { - var message = 'Warning: ' + text; - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - }; -} - -/** - * Assert that the values match with the type specs. - * Error messages are memorized and will only be shown once. - * - * @param {object} typeSpecs Map of name to a ReactPropType - * @param {object} values Runtime values that need to be type-checked - * @param {string} location e.g. "prop", "context", "child context" - * @param {string} componentName Name of the component for error messages. - * @param {?Function} getStack Returns the component stack. - * @private - */ -function checkPropTypes(typeSpecs, values, location, componentName, getStack) { - if (process.env.NODE_ENV !== 'production') { - for (var typeSpecName in typeSpecs) { - if (typeSpecs.hasOwnProperty(typeSpecName)) { - var error; - // Prop type validation may throw. In case they do, we don't want to - // fail the render phase where it didn't fail before. So we log it. - // After these have been cleaned up, we'll let them throw. - try { - // This is intentionally an invariant that gets caught. It's the same - // behavior as without this statement except with a better message. - if (typeof typeSpecs[typeSpecName] !== 'function') { - var err = Error( - (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + - 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' - ); - err.name = 'Invariant Violation'; - throw err; - } - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); - } catch (ex) { - error = ex; - } - if (error && !(error instanceof Error)) { - printWarning( - (componentName || 'React class') + ': type specification of ' + - location + ' `' + typeSpecName + '` is invalid; the type checker ' + - 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + - 'You may have forgotten to pass an argument to the type checker ' + - 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + - 'shape all require an argument).' - ) - - } - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - // Only monitor this failure once because there tends to be a lot of the - // same error. - loggedTypeFailures[error.message] = true; - - var stack = getStack ? getStack() : ''; - - printWarning( - 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') - ); - } - } - } - } -} - -module.exports = checkPropTypes; - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("../node_modules/process/browser.js"))) - -/***/ }), - -/***/ "../node_modules/prop-types/factoryWithThrowingShims.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = __webpack_require__("../node_modules/prop-types/lib/ReactPropTypesSecret.js"); - -function emptyFunction() {} - -module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } - var err = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use PropTypes.checkPropTypes() to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - err.name = 'Invariant Violation'; - throw err; - }; - shim.isRequired = shim; - function getShim() { - return shim; - }; - // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. - var ReactPropTypes = { - array: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - - any: shim, - arrayOf: getShim, - element: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim - }; - - ReactPropTypes.checkPropTypes = emptyFunction; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), - -/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var assign = __webpack_require__("../node_modules/object-assign/index.js"); - -var ReactPropTypesSecret = __webpack_require__("../node_modules/prop-types/lib/ReactPropTypesSecret.js"); -var checkPropTypes = __webpack_require__("../node_modules/prop-types/checkPropTypes.js"); - -var printWarning = function() {}; - -if (process.env.NODE_ENV !== 'production') { - printWarning = function(text) { - var message = 'Warning: ' + text; - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - }; -} - -function emptyFunctionThatReturnsNull() { - return null; -} - -module.exports = function(isValidElement, throwOnDirectAccess) { - /* global Symbol */ - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. - - /** - * Returns the iterator method function contained on the iterable object. - * - * Be sure to invoke the function with the iterable as context: - * - * var iteratorFn = getIteratorFn(myIterable); - * if (iteratorFn) { - * var iterator = iteratorFn.call(myIterable); - * ... - * } - * - * @param {?object} maybeIterable - * @return {?function} - */ - function getIteratorFn(maybeIterable) { - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); - if (typeof iteratorFn === 'function') { - return iteratorFn; - } - } - - /** - * Collection of methods that allow declaration and validation of props that are - * supplied to React components. Example usage: - * - * var Props = require('ReactPropTypes'); - * var MyArticle = React.createClass({ - * propTypes: { - * // An optional string prop named "description". - * description: Props.string, - * - * // A required enum prop named "category". - * category: Props.oneOf(['News','Photos']).isRequired, - * - * // A prop named "dialog" that requires an instance of Dialog. - * dialog: Props.instanceOf(Dialog).isRequired - * }, - * render: function() { ... } - * }); - * - * A more formal specification of how these methods are used: - * - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) - * decl := ReactPropTypes.{type}(.isRequired)? - * - * Each and every declaration produces a function with the same signature. This - * allows the creation of custom validation functions. For example: - * - * var MyLink = React.createClass({ - * propTypes: { - * // An optional string or URI prop named "href". - * href: function(props, propName, componentName) { - * var propValue = props[propName]; - * if (propValue != null && typeof propValue !== 'string' && - * !(propValue instanceof URI)) { - * return new Error( - * 'Expected a string or an URI for ' + propName + ' in ' + - * componentName - * ); - * } - * } - * }, - * render: function() {...} - * }); - * - * @internal - */ - - var ANONYMOUS = '<>'; - - // Important! - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. - var ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), - - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - instanceOf: createInstanceTypeChecker, - node: createNodeChecker(), - objectOf: createObjectOfTypeChecker, - oneOf: createEnumTypeChecker, - oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker, - exact: createStrictShapeTypeChecker, - }; - - /** - * inlined Object.is polyfill to avoid requiring consumers ship their own - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - */ - /*eslint-disable no-self-compare*/ - function is(x, y) { - // SameValue algorithm - if (x === y) { - // Steps 1-5, 7-10 - // Steps 6.b-6.e: +0 != -0 - return x !== 0 || 1 / x === 1 / y; - } else { - // Step 6.a: NaN == NaN - return x !== x && y !== y; - } - } - /*eslint-enable no-self-compare*/ - - /** - * We use an Error-like object for backward compatibility as people may call - * PropTypes directly and inspect their output. However, we don't use real - * Errors anymore. We don't inspect their stack anyway, and creating them - * is prohibitively expensive if they are created too often, such as what - * happens in oneOfType() for any type before the one that matched. - */ - function PropTypeError(message) { - this.message = message; - this.stack = ''; - } - // Make `instanceof Error` still work for returned errors. - PropTypeError.prototype = Error.prototype; - - function createChainableTypeChecker(validate) { - if (process.env.NODE_ENV !== 'production') { - var manualPropTypeCallCache = {}; - var manualPropTypeWarningCount = 0; - } - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { - componentName = componentName || ANONYMOUS; - propFullName = propFullName || propName; - - if (secret !== ReactPropTypesSecret) { - if (throwOnDirectAccess) { - // New behavior only for users of `prop-types` package - var err = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use `PropTypes.checkPropTypes()` to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - err.name = 'Invariant Violation'; - throw err; - } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { - // Old behavior for people using React.PropTypes - var cacheKey = componentName + ':' + propName; - if ( - !manualPropTypeCallCache[cacheKey] && - // Avoid spamming the console because they are often not actionable except for lib authors - manualPropTypeWarningCount < 3 - ) { - printWarning( - 'You are manually calling a React.PropTypes validation ' + - 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + - 'and will throw in the standalone `prop-types` package. ' + - 'You may be seeing this warning due to a third-party PropTypes ' + - 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' - ); - manualPropTypeCallCache[cacheKey] = true; - manualPropTypeWarningCount++; - } - } - } - if (props[propName] == null) { - if (isRequired) { - if (props[propName] === null) { - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); - } - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); - } - return null; - } else { - return validate(props, propName, componentName, location, propFullName); - } - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - - return chainedCheckType; - } - - function createPrimitiveTypeChecker(expectedType) { - function validate(props, propName, componentName, location, propFullName, secret) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== expectedType) { - // `propValue` being instance of, say, date/regexp, pass the 'object' - // check, but we can offer a more precise error message here rather than - // 'of type `object`'. - var preciseType = getPreciseType(propValue); - - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunctionThatReturnsNull); - } - - function createArrayOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); - } - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); - } - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createElementTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createInstanceTypeChecker(expectedClass) { - function validate(props, propName, componentName, location, propFullName) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS; - var actualClassName = getClassName(props[propName]); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) { - process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : void 0; - return emptyFunctionThatReturnsNull; - } - - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - for (var i = 0; i < expectedValues.length; i++) { - if (is(propValue, expectedValues[i])) { - return null; - } - } - - var valuesString = JSON.stringify(expectedValues); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); - } - return createChainableTypeChecker(validate); - } - - function createObjectOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); - } - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); - } - for (var key in propValue) { - if (propValue.hasOwnProperty(key)) { - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) { - process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; - return emptyFunctionThatReturnsNull; - } - - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (typeof checker !== 'function') { - printWarning( - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + - 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' - ); - return emptyFunctionThatReturnsNull; - } - } - - function validate(props, propName, componentName, location, propFullName) { - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { - return null; - } - } - - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); - } - return createChainableTypeChecker(validate); - } - - function createNodeChecker() { - function validate(props, propName, componentName, location, propFullName) { - if (!isNode(props[propName])) { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (!checker) { - continue; - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createStrictShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - // We need to check all keys in case some are required but missing from - // props. - var allKeys = assign({}, props[propName], shapeTypes); - for (var key in allKeys) { - var checker = shapeTypes[key]; - if (!checker) { - return new PropTypeError( - 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + - '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + - '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') - ); - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - - return createChainableTypeChecker(validate); - } - - function isNode(propValue) { - switch (typeof propValue) { - case 'number': - case 'string': - case 'undefined': - return true; - case 'boolean': - return !propValue; - case 'object': - if (Array.isArray(propValue)) { - return propValue.every(isNode); - } - if (propValue === null || isValidElement(propValue)) { - return true; - } - - var iteratorFn = getIteratorFn(propValue); - if (iteratorFn) { - var iterator = iteratorFn.call(propValue); - var step; - if (iteratorFn !== propValue.entries) { - while (!(step = iterator.next()).done) { - if (!isNode(step.value)) { - return false; - } - } - } else { - // Iterator will provide entry [k,v] tuples rather than values. - while (!(step = iterator.next()).done) { - var entry = step.value; - if (entry) { - if (!isNode(entry[1])) { - return false; - } - } - } - } - } else { - return false; - } - - return true; - default: - return false; - } - } - - function isSymbol(propType, propValue) { - // Native Symbol. - if (propType === 'symbol') { - return true; - } - - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' - if (propValue['@@toStringTag'] === 'Symbol') { - return true; - } - - // Fallback for non-spec compliant Symbols which are polyfilled. - if (typeof Symbol === 'function' && propValue instanceof Symbol) { - return true; - } - - return false; - } - - // Equivalent of `typeof` but with special handling for array and regexp. - function getPropType(propValue) { - var propType = typeof propValue; - if (Array.isArray(propValue)) { - return 'array'; - } - if (propValue instanceof RegExp) { - // Old webkits (at least until Android 4.0) return 'function' rather than - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ - // passes PropTypes.object. - return 'object'; - } - if (isSymbol(propType, propValue)) { - return 'symbol'; - } - return propType; - } - - // This handles more types than `getPropType`. Only used for error messages. - // See `createPrimitiveTypeChecker`. - function getPreciseType(propValue) { - if (typeof propValue === 'undefined' || propValue === null) { - return '' + propValue; - } - var propType = getPropType(propValue); - if (propType === 'object') { - if (propValue instanceof Date) { - return 'date'; - } else if (propValue instanceof RegExp) { - return 'regexp'; - } - } - return propType; - } - - // Returns a string that is postfixed to a warning about an invalid type. - // For example, "undefined" or "of type array" - function getPostfixForTypeWarning(value) { - var type = getPreciseType(value); - switch (type) { - case 'array': - case 'object': - return 'an ' + type; - case 'boolean': - case 'date': - case 'regexp': - return 'a ' + type; - default: - return type; - } - } - - // Returns class name of the object, if any. - function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) { - return ANONYMOUS; - } - return propValue.constructor.name; - } - - ReactPropTypes.checkPropTypes = checkPropTypes; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("../node_modules/process/browser.js"))) - -/***/ }), - -/***/ "../node_modules/prop-types/index.js": -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (process.env.NODE_ENV !== 'production') { - var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && - Symbol.for && - Symbol.for('react.element')) || - 0xeac7; - - var isValidElement = function(object) { - return typeof object === 'object' && - object !== null && - object.$$typeof === REACT_ELEMENT_TYPE; - }; - - // By explicitly using `prop-types` you are opting into new development behavior. - // http://fb.me/prop-types-in-prod - var throwOnDirectAccess = true; - module.exports = __webpack_require__("../node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess); -} else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__("../node_modules/prop-types/factoryWithThrowingShims.js")(); -} - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("../node_modules/process/browser.js"))) - -/***/ }), - -/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - -module.exports = ReactPropTypesSecret; - - -/***/ }), - -/***/ "../node_modules/react-dom/cjs/react-dom.development.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.7.0 - * react-dom.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - - - -if (process.env.NODE_ENV !== "production") { - (function() { -'use strict'; - -var React = __webpack_require__("../node_modules/react/index.js"); -var _assign = __webpack_require__("../node_modules/object-assign/index.js"); -var checkPropTypes = __webpack_require__("../node_modules/prop-types/checkPropTypes.js"); -var scheduler = __webpack_require__("../node_modules/scheduler/index.js"); -var tracing = __webpack_require__("../node_modules/scheduler/tracing.js"); - -/** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ - -var validateFormat = function () {}; - -{ - validateFormat = function (format) { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - }; -} - -function invariant(condition, format, a, b, c, d, e, f) { - validateFormat(format); - - if (!condition) { - var error = void 0; - if (format === undefined) { - error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error(format.replace(/%s/g, function () { - return args[argIndex++]; - })); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } -} - -// Relying on the `invariant()` implementation lets us -// preserve the format and params in the www builds. - -!React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0; - -var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) { - var funcArgs = Array.prototype.slice.call(arguments, 3); - try { - func.apply(context, funcArgs); - } catch (error) { - this.onError(error); - } -}; - -{ - // In DEV mode, we swap out invokeGuardedCallback for a special version - // that plays more nicely with the browser's DevTools. The idea is to preserve - // "Pause on exceptions" behavior. Because React wraps all user-provided - // functions in invokeGuardedCallback, and the production version of - // invokeGuardedCallback uses a try-catch, all user exceptions are treated - // like caught exceptions, and the DevTools won't pause unless the developer - // takes the extra step of enabling pause on caught exceptions. This is - // untintuitive, though, because even though React has caught the error, from - // the developer's perspective, the error is uncaught. - // - // To preserve the expected "Pause on exceptions" behavior, we don't use a - // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake - // DOM node, and call the user-provided callback from inside an event handler - // for that fake event. If the callback throws, the error is "captured" using - // a global event handler. But because the error happens in a different - // event loop context, it does not interrupt the normal program flow. - // Effectively, this gives us try-catch behavior without actually using - // try-catch. Neat! - - // Check that the browser supports the APIs we need to implement our special - // DEV version of invokeGuardedCallback - if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') { - var fakeNode = document.createElement('react'); - - var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) { - // If document doesn't exist we know for sure we will crash in this method - // when we call document.createEvent(). However this can cause confusing - // errors: https://github.com/facebookincubator/create-react-app/issues/3482 - // So we preemptively throw with a better message instead. - !(typeof document !== 'undefined') ? invariant(false, 'The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.') : void 0; - var evt = document.createEvent('Event'); - - // Keeps track of whether the user-provided callback threw an error. We - // set this to true at the beginning, then set it to false right after - // calling the function. If the function errors, `didError` will never be - // set to false. This strategy works even if the browser is flaky and - // fails to call our global error handler, because it doesn't rely on - // the error event at all. - var didError = true; - - // Keeps track of the value of window.event so that we can reset it - // during the callback to let user code access window.event in the - // browsers that support it. - var windowEvent = window.event; - - // Keeps track of the descriptor of window.event to restore it after event - // dispatching: https://github.com/facebook/react/issues/13688 - var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); - - // Create an event handler for our fake event. We will synchronously - // dispatch our fake event using `dispatchEvent`. Inside the handler, we - // call the user-provided callback. - var funcArgs = Array.prototype.slice.call(arguments, 3); - function callCallback() { - // We immediately remove the callback from event listeners so that - // nested `invokeGuardedCallback` calls do not clash. Otherwise, a - // nested call would trigger the fake event handlers of any call higher - // in the stack. - fakeNode.removeEventListener(evtType, callCallback, false); - - // We check for window.hasOwnProperty('event') to prevent the - // window.event assignment in both IE <= 10 as they throw an error - // "Member not found" in strict mode, and in Firefox which does not - // support window.event. - if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) { - window.event = windowEvent; - } - - func.apply(context, funcArgs); - didError = false; - } - - // Create a global error event handler. We use this to capture the value - // that was thrown. It's possible that this error handler will fire more - // than once; for example, if non-React code also calls `dispatchEvent` - // and a handler for that event throws. We should be resilient to most of - // those cases. Even if our error event handler fires more than once, the - // last error event is always used. If the callback actually does error, - // we know that the last error event is the correct one, because it's not - // possible for anything else to have happened in between our callback - // erroring and the code that follows the `dispatchEvent` call below. If - // the callback doesn't error, but the error event was fired, we know to - // ignore it because `didError` will be false, as described above. - var error = void 0; - // Use this to track whether the error event is ever called. - var didSetError = false; - var isCrossOriginError = false; - - function handleWindowError(event) { - error = event.error; - didSetError = true; - if (error === null && event.colno === 0 && event.lineno === 0) { - isCrossOriginError = true; - } - if (event.defaultPrevented) { - // Some other error handler has prevented default. - // Browsers silence the error report if this happens. - // We'll remember this to later decide whether to log it or not. - if (error != null && typeof error === 'object') { - try { - error._suppressLogging = true; - } catch (inner) { - // Ignore. - } - } - } - } - - // Create a fake event type. - var evtType = 'react-' + (name ? name : 'invokeguardedcallback'); - - // Attach our event handlers - window.addEventListener('error', handleWindowError); - fakeNode.addEventListener(evtType, callCallback, false); - - // Synchronously dispatch our fake event. If the user-provided function - // errors, it will trigger our global error handler. - evt.initEvent(evtType, false, false); - fakeNode.dispatchEvent(evt); - - if (windowEventDescriptor) { - Object.defineProperty(window, 'event', windowEventDescriptor); - } - - if (didError) { - if (!didSetError) { - // The callback errored, but the error event never fired. - error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.'); - } else if (isCrossOriginError) { - error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.'); - } - this.onError(error); - } - - // Remove our event listeners - window.removeEventListener('error', handleWindowError); - }; - - invokeGuardedCallbackImpl = invokeGuardedCallbackDev; - } -} - -var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; - -// Used by Fiber to simulate a try-catch. -var hasError = false; -var caughtError = null; - -// Used by event system to capture/rethrow the first error. -var hasRethrowError = false; -var rethrowError = null; - -var reporter = { - onError: function (error) { - hasError = true; - caughtError = error; - } -}; - -/** - * Call a function while guarding against errors that happens within it. - * Returns an error if it throws, otherwise null. - * - * In production, this is implemented using a try-catch. The reason we don't - * use a try-catch directly is so that we can swap out a different - * implementation in DEV mode. - * - * @param {String} name of the guard to use for logging or debugging - * @param {Function} func The function to invoke - * @param {*} context The context to use when calling the function - * @param {...*} args Arguments for function - */ -function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { - hasError = false; - caughtError = null; - invokeGuardedCallbackImpl$1.apply(reporter, arguments); -} - -/** - * Same as invokeGuardedCallback, but instead of returning an error, it stores - * it in a global so it can be rethrown by `rethrowCaughtError` later. - * TODO: See if caughtError and rethrowError can be unified. - * - * @param {String} name of the guard to use for logging or debugging - * @param {Function} func The function to invoke - * @param {*} context The context to use when calling the function - * @param {...*} args Arguments for function - */ -function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { - invokeGuardedCallback.apply(this, arguments); - if (hasError) { - var error = clearCaughtError(); - if (!hasRethrowError) { - hasRethrowError = true; - rethrowError = error; - } - } -} - -/** - * During execution of guarded functions we will capture the first error which - * we will rethrow to be handled by the top level error handler. - */ -function rethrowCaughtError() { - if (hasRethrowError) { - var error = rethrowError; - hasRethrowError = false; - rethrowError = null; - throw error; - } -} - -function hasCaughtError() { - return hasError; -} - -function clearCaughtError() { - if (hasError) { - var error = caughtError; - hasError = false; - caughtError = null; - return error; - } else { - invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.'); - } -} - -/** - * Injectable ordering of event plugins. - */ -var eventPluginOrder = null; - -/** - * Injectable mapping from names to event plugin modules. - */ -var namesToPlugins = {}; - -/** - * Recomputes the plugin list using the injected plugins and plugin ordering. - * - * @private - */ -function recomputePluginOrdering() { - if (!eventPluginOrder) { - // Wait until an `eventPluginOrder` is injected. - return; - } - for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName]; - var pluginIndex = eventPluginOrder.indexOf(pluginName); - !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0; - if (plugins[pluginIndex]) { - continue; - } - !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0; - plugins[pluginIndex] = pluginModule; - var publishedEvents = pluginModule.eventTypes; - for (var eventName in publishedEvents) { - !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0; - } - } -} - -/** - * Publishes an event so that it can be dispatched by the supplied plugin. - * - * @param {object} dispatchConfig Dispatch configuration for the event. - * @param {object} PluginModule Plugin publishing the event. - * @return {boolean} True if the event was successfully published. - * @private - */ -function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { - !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0; - eventNameDispatchConfigs[eventName] = dispatchConfig; - - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - if (phasedRegistrationNames) { - for (var phaseName in phasedRegistrationNames) { - if (phasedRegistrationNames.hasOwnProperty(phaseName)) { - var phasedRegistrationName = phasedRegistrationNames[phaseName]; - publishRegistrationName(phasedRegistrationName, pluginModule, eventName); - } - } - return true; - } else if (dispatchConfig.registrationName) { - publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); - return true; - } - return false; -} - -/** - * Publishes a registration name that is used to identify dispatched events. - * - * @param {string} registrationName Registration name to add. - * @param {object} PluginModule Plugin publishing the event. - * @private - */ -function publishRegistrationName(registrationName, pluginModule, eventName) { - !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0; - registrationNameModules[registrationName] = pluginModule; - registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; - - { - var lowerCasedName = registrationName.toLowerCase(); - possibleRegistrationNames[lowerCasedName] = registrationName; - - if (registrationName === 'onDoubleClick') { - possibleRegistrationNames.ondblclick = registrationName; - } - } -} - -/** - * Registers plugins so that they can extract and dispatch events. - * - * @see {EventPluginHub} - */ - -/** - * Ordered list of injected plugins. - */ -var plugins = []; - -/** - * Mapping from event name to dispatch config - */ -var eventNameDispatchConfigs = {}; - -/** - * Mapping from registration name to plugin module - */ -var registrationNameModules = {}; - -/** - * Mapping from registration name to event name - */ -var registrationNameDependencies = {}; - -/** - * Mapping from lowercase registration names to the properly cased version, - * used to warn in the case of missing event handlers. Available - * only in true. - * @type {Object} - */ -var possibleRegistrationNames = {}; -// Trust the developer to only use possibleRegistrationNames in true - -/** - * Injects an ordering of plugins (by plugin name). This allows the ordering - * to be decoupled from injection of the actual plugins so that ordering is - * always deterministic regardless of packaging, on-the-fly injection, etc. - * - * @param {array} InjectedEventPluginOrder - * @internal - * @see {EventPluginHub.injection.injectEventPluginOrder} - */ -function injectEventPluginOrder(injectedEventPluginOrder) { - !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0; - // Clone the ordering so it cannot be dynamically mutated. - eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); - recomputePluginOrdering(); -} - -/** - * Injects plugins to be used by `EventPluginHub`. The plugin names must be - * in the ordering injected by `injectEventPluginOrder`. - * - * Plugins can be injected as part of page initialization or on-the-fly. - * - * @param {object} injectedNamesToPlugins Map from names to plugin modules. - * @internal - * @see {EventPluginHub.injection.injectEventPluginsByName} - */ -function injectEventPluginsByName(injectedNamesToPlugins) { - var isOrderingDirty = false; - for (var pluginName in injectedNamesToPlugins) { - if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { - continue; - } - var pluginModule = injectedNamesToPlugins[pluginName]; - if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { - !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0; - namesToPlugins[pluginName] = pluginModule; - isOrderingDirty = true; - } - } - if (isOrderingDirty) { - recomputePluginOrdering(); - } -} - -/** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ - -var warningWithoutStack = function () {}; - -{ - warningWithoutStack = function (condition, format) { - for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - if (format === undefined) { - throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument'); - } - if (args.length > 8) { - // Check before the condition to catch violations early. - throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); - } - if (condition) { - return; - } - if (typeof console !== 'undefined') { - var argsWithFormat = args.map(function (item) { - return '' + item; - }); - argsWithFormat.unshift('Warning: ' + format); - - // We intentionally don't use spread (or .apply) directly because it - // breaks IE9: https://github.com/facebook/react/issues/13610 - Function.prototype.apply.call(console.error, console, argsWithFormat); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - throw new Error(message); - } catch (x) {} - }; -} - -var warningWithoutStack$1 = warningWithoutStack; - -var getFiberCurrentPropsFromNode = null; -var getInstanceFromNode = null; -var getNodeFromInstance = null; - -function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { - getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl; - getInstanceFromNode = getInstanceFromNodeImpl; - getNodeFromInstance = getNodeFromInstanceImpl; - { - !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0; - } -} - -var validateEventDispatches = void 0; -{ - validateEventDispatches = function (event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - - var listenersIsArr = Array.isArray(dispatchListeners); - var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; - - var instancesIsArr = Array.isArray(dispatchInstances); - var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; - - !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0; - }; -} - -/** - * Dispatch the event to the listener. - * @param {SyntheticEvent} event SyntheticEvent to handle - * @param {function} listener Application-level callback - * @param {*} inst Internal component instance - */ -function executeDispatch(event, listener, inst) { - var type = event.type || 'unknown-event'; - event.currentTarget = getNodeFromInstance(inst); - invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); - event.currentTarget = null; -} - -/** - * Standard/simple iteration through an event's collected dispatches. - */ -function executeDispatchesInOrder(event) { - var dispatchListeners = event._dispatchListeners; - var dispatchInstances = event._dispatchInstances; - { - validateEventDispatches(event); - } - if (Array.isArray(dispatchListeners)) { - for (var i = 0; i < dispatchListeners.length; i++) { - if (event.isPropagationStopped()) { - break; - } - // Listeners and Instances are two parallel arrays that are always in sync. - executeDispatch(event, dispatchListeners[i], dispatchInstances[i]); - } - } else if (dispatchListeners) { - executeDispatch(event, dispatchListeners, dispatchInstances); - } - event._dispatchListeners = null; - event._dispatchInstances = null; -} - -/** - * @see executeDispatchesInOrderStopAtTrueImpl - */ - - -/** - * Execution of a "direct" dispatch - there must be at most one dispatch - * accumulated on the event or it is considered an error. It doesn't really make - * sense for an event with multiple dispatches (bubbled) to keep track of the - * return values at each dispatch execution, but it does tend to make sense when - * dealing with "direct" dispatches. - * - * @return {*} The return value of executing the single dispatch. - */ - - -/** - * @param {SyntheticEvent} event - * @return {boolean} True iff number of dispatches accumulated is greater than 0. - */ - -/** - * Accumulates items that must not be null or undefined into the first one. This - * is used to conserve memory by avoiding array allocations, and thus sacrifices - * API cleanness. Since `current` can be null before being passed in and not - * null after this function, make sure to assign it back to `current`: - * - * `a = accumulateInto(a, b);` - * - * This API should be sparingly used. Try `accumulate` for something cleaner. - * - * @return {*|array<*>} An accumulation of items. - */ - -function accumulateInto(current, next) { - !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0; - - if (current == null) { - return next; - } - - // Both are not empty. Warning: Never call x.concat(y) when you are not - // certain that x is an Array (x could be a string with concat method). - if (Array.isArray(current)) { - if (Array.isArray(next)) { - current.push.apply(current, next); - return current; - } - current.push(next); - return current; - } - - if (Array.isArray(next)) { - // A bit too dangerous to mutate `next`. - return [current].concat(next); - } - - return [current, next]; -} - -/** - * @param {array} arr an "accumulation" of items which is either an Array or - * a single item. Useful when paired with the `accumulate` module. This is a - * simple utility that allows us to reason about a collection of items, but - * handling the case when there is exactly one item (and we do not need to - * allocate an array). - * @param {function} cb Callback invoked with each element or a collection. - * @param {?} [scope] Scope used as `this` in a callback. - */ -function forEachAccumulated(arr, cb, scope) { - if (Array.isArray(arr)) { - arr.forEach(cb, scope); - } else if (arr) { - cb.call(scope, arr); - } -} - -/** - * Internal queue of events that have accumulated their dispatches and are - * waiting to have their dispatches executed. - */ -var eventQueue = null; - -/** - * Dispatches an event and releases it back into the pool, unless persistent. - * - * @param {?object} event Synthetic event to be dispatched. - * @private - */ -var executeDispatchesAndRelease = function (event) { - if (event) { - executeDispatchesInOrder(event); - - if (!event.isPersistent()) { - event.constructor.release(event); - } - } -}; -var executeDispatchesAndReleaseTopLevel = function (e) { - return executeDispatchesAndRelease(e); -}; - -function isInteractive(tag) { - return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; -} - -function shouldPreventMouseEvent(name, type, props) { - switch (name) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - return !!(props.disabled && isInteractive(type)); - default: - return false; - } -} - -/** - * This is a unified interface for event plugins to be installed and configured. - * - * Event plugins can implement the following properties: - * - * `extractEvents` {function(string, DOMEventTarget, string, object): *} - * Required. When a top-level event is fired, this method is expected to - * extract synthetic events that will in turn be queued and dispatched. - * - * `eventTypes` {object} - * Optional, plugins that fire events must publish a mapping of registration - * names that are used to register listeners. Values of this mapping must - * be objects that contain `registrationName` or `phasedRegistrationNames`. - * - * `executeDispatch` {function(object, function, string)} - * Optional, allows plugins to override how an event gets dispatched. By - * default, the listener is simply invoked. - * - * Each plugin that is injected into `EventsPluginHub` is immediately operable. - * - * @public - */ - -/** - * Methods for injecting dependencies. - */ -var injection = { - /** - * @param {array} InjectedEventPluginOrder - * @public - */ - injectEventPluginOrder: injectEventPluginOrder, - - /** - * @param {object} injectedNamesToPlugins Map from names to plugin modules. - */ - injectEventPluginsByName: injectEventPluginsByName -}; - -/** - * @param {object} inst The instance, which is the source of events. - * @param {string} registrationName Name of listener (e.g. `onClick`). - * @return {?function} The stored callback. - */ -function getListener(inst, registrationName) { - var listener = void 0; - - // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not - // live here; needs to be moved to a better place soon - var stateNode = inst.stateNode; - if (!stateNode) { - // Work in progress (ex: onload events in incremental mode). - return null; - } - var props = getFiberCurrentPropsFromNode(stateNode); - if (!props) { - // Work in progress. - return null; - } - listener = props[registrationName]; - if (shouldPreventMouseEvent(registrationName, inst.type, props)) { - return null; - } - !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0; - return listener; -} - -/** - * Allows registered plugins an opportunity to extract events from top-level - * native browser events. - * - * @return {*} An accumulation of synthetic events. - * @internal - */ -function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = null; - for (var i = 0; i < plugins.length; i++) { - // Not every plugin in the ordering may be loaded at runtime. - var possiblePlugin = plugins[i]; - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - if (extractedEvents) { - events = accumulateInto(events, extractedEvents); - } - } - } - return events; -} - -function runEventsInBatch(events) { - if (events !== null) { - eventQueue = accumulateInto(eventQueue, events); - } - - // Set `eventQueue` to null before processing it so that we can tell if more - // events get enqueued while processing. - var processingEventQueue = eventQueue; - eventQueue = null; - - if (!processingEventQueue) { - return; - } - - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); - !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0; - // This would be a good time to rethrow if any of the event handlers threw. - rethrowCaughtError(); -} - -function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); - runEventsInBatch(events); -} - -var FunctionComponent = 0; -var ClassComponent = 1; -var IndeterminateComponent = 2; // Before we know whether it is function or class -var HostRoot = 3; // Root of a host tree. Could be nested inside another node. -var HostPortal = 4; // A subtree. Could be an entry point to a different renderer. -var HostComponent = 5; -var HostText = 6; -var Fragment = 7; -var Mode = 8; -var ContextConsumer = 9; -var ContextProvider = 10; -var ForwardRef = 11; -var Profiler = 12; -var SuspenseComponent = 13; -var MemoComponent = 14; -var SimpleMemoComponent = 15; -var LazyComponent = 16; -var IncompleteClassComponent = 17; - -var randomKey = Math.random().toString(36).slice(2); -var internalInstanceKey = '__reactInternalInstance$' + randomKey; -var internalEventHandlersKey = '__reactEventHandlers$' + randomKey; - -function precacheFiberNode(hostInst, node) { - node[internalInstanceKey] = hostInst; -} - -/** - * Given a DOM node, return the closest ReactDOMComponent or - * ReactDOMTextComponent instance ancestor. - */ -function getClosestInstanceFromNode(node) { - if (node[internalInstanceKey]) { - return node[internalInstanceKey]; - } - - while (!node[internalInstanceKey]) { - if (node.parentNode) { - node = node.parentNode; - } else { - // Top of the tree. This node must not be part of a React tree (or is - // unmounted, potentially). - return null; - } - } - - var inst = node[internalInstanceKey]; - if (inst.tag === HostComponent || inst.tag === HostText) { - // In Fiber, this will always be the deepest root. - return inst; - } - - return null; -} - -/** - * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent - * instance, or null if the node was not rendered by this React. - */ -function getInstanceFromNode$1(node) { - var inst = node[internalInstanceKey]; - if (inst) { - if (inst.tag === HostComponent || inst.tag === HostText) { - return inst; - } else { - return null; - } - } - return null; -} - -/** - * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding - * DOM node. - */ -function getNodeFromInstance$1(inst) { - if (inst.tag === HostComponent || inst.tag === HostText) { - // In Fiber this, is just the state node right now. We assume it will be - // a host component or host text. - return inst.stateNode; - } - - // Without this first invariant, passing a non-DOM-component triggers the next - // invariant for a missing parent, which is super confusing. - invariant(false, 'getNodeFromInstance: Invalid argument.'); -} - -function getFiberCurrentPropsFromNode$1(node) { - return node[internalEventHandlersKey] || null; -} - -function updateFiberProps(node, props) { - node[internalEventHandlersKey] = props; -} - -function getParent(inst) { - do { - inst = inst.return; - // TODO: If this is a HostRoot we might want to bail out. - // That is depending on if we want nested subtrees (layers) to bubble - // events to their parent. We could also go through parentNode on the - // host node but that wouldn't work for React Native and doesn't let us - // do the portal feature. - } while (inst && inst.tag !== HostComponent); - if (inst) { - return inst; - } - return null; -} - -/** - * Return the lowest common ancestor of A and B, or null if they are in - * different trees. - */ -function getLowestCommonAncestor(instA, instB) { - var depthA = 0; - for (var tempA = instA; tempA; tempA = getParent(tempA)) { - depthA++; - } - var depthB = 0; - for (var tempB = instB; tempB; tempB = getParent(tempB)) { - depthB++; - } - - // If A is deeper, crawl up. - while (depthA - depthB > 0) { - instA = getParent(instA); - depthA--; - } - - // If B is deeper, crawl up. - while (depthB - depthA > 0) { - instB = getParent(instB); - depthB--; - } - - // Walk in lockstep until we find a match. - var depth = depthA; - while (depth--) { - if (instA === instB || instA === instB.alternate) { - return instA; - } - instA = getParent(instA); - instB = getParent(instB); - } - return null; -} - -/** - * Return if A is an ancestor of B. - */ - - -/** - * Return the parent instance of the passed-in instance. - */ - - -/** - * Simulates the traversal of a two-phase, capture/bubble event dispatch. - */ -function traverseTwoPhase(inst, fn, arg) { - var path = []; - while (inst) { - path.push(inst); - inst = getParent(inst); - } - var i = void 0; - for (i = path.length; i-- > 0;) { - fn(path[i], 'captured', arg); - } - for (i = 0; i < path.length; i++) { - fn(path[i], 'bubbled', arg); - } -} - -/** - * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that - * should would receive a `mouseEnter` or `mouseLeave` event. - * - * Does not invoke the callback on the nearest common ancestor because nothing - * "entered" or "left" that element. - */ -function traverseEnterLeave(from, to, fn, argFrom, argTo) { - var common = from && to ? getLowestCommonAncestor(from, to) : null; - var pathFrom = []; - while (true) { - if (!from) { - break; - } - if (from === common) { - break; - } - var alternate = from.alternate; - if (alternate !== null && alternate === common) { - break; - } - pathFrom.push(from); - from = getParent(from); - } - var pathTo = []; - while (true) { - if (!to) { - break; - } - if (to === common) { - break; - } - var _alternate = to.alternate; - if (_alternate !== null && _alternate === common) { - break; - } - pathTo.push(to); - to = getParent(to); - } - for (var i = 0; i < pathFrom.length; i++) { - fn(pathFrom[i], 'bubbled', argFrom); - } - for (var _i = pathTo.length; _i-- > 0;) { - fn(pathTo[_i], 'captured', argTo); - } -} - -/** - * Some event types have a notion of different registration names for different - * "phases" of propagation. This finds listeners by a given phase. - */ -function listenerAtPhase(inst, event, propagationPhase) { - var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; - return getListener(inst, registrationName); -} - -/** - * A small set of propagation patterns, each of which will accept a small amount - * of information, and generate a set of "dispatch ready event objects" - which - * are sets of events that have already been annotated with a set of dispatched - * listener functions/ids. The API is designed this way to discourage these - * propagation strategies from actually executing the dispatches, since we - * always want to collect the entire set of dispatches before executing even a - * single one. - */ - -/** - * Tags a `SyntheticEvent` with dispatched listeners. Creating this function - * here, allows us to not have to bind or create functions for each event. - * Mutating the event's members allows us to not have to create a wrapping - * "dispatch" object that pairs the event with the listener. - */ -function accumulateDirectionalDispatches(inst, phase, event) { - { - !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0; - } - var listener = listenerAtPhase(inst, event, phase); - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } -} - -/** - * Collect dispatches (must be entirely collected before dispatching - see unit - * tests). Lazily allocate the array to conserve memory. We must loop through - * each event and perform the traversal for each one. We cannot perform a - * single traversal for the entire collection of events because each event may - * have a different target. - */ -function accumulateTwoPhaseDispatchesSingle(event) { - if (event && event.dispatchConfig.phasedRegistrationNames) { - traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); - } -} - -/** - * Accumulates without regard to direction, does not look for phased - * registration names. Same as `accumulateDirectDispatchesSingle` but without - * requiring that the `dispatchMarker` be the same as the dispatched ID. - */ -function accumulateDispatches(inst, ignoredDirection, event) { - if (inst && event && event.dispatchConfig.registrationName) { - var registrationName = event.dispatchConfig.registrationName; - var listener = getListener(inst, registrationName); - if (listener) { - event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); - event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); - } - } -} - -/** - * Accumulates dispatches on an `SyntheticEvent`, but only for the - * `dispatchMarker`. - * @param {SyntheticEvent} event - */ -function accumulateDirectDispatchesSingle(event) { - if (event && event.dispatchConfig.registrationName) { - accumulateDispatches(event._targetInst, null, event); - } -} - -function accumulateTwoPhaseDispatches(events) { - forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); -} - - - -function accumulateEnterLeaveDispatches(leave, enter, from, to) { - traverseEnterLeave(from, to, accumulateDispatches, leave, enter); -} - -function accumulateDirectDispatches(events) { - forEachAccumulated(events, accumulateDirectDispatchesSingle); -} - -var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); - -// Do not uses the below two methods directly! -// Instead use constants exported from DOMTopLevelEventTypes in ReactDOM. -// (It is the only module that is allowed to access these methods.) - -function unsafeCastStringToDOMTopLevelType(topLevelType) { - return topLevelType; -} - -function unsafeCastDOMTopLevelTypeToString(topLevelType) { - return topLevelType; -} - -/** - * Generate a mapping of standard vendor prefixes using the defined style property and event name. - * - * @param {string} styleProp - * @param {string} eventName - * @returns {object} - */ -function makePrefixMap(styleProp, eventName) { - var prefixes = {}; - - prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); - prefixes['Webkit' + styleProp] = 'webkit' + eventName; - prefixes['Moz' + styleProp] = 'moz' + eventName; - - return prefixes; -} - -/** - * A list of event names to a configurable list of vendor prefixes. - */ -var vendorPrefixes = { - animationend: makePrefixMap('Animation', 'AnimationEnd'), - animationiteration: makePrefixMap('Animation', 'AnimationIteration'), - animationstart: makePrefixMap('Animation', 'AnimationStart'), - transitionend: makePrefixMap('Transition', 'TransitionEnd') -}; - -/** - * Event names that have already been detected and prefixed (if applicable). - */ -var prefixedEventNames = {}; - -/** - * Element to check for prefixes on. - */ -var style = {}; - -/** - * Bootstrap if a DOM exists. - */ -if (canUseDOM) { - style = document.createElement('div').style; - - // On some platforms, in particular some releases of Android 4.x, - // the un-prefixed "animation" and "transition" properties are defined on the - // style object but the events that fire will still be prefixed, so we need - // to check if the un-prefixed events are usable, and if not remove them from the map. - if (!('AnimationEvent' in window)) { - delete vendorPrefixes.animationend.animation; - delete vendorPrefixes.animationiteration.animation; - delete vendorPrefixes.animationstart.animation; - } - - // Same as above - if (!('TransitionEvent' in window)) { - delete vendorPrefixes.transitionend.transition; - } -} - -/** - * Attempts to determine the correct vendor prefixed event name. - * - * @param {string} eventName - * @returns {string} - */ -function getVendorPrefixedEventName(eventName) { - if (prefixedEventNames[eventName]) { - return prefixedEventNames[eventName]; - } else if (!vendorPrefixes[eventName]) { - return eventName; - } - - var prefixMap = vendorPrefixes[eventName]; - - for (var styleProp in prefixMap) { - if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) { - return prefixedEventNames[eventName] = prefixMap[styleProp]; - } - } - - return eventName; -} - -/** - * To identify top level events in ReactDOM, we use constants defined by this - * module. This is the only module that uses the unsafe* methods to express - * that the constants actually correspond to the browser event names. This lets - * us save some bundle size by avoiding a top level type -> event name map. - * The rest of ReactDOM code should import top level types from this file. - */ -var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort'); -var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend')); -var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration')); -var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart')); -var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur'); -var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay'); -var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough'); -var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel'); -var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change'); -var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click'); -var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close'); -var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend'); -var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart'); -var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate'); -var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu'); -var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy'); -var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut'); -var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick'); -var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick'); -var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag'); -var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend'); -var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter'); -var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit'); -var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave'); -var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover'); -var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart'); -var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop'); -var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange'); -var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied'); -var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted'); -var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended'); -var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error'); -var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus'); -var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture'); -var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input'); -var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid'); -var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown'); -var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress'); -var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup'); -var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load'); -var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart'); -var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata'); -var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata'); -var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture'); -var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown'); -var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove'); -var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout'); -var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover'); -var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup'); -var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste'); -var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause'); -var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play'); -var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing'); -var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel'); -var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown'); - - -var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove'); -var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout'); -var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover'); -var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup'); -var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress'); -var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange'); -var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset'); -var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll'); -var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked'); -var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking'); -var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange'); -var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled'); -var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit'); -var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend'); -var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput'); -var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate'); -var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle'); -var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel'); -var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend'); -var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove'); -var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart'); -var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend')); -var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange'); -var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting'); -var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); - -// List of events that need to be individually attached to media elements. -// Note that events in this list will *not* be listened to at the top level -// unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`. -var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING]; - -function getRawEventName(topLevelType) { - return unsafeCastDOMTopLevelTypeToString(topLevelType); -} - -/** - * These variables store information about text content of a target node, - * allowing comparison of content before and after a given event. - * - * Identify the node where selection currently begins, then observe - * both its text content and its current position in the DOM. Since the - * browser may natively replace the target node during composition, we can - * use its position to find its replacement. - * - * - */ - -var root = null; -var startText = null; -var fallbackText = null; - -function initialize(nativeEventTarget) { - root = nativeEventTarget; - startText = getText(); - return true; -} - -function reset() { - root = null; - startText = null; - fallbackText = null; -} - -function getData() { - if (fallbackText) { - return fallbackText; - } - - var start = void 0; - var startValue = startText; - var startLength = startValue.length; - var end = void 0; - var endValue = getText(); - var endLength = endValue.length; - - for (start = 0; start < startLength; start++) { - if (startValue[start] !== endValue[start]) { - break; - } - } - - var minEnd = startLength - start; - for (end = 1; end <= minEnd; end++) { - if (startValue[startLength - end] !== endValue[endLength - end]) { - break; - } - } - - var sliceTail = end > 1 ? 1 - end : undefined; - fallbackText = endValue.slice(start, sliceTail); - return fallbackText; -} - -function getText() { - if ('value' in root) { - return root.value; - } - return root.textContent; -} - -/* eslint valid-typeof: 0 */ - -var EVENT_POOL_SIZE = 10; - -/** - * @interface Event - * @see http://www.w3.org/TR/DOM-Level-3-Events/ - */ -var EventInterface = { - type: null, - target: null, - // currentTarget is set when dispatching; no use in copying it here - currentTarget: function () { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function (event) { - return event.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null -}; - -function functionThatReturnsTrue() { - return true; -} - -function functionThatReturnsFalse() { - return false; -} - -/** - * Synthetic events are dispatched by event plugins, typically in response to a - * top-level event delegation handler. - * - * These systems should generally use pooling to reduce the frequency of garbage - * collection. The system should check `isPersistent` to determine whether the - * event should be released into the pool after being dispatched. Users that - * need a persisted event should invoke `persist`. - * - * Synthetic events (and subclasses) implement the DOM Level 3 Events API by - * normalizing browser quirks. Subclasses do not necessarily have to implement a - * DOM interface; custom application-specific events can also subclass this. - * - * @param {object} dispatchConfig Configuration used to dispatch this event. - * @param {*} targetInst Marker identifying the event target. - * @param {object} nativeEvent Native browser event. - * @param {DOMEventTarget} nativeEventTarget Target node. - */ -function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { - { - // these have a getter/setter for warnings - delete this.nativeEvent; - delete this.preventDefault; - delete this.stopPropagation; - delete this.isDefaultPrevented; - delete this.isPropagationStopped; - } - - this.dispatchConfig = dispatchConfig; - this._targetInst = targetInst; - this.nativeEvent = nativeEvent; - - var Interface = this.constructor.Interface; - for (var propName in Interface) { - if (!Interface.hasOwnProperty(propName)) { - continue; - } - { - delete this[propName]; // this has a getter/setter for warnings - } - var normalize = Interface[propName]; - if (normalize) { - this[propName] = normalize(nativeEvent); - } else { - if (propName === 'target') { - this.target = nativeEventTarget; - } else { - this[propName] = nativeEvent[propName]; - } - } - } - - var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; - if (defaultPrevented) { - this.isDefaultPrevented = functionThatReturnsTrue; - } else { - this.isDefaultPrevented = functionThatReturnsFalse; - } - this.isPropagationStopped = functionThatReturnsFalse; - return this; -} - -_assign(SyntheticEvent.prototype, { - preventDefault: function () { - this.defaultPrevented = true; - var event = this.nativeEvent; - if (!event) { - return; - } - - if (event.preventDefault) { - event.preventDefault(); - } else if (typeof event.returnValue !== 'unknown') { - event.returnValue = false; - } - this.isDefaultPrevented = functionThatReturnsTrue; - }, - - stopPropagation: function () { - var event = this.nativeEvent; - if (!event) { - return; - } - - if (event.stopPropagation) { - event.stopPropagation(); - } else if (typeof event.cancelBubble !== 'unknown') { - // The ChangeEventPlugin registers a "propertychange" event for - // IE. This event does not support bubbling or cancelling, and - // any references to cancelBubble throw "Member not found". A - // typeof check of "unknown" circumvents this issue (and is also - // IE specific). - event.cancelBubble = true; - } - - this.isPropagationStopped = functionThatReturnsTrue; - }, - - /** - * We release all dispatched `SyntheticEvent`s after each event loop, adding - * them back into the pool. This allows a way to hold onto a reference that - * won't be added back into the pool. - */ - persist: function () { - this.isPersistent = functionThatReturnsTrue; - }, - - /** - * Checks if this event should be released back into the pool. - * - * @return {boolean} True if this should not be released, false otherwise. - */ - isPersistent: functionThatReturnsFalse, - - /** - * `PooledClass` looks for `destructor` on each instance it releases. - */ - destructor: function () { - var Interface = this.constructor.Interface; - for (var propName in Interface) { - { - Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); - } - } - this.dispatchConfig = null; - this._targetInst = null; - this.nativeEvent = null; - this.isDefaultPrevented = functionThatReturnsFalse; - this.isPropagationStopped = functionThatReturnsFalse; - this._dispatchListeners = null; - this._dispatchInstances = null; - { - Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)); - Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse)); - Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse)); - Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {})); - Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {})); - } - } -}); - -SyntheticEvent.Interface = EventInterface; - -/** - * Helper to reduce boilerplate when creating subclasses. - */ -SyntheticEvent.extend = function (Interface) { - var Super = this; - - var E = function () {}; - E.prototype = Super.prototype; - var prototype = new E(); - - function Class() { - return Super.apply(this, arguments); - } - _assign(prototype, Class.prototype); - Class.prototype = prototype; - Class.prototype.constructor = Class; - - Class.Interface = _assign({}, Super.Interface, Interface); - Class.extend = Super.extend; - addEventPoolingTo(Class); - - return Class; -}; - -addEventPoolingTo(SyntheticEvent); - -/** - * Helper to nullify syntheticEvent instance properties when destructing - * - * @param {String} propName - * @param {?object} getVal - * @return {object} defineProperty object - */ -function getPooledWarningPropertyDefinition(propName, getVal) { - var isFunction = typeof getVal === 'function'; - return { - configurable: true, - set: set, - get: get - }; - - function set(val) { - var action = isFunction ? 'setting the method' : 'setting the property'; - warn(action, 'This is effectively a no-op'); - return val; - } - - function get() { - var action = isFunction ? 'accessing the method' : 'accessing the property'; - var result = isFunction ? 'This is a no-op function' : 'This is set to null'; - warn(action, result); - return getVal; - } - - function warn(action, result) { - var warningCondition = false; - !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0; - } -} - -function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { - var EventConstructor = this; - if (EventConstructor.eventPool.length) { - var instance = EventConstructor.eventPool.pop(); - EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst); - return instance; - } - return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); -} - -function releasePooledEvent(event) { - var EventConstructor = this; - !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0; - event.destructor(); - if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) { - EventConstructor.eventPool.push(event); - } -} - -function addEventPoolingTo(EventConstructor) { - EventConstructor.eventPool = []; - EventConstructor.getPooled = getPooledEvent; - EventConstructor.release = releasePooledEvent; -} - -/** - * @interface Event - * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents - */ -var SyntheticCompositionEvent = SyntheticEvent.extend({ - data: null -}); - -/** - * @interface Event - * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105 - * /#events-inputevents - */ -var SyntheticInputEvent = SyntheticEvent.extend({ - data: null -}); - -var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space -var START_KEYCODE = 229; - -var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window; - -var documentMode = null; -if (canUseDOM && 'documentMode' in document) { - documentMode = document.documentMode; -} - -// Webkit offers a very useful `textInput` event that can be used to -// directly represent `beforeInput`. The IE `textinput` event is not as -// useful, so we don't use it. -var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; - -// In IE9+, we have access to composition events, but the data supplied -// by the native compositionend event may be incorrect. Japanese ideographic -// spaces, for instance (\u3000) are not recorded correctly. -var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11); - -var SPACEBAR_CODE = 32; -var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); - -// Events and their corresponding property names. -var eventTypes = { - beforeInput: { - phasedRegistrationNames: { - bubbled: 'onBeforeInput', - captured: 'onBeforeInputCapture' - }, - dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE] - }, - compositionEnd: { - phasedRegistrationNames: { - bubbled: 'onCompositionEnd', - captured: 'onCompositionEndCapture' - }, - dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN] - }, - compositionStart: { - phasedRegistrationNames: { - bubbled: 'onCompositionStart', - captured: 'onCompositionStartCapture' - }, - dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN] - }, - compositionUpdate: { - phasedRegistrationNames: { - bubbled: 'onCompositionUpdate', - captured: 'onCompositionUpdateCapture' - }, - dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN] - } -}; - -// Track whether we've ever handled a keypress on the space key. -var hasSpaceKeypress = false; - -/** - * Return whether a native keypress event is assumed to be a command. - * This is required because Firefox fires `keypress` events for key commands - * (cut, copy, select-all, etc.) even though no character is inserted. - */ -function isKeypressCommand(nativeEvent) { - return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && - // ctrlKey && altKey is equivalent to AltGr, and is not a command. - !(nativeEvent.ctrlKey && nativeEvent.altKey); -} - -/** - * Translate native top level events into event types. - * - * @param {string} topLevelType - * @return {object} - */ -function getCompositionEventType(topLevelType) { - switch (topLevelType) { - case TOP_COMPOSITION_START: - return eventTypes.compositionStart; - case TOP_COMPOSITION_END: - return eventTypes.compositionEnd; - case TOP_COMPOSITION_UPDATE: - return eventTypes.compositionUpdate; - } -} - -/** - * Does our fallback best-guess model think this event signifies that - * composition has begun? - * - * @param {string} topLevelType - * @param {object} nativeEvent - * @return {boolean} - */ -function isFallbackCompositionStart(topLevelType, nativeEvent) { - return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE; -} - -/** - * Does our fallback mode think that this event is the end of composition? - * - * @param {string} topLevelType - * @param {object} nativeEvent - * @return {boolean} - */ -function isFallbackCompositionEnd(topLevelType, nativeEvent) { - switch (topLevelType) { - case TOP_KEY_UP: - // Command keys insert or clear IME input. - return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1; - case TOP_KEY_DOWN: - // Expect IME keyCode on each keydown. If we get any other - // code we must have exited earlier. - return nativeEvent.keyCode !== START_KEYCODE; - case TOP_KEY_PRESS: - case TOP_MOUSE_DOWN: - case TOP_BLUR: - // Events are not possible without cancelling IME. - return true; - default: - return false; - } -} - -/** - * Google Input Tools provides composition data via a CustomEvent, - * with the `data` property populated in the `detail` object. If this - * is available on the event object, use it. If not, this is a plain - * composition event and we have nothing special to extract. - * - * @param {object} nativeEvent - * @return {?string} - */ -function getDataFromCustomEvent(nativeEvent) { - var detail = nativeEvent.detail; - if (typeof detail === 'object' && 'data' in detail) { - return detail.data; - } - return null; -} - -/** - * Check if a composition event was triggered by Korean IME. - * Our fallback mode does not work well with IE's Korean IME, - * so just use native composition events when Korean IME is used. - * Although CompositionEvent.locale property is deprecated, - * it is available in IE, where our fallback mode is enabled. - * - * @param {object} nativeEvent - * @return {boolean} - */ -function isUsingKoreanIME(nativeEvent) { - return nativeEvent.locale === 'ko'; -} - -// Track the current IME composition status, if any. -var isComposing = false; - -/** - * @return {?object} A SyntheticCompositionEvent. - */ -function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var eventType = void 0; - var fallbackData = void 0; - - if (canUseCompositionEvent) { - eventType = getCompositionEventType(topLevelType); - } else if (!isComposing) { - if (isFallbackCompositionStart(topLevelType, nativeEvent)) { - eventType = eventTypes.compositionStart; - } - } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) { - eventType = eventTypes.compositionEnd; - } - - if (!eventType) { - return null; - } - - if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) { - // The current composition is stored statically and must not be - // overwritten while composition continues. - if (!isComposing && eventType === eventTypes.compositionStart) { - isComposing = initialize(nativeEventTarget); - } else if (eventType === eventTypes.compositionEnd) { - if (isComposing) { - fallbackData = getData(); - } - } - } - - var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget); - - if (fallbackData) { - // Inject data generated from fallback path into the synthetic event. - // This matches the property of native CompositionEventInterface. - event.data = fallbackData; - } else { - var customData = getDataFromCustomEvent(nativeEvent); - if (customData !== null) { - event.data = customData; - } - } - - accumulateTwoPhaseDispatches(event); - return event; -} - -/** - * @param {TopLevelType} topLevelType Number from `TopLevelType`. - * @param {object} nativeEvent Native browser event. - * @return {?string} The string corresponding to this `beforeInput` event. - */ -function getNativeBeforeInputChars(topLevelType, nativeEvent) { - switch (topLevelType) { - case TOP_COMPOSITION_END: - return getDataFromCustomEvent(nativeEvent); - case TOP_KEY_PRESS: - /** - * If native `textInput` events are available, our goal is to make - * use of them. However, there is a special case: the spacebar key. - * In Webkit, preventing default on a spacebar `textInput` event - * cancels character insertion, but it *also* causes the browser - * to fall back to its default spacebar behavior of scrolling the - * page. - * - * Tracking at: - * https://code.google.com/p/chromium/issues/detail?id=355103 - * - * To avoid this issue, use the keypress event as if no `textInput` - * event is available. - */ - var which = nativeEvent.which; - if (which !== SPACEBAR_CODE) { - return null; - } - - hasSpaceKeypress = true; - return SPACEBAR_CHAR; - - case TOP_TEXT_INPUT: - // Record the characters to be added to the DOM. - var chars = nativeEvent.data; - - // If it's a spacebar character, assume that we have already handled - // it at the keypress level and bail immediately. Android Chrome - // doesn't give us keycodes, so we need to ignore it. - if (chars === SPACEBAR_CHAR && hasSpaceKeypress) { - return null; - } - - return chars; - - default: - // For other native event types, do nothing. - return null; - } -} - -/** - * For browsers that do not provide the `textInput` event, extract the - * appropriate string to use for SyntheticInputEvent. - * - * @param {number} topLevelType Number from `TopLevelEventTypes`. - * @param {object} nativeEvent Native browser event. - * @return {?string} The fallback string for this `beforeInput` event. - */ -function getFallbackBeforeInputChars(topLevelType, nativeEvent) { - // If we are currently composing (IME) and using a fallback to do so, - // try to extract the composed characters from the fallback object. - // If composition event is available, we extract a string only at - // compositionevent, otherwise extract it at fallback events. - if (isComposing) { - if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) { - var chars = getData(); - reset(); - isComposing = false; - return chars; - } - return null; - } - - switch (topLevelType) { - case TOP_PASTE: - // If a paste event occurs after a keypress, throw out the input - // chars. Paste events should not lead to BeforeInput events. - return null; - case TOP_KEY_PRESS: - /** - * As of v27, Firefox may fire keypress events even when no character - * will be inserted. A few possibilities: - * - * - `which` is `0`. Arrow keys, Esc key, etc. - * - * - `which` is the pressed key code, but no char is available. - * Ex: 'AltGr + d` in Polish. There is no modified character for - * this key combination and no character is inserted into the - * document, but FF fires the keypress for char code `100` anyway. - * No `input` event will occur. - * - * - `which` is the pressed key code, but a command combination is - * being used. Ex: `Cmd+C`. No character is inserted, and no - * `input` event will occur. - */ - if (!isKeypressCommand(nativeEvent)) { - // IE fires the `keypress` event when a user types an emoji via - // Touch keyboard of Windows. In such a case, the `char` property - // holds an emoji character like `\uD83D\uDE0A`. Because its length - // is 2, the property `which` does not represent an emoji correctly. - // In such a case, we directly return the `char` property instead of - // using `which`. - if (nativeEvent.char && nativeEvent.char.length > 1) { - return nativeEvent.char; - } else if (nativeEvent.which) { - return String.fromCharCode(nativeEvent.which); - } - } - return null; - case TOP_COMPOSITION_END: - return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data; - default: - return null; - } -} - -/** - * Extract a SyntheticInputEvent for `beforeInput`, based on either native - * `textInput` or fallback behavior. - * - * @return {?object} A SyntheticInputEvent. - */ -function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var chars = void 0; - - if (canUseTextInputEvent) { - chars = getNativeBeforeInputChars(topLevelType, nativeEvent); - } else { - chars = getFallbackBeforeInputChars(topLevelType, nativeEvent); - } - - // If no characters are being inserted, no BeforeInput event should - // be fired. - if (!chars) { - return null; - } - - var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget); - - event.data = chars; - accumulateTwoPhaseDispatches(event); - return event; -} - -/** - * Create an `onBeforeInput` event to match - * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents. - * - * This event plugin is based on the native `textInput` event - * available in Chrome, Safari, Opera, and IE. This event fires after - * `onKeyPress` and `onCompositionEnd`, but before `onInput`. - * - * `beforeInput` is spec'd but not implemented in any browsers, and - * the `input` event does not provide any useful information about what has - * actually been added, contrary to the spec. Thus, `textInput` is the best - * available event to identify the characters that have actually been inserted - * into the target node. - * - * This plugin is also responsible for emitting `composition` events, thus - * allowing us to share composition fallback code for both `beforeInput` and - * `composition` event types. - */ -var BeforeInputEventPlugin = { - eventTypes: eventTypes, - - extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget); - - var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget); - - if (composition === null) { - return beforeInput; - } - - if (beforeInput === null) { - return composition; - } - - return [composition, beforeInput]; - } -}; - -// Use to restore controlled state after a change event has fired. - -var restoreImpl = null; -var restoreTarget = null; -var restoreQueue = null; - -function restoreStateOfTarget(target) { - // We perform this translation at the end of the event loop so that we - // always receive the correct fiber here - var internalInstance = getInstanceFromNode(target); - if (!internalInstance) { - // Unmounted - return; - } - !(typeof restoreImpl === 'function') ? invariant(false, 'setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0; - var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); - restoreImpl(internalInstance.stateNode, internalInstance.type, props); -} - -function setRestoreImplementation(impl) { - restoreImpl = impl; -} - -function enqueueStateRestore(target) { - if (restoreTarget) { - if (restoreQueue) { - restoreQueue.push(target); - } else { - restoreQueue = [target]; - } - } else { - restoreTarget = target; - } -} - -function needsStateRestore() { - return restoreTarget !== null || restoreQueue !== null; -} - -function restoreStateIfNeeded() { - if (!restoreTarget) { - return; - } - var target = restoreTarget; - var queuedTargets = restoreQueue; - restoreTarget = null; - restoreQueue = null; - - restoreStateOfTarget(target); - if (queuedTargets) { - for (var i = 0; i < queuedTargets.length; i++) { - restoreStateOfTarget(queuedTargets[i]); - } - } -} - -// Used as a way to call batchedUpdates when we don't have a reference to -// the renderer. Such as when we're dispatching events or if third party -// libraries need to call batchedUpdates. Eventually, this API will go away when -// everything is batched by default. We'll then have a similar API to opt-out of -// scheduled work and instead do synchronous work. - -// Defaults -var _batchedUpdatesImpl = function (fn, bookkeeping) { - return fn(bookkeeping); -}; -var _interactiveUpdatesImpl = function (fn, a, b) { - return fn(a, b); -}; -var _flushInteractiveUpdatesImpl = function () {}; - -var isBatching = false; -function batchedUpdates(fn, bookkeeping) { - if (isBatching) { - // If we are currently inside another batch, we need to wait until it - // fully completes before restoring state. - return fn(bookkeeping); - } - isBatching = true; - try { - return _batchedUpdatesImpl(fn, bookkeeping); - } finally { - // Here we wait until all updates have propagated, which is important - // when using controlled components within layers: - // https://github.com/facebook/react/issues/1698 - // Then we restore state of any controlled component. - isBatching = false; - var controlledComponentsHavePendingUpdates = needsStateRestore(); - if (controlledComponentsHavePendingUpdates) { - // If a controlled event was fired, we may need to restore the state of - // the DOM node back to the controlled value. This is necessary when React - // bails out of the update without touching the DOM. - _flushInteractiveUpdatesImpl(); - restoreStateIfNeeded(); - } - } -} - -function interactiveUpdates(fn, a, b) { - return _interactiveUpdatesImpl(fn, a, b); -} - - - -function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) { - _batchedUpdatesImpl = batchedUpdatesImpl; - _interactiveUpdatesImpl = interactiveUpdatesImpl; - _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl; -} - -/** - * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary - */ -var supportedInputTypes = { - color: true, - date: true, - datetime: true, - 'datetime-local': true, - email: true, - month: true, - number: true, - password: true, - range: true, - search: true, - tel: true, - text: true, - time: true, - url: true, - week: true -}; - -function isTextInputElement(elem) { - var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); - - if (nodeName === 'input') { - return !!supportedInputTypes[elem.type]; - } - - if (nodeName === 'textarea') { - return true; - } - - return false; -} - -/** - * HTML nodeType values that represent the type of the node - */ - -var ELEMENT_NODE = 1; -var TEXT_NODE = 3; -var COMMENT_NODE = 8; -var DOCUMENT_NODE = 9; -var DOCUMENT_FRAGMENT_NODE = 11; - -/** - * Gets the target node from a native browser event by accounting for - * inconsistencies in browser DOM APIs. - * - * @param {object} nativeEvent Native browser event. - * @return {DOMEventTarget} Target node. - */ -function getEventTarget(nativeEvent) { - // Fallback to nativeEvent.srcElement for IE9 - // https://github.com/facebook/react/issues/12506 - var target = nativeEvent.target || nativeEvent.srcElement || window; - - // Normalize SVG element events #4963 - if (target.correspondingUseElement) { - target = target.correspondingUseElement; - } - - // Safari may fire events on text nodes (Node.TEXT_NODE is 3). - // @see http://www.quirksmode.org/js/events_properties.html - return target.nodeType === TEXT_NODE ? target.parentNode : target; -} - -/** - * Checks if an event is supported in the current execution environment. - * - * NOTE: This will not work correctly for non-generic events such as `change`, - * `reset`, `load`, `error`, and `select`. - * - * Borrows from Modernizr. - * - * @param {string} eventNameSuffix Event name, e.g. "click". - * @return {boolean} True if the event is supported. - * @internal - * @license Modernizr 3.0.0pre (Custom Build) | MIT - */ -function isEventSupported(eventNameSuffix) { - if (!canUseDOM) { - return false; - } - - var eventName = 'on' + eventNameSuffix; - var isSupported = eventName in document; - - if (!isSupported) { - var element = document.createElement('div'); - element.setAttribute(eventName, 'return;'); - isSupported = typeof element[eventName] === 'function'; - } - - return isSupported; -} - -function isCheckable(elem) { - var type = elem.type; - var nodeName = elem.nodeName; - return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio'); -} - -function getTracker(node) { - return node._valueTracker; -} - -function detachTracker(node) { - node._valueTracker = null; -} - -function getValueFromNode(node) { - var value = ''; - if (!node) { - return value; - } - - if (isCheckable(node)) { - value = node.checked ? 'true' : 'false'; - } else { - value = node.value; - } - - return value; -} - -function trackValueOnNode(node) { - var valueField = isCheckable(node) ? 'checked' : 'value'; - var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); - - var currentValue = '' + node[valueField]; - - // if someone has already defined a value or Safari, then bail - // and don't track value will cause over reporting of changes, - // but it's better then a hard failure - // (needed for certain tests that spyOn input values and Safari) - if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') { - return; - } - var get = descriptor.get, - set = descriptor.set; - - Object.defineProperty(node, valueField, { - configurable: true, - get: function () { - return get.call(this); - }, - set: function (value) { - currentValue = '' + value; - set.call(this, value); - } - }); - // We could've passed this the first time - // but it triggers a bug in IE11 and Edge 14/15. - // Calling defineProperty() again should be equivalent. - // https://github.com/facebook/react/issues/11768 - Object.defineProperty(node, valueField, { - enumerable: descriptor.enumerable - }); - - var tracker = { - getValue: function () { - return currentValue; - }, - setValue: function (value) { - currentValue = '' + value; - }, - stopTracking: function () { - detachTracker(node); - delete node[valueField]; - } - }; - return tracker; -} - -function track(node) { - if (getTracker(node)) { - return; - } - - // TODO: Once it's just Fiber we can move this to node._wrapperState - node._valueTracker = trackValueOnNode(node); -} - -function updateValueIfChanged(node) { - if (!node) { - return false; - } - - var tracker = getTracker(node); - // if there is no tracker at this point it's unlikely - // that trying again will succeed - if (!tracker) { - return true; - } - - var lastValue = tracker.getValue(); - var nextValue = getValueFromNode(node); - if (nextValue !== lastValue) { - tracker.setValue(nextValue); - return true; - } - return false; -} - -var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - -var BEFORE_SLASH_RE = /^(.*)[\\\/]/; - -var describeComponentFrame = function (name, source, ownerName) { - var sourceInfo = ''; - if (source) { - var path = source.fileName; - var fileName = path.replace(BEFORE_SLASH_RE, ''); - { - // In DEV, include code for a common special case: - // prefer "folder/index.js" instead of just "index.js". - if (/^index\./.test(fileName)) { - var match = path.match(BEFORE_SLASH_RE); - if (match) { - var pathBeforeSlash = match[1]; - if (pathBeforeSlash) { - var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); - fileName = folderName + '/' + fileName; - } - } - } - } - sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; - } else if (ownerName) { - sourceInfo = ' (created by ' + ownerName + ')'; - } - return '\n in ' + (name || 'Unknown') + sourceInfo; -}; - -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol -// nor polyfill, then a plain number is used for performance. -var hasSymbol = typeof Symbol === 'function' && Symbol.for; - -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; - -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; - -var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; -var FAUX_ITERATOR_SYMBOL = '@@iterator'; - -function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable !== 'object') { - return null; - } - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - if (typeof maybeIterator === 'function') { - return maybeIterator; - } - return null; -} - -var Pending = 0; -var Resolved = 1; -var Rejected = 2; - -function refineResolvedLazyComponent(lazyComponent) { - return lazyComponent._status === Resolved ? lazyComponent._result : null; -} - -function getWrappedName(outerType, innerType, wrapperName) { - var functionName = innerType.displayName || innerType.name || ''; - return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName); -} - -function getComponentName(type) { - if (type == null) { - // Host root, text node or just invalid type. - return null; - } - { - if (typeof type.tag === 'number') { - warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); - } - } - if (typeof type === 'function') { - return type.displayName || type.name || null; - } - if (typeof type === 'string') { - return type; - } - switch (type) { - case REACT_CONCURRENT_MODE_TYPE: - return 'ConcurrentMode'; - case REACT_FRAGMENT_TYPE: - return 'Fragment'; - case REACT_PORTAL_TYPE: - return 'Portal'; - case REACT_PROFILER_TYPE: - return 'Profiler'; - case REACT_STRICT_MODE_TYPE: - return 'StrictMode'; - case REACT_SUSPENSE_TYPE: - return 'Suspense'; - } - if (typeof type === 'object') { - switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - return 'Context.Consumer'; - case REACT_PROVIDER_TYPE: - return 'Context.Provider'; - case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, 'ForwardRef'); - case REACT_MEMO_TYPE: - return getComponentName(type.type); - case REACT_LAZY_TYPE: - { - var thenable = type; - var resolvedThenable = refineResolvedLazyComponent(thenable); - if (resolvedThenable) { - return getComponentName(resolvedThenable); - } - } - } - } - return null; -} - -var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - -function describeFiber(fiber) { - switch (fiber.tag) { - case HostRoot: - case HostPortal: - case HostText: - case Fragment: - case ContextProvider: - case ContextConsumer: - return ''; - default: - var owner = fiber._debugOwner; - var source = fiber._debugSource; - var name = getComponentName(fiber.type); - var ownerName = null; - if (owner) { - ownerName = getComponentName(owner.type); - } - return describeComponentFrame(name, source, ownerName); - } -} - -function getStackByFiberInDevAndProd(workInProgress) { - var info = ''; - var node = workInProgress; - do { - info += describeFiber(node); - node = node.return; - } while (node); - return info; -} - -var current = null; -var phase = null; - -function getCurrentFiberOwnerNameInDevOrNull() { - { - if (current === null) { - return null; - } - var owner = current._debugOwner; - if (owner !== null && typeof owner !== 'undefined') { - return getComponentName(owner.type); - } - } - return null; -} - -function getCurrentFiberStackInDev() { - { - if (current === null) { - return ''; - } - // Safe because if current fiber exists, we are reconciling, - // and it is guaranteed to be the work-in-progress version. - return getStackByFiberInDevAndProd(current); - } - return ''; -} - -function resetCurrentFiber() { - { - ReactDebugCurrentFrame.getCurrentStack = null; - current = null; - phase = null; - } -} - -function setCurrentFiber(fiber) { - { - ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev; - current = fiber; - phase = null; - } -} - -function setCurrentPhase(lifeCyclePhase) { - { - phase = lifeCyclePhase; - } -} - -/** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ - -var warning = warningWithoutStack$1; - -{ - warning = function (condition, format) { - if (condition) { - return; - } - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame.getStackAddendum(); - // eslint-disable-next-line react-internal/warning-and-invariant-args - - for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack])); - }; -} - -var warning$1 = warning; - -// A reserved attribute. -// It is handled by React separately and shouldn't be written to the DOM. -var RESERVED = 0; - -// A simple string attribute. -// Attributes that aren't in the whitelist are presumed to have this type. -var STRING = 1; - -// A string attribute that accepts booleans in React. In HTML, these are called -// "enumerated" attributes with "true" and "false" as possible values. -// When true, it should be set to a "true" string. -// When false, it should be set to a "false" string. -var BOOLEANISH_STRING = 2; - -// A real boolean attribute. -// When true, it should be present (set either to an empty string or its name). -// When false, it should be omitted. -var BOOLEAN = 3; - -// An attribute that can be used as a flag as well as with a value. -// When true, it should be present (set either to an empty string or its name). -// When false, it should be omitted. -// For any other value, should be present with that value. -var OVERLOADED_BOOLEAN = 4; - -// An attribute that must be numeric or parse as a numeric. -// When falsy, it should be removed. -var NUMERIC = 5; - -// An attribute that must be positive numeric or parse as a positive numeric. -// When falsy, it should be removed. -var POSITIVE_NUMERIC = 6; - -/* eslint-disable max-len */ -var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; -/* eslint-enable max-len */ -var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040'; - - -var ROOT_ATTRIBUTE_NAME = 'data-reactroot'; -var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$'); - -var hasOwnProperty = Object.prototype.hasOwnProperty; -var illegalAttributeNameCache = {}; -var validatedAttributeNameCache = {}; - -function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) { - return true; - } - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) { - return false; - } - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { - validatedAttributeNameCache[attributeName] = true; - return true; - } - illegalAttributeNameCache[attributeName] = true; - { - warning$1(false, 'Invalid attribute name: `%s`', attributeName); - } - return false; -} - -function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { - if (propertyInfo !== null) { - return propertyInfo.type === RESERVED; - } - if (isCustomComponentTag) { - return false; - } - if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) { - return true; - } - return false; -} - -function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { - if (propertyInfo !== null && propertyInfo.type === RESERVED) { - return false; - } - switch (typeof value) { - case 'function': - // $FlowIssue symbol is perfectly valid here - case 'symbol': - // eslint-disable-line - return true; - case 'boolean': - { - if (isCustomComponentTag) { - return false; - } - if (propertyInfo !== null) { - return !propertyInfo.acceptsBooleans; - } else { - var prefix = name.toLowerCase().slice(0, 5); - return prefix !== 'data-' && prefix !== 'aria-'; - } - } - default: - return false; - } -} - -function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { - if (value === null || typeof value === 'undefined') { - return true; - } - if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { - return true; - } - if (isCustomComponentTag) { - return false; - } - if (propertyInfo !== null) { - switch (propertyInfo.type) { - case BOOLEAN: - return !value; - case OVERLOADED_BOOLEAN: - return value === false; - case NUMERIC: - return isNaN(value); - case POSITIVE_NUMERIC: - return isNaN(value) || value < 1; - } - } - return false; -} - -function getPropertyInfo(name) { - return properties.hasOwnProperty(name) ? properties[name] : null; -} - -function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) { - this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN; - this.attributeName = attributeName; - this.attributeNamespace = attributeNamespace; - this.mustUseProperty = mustUseProperty; - this.propertyName = name; - this.type = type; -} - -// When adding attributes to this list, be sure to also add them to -// the `possibleStandardNames` module to ensure casing and incorrect -// name warnings. -var properties = {}; - -// These props are reserved by React. They shouldn't be written to the DOM. -['children', 'dangerouslySetInnerHTML', -// TODO: This prevents the assignment of defaultValue to regular -// elements (not just inputs). Now that ReactDOMInput assigns to the -// defaultValue property -- do we need this? -'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty - name, // attributeName - null); -} // attributeNamespace -); - -// A few React string attributes have a different name. -// This is a mapping from React prop names to the attribute names. -[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) { - var name = _ref[0], - attributeName = _ref[1]; - - properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty - attributeName, // attributeName - null); -} // attributeNamespace -); - -// These are "enumerated" HTML attributes that accept "true" and "false". -// In React, we let users pass `true` and `false` even though technically -// these aren't boolean attributes (they are coerced to strings). -['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty - name.toLowerCase(), // attributeName - null); -} // attributeNamespace -); - -// These are "enumerated" SVG attributes that accept "true" and "false". -// In React, we let users pass `true` and `false` even though technically -// these aren't boolean attributes (they are coerced to strings). -// Since these are SVG attributes, their attribute names are case-sensitive. -['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty - name, // attributeName - null); -} // attributeNamespace -); - -// These are HTML boolean attributes. -['allowFullScreen', 'async', -// Note: there is a special case that prevents it from being written to the DOM -// on the client side because the browsers are inconsistent. Instead we call focus(). -'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', -// Microdata -'itemScope'].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty - name.toLowerCase(), // attributeName - null); -} // attributeNamespace -); - -// These are the few React props that we set as DOM properties -// rather than attributes. These are all booleans. -['checked', -// Note: `option.selected` is not updated if `select.multiple` is -// disabled with `removeAttribute`. We have special logic for handling this. -'multiple', 'muted', 'selected'].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty - name, // attributeName - null); -} // attributeNamespace -); - -// These are HTML attributes that are "overloaded booleans": they behave like -// booleans, but can also accept a string value. -['capture', 'download'].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty - name, // attributeName - null); -} // attributeNamespace -); - -// These are HTML attributes that must be positive numbers. -['cols', 'rows', 'size', 'span'].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty - name, // attributeName - null); -} // attributeNamespace -); - -// These are HTML attributes that must be numbers. -['rowSpan', 'start'].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty - name.toLowerCase(), // attributeName - null); -} // attributeNamespace -); - -var CAMELIZE = /[\-\:]([a-z])/g; -var capitalize = function (token) { - return token[1].toUpperCase(); -}; - -// This is a list of all SVG attributes that need special casing, namespacing, -// or boolean value assignment. Regular attributes that just accept strings -// and have the same names are omitted, just like in the HTML whitelist. -// Some of these attributes can be hard to find. This list was created by -// scrapping the MDN documentation. -['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) { - var name = attributeName.replace(CAMELIZE, capitalize); - properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty - attributeName, null); -} // attributeNamespace -); - -// String SVG attributes with the xlink namespace. -['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) { - var name = attributeName.replace(CAMELIZE, capitalize); - properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty - attributeName, 'http://www.w3.org/1999/xlink'); -}); - -// String SVG attributes with the xml namespace. -['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) { - var name = attributeName.replace(CAMELIZE, capitalize); - properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty - attributeName, 'http://www.w3.org/XML/1998/namespace'); -}); - -// Special case: this attribute exists both in HTML and SVG. -// Its "tabindex" attribute name is case-sensitive in SVG so we can't just use -// its React `tabIndex` name, like we do for attributes that exist only in HTML. -properties.tabIndex = new PropertyInfoRecord('tabIndex', STRING, false, // mustUseProperty -'tabindex', // attributeName -null); - -/** - * Get the value for a property on a node. Only used in DEV for SSR validation. - * The "expected" argument is used as a hint of what the expected value is. - * Some properties have multiple equivalent values. - */ -function getValueForProperty(node, name, expected, propertyInfo) { - { - if (propertyInfo.mustUseProperty) { - var propertyName = propertyInfo.propertyName; - - return node[propertyName]; - } else { - var attributeName = propertyInfo.attributeName; - - var stringValue = null; - - if (propertyInfo.type === OVERLOADED_BOOLEAN) { - if (node.hasAttribute(attributeName)) { - var value = node.getAttribute(attributeName); - if (value === '') { - return true; - } - if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { - return value; - } - if (value === '' + expected) { - return expected; - } - return value; - } - } else if (node.hasAttribute(attributeName)) { - if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { - // We had an attribute but shouldn't have had one, so read it - // for the error message. - return node.getAttribute(attributeName); - } - if (propertyInfo.type === BOOLEAN) { - // If this was a boolean, it doesn't matter what the value is - // the fact that we have it is the same as the expected. - return expected; - } - // Even if this property uses a namespace we use getAttribute - // because we assume its namespaced name is the same as our config. - // To use getAttributeNS we need the local name which we don't have - // in our config atm. - stringValue = node.getAttribute(attributeName); - } - - if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { - return stringValue === null ? expected : stringValue; - } else if (stringValue === '' + expected) { - return expected; - } else { - return stringValue; - } - } - } -} - -/** - * Get the value for a attribute on a node. Only used in DEV for SSR validation. - * The third argument is used as a hint of what the expected value is. Some - * attributes have multiple equivalent values. - */ -function getValueForAttribute(node, name, expected) { - { - if (!isAttributeNameSafe(name)) { - return; - } - if (!node.hasAttribute(name)) { - return expected === undefined ? undefined : null; - } - var value = node.getAttribute(name); - if (value === '' + expected) { - return expected; - } - return value; - } -} - -/** - * Sets the value for a property on a node. - * - * @param {DOMElement} node - * @param {string} name - * @param {*} value - */ -function setValueForProperty(node, name, value, isCustomComponentTag) { - var propertyInfo = getPropertyInfo(name); - if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) { - return; - } - if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) { - value = null; - } - // If the prop isn't in the special list, treat it as a simple attribute. - if (isCustomComponentTag || propertyInfo === null) { - if (isAttributeNameSafe(name)) { - var _attributeName = name; - if (value === null) { - node.removeAttribute(_attributeName); - } else { - node.setAttribute(_attributeName, '' + value); - } - } - return; - } - var mustUseProperty = propertyInfo.mustUseProperty; - - if (mustUseProperty) { - var propertyName = propertyInfo.propertyName; - - if (value === null) { - var type = propertyInfo.type; - - node[propertyName] = type === BOOLEAN ? false : ''; - } else { - // Contrary to `setAttribute`, object properties are properly - // `toString`ed by IE8/9. - node[propertyName] = value; - } - return; - } - // The rest are treated as attributes with special cases. - var attributeName = propertyInfo.attributeName, - attributeNamespace = propertyInfo.attributeNamespace; - - if (value === null) { - node.removeAttribute(attributeName); - } else { - var _type = propertyInfo.type; - - var attributeValue = void 0; - if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) { - attributeValue = ''; - } else { - // `setAttribute` with objects becomes only `[object]` in IE8/9, - // ('' + value) makes it output the correct toString()-value. - attributeValue = '' + value; - } - if (attributeNamespace) { - node.setAttributeNS(attributeNamespace, attributeName, attributeValue); - } else { - node.setAttribute(attributeName, attributeValue); - } - } -} - -// Flow does not allow string concatenation of most non-string types. To work -// around this limitation, we use an opaque type that can only be obtained by -// passing the value through getToStringValue first. -function toString(value) { - return '' + value; -} - -function getToStringValue(value) { - switch (typeof value) { - case 'boolean': - case 'number': - case 'object': - case 'string': - case 'undefined': - return value; - default: - // function, symbol are assigned as empty strings - return ''; - } -} - -var ReactDebugCurrentFrame$1 = null; - -var ReactControlledValuePropTypes = { - checkPropTypes: null -}; - -{ - ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - - var hasReadOnlyValue = { - button: true, - checkbox: true, - image: true, - hidden: true, - radio: true, - reset: true, - submit: true - }; - - var propTypes = { - value: function (props, propName, componentName) { - if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) { - return null; - } - return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); - }, - checked: function (props, propName, componentName) { - if (props.onChange || props.readOnly || props.disabled || props[propName] == null) { - return null; - } - return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); - } - }; - - /** - * Provide a linked `value` attribute for controlled forms. You should not use - * this outside of the ReactDOM controlled form components. - */ - ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) { - checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum); - }; -} - -var enableUserTimingAPI = true; - -var enableHooks = false; -// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: -var debugRenderPhaseSideEffects = false; - -// In some cases, StrictMode should also double-render lifecycles. -// This can be confusing for tests though, -// And it can be bad for performance in production. -// This feature flag can be used to control the behavior: -var debugRenderPhaseSideEffectsForStrictMode = true; - -// To preserve the "Pause on caught exceptions" behavior of the debugger, we -// replay the begin phase of a failed component inside invokeGuardedCallback. -var replayFailedUnitOfWorkWithInvokeGuardedCallback = true; - -// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: -var warnAboutDeprecatedLifecycles = false; - -// Gather advanced timing metrics for Profiler subtrees. -var enableProfilerTimer = true; - -// Trace which interactions trigger each commit. -var enableSchedulerTracing = true; - -// Only used in www builds. - // TODO: true? Here it might just be false. - -// Only used in www builds. - - -// Only used in www builds. - - -// React Fire: prevent the value and checked attributes from syncing -// with their related DOM properties -var disableInputAttributeSyncing = false; - -// These APIs will no longer be "unstable" in the upcoming 16.7 release, -// Control this behavior with a flag to support 16.6 minor releases in the meanwhile. -var enableStableConcurrentModeAPIs = false; - -var warnAboutShorthandPropertyCollision = false; - -// TODO: direct imports like some-package/src/* are bad. Fix me. -var didWarnValueDefaultValue = false; -var didWarnCheckedDefaultChecked = false; -var didWarnControlledToUncontrolled = false; -var didWarnUncontrolledToControlled = false; - -function isControlled(props) { - var usesChecked = props.type === 'checkbox' || props.type === 'radio'; - return usesChecked ? props.checked != null : props.value != null; -} - -/** - * Implements an host component that allows setting these optional - * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. - * - * If `checked` or `value` are not supplied (or null/undefined), user actions - * that affect the checked state or value will trigger updates to the element. - * - * If they are supplied (and not null/undefined), the rendered element will not - * trigger updates to the element. Instead, the props must change in order for - * the rendered element to be updated. - * - * The rendered element will be initialized as unchecked (or `defaultChecked`) - * with an empty value (or `defaultValue`). - * - * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html - */ - -function getHostProps(element, props) { - var node = element; - var checked = props.checked; - - var hostProps = _assign({}, props, { - defaultChecked: undefined, - defaultValue: undefined, - value: undefined, - checked: checked != null ? checked : node._wrapperState.initialChecked - }); - - return hostProps; -} - -function initWrapperState(element, props) { - { - ReactControlledValuePropTypes.checkPropTypes('input', props); - - if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) { - warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); - didWarnCheckedDefaultChecked = true; - } - if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) { - warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); - didWarnValueDefaultValue = true; - } - } - - var node = element; - var defaultValue = props.defaultValue == null ? '' : props.defaultValue; - - node._wrapperState = { - initialChecked: props.checked != null ? props.checked : props.defaultChecked, - initialValue: getToStringValue(props.value != null ? props.value : defaultValue), - controlled: isControlled(props) - }; -} - -function updateChecked(element, props) { - var node = element; - var checked = props.checked; - if (checked != null) { - setValueForProperty(node, 'checked', checked, false); - } -} - -function updateWrapper(element, props) { - var node = element; - { - var _controlled = isControlled(props); - - if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) { - warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type); - didWarnUncontrolledToControlled = true; - } - if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) { - warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type); - didWarnControlledToUncontrolled = true; - } - } - - updateChecked(element, props); - - var value = getToStringValue(props.value); - var type = props.type; - - if (value != null) { - if (type === 'number') { - if (value === 0 && node.value === '' || - // We explicitly want to coerce to number here if possible. - // eslint-disable-next-line - node.value != value) { - node.value = toString(value); - } - } else if (node.value !== toString(value)) { - node.value = toString(value); - } - } else if (type === 'submit' || type === 'reset') { - // Submit/reset inputs need the attribute removed completely to avoid - // blank-text buttons. - node.removeAttribute('value'); - return; - } - - if (disableInputAttributeSyncing) { - // When not syncing the value attribute, React only assigns a new value - // whenever the defaultValue React prop has changed. When not present, - // React does nothing - if (props.hasOwnProperty('defaultValue')) { - setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); - } - } else { - // When syncing the value attribute, the value comes from a cascade of - // properties: - // 1. The value React property - // 2. The defaultValue React property - // 3. Otherwise there should be no change - if (props.hasOwnProperty('value')) { - setDefaultValue(node, props.type, value); - } else if (props.hasOwnProperty('defaultValue')) { - setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); - } - } - - if (disableInputAttributeSyncing) { - // When not syncing the checked attribute, the attribute is directly - // controllable from the defaultValue React property. It needs to be - // updated as new props come in. - if (props.defaultChecked == null) { - node.removeAttribute('checked'); - } else { - node.defaultChecked = !!props.defaultChecked; - } - } else { - // When syncing the checked attribute, it only changes when it needs - // to be removed, such as transitioning from a checkbox into a text input - if (props.checked == null && props.defaultChecked != null) { - node.defaultChecked = !!props.defaultChecked; - } - } -} - -function postMountWrapper(element, props, isHydrating) { - var node = element; - - // Do not assign value if it is already set. This prevents user text input - // from being lost during SSR hydration. - if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) { - var type = props.type; - var isButton = type === 'submit' || type === 'reset'; - - // Avoid setting value attribute on submit/reset inputs as it overrides the - // default value provided by the browser. See: #12872 - if (isButton && (props.value === undefined || props.value === null)) { - return; - } - - var _initialValue = toString(node._wrapperState.initialValue); - - // Do not assign value if it is already set. This prevents user text input - // from being lost during SSR hydration. - if (!isHydrating) { - if (disableInputAttributeSyncing) { - var value = getToStringValue(props.value); - - // When not syncing the value attribute, the value property points - // directly to the React prop. Only assign it if it exists. - if (value != null) { - // Always assign on buttons so that it is possible to assign an - // empty string to clear button text. - // - // Otherwise, do not re-assign the value property if is empty. This - // potentially avoids a DOM write and prevents Firefox (~60.0.1) from - // prematurely marking required inputs as invalid. Equality is compared - // to the current value in case the browser provided value is not an - // empty string. - if (isButton || value !== node.value) { - node.value = toString(value); - } - } - } else { - // When syncing the value attribute, the value property should use - // the wrapperState._initialValue property. This uses: - // - // 1. The value React property when present - // 2. The defaultValue React property when present - // 3. An empty string - if (_initialValue !== node.value) { - node.value = _initialValue; - } - } - } - - if (disableInputAttributeSyncing) { - // When not syncing the value attribute, assign the value attribute - // directly from the defaultValue React property (when present) - var defaultValue = getToStringValue(props.defaultValue); - if (defaultValue != null) { - node.defaultValue = toString(defaultValue); - } - } else { - // Otherwise, the value attribute is synchronized to the property, - // so we assign defaultValue to the same thing as the value property - // assignment step above. - node.defaultValue = _initialValue; - } - } - - // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug - // this is needed to work around a chrome bug where setting defaultChecked - // will sometimes influence the value of checked (even after detachment). - // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416 - // We need to temporarily unset name to avoid disrupting radio button groups. - var name = node.name; - if (name !== '') { - node.name = ''; - } - - if (disableInputAttributeSyncing) { - // When not syncing the checked attribute, the checked property - // never gets assigned. It must be manually set. We don't want - // to do this when hydrating so that existing user input isn't - // modified - if (!isHydrating) { - updateChecked(element, props); - } - - // Only assign the checked attribute if it is defined. This saves - // a DOM write when controlling the checked attribute isn't needed - // (text inputs, submit/reset) - if (props.hasOwnProperty('defaultChecked')) { - node.defaultChecked = !node.defaultChecked; - node.defaultChecked = !!props.defaultChecked; - } - } else { - // When syncing the checked attribute, both the checked property and - // attribute are assigned at the same time using defaultChecked. This uses: - // - // 1. The checked React property when present - // 2. The defaultChecked React property when present - // 3. Otherwise, false - node.defaultChecked = !node.defaultChecked; - node.defaultChecked = !!node._wrapperState.initialChecked; - } - - if (name !== '') { - node.name = name; - } -} - -function restoreControlledState(element, props) { - var node = element; - updateWrapper(node, props); - updateNamedCousins(node, props); -} - -function updateNamedCousins(rootNode, props) { - var name = props.name; - if (props.type === 'radio' && name != null) { - var queryRoot = rootNode; - - while (queryRoot.parentNode) { - queryRoot = queryRoot.parentNode; - } - - // If `rootNode.form` was non-null, then we could try `form.elements`, - // but that sometimes behaves strangely in IE8. We could also try using - // `form.getElementsByName`, but that will only return direct children - // and won't include inputs that use the HTML5 `form=` attribute. Since - // the input might not even be in a form. It might not even be in the - // document. Let's just use the local `querySelectorAll` to ensure we don't - // miss anything. - var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]'); - - for (var i = 0; i < group.length; i++) { - var otherNode = group[i]; - if (otherNode === rootNode || otherNode.form !== rootNode.form) { - continue; - } - // This will throw if radio buttons rendered by different copies of React - // and the same name are rendered into the same form (same as #1939). - // That's probably okay; we don't support it just as we don't support - // mixing React radio buttons with non-React ones. - var otherProps = getFiberCurrentPropsFromNode$1(otherNode); - !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0; - - // We need update the tracked value on the named cousin since the value - // was changed but the input saw no event or value set - updateValueIfChanged(otherNode); - - // If this is a controlled radio button group, forcing the input that - // was previously checked to update will cause it to be come re-checked - // as appropriate. - updateWrapper(otherNode, otherProps); - } - } -} - -// In Chrome, assigning defaultValue to certain input types triggers input validation. -// For number inputs, the display value loses trailing decimal points. For email inputs, -// Chrome raises "The specified value is not a valid email address". -// -// Here we check to see if the defaultValue has actually changed, avoiding these problems -// when the user is inputting text -// -// https://github.com/facebook/react/issues/7253 -function setDefaultValue(node, type, value) { - if ( - // Focused number inputs synchronize on blur. See ChangeEventPlugin.js - type !== 'number' || node.ownerDocument.activeElement !== node) { - if (value == null) { - node.defaultValue = toString(node._wrapperState.initialValue); - } else if (node.defaultValue !== toString(value)) { - node.defaultValue = toString(value); - } - } -} - -var eventTypes$1 = { - change: { - phasedRegistrationNames: { - bubbled: 'onChange', - captured: 'onChangeCapture' - }, - dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE] - } -}; - -function createAndAccumulateChangeEvent(inst, nativeEvent, target) { - var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target); - event.type = 'change'; - // Flag this event loop as needing state restore. - enqueueStateRestore(target); - accumulateTwoPhaseDispatches(event); - return event; -} -/** - * For IE shims - */ -var activeElement = null; -var activeElementInst = null; - -/** - * SECTION: handle `change` event - */ -function shouldUseChangeEvent(elem) { - var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); - return nodeName === 'select' || nodeName === 'input' && elem.type === 'file'; -} - -function manualDispatchChangeEvent(nativeEvent) { - var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); - - // If change and propertychange bubbled, we'd just bind to it like all the - // other events and have it go through ReactBrowserEventEmitter. Since it - // doesn't, we manually listen for the events and so we have to enqueue and - // process the abstract event manually. - // - // Batching is necessary here in order to ensure that all event handlers run - // before the next rerender (including event handlers attached to ancestor - // elements instead of directly on the input). Without this, controlled - // components don't work properly in conjunction with event bubbling because - // the component is rerendered and the value reverted before all the event - // handlers can run. See https://github.com/facebook/react/issues/708. - batchedUpdates(runEventInBatch, event); -} - -function runEventInBatch(event) { - runEventsInBatch(event); -} - -function getInstIfValueChanged(targetInst) { - var targetNode = getNodeFromInstance$1(targetInst); - if (updateValueIfChanged(targetNode)) { - return targetInst; - } -} - -function getTargetInstForChangeEvent(topLevelType, targetInst) { - if (topLevelType === TOP_CHANGE) { - return targetInst; - } -} - -/** - * SECTION: handle `input` event - */ -var isInputEventSupported = false; -if (canUseDOM) { - // IE9 claims to support the input event but fails to trigger it when - // deleting text, so we ignore its input events. - isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9); -} - -/** - * (For IE <=9) Starts tracking propertychange events on the passed-in element - * and override the value property so that we can distinguish user events from - * value changes in JS. - */ -function startWatchingForValueChange(target, targetInst) { - activeElement = target; - activeElementInst = targetInst; - activeElement.attachEvent('onpropertychange', handlePropertyChange); -} - -/** - * (For IE <=9) Removes the event listeners from the currently-tracked element, - * if any exists. - */ -function stopWatchingForValueChange() { - if (!activeElement) { - return; - } - activeElement.detachEvent('onpropertychange', handlePropertyChange); - activeElement = null; - activeElementInst = null; -} - -/** - * (For IE <=9) Handles a propertychange event, sending a `change` event if - * the value of the active element has changed. - */ -function handlePropertyChange(nativeEvent) { - if (nativeEvent.propertyName !== 'value') { - return; - } - if (getInstIfValueChanged(activeElementInst)) { - manualDispatchChangeEvent(nativeEvent); - } -} - -function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) { - if (topLevelType === TOP_FOCUS) { - // In IE9, propertychange fires for most input events but is buggy and - // doesn't fire when text is deleted, but conveniently, selectionchange - // appears to fire in all of the remaining cases so we catch those and - // forward the event if the value has changed - // In either case, we don't want to call the event handler if the value - // is changed from JS so we redefine a setter for `.value` that updates - // our activeElementValue variable, allowing us to ignore those changes - // - // stopWatching() should be a noop here but we call it just in case we - // missed a blur event somehow. - stopWatchingForValueChange(); - startWatchingForValueChange(target, targetInst); - } else if (topLevelType === TOP_BLUR) { - stopWatchingForValueChange(); - } -} - -// For IE8 and IE9. -function getTargetInstForInputEventPolyfill(topLevelType, targetInst) { - if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) { - // On the selectionchange event, the target is just document which isn't - // helpful for us so just check activeElement instead. - // - // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire - // propertychange on the first input event after setting `value` from a - // script and fires only keydown, keypress, keyup. Catching keyup usually - // gets it and catching keydown lets us fire an event for the first - // keystroke if user does a key repeat (it'll be a little delayed: right - // before the second keystroke). Other input methods (e.g., paste) seem to - // fire selectionchange normally. - return getInstIfValueChanged(activeElementInst); - } -} - -/** - * SECTION: handle `click` event - */ -function shouldUseClickEvent(elem) { - // Use the `click` event to detect changes to checkbox and radio inputs. - // This approach works across all browsers, whereas `change` does not fire - // until `blur` in IE8. - var nodeName = elem.nodeName; - return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio'); -} - -function getTargetInstForClickEvent(topLevelType, targetInst) { - if (topLevelType === TOP_CLICK) { - return getInstIfValueChanged(targetInst); - } -} - -function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) { - if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) { - return getInstIfValueChanged(targetInst); - } -} - -function handleControlledInputBlur(node) { - var state = node._wrapperState; - - if (!state || !state.controlled || node.type !== 'number') { - return; - } - - if (!disableInputAttributeSyncing) { - // If controlled, assign the value attribute to the current value on blur - setDefaultValue(node, 'number', node.value); - } -} - -/** - * This plugin creates an `onChange` event that normalizes change events - * across form elements. This event fires at a time when it's possible to - * change the element's value without seeing a flicker. - * - * Supported elements are: - * - input (see `isTextInputElement`) - * - textarea - * - select - */ -var ChangeEventPlugin = { - eventTypes: eventTypes$1, - - _isInputEventSupported: isInputEventSupported, - - extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window; - - var getTargetInstFunc = void 0, - handleEventFunc = void 0; - if (shouldUseChangeEvent(targetNode)) { - getTargetInstFunc = getTargetInstForChangeEvent; - } else if (isTextInputElement(targetNode)) { - if (isInputEventSupported) { - getTargetInstFunc = getTargetInstForInputOrChangeEvent; - } else { - getTargetInstFunc = getTargetInstForInputEventPolyfill; - handleEventFunc = handleEventsForInputEventPolyfill; - } - } else if (shouldUseClickEvent(targetNode)) { - getTargetInstFunc = getTargetInstForClickEvent; - } - - if (getTargetInstFunc) { - var inst = getTargetInstFunc(topLevelType, targetInst); - if (inst) { - var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget); - return event; - } - } - - if (handleEventFunc) { - handleEventFunc(topLevelType, targetNode, targetInst); - } - - // When blurring, set the value attribute for number inputs - if (topLevelType === TOP_BLUR) { - handleControlledInputBlur(targetNode); - } - } -}; - -/** - * Module that is injectable into `EventPluginHub`, that specifies a - * deterministic ordering of `EventPlugin`s. A convenient way to reason about - * plugins, without having to package every one of them. This is better than - * having plugins be ordered in the same order that they are injected because - * that ordering would be influenced by the packaging order. - * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that - * preventing default on events is convenient in `SimpleEventPlugin` handlers. - */ -var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin']; - -var SyntheticUIEvent = SyntheticEvent.extend({ - view: null, - detail: null -}); - -var modifierKeyToProp = { - Alt: 'altKey', - Control: 'ctrlKey', - Meta: 'metaKey', - Shift: 'shiftKey' -}; - -// Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support -// getModifierState. If getModifierState is not supported, we map it to a set of -// modifier keys exposed by the event. In this case, Lock-keys are not supported. -/** - * Translation from modifier key to the associated property in the event. - * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers - */ - -function modifierStateGetter(keyArg) { - var syntheticEvent = this; - var nativeEvent = syntheticEvent.nativeEvent; - if (nativeEvent.getModifierState) { - return nativeEvent.getModifierState(keyArg); - } - var keyProp = modifierKeyToProp[keyArg]; - return keyProp ? !!nativeEvent[keyProp] : false; -} - -function getEventModifierState(nativeEvent) { - return modifierStateGetter; -} - -var previousScreenX = 0; -var previousScreenY = 0; -// Use flags to signal movementX/Y has already been set -var isMovementXSet = false; -var isMovementYSet = false; - -/** - * @interface MouseEvent - * @see http://www.w3.org/TR/DOM-Level-3-Events/ - */ -var SyntheticMouseEvent = SyntheticUIEvent.extend({ - screenX: null, - screenY: null, - clientX: null, - clientY: null, - pageX: null, - pageY: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - getModifierState: getEventModifierState, - button: null, - buttons: null, - relatedTarget: function (event) { - return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement); - }, - movementX: function (event) { - if ('movementX' in event) { - return event.movementX; - } - - var screenX = previousScreenX; - previousScreenX = event.screenX; - - if (!isMovementXSet) { - isMovementXSet = true; - return 0; - } - - return event.type === 'mousemove' ? event.screenX - screenX : 0; - }, - movementY: function (event) { - if ('movementY' in event) { - return event.movementY; - } - - var screenY = previousScreenY; - previousScreenY = event.screenY; - - if (!isMovementYSet) { - isMovementYSet = true; - return 0; - } - - return event.type === 'mousemove' ? event.screenY - screenY : 0; - } -}); - -/** - * @interface PointerEvent - * @see http://www.w3.org/TR/pointerevents/ - */ -var SyntheticPointerEvent = SyntheticMouseEvent.extend({ - pointerId: null, - width: null, - height: null, - pressure: null, - tangentialPressure: null, - tiltX: null, - tiltY: null, - twist: null, - pointerType: null, - isPrimary: null -}); - -var eventTypes$2 = { - mouseEnter: { - registrationName: 'onMouseEnter', - dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER] - }, - mouseLeave: { - registrationName: 'onMouseLeave', - dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER] - }, - pointerEnter: { - registrationName: 'onPointerEnter', - dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER] - }, - pointerLeave: { - registrationName: 'onPointerLeave', - dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER] - } -}; - -var EnterLeaveEventPlugin = { - eventTypes: eventTypes$2, - - /** - * For almost every interaction we care about, there will be both a top-level - * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that - * we do not extract duplicate events. However, moving the mouse into the - * browser from outside will not fire a `mouseout` event. In this case, we use - * the `mouseover` top-level event. - */ - extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER; - var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT; - - if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) { - return null; - } - - if (!isOutEvent && !isOverEvent) { - // Must not be a mouse or pointer in or out - ignoring. - return null; - } - - var win = void 0; - if (nativeEventTarget.window === nativeEventTarget) { - // `nativeEventTarget` is probably a window object. - win = nativeEventTarget; - } else { - // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. - var doc = nativeEventTarget.ownerDocument; - if (doc) { - win = doc.defaultView || doc.parentWindow; - } else { - win = window; - } - } - - var from = void 0; - var to = void 0; - if (isOutEvent) { - from = targetInst; - var related = nativeEvent.relatedTarget || nativeEvent.toElement; - to = related ? getClosestInstanceFromNode(related) : null; - } else { - // Moving to a node from outside the window. - from = null; - to = targetInst; - } - - if (from === to) { - // Nothing pertains to our managed components. - return null; - } - - var eventInterface = void 0, - leaveEventType = void 0, - enterEventType = void 0, - eventTypePrefix = void 0; - - if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) { - eventInterface = SyntheticMouseEvent; - leaveEventType = eventTypes$2.mouseLeave; - enterEventType = eventTypes$2.mouseEnter; - eventTypePrefix = 'mouse'; - } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) { - eventInterface = SyntheticPointerEvent; - leaveEventType = eventTypes$2.pointerLeave; - enterEventType = eventTypes$2.pointerEnter; - eventTypePrefix = 'pointer'; - } - - var fromNode = from == null ? win : getNodeFromInstance$1(from); - var toNode = to == null ? win : getNodeFromInstance$1(to); - - var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget); - leave.type = eventTypePrefix + 'leave'; - leave.target = fromNode; - leave.relatedTarget = toNode; - - var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget); - enter.type = eventTypePrefix + 'enter'; - enter.target = toNode; - enter.relatedTarget = fromNode; - - accumulateEnterLeaveDispatches(leave, enter, from, to); - - return [leave, enter]; - } -}; - -/*eslint-disable no-self-compare */ - -var hasOwnProperty$1 = Object.prototype.hasOwnProperty; - -/** - * inlined Object.is polyfill to avoid requiring consumers ship their own - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - */ -function is(x, y) { - // SameValue algorithm - if (x === y) { - // Steps 1-5, 7-10 - // Steps 6.b-6.e: +0 != -0 - // Added the nonzero y check to make Flow happy, but it is redundant - return x !== 0 || y !== 0 || 1 / x === 1 / y; - } else { - // Step 6.a: NaN == NaN - return x !== x && y !== y; - } -} - -/** - * Performs equality by iterating through keys on an object and returning false - * when any key has values which are not strictly equal between the arguments. - * Returns true when the values of all keys are strictly equal. - */ -function shallowEqual(objA, objB) { - if (is(objA, objB)) { - return true; - } - - if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { - return false; - } - - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - - if (keysA.length !== keysB.length) { - return false; - } - - // Test for A's keys different from B. - for (var i = 0; i < keysA.length; i++) { - if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { - return false; - } - } - - return true; -} - -/** - * `ReactInstanceMap` maintains a mapping from a public facing stateful - * instance (key) and the internal representation (value). This allows public - * methods to accept the user facing instance as an argument and map them back - * to internal methods. - * - * Note that this module is currently shared and assumed to be stateless. - * If this becomes an actual Map, that will break. - */ - -/** - * This API should be called `delete` but we'd have to make sure to always - * transform these to strings for IE support. When this transform is fully - * supported we can rename it. - */ - - -function get(key) { - return key._reactInternalFiber; -} - -function has(key) { - return key._reactInternalFiber !== undefined; -} - -function set(key, value) { - key._reactInternalFiber = value; -} - -// Don't change these two values. They're used by React Dev Tools. -var NoEffect = /* */0; -var PerformedWork = /* */1; - -// You can change the rest (and add more). -var Placement = /* */2; -var Update = /* */4; -var PlacementAndUpdate = /* */6; -var Deletion = /* */8; -var ContentReset = /* */16; -var Callback = /* */32; -var DidCapture = /* */64; -var Ref = /* */128; -var Snapshot = /* */256; -var Passive = /* */512; - -// Passive & Update & Callback & Ref & Snapshot -var LifecycleEffectMask = /* */932; - -// Union of all host effects -var HostEffectMask = /* */1023; - -var Incomplete = /* */1024; -var ShouldCapture = /* */2048; - -var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; - -var MOUNTING = 1; -var MOUNTED = 2; -var UNMOUNTED = 3; - -function isFiberMountedImpl(fiber) { - var node = fiber; - if (!fiber.alternate) { - // If there is no alternate, this might be a new tree that isn't inserted - // yet. If it is, then it will have a pending insertion effect on it. - if ((node.effectTag & Placement) !== NoEffect) { - return MOUNTING; - } - while (node.return) { - node = node.return; - if ((node.effectTag & Placement) !== NoEffect) { - return MOUNTING; - } - } - } else { - while (node.return) { - node = node.return; - } - } - if (node.tag === HostRoot) { - // TODO: Check if this was a nested HostRoot when used with - // renderContainerIntoSubtree. - return MOUNTED; - } - // If we didn't hit the root, that means that we're in an disconnected tree - // that has been unmounted. - return UNMOUNTED; -} - -function isFiberMounted(fiber) { - return isFiberMountedImpl(fiber) === MOUNTED; -} - -function isMounted(component) { - { - var owner = ReactCurrentOwner$1.current; - if (owner !== null && owner.tag === ClassComponent) { - var ownerFiber = owner; - var instance = ownerFiber.stateNode; - !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0; - instance._warnedAboutRefsInRender = true; - } - } - - var fiber = get(component); - if (!fiber) { - return false; - } - return isFiberMountedImpl(fiber) === MOUNTED; -} - -function assertIsMounted(fiber) { - !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0; -} - -function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - // If there is no alternate, then we only need to check if it is mounted. - var state = isFiberMountedImpl(fiber); - !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0; - if (state === MOUNTING) { - return null; - } - return fiber; - } - // If we have two possible branches, we'll walk backwards up to the root - // to see what path the root points to. On the way we may hit one of the - // special cases and we'll deal with them. - var a = fiber; - var b = alternate; - while (true) { - var parentA = a.return; - var parentB = parentA ? parentA.alternate : null; - if (!parentA || !parentB) { - // We're at the root. - break; - } - - // If both copies of the parent fiber point to the same child, we can - // assume that the child is current. This happens when we bailout on low - // priority: the bailed out fiber's child reuses the current child. - if (parentA.child === parentB.child) { - var child = parentA.child; - while (child) { - if (child === a) { - // We've determined that A is the current branch. - assertIsMounted(parentA); - return fiber; - } - if (child === b) { - // We've determined that B is the current branch. - assertIsMounted(parentA); - return alternate; - } - child = child.sibling; - } - // We should never have an alternate for any mounting node. So the only - // way this could possibly happen is if this was unmounted, if at all. - invariant(false, 'Unable to find node on an unmounted component.'); - } - - if (a.return !== b.return) { - // The return pointer of A and the return pointer of B point to different - // fibers. We assume that return pointers never criss-cross, so A must - // belong to the child set of A.return, and B must belong to the child - // set of B.return. - a = parentA; - b = parentB; - } else { - // The return pointers point to the same fiber. We'll have to use the - // default, slow path: scan the child sets of each parent alternate to see - // which child belongs to which set. - // - // Search parent A's child set - var didFindChild = false; - var _child = parentA.child; - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentA; - b = parentB; - break; - } - if (_child === b) { - didFindChild = true; - b = parentA; - a = parentB; - break; - } - _child = _child.sibling; - } - if (!didFindChild) { - // Search parent B's child set - _child = parentB.child; - while (_child) { - if (_child === a) { - didFindChild = true; - a = parentB; - b = parentA; - break; - } - if (_child === b) { - didFindChild = true; - b = parentB; - a = parentA; - break; - } - _child = _child.sibling; - } - !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0; - } - } - - !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0; - } - // If the root is not a host container, we're in a disconnected tree. I.e. - // unmounted. - !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0; - if (a.stateNode.current === a) { - // We've determined that A is the current branch. - return fiber; - } - // Otherwise B has to be current branch. - return alternate; -} - -function findCurrentHostFiber(parent) { - var currentParent = findCurrentFiberUsingSlowPath(parent); - if (!currentParent) { - return null; - } - - // Next we'll drill down this component to find the first HostComponent/Text. - var node = currentParent; - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - return node; - } else if (node.child) { - node.child.return = node; - node = node.child; - continue; - } - if (node === currentParent) { - return null; - } - while (!node.sibling) { - if (!node.return || node.return === currentParent) { - return null; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - // Flow needs the return null here, but ESLint complains about it. - // eslint-disable-next-line no-unreachable - return null; -} - -function findCurrentHostFiberWithNoPortals(parent) { - var currentParent = findCurrentFiberUsingSlowPath(parent); - if (!currentParent) { - return null; - } - - // Next we'll drill down this component to find the first HostComponent/Text. - var node = currentParent; - while (true) { - if (node.tag === HostComponent || node.tag === HostText) { - return node; - } else if (node.child && node.tag !== HostPortal) { - node.child.return = node; - node = node.child; - continue; - } - if (node === currentParent) { - return null; - } - while (!node.sibling) { - if (!node.return || node.return === currentParent) { - return null; - } - node = node.return; - } - node.sibling.return = node.return; - node = node.sibling; - } - // Flow needs the return null here, but ESLint complains about it. - // eslint-disable-next-line no-unreachable - return null; -} - -function addEventBubbleListener(element, eventType, listener) { - element.addEventListener(eventType, listener, false); -} - -function addEventCaptureListener(element, eventType, listener) { - element.addEventListener(eventType, listener, true); -} - -/** - * @interface Event - * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface - * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent - */ -var SyntheticAnimationEvent = SyntheticEvent.extend({ - animationName: null, - elapsedTime: null, - pseudoElement: null -}); - -/** - * @interface Event - * @see http://www.w3.org/TR/clipboard-apis/ - */ -var SyntheticClipboardEvent = SyntheticEvent.extend({ - clipboardData: function (event) { - return 'clipboardData' in event ? event.clipboardData : window.clipboardData; - } -}); - -/** - * @interface FocusEvent - * @see http://www.w3.org/TR/DOM-Level-3-Events/ - */ -var SyntheticFocusEvent = SyntheticUIEvent.extend({ - relatedTarget: null -}); - -/** - * `charCode` represents the actual "character code" and is safe to use with - * `String.fromCharCode`. As such, only keys that correspond to printable - * characters produce a valid `charCode`, the only exception to this is Enter. - * The Tab-key is considered non-printable and does not have a `charCode`, - * presumably because it does not produce a tab-character in browsers. - * - * @param {object} nativeEvent Native browser event. - * @return {number} Normalized `charCode` property. - */ -function getEventCharCode(nativeEvent) { - var charCode = void 0; - var keyCode = nativeEvent.keyCode; - - if ('charCode' in nativeEvent) { - charCode = nativeEvent.charCode; - - // FF does not set `charCode` for the Enter-key, check against `keyCode`. - if (charCode === 0 && keyCode === 13) { - charCode = 13; - } - } else { - // IE8 does not implement `charCode`, but `keyCode` has the correct value. - charCode = keyCode; - } - - // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux) - // report Enter as charCode 10 when ctrl is pressed. - if (charCode === 10) { - charCode = 13; - } - - // Some non-printable keys are reported in `charCode`/`keyCode`, discard them. - // Must not discard the (non-)printable Enter-key. - if (charCode >= 32 || charCode === 13) { - return charCode; - } - - return 0; -} - -/** - * Normalization of deprecated HTML5 `key` values - * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names - */ -var normalizeKey = { - Esc: 'Escape', - Spacebar: ' ', - Left: 'ArrowLeft', - Up: 'ArrowUp', - Right: 'ArrowRight', - Down: 'ArrowDown', - Del: 'Delete', - Win: 'OS', - Menu: 'ContextMenu', - Apps: 'ContextMenu', - Scroll: 'ScrollLock', - MozPrintableKey: 'Unidentified' -}; - -/** - * Translation from legacy `keyCode` to HTML5 `key` - * Only special keys supported, all others depend on keyboard layout or browser - * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names - */ -var translateToKey = { - '8': 'Backspace', - '9': 'Tab', - '12': 'Clear', - '13': 'Enter', - '16': 'Shift', - '17': 'Control', - '18': 'Alt', - '19': 'Pause', - '20': 'CapsLock', - '27': 'Escape', - '32': ' ', - '33': 'PageUp', - '34': 'PageDown', - '35': 'End', - '36': 'Home', - '37': 'ArrowLeft', - '38': 'ArrowUp', - '39': 'ArrowRight', - '40': 'ArrowDown', - '45': 'Insert', - '46': 'Delete', - '112': 'F1', - '113': 'F2', - '114': 'F3', - '115': 'F4', - '116': 'F5', - '117': 'F6', - '118': 'F7', - '119': 'F8', - '120': 'F9', - '121': 'F10', - '122': 'F11', - '123': 'F12', - '144': 'NumLock', - '145': 'ScrollLock', - '224': 'Meta' -}; - -/** - * @param {object} nativeEvent Native browser event. - * @return {string} Normalized `key` property. - */ -function getEventKey(nativeEvent) { - if (nativeEvent.key) { - // Normalize inconsistent values reported by browsers due to - // implementations of a working draft specification. - - // FireFox implements `key` but returns `MozPrintableKey` for all - // printable characters (normalized to `Unidentified`), ignore it. - var key = normalizeKey[nativeEvent.key] || nativeEvent.key; - if (key !== 'Unidentified') { - return key; - } - } - - // Browser does not implement `key`, polyfill as much of it as we can. - if (nativeEvent.type === 'keypress') { - var charCode = getEventCharCode(nativeEvent); - - // The enter-key is technically both printable and non-printable and can - // thus be captured by `keypress`, no other non-printable key should. - return charCode === 13 ? 'Enter' : String.fromCharCode(charCode); - } - if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') { - // While user keyboard layout determines the actual meaning of each - // `keyCode` value, almost all function keys have a universal value. - return translateToKey[nativeEvent.keyCode] || 'Unidentified'; - } - return ''; -} - -/** - * @interface KeyboardEvent - * @see http://www.w3.org/TR/DOM-Level-3-Events/ - */ -var SyntheticKeyboardEvent = SyntheticUIEvent.extend({ - key: getEventKey, - location: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - repeat: null, - locale: null, - getModifierState: getEventModifierState, - // Legacy Interface - charCode: function (event) { - // `charCode` is the result of a KeyPress event and represents the value of - // the actual printable character. - - // KeyPress is deprecated, but its replacement is not yet final and not - // implemented in any major browser. Only KeyPress has charCode. - if (event.type === 'keypress') { - return getEventCharCode(event); - } - return 0; - }, - keyCode: function (event) { - // `keyCode` is the result of a KeyDown/Up event and represents the value of - // physical keyboard key. - - // The actual meaning of the value depends on the users' keyboard layout - // which cannot be detected. Assuming that it is a US keyboard layout - // provides a surprisingly accurate mapping for US and European users. - // Due to this, it is left to the user to implement at this time. - if (event.type === 'keydown' || event.type === 'keyup') { - return event.keyCode; - } - return 0; - }, - which: function (event) { - // `which` is an alias for either `keyCode` or `charCode` depending on the - // type of the event. - if (event.type === 'keypress') { - return getEventCharCode(event); - } - if (event.type === 'keydown' || event.type === 'keyup') { - return event.keyCode; - } - return 0; - } -}); - -/** - * @interface DragEvent - * @see http://www.w3.org/TR/DOM-Level-3-Events/ - */ -var SyntheticDragEvent = SyntheticMouseEvent.extend({ - dataTransfer: null -}); - -/** - * @interface TouchEvent - * @see http://www.w3.org/TR/touch-events/ - */ -var SyntheticTouchEvent = SyntheticUIEvent.extend({ - touches: null, - targetTouches: null, - changedTouches: null, - altKey: null, - metaKey: null, - ctrlKey: null, - shiftKey: null, - getModifierState: getEventModifierState -}); - -/** - * @interface Event - * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events- - * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent - */ -var SyntheticTransitionEvent = SyntheticEvent.extend({ - propertyName: null, - elapsedTime: null, - pseudoElement: null -}); - -/** - * @interface WheelEvent - * @see http://www.w3.org/TR/DOM-Level-3-Events/ - */ -var SyntheticWheelEvent = SyntheticMouseEvent.extend({ - deltaX: function (event) { - return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). - 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; - }, - deltaY: function (event) { - return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive). - 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive). - 'wheelDelta' in event ? -event.wheelDelta : 0; - }, - - deltaZ: null, - - // Browsers without "deltaMode" is reporting in raw wheel delta where one - // notch on the scroll is always +/- 120, roughly equivalent to pixels. - // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or - // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size. - deltaMode: null -}); - -/** - * Turns - * ['abort', ...] - * into - * eventTypes = { - * 'abort': { - * phasedRegistrationNames: { - * bubbled: 'onAbort', - * captured: 'onAbortCapture', - * }, - * dependencies: [TOP_ABORT], - * }, - * ... - * }; - * topLevelEventsToDispatchConfig = new Map([ - * [TOP_ABORT, { sameConfig }], - * ]); - */ - -var interactiveEventTypeNames = [[TOP_BLUR, 'blur'], [TOP_CANCEL, 'cancel'], [TOP_CLICK, 'click'], [TOP_CLOSE, 'close'], [TOP_CONTEXT_MENU, 'contextMenu'], [TOP_COPY, 'copy'], [TOP_CUT, 'cut'], [TOP_AUX_CLICK, 'auxClick'], [TOP_DOUBLE_CLICK, 'doubleClick'], [TOP_DRAG_END, 'dragEnd'], [TOP_DRAG_START, 'dragStart'], [TOP_DROP, 'drop'], [TOP_FOCUS, 'focus'], [TOP_INPUT, 'input'], [TOP_INVALID, 'invalid'], [TOP_KEY_DOWN, 'keyDown'], [TOP_KEY_PRESS, 'keyPress'], [TOP_KEY_UP, 'keyUp'], [TOP_MOUSE_DOWN, 'mouseDown'], [TOP_MOUSE_UP, 'mouseUp'], [TOP_PASTE, 'paste'], [TOP_PAUSE, 'pause'], [TOP_PLAY, 'play'], [TOP_POINTER_CANCEL, 'pointerCancel'], [TOP_POINTER_DOWN, 'pointerDown'], [TOP_POINTER_UP, 'pointerUp'], [TOP_RATE_CHANGE, 'rateChange'], [TOP_RESET, 'reset'], [TOP_SEEKED, 'seeked'], [TOP_SUBMIT, 'submit'], [TOP_TOUCH_CANCEL, 'touchCancel'], [TOP_TOUCH_END, 'touchEnd'], [TOP_TOUCH_START, 'touchStart'], [TOP_VOLUME_CHANGE, 'volumeChange']]; -var nonInteractiveEventTypeNames = [[TOP_ABORT, 'abort'], [TOP_ANIMATION_END, 'animationEnd'], [TOP_ANIMATION_ITERATION, 'animationIteration'], [TOP_ANIMATION_START, 'animationStart'], [TOP_CAN_PLAY, 'canPlay'], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough'], [TOP_DRAG, 'drag'], [TOP_DRAG_ENTER, 'dragEnter'], [TOP_DRAG_EXIT, 'dragExit'], [TOP_DRAG_LEAVE, 'dragLeave'], [TOP_DRAG_OVER, 'dragOver'], [TOP_DURATION_CHANGE, 'durationChange'], [TOP_EMPTIED, 'emptied'], [TOP_ENCRYPTED, 'encrypted'], [TOP_ENDED, 'ended'], [TOP_ERROR, 'error'], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture'], [TOP_LOAD, 'load'], [TOP_LOADED_DATA, 'loadedData'], [TOP_LOADED_METADATA, 'loadedMetadata'], [TOP_LOAD_START, 'loadStart'], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture'], [TOP_MOUSE_MOVE, 'mouseMove'], [TOP_MOUSE_OUT, 'mouseOut'], [TOP_MOUSE_OVER, 'mouseOver'], [TOP_PLAYING, 'playing'], [TOP_POINTER_MOVE, 'pointerMove'], [TOP_POINTER_OUT, 'pointerOut'], [TOP_POINTER_OVER, 'pointerOver'], [TOP_PROGRESS, 'progress'], [TOP_SCROLL, 'scroll'], [TOP_SEEKING, 'seeking'], [TOP_STALLED, 'stalled'], [TOP_SUSPEND, 'suspend'], [TOP_TIME_UPDATE, 'timeUpdate'], [TOP_TOGGLE, 'toggle'], [TOP_TOUCH_MOVE, 'touchMove'], [TOP_TRANSITION_END, 'transitionEnd'], [TOP_WAITING, 'waiting'], [TOP_WHEEL, 'wheel']]; - -var eventTypes$4 = {}; -var topLevelEventsToDispatchConfig = {}; - -function addEventTypeNameToConfig(_ref, isInteractive) { - var topEvent = _ref[0], - event = _ref[1]; - - var capitalizedEvent = event[0].toUpperCase() + event.slice(1); - var onEvent = 'on' + capitalizedEvent; - - var type = { - phasedRegistrationNames: { - bubbled: onEvent, - captured: onEvent + 'Capture' - }, - dependencies: [topEvent], - isInteractive: isInteractive - }; - eventTypes$4[event] = type; - topLevelEventsToDispatchConfig[topEvent] = type; -} - -interactiveEventTypeNames.forEach(function (eventTuple) { - addEventTypeNameToConfig(eventTuple, true); -}); -nonInteractiveEventTypeNames.forEach(function (eventTuple) { - addEventTypeNameToConfig(eventTuple, false); -}); - -// Only used in DEV for exhaustiveness validation. -var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING]; - -var SimpleEventPlugin = { - eventTypes: eventTypes$4, - - isInteractiveTopLevelEventType: function (topLevelType) { - var config = topLevelEventsToDispatchConfig[topLevelType]; - return config !== undefined && config.isInteractive === true; - }, - - - extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType]; - if (!dispatchConfig) { - return null; - } - var EventConstructor = void 0; - switch (topLevelType) { - case TOP_KEY_PRESS: - // Firefox creates a keypress event for function keys too. This removes - // the unwanted keypress events. Enter is however both printable and - // non-printable. One would expect Tab to be as well (but it isn't). - if (getEventCharCode(nativeEvent) === 0) { - return null; - } - /* falls through */ - case TOP_KEY_DOWN: - case TOP_KEY_UP: - EventConstructor = SyntheticKeyboardEvent; - break; - case TOP_BLUR: - case TOP_FOCUS: - EventConstructor = SyntheticFocusEvent; - break; - case TOP_CLICK: - // Firefox creates a click event on right mouse clicks. This removes the - // unwanted click events. - if (nativeEvent.button === 2) { - return null; - } - /* falls through */ - case TOP_AUX_CLICK: - case TOP_DOUBLE_CLICK: - case TOP_MOUSE_DOWN: - case TOP_MOUSE_MOVE: - case TOP_MOUSE_UP: - // TODO: Disabled elements should not respond to mouse events - /* falls through */ - case TOP_MOUSE_OUT: - case TOP_MOUSE_OVER: - case TOP_CONTEXT_MENU: - EventConstructor = SyntheticMouseEvent; - break; - case TOP_DRAG: - case TOP_DRAG_END: - case TOP_DRAG_ENTER: - case TOP_DRAG_EXIT: - case TOP_DRAG_LEAVE: - case TOP_DRAG_OVER: - case TOP_DRAG_START: - case TOP_DROP: - EventConstructor = SyntheticDragEvent; - break; - case TOP_TOUCH_CANCEL: - case TOP_TOUCH_END: - case TOP_TOUCH_MOVE: - case TOP_TOUCH_START: - EventConstructor = SyntheticTouchEvent; - break; - case TOP_ANIMATION_END: - case TOP_ANIMATION_ITERATION: - case TOP_ANIMATION_START: - EventConstructor = SyntheticAnimationEvent; - break; - case TOP_TRANSITION_END: - EventConstructor = SyntheticTransitionEvent; - break; - case TOP_SCROLL: - EventConstructor = SyntheticUIEvent; - break; - case TOP_WHEEL: - EventConstructor = SyntheticWheelEvent; - break; - case TOP_COPY: - case TOP_CUT: - case TOP_PASTE: - EventConstructor = SyntheticClipboardEvent; - break; - case TOP_GOT_POINTER_CAPTURE: - case TOP_LOST_POINTER_CAPTURE: - case TOP_POINTER_CANCEL: - case TOP_POINTER_DOWN: - case TOP_POINTER_MOVE: - case TOP_POINTER_OUT: - case TOP_POINTER_OVER: - case TOP_POINTER_UP: - EventConstructor = SyntheticPointerEvent; - break; - default: - { - if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) { - warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType); - } - } - // HTML Events - // @see http://www.w3.org/TR/html5/index.html#events-0 - EventConstructor = SyntheticEvent; - break; - } - var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget); - accumulateTwoPhaseDispatches(event); - return event; - } -}; - -var isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType; - - -var CALLBACK_BOOKKEEPING_POOL_SIZE = 10; -var callbackBookkeepingPool = []; - -/** - * Find the deepest React component completely containing the root of the - * passed-in instance (for use when entire React trees are nested within each - * other). If React trees are not nested, returns null. - */ -function findRootContainerNode(inst) { - // TODO: It may be a good idea to cache this to prevent unnecessary DOM - // traversal, but caching is difficult to do correctly without using a - // mutation observer to listen for all DOM changes. - while (inst.return) { - inst = inst.return; - } - if (inst.tag !== HostRoot) { - // This can happen if we're in a detached tree. - return null; - } - return inst.stateNode.containerInfo; -} - -// Used to store ancestor hierarchy in top level callback -function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) { - if (callbackBookkeepingPool.length) { - var instance = callbackBookkeepingPool.pop(); - instance.topLevelType = topLevelType; - instance.nativeEvent = nativeEvent; - instance.targetInst = targetInst; - return instance; - } - return { - topLevelType: topLevelType, - nativeEvent: nativeEvent, - targetInst: targetInst, - ancestors: [] - }; -} - -function releaseTopLevelCallbackBookKeeping(instance) { - instance.topLevelType = null; - instance.nativeEvent = null; - instance.targetInst = null; - instance.ancestors.length = 0; - if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) { - callbackBookkeepingPool.push(instance); - } -} - -function handleTopLevel(bookKeeping) { - var targetInst = bookKeeping.targetInst; - - // Loop through the hierarchy, in case there's any nested components. - // It's important that we build the array of ancestors before calling any - // event handlers, because event handlers can modify the DOM, leading to - // inconsistencies with ReactMount's node cache. See #1105. - var ancestor = targetInst; - do { - if (!ancestor) { - bookKeeping.ancestors.push(ancestor); - break; - } - var root = findRootContainerNode(ancestor); - if (!root) { - break; - } - bookKeeping.ancestors.push(ancestor); - ancestor = getClosestInstanceFromNode(root); - } while (ancestor); - - for (var i = 0; i < bookKeeping.ancestors.length; i++) { - targetInst = bookKeeping.ancestors[i]; - runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent)); - } -} - -// TODO: can we stop exporting these? -var _enabled = true; - -function setEnabled(enabled) { - _enabled = !!enabled; -} - -function isEnabled() { - return _enabled; -} - -/** - * Traps top-level events by using event bubbling. - * - * @param {number} topLevelType Number from `TopLevelEventTypes`. - * @param {object} element Element on which to attach listener. - * @return {?object} An object with a remove function which will forcefully - * remove the listener. - * @internal - */ -function trapBubbledEvent(topLevelType, element) { - if (!element) { - return null; - } - var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent; - - addEventBubbleListener(element, getRawEventName(topLevelType), - // Check if interactive and wrap in interactiveUpdates - dispatch.bind(null, topLevelType)); -} - -/** - * Traps a top-level event by using event capturing. - * - * @param {number} topLevelType Number from `TopLevelEventTypes`. - * @param {object} element Element on which to attach listener. - * @return {?object} An object with a remove function which will forcefully - * remove the listener. - * @internal - */ -function trapCapturedEvent(topLevelType, element) { - if (!element) { - return null; - } - var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent; - - addEventCaptureListener(element, getRawEventName(topLevelType), - // Check if interactive and wrap in interactiveUpdates - dispatch.bind(null, topLevelType)); -} - -function dispatchInteractiveEvent(topLevelType, nativeEvent) { - interactiveUpdates(dispatchEvent, topLevelType, nativeEvent); -} - -function dispatchEvent(topLevelType, nativeEvent) { - if (!_enabled) { - return; - } - - var nativeEventTarget = getEventTarget(nativeEvent); - var targetInst = getClosestInstanceFromNode(nativeEventTarget); - if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) { - // If we get an event (ex: img onload) before committing that - // component's mount, ignore it for now (that is, treat it as if it was an - // event on a non-React tree). We might also consider queueing events and - // dispatching them after the mount. - targetInst = null; - } - - var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst); - - try { - // Event queue being processed in the same cycle allows - // `preventDefault`. - batchedUpdates(handleTopLevel, bookKeeping); - } finally { - releaseTopLevelCallbackBookKeeping(bookKeeping); - } -} - -/** - * Summary of `ReactBrowserEventEmitter` event handling: - * - * - Top-level delegation is used to trap most native browser events. This - * may only occur in the main thread and is the responsibility of - * ReactDOMEventListener, which is injected and can therefore support - * pluggable event sources. This is the only work that occurs in the main - * thread. - * - * - We normalize and de-duplicate events to account for browser quirks. This - * may be done in the worker thread. - * - * - Forward these native events (with the associated top-level type used to - * trap it) to `EventPluginHub`, which in turn will ask plugins if they want - * to extract any synthetic events. - * - * - The `EventPluginHub` will then process each event by annotating them with - * "dispatches", a sequence of listeners and IDs that care about that event. - * - * - The `EventPluginHub` then dispatches the events. - * - * Overview of React and the event system: - * - * +------------+ . - * | DOM | . - * +------------+ . - * | . - * v . - * +------------+ . - * | ReactEvent | . - * | Listener | . - * +------------+ . +-----------+ - * | . +--------+|SimpleEvent| - * | . | |Plugin | - * +-----|------+ . v +-----------+ - * | | | . +--------------+ +------------+ - * | +-----------.--->|EventPluginHub| | Event | - * | | . | | +-----------+ | Propagators| - * | ReactEvent | . | | |TapEvent | |------------| - * | Emitter | . | |<---+|Plugin | |other plugin| - * | | . | | +-----------+ | utilities | - * | +-----------.--->| | +------------+ - * | | | . +--------------+ - * +-----|------+ . ^ +-----------+ - * | . | |Enter/Leave| - * + . +-------+|Plugin | - * +-------------+ . +-----------+ - * | application | . - * |-------------| . - * | | . - * | | . - * +-------------+ . - * . - * React Core . General Purpose Event Plugin System - */ - -var alreadyListeningTo = {}; -var reactTopListenersCounter = 0; - -/** - * To ensure no conflicts with other potential React instances on the page - */ -var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2); - -function getListeningForDocument(mountAt) { - // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty` - // directly. - if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) { - mountAt[topListenersIDKey] = reactTopListenersCounter++; - alreadyListeningTo[mountAt[topListenersIDKey]] = {}; - } - return alreadyListeningTo[mountAt[topListenersIDKey]]; -} - -/** - * We listen for bubbled touch events on the document object. - * - * Firefox v8.01 (and possibly others) exhibited strange behavior when - * mounting `onmousemove` events at some node that was not the document - * element. The symptoms were that if your mouse is not moving over something - * contained within that mount point (for example on the background) the - * top-level listeners for `onmousemove` won't be called. However, if you - * register the `mousemove` on the document object, then it will of course - * catch all `mousemove`s. This along with iOS quirks, justifies restricting - * top-level listeners to the document object only, at least for these - * movement types of events and possibly all events. - * - * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html - * - * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but - * they bubble to document. - * - * @param {string} registrationName Name of listener (e.g. `onClick`). - * @param {object} mountAt Container where to mount the listener - */ -function listenTo(registrationName, mountAt) { - var isListening = getListeningForDocument(mountAt); - var dependencies = registrationNameDependencies[registrationName]; - - for (var i = 0; i < dependencies.length; i++) { - var dependency = dependencies[i]; - if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) { - switch (dependency) { - case TOP_SCROLL: - trapCapturedEvent(TOP_SCROLL, mountAt); - break; - case TOP_FOCUS: - case TOP_BLUR: - trapCapturedEvent(TOP_FOCUS, mountAt); - trapCapturedEvent(TOP_BLUR, mountAt); - // We set the flag for a single dependency later in this function, - // but this ensures we mark both as attached rather than just one. - isListening[TOP_BLUR] = true; - isListening[TOP_FOCUS] = true; - break; - case TOP_CANCEL: - case TOP_CLOSE: - if (isEventSupported(getRawEventName(dependency))) { - trapCapturedEvent(dependency, mountAt); - } - break; - case TOP_INVALID: - case TOP_SUBMIT: - case TOP_RESET: - // We listen to them on the target DOM elements. - // Some of them bubble so we don't want them to fire twice. - break; - default: - // By default, listen on the top level to all non-media events. - // Media events don't bubble so adding the listener wouldn't do anything. - var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1; - if (!isMediaEvent) { - trapBubbledEvent(dependency, mountAt); - } - break; - } - isListening[dependency] = true; - } - } -} - -function isListeningToAllDependencies(registrationName, mountAt) { - var isListening = getListeningForDocument(mountAt); - var dependencies = registrationNameDependencies[registrationName]; - for (var i = 0; i < dependencies.length; i++) { - var dependency = dependencies[i]; - if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) { - return false; - } - } - return true; -} - -function getActiveElement(doc) { - doc = doc || (typeof document !== 'undefined' ? document : undefined); - if (typeof doc === 'undefined') { - return null; - } - try { - return doc.activeElement || doc.body; - } catch (e) { - return doc.body; - } -} - -/** - * Given any node return the first leaf node without children. - * - * @param {DOMElement|DOMTextNode} node - * @return {DOMElement|DOMTextNode} - */ -function getLeafNode(node) { - while (node && node.firstChild) { - node = node.firstChild; - } - return node; -} - -/** - * Get the next sibling within a container. This will walk up the - * DOM if a node's siblings have been exhausted. - * - * @param {DOMElement|DOMTextNode} node - * @return {?DOMElement|DOMTextNode} - */ -function getSiblingNode(node) { - while (node) { - if (node.nextSibling) { - return node.nextSibling; - } - node = node.parentNode; - } -} - -/** - * Get object describing the nodes which contain characters at offset. - * - * @param {DOMElement|DOMTextNode} root - * @param {number} offset - * @return {?object} - */ -function getNodeForCharacterOffset(root, offset) { - var node = getLeafNode(root); - var nodeStart = 0; - var nodeEnd = 0; - - while (node) { - if (node.nodeType === TEXT_NODE) { - nodeEnd = nodeStart + node.textContent.length; - - if (nodeStart <= offset && nodeEnd >= offset) { - return { - node: node, - offset: offset - nodeStart - }; - } - - nodeStart = nodeEnd; - } - - node = getLeafNode(getSiblingNode(node)); - } -} - -/** - * @param {DOMElement} outerNode - * @return {?object} - */ -function getOffsets(outerNode) { - var ownerDocument = outerNode.ownerDocument; - - var win = ownerDocument && ownerDocument.defaultView || window; - var selection = win.getSelection && win.getSelection(); - - if (!selection || selection.rangeCount === 0) { - return null; - } - - var anchorNode = selection.anchorNode, - anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode, - focusOffset = selection.focusOffset; - - // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the - // up/down buttons on an . Anonymous divs do not seem to - // expose properties, triggering a "Permission denied error" if any of its - // properties are accessed. The only seemingly possible way to avoid erroring - // is to access a property that typically works for non-anonymous divs and - // catch any error that may otherwise arise. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=208427 - - try { - /* eslint-disable no-unused-expressions */ - anchorNode.nodeType; - focusNode.nodeType; - /* eslint-enable no-unused-expressions */ - } catch (e) { - return null; - } - - return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset); -} - -/** - * Returns {start, end} where `start` is the character/codepoint index of - * (anchorNode, anchorOffset) within the textContent of `outerNode`, and - * `end` is the index of (focusNode, focusOffset). - * - * Returns null if you pass in garbage input but we should probably just crash. - * - * Exported only for testing. - */ -function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) { - var length = 0; - var start = -1; - var end = -1; - var indexWithinAnchor = 0; - var indexWithinFocus = 0; - var node = outerNode; - var parentNode = null; - - outer: while (true) { - var next = null; - - while (true) { - if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) { - start = length + anchorOffset; - } - if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) { - end = length + focusOffset; - } - - if (node.nodeType === TEXT_NODE) { - length += node.nodeValue.length; - } - - if ((next = node.firstChild) === null) { - break; - } - // Moving from `node` to its first child `next`. - parentNode = node; - node = next; - } - - while (true) { - if (node === outerNode) { - // If `outerNode` has children, this is always the second time visiting - // it. If it has no children, this is still the first loop, and the only - // valid selection is anchorNode and focusNode both equal to this node - // and both offsets 0, in which case we will have handled above. - break outer; - } - if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) { - start = length; - } - if (parentNode === focusNode && ++indexWithinFocus === focusOffset) { - end = length; - } - if ((next = node.nextSibling) !== null) { - break; - } - node = parentNode; - parentNode = node.parentNode; - } - - // Moving from `node` to its next sibling `next`. - node = next; - } - - if (start === -1 || end === -1) { - // This should never happen. (Would happen if the anchor/focus nodes aren't - // actually inside the passed-in node.) - return null; - } - - return { - start: start, - end: end - }; -} - -/** - * In modern non-IE browsers, we can support both forward and backward - * selections. - * - * Note: IE10+ supports the Selection object, but it does not support - * the `extend` method, which means that even in modern IE, it's not possible - * to programmatically create a backward selection. Thus, for all IE - * versions, we use the old IE API to create our selections. - * - * @param {DOMElement|DOMTextNode} node - * @param {object} offsets - */ -function setOffsets(node, offsets) { - var doc = node.ownerDocument || document; - var win = doc && doc.defaultView || window; - - // Edge fails with "Object expected" in some scenarios. - // (For instance: TinyMCE editor used in a list component that supports pasting to add more, - // fails when pasting 100+ items) - if (!win.getSelection) { - return; - } - - var selection = win.getSelection(); - var length = node.textContent.length; - var start = Math.min(offsets.start, length); - var end = offsets.end === undefined ? start : Math.min(offsets.end, length); - - // IE 11 uses modern selection, but doesn't support the extend method. - // Flip backward selections, so we can set with a single range. - if (!selection.extend && start > end) { - var temp = end; - end = start; - start = temp; - } - - var startMarker = getNodeForCharacterOffset(node, start); - var endMarker = getNodeForCharacterOffset(node, end); - - if (startMarker && endMarker) { - if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) { - return; - } - var range = doc.createRange(); - range.setStart(startMarker.node, startMarker.offset); - selection.removeAllRanges(); - - if (start > end) { - selection.addRange(range); - selection.extend(endMarker.node, endMarker.offset); - } else { - range.setEnd(endMarker.node, endMarker.offset); - selection.addRange(range); - } - } -} - -function isTextNode(node) { - return node && node.nodeType === TEXT_NODE; -} - -function containsNode(outerNode, innerNode) { - if (!outerNode || !innerNode) { - return false; - } else if (outerNode === innerNode) { - return true; - } else if (isTextNode(outerNode)) { - return false; - } else if (isTextNode(innerNode)) { - return containsNode(outerNode, innerNode.parentNode); - } else if ('contains' in outerNode) { - return outerNode.contains(innerNode); - } else if (outerNode.compareDocumentPosition) { - return !!(outerNode.compareDocumentPosition(innerNode) & 16); - } else { - return false; - } -} - -function isInDocument(node) { - return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node); -} - -function getActiveElementDeep() { - var win = window; - var element = getActiveElement(); - while (element instanceof win.HTMLIFrameElement) { - // Accessing the contentDocument of a HTMLIframeElement can cause the browser - // to throw, e.g. if it has a cross-origin src attribute - try { - win = element.contentDocument.defaultView; - } catch (e) { - return element; - } - element = getActiveElement(win.document); - } - return element; -} - -/** - * @ReactInputSelection: React input selection module. Based on Selection.js, - * but modified to be suitable for react and has a couple of bug fixes (doesn't - * assume buttons have range selections allowed). - * Input selection module for React. - */ - -/** - * @hasSelectionCapabilities: we get the element types that support selection - * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart` - * and `selectionEnd` rows. - */ -function hasSelectionCapabilities(elem) { - var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); - return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true'); -} - -function getSelectionInformation() { - var focusedElem = getActiveElementDeep(); - return { - focusedElem: focusedElem, - selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null - }; -} - -/** - * @restoreSelection: If any selection information was potentially lost, - * restore it. This is useful when performing operations that could remove dom - * nodes and place them back in, resulting in focus being lost. - */ -function restoreSelection(priorSelectionInformation) { - var curFocusedElem = getActiveElementDeep(); - var priorFocusedElem = priorSelectionInformation.focusedElem; - var priorSelectionRange = priorSelectionInformation.selectionRange; - if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) { - if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) { - setSelection(priorFocusedElem, priorSelectionRange); - } - - // Focusing a node can change the scroll position, which is undesirable - var ancestors = []; - var ancestor = priorFocusedElem; - while (ancestor = ancestor.parentNode) { - if (ancestor.nodeType === ELEMENT_NODE) { - ancestors.push({ - element: ancestor, - left: ancestor.scrollLeft, - top: ancestor.scrollTop - }); - } - } - - if (typeof priorFocusedElem.focus === 'function') { - priorFocusedElem.focus(); - } - - for (var i = 0; i < ancestors.length; i++) { - var info = ancestors[i]; - info.element.scrollLeft = info.left; - info.element.scrollTop = info.top; - } - } -} - -/** - * @getSelection: Gets the selection bounds of a focused textarea, input or - * contentEditable node. - * -@input: Look up selection bounds of this input - * -@return {start: selectionStart, end: selectionEnd} - */ -function getSelection$1(input) { - var selection = void 0; - - if ('selectionStart' in input) { - // Modern browser with input or textarea. - selection = { - start: input.selectionStart, - end: input.selectionEnd - }; - } else { - // Content editable or old IE textarea. - selection = getOffsets(input); - } - - return selection || { start: 0, end: 0 }; -} - -/** - * @setSelection: Sets the selection bounds of a textarea or input and focuses - * the input. - * -@input Set selection bounds of this input or textarea - * -@offsets Object of same form that is returned from get* - */ -function setSelection(input, offsets) { - var start = offsets.start, - end = offsets.end; - - if (end === undefined) { - end = start; - } - - if ('selectionStart' in input) { - input.selectionStart = start; - input.selectionEnd = Math.min(end, input.value.length); - } else { - setOffsets(input, offsets); - } -} - -var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11; - -var eventTypes$3 = { - select: { - phasedRegistrationNames: { - bubbled: 'onSelect', - captured: 'onSelectCapture' - }, - dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE] - } -}; - -var activeElement$1 = null; -var activeElementInst$1 = null; -var lastSelection = null; -var mouseDown = false; - -/** - * Get an object which is a unique representation of the current selection. - * - * The return value will not be consistent across nodes or browsers, but - * two identical selections on the same node will return identical objects. - * - * @param {DOMElement} node - * @return {object} - */ -function getSelection(node) { - if ('selectionStart' in node && hasSelectionCapabilities(node)) { - return { - start: node.selectionStart, - end: node.selectionEnd - }; - } else { - var win = node.ownerDocument && node.ownerDocument.defaultView || window; - var selection = win.getSelection(); - return { - anchorNode: selection.anchorNode, - anchorOffset: selection.anchorOffset, - focusNode: selection.focusNode, - focusOffset: selection.focusOffset - }; - } -} - -/** - * Get document associated with the event target. - * - * @param {object} nativeEventTarget - * @return {Document} - */ -function getEventTargetDocument(eventTarget) { - return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument; -} - -/** - * Poll selection to see whether it's changed. - * - * @param {object} nativeEvent - * @param {object} nativeEventTarget - * @return {?SyntheticEvent} - */ -function constructSelectEvent(nativeEvent, nativeEventTarget) { - // Ensure we have the right element, and that the user is not dragging a - // selection (this matches native `select` event behavior). In HTML5, select - // fires only on input and textarea thus if there's no focused element we - // won't dispatch. - var doc = getEventTargetDocument(nativeEventTarget); - - if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) { - return null; - } - - // Only fire when selection has actually changed. - var currentSelection = getSelection(activeElement$1); - if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { - lastSelection = currentSelection; - - var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget); - - syntheticEvent.type = 'select'; - syntheticEvent.target = activeElement$1; - - accumulateTwoPhaseDispatches(syntheticEvent); - - return syntheticEvent; - } - - return null; -} - -/** - * This plugin creates an `onSelect` event that normalizes select events - * across form elements. - * - * Supported elements are: - * - input (see `isTextInputElement`) - * - textarea - * - contentEditable - * - * This differs from native browser implementations in the following ways: - * - Fires on contentEditable fields as well as inputs. - * - Fires for collapsed selection. - * - Fires after user input. - */ -var SelectEventPlugin = { - eventTypes: eventTypes$3, - - extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { - var doc = getEventTargetDocument(nativeEventTarget); - // Track whether all listeners exists for this plugin. If none exist, we do - // not extract events. See #3639. - if (!doc || !isListeningToAllDependencies('onSelect', doc)) { - return null; - } - - var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window; - - switch (topLevelType) { - // Track the input node that has focus. - case TOP_FOCUS: - if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') { - activeElement$1 = targetNode; - activeElementInst$1 = targetInst; - lastSelection = null; - } - break; - case TOP_BLUR: - activeElement$1 = null; - activeElementInst$1 = null; - lastSelection = null; - break; - // Don't fire the event while the user is dragging. This matches the - // semantics of the native select event. - case TOP_MOUSE_DOWN: - mouseDown = true; - break; - case TOP_CONTEXT_MENU: - case TOP_MOUSE_UP: - case TOP_DRAG_END: - mouseDown = false; - return constructSelectEvent(nativeEvent, nativeEventTarget); - // Chrome and IE fire non-standard event when selection is changed (and - // sometimes when it hasn't). IE's event fires out of order with respect - // to key and input events on deletion, so we discard it. - // - // Firefox doesn't support selectionchange, so check selection status - // after each key entry. The selection changes after keydown and before - // keyup, but we check on keydown as well in the case of holding down a - // key, when multiple keydown events are fired but only one keyup is. - // This is also our approach for IE handling, for the reason above. - case TOP_SELECTION_CHANGE: - if (skipSelectionChangeEvent) { - break; - } - // falls through - case TOP_KEY_DOWN: - case TOP_KEY_UP: - return constructSelectEvent(nativeEvent, nativeEventTarget); - } - - return null; - } -}; - -/** - * Inject modules for resolving DOM hierarchy and plugin ordering. - */ -injection.injectEventPluginOrder(DOMEventPluginOrder); -setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1); - -/** - * Some important event plugins included by default (without having to require - * them). - */ -injection.injectEventPluginsByName({ - SimpleEventPlugin: SimpleEventPlugin, - EnterLeaveEventPlugin: EnterLeaveEventPlugin, - ChangeEventPlugin: ChangeEventPlugin, - SelectEventPlugin: SelectEventPlugin, - BeforeInputEventPlugin: BeforeInputEventPlugin -}); - -var didWarnSelectedSetOnOption = false; -var didWarnInvalidChild = false; - -function flattenChildren(children) { - var content = ''; - - // Flatten children. We'll warn if they are invalid - // during validateProps() which runs for hydration too. - // Note that this would throw on non-element objects. - // Elements are stringified (which is normally irrelevant - // but matters for ). - React.Children.forEach(children, function (child) { - if (child == null) { - return; - } - content += child; - // Note: we don't warn about invalid children here. - // Instead, this is done separately below so that - // it happens during the hydration codepath too. - }); - - return content; -} - -/** - * Implements an