From 4d9f9fdc24d389356e51657dba04eb177c0aa5a5 Mon Sep 17 00:00:00 2001 From: Aleem Isiaka Date: Sat, 7 Oct 2023 12:32:58 +0100 Subject: [PATCH 01/32] cleanup --- LICENSE | 21 - README.MD | 1314 ------------------ TODO.MD | 54 - commitlint.config.js | 3 - dist/es/components/GeoCode/index.js | 88 -- dist/es/components/HMap/index.js | 113 -- dist/es/components/HMap/objects/Circle.js | 60 - dist/es/components/HMap/objects/Marker.js | 93 -- dist/es/components/HMap/objects/PolyLine.js | 59 - dist/es/components/HMap/objects/Polygon.js | 66 - dist/es/components/HMap/objects/Rectangle.js | 55 - dist/es/components/Layer/index.js | 27 - dist/es/components/Places/PlaceInput.js | 44 - dist/es/components/Places/PlaceItem.js | 52 - dist/es/components/Places/PlaceItems.js | 40 - dist/es/components/Places/index.js | 220 --- dist/es/components/Platform/index.js | 48 - dist/es/components/Route/index.js | 201 --- dist/es/index.js | 22 - dist/es/libs/builders.js | 80 -- dist/es/libs/defaults.js | 49 - dist/es/libs/initDefaultUI.js | 8 - dist/es/libs/initInteraction.js | 25 - dist/es/libs/initInteractionStyles.js | 15 - dist/es/libs/initMap.js | 9 - dist/es/libs/initMapObjectEvents.js | 23 - dist/es/libs/initPlatform.js | 15 - dist/es/libs/loadMap.js | 38 - dist/es/libs/mapBuilder.js | 76 - dist/es/libs/placeBuilder.js | 41 - dist/es/libs/validateMapType.js | 13 - dist/es/main.js | 295 ---- dist/index.js | 8 - docs/build/bundle.e8edaf6d.js | 49 - docs/index.html | 13 - examples/sections.md | 0 examples/sections/Components.MD | 20 - examples/sections/Events.MD | 155 --- examples/sections/HCircle.MD | 46 - examples/sections/HGeoCode.MD | 164 --- examples/sections/HLayer.MD | 57 - examples/sections/HMap.MD | 60 - examples/sections/HMarker.MD | 46 - examples/sections/HPlaces.MD | 52 - examples/sections/HPlatform.MD | 43 - examples/sections/HPolyLine.MD | 44 - examples/sections/HPolygon.MD | 46 - examples/sections/HRectangle.MD | 43 - examples/sections/HRoute.MD | 375 ----- examples/sections/Introduction.MD | 63 - examples/theme.css | 37 - index.js | 1 - lib/_index.js | 389 ------ lib/components/GeoCode/index.js | 160 --- lib/components/HMap/index.js | 216 --- lib/components/HMap/objects/Circle.js | 75 - lib/components/HMap/objects/Marker.js | 106 -- lib/components/HMap/objects/PolyLine.js | 71 - lib/components/HMap/objects/Polygon.js | 78 -- lib/components/HMap/objects/Rectangle.js | 65 - lib/components/Layer/index.js | 43 - lib/components/Places/PlaceInput.js | 60 - lib/components/Places/PlaceItem.js | 72 - lib/components/Places/PlaceItems.js | 59 - lib/components/Places/index.js | 327 ----- lib/components/Platform/index.js | 129 -- lib/components/Route/index.js | 296 ---- lib/index.js | 99 -- lib/libs/builders.js | 145 -- lib/libs/defaults.js | 83 -- lib/libs/initDefaultUI.js | 16 - lib/libs/initInteraction.js | 41 - lib/libs/initInteractionStyles.js | 25 - lib/libs/initMap.js | 34 - lib/libs/initPlatform.js | 23 - lib/libs/loadMap.js | 52 - lib/libs/mapBuilder.js | 135 -- lib/libs/placeBuilder.js | 50 - lib/libs/validateMapType.js | 29 - lib/main.js | 61 - package.json | 142 -- rollup.config.js | 30 - setup.txt | 13 - src/components/GeoCode/index.js | 76 - src/components/HMap/index.js | 69 - src/components/HMap/objects/Circle.js | 62 - src/components/HMap/objects/Marker.js | 91 -- src/components/HMap/objects/PolyLine.js | 58 - src/components/HMap/objects/Polygon.js | 63 - src/components/HMap/objects/Rectangle.js | 57 - src/components/Layer/index.js | 28 - src/components/Places/PlaceInput.js | 40 - src/components/Places/PlaceItem.js | 47 - src/components/Places/PlaceItems.js | 39 - src/components/Places/index.js | 178 --- src/components/Platform/index.js | 30 - src/components/Route/index.js | 176 --- src/index.js | 23 - src/libs/builders.js | 73 - src/libs/defaults.js | 76 - src/libs/initDefaultUI.js | 7 - src/libs/initInteraction.js | 22 - src/libs/initInteractionStyles.js | 13 - src/libs/initMap.js | 10 - src/libs/initMapObjectEvents.js | 17 - src/libs/initPlatform.js | 10 - src/libs/loadMap.js | 29 - src/libs/mapBuilder.js | 69 - src/libs/placeBuilder.js | 33 - src/libs/validateMapType.js | 14 - src/main.js | 309 ---- styleguide.config.js | 78 -- testSetup.js | 9 - webpack.config.js | 41 - 114 files changed, 9560 deletions(-) delete mode 100644 LICENSE delete mode 100644 README.MD delete mode 100644 TODO.MD delete mode 100644 commitlint.config.js delete mode 100644 dist/es/components/GeoCode/index.js delete mode 100644 dist/es/components/HMap/index.js delete mode 100644 dist/es/components/HMap/objects/Circle.js delete mode 100644 dist/es/components/HMap/objects/Marker.js delete mode 100644 dist/es/components/HMap/objects/PolyLine.js delete mode 100644 dist/es/components/HMap/objects/Polygon.js delete mode 100644 dist/es/components/HMap/objects/Rectangle.js delete mode 100644 dist/es/components/Layer/index.js delete mode 100644 dist/es/components/Places/PlaceInput.js delete mode 100644 dist/es/components/Places/PlaceItem.js delete mode 100644 dist/es/components/Places/PlaceItems.js delete mode 100644 dist/es/components/Places/index.js delete mode 100644 dist/es/components/Platform/index.js delete mode 100644 dist/es/components/Route/index.js delete mode 100644 dist/es/index.js delete mode 100644 dist/es/libs/builders.js delete mode 100644 dist/es/libs/defaults.js delete mode 100644 dist/es/libs/initDefaultUI.js delete mode 100644 dist/es/libs/initInteraction.js delete mode 100644 dist/es/libs/initInteractionStyles.js delete mode 100644 dist/es/libs/initMap.js delete mode 100644 dist/es/libs/initMapObjectEvents.js delete mode 100644 dist/es/libs/initPlatform.js delete mode 100644 dist/es/libs/loadMap.js delete mode 100644 dist/es/libs/mapBuilder.js delete mode 100644 dist/es/libs/placeBuilder.js delete mode 100644 dist/es/libs/validateMapType.js delete mode 100644 dist/es/main.js delete mode 100644 dist/index.js delete mode 100644 docs/build/bundle.e8edaf6d.js delete mode 100644 docs/index.html delete mode 100644 examples/sections.md delete mode 100644 examples/sections/Components.MD delete mode 100644 examples/sections/Events.MD delete mode 100644 examples/sections/HCircle.MD delete mode 100644 examples/sections/HGeoCode.MD delete mode 100644 examples/sections/HLayer.MD delete mode 100644 examples/sections/HMap.MD delete mode 100644 examples/sections/HMarker.MD delete mode 100644 examples/sections/HPlaces.MD delete mode 100644 examples/sections/HPlatform.MD delete mode 100644 examples/sections/HPolyLine.MD delete mode 100644 examples/sections/HPolygon.MD delete mode 100644 examples/sections/HRectangle.MD delete mode 100644 examples/sections/HRoute.MD delete mode 100644 examples/sections/Introduction.MD delete mode 100644 examples/theme.css delete mode 100644 index.js delete mode 100644 lib/_index.js delete mode 100644 lib/components/GeoCode/index.js delete mode 100644 lib/components/HMap/index.js delete mode 100644 lib/components/HMap/objects/Circle.js delete mode 100644 lib/components/HMap/objects/Marker.js delete mode 100644 lib/components/HMap/objects/PolyLine.js delete mode 100644 lib/components/HMap/objects/Polygon.js delete mode 100644 lib/components/HMap/objects/Rectangle.js delete mode 100644 lib/components/Layer/index.js delete mode 100644 lib/components/Places/PlaceInput.js delete mode 100644 lib/components/Places/PlaceItem.js delete mode 100644 lib/components/Places/PlaceItems.js delete mode 100644 lib/components/Places/index.js delete mode 100644 lib/components/Platform/index.js delete mode 100644 lib/components/Route/index.js delete mode 100644 lib/index.js delete mode 100644 lib/libs/builders.js delete mode 100644 lib/libs/defaults.js delete mode 100644 lib/libs/initDefaultUI.js delete mode 100644 lib/libs/initInteraction.js delete mode 100644 lib/libs/initInteractionStyles.js delete mode 100644 lib/libs/initMap.js delete mode 100644 lib/libs/initPlatform.js delete mode 100644 lib/libs/loadMap.js delete mode 100644 lib/libs/mapBuilder.js delete mode 100644 lib/libs/placeBuilder.js delete mode 100644 lib/libs/validateMapType.js delete mode 100644 lib/main.js delete mode 100644 package.json delete mode 100644 rollup.config.js delete mode 100644 setup.txt delete mode 100644 src/components/GeoCode/index.js delete mode 100644 src/components/HMap/index.js delete mode 100644 src/components/HMap/objects/Circle.js delete mode 100644 src/components/HMap/objects/Marker.js delete mode 100644 src/components/HMap/objects/PolyLine.js delete mode 100644 src/components/HMap/objects/Polygon.js delete mode 100644 src/components/HMap/objects/Rectangle.js delete mode 100644 src/components/Layer/index.js delete mode 100644 src/components/Places/PlaceInput.js delete mode 100644 src/components/Places/PlaceItem.js delete mode 100644 src/components/Places/PlaceItems.js delete mode 100644 src/components/Places/index.js delete mode 100644 src/components/Platform/index.js delete mode 100644 src/components/Route/index.js delete mode 100644 src/index.js delete mode 100644 src/libs/builders.js delete mode 100644 src/libs/defaults.js delete mode 100644 src/libs/initDefaultUI.js delete mode 100644 src/libs/initInteraction.js delete mode 100644 src/libs/initInteractionStyles.js delete mode 100644 src/libs/initMap.js delete mode 100644 src/libs/initMapObjectEvents.js delete mode 100644 src/libs/initPlatform.js delete mode 100644 src/libs/loadMap.js delete mode 100644 src/libs/mapBuilder.js delete mode 100644 src/libs/placeBuilder.js delete mode 100644 src/libs/validateMapType.js delete mode 100644 src/main.js delete mode 100644 styleguide.config.js delete mode 100644 testSetup.js delete mode 100644 webpack.config.js diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 39d25a3..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Aleem Isiaka - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.MD b/README.MD deleted file mode 100644 index 9dca3d7..0000000 --- a/README.MD +++ /dev/null @@ -1,1314 +0,0 @@ -# react-here-map - -React components for rendering and working with -[Here Maps](https://www.here.com/). - -It simplifies the use of the Here Map JavaScript API with the help React -components. - -The components can be imported and easily rendered. It also comes with seamless -configuration and modifications. - -## Demo - -[See it here](https://limistah.github.io/react-here-map/) - -## Installation - -Using NPM: - -```bash -npm i --save react-here-map -``` - -Using Yarn: - -```bash -yarn add react-here-map -``` - -## General Usage - -```js static -import React from "react"; -import ReactDOM from "react-dom"; -import HPlatform, { HMap, HMapPolyLine } from "react-here-map"; - -const points = [ - { lat: 52.5309825, lng: 13.3845921 }, - { lat: 52.5311923, lng: 13.3853495 }, - { lat: 52.5313532, lng: 13.3861756 }, - { lat: 52.5315142, lng: 13.3872163 }, - { lat: 52.5316215, lng: 13.3885574 }, - { lat: 52.5320399, lng: 13.3925807 }, - { lat: 52.5321472, lng: 13.3935785 }, -]; - -ReactDOM.render( - - - - - , - document.getElementById("app") -); -``` - -## Docs - -The default export from this library instantiates the Here Maps platform, which -is required before initialization of other libraries of the Here Map Javascript -SDK. - -The platform is expected to be a direct parent of all other supported -components. - -Interesting components are also exported, they can be customized using supported -props. - -### Components - -1. **[HPlatform](#HPlatform)** - Platform initializer. All major components - should be its direct child. -1. **[HMap](#hmap)** - Default export from this module, should be used as a - parent for other components -1. **[HMapPolyLine](#hmappolyline)** - Draws a polyline on the map. A direct - child of the map -1. **[HMapPolygon](#hmappolygon)** - Draws a polygon on the map. A direct child - of the map -1. **[HMapMarker](#hmapmarker)** - Puts a marker on the map. A direct child of - the map -1. **[HMapCircle](#hmapcircle)** - Draws a circle on the map. A direct child of - the map -1. **[HMapRectangle](#hmaprectangle)** - Draws a rectangle on the map. A direct - child of the map -1. **[Event Handling](#event-handling)** - Handling of user evens with `HMap` and it objects - child of the map -1. **[HMapGeoCode](#hmapgeocode)** - Turns a physical address to a point on the - map -1. **[HMapRoute](#hmaproute)** - Defines a route to locate two points. A direct - child of the map -1. **[HMapLayer](#hmaplayer)** - Adds additional informational layer on the map. - A direct child of the map - -### Usage in details - -#### HPlatform - -A container for all of the components in this library. Generates a platform that -are injected into all of its direct children. - -```js static -import HPlatform, { HMap, HMapPolyLine } from "react-here-map"; - - - {/*Children come in here*/} -; -``` - -All direct children of `HPlatform` component receives: - -- **platform** A reference to H.service.platform - [Docs](https://developer.here.com/documentation/maps/topics_api/h-service-platform.html) -- **options** A reference to the options used to bootstrap the scripts. - [See here](https://www.npmjs.com/package/here-map-js): - -##### props - -Props were determined by the options required for initializing a platform. - -- **version** PropTypes.string - One of the supported version. Defaults to - `'v3/3.0'` -- **app_id** PropTypes.string.isRequired - Application ID from account dashboard -- **app_code** PropTypes.string.isRequired - Application Code from account dashboard -- **app_code** PropTypes.string.isRequired - API KEY for usage with version 3.1Code from account - dashboard -- **mapType** PropTypes.string - One of the above types accessed as a dot prop. - Default `'normal.map'` -- **interactive** PropTypes.bool - Makes the map react to events. Needed for - event handling -- **includeUI** PropTypes.bool - Add the UI controls -- **includePlaces** PropTypes.bool - Add the module for working with places -- **useCIT** PropTypes.boolean - Default to `true` -- **useHTTPS** PropTypes.boolean - Load the library using HTTPS. Default to - `true` - -#### HMap - -Displays a Map for the types passed as props or default `normal.map` - -Map types - -```js static -{ - normal: ["map", "traffic", "panorama", "transit", "base", "xbase", "labels"], - satellite: ["xbase", "base", "map", "traffic", "panorama", "labels"], - terrain: ["xbase", "base", "map", "traffic", "panorama", "labels"], - incidents: true -} -``` - -All direct children of `HMap` component receives: - -- **map** A reference to the map object used to create the visual map. - [Docs](https://developer.here.com/documentation/maps/topics_api/h-map.html) -- **platform** A reference to H.service.platform - [Docs](https://developer.here.com/documentation/maps/topics_api/h-service-platform.html) -- **ui** A reference to the ui object that does inclusion of ui elements. - [Docs](https://developer.here.com/documentation/maps/topics_api/h-ui-intro.html) -- **\_\_options** A reference to the options merged with writable defaults used - in bootsrapping the map and its items - -_In any case you wish to render a supported component of this library outside -the context of the map, make sure to render in a place where the above props can -be passed explicitly to avoid nasty, unfriendly errors._ - -_In some cases as we will soon see, there is an option for passing a custom -component with more enhancements (defined by the programmer), these props are -received as first class directly from the containing parent and not from HMap, -but still holds same object's reference_ - -##### props - -- **mapEvents** PropTypes.object - - [officially supported events](https://developer.here.com/documentation/maps/topics/events.html) -- **mapOptions** PropTypes.object - - [officially supported options](https://developer.here.com/documentation/maps/topics_api/h-map-options.html) - -```js -import HPlatform, { HMap, HMapPolyLine } from "react-here-map"; - - - -; -``` - -#### HMapPolyLine - -Draws a polyline on the map - -##### Props - -- **points**: PropTypes.array.isRequired - Array of objects containing lat and - lng -- **options**: PropTypes.object - - [Officially supported options](https://developer.here.com/documentation/maps/topics_api/h-map-polyline-options.html) -- **setViewBounds**: PropTypes.bool - Makes the line centered in the container. - Default `true` - -#### Usage - -```js -import HPlatform, { HMap, HMapPolyLine } from "react-here-map"; -const points = [ - { lat: 52.5309825, lng: 13.3845921 }, - { lat: 52.5311923, lng: 13.3853495 }, - { lat: 52.5313532, lng: 13.3861756 }, - { lat: 52.5315142, lng: 13.3872163 }, - { lat: 52.5316215, lng: 13.3885574 }, - { lat: 52.5320399, lng: 13.3925807 }, - { lat: 52.5321472, lng: 13.3935785 }, -]; - - - - - -; -``` - -#### HMapPolygon - -Draws a polygon on the map - -##### Props - -- **points**: PropTypes.array.isRequired - Array containing points or an array - of lat,lng string separated by comma. -- **options**: PropTypes.object - options for the polygon. - [Docs](https://developer.here.com/documentation/maps/topics_api/h-map-spatial-options.html#h-map-spatial-options) - -#### Usage - -```js -import HPlatform, { HMap, HMapPolygon } from "react-here-map"; - -const polygonPoints = [52, 13, 100, 48, 2, 100, 48, 16, 100, 52, 13, 100]; -const polygonOptions = { - style: { - fillColor: "#FFFFCC", - strokeColor: "#829", - lineWidth: 8, - }, -}; - - - - - -; -``` - -#### HMapMarker - -Puts a marker on the map - -#### Props - -- **coords**: PropTypes.object.isRequired Object with lat and lng for the marker -- **icon**: PropTypes.any.isRequired Icon for the marker -- **options** PropTypes.object - [Officially documented Options](https://developer.here.com/documentation/maps/topics_api/h-map-marker-options.html) -- **type**: PropTypes.string One of `undefined` | `DOM`. Default `undefined` -- **setViewBounds**: PropTypes.bool Centers the map with the marker. Default - `true` - -# - -### Usage - -```js -import HPlatform, { HMap, HMapMarker } from "react-here-map"; - -const coords = { lat: 52.5309825, lng: 13.3845921 }; - -const icon = - '' + - 'H'; - - - - - -; -``` - -#### HMapCircle - -Puts a circle on the map - -##### Props - -- **coords**: PropTypes.object.isRequired - Object with lat and lng for the - circle center point on the map -- **options**: PropTypes.object - Options for the circle. - [Docs](https://developer.here.com/documentation/maps/topics_api/h-map-circle-options.html) -- **radius**: PropTypes.number - How large should one edge of the circle to the - center point -- **setViewBounds**: PropTypes.bool - Centers the map with the circle. Default - `true` - -##### Usage - -```js -import HPlatform, { HMap, HMapCircle } from "react-here-map"; - -const circleCoords = { lat: 52.5309825, lng: 13.3845921 }; - -const circleOptions = { - style: { - strokeColor: "rgba(55, 85, 170, 0.6)", // Color of the perimeter - lineWidth: 2, - fillColor: "rgba(0, 128, 0, 0.7)", // Color of the circle - }, -}; - - - - -; -``` - -#### HMapRectangle - -Puts a rectangle on the map - -##### Props - -- **points**: PropTypes.array.isRequired - Four element array of point defining - the boundaries of the rectangle -- **options**: PropTypes.object - Options for the rectangle. - [Docs](https://developer.here.com/documentation/maps/topics_api/h-map-spatial-options.html#h-map-spatial-options) -- **setViewBounds**: PropTypes.bool - Centers the map with the circle. Default - `true` - -##### Usage - -```js -import HPlatform, { HMap, HMapRectangle } from "react-here-map"; - -const points = [53.1, 13.1, 43.1, 40.1]; -const rectangleOptions = { - style: { - fillColor: "#FFFFCC", - strokeColor: "#E8FA75", - lineWidth: 8, - }, -}; - - - - -; -``` - -### Event Handling - -This section demonstrates how to use an event with either `HMap` component or a -map object. - -#### HMap Event Handling - -No additional prop is required aside from those requiredby `HMap`. Below is a -working code for a `pointerup` event: - -To use an event, you have to pass interactive to the `HPlatform` and pass in -`useEvents` and `mapEvents` props to the `HMap` like this: - -```js -import HPlatform, { HMap, HMapPolyLine } from "react-here-map"; - - - console.log("Map Pointer Down", e) }} // event handlers - /> -; -``` - -#### Map Object event handling - -All map object handles events the same way. Since all map objects are direct -children of `HMap` and receives `HPlatform` information, `useEvents` props in -the `HMap` tells the map objects to initialize events. So, a single `useEvents` -props is sufficient for all the children. In case that only a map object is -expected to handle events, `useEvents` can be passed to the object which will -initialize events defined for that object and not on the rest of the other -sibling objects of the same `HMap` parent. - -##### Usage - -```js -import HPlatform, { - HMap, - HMapCircle, - HMapMarker, - HMapPolygon, - HMapPolyLine, - HMapRectangle, -} from "react-here-map"; - -const rectanglePoints = [51.5072, 0, 48.8567, 2.3508]; -const rectangleOptions = { - style: { - fillColor: "#FFFFCC", - strokeColor: "#E8FA75", - lineWidth: 8, - }, -}; -const circleCoords = { lat: 52.3667, lng: 4.9 }; -const circleOptions = { - style: { - strokeColor: "rgba(55, 85, 170, 0.6)", // Color of the perimeter - lineWidth: 2, - fillColor: "rgba(0, 128, 0, 0.7)", // Color of the circle - }, -}; - -const polyLinePoints = [ - { lat: 52.5167, lng: 13.3833 }, - { lat: 50.0833, lng: 14.4167 }, - { lat: 52.2333, lng: 21.0167 }, -]; - -const polygonPoints = [45.4667, 9.1833, 0, 48.1333, 11.566, 0, 50.08, 8.24, 0]; -const polygonOptions = { - style: { - fillColor: "#FFFFCC", - strokeColor: "#829", - lineWidth: 8, - }, -}; - -const markerCoords = { lat: 48.2, lng: 16.3667 }; - -const markerIcon = - '' + - 'H'; - - - console.log("Map Pointer Down", e) }} // event handlers - mapOptions={{ - center: { lat: 51, lng: 7 }, - zoom: 5, - pixelRatio: window.devicePixelRatio || 1, - }} - > - console.log("Circle Pointer Down", e), - }} - /> - console.log("Rectangle Pointer Down", e), - }} - /> - console.log("Polyline Pointer Down", e), - }} - /> - console.log("Polygon Pointer Down", e), - }} - /> - console.log("Marker Pointer Down", e), - }} - /> - -; -``` - -#### HMapGeoCode - -> This uses React Hooks. Ensure that your react installation supports The Hooks -> API - -##### Props - -- **geoCodeParams**: PropTypes.object - Depends on the type being used. - [Default params](https://developer.here.com/documentation/geocoder/topics/resource-geocode.html) - to be used when reverse and landmark are falsy, - [reverse params](https://developer.here.com/documentation/geocoder/topics/resource-reverse-geocode.html) - to be used when reverse is set to true, - [landmark params ](https://developer.here.com/documentation/geocoder/topics/resource-search.html) - to be used when landmark is set to true -- **children**: PropTypes.element.isRequired - React Element that receives - `map, platform, lat, lng` as props -- **reverse**: PropTypes.bool - Should implement reverse geo coding -- **landmark**: PropTypes.bool - Should implement landmark geo coding - -##### Usage - -##### Address to positions - -Converts an address to a position on the map - -```js -import HPlatform, { HMap, HMapGeoCode, HMapMarker } from "react-here-map"; - -const geoCodeParams = { - searchText: "200 S Mathilda Ave, Sunnyvale, CA", -}; - -const icon = - '' + - 'H'; - -// Can render any map element, make sure to pass map and platform as props to the children to avoid unwarranted behavior -const GeoMarker = ({ map, platform, ui, lat, lng, key }) => ( - -); -// Child of HMapGeoCode receives same params as above. - - - - - - -; -``` - -##### Position to address(es) - -Converts a position to address(es) on the map - -```js -import HPlatform, { HMap, HMapGeoCode } from "react-here-map"; -// Create the parameters for the reverse geocoding request: -const reverseGeoCodingParameters = { - prox: "52.5309,13.3847,150", - mode: "retrieveAddresses", - maxresults: 1, -}; -// Can render any map element, make sure to pass map and platform as props to the children to avoid unwarranted behavior -const ReverseGeoMarker = ({ map, platform, ui, lat, lng, location, key }) => { - ui.addBubble( - new H.ui.InfoBubble( - { lat, lng }, - { content: location.Location.Address.Label } - ) - ); - return null; -}; - -// Child of HMapGeoCode receives same params as above. - - - - - - -; -``` - -###### Landmark Point - -Locate landmark positions on the map - -```js -import HPlatform, { HMap, HMapGeoCode } from "react-here-map"; - -const LandmarkGeoMarker = ({ - map, - platform, - ui, - lat, - lng, - location, - key, - _location, -}) => { - ui.addBubble(new H.ui.InfoBubble({ lat, lng }, { content: _location.Name })); - return null; -}; -// Create the parameters for the landmark search request: -const landmarkSearchParameters = { - searchText: "TXL", -}; - -// Child of HMapGeoCode receives same params as above. - - - - - - -; -``` - -#### HMapRoute - -> This uses React Hooks. Ensure that your react installation supports Hooks API - -##### Displaying route on the Map Using normal line - -Shows path to between two points based on params - -##### Props - -- **routeParams**: PropTypes.object - - [Officially documented route params](https://developer.here.com/documentation/routing/topics/resource-parameters-common.html) -- **lineOptions**: PropTypes.object - - [Officially supported poly line options](https://developer.here.com/documentation/maps/topics_api/h-map-polyline-options.html) -- **icon**: PropTypes.any - Icon to be used for the marker -- **markerOptions**: PropTypes.object - - [Officially supported marker Options](https://developer.here.com/documentation/maps/topics_api/h-map-marker-options.html) -- **children**: PropTypes.element - React element that receives - `map, platform, ui, route, key, routeShape` as props -- **renderDefaultLine**: PropTypes.bool - Should use default renderer instead of - a custom renderer as children -- **isoLine**: PropTypes.bool - Use IsoLine instead of a Polyline - -##### Usages - -###### Using the default renderer - -```js -import HPlatform, { - HMap, - HMapRoute, - HMapMarker, - HMapPolyLine, -} from "react-here-map"; - -// Create the parameters for the routing request: -var routeParams = { - // The routing mode: - mode: "fastest;car", - // The start point of the route: - waypoint0: "geo!50.1120423728813,8.68340740740811", - // The end point of the route: - waypoint1: "geo!52.5309916298853,13.3846220493377", - // To retrieve the shape of the route we choose the route - // representation mode 'display' - representation: "display", -}; -const routeLineOptions = { - style: { strokeColor: "blue", lineWidth: 10 }, - arrows: { fillColor: "white", frequency: 2, width: 0.8, length: 0.7 }, -}; - -const icon = - '' + - 'H'; - -// Handles manipulation of the path between the two points -const RouteMarker = ({ map, platform, ui, route, key, routeShape }) => { - // Retrieve the mapped positions of the requested waypoints: - const startPoint = route.waypoint[0].mappedPosition; - const endPoint = route.waypoint[1].mappedPosition; - - // Create a marker for the start point: - const startMarker = { lat: startPoint.latitude, lng: startPoint.longitude }; - // Create a marker for the end point: - const endMarker = { lat: endPoint.latitude, lng: endPoint.longitude }; - - return ( - - - - - - ); -}; - - - - - -; -``` - -###### Using a custom renderer - -```js -import HPlatform, { - HMap, - HMapRoute, - HMapMarker, - HMapPolyLine, -} from "react-here-map"; - -// Create the parameters for the routing request: -var routeParams = { - // The routing mode: - mode: "fastest;car", - // The start point of the route: - waypoint0: "geo!50.1120423728813,8.68340740740811", - // The end point of the route: - waypoint1: "geo!52.5309916298853,13.3846220493377", - // To retrieve the shape of the route we choose the route - // representation mode 'display' - representation: "display", -}; -const routeLineOptions = { - style: { strokeColor: "blue", lineWidth: 10 }, - arrows: { fillColor: "white", frequency: 2, width: 0.8, length: 0.7 }, -}; - -const icon = - '' + - 'H'; - -// Handles manipulation of the path between the two points -const RouteMarker = ({ map, platform, ui, route, key, routeShape }) => { - // Retrieve the mapped positions of the requested waypoints: - const startPoint = route.waypoint[0].mappedPosition; - const endPoint = route.waypoint[1].mappedPosition; - - // Create a marker for the start point: - const startMarker = { lat: startPoint.latitude, lng: startPoint.longitude }; - // Create a marker for the end point: - const endMarker = { lat: endPoint.latitude, lng: endPoint.longitude }; - - return ( - - - - - - ); -}; - - - - - - - -; -``` - -#### Displaying route on the Map Using iso line - -###### Using the default renderer - -```js -import HPlatform, { HMap, HMapPolygon, HMapRoute } from "react-here-map"; -// Create the parameters for the reverse geocoding request: -const isoRoutingParams = { - mode: "fastest;car;", - start: "geo!52.5,13.4", - range: "900", - rangetype: "time", -}; - -const routeLineOptions = { - style: { strokeColor: "blue", lineWidth: 10 }, - arrows: { fillColor: "white", frequency: 2, width: 0.8, length: 0.7 }, -}; -const icon = - '' + - 'H'; - -const RouteMarkerIso = ({ - map, - platform, - ui, - route, - routeShape, - center, - component, -}) => { - return ( - - - - - ); -}; - - - - - -; -``` - -###### Using a custom renderer - -```js -import HPlatform, { HMap, HMapPolygon, HMapRoute } from "react-here-map"; -// Create the parameters for the reverse geocoding request: -const isoRoutingParams = { - mode: "fastest;car;", - start: "geo!52.5,13.4", - range: "900", - rangetype: "time", -}; - -const routeLineOptions = { - style: { strokeColor: "blue", lineWidth: 10 }, - arrows: { fillColor: "white", frequency: 2, width: 0.8, length: 0.7 }, -}; -const icon = - '' + - 'H'; -const RouteMarkerIso = ({ - map, - platform, - ui, - route, - routeShape, - center, - component, -}) => { - return ( - - - - - ); -}; - - - - - - - -; -``` - -#### HMapLayer - -Adds a layer to the map. - -Individual layer holds different information - -##### props - -**mapLayerType**: PropTypes.string.isRequired In a dot prop form e.g -`mapLayerType="incidents", mapLayerType="normal.traffic"` - -```js static -{ - normal: [ - "xbase", - "xbasenight", - "base", - "basenight", - "map", - "mapnight", - "traffic", - "trafficnight", - "transit", - "panorama", - "panoramanight", - "labels", - "metaInfo" - ], - satellite: ["xbase", "base", "map", "traffic", "panorama", "labels"], - terrain: ["xbase", "base", "map", "traffic", "panorama", "labels"], - incidents: true -} -``` - -##### Usage - -```js -import HPlatform, { HMap, HMapLayer } from "react-here-map"; - -// Child of HMapGeoCode receives same params as above. - - - - -; -``` - -#### HMapPlaces - -Search for places on the map - -### Props - -- **library**: PropTypes.string.isRequired One of the places library supported - by here maps for the requests -- **query**: PropTypes.string Passing the query externally to initiate the - request on load after getting the location of the user - -- **category**: PropTypes.string Result category - -- **placeClassName**: PropTypes.string Class for the container - -- **inputClassName**: PropTypes.string Class for the Input field - -- **containerStyle**: PropTypes.object Styles for the container -- **inputStyle**: PropTypes.object Styles for the input - -- **itemContainerClass**: PropTypes.string Result Items container class - -* **itemClass**: PropTypes.string Result Items class - -* **iconClass**: PropTypes.string Icon marker class name - -* **inputStyle**: PropTypes.object Styles for the input - -* **getItem**: PropTypes.function Callback when an item is clicked in the result - -- **markerOptions**: PropTypes.object Options for the marker - -- **markerIcon**: PropTypes.element Icon for the marker - -- **markerType**: PropTypes.string Type of marker icon - -* **multiMarker**: PropTypes.boolean allow for many markers - -### Usage - -```js -import HPlatform, { HMap, HMapPlaces } from "react-here-map"; - - - -; -``` - -## CHANGES - -**06/05/2020** - -- Includes support for V3.1 API_KEY - -## Contributions - -See the TODO.MD - -## Licence - -MIT diff --git a/TODO.MD b/TODO.MD deleted file mode 100644 index dff47c5..0000000 --- a/TODO.MD +++ /dev/null @@ -1,54 +0,0 @@ -# TO DO - -## 🔨 List of tasks to do - -⭕️ Make️ components where they are deserved - -### Components to make - -- Map -- Map markers (Marker: H.map.Marker ; using Icons, DomMarker: H.map.DomMarker) -- Map GeoSpaces (Circle: H.map.Circle, Rectangles: H.map.Rect, Polyline: H.map.Polyline, Polygon: H.map.Polygon) - -### Add support for street view using panorama - -### Adds support for map controls - -### Geocoding - -- Geo Coding (Displaying geocoding results on a map) -- Reverse geocoding map locations -- Landmark search - -### Routing - -- Displaying a Route on the Map -- Showing Route Direction Arrows -- Isoline Routing - -### Traffic - -- Showing Traffic Flow on the Map -- Showing Traffic Incidents on the Map - -### Places - -- Discovering Places - - - Plain Text Searches - - Category Searches - -- Refining Search Results - - - Viewing Results by Page - - Requesting Detailed Results - -- Using Location Contexts - - - Searching Based on Currently Displayed Map - - Searching Based on User Location - -- Listing Categories for a Location - -- Integration with the Map - - diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index 090a75a..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -/* eslint-disable jsx-a11y/label-has-associated-control */ -// eslint-disable-next-line quotes -module.exports = { extends: ["@commitlint/config-angular"] }; diff --git a/dist/es/components/GeoCode/index.js b/dist/es/components/GeoCode/index.js deleted file mode 100644 index 0bc4b6f..0000000 --- a/dist/es/components/GeoCode/index.js +++ /dev/null @@ -1,88 +0,0 @@ -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - -function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -import React, { useState } from "react"; -import PropTypes from "prop-types"; - -function GeoCode(props) { - var geoCodeParams = props.geoCodeParams, - platform = props.platform, - map = props.map, - ui = props.ui, - children = props.children, - reverse = props.reverse, - landmark = props.landmark; - - if (!H || !H.map || !map) { - throw new Error("HMap has to be initialized before adding Map Objects"); - } - - if (!geoCodeParams) { - throw new Error("geoCodeParams is not set"); - } - - var _useState = useState([]), - _useState2 = _slicedToArray(_useState, 2), - locations = _useState2[0], - setLocations = _useState2[1]; // Define a callback function to process the geocoding response: - - - var onResult = function onResult(result) { - setLocations(result.Response.View[0].Result); - }; // Get an instance of the geocoding service: - - - var geocoder = platform.getGeocodingService(); // Call the geocode method with the geocoding parameters, - // the callback and an error callback function (called if a - // communication error occurs): - - if (landmark) { - geocoder.search(geoCodeParams, onResult, function (e) { - alert(e); - }); - } else if (reverse) { - // Point to address - geocoder.reverseGeocode(geoCodeParams, onResult, function (e) { - return console.log(e); - }); - } else { - // Address to point - geocoder.geocode(geoCodeParams, onResult, function (e) { - return console.log(e); - }); - } - - return locations.length && locations.map(function (location) { - var _location = location.Location || location.Place.Locations[0]; - - var lat = _location.DisplayPosition.Latitude; - var lng = _location.DisplayPosition.Longitude; - var params = { - map: map, - platform: platform, - ui: ui, - lat: lat, - lng: lng, - key: lat, - location: location, - _location: _location - }; - return React.cloneElement(children, params); - }); -} - -GeoCode.propTypes = { - geoCodeParams: PropTypes.object, - children: PropTypes.element.isRequired, - reverse: PropTypes.bool, - landmark: PropTypes.bool, - map: PropTypes.object, - platform: PropTypes.object, - ui: PropTypes.object -}; -export default GeoCode; \ No newline at end of file diff --git a/dist/es/components/HMap/index.js b/dist/es/components/HMap/index.js deleted file mode 100644 index 6ce5b12..0000000 --- a/dist/es/components/HMap/index.js +++ /dev/null @@ -1,113 +0,0 @@ -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); } - -import React from "react"; -import PropTypes from "prop-types"; -import build from "../../libs/mapBuilder"; -import defaults from "../../libs/defaults"; -import merge from "lodash.merge"; - -var HMap = -/*#__PURE__*/ -function (_React$Component) { - _inherits(HMap, _React$Component); - - function HMap(props) { - var _this; - - _classCallCheck(this, HMap); - - _this = _possibleConstructorReturn(this, _getPrototypeOf(HMap).call(this, props)); - _this.container = React.createRef(); - _this.state = { - builder: {} - }; - return _this; - } - - _createClass(HMap, [{ - key: "componentDidMount", - value: function componentDidMount() { - var _props = this.props; - - var _options = merge({ - container: this.container.current, - build: true - }, _props.options, _props); - - delete _options.options; - var builder = build(_props.platform, _options); - this.setState({ - builder: builder - }); - } - }, { - key: "createLoadingComponent", - value: function createLoadingComponent() { - return React.createElement("div", null, "Loading"); - } - }, { - key: "displayChildren", - value: function displayChildren() { - var children = this.props.children; - var _this$state$builder = this.state.builder, - map = _this$state$builder.map, - platform = _this$state$builder.platform, - ui = _this$state$builder.ui, - options = _this$state$builder.options; - return React.Children.map(children, function (child) { - return React.cloneElement(child, { - map: map, - platform: platform, - ui: ui, - __options: options - }); - }); - } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - style = _this$props.style, - loadingEl = _this$props.loadingEl; - var options = this.state.builder.options; - var loading = loadingEl || this.createLoadingComponent(); - return React.createElement("div", { - id: defaults.containerId, - className: defaults.defaultClassName, - style: style, - ref: this.container - }, typeof H === "undefined" && !options && loading, (typeof H === "undefined" ? "undefined" : _typeof(H)) === "object" && options && this.displayChildren()); - } - }]); - - return HMap; -}(React.Component); - -HMap.propTypes = { - version: PropTypes.string, - mapType: PropTypes.string, - useEvents: PropTypes.bool, - interactive: PropTypes.bool, - includeUI: PropTypes.bool, - mapEvents: PropTypes.object, - platform: PropTypes.object, - options: PropTypes.object, - mapOptions: PropTypes.object -}; -export default HMap; \ No newline at end of file diff --git a/dist/es/components/HMap/objects/Circle.js b/dist/es/components/HMap/objects/Circle.js deleted file mode 100644 index 0ca6fee..0000000 --- a/dist/es/components/HMap/objects/Circle.js +++ /dev/null @@ -1,60 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; -import merge from "lodash.merge"; -import initMapObjectEvents from "../../../libs/initMapObjectEvents"; - -function Circle(props) { - var _merge = merge({ - setViewBounds: true - }, props), - radius = _merge.radius, - map = _merge.map, - coords = _merge.coords, - options = _merge.options, - setViewBounds = _merge.setViewBounds, - objectEvents = _merge.objectEvents, - platform = _merge.platform, - ui = _merge.ui, - __options = _merge.__options; - - if (!H || !H.map || !map) { - throw new Error("HMap has to be initialized before adding Map Objects"); - } - - if (!coords.lat || !coords.lng) { - throw new Error("coords should be an object having 'lat' and 'lng' as props"); - } - - if (!radius) { - console.info("radius is not set, default radius of 1000 is used"); - } - - var circle = new H.map.Circle( // The central point of the circle - coords, // The radius of the circle in meters - radius || 1000, options); // Add event listener to the object if intention of using the object is defined - - initMapObjectEvents(circle, objectEvents, __options); // Add the marker to the map and center the map at the location of the marker: - - map.addObject(circle); - - if (setViewBounds) { - map.setCenter(coords); - } // There is no need to render something useful here, HereMap does that magically - - - return React.createElement("div", { - style: { - display: "none" - } - }); -} - -Circle.propTypes = { - coords: PropTypes.object.isRequired, - options: PropTypes.object, - radius: PropTypes.number, - setViewBounds: PropTypes.bool, - map: PropTypes.object, - objectEvents: PropTypes.object -}; -export default Circle; \ No newline at end of file diff --git a/dist/es/components/HMap/objects/Marker.js b/dist/es/components/HMap/objects/Marker.js deleted file mode 100644 index 95b9291..0000000 --- a/dist/es/components/HMap/objects/Marker.js +++ /dev/null @@ -1,93 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; -import merge from "lodash.merge"; -import initMapObjectEvents from "../../../libs/initMapObjectEvents"; - -function Marker(props) { - var _merge = merge({ - setViewBounds: true, - updateMarker: false, - marker: null, - getMarker: function getMarker() {} - }, props), - icon = _merge.icon, - map = _merge.map, - coords = _merge.coords, - type = _merge.type, - options = _merge.options, - setViewBounds = _merge.setViewBounds, - updateMarker = _merge.updateMarker, - marker = _merge.marker, - getMarker = _merge.getMarker, - objectEvents = _merge.objectEvents, - platform = _merge.platform, - ui = _merge.ui, - __options = _merge.__options; - - var _options = options; - - if (!H || !H.map || !map) { - throw new Error("HMap has to be initialized before adding Map Objects"); - } - - if (!coords.lat || !coords.lng) { - throw new Error("coords should be an object having 'lat' and 'lng' as props"); - } - - if (!icon) {// throw new Error("icon is not set, Marker will not be rendered"); - } - - if (type && type === "DOM") { - // Displays a DOM Icon - _options.icon = new H.map.DomIcon(icon); - } else if (type) { - // Displays a static icon - _options.icon = new H.map.Icon(icon); - } // Create an icon, an object holding the latitude and longitude, and a marker: - - - var _marker = updateMarker && marker ? marker : new H.map.Marker(coords, _options); // Checks if object of same coordinates have been added formerly - - - var addedObjects = map.getObjects(); - var objectExists = addedObjects.some(function (object) { - if (typeof object.getPosition === "function") { - var _object$getPosition = object.getPosition(), - lat = _object$getPosition.lat, - lng = _object$getPosition.lng; - - return lat === coords.lat && coords.lng === lng; - } - }); // This object exists we don't want to add it again. Update the position - - if (!objectExists && !updateMarker) { - // Add event listener to the object if intention of using the object is defined - initMapObjectEvents(_marker, objectEvents, __options); - map.addObject(_marker); - } else if (updateMarker) { - // If we are updating, no need to create - _marker.setPosition(coords); - } // Send the marker to the parent - - - !marker ? getMarker(_marker) : null; // Centers the marker - - setViewBounds ? map.setCenter(coords) : null; // There is no need to render something useful here, HereMap does that magically - - return React.createElement("div", { - style: { - display: "none" - } - }); -} - -Marker.propTypes = { - coords: PropTypes.object.isRequired, - icon: PropTypes.any, - options: PropTypes.object, - type: PropTypes.string, - setViewBounds: PropTypes.bool, - map: PropTypes.object, - objectEvents: PropTypes.object -}; -export default Marker; \ No newline at end of file diff --git a/dist/es/components/HMap/objects/PolyLine.js b/dist/es/components/HMap/objects/PolyLine.js deleted file mode 100644 index b6114a0..0000000 --- a/dist/es/components/HMap/objects/PolyLine.js +++ /dev/null @@ -1,59 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; -import merge from "lodash.merge"; -import initMapObjectEvents from "../../../libs/initMapObjectEvents"; - -function PolyLine(props) { - var _merge = merge({ - setViewBounds: true - }, props), - points = _merge.points, - options = _merge.options, - map = _merge.map, - setViewBounds = _merge.setViewBounds, - objectEvents = _merge.objectEvents, - platform = _merge.platform, - ui = _merge.ui, - __options = _merge.__options; - - if (!H || !H.map || !map) { - throw new Error("HMap has to be initialized before adding Map Objects"); - } - - if (!Array.isArray(points)) { - throw new Error("points should be an array of objects containing lat and lng properties"); - } // Initialize a LineString and add all the points to it: - - - var lineString = new H.geo.LineString(); - points.forEach(function (point) { - lineString.pushPoint(point); - }); // Initialize a polyLine with the lineString: - - var polyLine = new H.map.Polyline(lineString, options); // Add event listener to the object if intention of using the object is defined - - initMapObjectEvents(polyLine, objectEvents, __options); // Add the polyLine to the map: - - map.addObject(polyLine); - - if (setViewBounds) { - // Zoom the map to make sure the whole polyLine is visible: - map.setViewBounds(polyLine.getBounds()); - } // There is no need to render something useful here, HereMap does that magically - - - return React.createElement("div", { - style: { - display: "none" - } - }); -} - -PolyLine.propTypes = { - points: PropTypes.array.isRequired, - options: PropTypes.object, - map: PropTypes.object, - setViewBounds: PropTypes.bool, - objectEvents: PropTypes.object -}; -export default PolyLine; \ No newline at end of file diff --git a/dist/es/components/HMap/objects/Polygon.js b/dist/es/components/HMap/objects/Polygon.js deleted file mode 100644 index 9e3bc39..0000000 --- a/dist/es/components/HMap/objects/Polygon.js +++ /dev/null @@ -1,66 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; -import merge from "lodash.merge"; -import initMapObjectEvents from "../../../libs/initMapObjectEvents"; - -function Polygon(props) { - var _merge = merge({ - setViewBounds: true - }, props), - points = _merge.points, - map = _merge.map, - setViewBounds = _merge.setViewBounds, - options = _merge.options, - objectEvents = _merge.objectEvents, - platform = _merge.platform, - ui = _merge.ui, - __options = _merge.__options; - - if (!H || !H.map || !map) { - throw new Error("HMap has to be initialized before adding Map Objects"); - } - - if (!Array.isArray(points)) { - throw new Error("points should be an array of number to use in drawing the points"); - } - - var lineString = {}; - var firstEl = points[0]; - - if (typeof firstEl === "string" && firstEl.split(",").length === 2) { - lineString = new H.geo.LineString(); - points.forEach(function (coords) { - lineString.pushLatLngAlt.apply(lineString, coords.split(",")); - }); - } else { - lineString = new H.geo.LineString(points, "values lat lng alt"); - } // Initialize a LineString and add all the points to it: - - - var polygon = new H.map.Polygon(lineString, options); // Add event listener to the object if intention of using the object is defined - - initMapObjectEvents(polygon, objectEvents, __options); // Add the polyLine to the map: - - map.addObject(polygon); - - if (setViewBounds) { - // Zoom the map to make sure the whole polygon is visible: - map.setViewBounds(polygon.getBounds()); - } // There is no need to render something useful here, HereMap does that magically - - - return React.createElement("div", { - style: { - display: "none" - } - }); -} - -Polygon.propTypes = { - points: PropTypes.array.isRequired, - options: PropTypes.object, - map: PropTypes.object, - setViewBounds: PropTypes.bool, - objectEvents: PropTypes.object -}; -export default Polygon; \ No newline at end of file diff --git a/dist/es/components/HMap/objects/Rectangle.js b/dist/es/components/HMap/objects/Rectangle.js deleted file mode 100644 index add2b79..0000000 --- a/dist/es/components/HMap/objects/Rectangle.js +++ /dev/null @@ -1,55 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; -import merge from "lodash.merge"; -import initMapObjectEvents from "../../../libs/initMapObjectEvents"; - -function Rectangle(props) { - var _merge = merge({ - setViewBounds: true - }, props), - map = _merge.map, - points = _merge.points, - options = _merge.options, - setViewBounds = _merge.setViewBounds, - objectEvents = _merge.objectEvents, - platform = _merge.platform, - ui = _merge.ui, - __options = _merge.__options; - - if (!H || !H.map || !map) { - throw new Error("HMap has to be initialized before adding Map Objects"); - } - - if (!points || points.length !== 4) { - throw new Error("points should be an array of four items"); - } // Get a bounding box - - - var boundingBox = new H.geo.Rect(points[0], points[1], points[2], points[3]); // Create an rectangle - - var rectangle = new H.map.Rect(boundingBox, options); // Add event listener to the object if intention of using the object is defined - - initMapObjectEvents(rectangle, objectEvents, __options); // Add a rectangle to the map - - map.addObject(rectangle); - - if (setViewBounds) { - // Zoom the map to make sure the whole rectangle is visible: - map.setViewBounds(rectangle.getBounds()); - } // There is no need to render something useful here, HereMap does that magically - - - return React.createElement("div", { - style: { - display: "none" - } - }); -} - -Rectangle.propTypes = { - options: PropTypes.object, - points: PropTypes.array.isRequired, - map: PropTypes.object, - objectEvents: PropTypes.object -}; -export default Rectangle; \ No newline at end of file diff --git a/dist/es/components/Layer/index.js b/dist/es/components/Layer/index.js deleted file mode 100644 index 13d9dd1..0000000 --- a/dist/es/components/Layer/index.js +++ /dev/null @@ -1,27 +0,0 @@ -import PropTypes from "prop-types"; -import dotProp from "dot-prop"; -import validateMapType from "../../libs/validateMapType"; - -function Traffic(props) { - var platform = props.platform, - map = props.map, - mapLayerType = props.mapLayerType, - mapTypes = props.__options.mapTypes; - - if (!H || !H.map || !map) { - throw new Error("HMap has to be initialized before adding Map Objects"); - } - - validateMapType(mapTypes, mapLayerType); - var defaultLayers = platform.createDefaultLayers(); - map.addLayer(dotProp.get(defaultLayers, mapLayerType)); - return null; -} - -Traffic.propTypes = { - platform: PropTypes.object, - __options: PropTypes.object, - mapLayerType: PropTypes.string.isRequired, - map: PropTypes.object -}; -export default Traffic; \ No newline at end of file diff --git a/dist/es/components/Places/PlaceInput.js b/dist/es/components/Places/PlaceInput.js deleted file mode 100644 index 2af02f3..0000000 --- a/dist/es/components/Places/PlaceInput.js +++ /dev/null @@ -1,44 +0,0 @@ -import React from "react"; -import debounce from "lodash.debounce"; -import PropTypes from "prop-types"; -import merge from "lodash.merge"; -var handleInputChange = debounce(function (value, fn) { - return fn(value); -}, 500); -var _style = { - margin: 0, - fontFamily: "inherit", - display: "block", - width: "100%", - padding: ".375rem .75rem", - fontSize: "1rem", - lineHeight: 1.5, - color: "#495057", - backgroundColor: "#fff", - backgroundClip: "padding-box", - border: "1px solid #ced4da", - borderRadius: ".25rem", - transition: "border-color .15s ease-in-out, box-shadow .15s ease-in-out" -}; - -function PlaceInput(_ref) { - var getValue = _ref.getValue, - style = _ref.style, - className = _ref.className; - style = merge(_style, style); - return React.createElement("input", { - className: className, - style: style, - placeholder: "Enter a value", - onChange: function onChange(e) { - return handleInputChange(e.target.value, getValue); - } - }); -} - -handleInputChange.propTypes = { - getValue: PropTypes.func.isRequired, - className: PropTypes.string, - style: PropTypes.object -}; -export default PlaceInput; \ No newline at end of file diff --git a/dist/es/components/Places/PlaceItem.js b/dist/es/components/Places/PlaceItem.js deleted file mode 100644 index 08f874a..0000000 --- a/dist/es/components/Places/PlaceItem.js +++ /dev/null @@ -1,52 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; -import { css } from "glamor"; -var iconStyle = css({ - height: "25px", - width: "19px" -}); -var itemStyle = css({ - width: "100%", - background: "transparent", - padding: "10px 15px", - fontWeight: "700", - color: "#eff", - borderRadius: "5px", - fontSize: ".85em", - borderBottom: "1px dashed #eee", - ":last-of-type": { - borderBottom: 0 - }, - ":hover": { - background: "#76e3dc", - color: "#fff", - cursor: "pointer" - } -}); - -function PlaceItem(props) { - var item = props.item, - itemClass = props.itemClass, - iconClass = props.iconClass, - getItem = props.getItem; - - var _getItem = typeof getItem == "function" ? getItem : function () {}; - - return React.createElement("div", { - className: "".concat(itemStyle, " ").concat(itemClass), - onClick: function onClick(e) { - return _getItem(item); - } - }, React.createElement("img", { - className: "".concat(iconStyle, " ").concat(iconClass), - src: item.icon - }), item.title); -} - -PlaceItem.propTypes = { - item: PropTypes.object.isRequired, - itemClass: PropTypes.string, - iconClass: PropTypes.string, - getItem: PropTypes.func -}; -export default PlaceItem; \ No newline at end of file diff --git a/dist/es/components/Places/PlaceItems.js b/dist/es/components/Places/PlaceItems.js deleted file mode 100644 index 53bb126..0000000 --- a/dist/es/components/Places/PlaceItems.js +++ /dev/null @@ -1,40 +0,0 @@ -import React from "react"; -import PropTypes from "prop-types"; -import PlaceItem from "./PlaceItem"; -import { css } from "glamor"; - -var _contClass = css({ - bottom: "-52px", - left: "15px", - width: "400px", - borderRadius: "5px", - background: "#00afaa" -}); - -var PlaceItems = function PlaceItems(props) { - var containerClass = props.containerClass, - getItem = props.getItem, - items = props.items, - iconClass = props.iconClass, - itemClass = props.itemClass; - return React.createElement("div", { - className: "".concat(_contClass, " ").concat(containerClass) - }, items.map(function (item) { - return React.createElement(PlaceItem, { - iconClass: iconClass, - itemClass: itemClass, - getItem: getItem, - item: item, - key: item.title - }); - })); -}; - -PlaceItems.propTypes = { - items: PropTypes.array.isRequired, - itemClass: PropTypes.string, - containerClass: PropTypes.string, - iconClass: PropTypes.string, - getItem: PropTypes.func -}; -export default PlaceItems; \ No newline at end of file diff --git a/dist/es/components/Places/index.js b/dist/es/components/Places/index.js deleted file mode 100644 index bd8e87b..0000000 --- a/dist/es/components/Places/index.js +++ /dev/null @@ -1,220 +0,0 @@ -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - -function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -import React, { useState, useRef, memo } from "react"; -import PlaceInput from "./PlaceInput"; -import PlaceItems from "./PlaceItems"; -import placeBuilder from "./../../libs/placeBuilder"; -import PropTypes from "prop-types"; -import HMap from "./../HMap"; -import HMapMarker from "./../HMap/objects/Marker"; -import { css } from "glamor"; -var placeStyle = css({ - paddingRight: "15px", - paddingLeft: "15px", - marginRight: "auto", - marginLeft: "auto", - position: "relative" -}); -var Place = memo(function (props) { - var inputStyle = props.inputStyle, - inputClassName = props.inputClassName, - itemContainerClass = props.itemContainerClass, - iconClass = props.iconClass, - itemClass = props.itemClass, - placeClassName = props.placeClassName, - library = props.library, - getItem = props.getItem, - query = props.query, - category = props.category, - markerOptions = props.markerOptions, - markerIcon = props.markerIcon, - markerType = props.markerType, - multiMarker = props.multiMarker, - mapOptions = props.mapOptions, - platform = props.platform; // Stores the search values - - var _useState = useState(""), - _useState2 = _slicedToArray(_useState, 2), - searchValue = _useState2[0], - setSearchValue = _useState2[1]; - - var handleGetValue = function handleGetValue(value) { - setSearchValue(value); // Update the params as well - - setParams(_objectSpread({}, params, { - q: value - })); - }; // Ensure that supported library type is passed. Defaults to search - - - var type = ["search", "categories", "around", "explore", "here", "suggest"].includes(library) ? library : "search"; - - var _useState3 = useState([]), - _useState4 = _slicedToArray(_useState3, 2), - searchResult = _useState4[0], - setSearchResult = _useState4[1]; // Params for the place request - - - var _useState5 = useState({ - q: searchValue || query, - cat: category - }), - _useState6 = _slicedToArray(_useState5, 2), - params = _useState6[0], - setParams = _useState6[1]; - - var _useState7 = useState(false), - _useState8 = _slicedToArray(_useState7, 2), - updateMarker = _useState8[0], - setUpdateMarker = _useState8[1]; - - var _useState9 = useState(null), - _useState10 = _slicedToArray(_useState9, 2), - placeMarker = _useState10[0], - setPlaceMarker = _useState10[1]; - - var handleGetMarker = function handleGetMarker(marker) { - setPlaceMarker(marker); - }; // Make sure that we are not using the preset center by the consumer of the library - - - var _mapOptions = mapOptions || {}; - - delete _mapOptions.center; - - var _useState11 = useState({ - lat: 37, - lng: 90 - }), - _useState12 = _slicedToArray(_useState11, 2), - mapCenter = _useState12[0], - setMapCenter = _useState12[1]; // Here Map place library requires the use "at" in the params which defines the context for the search. To minimize the overhead, we are using the inbuilt browser geolocation API, this component will throw in a browser that does not support Geolocation - - - if (navigator.geolocation) { - navigator.geolocation.getCurrentPosition(function (position) { - var _position$coords = position.coords, - latitude = _position$coords.latitude, - longitude = _position$coords.longitude; - var coords = { - lat: latitude, - lng: longitude - }; - var _params = params; - _params.at = "".concat(latitude, ",").concat(longitude, ";10000"); - setUpdateMarker(!multiMarker); // Update the params - - setParams(_params); // Set the mapCenter - - setMapCenter(coords); - }); - } else { - console.log("Geolocation is not supported by this browser."); - } // Handles when a result item is clicked - - - var handleGetItem = function handleGetItem(item) { - // Prevent for failure when calling 'undefined' as function - var _getItem = typeof getItem == "function" ? getItem : function () {}; - - setSearchResult([]); // Only non multi marker should update the current marker - - setUpdateMarker(!multiMarker); - setMapCenter({ - lat: item.position[0], - lng: item.position[1] - }); - - _getItem(item); - }; - - var place = placeBuilder(platform, type); // Define a callback function to handle data on success: - - function onResult(data) { - setSearchResult(data.items || data.suggestions || data.results.items); - } // Define a callback function to handle errors: - - - function onError(data) { - console.log(data); - } // Only make the call when the 'at' of the params is set, through the geolocation API of the browser - - - if ((params.q || params.cat) && params.at) { - place.request(params, {}, onResult, onError); - } - - return React.createElement("div", { - className: "".concat(placeStyle, " ").concat(placeClassName) - }, React.createElement(PlaceInput, { - className: inputClassName || "", - style: inputStyle, - getValue: handleGetValue - }), !!searchResult.length && React.createElement(PlaceItems, { - containerClass: itemContainerClass, - iconClass: iconClass, - itemClass: itemClass, - getItem: handleGetItem, - items: searchResult - }), !!mapCenter.lat && React.createElement(HMap, { - style: { - height: "200px", - width: "400px" - }, - platform: platform, - options: props.options, - mapOptions: _objectSpread({ - center: mapCenter, - zoom: 7 - }, _mapOptions), - interactive: true - }, React.createElement(HMapMarker, { - coords: mapCenter, - getMarker: handleGetMarker, - marker: placeMarker, - icon: markerIcon, - type: markerType, - options: markerOptions, - updateMarker: updateMarker - }))); -}); -Place.propTypes = { - library: PropTypes.string.isRequired, - query: PropTypes.string, - category: PropTypes.string, - className: PropTypes.string, - inputClassName: PropTypes.string, - containerStyle: PropTypes.object, - inputStyle: PropTypes.object, - itemContainerClass: PropTypes.string, - // Place result item container class - iconClass: PropTypes.string, - // Place result item icon class - itemClass: PropTypes.string, - // Place result item class - placeClassName: PropTypes.string, - // Class for the actual container for the whole element - getItem: PropTypes.func, - // Callback when an item is clicked in the result - markerOptions: PropTypes.object, - // Options for the marker - markerIcon: PropTypes.element, - // Icon for the marker - markerType: PropTypes.string, - // Type of marker icon - multiMarker: PropTypes.bool // allow for many markers - -}; -export default Place; \ No newline at end of file diff --git a/dist/es/components/Platform/index.js b/dist/es/components/Platform/index.js deleted file mode 100644 index 4d3fa74..0000000 --- a/dist/es/components/Platform/index.js +++ /dev/null @@ -1,48 +0,0 @@ -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - -function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -import React, { useEffect, useState } from "react"; -import loadMap from "./../../libs/loadMap"; -import defaults from "./../../libs/defaults"; -import merge from "lodash.merge"; -import initPlatform from "./../../libs/initPlatform"; - -var optionMerger = function optionMerger(options) { - return merge(defaults, options); -}; - -function Platform(props) { - var _useState = useState({ - platform: {}, - options: {} - }), - _useState2 = _slicedToArray(_useState, 2), - platformData = _useState2[0], - setPlatformData = _useState2[1]; - - useEffect(function () { - // const { version, interactive, includeUI, includePlaces } = props; - loadMap(props).then(function (options) { - var platform = initPlatform(options); - setPlatformData({ - platform: platform, - options: options - }); - }); - }, [platformData.platform.A]); - var platform = platformData.platform, - options = platformData.options; - return platform.A == "api.here.com" && (options.app_code || options.apikey) ? React.Children.map(props.children, function (child) { - return React.cloneElement(child, { - platform: platform, - options: options - }); - }) : null; -} - -export default Platform; \ No newline at end of file diff --git a/dist/es/components/Route/index.js b/dist/es/components/Route/index.js deleted file mode 100644 index 86c4edf..0000000 --- a/dist/es/components/Route/index.js +++ /dev/null @@ -1,201 +0,0 @@ -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } - -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } - -function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } - -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } - -import React, { useState } from "react"; -import PropTypes from "prop-types"; -import PolyLine from "../HMap/objects/PolyLine"; -import Polygon from "../HMap/objects/Polygon"; -import Marker from "../HMap/objects/Marker"; -import merge from "lodash.merge"; - -function Router(props) { - var _merge = merge({ - renderDefaultLine: true - }, props), - routeParams = _merge.routeParams, - platform = _merge.platform, - map = _merge.map, - ui = _merge.ui, - children = _merge.children, - renderDefaultLine = _merge.renderDefaultLine, - isoLine = _merge.isoLine, - lineOptions = _merge.lineOptions, - polygonOptions = _merge.polygonOptions, - markerOptions = _merge.markerOptions, - icon = _merge.icon; - - if (!H || !H.map || !map) { - throw new Error("HMap has to be initialized before adding Map Objects"); - } - - if (!routeParams) { - throw new Error("routeParams is not set"); - } - - var _useState = useState([]), - _useState2 = _slicedToArray(_useState, 2), - routeShape = _useState2[0], - setRouteShape = _useState2[1]; - - var _useState3 = useState({}), - _useState4 = _slicedToArray(_useState3, 2), - route = _useState4[0], - setRoute = _useState4[1]; - - var _useState5 = useState({}), - _useState6 = _slicedToArray(_useState5, 2), - component = _useState6[0], - setComponent = _useState6[1]; - - var _useState7 = useState({}), - _useState8 = _slicedToArray(_useState7, 2), - resultResponse = _useState8[0], - setResultResponse = _useState8[1]; - - var _useState9 = useState({}), - _useState10 = _slicedToArray(_useState9, 2), - center = _useState10[0], - setCenter = _useState10[1]; // Define a callback function to process the routing response: - - - var onResult = function onResult(result) { - setResultResponse(result.response); - var _routeShape = []; - - if (isoLine && resultResponse.isoline) { - component = resultResponse.isoline[0].component[0]; - _routeShape = component.shape; - - var _center = new H.geo.Point(resultResponse.center.latitude, resultResponse.center.longitude); - - setCenter(_center); - setComponent(component); - } else if (!isoLine && resultResponse.route) { - // Pick the first route from the response: - route = resultResponse.route[0]; // Pick the route's shape: - - _routeShape = route.shape; - console.log(_routeShape); - _routeShape = _routeShape.map(function (point) { - var coords = point.split(","); - return { - lat: coords[0], - lng: coords[1] - }; - }); - setRoute(route); - } // console.log(_routeShape); - // Update local state - - - setRouteShape(_routeShape); - }; // Get an instance of the routing service: - - - var router = platform.getRoutingService(); - - if (isoLine) {// Call the Routing API to calculate an isoline: - // router.calculateIsoline(routeParams, onResult, e => console.log(e.message)); - } else {// Call calculateRoute() with the routing parameters, - // the callback and an error callback function (called if a - // communication error occurs): - // router.calculateRoute(routeParams, onResult, e => console.log(e.message)); - } - - var renderPolygon = function renderPolygon() { - return React.createElement(React.Fragment, null, React.createElement(Polygon, { - points: routeShape, - options: polygonOptions, - setViewBounds: true, - map: map, - platform: platform - }), React.createElement(Marker, { - coords: center, - map: map, - platform: platform, - icon: icon, - options: markerOptions, - setViewBounds: false - })); - }; // Renders PolyLine and Markers - - - var renderPolyLine = function renderPolyLine() { - // Retrieve the mapped positions of the requested waypoints: - var startPoint = route.waypoint[0].mappedPosition; - var endPoint = route.waypoint[1].mappedPosition; // Create a marker for the start point: - - var startMarker = { - lat: startPoint.latitude, - lng: startPoint.longitude - }; // Create a marker for the end point: - - var endMarker = { - lat: endPoint.latitude, - lng: endPoint.longitude - }; - return React.createElement(React.Fragment, null, React.createElement(PolyLine, { - points: routeShape, - map: map, - options: lineOptions, - setViewBounds: true - }), React.createElement(Marker, { - coords: startMarker, - map: map, - platform: platform, - icon: icon, - options: markerOptions, - setViewBounds: false - }), React.createElement(Marker, { - coords: endMarker, - map: map, - platform: platform, - icon: icon, - options: markerOptions, - setViewBounds: false - })); - }; - - var renderDefault = function renderDefault() { - return isoLine ? renderPolygon() : renderPolyLine(); - }; // Renders the child for additional manipulations - - - var renderChildren = function renderChildren() { - var params = { - map: map, - platform: platform, - ui: ui, - route: route, - routeShape: routeShape, - center: center, - component: component - }; - return React.cloneElement(children, params); - }; - - var renderResult = function renderResult() { - return renderDefaultLine ? renderDefault() : renderChildren(); - }; - - return (route.waypoint || component.shape) && routeShape.length ? renderResult() : null; -} - -Router.propTypes = { - routeParams: PropTypes.object, - lineOptions: PropTypes.object, - markerOptions: PropTypes.object, - children: PropTypes.element, - renderDefaultLine: PropTypes.bool, - isoLine: PropTypes.bool, - icon: PropTypes.any, - map: PropTypes.object, - platform: PropTypes.object, - ui: PropTypes.object -}; -export default Router; \ No newline at end of file diff --git a/dist/es/index.js b/dist/es/index.js deleted file mode 100644 index 9ba6f29..0000000 --- a/dist/es/index.js +++ /dev/null @@ -1,22 +0,0 @@ -import HPlatform from "./components/Platform"; -import Map from "./components/HMap"; -import PolyLine from "./components/HMap/objects/PolyLine"; -import Polygon from "./components/HMap/objects/Polygon"; -import Marker from "./components/HMap/objects/Marker"; -import Circle from "./components/HMap/objects/Circle"; -import Rectangle from "./components/HMap/objects/Rectangle"; -import GeoCode from "./components/GeoCode"; -import Route from "./components/Route"; -import Layer from "./components/Layer"; -import Places from "./components/Places"; -export var HMapPolyLine = PolyLine; -export var HMapPolygon = Polygon; -export var HMapMarker = Marker; -export var HMapCircle = Circle; -export var HMapRectangle = Rectangle; -export var HMapRoute = Route; -export var HMapLayer = Layer; -export var HMapGeoCode = GeoCode; -export var HMapPlaces = Places; -export var HMap = Map; -export default HPlatform; \ No newline at end of file diff --git a/dist/es/libs/builders.js b/dist/es/libs/builders.js deleted file mode 100644 index 6d43700..0000000 --- a/dist/es/libs/builders.js +++ /dev/null @@ -1,80 +0,0 @@ -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -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; } - -import loadMap from "./loadMap"; -import initPlatform from "./initPlatform"; -import initMap from "./initMap"; -import initInteraction from "./initInteraction"; -import initDefaultUI from "./initDefaultUI"; -import initInteractionStyles from "./initInteractionStyles"; -/** - * The whole library is bootstrapped after the initialization is done using the options - * @property {string} options.version Version of the api to load. Defaults to v3 - * @property {string} options.VERSION Default version Defaults to v3 - * @property {object} options.mapEvents Map events implementation - * @property {object} options.mapOptions Options needed to initialize the map - * @property {object} options.platformOptions Options needed to initialize the map - * @property {boolean} options.interactive Adds interactivity to the MAP - * @property {boolean} options.useEvents Adds event handling to the map - * @property {boolean} options.includeUI Add UI script to the MAP - * @property {boolean} options.build Determines if the map should be built - * @property {Node} options.container DOM Element to hold the MAP - * @property {string} options.uiLang Language of the UI - * @property {build} options.build Flag to tell if the MAP should be build immediately - * @property {string} options.appId Here Map APP ID - * @property {string} options.appCode Here Map APP code - * @property {string} options.mapType The type of the map to load e.g // "normal.map" - * @property {string} options.MAP_TYPE Default map type to load "normal.map" - * @param {object} options Items necessary to run the library - * @returns {object} - */ - -export default (function (platform, options) { - // Get values from the options - var useEvents = options.useEvents, - mapEvents = options.mapEvents, - interactive = options.interactive, - includeUI = options.includeUI, - mapType = options.mapType, - MAP_TYPE = options.MAP_TYPE, - mapTypes = options.mapTypes, - mapOptions = options.mapOptions, - uiLang = options.uiLang, - container = options.container, - build = options.build; - - var _mapType = mapType || MAP_TYPE; - - var ret = { - options: _objectSpread({}, options, { - MAP_TYPE: _mapType - }), - platform: platform - }; - - var buildMap = function buildMap() { - if (container && build) { - // Create a Map - ret.map = initMap(platform, container, mapOptions, mapTypes, _mapType); - ret.interaction = initInteraction(ret.map, interactive, useEvents, mapEvents); - - if (includeUI) { - ret.ui = initDefaultUI(ret.platform, ret.map, includeUI, uiLang); - } // Adds the grabbing to the document - - - initInteractionStyles(); - } else { - ret.createMap = initMap, ret.createPlatform = initPlatform, ret.createInteraction = initInteraction, ret.createDefaultUI = initDefaultUI, ret.createInteractionStyles = initInteractionStyles; - } - - return ret; - }; - - return { - buildMap: buildMap - }; -}); \ No newline at end of file diff --git a/dist/es/libs/defaults.js b/dist/es/libs/defaults.js deleted file mode 100644 index 17abe84..0000000 --- a/dist/es/libs/defaults.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @type {string} Default version for the API - */ -var VERSION = "v3/3.0"; -var MAP_TYPE = "normal.map"; -var _test = true; -var mapTypes = { - normal: ["xbase", "xbasenight", "base", "basenight", "map", "mapnight", "traffic", "trafficnight", "transit", "panorama", "panoramanight", "labels", "metaInfo"], - satellite: ["xbase", "base", "map", "traffic", "panorama", "labels"], - terrain: ["xbase", "base", "map", "traffic", "panorama", "labels"], - incidents: _test, - venues: _test -}; -var mapOptions = { - zoom: 8, - center: { - lat: 6.5243793, - lng: 3.3792057 - } -}; -var useEvents = false; -var interactive = false; -var includeUI = false; -var containerId = "HERE_MAP_CONTAINER"; -var _mapEvents = ["pointerdown", "pointerup", "pointermove", "pointerenter", "pointerleave", "pointercancel", "dragstart", "drag", "dragend", "tab", "dbltap"]; -var defaultClassName = "here-map-container"; -var includePlaces = false; // Function that does really nothing, still it is a function, and has its right! - -var noop = function noop() {}; - -var mapEvents = {}; - -_mapEvents.map(function (name) { - return mapEvents[name] = noop; -}); - -export default { - VERSION: VERSION, - mapTypes: mapTypes, - mapEvents: mapEvents, - MAP_TYPE: MAP_TYPE, - mapOptions: mapOptions, - interactive: interactive, - includeUI: includeUI, - includePlaces: includePlaces, - useEvents: useEvents, - containerId: containerId, - defaultClassName: defaultClassName -}; \ No newline at end of file diff --git a/dist/es/libs/initDefaultUI.js b/dist/es/libs/initDefaultUI.js deleted file mode 100644 index dc30764..0000000 --- a/dist/es/libs/initDefaultUI.js +++ /dev/null @@ -1,8 +0,0 @@ -export default (function (platform, map, includeUI, uiLang) { - if (!includeUI) { - throw new Error("includeUI must be set to true to initialize default UI"); - } // Create the default UI components - - - return H.ui.UI.createDefault(map, platform.createDefaultLayers(), uiLang); -}); \ No newline at end of file diff --git a/dist/es/libs/initInteraction.js b/dist/es/libs/initInteraction.js deleted file mode 100644 index 5d0988e..0000000 --- a/dist/es/libs/initInteraction.js +++ /dev/null @@ -1,25 +0,0 @@ -// Add interactivity if set from the options -// interactive and useEvents must be true to use map events -var changeCursorToGrab = function changeCursorToGrab() {}; - -export default (function (map, interactive, useEvents, mapEvents) { - var behavior = interactive ? new H.mapevents.Behavior(new H.mapevents.MapEvents(map)) : null; - - if (useEvents && interactive) { - for (var type in mapEvents) { - if (mapEvents.hasOwnProperty(type)) { - (function () { - var callback = mapEvents[type]; - - if (callback && typeof callback === "function") { - map.addEventListener(type, function (evt) { - callback.apply(null, arguments); - }); - } - })(); - } - } - } - - return behavior; -}); \ No newline at end of file diff --git a/dist/es/libs/initInteractionStyles.js b/dist/es/libs/initInteractionStyles.js deleted file mode 100644 index 82a10f3..0000000 --- a/dist/es/libs/initInteractionStyles.js +++ /dev/null @@ -1,15 +0,0 @@ -export default (function () { - var style = document.createElement("style"); - var css = ".grab = {cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}.grabbing{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}"; - style.type = "text/css"; - - if (style.styleSheet) { - // This is required for IE8 and below. - style.styleSheet.cssText = css; - } else { - style.appendChild(document.createTextNode(css)); - } - - var head = document.head || document.getElementsByTagName("head")[0]; - head.appendChild(style); -}); \ No newline at end of file diff --git a/dist/es/libs/initMap.js b/dist/es/libs/initMap.js deleted file mode 100644 index dea9bd4..0000000 --- a/dist/es/libs/initMap.js +++ /dev/null @@ -1,9 +0,0 @@ -import dotProp from "dot-prop"; -import validateMapType from "./validateMapType"; -export default (function (platform, container, mapOptions, mapTypes, mapType) { - validateMapType(mapTypes, mapType); // Get all the default layers so we can set which to use based on the map type - - var defaultLayers = platform.createDefaultLayers(); // Instantiate (and display) a map object: - - return new H.Map(container, dotProp.get(defaultLayers, mapType), mapOptions); -}); \ No newline at end of file diff --git a/dist/es/libs/initMapObjectEvents.js b/dist/es/libs/initMapObjectEvents.js deleted file mode 100644 index f9dd046..0000000 --- a/dist/es/libs/initMapObjectEvents.js +++ /dev/null @@ -1,23 +0,0 @@ -var initMapObjectEvents = function initMapObjectEvents(mapObject, objectEvents, platformOptions) { - var useEvents = platformOptions.useEvents, - interactive = platformOptions.interactive, - mapEvents = platformOptions.mapEvents; - - if (useEvents && interactive && objectEvents) { - for (var type in mapEvents) { - if (mapEvents.hasOwnProperty(type)) { - (function () { - var objectEventCallback = objectEvents[type]; - - if (objectEventCallback && typeof objectEventCallback === "function") { - mapObject.addEventListener(type, function (evt) { - objectEventCallback.apply(null, arguments); - }); - } - })(); - } - } - } -}; - -module.exports = initMapObjectEvents; \ No newline at end of file diff --git a/dist/es/libs/initPlatform.js b/dist/es/libs/initPlatform.js deleted file mode 100644 index 8ccaa97..0000000 --- a/dist/es/libs/initPlatform.js +++ /dev/null @@ -1,15 +0,0 @@ -export default (function (options) { - var app_id = options.app_id, - app_code = options.app_code, - apikey = options.apikey; - - if ((!app_id || !app_code) && !apikey) { - throw new Error("Options must include appId and appCode OR an apiKey"); - } - - if (typeof H === "undefined" || !H.service) { - throw new Error("Here Map JavaScripts is not loaded."); - } - - return new H.service.Platform(options); -}); \ No newline at end of file diff --git a/dist/es/libs/loadMap.js b/dist/es/libs/loadMap.js deleted file mode 100644 index 9faaf9c..0000000 --- a/dist/es/libs/loadMap.js +++ /dev/null @@ -1,38 +0,0 @@ -import hereMapJS from "@limistah/here-map-js"; -import defaults from "./defaults"; -import merge from "lodash.merge"; // Merges the option with the defaults to create a unison and make required values available - -var optionMerger = function optionMerger(options) { - return merge(defaults, options); -}; -/** - * Script initialization, bootstraps needed utils for successful running of the library - * @property {string} options.version Version of the api to load. Defaults to v3 - * @property {string} options.interactive Adds interactive scripts - * @property {object} options.includeUI Should add the UI scripts - * @property {string} options.includePlaces Include the places script - * @param {object} options Items necessary to run the library - */ - - -var initializer = function initializer(options) { - var _options = optionMerger(options || {}); - - var VERSION = _options.VERSION, - version = _options.version, - interactive = _options.interactive, - includeUI = _options.includeUI, - includePlaces = _options.includePlaces; // Returns async loading of the component - // First load the core, to save us reference error if all of the libraries are loaded asynchronously due to race conditions - - return hereMapJS({ - includeUI: includeUI, - includePlaces: includePlaces, - interactive: interactive, - version: version || VERSION - }).then(function () { - return _options; - }); -}; - -export default initializer; \ No newline at end of file diff --git a/dist/es/libs/mapBuilder.js b/dist/es/libs/mapBuilder.js deleted file mode 100644 index 17a0fcb..0000000 --- a/dist/es/libs/mapBuilder.js +++ /dev/null @@ -1,76 +0,0 @@ -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -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; } - -import initMap from "./initMap"; -import initInteraction from "./initInteraction"; -import initDefaultUI from "./initDefaultUI"; -import initInteractionStyles from "./initInteractionStyles"; -/** - * The whole library is bootstrapped after the initialization is done using the options - * @property {string} options.version Version of the api to load. Defaults to v3 - * @property {string} options.VERSION Default version Defaults to v3 - * @property {object} options.mapEvents Map events implementation - * @property {object} options.mapOptions Options needed to initialize the map - * @property {object} options.platformOptions Options needed to initialize the map - * @property {boolean} options.interactive Adds interactivity to the MAP - * @property {boolean} options.useEvents Adds event handling to the map - * @property {boolean} options.includeUI Add UI script to the MAP - * @property {boolean} options.build Determines if the map should be built - * @property {Node} options.container DOM Element to hold the MAP - * @property {string} options.uiLang Language of the UI - * @property {build} options.build Flag to tell if the MAP should be build immediately - * @property {string} options.appId Here Map APP ID - * @property {string} options.appCode Here Map APP code - * @property {string} options.mapType The type of the map to load e.g // "normal.map" - * @property {string} options.MAP_TYPE Default map type to load "normal.map" - * @param {object} options Items necessary to run the library - * @returns {object} - */ - -export default (function (platform, options) { - // Get values from the options - var useEvents = options.useEvents, - mapEvents = options.mapEvents, - interactive = options.interactive, - includeUI = options.includeUI, - mapType = options.mapType, - MAP_TYPE = options.MAP_TYPE, - mapTypes = options.mapTypes, - mapOptions = options.mapOptions, - uiLang = options.uiLang, - container = options.container, - build = options.build; - - var _mapType = mapType || MAP_TYPE; - - var ret = { - options: _objectSpread({}, options, { - MAP_TYPE: _mapType - }), - platform: platform - }; - - if (container && build) { - // Create a Map - ret.map = initMap(platform, container, mapOptions, mapTypes, _mapType); - ret.interaction = initInteraction(ret.map, interactive, useEvents, mapEvents); - - if (includeUI) { - ret.ui = initDefaultUI(platform, ret.map, includeUI, uiLang); - } // Adds the grabbing to the document - - - initInteractionStyles(); - } else { - ret.createMap = initMap; - ret.createPlatform = initPlatform; - ret.createInteraction = initInteraction; - ret.createDefaultUI = initDefaultUI; - ret.createInteractionStyles = initInteractionStyles; - } - - return ret; -}); \ No newline at end of file diff --git a/dist/es/libs/placeBuilder.js b/dist/es/libs/placeBuilder.js deleted file mode 100644 index 7fb2f07..0000000 --- a/dist/es/libs/placeBuilder.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @param {object} platform Platform object to use for initialization. - */ -export default (function (platform, type) { - if (!platform || platform.A != "api.here.com") { - throw new Error("Platform should be of Here Map's Platform"); - } - - var placesService = platform.getPlacesService(); - - switch (type) { - case "around": - return new H.places.Around(placesService); - break; - - case "categories": - return new H.places.Categories(placesService); - break; - - case "explore": - return new H.places.Explore(placesService); - break; - - case "here": - return new H.places.Here(placesService); - break; - - case "lookup": - return new H.places.Lookup(placesService); - break; - - case "suggest": - return new H.places.Suggest(placesService); - break; - - case "search": - default: - return new H.places.Search(placesService); - break; - } -}); \ No newline at end of file diff --git a/dist/es/libs/validateMapType.js b/dist/es/libs/validateMapType.js deleted file mode 100644 index efe5a32..0000000 --- a/dist/es/libs/validateMapType.js +++ /dev/null @@ -1,13 +0,0 @@ -import dotProp from "dot-prop"; -export default (function (mapTypes, mapType) { - var items = mapType.split("."); - var mainType = mapTypes[items[0]]; // Some of the types are array, and should have the second element in the split type to be an item in it - - var _test = Array.isArray(mainType) && mainType.includes(items[1]); - - var __test = mainType === true; - - if (!_test && !__test) { - throw new Error("mapType Should be one from https://developer.here.com/documentation/maps/topics/map-types.html in dot notation"); - } -}); \ No newline at end of file diff --git a/dist/es/main.js b/dist/es/main.js deleted file mode 100644 index 4fd20bd..0000000 --- a/dist/es/main.js +++ /dev/null @@ -1,295 +0,0 @@ -import React from "react"; -import ReactDOM from "react-dom"; -import HMap from "./components/HMap"; -import HMapPolyLine from "./components/HMap/objects/PolyLine"; -import HMapPolygon from "./components/HMap/objects/Polygon"; -import HMapCircle from "./components/HMap/objects/Circle"; -import HMapRectangle from "./components/HMap/objects/Rectangle"; -import HMapMarker from "./components/HMap/objects/Marker"; -import HMapGeoCode from "./components/GeoCode"; -import HMapRoute from "./components/Route"; -import HMapLayer from "./components/Layer"; -import HMapPlatform from "./components/Platform"; -import HMapPlaces from "./components/Places"; -var points = [{ - lat: 52.5309825, - lng: 13.3845921 -}, { - lat: 52.5311923, - lng: 13.3853495 -}, { - lat: 52.5313532, - lng: 13.3861756 -}, { - lat: 52.5315142, - lng: 13.3872163 -}, { - lat: 52.5316215, - lng: 13.3885574 -}, { - lat: 52.5320399, - lng: 13.3925807 -}, { - lat: 52.5321472, - lng: 13.3935785 -}, { - lat: 52.5323832, - lng: 13.395499 -}, { - lat: 52.5324261, - lng: 13.3959818 -}, { - lat: 52.5325012, - lng: 13.397795 -}, { - lat: 52.5325656, - lng: 13.3986318 -}, { - lat: 52.5326192, - lng: 13.3989215 -}, { - lat: 52.5325119, - lng: 13.3989751 -}, { - lat: 52.5323081, - lng: 13.3991039 -}]; -var icon = '' + 'H'; -var polygonOptions = { - style: { - fillColor: "#FFFFCC", - strokeColor: "#829", - lineWidth: 8 - } -}; -var circleOptions = { - style: { - strokeColor: "rgba(55, 85, 170, 0.6)", - // Color of the perimeter - lineWidth: 2, - fillColor: "rgba(0, 128, 0, 0.7)" // Color of the circle - - } -}; -var rectangleOptions = { - style: { - fillColor: "#FFFFCC", - strokeColor: "#E8FA75", - lineWidth: 8 - } -}; -var polygonPoints = [52, 13, 100, 48, 2, 100, 48, 16, 100, 52, 13, 100]; -var geoCodeParams = { - searchText: "200 S Mathilda Ave, Sunnyvale, CA" -}; - -var GeoMarker = function GeoMarker(_ref) { - var map = _ref.map, - platform = _ref.platform, - ui = _ref.ui, - lat = _ref.lat, - lng = _ref.lng, - location = _ref.location, - key = _ref.key; - return React.createElement(HMapMarker, { - coords: { - lat: lat, - lng: lng - }, - map: map, - platform: platform, - key: key, - icon: icon - }); -}; // Create the parameters for the reverse geocoding request: - - -var reverseGeoCodingParameters = { - prox: "52.5309,13.3847,150", - mode: "retrieveAddresses", - maxresults: 1 -}; - -var ReverseGeoMarker = function ReverseGeoMarker(_ref2) { - var map = _ref2.map, - platform = _ref2.platform, - ui = _ref2.ui, - lat = _ref2.lat, - lng = _ref2.lng, - location = _ref2.location, - key = _ref2.key; - - // ; - if (ui) { - ui.addBubble(new H.ui.InfoBubble({ - lat: lat, - lng: lng - }, { - content: location.Location.Address.Label - })); - } - - return null; -}; - -var LandmarkGeoMarker = function LandmarkGeoMarker(_ref3) { - var map = _ref3.map, - platform = _ref3.platform, - ui = _ref3.ui, - lat = _ref3.lat, - lng = _ref3.lng, - location = _ref3.location, - key = _ref3.key, - _location = _ref3._location; - ui.addBubble(new H.ui.InfoBubble({ - lat: lat, - lng: lng - }, { - content: _location.Name - })); - return null; -}; // Create the parameters for the landmark search request: - - -var landmarkSearchParameters = { - searchText: "TXL" -}; // Create the parameters for the routing request: - -var routeParams = { - // The routing mode: - mode: "fastest;car", - // The start point of the route: - waypoint0: "geo!50.1120423728813,8.68340740740811", - // The end point of the route: - waypoint1: "geo!52.5309916298853,13.3846220493377", - // To retrieve the shape of the route we choose the route - // representation mode 'display' - representation: "display" -}; -var routeLineOptions = { - style: { - strokeColor: "blue", - lineWidth: 10 - }, - arrows: { - fillColor: "white", - frequency: 2, - width: 0.8, - length: 0.7 - } -}; - -var RouteMarker = function RouteMarker(_ref4) { - var map = _ref4.map, - platform = _ref4.platform, - ui = _ref4.ui, - route = _ref4.route, - key = _ref4.key, - routeShape = _ref4.routeShape; - // Retrieve the mapped positions of the requested waypoints: - var startPoint = route.waypoint[0].mappedPosition; - var endPoint = route.waypoint[1].mappedPosition; // Create a marker for the start point: - - var startMarker = { - lat: startPoint.latitude, - lng: startPoint.longitude - }; // Create a marker for the end point: - - var endMarker = { - lat: endPoint.latitude, - lng: endPoint.longitude - }; - return React.createElement(React.Fragment, null, React.createElement(HMapPolyLine, { - points: routeShape, - map: map, - setViewBounds: true - }), React.createElement(HMapMarker, { - coords: startMarker, - map: map, - platform: platform, - icon: icon, - setViewBounds: false - }), React.createElement(HMapMarker, { - coords: endMarker, - map: map, - platform: platform, - icon: icon, - setViewBounds: false - })); -}; - -var isoRoutingParams = { - mode: "fastest;car;", - start: "geo!52.5,13.4", - range: "900", - rangetype: "time" -}; - -var RouteMarkerIso = function RouteMarkerIso(_ref5) { - var map = _ref5.map, - platform = _ref5.platform, - ui = _ref5.ui, - route = _ref5.route, - routeShape = _ref5.routeShape, - center = _ref5.center, - component = _ref5.component; - return React.createElement(React.Fragment, null, React.createElement(Polygon, { - points: routeShape, - options: polygonOptions, - setViewBounds: true, - map: map, - platform: platform - }), React.createElement(Marker, { - coords: center, - map: map, - platform: platform, - icon: icon, - options: markerOptions, - setViewBounds: false - })); -}; - -ReactDOM.render(React.createElement(React.Fragment, null, React.createElement(HMapPlatform, { - app_id: "2Ts3vDUTLPW8kNUtyFRY", - app_code: "MDivMVFtNkpim-dWuetlWw", - useCIT: true, - useHTTPS: true, - includePlaces: true, - interactive: true -}, React.createElement(HMapPlaces, { - library: "search" -})), React.createElement(HMapPlatform, { - app_id: "2Ts3vDUTLPW8kNUtyFRY", - app_code: "MDivMVFtNkpim-dWuetlWw", - useCIT: true, - useHTTPS: true, - includeUI: true, - includePlaces: true -}, React.createElement(HMap, { - style: { - height: "400px", - width: "800px" - }, - mapOptions: { - center: { - lat: 52.5321472, - lng: 13.3935785 - }, - zoom: 10 - } -}, React.createElement(HMapRoute, { - routeParams: isoRoutingParams, - icon: icon, - defaultDisplay: false, - isoLine: true, - lineOptions: routeLineOptions -}, React.createElement(RouteMarkerIso, null)), React.createElement(HMapLayer, { - mapLayerType: "normal.traffic" -})))), document.getElementById("app")); -module.hot.accept(); \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 5fa7c05..0000000 --- a/dist/index.js +++ /dev/null @@ -1,8 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","prop-types"],t):t((e=e||self).reactHereMap={},e.React,e.PropTypes)}(this,(function(e,t,r){"use strict";var n="default"in t?t.default:t;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r{const t=(e=>w(g,e))(e||{}),{VERSION:r,version:n,interactive:o,includeUI:i,includePlaces:a}=t,u=n||r,s=((e=g.VERSION)=>[`https://js.api.here.com/${e}/mapsjs-service.js`,`https://js.api.here.com/${e}/mapsjs-ui.js`,`https://js.api.here.com/${e}/mapsjs-mapevents.js`,`https://js.api.here.com/${e}/mapsjs-places.js`])(u);return!o&&s.splice(2,1),!i&&s.splice(1,1),!a&&s.splice(3,1),b(`https://js.api.here.com/${u}/mapsjs-core.js`).then((function(){if(i){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",`https://js.api.here.com/${u}/mapsjs-ui.css`),document.getElementsByTagName("head")[0].append(e)}return b(s)})).catch(e=>{console.log(e)})};var O={normal:["xbase","xbasenight","base","basenight","map","mapnight","traffic","trafficnight","transit","panorama","panoramanight","labels","metaInfo"],satellite:["xbase","base","map","traffic","panorama","labels"],terrain:["xbase","base","map","traffic","panorama","labels"],incidents:!0,venues:!0},_=function(){},k={};["pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointercancel","dragstart","drag","dragend","tab","dbltap"].map((function(e){return k[e]=_}));var x={VERSION:"v3/3.0",mapTypes:O,mapEvents:k,MAP_TYPE:"normal.map",mapOptions:{zoom:8,center:{lat:6.5243793,lng:3.3792057}},interactive:!1,includeUI:!1,includePlaces:!1,useEvents:!1,containerId:"HERE_MAP_CONTAINER",defaultClassName:"here-map-container"},E=h((function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,u="[object Arguments]",s="[object AsyncFunction]",c="[object Function]",l="[object GeneratorFunction]",f="[object Null]",p="[object Object]",m="[object Proxy]",h="[object Undefined]",y=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[u]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[c]=b["[object Map]"]=b["[object Number]"]=b[p]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof d&&d&&d.Object===Object&&d,w="object"==typeof self&&self&&self.Object===Object&&self,j=g||w||Function("return this")(),O=t&&!t.nodeType&&t,_=O&&e&&!e.nodeType&&e,k=_&&_.exports===O,x=k&&g.process,E=function(){try{var e=_&&_.require&&_.require("util").types;return e||x&&x.binding&&x.binding("util")}catch(e){}}(),S=E&&E.isTypedArray;function P(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var M,C,A,T=Array.prototype,N=Function.prototype,R=Object.prototype,H=j["__core-js_shared__"],z=N.toString,I=R.hasOwnProperty,L=(M=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",D=R.toString,B=z.call(Object),W=RegExp("^"+z.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=k?j.Buffer:void 0,F=j.Symbol,q=j.Uint8Array,U=V?V.allocUnsafe:void 0,$=(C=Object.getPrototypeOf,A=Object,function(e){return C(A(e))}),G=Object.create,Y=R.propertyIsEnumerable,Z=T.splice,X=F?F.toStringTag:void 0,J=function(){try{var e=Oe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),K=V?V.isBuffer:void 0,Q=Math.max,ee=Date.now,te=Oe(j,"Map"),re=Oe(Object,"create"),ne=function(){function e(){}return function(t){if(!Re(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ie.prototype.set=function(e,t){var r=this.__data__,n=fe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ae.prototype.clear=function(){this.size=0,this.__data__={hash:new oe,map:new(te||ie),string:new oe}},ae.prototype.delete=function(e){var t=je(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return je(this,e).get(e)},ae.prototype.has=function(e){return je(this,e).has(e)},ae.prototype.set=function(e,t){var r=je(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ue.prototype.clear=function(){this.__data__=new ie,this.size=0},ue.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ie){var o=n.__data__;if(!te||o.length-1&&e%1==0&&e0){if(++t>=o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(J?function(e,t){return J(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Be);function Se(e,t){return e===t||e!=e&&t!=t}var Pe=ye(function(){return arguments}())?ye:function(e){return He(e)&&I.call(e,"callee")&&!Y.call(e,"callee")},Me=Array.isArray;function Ce(e){return null!=e&&Ne(e.length)&&!Te(e)}var Ae=K||function(){return!1};function Te(e){if(!Re(e))return!1;var t=he(e);return t==c||t==l||t==s||t==m}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Re(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function He(e){return null!=e&&"object"==typeof e}var ze=S?function(e){return function(t){return e(t)}}(S):function(e){return He(e)&&Ne(e.length)&&!!b[he(e)]};function Ie(e){return Ce(e)?se(e,!0):be(e)}var Le,De=(Le=function(e,t,r){ge(e,t,r)},we((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Le.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!Re(r))return!1;var n=typeof t;return!!("number"==n?Ce(r)&&_e(t,r.length):"string"==n&&t in r)&&Se(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r=t||r<0||f&&e-c>=i}function h(){var e=se();if(m(e))return y(e);u=setTimeout(h,function(e){var r=t-(e-s);return f?ue(r,i-(e-c)):r}(e))}function y(e){return u=void 0,p&&n?d(e):(n=o=void 0,a)}function v(){var e=se(),r=m(e);if(n=arguments,o=this,s=e,r){if(void 0===u)return function(e){return c=e,u=setTimeout(h,t),l?d(e):a}(s);if(f)return u=setTimeout(h,t),d(s)}return void 0===u&&(u=setTimeout(h,t)),a}return t=le(t)||0,ce(r)&&(l=!!r.leading,i=(f="maxWait"in r)?ae(le(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),v.cancel=function(){void 0!==u&&clearTimeout(u),c=0,n=s=o=u=void 0},v.flush=function(){return void 0===u?a:y(se())},v}((function(e,t){return t(e)}),500),pe={margin:0,fontFamily:"inherit",display:"block",width:"100%",padding:".375rem .75rem",fontSize:"1rem",lineHeight:1.5,color:"#495057",backgroundColor:"#fff",backgroundClip:"padding-box",border:"1px solid #ced4da",borderRadius:".25rem",transition:"border-color .15s ease-in-out, box-shadow .15s ease-in-out"};function de(e){var t=e.getValue,r=e.style,o=e.className;return r=E(pe,r),n.createElement("input",{className:o,style:r,placeholder:"Enter a value",onChange:function(e){return fe(e.target.value,t)}})}fe.propTypes={getValue:r.func.isRequired,className:r.string,style:r.object}; -/* - object-assign - (c) Sindre Sorhus - @license MIT - */ -var me=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;function ve(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var be=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=ve(e),i=1;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.speedy,r=void 0===t?!u&&!s:t,n=e.maxLength,o=void 0===n?a&&c?4e3:65e3:n;this.isSpeedy=r,this.sheet=void 0,this.tags=[],this.maxLength=o,this.ctr=0}(0,n.default)(f.prototype,{getSheet:function(){return i(o(this.tags))},inject:function(){var e=this;if(this.injected)throw new Error("already injected stylesheet!");a?this.tags[0]=l():this.sheet={cssRules:[],insertRule:function(t){e.sheet.cssRules.push({cssText:t})}},this.injected=!0},speedy:function(e){if(0!==this.ctr)throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy("+e+") earlier in your app, or call flush() before speedy("+e+")");this.isSpeedy=!!e},_insert:function(e){try{var t=this.getSheet();t.insertRule(e,-1!==e.indexOf("@import")?0:t.cssRules.length)}catch(t){u&&console.warn("whoops, illegal rule inserted",e)}},insert:function(e){if(a)if(this.isSpeedy&&this.getSheet().insertRule)this._insert(e);else if(-1!==e.indexOf("@import")){var t=o(this.tags);t.insertBefore(document.createTextNode(e),t.firstChild)}else o(this.tags).appendChild(document.createTextNode(e));else this.sheet.insertRule(e,-1!==e.indexOf("@import")?0:this.sheet.cssRules.length);return this.ctr++,a&&this.ctr%this.maxLength==0&&this.tags.push(l()),this.ctr-1},delete:function(e){return this.replace(e,"")},flush:function(){a?(this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.sheet=null,this.ctr=0):this.sheet.cssRules=[],this.injected=!1},rules:function(){if(!a)return this.sheet.cssRules;var e=[];return this.tags.forEach((function(t){return e.splice.apply(e,[e.length,0].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t1?t-1:0),n=1;n2?r-2:0),o=2;o-1?function(e,t){f.hasOwnProperty(e)&&f[e]||(f[e]=!0,"production"!==process.env.NODE_ENV&&(0,a.default)(!1,"Unsupported style property %s. Did you mean %s?%s",e,(0,r.default)(e),m(t)))}(e,o):c.test(e)?function(e,t){f.hasOwnProperty(e)&&f[e]||(f[e]=!0,"production"!==process.env.NODE_ENV&&(0,a.default)(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?%s",e,e.charAt(0).toUpperCase()+e.slice(1),m(t)))}(e,o):l.test(t)&&function(e,t,r){p.hasOwnProperty(t)&&p[t]||(p[t]=!0,"production"!==process.env.NODE_ENV&&(0,a.default)(!1,'Style property values shouldn\'t contain a semicolon.%s Try "%s: %s" instead.',m(r),e,t.replace(l,"")))}(e,t,o),"number"==typeof t&&isNaN(t)&&function(e,t,r){d||(d=!0,"production"!==process.env.NODE_ENV&&(0,a.default)(!1,"`NaN` is an invalid value for the `%s` css style property.%s",e,m(r)))}(e,0,o)}}));m(ze);ze.processStyleName,ze.createMarkupForStyles;var Ie=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function n(e){if(function(e){return null==e||!1===e||"object"===(void 0===e?"undefined":r(e))&&0===Object.keys(e).length}(e))return null;if("object"!==(void 0===e?"undefined":r(e)))return e;for(var t={},n=Object.keys(e),i=!1,a=0;a-1)return o.map((function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")}))};var r,n=(r=Fe)&&r.__esModule?r:{default:r};var o=["-webkit-",""];e.exports=t.default}));m(qe);var Ue=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("filter(")>-1)return o.map((function(e){return t.replace(/filter\(/g,e+"filter(")}))};var r,n=(r=Fe)&&r.__esModule?r:{default:r};var o=["-webkit-",""];e.exports=t.default}));m(Ue);var $e=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("display"===e&&r.hasOwnProperty(t))return r[t]};var r={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};e.exports=t.default}));m($e);var Ge=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?o.WebkitBoxOrient="vertical":o.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?o.WebkitBoxDirection="reverse":o.WebkitBoxDirection="normal");n.hasOwnProperty(e)&&(o[n[e]]=r[t]||t)};var r={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},n={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t.default}));m(Ge);var Ye=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&i.test(t))return o.map((function(e){return e+t}))};var r,n=(r=Fe)&&r.__esModule?r:{default:r};var o=["-webkit-","-moz-",""],i=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default}));m(Ye);var Ze=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("image-set(")>-1)return o.map((function(e){return t.replace(/image-set\(/g,e+"image-set(")}))};var r,n=(r=Fe)&&r.__esModule?r:{default:r};var o=["-webkit-",""];e.exports=t.default}));m(Ze);var Xe=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]},e.exports=t.default}));m(Xe);var Je=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(n.hasOwnProperty(e)&&o.hasOwnProperty(t))return r.map((function(e){return e+t}))};var r=["-webkit-","-moz-",""],n={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default}));m(Je);var Ke=/[A-Z]/g,Qe=/^ms-/,et={};function tt(e){return"-"+e.toLowerCase()}function rt(e){if(et.hasOwnProperty(e))return et[e];var t=e.replace(Ke,tt);return et[e]=Qe.test(t)?"-"+t:t}var nt=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)};var r,n=(r=rt)&&r.__esModule?r:{default:r};e.exports=t.default}));m(nt);var ot=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i,s){if("string"==typeof t&&a.hasOwnProperty(e)){var c=function(e,t){if((0,n.default)(e))return e;for(var o=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),i=0,a=o.length;i-1&&"order"!==f)for(var p=t[l],d=0,m=p.length;d-1)return l;var f=c.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(e){return!/-webkit-|-ms-/.test(e)})).join(",");return e.indexOf("Moz")>-1?f:(i["Webkit"+(0,o.default)(e)]=l,i["Moz"+(0,o.default)(e)]=f,c)}};var r=i(nt),n=i(Fe),o=i(De);function i(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};e.exports=t.default}));m(ot);var it=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t in e){var r=e[t],i=(0,o.default)(y,t,r,e,v);i&&(e[t]=i),(0,n.default)(v,t,e)}return e};var r=h(Le),n=h(Be),o=h(We),i=h(Ve),a=h(qe),u=h(Ue),s=h($e),c=h(Ge),l=h(Ye),f=h(Ze),p=h(Xe),d=h(Je),m=h(ot);function h(e){return e&&e.__esModule?e:{default:e}}var y=[a.default,i.default,u.default,c.default,l.default,f.default,p.default,d.default,m.default,s.default],v=r.default.prefixMap}));m(it);var at=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0){var t=e.style,r=Object.keys(t).reduce((function(e,r){return e[r]=Array.isArray(t[r])?t[r].join("; "+(0,ze.processStyleName)(r)+": "):t[r],e}),{});return(0,n.default)({},e,{style:r})}return e},t.contentWrap=function(e){if(e.style.content){var t=e.style.content;return c.indexOf(t)>=0?e:/^(attr|calc|counters?|url)\(/.test(t)?e:t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)?r({},e,{style:r({},e.style,{content:'"'+t+'"'})}):e}return e},t.prefixes=function(e){return(0,n.default)({},e,{style:(0,o.default)(r({},e.style))})};var n=i(be),o=i(it);function i(e){return e&&e.__esModule?e:{default:e}}var a,u="development"===(a=process.env.NODE_ENV)||!a;function s(e){this.fns=e||[]}(0,n.default)(s.prototype,{add:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n=0?u&&console.warn("adding the same plugin again, ignoring"):e.fns=[t].concat(e.fns)}))},remove:function(e){this.fns=this.fns.filter((function(t){return t!==e}))},clear:function(){this.fns=[]},transform:function(e){return this.fns.reduce((function(e,t){return t(e)}),e)}});var c=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit"]}));m(at);at.PluginSet,at.fallbacks,at.contentWrap,at.prefixes;var ut=h((function(e,t){function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function n(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function o(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i=1540483477,a=t^e.length,u=e.length,s=0;for(;u>=4;){var c=r(e,s);c=o(c,i),c=o(c^=c>>>24,i),a=o(a,i),a^=c,s+=4,u-=4}switch(u){case 3:a^=n(e,s),a=o(a^=e.charCodeAt(s+2)<<16,i);break;case 2:a=o(a^=n(e,s),i);break;case 1:a=o(a^=e.charCodeAt(s),i)}return a=o(a^=a>>>13,i),(a^=a>>>15)>>>0}}));m(ut);var st=h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.compose=t.merge=t.$=t.style=t.presets=t.keyframes=t.fontFace=t.insertGlobal=t.insertRule=t.plugins=t.styleSheet=void 0,t.speedy=function(e){return u.speedy(e)},t.simulations=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];p=!!e},t.simulate=function(){for(var e=arguments.length,t=Array(e),r=0;r1?t-1:0),n=1;n1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:"";return e.toLowerCase().replace(/[^a-z0-9]/g,t)}function v(e){var t=JSON.stringify(e),r=(0,o.default)(t).toString(36);return e.label&&e.label.length>0&&c?y(e.label.join("."),"-")+"-"+r:r}function b(e){var t=Object.keys(e).filter((function(e){return"toString"!==e}));return 1===t.length&&!!/data\-css\-([a-zA-Z0-9\-_]+)/.exec(t[0])}function g(e){var t=Object.keys(e).filter((function(e){return"toString"!==e}));if(1!==t.length)throw new Error("not a rule");var r=/data\-css\-([a-zA-Z0-9\-_]+)/.exec(t[0]);if(!r)throw new Error("not a rule");return r[1]}var w=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function j(e){if(-1===e.indexOf(","))return[e];for(var t,r=[],n=[],o=0;t=w.exec(e);)switch(t[0]){case"(":o++;break;case")":o--;break;case",":if(o)break;r.push(t.index)}for(t=r.length;t--;)n.unshift(e.slice(r[t]+1)),e=e.slice(0,r[t]);return n.unshift(e),n}function O(e,t){if(!e)return t.replace(/\&/g,"");if(!t)return".css-"+e+",[data-css-"+e+"]";var r=j(t).map((function(t){return t.indexOf("&")>=0?[t.replace(/\&/gm,".css-"+e),t.replace(/\&/gm,"[data-css-"+e+"]")].join(","):".css-"+e+t+",[data-css-"+e+"]"+t})).join(",");return p&&/^\&\:/.exec(t)&&!/\s/.exec(t)&&(r+=",.css-"+e+"[data-simulate-"+y(t)+"],[data-css-"+e+"][data-simulate-"+y(t)+"]"),r}function _(e){var t=e.selector,r=e.style,n=s.transform({selector:t,style:r});return n.selector+"{"+(0,ze.createMarkupForStyles)(n.style)+"}"}function k(e){var t=void 0,r=void 0,n=void 0,o=void 0;return Object.keys(e).forEach((function(i){i.indexOf("&")>=0?(r=r||{})[i]=e[i]:0===i.indexOf("@media")?(n=n||{})[i]=k(e[i]):0===i.indexOf("@supports")?(o=o||{})[i]=k(e[i]):"label"===i?e.label.length>0&&((t=t||{}).label=h?e.label.join("."):""):(t=t||{})[i]=e[i]})),{plain:t,selects:r,medias:n,supports:o}}function x(e,t){var r=[],n=t.plain,o=t.selects,i=t.medias,a=t.supports;return n&&r.push(_({style:n,selector:O(e)})),o&&Object.keys(o).forEach((function(t){return r.push(_({style:o[t],selector:O(e,t)}))})),i&&Object.keys(i).forEach((function(t){return r.push(t+"{"+x(e,i[t]).join("")+"}")})),a&&Object.keys(a).forEach((function(t){return r.push(t+"{"+x(e,a[t]).join("")+"}")})),r}var E=u.inserted={};var S=u.registered={};function P(e){S[e.id]||(S[e.id]=e)}var M={};function C(e){if(P(e),function(e){if(!E[e.id]){E[e.id]=!0;var t=k(e.style),r=x(e.id,t);E[e.id]=!!f||r,r.forEach((function(e){return u.insert(e)}))}}(e),M[e.id])return M[e.id];var t=a({},"data-css-"+e.id,h&&e.label||"");return Object.defineProperty(t,"toString",{enumerable:!1,value:function(){return"css-"+e.id}}),M[e.id]=t,t}function A(e,t){var r=j(e).map((function(e){return e.indexOf("&")>=0?e:"&"+e}));return j(t).map((function(e){return e.indexOf("&")>=0?e:"&"+e})).reduce((function(e,t){return e.concat(r.map((function(e){return t.replace(/\&/g,e)})))}),[]).join(",")}function T(e,t){return e?"@supports "+e.substring(9)+" and "+t.substring(9):t}var N={"::placeholder":["::-webkit-input-placeholder","::-moz-placeholder","::-ms-input-placeholder"],":fullscreen":[":-webkit-full-screen",":-moz-full-screen",":-ms-fullscreen"]};function R(e,t){var r=t.selector,o=void 0===r?"":r,i=t.mq,a=void 0===i?"":i,u=t.supp,s=void 0===u?"":u,c=t.src,l=void 0===c?{}:c;Array.isArray(l)||(l=[l]),(l=function e(t){for(var r=[],n=0;n"," "],r=!1,n=e.charAt(0),o=0;o=0}(r))N[r]&&N[r].forEach((function(n){return R(e,{selector:A(o,n),mq:a,supp:s,src:t[r]})})),R(e,{selector:A(o,r),mq:a,supp:s,src:t[r]});else if(function(e){return 0===e.indexOf("@media")}(r))R(e,{selector:o,mq:(i=a,u=r,i?"@media "+i.substring(6)+" and "+u.substring(6):u),supp:s,src:t[r]});else if(function(e){return 0===e.indexOf("@supports")}(r))R(e,{selector:o,mq:a,supp:T(s,r),src:t[r]});else if("composes"===r);else{var n=e;s&&(n[s]=n[s]||{},n=n[s]),a&&(n[a]=n[a]||{},n=n[a]),o&&(n[o]=n[o]||{},n=n[o]),"label"===r?h&&(e.label=e.label.concat(t.label)):n[r]=t[r]}var i,u}))}))}function H(e){var t={label:[]};return R(t,{src:e}),C({id:v(t),style:t,label:h?t.label.join("."):"",type:"css"})}var z={};Object.defineProperty(z,"toString",{enumerable:!1,value:function(){return"css-nil"}});var I="undefined"!=typeof WeakMap?[z,new WeakMap,new WeakMap,new WeakMap]:[z],L=!1;var D,B="undefined"!=typeof WeakMap?(D=H,function(e){if(I[e.length]){for(var t=I[e.length],r=0;r1?t-1:0),n=1;n1?t-1:0),n=1;n=n&&an)return e;if(a<=t&&n>=r)e.splice(d,2);else{if(a>=t&&n=t&&a<=r)e[d+1]=a;else if(n>=t&&n<=r)return e[d]=n+1,e;d+=2}}return e},dataAdd=function(e,a){var n,t,r=0,d=null,i=e.length;if(a<0||a>1114111)throw RangeError(u);for(;r=n&&aa)return e.splice(null!=d?d+2:0,0,a,a+1),e;if(a==t)return a+1==e[r+2]?(e.splice(r,4,n,e[r+3]),e):(e[r+1]=a+1,e);d=r,r+=2}return e.push(a,a+1),e},dataAddData=function(e,a){for(var n,t,r=0,d=e.slice(),i=a.length;r1114111||n<0||n>1114111)throw RangeError(u);for(var t,r,d=0,i=!1,o=e.length;dn)return e;t>=a&&t<=n&&(r>a&&r-1<=n?(e.splice(d,2),d-=2):(e.splice(d-1,2),d-=2))}else{if(t==n+1)return e[d]=a,e;if(t>n)return e.splice(d,0,a,n+1),e;if(a>=t&&a=t&&a=r&&(e[d]=a,e[d+1]=n+1,i=!0)}d+=2}return i||e.push(a,n+1),e},dataContains=function(e,a){var n=0,t=e.length,r=e[n],d=e[t-1];if(t>=2&&(ad))return!1;for(;n=r&&a=40&&e<=43||46==e||47==e||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+h(e):e>=32&&e<=126?h(e):e<=255?"\\x"+pad(hex(e),2):"\\u"+pad(hex(e),4)},codePointToStringUnicode=function(e){return e<=65535?codePointToString(e):"\\u{"+e.toString(16).toUpperCase()+"}"},symbolToCodePoint=function(e){var a=e.length,n=e.charCodeAt(0);return n>=55296&&n<=56319&&a>1?1024*(n-55296)+e.charCodeAt(1)-56320+65536:n},createBMPCharacterClasses=function(e){var a,n,t="",r=0,d=e.length;if(dataIsSingleton(e))return codePointToString(e[0]);for(;r=55296&&n<=56319&&(d.push(a,55296),t.push(55296,n+1)),n>=56320&&n<=57343&&(d.push(a,55296),t.push(55296,56320),r.push(56320,n+1)),n>57343&&(d.push(a,55296),t.push(55296,56320),r.push(56320,57344),n<=65535?d.push(57344,n+1):(d.push(57344,65536),i.push(65536,n+1)))):a>=55296&&a<=56319?(n>=55296&&n<=56319&&t.push(a,n+1),n>=56320&&n<=57343&&(t.push(a,56320),r.push(56320,n+1)),n>57343&&(t.push(a,56320),r.push(56320,57344),n<=65535?d.push(57344,n+1):(d.push(57344,65536),i.push(65536,n+1)))):a>=56320&&a<=57343?(n>=56320&&n<=57343&&r.push(a,n+1),n>57343&&(r.push(a,57344),n<=65535?d.push(57344,n+1):(d.push(57344,65536),i.push(65536,n+1)))):a>57343&&a<=65535?n<=65535?d.push(a,n+1):(d.push(a,65536),i.push(65536,n+1)):i.push(a,n+1),o+=2;return{loneHighSurrogates:t,loneLowSurrogates:r,bmp:d,astral:i}}(e),d=r.loneHighSurrogates,i=r.loneLowSurrogates,o=r.bmp,s=r.astral,u=!dataIsEmpty(d),c=!dataIsEmpty(i),l=surrogateSet(s);return a&&(o=dataAddData(o,d),u=!1,o=dataAddData(o,i),c=!1),dataIsEmpty(o)||t.push(createBMPCharacterClasses(o)),l.length&&t.push(function(e){var a=[];return forEach(e,(function(e){var n=e[0],t=e[1];a.push(createBMPCharacterClasses(n)+createBMPCharacterClasses(t))})),a.join("|")}(l)),u&&t.push(createBMPCharacterClasses(d)+"(?![\\uDC00-\\uDFFF])"),c&&t.push("(?:[^\\uD800-\\uDBFF]|^)"+createBMPCharacterClasses(i)),t.join("|")},regenerate=function(e){return arguments.length>1&&(e=f.call(arguments)),this instanceof regenerate?(this.data=[],e?this.add(e):this):(new regenerate).add(e)};regenerate.version="1.3.3";var m=regenerate.prototype;!function(e,a){var n;for(n in a)g.call(a,n)&&(e[n]=a[n])}(m,{add:function(e){var a=this;return null==e?a:e instanceof regenerate?(a.data=dataAddData(a.data,e.data),a):(arguments.length>1&&(e=f.call(arguments)),isArray(e)?(forEach(e,(function(e){a.add(e)})),a):(a.data=dataAdd(a.data,isNumber(e)?e:symbolToCodePoint(e)),a))},remove:function(e){var a=this;return null==e?a:e instanceof regenerate?(a.data=dataRemoveData(a.data,e.data),a):(arguments.length>1&&(e=f.call(arguments)),isArray(e)?(forEach(e,(function(e){a.remove(e)})),a):(a.data=dataRemove(a.data,isNumber(e)?e:symbolToCodePoint(e)),a))},addRange:function(e,a){return this.data=dataAddRange(this.data,isNumber(e)?e:symbolToCodePoint(e),isNumber(a)?a:symbolToCodePoint(a)),this},removeRange:function(e,a){var n=isNumber(e)?e:symbolToCodePoint(e),t=isNumber(a)?a:symbolToCodePoint(a);return this.data=dataRemoveRange(this.data,n,t),this},intersection:function(e){var a=e instanceof regenerate?dataToArray(e.data):e;return this.data=function(e,a){for(var n,t=0,r=a.length,d=[];t",lt:"<",nbsp:" ",quot:"“"},y=["style","script"],v=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,_=/mailto:/i,x=/\n{2,}$/,E=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,S=/^ *> ?/gm,k=/^ {2,}\n/,w=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,C=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,P=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,D=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,A=/^(?:\n *)*\n/,T=/\r\n?/g,O=/^\[\^(.*)\](:.*)\n/,I=/^\[\^(.*)\]/,M=/\f/g,B=/^\s*?\[(x|\s)\]/,F=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,L=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,N=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,U=/&([a-z]+);/g,H=/^/,W=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,q=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,z=/^\{.*\}$/,V=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,G=/^<([^ >]+@[^ >]+)>/,K=/^<([^ >]+:\/[^ >]+)>/,$=/ *\n+$/,J=/(?:^|\n)( *)$/,X=/-([a-z])?/gi,Q=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Y=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,Z=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,ee=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,ae=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ne=/(\[|\])/g,te=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,re=/\t/g,de=/^ *\| */,ie=/(^ *\||\| *$)/g,oe=/ *$/,se=/^ *:-+: *$/,ue=/^ *:-+ *$/,ce=/^ *-+: *$/,le=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,ge=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,pe=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,fe=/^\\([^0-9A-Za-z\s])/,Re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,he=/(^\n+|\n+$|\s+$)/g,me=/^([ \t]*)/,ye=/\\([^0-9A-Z\s])/gi,ve=/^( *)((?:[*+-]|\d+\.)) +/,be=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,_e=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,xe=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,Ee=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,Se=[E,P,C,F,L,N,H,q,be,_e,Q,Y];function slugify(e){return e.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(e){return ce.test(e)?"right":se.test(e)?"center":ue.test(e)?"left":null}function parseTableRow(e,a,n){var t=n.inTable;n.inTable=!0;var r=a(e.trim(),n);n.inTable=t;var d=[[]];return r.forEach((function(e,a){"tableSeparator"===e.type?0!==a&&a!==r.length-1&&d.push([]):("text"===e.type&&(null==r[a+1]||"tableSeparator"===r[a+1].type)&&(e.content=e.content.replace(oe,"")),d[d.length-1].push(e))})),d}function parseTable(e,a,n){n.inline=!0;var t=parseTableRow(e[1],a,n),r=function parseTableAlign(e){return e.replace(ie,"").split("|").map(parseTableAlignCapture)}(e[2]),d=function parseTableCells(e,a,n){return e.trim().split("\n").map((function(e){return parseTableRow(e,a,n)}))}(e[3],a,n);return n.inline=!1,{align:r,cells:d,header:t,type:"table"}}function getTableStyle(e,a){return null==e.align[a]?{}:{textAlign:e.align[a]}}function parserFor(e){function b(n,t){for(var r=[],d="";n;)for(var i=0;i2?d-2:0),o=2;o1?r=d(a?"span":"div",{key:"outer"},t):1===t.length?"string"==typeof(r=t[0])&&(r=d("span",{key:"outer"},r)):r=d("span",{key:"outer"}),r}function e(e){var a=e.match(v);return a?a.reduce((function(e,a,n){var t=a.indexOf("=");if(-1!==t){var r=function normalizeAttributeKey(e){return-1!==e.indexOf("-")&&null===e.match(W)&&(e=e.replace(X,(function(e,a){return a.toUpperCase()}))),e}(a.slice(0,t)).trim(),d=g()(a.slice(t+1).trim()),o=h[r]||r,s=e[o]=function attributeValueToJSXPropValue(e,a){return"style"===e?a.split(/;\s?/).reduce((function(e,a){var n=a.slice(0,a.indexOf(":")),t=n.replace(/(-[a-z])/g,(function(e){return e[1].toUpperCase()}));return e[t]=a.slice(n.length+1).trim(),e}),{}):"href"===e?sanitizeUrl(a):(a.match(z)&&(a=a.slice(1,a.length-1)),"true"===a||"false"!==a&&a)}(r,d);(N.test(s)||q.test(s))&&(e[o]=i.a.cloneElement(c(s.trim()),{key:n}))}else e[h[a]||a]=!0;return e}),{}):void 0}(n=n||{}).overrides=n.overrides||{},n.slugify=n.slugify||slugify,n.namedCodesToUnicode=n.namedCodesToUnicode?p({},m,n.namedCodesToUnicode):m;var t=n.createElement||i.a.createElement;var r=[],o={},s={blockQuote:{match:blockRegex(E),order:we,parse:function d(e,a,n){return{content:a(e[0].replace(S,""),n)}},react:function e(a,n,t){return d("blockquote",{key:t.key},n(a.content,t))}},breakLine:{match:anyScopeRegex(k),order:we,parse:captureNothing,react:function e(a,n,t){return d("br",{key:t.key})}},breakThematic:{match:blockRegex(w),order:we,parse:captureNothing,react:function e(a,n,t){return d("hr",{key:t.key})}},codeBlock:{match:blockRegex(P),order:ke,parse:function c(e){return{content:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function e(a,n,t){return d("pre",{key:t.key},d("code",{className:a.lang?"lang-"+a.lang:""},a.content))}},codeFenced:{match:blockRegex(C),order:ke,parse:function b(e){return{content:e[3],lang:e[2]||void 0,type:"codeBlock"}}},codeInline:{match:simpleInlineRegex(D),order:Pe,parse:function b(e){return{content:e[2]}},react:function e(a,n,t){return d("code",{key:t.key},a.content)}},footnote:{match:blockRegex(O),order:ke,parse:function b(e){return r.push({footnote:e[2],identifier:e[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(I),order:we,parse:function b(e){return{content:e[1],target:"#"+e[1]}},react:function e(a,n,t){return d("a",{key:t.key,href:sanitizeUrl(a.target)},d("sup",{key:t.key},a.content))}},gfmTask:{match:inlineRegex(B),order:we,parse:function b(e){return{completed:"x"===e[1].toLowerCase()}},react:function e(a,n,t){return d("input",{checked:a.completed,key:t.key,readOnly:!0,type:"checkbox"})}},heading:{match:blockRegex(F),order:we,parse:function e(a,t,r){return{content:parseInline(t,a[2],r),id:n.slugify(a[2]),level:a[1].length}},react:function f(e,a,n){return d("h"+e.level,{id:e.id,key:n.key},a(e.content,n))}},headingSetext:{match:blockRegex(L),order:ke,parse:function d(e,a,n){return{content:parseInline(a,e[1],n),level:"="===e[2]?1:2,type:"heading"}}},htmlBlock:{match:anyScopeRegex(N),order:we,parse:function l(a,n,t){var r=a[3].match(me)[1],d=new RegExp("^"+r,"gm"),i=a[3].replace(d,""),o=function containsBlockSyntax(e){return Se.some((function(a){return a.test(e)}))}(i)?parseBlock:parseInline,s=a[1].toLowerCase(),u=-1!==y.indexOf(s);return{attrs:e(a[2]),content:u?a[3]:o(n,i,t),noInnerParse:u,tag:u?s:a[1]}},react:function e(a,n,t){return d(a.tag,p({key:t.key},a.attrs),a.noInnerParse?a.content:n(a.content,t))}},htmlComment:{match:anyScopeRegex(H),order:we,parse:function a(){return{}},react:renderNothing},htmlSelfClosing:{match:anyScopeRegex(q),order:we,parse:function b(a){return{attrs:e(a[2]||""),tag:a[1]}},react:function e(a,n,t){return d(a.tag,p({},a.attrs,{key:t.key}))}},image:{match:simpleInlineRegex(Ee),order:we,parse:function b(e){return{alt:e[1],target:unescapeUrl(e[2]),title:e[3]}},react:function e(a,n,t){return d("img",{key:t.key,alt:a.alt||void 0,title:a.title||void 0,src:sanitizeUrl(a.target)})}},link:{match:inlineRegex(xe),order:Pe,parse:function d(e,a,n){return{content:parseSimpleInline(a,e[1],n),target:unescapeUrl(e[2]),title:e[3]}},react:function e(a,n,t){return d("a",{key:t.key,href:sanitizeUrl(a.target),title:a.title},n(a.content,t))}},linkAngleBraceStyleDetector:{match:inlineRegex(K),order:ke,parse:function b(e){return{content:[{content:e[1],type:"text"}],target:e[1],type:"link"}}},linkBareUrlDetector:{match:inlineRegex(V),order:ke,parse:function b(e){return{content:[{content:e[1],type:"text"}],target:e[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:inlineRegex(G),order:ke,parse:function d(e){var a=e[1],n=e[1];return _.test(n)||(n="mailto:"+n),{content:[{content:a.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{match:function f(e,a,n){var t=J.exec(n),r=a._list||!a.inline;return t&&r?(e=t[1]+e,_e.exec(e)):null},order:we,parse:function j(e,a,n){var t=e[2],r=t.length>1,d=r?+t:void 0,i=e[0].replace(x,"\n").match(be),o=!1;return{items:i.map((function(e,t){var r=ve.exec(e)[0].length,d=new RegExp("^ {1,"+r+"}","gm"),s=e.replace(d,"").replace(ve,""),u=t===i.length-1,c=-1!==s.indexOf("\n\n")||u&&o;o=c;var l,g=n.inline,p=n._list;n._list=!0,c?(n.inline=!1,l=s.replace($,"\n\n")):(n.inline=!0,l=s.replace($,""));var f=a(l,n);return n.inline=g,n._list=p,f})),ordered:r,start:d}},react:function f(e,a,n){return d(e.ordered?"ol":"ul",{key:n.key,start:e.start},e.items.map((function(e,t){return d("li",{key:t},a(e,n))})))}},newlineCoalescer:{match:blockRegex(A),order:Pe,parse:captureNothing,react:function a(){return"\n"}},paragraph:{match:blockRegex(Y),order:Pe,parse:parseCaptureInline,react:function e(a,n,t){return d("p",{key:t.key},n(a.content,t))}},ref:{match:inlineRegex(Z),order:ke,parse:function b(e){return o[e[1]]={target:e[2],title:e[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(ee),order:ke,parse:function b(e){return{alt:e[1]||void 0,ref:e[2]}},react:function e(a,n,t){return d("img",{key:t.key,alt:a.alt,src:sanitizeUrl(o[a.ref].target),title:o[a.ref].title})}},refLink:{match:inlineRegex(ae),order:ke,parse:function d(e,a,n){return{content:a(e[1],n),fallbackContent:a(e[0].replace(ne,"\\$1"),n),ref:e[2]}},react:function e(a,n,t){return o[a.ref]?d("a",{key:t.key,href:sanitizeUrl(o[a.ref].target),title:o[a.ref].title},n(a.content,t)):d("span",{key:t.key},n(a.fallbackContent,t))}},table:{match:blockRegex(Q),order:we,parse:parseTable,react:function f(e,a,n){return d("table",{key:n.key},d("thead",null,d("tr",null,e.header.map((function(t,r){return d("th",{key:r,style:getTableStyle(e,r)},a(t,n))})))),d("tbody",null,e.cells.map((function(t,r){return d("tr",{key:r},t.map((function(t,r){return d("td",{key:r,style:getTableStyle(e,r)},a(t,n))})))}))))}},tableSeparator:{match:function c(e,a){return a.inTable?de.exec(e):null},order:we,parse:function a(){return{type:"tableSeparator"}},react:function a(){return" | "}},text:{match:anyScopeRegex(Re),order:De,parse:function c(e){return{content:e[0].replace(U,(function(e,a){return n.namedCodesToUnicode[a]?n.namedCodesToUnicode[a]:e}))}},react:function b(e){return e.content}},textBolded:{match:simpleInlineRegex(le),order:Ce,parse:function d(e,a,n){return{content:a(e[2],n)}},react:function e(a,n,t){return d("strong",{key:t.key},n(a.content,t))}},textEmphasized:{match:simpleInlineRegex(ge),order:Pe,parse:function d(e,a,n){return{content:a(e[2],n)}},react:function e(a,n,t){return d("em",{key:t.key},n(a.content,t))}},textEscaped:{match:simpleInlineRegex(fe),order:we,parse:function b(e){return{content:e[1],type:"text"}}},textStrikethroughed:{match:simpleInlineRegex(pe),order:Pe,parse:parseCaptureInline,react:function e(a,n,t){return d("del",{key:t.key},n(a.content,t))}}},u=parserFor(s),R=function reactFor(e){return function b(a,n){if(n=n||{},Array.isArray(a)){for(var t=n.key,r=[],d=!1,i=0;i=0||(r[n]=e[n]);return r}(e,["classes"]);return i.a.createElement("input",CheckboxRenderer_extends({},n,{type:"checkbox",className:a.input}))}CheckboxRenderer.propTypes={classes:s.a.object.isRequired};var ze=Object(Me.a)((function styles(){return{input:{isolate:!1,display:"inline-block",verticalAlign:"middle"}}}))(CheckboxRenderer);function HrRenderer(e){var a=e.classes;return i.a.createElement("hr",{className:a.hr})}HrRenderer.propTypes={classes:s.a.object.isRequired};var Ve=Object(Me.a)((function styles(e){var a=e.space;return{hr:{borderBottom:[[1,e.color.border,"solid"]],marginTop:0,marginBottom:a[2]}}}))(HrRenderer);function DetailsRenderer(e){var a=e.classes,n=e.children;return i.a.createElement("details",{className:a.details},n)}DetailsRenderer.propTypes={classes:s.a.object.isRequired,children:s.a.node.isRequired};var Ge=Object(Me.a)((function styles(e){var a=e.space,n=e.color,t=e.fontSize,r=e.fontFamily;return{details:{marginBottom:a[2],fontFamily:r.base,fontSize:t.base,color:n.base}}}))(DetailsRenderer);function DetailsSummaryRenderer(e){var a=e.classes,n=e.children;return i.a.createElement("summary",{className:a.summary},n)}DetailsSummaryRenderer.propTypes={classes:s.a.object.isRequired,children:s.a.node.isRequired};var Ke=Object(Me.a)((function styles(e){var a=e.space,n=e.color,t=e.fontSize,r=e.fontFamily;return{summary:{marginBottom:a[1],fontFamily:r.base,fontSize:t.base,color:n.base,cursor:"pointer","&:focus":{isolate:!1,outline:[[1,"dotted",n.linkHover]],outlineOffset:2}}}}))(DetailsSummaryRenderer);function TableRenderer(e){var a=e.classes,n=e.children;return i.a.createElement("table",{className:a.table},n)}TableRenderer.propTypes={classes:s.a.object.isRequired,children:s.a.node.isRequired};var $e=Object(Me.a)((function styles(e){return{table:{marginTop:0,marginBottom:e.space[2],borderCollapse:"collapse"}}}))(TableRenderer);function TableHeadRenderer(e){var a=e.classes,n=e.children;return i.a.createElement("thead",{className:a.thead},n)}TableHeadRenderer.propTypes={classes:s.a.object.isRequired,children:s.a.node.isRequired};var Je=Object(Me.a)((function styles(e){return{thead:{borderBottom:[[1,e.color.border,"solid"]]}}}))(TableHeadRenderer);function TableBodyRenderer(e){var a=e.children;return i.a.createElement("tbody",null,a)}TableBodyRenderer.propTypes={children:s.a.node.isRequired};var Xe=TableBodyRenderer;function TableRowRenderer(e){var a=e.children;return i.a.createElement("tr",null,a)}TableRowRenderer.propTypes={children:s.a.node.isRequired};var Qe=TableRowRenderer;function TableCellRenderer(e){var a=e.classes,n=e.header,t=e.children;return n?i.a.createElement("th",{className:a.th},t):i.a.createElement("td",{className:a.td},t)}TableCellRenderer.propTypes={classes:s.a.object.isRequired,header:s.a.bool,children:s.a.node.isRequired},TableCellRenderer.defaultProps={header:!1};var Ye=Object(Me.a)((function styles(e){var a=e.space,n=e.color,t=e.fontSize,r=e.fontFamily;return{td:{padding:[[a[0],a[2],a[0],0]],fontFamily:r.base,fontSize:t.base,color:n.base,lineHeight:1.5},th:{composes:"$td",fontWeight:"bold"}}}))(TableCellRenderer),Ze=function Pre(e){return Object(r.isValidElement)(e.children)?i.a.createElement(We,e.children.props):i.a.createElement(We,e)};Ze.propTypes={children:s.a.node};var ea={a:{component:Te.a},h1:{component:Fe,props:{level:1}},h2:{component:Fe,props:{level:2}},h3:{component:Fe,props:{level:3}},h4:{component:Fe,props:{level:4}},h5:{component:Fe,props:{level:5}},h6:{component:Fe,props:{level:6}},p:{component:Ie.a,props:{semantic:"p"}},em:{component:Oe.a,props:{semantic:"em"}},strong:{component:Oe.a,props:{semantic:"strong"}},ul:{component:Ne},ol:{component:Ne,props:{ordered:!0}},blockquote:{component:Ue},code:{component:qe.a},pre:{component:Ze},input:{component:ze},hr:{component:Ve},table:{component:$e},thead:{component:Je},th:{component:Ye,props:{header:!0}},tbody:{component:Xe},tr:{component:Qe},td:{component:Ye},details:{component:Ge},summary:{component:Ke}},aa=Object.assign({},ea,{p:{component:Oe.a}});function Markdown_Markdown(e){var a=e.text,n=e.inline?aa:ea;return compiler(Ae()(a),{overrides:n,forceBlock:!0})}Markdown_Markdown.propTypes={text:s.a.string.isRequired,inline:s.a.bool};var na=Markdown_Markdown;t.d(n,"a",(function(){return na}))},function(e,a,n){(function(e,n){var t=200,r="__lodash_hash_undefined__",d=800,i=16,o=9007199254740991,s="[object Arguments]",u="[object AsyncFunction]",c="[object Function]",l="[object GeneratorFunction]",g="[object Null]",p="[object Object]",f="[object Proxy]",R="[object Undefined]",h=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[s]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[c]=y["[object Map]"]=y["[object Number]"]=y[p]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var v="object"==typeof e&&e&&e.Object===Object&&e,b="object"==typeof self&&self&&self.Object===Object&&self,_=v||b||Function("return this")(),x=a&&!a.nodeType&&a,E=x&&"object"==typeof n&&n&&!n.nodeType&&n,S=E&&E.exports===x,k=S&&v.process,w=function(){try{var e=E&&E.require&&E.require("util").types;return e||k&&k.binding&&k.binding("util")}catch(e){}}(),C=w&&w.isTypedArray;function apply(e,a,n){switch(n.length){case 0:return e.call(a);case 1:return e.call(a,n[0]);case 2:return e.call(a,n[0],n[1]);case 3:return e.call(a,n[0],n[1],n[2])}return e.apply(a,n)}var P,D=Array.prototype,j=Function.prototype,A=Object.prototype,T=_["__core-js_shared__"],O=j.toString,I=A.hasOwnProperty,M=(P=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",B=A.toString,F=O.call(Object),L=RegExp("^"+O.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=S?_.Buffer:void 0,U=_.Symbol,H=_.Uint8Array,W=N?N.allocUnsafe:void 0,q=function overArg(e,a){return function(n){return e(a(n))}}(Object.getPrototypeOf,Object),z=Object.create,V=A.propertyIsEnumerable,G=D.splice,K=U?U.toStringTag:void 0,$=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),J=N?N.isBuffer:void 0,X=Math.max,Q=Date.now,Y=getNative(_,"Map"),Z=getNative(Object,"create"),ee=function(){function object(){}return function(e){if(!isObject(e))return{};if(z)return z(e);object.prototype=e;var a=new object;return object.prototype=void 0,a}}();function Hash(e){var a=-1,n=null==e?0:e.length;for(this.clear();++a-1},ListCache.prototype.set=function listCacheSet(e,a){var n=this.__data__,t=assocIndexOf(n,e);return t<0?(++this.size,n.push([e,a])):n[t][1]=a,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Y||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){var a=getMapData(this,e).delete(e);return this.size-=a?1:0,a},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,a){var n=getMapData(this,e),t=n.size;return n.set(e,a),this.size+=n.size==t?0:1,this},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(e){var a=this.__data__,n=a.delete(e);return this.size=a.size,n},Stack.prototype.get=function stackGet(e){return this.__data__.get(e)},Stack.prototype.has=function stackHas(e){return this.__data__.has(e)},Stack.prototype.set=function stackSet(e,a){var n=this.__data__;if(n instanceof ListCache){var r=n.__data__;if(!Y||r.length-1&&e%1==0&&e0){if(++a>=d)return arguments[0]}else a=0;return e.apply(void 0,arguments)}}($?function(e,a){return $(e,"toString",{configurable:!0,enumerable:!1,value:(n=a,function(){return n}),writable:!0});var n}:identity);function eq(e,a){return e===a||e!=e&&a!=a}var te=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&I.call(e,"callee")&&!V.call(e,"callee")},re=Array.isArray;function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var de=J||function stubFalse(){return!1};function isFunction(e){if(!isObject(e))return!1;var a=baseGetTag(e);return a==c||a==l||a==u||a==f}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function isObject(e){var a=typeof e;return null!=e&&("object"==a||"function"==a)}function isObjectLike(e){return null!=e&&"object"==typeof e}var ie=C?function baseUnary(e){return function(a){return e(a)}}(C):function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!y[baseGetTag(e)]};function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var oe=function createAssigner(e){return baseRest((function(a,n){var t=-1,r=n.length,d=r>1?n[r-1]:void 0,i=r>2?n[2]:void 0;for(d=e.length>3&&"function"==typeof d?(r--,d):void 0,i&&function isIterateeCall(e,a,n){if(!isObject(n))return!1;var t=typeof a;if("number"==t?isArrayLike(n)&&isIndex(a,n.length):"string"==t&&a in n)return eq(n[a],e);return!1}(n[0],n[1],i)&&(d=r<3?void 0:d,r=1),a=Object(a);++t1?arguments[1]:void 0)}})},function(e,a,n){"use strict";n.d(a,"c",(function(){return unquote})),n.d(a,"a",(function(){return getType})),n.d(a,"b",(function(){return showSpaces}));n(5),n(7),n(42);function unquote(e){return e&&e.replace(/^['"]|['"]$/g,"")}function getType(e){return e.flowType?"union"===e.flowType.name&&e.flowType.elements.every((function(e){return"literal"===e.name}))?Object.assign({},e.flowType,{name:"enum",value:e.flowType.elements}):e.flowType:e.type}function showSpaces(e){return e&&e.replace(/^\s|\s$/g,"␣")}},function(e,a,n){(function(a){var check=function(e){return e&&e.Math==Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof a&&a)||Function("return this")()}).call(this,n(14))},function(e,a){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,a,n){var t=n(13),r=n(106).f,d=n(41),i=n(50),o=n(108),s=n(145),u=n(148);e.exports=function(e,a){var n,c,l,g,p,f=e.target,R=e.global,h=e.stat;if(n=R?t:h?t[f]||o(f,{}):(t[f]||{}).prototype)for(c in a){if(g=a[c],l=e.noTargetGet?(p=r(n,c))&&p.value:n[c],!u(R?c:f+(h?".":"#")+c,e.forced)&&void 0!==l){if(typeof g==typeof l)continue;s(g,l)}(e.sham||l&&l.sham)&&d(g,"sham",!0),i(n,c,g,e)}}},function(e,a){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,a,n){var t=n(16);e.exports=function(e){if(!t(e))throw TypeError(String(e)+" is not an object");return e}},function(e,a,n){var t=n(13),r=n(61),d=n(75),i=n(156),o=t.Symbol,s=r("wks");e.exports=function(e){return s[e]||(s[e]=i&&o[e]||(i?o:d)("Symbol."+e))}},function(e,a,n){var t=n(22),r=n(140),d=n(17),i=n(74),o=Object.defineProperty;a.f=t?o:function defineProperty(e,a,n){if(d(e),a=i(a,!0),d(n),r)try{return o(e,a,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[a]=n.value),e}},function(e,a,n){"use strict";var t=n(15),r=n(118);t({target:"String",proto:!0,forced:n(119)("small")},{small:function small(){return r(this,"small","","")}})},function(e,a,n){var t=n(159),r="object"==typeof self&&self&&self.Object===Object&&self,d=t||r||Function("return this")();e.exports=d},function(e,a,n){var t=n(10);e.exports=!t((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,a){var n=Array.isArray;e.exports=n},function(e,a,n){"use strict";function requireInRuntime(e,a){if(!(a in e))throw new Error("import or require() statements can be added only by editing a Markdown example file: "+a);return e[a]}n.r(a),n.d(a,"default",(function(){return requireInRuntime}))},function(e,a,n){"use strict";function evalInContext(e,a,n){return new Function("require","state","setState",e+"\n{"+n+"}").bind(null,a)}n.r(a),n.d(a,"default",(function(){return evalInContext}))},function(e,a){var n={}.hasOwnProperty;e.exports=function(e,a){return n.call(e,a)}},function(e,a){e.exports=function isObject(e){var a=typeof e;return null!=e&&("object"==a||"function"==a)}},function(e,a){e.exports=function initMapObjectEvents(e,a,n){var t=n.useEvents,r=n.interactive,d=n.mapEvents;if(t&&r&&a)for(var i in d)d.hasOwnProperty(i)&&function(){var n=a[i];n&&"function"==typeof n&&e.addEventListener(i,(function(e){n.apply(null,arguments)}))}()}},function(e,a,n){"use strict";n(7),n(38),n(20);var t=n(1),r=n.n(t),d=n(2),i=n.n(d),o=n(4),s=n(6);function _extends(){return(_extends=Object.assign||function(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,["classes","semantic","size","color","underlined","children"]),l=t||"span",g=Object(s.a)(n.text,n[d+"Size"],n[i+"Color"],((a={})[n[t]]=t,a[n.isUnderlined]=o,a));return r.a.createElement(l,_extends({},c,{className:g}),u)}TextRenderer.propTypes={classes:i.a.object.isRequired,semantic:i.a.oneOf(["em","strong"]),size:i.a.oneOf(["inherit","small","base","text"]),color:i.a.oneOf(["base","light"]),underlined:i.a.bool,children:i.a.node.isRequired},TextRenderer.defaultProps={size:"inherit",color:"base",underlined:!1};var u=Object(o.a)((function styles(e){var a=e.fontFamily,n=e.fontSize,t=e.color;return{text:{fontFamily:a.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:n.small},baseSize:{fontSize:n.base},textSize:{fontSize:n.text},baseColor:{color:t.base},lightColor:{color:t.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",t.lightest]]}}}))(TextRenderer);n.d(a,"a",(function(){return u}))},function(e,a){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,a,n){"use strict";var t=n(15),r=n(10),d=n(116),i=n(16),o=n(52),s=n(51),u=n(265),c=n(157),l=n(117),g=n(18),p=n(158),f=g("isConcatSpreadable"),R=p>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),h=l("concat"),isConcatSpreadable=function(e){if(!i(e))return!1;var a=e[f];return void 0!==a?!!a:d(e)};t({target:"Array",proto:!0,forced:!R||!h},{concat:function concat(e){var a,n,t,r,d,i=o(this),l=c(i,0),g=0;for(a=-1,t=arguments.length;a9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(l,g++,d)}return l.length=g,l}})},function(e,a,n){"use strict";var t=n(15),r=n(94).filter;t({target:"Array",proto:!0,forced:!n(117)("filter")},{filter:function filter(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,a,n){"use strict";e.exports=function(){}},function(e,a){e.exports=function isObjectLike(e){return null!=e&&"object"==typeof e}},function(e,a,n){var t=n(123),r=n(126);e.exports=function isArrayLike(e){return null!=e&&r(e.length)&&!t(e)}},function(e,a,n){"use strict";var t=n(15),r=n(13),d=n(142),i=n(22),o=n(156),s=n(10),u=n(26),c=n(116),l=n(16),g=n(17),p=n(52),f=n(49),R=n(74),h=n(72),m=n(333),y=n(79),v=n(77),b=n(336),_=n(111),x=n(106),E=n(19),S=n(107),k=n(41),w=n(50),C=n(61),P=n(109),D=n(62),j=n(75),A=n(18),T=n(171),O=n(337),I=n(338),M=n(144),B=n(94).forEach,F=P("hidden"),L=A("toPrimitive"),N=M.set,U=M.getterFor("Symbol"),H=Object.prototype,W=r.Symbol,q=r.JSON,z=q&&q.stringify,V=x.f,G=E.f,K=b.f,$=S.f,J=C("symbols"),X=C("op-symbols"),Q=C("string-to-symbol-registry"),Y=C("symbol-to-string-registry"),Z=C("wks"),ee=r.QObject,ae=!ee||!ee.prototype||!ee.prototype.findChild,ne=i&&s((function(){return 7!=m(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,a,n){var t=V(H,a);t&&delete H[a],G(e,a,n),t&&e!==H&&G(H,a,t)}:G,wrap=function(e,a){var n=J[e]=m(W.prototype);return N(n,{type:"Symbol",tag:e,description:a}),i||(n.description=a),n},te=o&&"symbol"==typeof W.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},re=function defineProperty(e,a,n){e===H&&re(X,a,n),g(e);var t=R(a,!0);return g(n),u(J,t)?(n.enumerable?(u(e,F)&&e[F][t]&&(e[F][t]=!1),n=m(n,{enumerable:h(0,!1)})):(u(e,F)||G(e,F,h(1,{})),e[F][t]=!0),ne(e,t,n)):G(e,t,n)},de=function defineProperties(e,a){g(e);var n=f(a),t=y(n).concat(ue(n));return B(t,(function(a){i&&!ie.call(n,a)||re(e,a,n[a])})),e},ie=function propertyIsEnumerable(e){var a=R(e,!0),n=$.call(this,a);return!(this===H&&u(J,a)&&!u(X,a))&&(!(n||!u(this,a)||!u(J,a)||u(this,F)&&this[F][a])||n)},oe=function getOwnPropertyDescriptor(e,a){var n=f(e),t=R(a,!0);if(n!==H||!u(J,t)||u(X,t)){var r=V(n,t);return!r||!u(J,t)||u(n,F)&&n[F][t]||(r.enumerable=!0),r}},se=function getOwnPropertyNames(e){var a=K(f(e)),n=[];return B(a,(function(e){u(J,e)||u(D,e)||n.push(e)})),n},ue=function getOwnPropertySymbols(e){var a=e===H,n=K(a?X:f(e)),t=[];return B(n,(function(e){!u(J,e)||a&&!u(H,e)||t.push(J[e])})),t};o||(w((W=function Symbol(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,a=j(e),setter=function(e){this===H&&setter.call(X,e),u(this,F)&&u(this[F],a)&&(this[F][a]=!1),ne(this,a,h(1,e))};return i&&ae&&ne(H,a,{configurable:!0,set:setter}),wrap(a,e)}).prototype,"toString",(function toString(){return U(this).tag})),S.f=ie,E.f=re,x.f=oe,v.f=b.f=se,_.f=ue,i&&(G(W.prototype,"description",{configurable:!0,get:function description(){return U(this).description}}),d||w(H,"propertyIsEnumerable",ie,{unsafe:!0})),T.f=function(e){return wrap(A(e),e)}),t({global:!0,wrap:!0,forced:!o,sham:!o},{Symbol:W}),B(y(Z),(function(e){O(e)})),t({target:"Symbol",stat:!0,forced:!o},{for:function(e){var a=String(e);if(u(Q,a))return Q[a];var n=W(a);return Q[a]=n,Y[n]=a,n},keyFor:function keyFor(e){if(!te(e))throw TypeError(e+" is not a symbol");if(u(Y,e))return Y[e]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),t({target:"Object",stat:!0,forced:!o,sham:!i},{create:function create(e,a){return void 0===a?m(e):de(m(e),a)},defineProperty:re,defineProperties:de,getOwnPropertyDescriptor:oe}),t({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:se,getOwnPropertySymbols:ue}),t({target:"Object",stat:!0,forced:s((function(){_.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(e){return _.f(p(e))}}),q&&t({target:"JSON",stat:!0,forced:!o||s((function(){var e=W();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))}))},{stringify:function stringify(e){for(var a,n,t=[e],r=1;arguments.length>r;)t.push(arguments[r++]);if(n=a=t[1],(l(a)||void 0!==e)&&!te(e))return c(a)||(a=function(e,a){if("function"==typeof n&&(a=n.call(this,e,a)),!te(a))return a}),t[1]=a,z.apply(q,t)}}),W.prototype[L]||k(W.prototype,L,W.prototype.valueOf),I(W,"Symbol"),D[F]=!0},function(e,a,n){"use strict";var t=n(15),r=n(22),d=n(13),i=n(26),o=n(16),s=n(19).f,u=n(145),c=d.Symbol;if(r&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var l={},g=function Symbol(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),a=this instanceof g?new c(e):void 0===e?c():c(e);return""===e&&(l[a]=!0),a};u(g,c);var p=g.prototype=c.prototype;p.constructor=g;var f=p.toString,R="Symbol(test)"==String(c("test")),h=/^Symbol\((.*)\)[^)]+$/;s(p,"description",{configurable:!0,get:function description(){var e=o(this)?this.valueOf():this,a=f.call(e);if(i(l,e))return"";var n=R?a.slice(7,-1):a.replace(h,"$1");return""===n?void 0:n}}),t({global:!0,forced:!0},{Symbol:g})}},function(e,a,n){var t=n(15),r=n(52),d=n(79);t({target:"Object",stat:!0,forced:n(10)((function(){d(1)}))},{keys:function keys(e){return d(r(e))}})},function(e,a,n){"use strict";n.r(a);var t=n(1),r=n.n(t),d=n(139),i=n.n(d),o={VERSION:"v3/3.0",interactive:!1,includeUI:!1,includePlaces:!1},s=n(217),u=n.n(s);var src=e=>{const a=(e=>u()(o,e))(e||{}),{VERSION:n,version:t,interactive:r,includeUI:d,includePlaces:s}=a,c=t||n,l=((e=o.VERSION)=>[`https://js.api.here.com/${e}/mapsjs-service.js`,`https://js.api.here.com/${e}/mapsjs-ui.js`,`https://js.api.here.com/${e}/mapsjs-mapevents.js`,`https://js.api.here.com/${e}/mapsjs-places.js`])(c);!r&&l.splice(2,1),!d&&l.splice(1,1),!s&&l.splice(3,1);const g=`https://js.api.here.com/${c}/mapsjs-core.js`;return i()(g).then((function(){if(d){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",`https://js.api.here.com/${c}/mapsjs-ui.css`),document.getElementsByTagName("head")[0].append(e)}return i()(l)})).catch(e=>{console.log(e)})},c={normal:["xbase","xbasenight","base","basenight","map","mapnight","traffic","trafficnight","transit","panorama","panoramanight","labels","metaInfo"],satellite:["xbase","base","map","traffic","panorama","labels"],terrain:["xbase","base","map","traffic","panorama","labels"],incidents:!0,venues:!0},l=function noop(){},g={};["pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointercancel","dragstart","drag","dragend","tab","dbltap"].map((function(e){return g[e]=l}));var p={VERSION:"v3/3.0",mapTypes:c,mapEvents:g,MAP_TYPE:"normal.map",mapOptions:{zoom:8,center:{lat:6.5243793,lng:3.3792057}},interactive:!1,includeUI:!1,includePlaces:!1,useEvents:!1,containerId:"HERE_MAP_CONTAINER",defaultClassName:"here-map-container"},f=n(9),R=n.n(f),h=function initializer(e){var a=function optionMerger(e){return R()(p,e)}(e||{}),n=a.VERSION,t=a.version,r=a.interactive,d=a.includeUI,i=a.includePlaces;return src({includeUI:d,includePlaces:i,interactive:r,version:t||n}).then((function(){return a}))},libs_initPlatform=function(e){var a=e.app_id,n=e.app_code;if(!a||!n)throw new Error("Options must include appId and appCode");if("undefined"==typeof H||!H.service)throw new Error("Here Map JavaScripts is not loaded.");return new H.service.Platform(e)};function _slicedToArray(e,a){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,a){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],t=!0,r=!1,d=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done)&&(n.push(i.value),!a||n.length!==a);t=!0);}catch(e){r=!0,d=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw d}}return n}(e,a)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m=function Platform(e){var a=_slicedToArray(Object(t.useState)({platform:{},options:{}}),2),n=a[0],d=a[1];Object(t.useEffect)((function(){h(e).then((function(e){var a=libs_initPlatform(e);d({platform:a,options:e})}))}),[n.platform.A]);var i=n.platform,o=n.options;return"api.here.com"==i.A&&o.app_code?r.a.Children.map(e.children,(function(e){return r.a.cloneElement(e,{platform:i,options:o})})):null},y=n(3),v=n.n(y),b=n(68),_=n.n(b),validateMapType=function(e,a){var n=a.split("."),t=e[n[0]];if(!(Array.isArray(t)&&t.includes(n[1]))&&!(!0===t))throw new Error("mapType Should be one from https://developer.here.com/documentation/maps/topics/map-types.html in dot notation")},initMap=function(e,a,n,t,r){validateMapType(t,r);var d=e.createDefaultLayers();return new H.Map(a,_.a.get(d,r),n)},initInteraction=function(e,a,n,t){var r=a?new H.mapevents.Behavior(new H.mapevents.MapEvents(e)):null;if(n&&a)for(var d in t)t.hasOwnProperty(d)&&function(){var a=t[d];a&&"function"==typeof a&&e.addEventListener(d,(function(e){a.apply(null,arguments)}))}();return r},initDefaultUI=function(e,a,n,t){if(!n)throw new Error("includeUI must be set to true to initialize default UI");return H.ui.UI.createDefault(a,e.createDefaultLayers(),t)},initInteractionStyles=function(){var e=document.createElement("style"),a=".grab = {cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}.grabbing{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}";e.type="text/css",e.styleSheet?e.styleSheet.cssText=a:e.appendChild(document.createTextNode(a)),(document.head||document.getElementsByTagName("head")[0]).appendChild(e)};function ownKeys(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,t)}return n}function _objectSpread(e){for(var a=1;a]*>)/g,R=/\$([$&'`]|\d\d?)/g;t("replace",2,(function(e,a,n){return[function replace(n,t){var r=s(this),d=null==n?void 0:n[e];return void 0!==d?d.call(n,r,t):a.call(String(r),n,t)},function(e,t){var d=n(a,e,this,t);if(d.done)return d.value;var s=r(e),p=String(this),f="function"==typeof t;f||(t=String(t));var R=s.global;if(R){var h=s.unicode;s.lastIndex=0}for(var m=[];;){var y=c(s,p);if(null===y)break;if(m.push(y),!R)break;""===String(y[0])&&(s.lastIndex=u(p,i(s.lastIndex),h))}for(var v,b="",_=0,x=0;x=_&&(b+=p.slice(_,S)+D,_=S+E.length)}return b+p.slice(_)}];function getSubstitution(e,n,t,r,i,o){var s=t+e.length,u=r.length,c=R;return void 0!==i&&(i=d(i),c=f),a.call(o,c,(function(a,d){var o;switch(d.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,t);case"'":return n.slice(s);case"<":o=i[d.slice(1,-1)];break;default:var c=+d;if(0===c)return a;if(c>u){var l=p(c/10);return 0===l?a:l<=u?void 0===r[l-1]?d.charAt(1):r[l-1]+d.charAt(1):a}o=r[c-1]}return void 0===o?"":o}))}}))},function(e,a,n){var t=n(281),r=n(286);e.exports=function getNative(e,a){var n=r(e,a);return t(n)?n:void 0}},function(e,a,n){var t=n(87),r=n(282),d=n(283),i="[object Null]",o="[object Undefined]",s=t?t.toStringTag:void 0;e.exports=function baseGetTag(e){return null==e?void 0===e?o:i:s&&s in Object(e)?r(e):d(e)}},function(e,a){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],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}}),e.webpackPolyfill=1),e}},function(e,a,n){"use strict";n.r(a),n.d(a,"Node",(function(){return J})),n.d(a,"Parser",(function(){return O})),n.d(a,"Position",(function(){return w})),n.d(a,"SourceLocation",(function(){return C})),n.d(a,"TokContext",(function(){return Q})),n.d(a,"Token",(function(){return ce})),n.d(a,"TokenType",(function(){return p})),n.d(a,"defaultOptions",(function(){return P})),n.d(a,"getLineInfo",(function(){return getLineInfo})),n.d(a,"isIdentifierChar",(function(){return isIdentifierChar})),n.d(a,"isIdentifierStart",(function(){return isIdentifierStart})),n.d(a,"isNewLine",(function(){return isNewLine})),n.d(a,"keywordTypes",(function(){return h})),n.d(a,"lineBreak",(function(){return y})),n.d(a,"lineBreakG",(function(){return v})),n.d(a,"nonASCIIwhitespace",(function(){return b})),n.d(a,"parse",(function(){return parse})),n.d(a,"parseExpressionAt",(function(){return parseExpressionAt})),n.d(a,"tokContexts",(function(){return Y})),n.d(a,"tokTypes",(function(){return m})),n.d(a,"tokenizer",(function(){return tokenizer})),n.d(a,"version",(function(){return pe}));var t={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"},r="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",d={5:r,"5module":r+" export import",6:r+" const class extends export import super"},i=/^in(stanceof)?$/,o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",u=new RegExp("["+o+"]"),c=new RegExp("["+o+s+"]");o=s=null;var l=[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,155,22,13,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,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,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,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,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,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,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],g=[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,232,6,3,6,4,0,29,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,1014,0,2,54,8,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,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(e,a){for(var n=65536,t=0;te)return!1;if((n+=a[t+1])>=e)return!0}}function isIdentifierStart(e,a){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==a&&isInAstralSet(e,l)))}function isIdentifierChar(e,a){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==a&&(isInAstralSet(e,l)||isInAstralSet(e,g)))))}var p=function TokenType(e,a){void 0===a&&(a={}),this.label=e,this.keyword=a.keyword,this.beforeExpr=!!a.beforeExpr,this.startsExpr=!!a.startsExpr,this.isLoop=!!a.isLoop,this.isAssign=!!a.isAssign,this.prefix=!!a.prefix,this.postfix=!!a.postfix,this.binop=a.binop||null,this.updateContext=null};function binop(e,a){return new p(e,{beforeExpr:!0,binop:a})}var f={beforeExpr:!0},R={startsExpr:!0},h={};function kw(e,a){return void 0===a&&(a={}),a.keyword=e,h[e]=new p(e,a)}var m={num:new p("num",R),regexp:new p("regexp",R),string:new p("string",R),name:new p("name",R),eof:new p("eof"),bracketL:new p("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new p("]"),braceL:new p("{",{beforeExpr:!0,startsExpr:!0}),braceR:new p("}"),parenL:new p("(",{beforeExpr:!0,startsExpr:!0}),parenR:new p(")"),comma:new p(",",f),semi:new p(";",f),colon:new p(":",f),dot:new p("."),question:new p("?",f),arrow:new p("=>",f),template:new p("template"),invalidTemplate:new p("invalidTemplate"),ellipsis:new p("...",f),backQuote:new p("`",R),dollarBraceL:new p("${",{beforeExpr:!0,startsExpr:!0}),eq:new p("=",{beforeExpr:!0,isAssign:!0}),assign:new p("_=",{beforeExpr:!0,isAssign:!0}),incDec:new p("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new p("!/~",{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 p("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new p("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",f),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",f),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",f),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",R),_if:kw("if"),_return:kw("return",f),_switch:kw("switch"),_throw:kw("throw",f),_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",R),_super:kw("super",R),_class:kw("class",R),_extends:kw("extends",f),_export:kw("export"),_import:kw("import",R),_null:kw("null",R),_true:kw("true",R),_false:kw("false",R),_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/,v=new RegExp(y.source,"g");function isNewLine(e,a){return 10===e||13===e||!a&&(8232===e||8233===e)}var b=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,_=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,x=Object.prototype,E=x.hasOwnProperty,S=x.toString;function has(e,a){return E.call(e,a)}var k=Array.isArray||function(e){return"[object Array]"===S.call(e)};function wordsRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var w=function Position(e,a){this.line=e,this.column=a};w.prototype.offset=function offset(e){return new w(this.line,this.column+e)};var C=function SourceLocation(e,a,n){this.start=a,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function getLineInfo(e,a){for(var n=1,t=0;;){v.lastIndex=t;var r=v.exec(e);if(!(r&&r.index=2015&&(a.ecmaVersion-=2009),null==a.allowReserved&&(a.allowReserved=a.ecmaVersion<5),k(a.onToken)){var t=a.onToken;a.onToken=function(e){return t.push(e)}}return k(a.onComment)&&(a.onComment=function pushComment(e,a){return function(n,t,r,d,i,o){var s={type:n?"Block":"Line",value:t,start:r,end:d};e.locations&&(s.loc=new C(this,i,o)),e.ranges&&(s.range=[r,d]),a.push(s)}}(a,a.onComment)),a}var D=2,j=1|D,A=4,T=8;function functionFlags(e,a){return D|(e?A:0)|(a?T:0)}var O=function Parser(e,a,n){this.options=e=getOptions(e),this.sourceFile=e.sourceFile,this.keywords=wordsRegexp(d[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";if(!0!==e.allowReserved){for(var i=e.ecmaVersion;!(r=t[i]);i--);"module"===e.sourceType&&(r+=" await")}this.reservedWords=wordsRegexp(r);var o=(r?r+" ":"")+t.strict;this.reservedWordsStrict=wordsRegexp(o),this.reservedWordsStrictBind=wordsRegexp(o+" "+t.strictBind),this.input=String(a),this.containsEsc=!1,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=m.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"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},I={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};O.prototype.parse=function parse(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},I.inFunction.get=function(){return(this.currentVarScope().flags&D)>0},I.inGenerator.get=function(){return(this.currentVarScope().flags&T)>0},I.inAsync.get=function(){return(this.currentVarScope().flags&A)>0},I.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},I.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},I.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},O.prototype.inNonArrowFunction=function inNonArrowFunction(){return(this.currentThisScope().flags&D)>0},O.extend=function extend(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];for(var n=this,t=0;t-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=a?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},M.checkExpressionErrors=function(e,a){if(!e)return!1;var n=e.shorthandAssign,t=e.doubleProto;if(!a)return n>=0||t>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),t>=0&&this.raiseRecoverable(t,"Redefinition of __proto__ property")},M.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(d,!1,!e);case m._class:return e&&this.unexpected(),this.parseClass(d,!0);case m._if:return this.parseIfStatement(d);case m._return:return this.parseReturnStatement(d);case m._switch:return this.parseSwitchStatement(d);case m._throw:return this.parseThrowStatement(d);case m._try:return this.parseTryStatement(d);case m._const:case m._var:return t=t||this.value,e&&"var"!==t&&this.unexpected(),this.parseVarStatement(d,t);case m._while:return this.parseWhileStatement(d);case m._with:return this.parseWithStatement(d);case m.braceL:return this.parseBlock(!0,d);case m.semi:return this.parseEmptyStatement(d);case m._export:case m._import:if(this.options.ecmaVersion>10&&r===m._import){_.lastIndex=this.pos;var i=_.exec(this.input),o=this.pos+i[0].length;if(40===this.input.charCodeAt(o))return this.parseExpressionStatement(d,this.parseExpression())}return this.options.allowImportExportEverywhere||(a||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'")),r===m._import?this.parseImport(d):this.parseExport(d,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(d,!0,!e);var s=this.value,u=this.parseExpression();return r===m.name&&"Identifier"===u.type&&this.eat(m.colon)?this.parseLabeledStatement(d,s,u,e):this.parseExpressionStatement(d,u)}},F.parseBreakContinueStatement=function(e,a){var n="break"===a;this.next(),this.eat(m.semi)||this.insertSemicolon()?e.label=null:this.type!==m.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var t=0;t=6?this.eat(m.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},F.parseForStatement=function(e){this.next();var a=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(L),this.enterScope(0),this.expect(m.parenL),this.type===m.semi)return a>-1&&this.unexpected(a),this.parseFor(e,null);var n=this.isLet();if(this.type===m._var||this.type===m._const||n){var t=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(t,!0,r),this.finishNode(t,"VariableDeclaration"),(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===m._in?a>-1&&this.unexpected(a):e.await=a>-1),this.parseForIn(e,t)):(a>-1&&this.unexpected(a),this.parseFor(e,t))}var d=new DestructuringErrors,i=this.parseExpression(!0,d);return this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===m._in?a>-1&&this.unexpected(a):e.await=a>-1),this.toAssignable(i,!1,d),this.checkLVal(i),this.parseForIn(e,i)):(this.checkExpressionErrors(d,!0),a>-1&&this.unexpected(a),this.parseFor(e,i))},F.parseFunctionStatement=function(e,a,n){return this.next(),this.parseFunction(e,H|(n?0:W),!1,a)},F.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},F.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(m.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},F.parseSwitchStatement=function(e){var a;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(m.braceL),this.labels.push(N),this.enterScope(0);for(var n=!1;this.type!==m.braceR;)if(this.type===m._case||this.type===m._default){var t=this.type===m._case;a&&this.finishNode(a,"SwitchCase"),e.cases.push(a=this.startNode()),a.consequent=[],this.next(),t?a.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,a.test=null),this.expect(m.colon)}else a||this.unexpected(),a.consequent.push(this.parseStatement(null));return this.exitScope(),a&&this.finishNode(a,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},F.parseThrowStatement=function(e){return this.next(),y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var U=[];F.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===m._catch){var a=this.startNode();if(this.next(),this.eat(m.parenL)){a.param=this.parseBindingAtom();var n="Identifier"===a.param.type;this.enterScope(n?32:0),this.checkLVal(a.param,n?4:2),this.expect(m.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),a.param=null,this.enterScope(0);a.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(a,"CatchClause")}return e.finalizer=this.eat(m._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},F.parseVarStatement=function(e,a){return this.next(),this.parseVar(e,!1,a),this.semicolon(),this.finishNode(e,"VariableDeclaration")},F.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(L),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},F.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},F.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},F.parseLabeledStatement=function(e,a,n,t){for(var r=0,d=this.labels;r=0;o--){var s=this.labels[o];if(s.statementStart!==e.start)break;s.statementStart=this.start,s.kind=i}return this.labels.push({name:a,kind:i,statementStart:this.start}),e.body=this.parseStatement(t?-1===t.indexOf("label")?t+"label":t:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},F.parseExpressionStatement=function(e,a){return e.expression=a,this.semicolon(),this.finishNode(e,"ExpressionStatement")},F.parseBlock=function(e,a){for(void 0===e&&(e=!0),void 0===a&&(a=this.startNode()),a.body=[],this.expect(m.braceL),e&&this.enterScope(0);!this.eat(m.braceR);){var n=this.parseStatement(null);a.body.push(n)}return e&&this.exitScope(),this.finishNode(a,"BlockStatement")},F.parseFor=function(e,a){return e.init=a,this.expect(m.semi),e.test=this.type===m.semi?null:this.parseExpression(),this.expect(m.semi),e.update=this.type===m.parenR?null:this.parseExpression(),this.expect(m.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},F.parseForIn=function(e,a){var n=this.type===m._in;return this.next(),"VariableDeclaration"===a.type&&null!=a.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==a.kind||"Identifier"!==a.declarations[0].id.type)?this.raise(a.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===a.type&&this.raise(a.start,"Invalid left-hand side in for-loop"),e.left=a,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(m.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},F.parseVar=function(e,a,n){for(e.declarations=[],e.kind=n;;){var t=this.startNode();if(this.parseVarId(t,n),this.eat(m.eq)?t.init=this.parseMaybeAssign(a):"const"!==n||this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===t.id.type||a&&(this.type===m._in||this.isContextual("of"))?t.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(t,"VariableDeclarator")),!this.eat(m.comma))break}return e},F.parseVarId=function(e,a){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===a?1:2,!1)};var H=1,W=2;F.parseFunction=function(e,a,n,t){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!t)&&(this.type===m.star&&a&W&&this.unexpected(),e.generator=this.eat(m.star)),this.options.ecmaVersion>=8&&(e.async=!!t),a&H&&(e.id=4&a&&this.type!==m.name?null:this.parseIdent(),!e.id||a&W||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,d=this.awaitPos,i=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(e.async,e.generator)),a&H||(e.id=this.type===m.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=r,this.awaitPos=d,this.awaitIdentPos=i,this.finishNode(e,a&H?"FunctionDeclaration":"FunctionExpression")},F.parseFunctionParams=function(e){this.expect(m.parenL),e.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},F.parseClass=function(e,a){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,a),this.parseClassSuper(e);var t=this.startNode(),r=!1;for(t.body=[],this.expect(m.braceL);!this.eat(m.braceR);){var d=this.parseClassElement(null!==e.superClass);d&&(t.body.push(d),"MethodDefinition"===d.type&&"constructor"===d.kind&&(r&&this.raise(d.start,"Duplicate constructor in the same class"),r=!0))}return e.body=this.finishNode(t,"ClassBody"),this.strict=n,this.finishNode(e,a?"ClassDeclaration":"ClassExpression")},F.parseClassElement=function(e){var a=this;if(this.eat(m.semi))return null;var n=this.startNode(),tryContextual=function(e,t){void 0===t&&(t=!1);var r=a.start,d=a.startLoc;return!!a.eatContextual(e)&&(!(a.type===m.parenL||t&&a.canInsertSemicolon())||(n.key&&a.unexpected(),n.computed=!1,n.key=a.startNodeAt(r,d),n.key.name=e,a.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=tryContextual("static");var t=this.eat(m.star),r=!1;t||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(r=!0,t=this.options.ecmaVersion>=9&&this.eat(m.star)):tryContextual("get")?n.kind="get":tryContextual("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var d=n.key,i=!1;return n.computed||n.static||!("Identifier"===d.type&&"constructor"===d.name||"Literal"===d.type&&"constructor"===d.value)?n.static&&"Identifier"===d.type&&"prototype"===d.name&&this.raise(d.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(d.start,"Constructor can't have get/set modifier"),t&&this.raise(d.start,"Constructor can't be a generator"),r&&this.raise(d.start,"Constructor can't be an async method"),n.kind="constructor",i=e),this.parseClassMethod(n,t,r,i),"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},F.parseClassMethod=function(e,a,n,t){return e.value=this.parseMethod(a,n,t),this.finishNode(e,"MethodDefinition")},F.parseClassId=function(e,a){this.type===m.name?(e.id=this.parseIdent(),a&&this.checkLVal(e.id,2,!1)):(!0===a&&this.unexpected(),e.id=null)},F.parseClassSuper=function(e){e.superClass=this.eat(m._extends)?this.parseExprSubscripts():null},F.parseExport=function(e,a){if(this.next(),this.eat(m.star))return this.expectContextual("from"),this.type!==m.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(m._default)){var n;if(this.checkExport(a,"default",this.lastTokStart),this.type===m._function||(n=this.isAsyncFunction())){var t=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(t,4|H,!1,n)}else if(this.type===m._class){var r=this.startNode();e.declaration=this.parseClass(r,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(a,e.declaration.declarations):this.checkExport(a,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(a),this.eatContextual("from"))this.type!==m.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var d=0,i=e.specifiers;d=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var t=0,r=e.properties;t=8&&!d&&"async"===i.name&&!this.canInsertSemicolon()&&this.eat(m._function))return this.parseFunction(this.startNodeAt(t,r),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(m.arrow))return this.parseArrowExpression(this.startNodeAt(t,r),[i],!1);if(this.options.ecmaVersion>=8&&"async"===i.name&&this.type===m.name&&!d)return i=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(m.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(t,r),[i],!0)}return i;case m.regexp:var o=this.value;return(a=this.parseLiteral(o.value)).regex={pattern:o.pattern,flags:o.flags},a;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:return(a=this.startNode()).value=this.type===m._null?null:this.type===m._true,a.raw=this.type.keyword,this.next(),this.finishNode(a,"Literal");case m.parenL:var s=this.start,u=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=s),e.parenthesizedBind<0&&(e.parenthesizedBind=s)),u;case m.bracketL:return a=this.startNode(),this.next(),a.elements=this.parseExprList(m.bracketR,!0,!0,e),this.finishNode(a,"ArrayExpression");case m.braceL:return this.parseObj(!1,e);case m._function:return a=this.startNode(),this.next(),this.parseFunction(a,0);case m._class:return this.parseClass(this.startNode(),!1);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},z.parseDynamicImport=function(){var e=this.startNode();return this.next(),this.type!==m.parenL&&this.unexpected(),this.finishNode(e,"Import")},z.parseLiteral=function(e){var a=this.startNode();return a.value=e,a.raw=this.input.slice(this.start,this.end),110===a.raw.charCodeAt(a.raw.length-1)&&(a.bigint=a.raw.slice(0,-1)),this.next(),this.finishNode(a,"Literal")},z.parseParenExpression=function(){this.expect(m.parenL);var e=this.parseExpression();return this.expect(m.parenR),e},z.parseParenAndDistinguishExpression=function(e){var a,n=this.start,t=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var d,i=this.start,o=this.startLoc,s=[],u=!0,c=!1,l=new DestructuringErrors,g=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==m.parenR;){if(u?u=!1:this.expect(m.comma),r&&this.afterTrailingComma(m.parenR,!0)){c=!0;break}if(this.type===m.ellipsis){d=this.start,s.push(this.parseParenItem(this.parseRestBinding())),this.type===m.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}s.push(this.parseMaybeAssign(!1,l,this.parseParenItem))}var f=this.start,R=this.startLoc;if(this.expect(m.parenR),e&&!this.canInsertSemicolon()&&this.eat(m.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=g,this.awaitPos=p,this.parseParenArrowList(n,t,s);s.length&&!c||this.unexpected(this.lastTokStart),d&&this.unexpected(d),this.checkExpressionErrors(l,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=p||this.awaitPos,s.length>1?((a=this.startNodeAt(i,o)).expressions=s,this.finishNodeAt(a,"SequenceExpression",f,R)):a=s[0]}else a=this.parseParenExpression();if(this.options.preserveParens){var h=this.startNodeAt(n,t);return h.expression=a,this.finishNode(h,"ParenthesizedExpression")}return a},z.parseParenItem=function(e){return e},z.parseParenArrowList=function(e,a,n){return this.parseArrowExpression(this.startNodeAt(e,a),n)};var V=[];z.parseNew=function(){var e=this.startNode(),a=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(m.dot)){e.meta=a;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var t=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),t,r,!0),this.options.ecmaVersion>10&&"Import"===e.callee.type&&this.raise(e.callee.start,"Cannot use new with import(...)"),this.eat(m.parenL)?e.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8&&"Import"!==e.callee.type,!1):e.arguments=V,this.finishNode(e,"NewExpression")},z.parseTemplateElement=function(e){var a=e.isTagged,n=this.startNode();return this.type===m.invalidTemplate?(a||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===m.backQuote,this.finishNode(n,"TemplateElement")},z.parseTemplate=function(e){void 0===e&&(e={});var a=e.isTagged;void 0===a&&(a=!1);var n=this.startNode();this.next(),n.expressions=[];var t=this.parseTemplateElement({isTagged:a});for(n.quasis=[t];!t.tail;)this.type===m.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(m.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(m.braceR),n.quasis.push(t=this.parseTemplateElement({isTagged:a}));return this.next(),this.finishNode(n,"TemplateLiteral")},z.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!y.test(this.input.slice(this.lastTokEnd,this.start))},z.parseObj=function(e,a){var n=this.startNode(),t=!0,r={};for(n.properties=[],this.next();!this.eat(m.braceR);){if(t)t=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;var d=this.parseProperty(e,a);e||this.checkPropClash(d,r,a),n.properties.push(d)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},z.parseProperty=function(e,a){var n,t,r,d,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===m.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(this.type===m.parenL&&a&&(a.parenthesizedAssign<0&&(a.parenthesizedAssign=this.start),a.parenthesizedBind<0&&(a.parenthesizedBind=this.start)),i.argument=this.parseMaybeAssign(!1,a),this.type===m.comma&&a&&a.trailingComma<0&&(a.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||a)&&(r=this.start,d=this.startLoc),e||(n=this.eat(m.star)));var o=this.containsEsc;return this.parsePropertyName(i),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(i)?(t=!0,n=this.options.ecmaVersion>=9&&this.eat(m.star),this.parsePropertyName(i,a)):t=!1,this.parsePropertyValue(i,e,n,t,r,d,a,o),this.finishNode(i,"Property")},z.parsePropertyValue=function(e,a,n,t,r,d,i,o){if((n||t)&&this.type===m.colon&&this.unexpected(),this.eat(m.colon))e.value=a?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===m.parenL)a&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,t);else if(a||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===m.comma||this.type===m.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||t)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e.kind="init",a?e.value=this.parseMaybeDefault(r,d,e.key):this.type===m.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,d,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||t)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var s="get"===e.kind?0:1;if(e.value.params.length!==s){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(m.bracketR),e.key;e.computed=!1}return e.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},z.parseMethod=function(e,a,n){var t=this.startNode(),r=this.yieldPos,d=this.awaitPos,i=this.awaitIdentPos;return this.initFunction(t),this.options.ecmaVersion>=6&&(t.generator=e),this.options.ecmaVersion>=8&&(t.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(a,t.generator)|(n?128:0)),this.expect(m.parenL),t.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(t,!1,!0),this.yieldPos=r,this.awaitPos=d,this.awaitIdentPos=i,this.finishNode(t,"FunctionExpression")},z.parseArrowExpression=function(e,a,n){var t=this.yieldPos,r=this.awaitPos,d=this.awaitIdentPos;return this.enterScope(16|functionFlags(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(a,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=t,this.awaitPos=r,this.awaitIdentPos=d,this.finishNode(e,"ArrowFunctionExpression")},z.parseFunctionBody=function(e,a,n){var t=a&&this.type!==m.braceL,r=this.strict,d=!1;if(t)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var i=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!i||(d=this.strictDirective(this.end))&&i&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],d&&(this.strict=!0),this.checkParams(e,!r&&!d&&!a&&!n&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=o}this.exitScope(),this.strict&&e.id&&this.checkLVal(e.id,5),this.strict=r},z.isSimpleParamList=function(e){for(var a=0,n=e;a-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&1&r.flags&&delete this.undefinedExports[e]}else if(4===a){this.currentScope().lexical.push(e)}else if(3===a){var d=this.currentScope();t=this.treatFunctionsAsVar?d.lexical.indexOf(e)>-1:d.lexical.indexOf(e)>-1||d.var.indexOf(e)>-1,d.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var o=this.scopeStack[i];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){t=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],o.flags&j)break}t&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},K.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},K.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},K.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var a=this.scopeStack[e];if(a.flags&j)return a}},K.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var a=this.scopeStack[e];if(a.flags&j&&!(16&a.flags))return a}};var J=function Node(e,a,n){this.type="",this.start=a,this.end=0,e.options.locations&&(this.loc=new C(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[a,0])},X=O.prototype;function finishNodeAt(e,a,n,t){return e.type=a,e.end=n,this.options.locations&&(e.loc.end=t),this.options.ranges&&(e.range[1]=n),e}X.startNode=function(){return new J(this,this.start,this.startLoc)},X.startNodeAt=function(e,a){return new J(this,e,a)},X.finishNode=function(e,a){return finishNodeAt.call(this,e,a,this.lastTokEnd,this.lastTokEndLoc)},X.finishNodeAt=function(e,a,n,t){return finishNodeAt.call(this,e,a,n,t)};var Q=function TokContext(e,a,n,t,r){this.token=e,this.isExpr=!!a,this.preserveSpace=!!n,this.override=t,this.generator=!!r},Y={b_stat:new Q("{",!1),b_expr:new Q("{",!0),b_tmpl:new Q("${",!1),p_stat:new Q("(",!1),p_expr:new Q("(",!0),q_tmpl:new Q("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new Q("function",!1),f_expr:new Q("function",!0),f_expr_gen:new Q("function",!0,!1,null,!0),f_gen:new Q("function",!1,!1,null,!0)},Z=O.prototype;Z.initialContext=function(){return[Y.b_stat]},Z.braceIsBlock=function(e){var a=this.curContext();return a===Y.f_expr||a===Y.f_stat||(e!==m.colon||a!==Y.b_stat&&a!==Y.b_expr?e===m._return||e===m.name&&this.exprAllowed?y.test(this.input.slice(this.lastTokEnd,this.start)):e===m._else||e===m.semi||e===m.eof||e===m.parenR||e===m.arrow||(e===m.braceL?a===Y.b_stat:e!==m._var&&e!==m._const&&e!==m.name&&!this.exprAllowed):!a.isExpr)},Z.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var a=this.context[e];if("function"===a.token)return a.generator}return!1},Z.updateContext=function(e){var a,n=this.type;n.keyword&&e===m.dot?this.exprAllowed=!1:(a=n.updateContext)?a.call(this,e):this.exprAllowed=n.beforeExpr},m.parenR.updateContext=m.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Y.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},m.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Y.b_stat:Y.b_expr),this.exprAllowed=!0},m.dollarBraceL.updateContext=function(){this.context.push(Y.b_tmpl),this.exprAllowed=!0},m.parenL.updateContext=function(e){var a=e===m._if||e===m._for||e===m._with||e===m._while;this.context.push(a?Y.p_stat:Y.p_expr),this.exprAllowed=!0},m.incDec.updateContext=function(){},m._function.updateContext=m._class.updateContext=function(e){!e.beforeExpr||e===m.semi||e===m._else||e===m._return&&y.test(this.input.slice(this.lastTokEnd,this.start))||(e===m.colon||e===m.braceL)&&this.curContext()===Y.b_stat?this.context.push(Y.f_stat):this.context.push(Y.f_expr),this.exprAllowed=!1},m.backQuote.updateContext=function(){this.curContext()===Y.q_tmpl?this.context.pop():this.context.push(Y.q_tmpl),this.exprAllowed=!1},m.star.updateContext=function(e){if(e===m._function){var a=this.context.length-1;this.context[a]===Y.f_expr?this.context[a]=Y.f_expr_gen:this.context[a]=Y.f_gen}this.exprAllowed=!0},m.name.updateContext=function(e){var a=!1;this.options.ecmaVersion>=6&&e!==m.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(a=!0),this.exprAllowed=a};var ee="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",ae=ee+" Extended_Pictographic",ne={9:ee,10:ae,11:"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 Extended_Pictographic"},te="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",re="Adlam Adlm Ahom 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 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 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 Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa 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 Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",de=re+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ie={9:re,10:de,11:"Adlam Adlm Ahom 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 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 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 Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa 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 Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},oe={};function buildUnicodeData(e){var a=oe[e]={binary:wordsRegexp(ne[e]+" "+te),nonBinary:{General_Category:wordsRegexp(te),Script:wordsRegexp(ie[e])}};a.nonBinary.Script_Extensions=a.nonBinary.Script,a.nonBinary.gc=a.nonBinary.General_Category,a.nonBinary.sc=a.nonBinary.Script,a.nonBinary.scx=a.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var se=O.prototype,ue=function RegExpValidationState(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=oe[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],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(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function isSyntaxCharacter(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||95===e}function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}function isDecimalDigit(e){return e>=48&&e<=57}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function isOctalDigit(e){return e>=48&&e<=55}ue.prototype.reset=function reset(e,a,n){var t=-1!==n.indexOf("u");this.start=0|e,this.source=a+"",this.flags=n,this.switchU=t&&this.parser.options.ecmaVersion>=6,this.switchN=t&&this.parser.options.ecmaVersion>=9},ue.prototype.raise=function raise(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ue.prototype.at=function at(e){var a=this.source,n=a.length;if(e>=n)return-1;var t=a.charCodeAt(e);return!this.switchU||t<=55295||t>=57344||e+1>=n?t:(t<<10)+a.charCodeAt(e+1)-56613888},ue.prototype.nextIndex=function nextIndex(e){var a=this.source,n=a.length;if(e>=n)return n;var t=a.charCodeAt(e);return!this.switchU||t<=55295||t>=57344||e+1>=n?e+1:e+2},ue.prototype.current=function current(){return this.at(this.pos)},ue.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},ue.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},ue.prototype.eat=function eat(e){return this.current()===e&&(this.advance(),!0)},se.validateRegExpFlags=function(e){for(var a=e.validFlags,n=e.flags,t=0;t-1&&this.raise(e.start,"Duplicate regular expression flag")}},se.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},se.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var a=0,n=e.backReferenceNames;a=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=a,!1},se.regexp_eatQuantifier=function(e,a){return void 0===a&&(a=!1),!!this.regexp_eatQuantifierPrefix(e,a)&&(e.eat(63),!0)},se.regexp_eatQuantifierPrefix=function(e,a){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,a)},se.regexp_eatBracedQuantifier=function(e,a){var n=e.pos;if(e.eat(123)){var t=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(t=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},se.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},se.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},se.regexp_eatSyntaxCharacter=function(e){var a=e.current();return!!isSyntaxCharacter(a)&&(e.lastIntValue=a,e.advance(),!0)},se.regexp_eatPatternCharacters=function(e){for(var a=e.pos,n=0;-1!==(n=e.current())&&!isSyntaxCharacter(n);)e.advance();return e.pos!==a},se.regexp_eatExtendedPatternCharacter=function(e){var a=e.current();return!(-1===a||36===a||a>=40&&a<=43||46===a||63===a||91===a||94===a||124===a)&&(e.advance(),!0)},se.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},se.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},se.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=codePointToString(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=codePointToString(e.lastIntValue);return!0}return!1},se.regexp_eatRegExpIdentifierStart=function(e){var a=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function isRegExpIdentifierStart(e){return isIdentifierStart(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=a,!1)},se.regexp_eatRegExpIdentifierPart=function(e){var a=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function isRegExpIdentifierPart(e){return isIdentifierChar(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=a,!1)},se.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},se.regexp_eatBackReference=function(e){var a=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=a}return!1},se.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},se.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},se.regexp_eatCControlLetter=function(e){var a=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=a}return!1},se.regexp_eatZero=function(e){return 48===e.current()&&!isDecimalDigit(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},se.regexp_eatControlEscape=function(e){var a=e.current();return 116===a?(e.lastIntValue=9,e.advance(),!0):110===a?(e.lastIntValue=10,e.advance(),!0):118===a?(e.lastIntValue=11,e.advance(),!0):102===a?(e.lastIntValue=12,e.advance(),!0):114===a&&(e.lastIntValue=13,e.advance(),!0)},se.regexp_eatControlLetter=function(e){var a=e.current();return!!isControlLetter(a)&&(e.lastIntValue=a%32,e.advance(),!0)},se.regexp_eatRegExpUnicodeEscapeSequence=function(e){var a=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(e.switchU&&n>=55296&&n<=56319){var t=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(r>=56320&&r<=57343)return e.lastIntValue=1024*(n-55296)+(r-56320)+65536,!0}e.pos=t,e.lastIntValue=n}return!0}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&function isValidUnicode(e){return e>=0&&e<=1114111}(e.lastIntValue))return!0;e.switchU&&e.raise("Invalid unicode escape"),e.pos=a}return!1},se.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var a=e.current();return!(99===a||e.switchN&&107===a)&&(e.lastIntValue=a,e.advance(),!0)},se.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var a=e.current();if(a>=49&&a<=57){do{e.lastIntValue=10*e.lastIntValue+(a-48),e.advance()}while((a=e.current())>=48&&a<=57);return!0}return!1},se.regexp_eatCharacterClassEscape=function(e){var a=e.current();if(function isCharacterClassEscape(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(a))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===a||112===a)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},se.regexp_eatUnicodePropertyValueExpression=function(e){var a=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var t=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,t),!0}}if(e.pos=a,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r),!0}return!1},se.regexp_validateUnicodePropertyNameAndValue=function(e,a,n){has(e.unicodeProperties.nonBinary,a)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[a].test(n)||e.raise("Invalid property value")},se.regexp_validateUnicodePropertyNameOrValue=function(e,a){e.unicodeProperties.binary.test(a)||e.raise("Invalid property name")},se.regexp_eatUnicodePropertyName=function(e){var a=0;for(e.lastStringValue="";isUnicodePropertyNameCharacter(a=e.current());)e.lastStringValue+=codePointToString(a),e.advance();return""!==e.lastStringValue},se.regexp_eatUnicodePropertyValue=function(e){var a=0;for(e.lastStringValue="";isUnicodePropertyValueCharacter(a=e.current());)e.lastStringValue+=codePointToString(a),e.advance();return""!==e.lastStringValue},se.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},se.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},se.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var a=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==a&&-1!==n||e.raise("Invalid character class"),-1!==a&&-1!==n&&a>n&&e.raise("Range out of order in character class")}}},se.regexp_eatClassAtom=function(e){var a=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||isOctalDigit(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=a}var t=e.current();return 93!==t&&(e.lastIntValue=t,e.advance(),!0)},se.regexp_eatClassEscape=function(e){var a=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=a}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},se.regexp_eatClassControlLetter=function(e){var a=e.current();return!(!isDecimalDigit(a)&&95!==a)&&(e.lastIntValue=a%32,e.advance(),!0)},se.regexp_eatHexEscapeSequence=function(e){var a=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=a}return!1},se.regexp_eatDecimalDigits=function(e){var a=e.pos,n=0;for(e.lastIntValue=0;isDecimalDigit(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==a},se.regexp_eatHexDigits=function(e){var a=e.pos,n=0;for(e.lastIntValue=0;isHexDigit(n=e.current());)e.lastIntValue=16*e.lastIntValue+hexToInt(n),e.advance();return e.pos!==a},se.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var a=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;a<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*a+8*n+e.lastIntValue:e.lastIntValue=8*a+n}else e.lastIntValue=a;return!0}return!1},se.regexp_eatOctalDigit=function(e){var a=e.current();return isOctalDigit(a)?(e.lastIntValue=a-48,e.advance(),!0):(e.lastIntValue=0,!1)},se.regexp_eatFixedHexDigits=function(e,a){var n=e.pos;e.lastIntValue=0;for(var t=0;t>10),56320+(1023&e)))}le.next=function(){this.options.onToken&&this.options.onToken(new ce(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},le.getToken=function(){return this.next(),new ce(this)},"undefined"!=typeof Symbol&&(le[Symbol.iterator]=function(){var e=this;return{next:function(){var a=e.getToken();return{done:a.type===m.eof,value:a}}}}),le.curContext=function(){return this.context[this.context.length-1]},le.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(m.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},le.readToken=function(e){return isIdentifierStart(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},le.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},le.skipBlockComment=function(){var e,a=this.options.onComment&&this.curPosition(),n=this.pos,t=this.input.indexOf("*/",this.pos+=2);if(-1===t&&this.raise(this.pos-2,"Unterminated comment"),this.pos=t+2,this.options.locations)for(v.lastIndex=n;(e=v.exec(this.input))&&e.index8&&e<14||e>=5760&&b.test(String.fromCharCode(e))))break e;++this.pos}}},le.finishToken=function(e,a){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=a,this.updateContext(n)},le.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var a=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===a?(this.pos+=3,this.finishToken(m.ellipsis)):(++this.pos,this.finishToken(m.dot))},le.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(m.assign,2):this.finishOp(m.slash,1)},le.readToken_mult_modulo_exp=function(e){var a=this.input.charCodeAt(this.pos+1),n=1,t=42===e?m.star:m.modulo;return this.options.ecmaVersion>=7&&42===e&&42===a&&(++n,t=m.starstar,a=this.input.charCodeAt(this.pos+2)),61===a?this.finishOp(m.assign,n+1):this.finishOp(t,n)},le.readToken_pipe_amp=function(e){var a=this.input.charCodeAt(this.pos+1);return a===e?this.finishOp(124===e?m.logicalOR:m.logicalAND,2):61===a?this.finishOp(m.assign,2):this.finishOp(124===e?m.bitwiseOR:m.bitwiseAND,1)},le.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(m.assign,2):this.finishOp(m.bitwiseXOR,1)},le.readToken_plus_min=function(e){var a=this.input.charCodeAt(this.pos+1);return a===e?45!==a||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!y.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(m.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===a?this.finishOp(m.assign,2):this.finishOp(m.plusMin,1)},le.readToken_lt_gt=function(e){var a=this.input.charCodeAt(this.pos+1),n=1;return a===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(m.assign,n+1):this.finishOp(m.bitShift,n)):33!==a||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===a&&(n=2),this.finishOp(m.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},le.readToken_eq_excl=function(e){var a=this.input.charCodeAt(this.pos+1);return 61===a?this.finishOp(m.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===a&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(m.arrow)):this.finishOp(61===e?m.eq:m.prefix,1)},le.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(m.parenL);case 41:return++this.pos,this.finishToken(m.parenR);case 59:return++this.pos,this.finishToken(m.semi);case 44:return++this.pos,this.finishToken(m.comma);case 91:return++this.pos,this.finishToken(m.bracketL);case 93:return++this.pos,this.finishToken(m.bracketR);case 123:return++this.pos,this.finishToken(m.braceL);case 125:return++this.pos,this.finishToken(m.braceR);case 58:return++this.pos,this.finishToken(m.colon);case 63:return++this.pos,this.finishToken(m.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(m.backQuote);case 48:var a=this.input.charCodeAt(this.pos+1);if(120===a||88===a)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===a||79===a)return this.readRadixNumber(8);if(98===a||66===a)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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(m.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(e)+"'")},le.finishOp=function(e,a){var n=this.input.slice(this.pos,this.pos+a);return this.pos+=a,this.finishToken(e,n)},le.readRegexp=function(){for(var e,a,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var t=this.input.charAt(this.pos);if(y.test(t)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===t)a=!0;else if("]"===t&&a)a=!1;else if("/"===t&&!a)break;e="\\"===t}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var d=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(d);var o=this.regexpState||(this.regexpState=new ue(this));o.reset(n,r,i),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var s=null;try{s=new RegExp(r,i)}catch(e){}return this.finishToken(m.regexp,{pattern:r,flags:i,value:s})},le.readInt=function(e,a){for(var n=this.pos,t=0,r=0,d=null==a?1/0:a;r=97?i-97+10:i>=65?i-65+10:i>=48&&i<=57?i-48:1/0)>=e)break;++this.pos,t=t*e+o}return this.pos===n||null!=a&&this.pos-n!==a?null:t},le.readRadixNumber=function(e){var a=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n="undefined"!=typeof BigInt?BigInt(this.input.slice(a,this.pos)):null,++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,n)},le.readNumber=function(e){var a=this.pos;e||null!==this.readInt(10)||this.raise(a,"Invalid number");var n=this.pos-a>=2&&48===this.input.charCodeAt(a);n&&this.strict&&this.raise(a,"Invalid number"),n&&/[89]/.test(this.input.slice(a,this.pos))&&(n=!1);var t=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===t){var r=this.input.slice(a,this.pos),d="undefined"!=typeof BigInt?BigInt(r):null;return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,d)}46!==t||n||(++this.pos,this.readInt(10),t=this.input.charCodeAt(this.pos)),69!==t&&101!==t||n||(43!==(t=this.input.charCodeAt(++this.pos))&&45!==t||++this.pos,null===this.readInt(10)&&this.raise(a,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(a,this.pos),o=n?parseInt(i,8):parseFloat(i);return this.finishToken(m.num,o)},le.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var a=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(a,"Code point out of bounds")}else e=this.readHexChar(4);return e},le.readString=function(e){for(var a="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var t=this.input.charCodeAt(this.pos);if(t===e)break;92===t?(a+=this.input.slice(n,this.pos),a+=this.readEscapedChar(!1),n=this.pos):(isNewLine(t,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return a+=this.input.slice(n,this.pos++),this.finishToken(m.string,a)};var ge={};le.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ge)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},le.invalidStringToken=function(e,a){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ge;this.raise(e,a)},le.readTmplToken=function(){for(var e="",a=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!==m.template&&this.type!==m.invalidTemplate?(e+=this.input.slice(a,this.pos),this.finishToken(m.template,e)):36===n?(this.pos+=2,this.finishToken(m.dollarBraceL)):(++this.pos,this.finishToken(m.backQuote));if(92===n)e+=this.input.slice(a,this.pos),e+=this.readEscapedChar(!0),a=this.pos;else if(isNewLine(n)){switch(e+=this.input.slice(a,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),a=this.pos}else++this.pos}},le.readInvalidTemplateToken=function(){for(;this.pos=48&&a<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],t=parseInt(n,8);return t>255&&(n=n.slice(0,-1),t=parseInt(n,8)),this.pos+=n.length-1,a=this.input.charCodeAt(this.pos),"0"===n&&56!==a&&57!==a||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(t)}return isNewLine(a)?"":String.fromCharCode(a)}},le.readHexChar=function(e){var a=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(a,"Bad character escape sequence"),n},le.readWord1=function(){this.containsEsc=!1;for(var e="",a=!0,n=this.pos,t=this.options.ecmaVersion>=6;this.pos0&&void 0!==arguments[0])||arguments[0];f=!!e},a.simulate=function simulate(){for(var e=arguments.length,a=Array(e),n=0;n1?a-1:0),t=1;t1?a-1:0),t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return e.toLowerCase().replace(/[^a-z0-9]/g,a)}function hashify(e){var a=JSON.stringify(e),n=(0,s.default)(a).toString(36);return e.label&&e.label.length>0&&l?simple(e.label.join("."),"-")+"-"+n:n}function isLikeRule(e){var a=Object.keys(e).filter((function(e){return"toString"!==e}));return 1===a.length&&!!/data\-css\-([a-zA-Z0-9\-_]+)/.exec(a[0])}function idFor(e){var a=Object.keys(e).filter((function(e){return"toString"!==e}));if(1!==a.length)throw new Error("not a rule");var n=/data\-css\-([a-zA-Z0-9\-_]+)/.exec(a[0]);if(!n)throw new Error("not a rule");return n[1]}var y=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function splitSelector(e){if(-1===e.indexOf(","))return[e];for(var a,n=[],t=[],r=0;a=y.exec(e);)switch(a[0]){case"(":r++;break;case")":r--;break;case",":if(r)break;n.push(a.index)}for(a=n.length;a--;)t.unshift(e.slice(n[a]+1)),e=e.slice(0,n[a]);return t.unshift(e),t}function selector(e,a){if(!e)return a.replace(/\&/g,"");if(!a)return".css-"+e+",[data-css-"+e+"]";var n=splitSelector(a).map((function(a){return a.indexOf("&")>=0?[a.replace(/\&/gm,".css-"+e),a.replace(/\&/gm,"[data-css-"+e+"]")].join(","):".css-"+e+a+",[data-css-"+e+"]"+a})).join(",");return f&&/^\&\:/.exec(a)&&!/\s/.exec(a)&&(n+=",.css-"+e+"[data-simulate-"+simple(a)+"],[data-css-"+e+"][data-simulate-"+simple(a)+"]"),n}function toCSS(e){var a=e.selector,n=e.style,t=c.transform({selector:a,style:n});return t.selector+"{"+(0,d.createMarkupForStyles)(t.style)+"}"}function deconstruct(e){var a=void 0,n=void 0,t=void 0,r=void 0;return Object.keys(e).forEach((function(d){d.indexOf("&")>=0?(n=n||{})[d]=e[d]:0===d.indexOf("@media")?(t=t||{})[d]=deconstruct(e[d]):0===d.indexOf("@supports")?(r=r||{})[d]=deconstruct(e[d]):"label"===d?e.label.length>0&&((a=a||{}).label=m?e.label.join("."):""):(a=a||{})[d]=e[d]})),{plain:a,selects:n,medias:t,supports:r}}function deconstructedStyleToCSS(e,a){var n=[],t=a.plain,r=a.selects,d=a.medias,i=a.supports;return t&&n.push(toCSS({style:t,selector:selector(e)})),r&&Object.keys(r).forEach((function(a){return n.push(toCSS({style:r[a],selector:selector(e,a)}))})),d&&Object.keys(d).forEach((function(a){return n.push(a+"{"+deconstructedStyleToCSS(e,d[a]).join("")+"}")})),i&&Object.keys(i).forEach((function(a){return n.push(a+"{"+deconstructedStyleToCSS(e,i[a]).join("")+"}")})),n}var v=u.inserted={};var b=u.registered={};function register(e){b[e.id]||(b[e.id]=e)}var _={};function toRule(e){if(register(e),function insert(e){if(!v[e.id]){v[e.id]=!0;var a=deconstruct(e.style),n=deconstructedStyleToCSS(e.id,a);v[e.id]=!!p||n,n.forEach((function(e){return u.insert(e)}))}}(e),_[e.id])return _[e.id];var a=_defineProperty({},"data-css-"+e.id,m&&e.label||"");return Object.defineProperty(a,"toString",{enumerable:!1,value:function value(){return"css-"+e.id}}),_[e.id]=a,a}function joinSelectors(e,a){var n=splitSelector(e).map((function(e){return e.indexOf("&")>=0?e:"&"+e}));return splitSelector(a).map((function(e){return e.indexOf("&")>=0?e:"&"+e})).reduce((function(e,a){return e.concat(n.map((function(e){return a.replace(/\&/g,e)})))}),[]).join(",")}function joinSupports(e,a){return e?"@supports "+e.substring(9)+" and "+a.substring(9):a}var x={"::placeholder":["::-webkit-input-placeholder","::-moz-placeholder","::-ms-input-placeholder"],":fullscreen":[":-webkit-full-screen",":-moz-full-screen",":-ms-fullscreen"]};function build(e,a){var n=a.selector,t=void 0===n?"":n,r=a.mq,d=void 0===r?"":r,o=a.supp,s=void 0===o?"":o,u=a.src,c=void 0===u?{}:u;Array.isArray(c)||(c=[c]),(c=function flatten(e){for(var a=[],n=0;n"," "],n=!1,t=e.charAt(0),r=0;r=0}(n))x[n]&&x[n].forEach((function(r){return build(e,{selector:joinSelectors(t,r),mq:d,supp:s,src:a[n]})})),build(e,{selector:joinSelectors(t,n),mq:d,supp:s,src:a[n]});else if(function isMediaQuery(e){return 0===e.indexOf("@media")}(n))build(e,{selector:t,mq:(i=d,o=n,i?"@media "+i.substring(6)+" and "+o.substring(6):o),supp:s,src:a[n]});else if(function isSupports(e){return 0===e.indexOf("@supports")}(n))build(e,{selector:t,mq:d,supp:joinSupports(s,n),src:a[n]});else if("composes"===n);else{var r=e;s&&(r[s]=r[s]||{},r=r[s]),d&&(r[d]=r[d]||{},r=r[d]),t&&(r[t]=r[t]||{},r=r[t]),"label"===n?m&&(e.label=e.label.concat(a.label)):r[n]=a[n]}var i,o}))}))}function _css(e){var a={label:[]};return build(a,{src:e}),toRule({id:hashify(a),style:a,label:m?a.label.join("."):"",type:"css"})}var E={};Object.defineProperty(E,"toString",{enumerable:!1,value:function value(){return"css-nil"}});var S="undefined"!=typeof WeakMap?[E,new WeakMap,new WeakMap,new WeakMap]:[E],k=!1;var w="undefined"!=typeof WeakMap?function multiIndexCache(e){return function(a){if(S[a.length]){for(var n=S[a.length],t=0;t1?a-1:0),t=1;t1?a-1:0),t=1;t0?r(t(e),9007199254740991):0}},function(e,a,n){var t=n(30);e.exports=function(e){return Object(t(e))}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=Object.assign||function(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,["classes","level","children"]),i="h"+n,s=Object(o.a)(a.heading,a["heading"+n]);return r.a.createElement(i,_extends({},d,{className:s}),t)}HeadingRenderer.propTypes={classes:i.a.object.isRequired,level:i.a.oneOf([1,2,3,4,5,6]).isRequired,children:i.a.node};var u=Object(s.a)((function styles(e){var a=e.color,n=e.fontFamily,t=e.fontSize;return{heading:{margin:0,color:a.base,fontFamily:n.base,fontWeight:"normal"},heading1:{fontSize:t.h1},heading2:{fontSize:t.h2},heading3:{fontSize:t.h3},heading4:{fontSize:t.h4},heading5:{fontSize:t.h5,fontWeight:"bold"},heading6:{fontSize:t.h6,fontStyle:"italic"}}}))(HeadingRenderer);n.d(a,"a",(function(){return u}))},function(e,a,n){"use strict";var t=n(1),r=n.n(t),d=n(2),i=n.n(d),o=n(4);function ParaRenderer(e){var a=e.classes,n=e.semantic,t=e.children,d=n||"div";return r.a.createElement(d,{className:a.para},t)}ParaRenderer.propTypes={classes:i.a.object.isRequired,semantic:i.a.oneOf(["p"]),children:i.a.node.isRequired};var s=Object(o.a)((function styles(e){var a=e.space,n=e.color,t=e.fontFamily;return{para:{marginTop:0,marginBottom:a[2],color:n.base,fontFamily:t.base,fontSize:"inherit",lineHeight:1.5}}}))(ParaRenderer);n.d(a,"a",(function(){return s}))},function(e,a,n){"use strict";n(36),n(37),n(5),n(38);var t=n(1),r=n.n(t),d=n(2),i=n.n(d),o=n(4),s=n(8),u=n(48),c=n(40),l=n(71),g=n.n(l);function ArgumentRenderer(e){var a=e.classes,n=e.name,t=e.type,d=e.description,i=e.returns,o=e.block,l=function _objectWithoutPropertiesLoose(e,a){if(null==e)return{};var n,t,r={},d=Object.keys(e);for(t=0;t=0||(r[n]=e[n]);return r}(e,["classes","name","type","description","returns","block"]),p=t&&"OptionalType"===t.type,f=l.default;p&&(t=t.expression);var R=r.a.createElement(g.a,null,i&&"Returns",n&&r.a.createElement("span",null,r.a.createElement(u.a,null,n),t&&":"),t&&r.a.createElement(c.a,null,t.name,p&&"?",!!f&&"="+f),t&&d&&"—",d&&r.a.createElement(s.a,{text:""+d,inline:!0}));return o?r.a.createElement("div",{className:a.block},R):R}ArgumentRenderer.propTypes={classes:i.a.object.isRequired,name:i.a.string,type:i.a.object,default:i.a.string,description:i.a.string,returns:i.a.bool,block:i.a.bool};var p=Object(o.a)((function styles(e){return{block:{marginBottom:e.space[2]}}}))(ArgumentRenderer);n.d(a,"a",(function(){return p}))},function(e,a,n){"use strict";n(36),n(37),n(32),n(66),n(11);var t=n(1),r=n.n(t),d=n(2),i=n.n(d),o=n(8),s=n(207),u=n.n(s),c=function paragraphs(e){return e.map((function(e){return e.description})).join("\n\n")},l={deprecated:function deprecated(e){return"**Deprecated:** "+e[0].description},see:function see(e){return c(e)},link:function link(e){return c(e)},author:function author(e){return function plural(e,a){return 1===e.length?a:a+"s"}(e,"Author")+": "+function list(e){return e.map((function(e){return e.description})).join(", ")}(e)},version:function version(e){return"Version: "+e[0].description},since:function since(e){return"Since: "+e[0].description}};function JsDoc(e){var a=function getMarkdown(e){return u()(l,(function(a,n){return e[n]&&a(e[n])})).filter(Boolean).join("\n\n")}(e);return a?r.a.createElement(o.a,{text:a}):null}JsDoc.propTypes={deprecated:i.a.array,see:i.a.array,link:i.a.array,author:i.a.array,version:i.a.array,since:i.a.array},n.d(a,"a",(function(){return JsDoc}))},function(e,a,n){var t=n(178),r=n(179),d=n(91),i=n(23),o=n(35),s=n(92),u=n(90),c=n(93),l="[object Map]",g="[object Set]",p=Object.prototype.hasOwnProperty;e.exports=function isEmpty(e){if(null==e)return!0;if(o(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||c(e)||d(e)))return!e.length;var a=r(e);if(a==l||a==g)return!e.size;if(u(e))return!t(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,a,n){"use strict";var t=n(1),r=n.n(t),d=n(2),i=n.n(d),o=n(4);function CodeRenderer(e){var a=e.classes,n=e.children;return r.a.createElement("code",{className:a.code},n)}CodeRenderer.propTypes={classes:i.a.object.isRequired,children:i.a.node.isRequired};var s=Object(o.a)((function styles(e){return{code:{fontFamily:e.fontFamily.monospace,fontSize:"inherit",color:"inherit",background:"transparent",whiteSpace:"inherit"}}}))(CodeRenderer);n.d(a,"a",(function(){return s}))},function(e,a){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,a,n){var t=n(142),r=n(231);(e.exports=function(e,a){return r[e]||(r[e]=void 0!==a?a:{})})("versions",[]).push({version:"3.3.5",mode:t?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,a){e.exports={}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=Object.assign||function(e){for(var a=1;a0?t:n)(e)}},function(e,a,n){var t=n(147),r=n(110);e.exports=Object.keys||function keys(e){return t(e,r)}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function toCssValue(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"unnamed",a=arguments[1],n=arguments[2],i=n.jss,o=(0,d.default)(a),s=i.plugins.onCreateRule(e,o,n);if(s)return s;"@"===e[0]&&(0,t.default)(!1,"[JSS] Unknown at-rule %s",e);return new r.default(e,o,n)};var t=_interopRequireDefault(n(33)),r=_interopRequireDefault(n(53)),d=_interopRequireDefault(n(239));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},function(e,a,n){"use strict";var t=n(41),r=n(50),d=n(10),i=n(18),o=n(114),s=i("species"),u=!d((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),c=!d((function(){var e=/(?:)/,a=e.exec;e.exec=function(){return a.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,a,n,l){var g=i(e),p=!d((function(){var a={};return a[g]=function(){return 7},7!=""[e](a)})),f=p&&!d((function(){var a=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[g]=/./[g]),n.exec=function(){return a=!0,null},n[g](""),!a}));if(!p||!f||"replace"===e&&!u||"split"===e&&!c){var R=/./[g],h=n(g,""[e],(function(e,a,n,t,r){return a.exec===o?p&&!r?{done:!0,value:R.call(a,n,t)}:{done:!0,value:e.call(n,a,t)}:{done:!1}})),m=h[0],y=h[1];r(String.prototype,e,m),r(RegExp.prototype,g,2==a?function(e,a){return y.call(e,this,a)}:function(e){return y.call(e,this)}),l&&t(RegExp.prototype[g],"sham",!0)}}},function(e,a,n){var t=n(60),r=n(114);e.exports=function(e,a){var n=e.exec;if("function"==typeof n){var d=n.call(e,a);if("object"!=typeof d)throw TypeError("RegExp exec method returned something other than an Object or null");return d}if("RegExp"!==t(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,a)}},function(e,a,n){"use strict";var t=n(15),r=n(118);t({target:"String",proto:!0,forced:n(119)("link")},{link:function link(e){return r(this,"a","href",e)}})},function(e,a,n){var t=n(271),r=n(272),d=n(273),i=n(274),o=n(275);function ListCache(e){var a=-1,n=null==e?0:e.length;for(this.clear();++aE;E++)if((g||E in b)&&(y=_(m=b[E],E,v),e))if(a)k[E]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:s.call(k,m)}else if(c)return!1;return l?-1:u||c?c:k}};e.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6)}},function(e,a,n){var t=n(169),r=n(178),d=n(35);e.exports=function keys(e){return d(e)?t(e):r(e)}},function(e,a,n){var t=n(44),r=n(34),d="[object Symbol]";e.exports=function isSymbol(e){return"symbol"==typeof e||r(e)&&t(e)==d}},function(e,a,n){var t=n(96),r=1/0;e.exports=function toKey(e){if("string"==typeof e||t(e))return e;var a=e+"";return"0"==a&&1/e==-r?"-0":a}},function(e,a,n){"use strict";var t=n(50),r=n(17),d=n(10),i=n(115),o=RegExp.prototype,s=o.toString,u=d((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),c="toString"!=s.name;(u||c)&&t(RegExp.prototype,"toString",(function toString(){var e=r(this),a=String(e.source),n=e.flags;return"/"+a+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in o)?i.call(e):n)}),{unsafe:!0})},function(e,a,n){"use strict";n.r(a),n.d(a,"spaceFactor",(function(){return t})),n.d(a,"space",(function(){return r})),n.d(a,"color",(function(){return d})),n.d(a,"fontFamily",(function(){return i})),n.d(a,"fontSize",(function(){return o})),n.d(a,"mq",(function(){return s})),n.d(a,"borderRadius",(function(){return u})),n.d(a,"maxWidth",(function(){return c})),n.d(a,"sidebarWidth",(function(){return l})),n.d(a,"buttonTextTransform",(function(){return g}));var t=8,r=[t/2,t,2*t,3*t,4*t,5*t,6*t],d={base:"#333",light:"#767676",lightest:"#ccc",link:"#1673b1",linkHover:"#e90",focus:"rgba(22, 115, 177, 0.25)",border:"#e8e8e8",name:"#690",type:"#905",error:"#c00",baseBackground:"#fff",codeBackground:"#f5f5f5",sidebarBackground:"#f5f5f5",ribbonBackground:"#e90",ribbonText:"#fff",codeBase:"#333",codeComment:"#6d6d6d",codePunctuation:"#999",codeProperty:"#905",codeDeleted:"#905",codeString:"#690",codeInserted:"#690",codeOperator:"#9a6e3a",codeKeyword:"#1673b1",codeFunction:"#DD4A68",codeVariable:"#e90"},i={base:["-apple-system","BlinkMacSystemFont",'"Segoe UI"','"Roboto"','"Oxygen"','"Ubuntu"','"Cantarell"','"Fira Sans"','"Droid Sans"','"Helvetica Neue"',"sans-serif"],monospace:["Consolas",'"Liberation Mono"',"Menlo","monospace"]},o={base:15,text:16,small:13,h1:48,h2:36,h3:24,h4:18,h5:16,h6:16},s={small:"@media (max-width: 600px)"},u=3,c=1e3,l=200,g="uppercase"},function(e,a,n){"use strict";a.a=function prismTheme(e){var a,n=e.color;return(a={"&":{color:n.codeBase}})["& .token.comment,\n& .token.prolog,\n& .token.doctype,\n& .token.cdata"]={isolate:!1,color:n.codeComment},a["& .token.punctuation"]={isolate:!1,color:n.codePunctuation},a["& .namespace"]={isolate:!1,opacity:.7},a["& .token.property,\n& .token.tag,\n& .token.boolean,\n& .token.number,\n& .token.constant,\n& .token.symbol"]={isolate:!1,color:n.codeProperty},a["& .token.deleted"]={isolate:!1,color:n.codeDeleted},a["& .token.selector,\n& .token.attr-name,\n& .token.string,\n& .token.char,\n& .token.builtin"]={isolate:!1,color:n.codeString},a["& .token.inserted"]={isolate:!1,color:n.codeInserted},a["& .token.operator,\n& .token.entity,\n& .token.url,\n& .language-css .token.string,\n& .style .token.string"]={isolate:!1,color:n.codeOperator},a["& .token.atrule,\n& .token.attr-value,\n& .token.keyword"]={isolate:!1,color:n.codeKeyword},a["& .token.function,\n& .token.class-name"]={isolate:!1,color:n.codeFunction},a["& .token.regex,\n& .token.important,\n& .token.variable"]={isolate:!1,color:n.codeVariable},a["& .token.important,\n& .token.bold"]={isolate:!1,fontWeight:"bold"},a["& .token.italic"]={isolate:!1,fontStyle:"italic"},a["& .token.entity"]={isolate:!1,cursor:"help"},a}},function(e,a,n){var t=n(805)(n(806));e.exports=t},function(e,a,n){"use strict";a.__esModule=!0,a.DOCS_THIRDPARTIES=a.DOCS_DOCUMENTING=a.DOCS_WEBPACK=a.DOCS_COMPONENTS=a.DOCS_CONFIG=a.BUGS=a.HOMEPAGE=void 0;a.HOMEPAGE="https://react-styleguidist.js.org/";a.BUGS="https://github.com/styleguidist/react-styleguidist/issues";a.DOCS_CONFIG="https://react-styleguidist.js.org/docs/configuration.html";a.DOCS_COMPONENTS="https://react-styleguidist.js.org/docs/components.html";a.DOCS_WEBPACK="https://react-styleguidist.js.org/docs/webpack.html";a.DOCS_DOCUMENTING="https://react-styleguidist.js.org/docs/documenting.html";a.DOCS_THIRDPARTIES="https://react-styleguidist.js.org/docs/thirdparties.html"},function(e,a,n){"use strict";n(11),n(20);var t=n(1),r=n.n(t),d=n(2),i=n.n(d),o=n(4);function TableRenderer(e){var a=e.classes,n=e.columns,t=e.rows,d=e.getRowKey;return r.a.createElement("table",{className:a.table},r.a.createElement("thead",{className:a.tableHead},r.a.createElement("tr",null,n.map((function(e){var n=e.caption;return r.a.createElement("th",{key:n,className:a.cellHeading},n)})))),r.a.createElement("tbody",null,t.map((function(e){return r.a.createElement("tr",{key:d(e)},n.map((function(n,t){var d=n.render;return r.a.createElement("td",{key:t,className:a.cell},d(e))})))}))))}TableRenderer.propTypes={classes:i.a.object.isRequired,columns:i.a.arrayOf(i.a.shape({caption:i.a.string.isRequired,render:i.a.func.isRequired})).isRequired,rows:i.a.arrayOf(i.a.object).isRequired,getRowKey:i.a.func.isRequired};var s=Object(o.a)((function styles(e){var a=e.space,n=e.color,t=e.fontFamily,r=e.fontSize;return{table:{width:"100%",borderCollapse:"collapse",marginBottom:a[4]},tableHead:{borderBottom:[[1,n.border,"solid"]]},cellHeading:{color:n.base,paddingRight:a[2],paddingBottom:a[1],textAlign:"left",fontFamily:t.base,fontWeight:"bold",fontSize:r.small,whiteSpace:"nowrap"},cell:{color:n.base,paddingRight:a[2],paddingTop:a[1],paddingBottom:a[1],verticalAlign:"top",fontFamily:t.base,fontSize:r.small,"&:last-child":{isolate:!1,width:"99%",paddingRight:0},"& p:last-child":{isolate:!1,marginBottom:0}}}}))(TableRenderer);n.d(a,"a",(function(){return s}))},function(e,a,n){"use strict";n(7),n(38),n(84);var t=n(1),r=n.n(t),d=n(2),i=n.n(d),o=n(6),s=n(4);function _extends(){return(_extends=Object.assign||function(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,["classes","children"]);return r.a.createElement("a",_extends({},t,{className:Object(o.a)(a.link,t.className)}),n)}LinkRenderer.propTypes={children:i.a.node,className:i.a.string,classes:i.a.object.isRequired};var u=Object(s.a)((function styles(e){var a=e.color;return{link:{"&, &:link, &:visited":{fontSize:"inherit",color:a.link,textDecoration:"none"},"&:hover, &:active":{isolate:!1,color:a.linkHover,cursor:"pointer"}}}}))(LinkRenderer);n.d(a,"a",(function(){return u}))},function(e,a,n){"use strict";n(11),n(5),n(7);var t=n(1),r=n.n(t),d=n(2),i=n.n(d),o=n(56),s=n(54),u=n(4);function _extends(){return(_extends=Object.assign||function(e){for(var a=1;a2&&void 0!==arguments[2]?arguments[2]:{},r="";if(!a)return r;var d=n.indent,i=void 0===d?0:d,o=a.fallbacks;if(i++,o)if(Array.isArray(o))for(var s=0;s1&&o.call(t[0],n,(function(){for(r=1;r=51||!t((function(){var a=[];return(a.constructor={})[i]=function(){return{foo:1}},1!==a[e](Boolean).foo}))}},function(e,a,n){var t=n(30),r=/"/g;e.exports=function(e,a,n,d){var i=String(t(e)),o="<"+a;return""!==n&&(o+=" "+n+'="'+String(d).replace(r,""")+'"'),o+">"+i+""}},function(e,a,n){var t=n(10);e.exports=function(e){return t((function(){var a=""[e]('"');return a!==a.toLowerCase()||a.split('"').length>3}))}},function(e,a,n){"use strict";var t=n(269).charAt;e.exports=function(e,a,n){return a+(n?t(e,a).length:1)}},function(e,a,n){var t=n(85),r=n(276),d=n(277),i=n(278),o=n(279),s=n(280);function Stack(e){var a=this.__data__=new t(e);this.size=a.size}Stack.prototype.clear=r,Stack.prototype.delete=d,Stack.prototype.get=i,Stack.prototype.has=o,Stack.prototype.set=s,e.exports=Stack},function(e,a,n){var t=n(43)(n(21),"Map");e.exports=t},function(e,a,n){var t=n(44),r=n(27),d="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";e.exports=function isFunction(e){if(!r(e))return!1;var a=t(e);return a==i||a==o||a==d||a==s}},function(e,a,n){var t=n(287),r=n(294),d=n(296),i=n(297),o=n(298);function MapCache(e){var a=-1,n=null==e?0:e.length;for(this.clear();++a-1&&e%1==0&&e<=n}},function(e,a){var n=9007199254740991,t=/^(?:0|[1-9]\d*)$/;e.exports=function isIndex(e,a){var r=typeof e;return!!(a=null==a?n:a)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e1||"".split(/.?/).length?function(e,n){var t=String(i(this)),d=void 0===n?4294967295:n>>>0;if(0===d)return[];if(void 0===e)return[t];if(!r(e))return a.call(t,e,d);for(var o,s,u,c=[],g=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,R=new RegExp(e.source,g+"g");(o=l.call(R,t))&&!((s=R.lastIndex)>f&&(c.push(t.slice(f,o.index)),o.length>1&&o.index=d));)R.lastIndex===o.index&&R.lastIndex++;return f===t.length?!u&&R.test("")||c.push(""):c.push(t.slice(f)),c.length>d?c.slice(0,d):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:a.call(this,e,n)}:a,[function split(a,n){var r=i(this),d=null==a?void 0:a[e];return void 0!==d?d.call(a,r,n):t.call(String(r),a,n)},function(e,r){var i=n(t,e,this,r,t!==a);if(i.done)return i.value;var l=d(e),g=String(this),p=o(l,RegExp),h=l.unicode,m=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(R?"y":"g"),y=new p(R?l:"^(?:"+l.source+")",m),v=void 0===r?4294967295:r>>>0;if(0===v)return[];if(0===g.length)return null===c(y,g)?[g]:[];for(var b=0,_=0,x=[];_e.length)return;if(!(b instanceof Token)){if(f&&y!=a.length-1){if(l.lastIndex=v,!(w=l.exec(e)))break;for(var _=w.index+(p?w[1].length:0),x=w.index+w[0].length,E=y,S=v,k=a.length;E=(S+=a[E].length)&&(++y,v=S);if(a[y]instanceof Token)continue;C=E-y,b=e.slice(v,S),w.index-=v}else{l.lastIndex=0;var w=l.exec(b),C=1}if(w){p&&(R=w[1]?w[1].length:0);x=(_=w.index+R)+(w=w[0].slice(R)).length;var P=b.slice(0,_),D=b.slice(x),j=[y,C];P&&(++y,v+=P.length,j.push(P));var A=new Token(s,g?t.tokenize(w,g):w,h,w,f);if(j.push(A),D&&j.push(D),Array.prototype.splice.apply(a,j),1!=C&&t.matchGrammar(e,a,n,y,v,!0,s),i)break}else if(i)break}}}}},tokenize:function(e,a){var n=[e],r=a.rest;if(r){for(var d in r)a[d]=r[d];delete a.rest}return t.matchGrammar(e,n,a,0,0,!1),n},hooks:{all:{},add:function(e,a){var n=t.hooks.all;n[e]=n[e]||[],n[e].push(a)},run:function(e,a){var n=t.hooks.all[e];if(n&&n.length)for(var r,d=0;r=n[d++];)r(a)}},Token:Token};function Token(e,a,n,t,r){this.type=e,this.content=a,this.alias=n,this.length=0|(t||"").length,this.greedy=!!r}if(e.Prism=t,Token.stringify=function(e,a){if("string"==typeof e)return e;if(Array.isArray(e))return e.map((function(e){return Token.stringify(e,a)})).join("");var n={type:e.type,content:Token.stringify(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a};if(e.alias){var r=Array.isArray(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(n.classes,r)}t.hooks.run("wrap",n);var d=Object.keys(n.attributes).map((function(e){return e+'="'+(n.attributes[e]||"").replace(/"/g,""")+'"'})).join(" ");return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+(d?" "+d:"")+">"+n.content+""},!e.document)return e.addEventListener?(t.disableWorkerMessageHandler||e.addEventListener("message",(function(a){var n=JSON.parse(a.data),r=n.language,d=n.code,i=n.immediateClose;e.postMessage(t.highlight(d,t.languages[r],r)),i&&e.close()}),!1),t):t;var r=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return r&&(t.filename=r.src,t.manual||r.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(t.highlightAll):window.setTimeout(t.highlightAll,16):document.addEventListener("DOMContentLoaded",t.highlightAll))),t}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==a&&(a.Prism=n)}).call(this,n(14))},function(e,a,n){var t=n(812);e.exports=function isNaN(e){return t(e)&&e!=+e}},function(e,a,n){e.exports=n(816).default},function(e,a,n){var t=n(22),r=n(10),d=n(141);e.exports=!t&&!r((function(){return 7!=Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a}))},function(e,a,n){var t=n(13),r=n(16),d=t.document,i=r(d)&&r(d.createElement);e.exports=function(e){return i?d.createElement(e):{}}},function(e,a){e.exports=!1},function(e,a,n){var t=n(61);e.exports=t("native-function-to-string",Function.toString)},function(e,a,n){var t,r,d,i=n(232),o=n(13),s=n(16),u=n(41),c=n(26),l=n(109),g=n(62),p=o.WeakMap;if(i){var f=new p,R=f.get,h=f.has,m=f.set;t=function(e,a){return m.call(f,e,a),a},r=function(e){return R.call(f,e)||{}},d=function(e){return h.call(f,e)}}else{var y=l("state");g[y]=!0,t=function(e,a){return u(e,y,a),a},r=function(e){return c(e,y)?e[y]:{}},d=function(e){return c(e,y)}}e.exports={set:t,get:r,has:d,enforce:function(e){return d(e)?r(e):t(e,{})},getterFor:function(e){return function(a){var n;if(!s(a)||(n=r(a)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,a,n){var t=n(26),r=n(233),d=n(106),i=n(19);e.exports=function(e,a){for(var n=r(a),o=i.f,s=d.f,u=0;us;)t(o,n=a[s++])&&(~d(u,n)||u.push(n));return u}},function(e,a,n){var t=n(10),r=/#|\.prototype\./,isForced=function(e,a){var n=i[d(e)];return n==s||n!=o&&("function"==typeof a?t(a):!!a)},d=isForced.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=isForced.data={},o=isForced.NATIVE="N",s=isForced.POLYFILL="P";e.exports=isForced},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=function(){function defineProperties(e,a){for(var n=0;n=this.index)a.push(e);else for(var t=0;tn)return void a.splice(t,0,e)}},{key:"reset",value:function reset(){this.registry=[]}},{key:"remove",value:function remove(e){var a=this.registry.indexOf(e);this.registry.splice(a,1)}},{key:"toString",value:function toString(e){return this.registry.filter((function(e){return e.attached})).map((function(a){return a.toString(e)})).join("\n")}},{key:"index",get:function get(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),SheetsRegistry}();a.default=r},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(240));a.default=function(e){return e&&e[t.default]&&e===e[t.default]()}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function linkRule(e,a){e.renderable=a,e.rules&&a.cssRules&&e.rules.link(a.cssRules)}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=_interopRequireDefault(n(33)),r=(_interopRequireDefault(n(153)),_interopRequireDefault(n(243)));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}a.default=function(){var e=0;return function(a,n){(e+=1)>1e10&&(0,t.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",e);var d="c",i="";return n&&(d=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(i+=n.options.jss.id)),""+d+r.default+i+e}}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=Object.assign||function(e){for(var a=1;a-1)return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_12__.a,null,Object(_util__WEBPACK_IMPORTED_MODULE_20__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_20__.c)(prop.defaultValue.value)));if("func"===propName||"function"===propName)return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_17__.a,{size:"small",color:"light",underlined:!0,title:Object(_util__WEBPACK_IMPORTED_MODULE_20__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_20__.c)(prop.defaultValue.value))},"Function");if("shape"===propName||"object"===propName)try{var object=eval("("+prop.defaultValue.value+")");return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_17__.a,{size:"small",color:"light",underlined:!0,title:javascript_stringify__WEBPACK_IMPORTED_MODULE_9___default()(object,null,2)},"Shape")}catch(e){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_17__.a,{size:"small",color:"light",underlined:!0,title:prop.defaultValue.value},"Shape")}}return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_12__.a,null,Object(_util__WEBPACK_IMPORTED_MODULE_20__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_20__.c)(prop.defaultValue.value)))}return prop.required?react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_17__.a,{size:"small",color:"light"},"Required"):""}function renderDescription(e){var a=e.description,n=e.tags,t=void 0===n?{}:n,r=renderExtra(e),d=[].concat(t.arg||[],t.argument||[],t.param||[]),i=t.return&&t.return[0]||t.returns&&t.returns[0];return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",null,a&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Markdown__WEBPACK_IMPORTED_MODULE_14__.a,{text:a}),r&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Para__WEBPACK_IMPORTED_MODULE_18__.a,null,r),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_JsDoc__WEBPACK_IMPORTED_MODULE_13__.a,t),d.length>0&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Arguments__WEBPACK_IMPORTED_MODULE_10__.a,{args:d,heading:!0}),i&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Argument__WEBPACK_IMPORTED_MODULE_11__.a,_extends({},i,{returns:!0})))}function renderExtra(e){var a=Object(_util__WEBPACK_IMPORTED_MODULE_20__.a)(e);if(!a)return null;switch(a.name){case"enum":return renderEnum(e);case"union":return renderUnion(e);case"shape":return renderShape(e.type.value);case"arrayOf":case"objectOf":return"shape"===a.value.name?renderShape(e.type.value.value):null;default:return null}}function renderUnion(e){var a=Object(_util__WEBPACK_IMPORTED_MODULE_20__.a)(e);if(!Array.isArray(a.value))return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("span",null,a.value);var n=a.value.map((function(e,a){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_16__.a,{key:e.name+"-"+a},renderType(e))}));return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("span",null,"One of type: ",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_group__WEBPACK_IMPORTED_MODULE_8___default.a,{separator:", "},n))}function renderName(e){var a=e.name,n=e.tags,t=void 0===n?{}:n;return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Name__WEBPACK_IMPORTED_MODULE_15__.a,{deprecated:!!t.deprecated},a)}function renderTypeColumn(e){return e.flowType?react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_16__.a,null,renderFlowType(Object(_util__WEBPACK_IMPORTED_MODULE_20__.a)(e))):react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Type__WEBPACK_IMPORTED_MODULE_16__.a,null,renderType(Object(_util__WEBPACK_IMPORTED_MODULE_20__.a)(e)))}function getRowKey(e){return e.name}var columns=[{caption:"Prop name",render:renderName},{caption:"Type",render:renderTypeColumn},{caption:"Default",render:renderDefault},{caption:"Description",render:renderDescription}];function PropsRenderer(e){var a=e.props;return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(rsg_components_Table__WEBPACK_IMPORTED_MODULE_19__.a,{columns:columns,rows:a,getRowKey:getRowKey})}PropsRenderer.propTypes={props:prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array.isRequired}},function(e,a,n){a.f=n(18)},function(e,a){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,a,n){"use strict";(function(e){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var t=n(343),r=n(344),d=n(345);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,a){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function byteLength(e,a){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var t=!1;;)switch(a){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(e).length;default:if(t)return utf8ToBytes(e).length;a=(""+a).toLowerCase(),t=!0}}function slowToString(e,a,n){var t=!1;if((void 0===a||a<0)&&(a=0),a>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(a>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,a,n);case"utf8":case"utf-8":return utf8Slice(this,a,n);case"ascii":return asciiSlice(this,a,n);case"latin1":case"binary":return latin1Slice(this,a,n);case"base64":return base64Slice(this,a,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,a,n);default:if(t)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),t=!0}}function swap(e,a,n){var t=e[a];e[a]=e[n],e[n]=t}function bidirectionalIndexOf(e,a,n,t,r){if(0===e.length)return-1;if("string"==typeof n?(t=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof a&&(a=Buffer.from(a,t)),Buffer.isBuffer(a))return 0===a.length?-1:arrayIndexOf(e,a,n,t,r);if("number"==typeof a)return a&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,a,n):Uint8Array.prototype.lastIndexOf.call(e,a,n):arrayIndexOf(e,[a],n,t,r);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,a,n,t,r){var d,i=1,o=e.length,s=a.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(e.length<2||a.length<2)return-1;i=2,o/=2,s/=2,n/=2}function read(e,a){return 1===i?e[a]:e.readUInt16BE(a*i)}if(r){var u=-1;for(d=n;do&&(n=o-s),d=n;d>=0;d--){for(var c=!0,l=0;lr&&(t=r):t=r;var d=a.length;if(d%2!=0)throw new TypeError("Invalid hex string");t>d/2&&(t=d/2);for(var i=0;i>8,r=n%256,d.push(r),d.push(t);return d}(a,e.length-n),e,n,t)}function base64Slice(e,a,n){return 0===a&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(a,n))}function utf8Slice(e,a,n){n=Math.min(e.length,n);for(var t=[],r=a;r239?4:c>223?3:c>191?2:1;if(r+g<=n)switch(g){case 1:c<128&&(l=c);break;case 2:128==(192&(d=e[r+1]))&&(u=(31&c)<<6|63&d)>127&&(l=u);break;case 3:d=e[r+1],o=e[r+2],128==(192&d)&&128==(192&o)&&(u=(15&c)<<12|(63&d)<<6|63&o)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:d=e[r+1],o=e[r+2],s=e[r+3],128==(192&d)&&128==(192&o)&&128==(192&s)&&(u=(15&c)<<18|(63&d)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,g=1):l>65535&&(l-=65536,t.push(l>>>10&1023|55296),l=56320|1023&l),t.push(l),r+=g}return function decodeCodePointsArray(e){var a=e.length;if(a<=i)return String.fromCharCode.apply(String,e);var n="",t=0;for(;t0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},Buffer.prototype.compare=function compare(e,a,n,t,r){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===a&&(a=0),void 0===n&&(n=e?e.length:0),void 0===t&&(t=0),void 0===r&&(r=this.length),a<0||n>e.length||t<0||r>this.length)throw new RangeError("out of range index");if(t>=r&&a>=n)return 0;if(t>=r)return-1;if(a>=n)return 1;if(this===e)return 0;for(var d=(r>>>=0)-(t>>>=0),i=(n>>>=0)-(a>>>=0),o=Math.min(d,i),s=this.slice(t,r),u=e.slice(a,n),c=0;cr)&&(n=r),e.length>0&&(n<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var d=!1;;)switch(t){case"hex":return hexWrite(this,e,a,n);case"utf8":case"utf-8":return utf8Write(this,e,a,n);case"ascii":return asciiWrite(this,e,a,n);case"latin1":case"binary":return latin1Write(this,e,a,n);case"base64":return base64Write(this,e,a,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,a,n);default:if(d)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),d=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var i=4096;function asciiSlice(e,a,n){var t="";n=Math.min(e.length,n);for(var r=a;rt)&&(n=t);for(var r="",d=a;dn)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,a,n,t,r,d){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>r||ae.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,a,n,t){a<0&&(a=65535+a+1);for(var r=0,d=Math.min(e.length-n,2);r>>8*(t?r:1-r)}function objectWriteUInt32(e,a,n,t){a<0&&(a=4294967295+a+1);for(var r=0,d=Math.min(e.length-n,4);r>>8*(t?r:3-r)&255}function checkIEEE754(e,a,n,t,r,d){if(n+t>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(e,a,n,t,d){return d||checkIEEE754(e,0,n,4),r.write(e,a,n,t,23,4),n+4}function writeDouble(e,a,n,t,d){return d||checkIEEE754(e,0,n,8),r.write(e,a,n,t,52,8),n+8}Buffer.prototype.slice=function slice(e,a){var n,t=this.length;if((e=~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),(a=void 0===a?t:~~a)<0?(a+=t)<0&&(a=0):a>t&&(a=t),a0&&(r*=256);)t+=this[e+--a]*r;return t},Buffer.prototype.readUInt8=function readUInt8(e,a){return a||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function readUInt16LE(e,a){return a||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(e,a){return a||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(e,a){return a||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(e,a){return a||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function readIntLE(e,a,n){e|=0,a|=0,n||checkOffset(e,a,this.length);for(var t=this[e],r=1,d=0;++d=(r*=128)&&(t-=Math.pow(2,8*a)),t},Buffer.prototype.readIntBE=function readIntBE(e,a,n){e|=0,a|=0,n||checkOffset(e,a,this.length);for(var t=a,r=1,d=this[e+--t];t>0&&(r*=256);)d+=this[e+--t]*r;return d>=(r*=128)&&(d-=Math.pow(2,8*a)),d},Buffer.prototype.readInt8=function readInt8(e,a){return a||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function readInt16LE(e,a){a||checkOffset(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function readInt16BE(e,a){a||checkOffset(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function readInt32LE(e,a){return a||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(e,a){return a||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function readFloatLE(e,a){return a||checkOffset(e,4,this.length),r.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(e,a){return a||checkOffset(e,4,this.length),r.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(e,a){return a||checkOffset(e,8,this.length),r.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(e,a){return a||checkOffset(e,8,this.length),r.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(e,a,n,t){(e=+e,a|=0,n|=0,t)||checkInt(this,e,a,n,Math.pow(2,8*n)-1,0);var r=1,d=0;for(this[a]=255&e;++d=0&&(d*=256);)this[a+r]=e/d&255;return a+n},Buffer.prototype.writeUInt8=function writeUInt8(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[a]=255&e,a+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8):objectWriteUInt16(this,e,a,!0),a+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=e>>>8,this[a+1]=255&e):objectWriteUInt16(this,e,a,!1),a+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[a+3]=e>>>24,this[a+2]=e>>>16,this[a+1]=e>>>8,this[a]=255&e):objectWriteUInt32(this,e,a,!0),a+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=255&e):objectWriteUInt32(this,e,a,!1),a+4},Buffer.prototype.writeIntLE=function writeIntLE(e,a,n,t){if(e=+e,a|=0,!t){var r=Math.pow(2,8*n-1);checkInt(this,e,a,n,r-1,-r)}var d=0,i=1,o=0;for(this[a]=255&e;++d>0)-o&255;return a+n},Buffer.prototype.writeIntBE=function writeIntBE(e,a,n,t){if(e=+e,a|=0,!t){var r=Math.pow(2,8*n-1);checkInt(this,e,a,n,r-1,-r)}var d=n-1,i=1,o=0;for(this[a+d]=255&e;--d>=0&&(i*=256);)e<0&&0===o&&0!==this[a+d+1]&&(o=1),this[a+d]=(e/i>>0)-o&255;return a+n},Buffer.prototype.writeInt8=function writeInt8(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[a]=255&e,a+1},Buffer.prototype.writeInt16LE=function writeInt16LE(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8):objectWriteUInt16(this,e,a,!0),a+2},Buffer.prototype.writeInt16BE=function writeInt16BE(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=e>>>8,this[a+1]=255&e):objectWriteUInt16(this,e,a,!1),a+2},Buffer.prototype.writeInt32LE=function writeInt32LE(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8,this[a+2]=e>>>16,this[a+3]=e>>>24):objectWriteUInt32(this,e,a,!0),a+4},Buffer.prototype.writeInt32BE=function writeInt32BE(e,a,n){return e=+e,a|=0,n||checkInt(this,e,a,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=255&e):objectWriteUInt32(this,e,a,!1),a+4},Buffer.prototype.writeFloatLE=function writeFloatLE(e,a,n){return writeFloat(this,e,a,!0,n)},Buffer.prototype.writeFloatBE=function writeFloatBE(e,a,n){return writeFloat(this,e,a,!1,n)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,a,n){return writeDouble(this,e,a,!0,n)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,a,n){return writeDouble(this,e,a,!1,n)},Buffer.prototype.copy=function copy(e,a,n,t){if(n||(n=0),t||0===t||(t=this.length),a>=e.length&&(a=e.length),a||(a=0),t>0&&t=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),e.length-a=0;--r)e[r+a]=this[r+n];else if(d<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(d=a;d55295&&n<57344){if(!r){if(n>56319){(a-=3)>-1&&d.push(239,191,189);continue}if(i+1===t){(a-=3)>-1&&d.push(239,191,189);continue}r=n;continue}if(n<56320){(a-=3)>-1&&d.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(a-=3)>-1&&d.push(239,191,189);if(r=null,n<128){if((a-=1)<0)break;d.push(n)}else if(n<2048){if((a-=2)<0)break;d.push(n>>6|192,63&n|128)}else if(n<65536){if((a-=3)<0)break;d.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((a-=4)<0)break;d.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return d}function base64ToBytes(e){return t.toByteArray(function base64clean(e){if((e=function stringtrim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(o,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,a,n,t){for(var r=0;r=a.length||r>=e.length);++r)a[r+n]=e[r];return r}}).call(this,n(14))},function(e,a,n){"use strict";var t=n(10);e.exports=function(e,a){var n=[][e];return!n||!t((function(){n.call(null,a||function(){throw 1},1)}))}},function(e,a){e.exports=function arrayMap(e,a){for(var n=-1,t=null==e?0:e.length,r=Array(t);++ng))return!1;var f=c.get(e);if(f&&c.get(a))return f==a;var R=-1,h=!0,m=n&o?new t:void 0;for(c.set(e,a),c.set(a,e);++Rx;)proxy(_[x++]);h.constructor=b,b.prototype=h,l(r,"RegExp",b)}p("RegExp")},function(e,a,n){var t=n(16),r=n(60),d=n(18)("match");e.exports=function(e){var a;return t(e)&&(void 0!==(a=e[d])?!!a:"RegExp"==r(e))}},function(e,a,n){var t=n(27),r=n(96),d=NaN,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function toNumber(e){if("number"==typeof e)return e;if(r(e))return d;if(t(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=t(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?d:+e}},function(e,a,n){var t=n(50),r=n(391),d=Object.prototype;r!==d.toString&&t(d,"toString",r,{unsafe:!0})},function(e,a,n){"use strict";var t=n(82),r=n(17),d=n(51),i=n(30),o=n(120),s=n(83);t("match",1,(function(e,a,n){return[function match(a){var n=i(this),t=null==a?void 0:a[e];return void 0!==t?t.call(a,n):new RegExp(a)[e](String(n))},function(e){var t=n(a,e,this);if(t.done)return t.value;var i=r(e),u=String(this);if(!i.global)return s(i,u);var c=i.unicode;i.lastIndex=0;for(var l,g=[],p=0;null!==(l=s(i,u));){var f=String(l[0]);g[p]=f,""===f&&(i.lastIndex=o(u,d(i.lastIndex),c)),p++}return 0===p?null:g}]}))},function(e,a,n){"use strict";var t=n(15),r=n(393).trim;t({target:"String",proto:!0,forced:n(394)("trim")},{trim:function trim(){return r(this)}})},function(e,a){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,a,n){var t=n(10);e.exports=!t((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.processStyleName=void 0,a.createMarkupForStyles=function createMarkupForStyles(e,a){var n="";for(var r in e){var d=0===r.indexOf("--");if(e.hasOwnProperty(r)&&"label"!==r){var o=e[r];0,null!=o&&(d?n+=r+":"+o+";":(n+=i(r)+":",n+=(0,t.default)(r,o,a)+";"))}}return n||null};_interopRequireDefault(n(822));var t=_interopRequireDefault(n(824)),r=_interopRequireDefault(n(827)),d=_interopRequireDefault(n(829));_interopRequireDefault(n(194));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=a.processStyleName=(0,d.default)(r.default)},function(e,a,n){"use strict";var t=n(826);e.exports=t},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function capitalizeString(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=a.default},function(e,a,n){"use strict";function symbolObservablePonyfill(e){var a,n=e.Symbol;return"function"==typeof n?n.observable?a=n.observable:(a=n("observable"),n.observable=a):a="@@observable",a}n.d(a,"a",(function(){return symbolObservablePonyfill}))},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=Object.assign||function(e){for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:{},a=!1,n=[],t=void 0,r=void 0,d=function setSelector(){r.selector=n.join(",\n")},i=g(d);return{onProcessRule:function onProcessRule(d,s){if(s&&s!==t&&"style"===d.type&&l(d,s,e)){r||(t=d.options.jss.createStyleSheet(null,o),r=t.addRule("reset",u(e.reset)),t.attach());var c=d.selector;-1===n.indexOf(c)&&(n.push(c),a=i())}},onProcessSheet:function onProcessSheet(){!a&&n.length&&d()}}};var d=_interopRequireDefault(n(257)),i=_interopRequireDefault(n(258));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o={meta:"jss-isolate",index:-1/0,link:!0},s={inherited:d.default,all:i.default},u=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inherited";if("string"==typeof e)return s[e];if("object"===(void 0===e?"undefined":r(e))){if(Array.isArray(e)){var a=e[0],n=e[1];return t({},s[a],n)}return t({},d.default,e)}return d.default},c={keyframes:!0,conditional:!0},l=function shouldIsolate(e,a,n){var t=e.options.parent;if(t&&c[t.type])return!1;var r=null==n.isolate||n.isolate;return null!=a.options.isolate&&(r=a.options.isolate),null!=e.style.isolate&&(r=e.style.isolate,delete e.style.isolate),"string"==typeof r?r===e.key:r},g=function createDebounced(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Date.now();return function(){var t=Date.now();return!(t-n0&&void 0!==arguments[0]?arguments[0]:{});return{onProcessStyle:function onProcessStyle(a,n){if("style"!==n.type)return a;for(var t in a)a[t]=iterate(t,a[t],e);return a},onChangeValue:function onChangeValue(a,n){return iterate(n,a,e)}}};var r=addCamelCasedVersion(function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(259)).default);function iterate(e,a,n){if(!a)return a;var d=a,i=void 0===a?"undefined":t(a);switch("object"===i&&Array.isArray(a)&&(i="array"),i){case"object":if("fallbacks"===e){for(var o in a)a[o]=iterate(o,a[o],n);break}for(var s in a)a[s]=iterate(e+"-"+s,a[s],n);break;case"array":for(var u=0;u-1)return registerClass(e,a.split(" "));var r=e.options.parent;if("$"===a[0]){var d=r.getRule(a.substr(1));return d?d===e?((0,t.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(r.classes[e.key]+=" "+r.classes[d.key],!0):((0,t.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}e.options.parent.classes[e.key]+=" "+a;return!0}(a,e.composes),delete e.composes,e):e}}};var t=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(33))},function(e,a,n){"use strict";(function(e){Object.defineProperty(a,"__esModule",{value:!0});var t=Object.assign||function(e){for(var a=1;a1&&void 0!==arguments[1]&&arguments[1],r=n._history,d=r.stack,i=r.offset;if(d.length&&i>-1){n._history.stack=d.slice(0,i+1);var o=n._history.stack.length;if(o>m){var s=o-m;n._history.stack=d.slice(s,o),n._history.offset=Math.max(n._history.offset-s,0)}}var u=Date.now();if(a){var c=n._history.stack[n._history.offset];if(c&&u-c.timestamp=w&&a<=C&&e.startsWith(S)?e.substring(S.length):e})).join("\n");if(_!==P){var D=k[w];n._applyEdits({value:P,selectionStart:D.startsWith(S)?x-S.length:x,selectionEnd:E-(_.length-P.length)})}}else if(x!==E){var j=n._getLines(_,x),A=j.length-1,T=n._getLines(_,E).length-1,O=j[A];n._applyEdits({value:_.split("\n").map((function(e,a){return a>=A&&a<=T?S+e:e})).join("\n"),selectionStart:/\S/.test(O)?x+S.length:x,selectionEnd:E+S.length*(T-A+1)})}else{var I=x+S.length;n._applyEdits({value:_.substring(0,x)+S+_.substring(E),selectionStart:I,selectionEnd:I})}else if(e.keyCode===s){var M=x!==E;if(_.substring(0,x).endsWith(S)&&!M){e.preventDefault();var B=x-S.length;n._applyEdits({value:_.substring(0,x-S.length)+_.substring(E),selectionStart:B,selectionEnd:B})}}else if(e.keyCode===i){if(x===E){var F=n._getLines(_,x).pop().match(/^\s+/);if(F&&F[0]){e.preventDefault();var L="\n"+F[0],N=x+L.length;n._applyEdits({value:_.substring(0,x)+L+_.substring(E),selectionStart:N,selectionEnd:N})}}}else if(e.keyCode===g||e.keyCode===p||e.keyCode===f||e.keyCode===R){var U=void 0;e.keyCode===g&&e.shiftKey?U=["(",")"]:e.keyCode===p?U=e.shiftKey?["{","}"]:["[","]"]:e.keyCode===f?U=e.shiftKey?['"','"']:["'","'"]:e.keyCode!==R||e.shiftKey||(U=["`","`"]),x!==E&&U&&(e.preventDefault(),n._applyEdits({value:_.substring(0,x)+U[0]+_.substring(x,E)+U[1]+_.substring(E),selectionStart:x,selectionEnd:E+2}))}else(b?e.metaKey&&e.keyCode===c:e.ctrlKey&&e.keyCode===c)&&!e.shiftKey&&!e.altKey?(e.preventDefault(),n._undoEdit()):(b?e.metaKey&&e.keyCode===c&&e.shiftKey:v?e.ctrlKey&&e.keyCode===u:e.ctrlKey&&e.keyCode===c&&e.shiftKey)&&!e.altKey?(e.preventDefault(),n._redoEdit()):e.keyCode!==l||!e.ctrlKey||b&&!e.shiftKey||(e.preventDefault(),n.setState((function(e){return{capture:!e.capture}})))}},n._handleChange=function(e){var a=e.target,t=a.value,r=a.selectionStart,d=a.selectionEnd;n._recordChange({value:t,selectionStart:r,selectionEnd:d},!0),n.props.onValueChange(t)},n._history={stack:[],offset:-1},_possibleConstructorReturn(n,a)}return function _inherits(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}(Editor,e),r(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var e=this,a=this.props,n=a.value,r=a.style,i=a.padding,o=a.highlight,s=a.textareaId,u=a.autoFocus,c=a.disabled,l=a.form,g=a.maxLength,p=a.minLength,f=a.name,R=a.placeholder,h=a.readOnly,m=a.required,y=a.onClick,v=a.onFocus,b=a.onBlur,x=a.onKeyUp,S=(a.onKeyDown,a.onValueChange,a.tabSize,a.insertSpaces,a.ignoreTabKey,function _objectWithoutProperties(e,a){var n={};for(var t in e)a.indexOf(t)>=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}(a,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),k={paddingTop:i,paddingRight:i,paddingBottom:i,paddingLeft:i},w=o(n);return d.createElement("div",t({},S,{style:t({},E.container,r)}),d.createElement("textarea",{ref:function ref(a){return e._input=a},style:t({},E.editor,E.textarea,k),className:_,id:s,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:y,onKeyUp:x,onFocus:v,onBlur:b,disabled:c,form:l,maxLength:g,minLength:p,name:f,placeholder:R,readOnly:h,required:m,autoFocus:u,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),d.createElement("pre",t({"aria-hidden":"true",style:t({},E.editor,E.highlight,k)},"string"==typeof w?{dangerouslySetInnerHTML:{__html:w+"
"}}:{children:w})),d.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.npm__react-simple-code-editor__textarea:empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n .npm__react-simple-code-editor__textarea {\n color: transparent !important;\n }\n\n .npm__react-simple-code-editor__textarea::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n"}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(e){this._history=e.history}}]),Editor}(d.Component);x.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},a.default=x;var E={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}).call(this,n(14))},function(e,a,n){(function(a){e.exports=function(){var e=/[\\\'\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(e){return n[e]||"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}var t={};"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(e){t[e]=!0}));var r=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function isValidVariableName(e){return!t[e]&&r.test(e)}function toGlobalVariable(e){return"Function("+stringify("return this;")+")()"}function toPath(e){for(var a="",n=0;n-1)return void g.push(s.slice(),l[t]);c.push(e),l.push(s.slice())}if(!(s.length>r||o--<=0))return a(e,n,next)}:function(e,a){if(!(u.indexOf(e)>-1||s.length>r||o--<=0))return u.push(e),e=a(e,n,next),u.pop(),e};if("function"==typeof a){var f=p;p=function(e,n){return f(e,(function(e,t,r){return a(e,t,(function(e){return n(e,t,r)}))}))}}var R=p(e,stringify);if(g.length){for(var h=n?"\n":"",m=n?" = ":"=",y=";"+h,v=(f=n?"(function () {":"(function(){",["var x"+m+R]),b=0;b)/g,"")}},function(e,a,n){var t=n(175),r=n(129),d=n(380),i=n(23);e.exports=function map(e,a){return(i(e)?t:d)(e,r(a,3))}},function(e,a,n){var t=n(184),r=/[\\^$.*+?()[\]{}|]/g,d=RegExp(r.source);e.exports=function escapeRegExp(e){return(e=t(e))&&d.test(e)?e.replace(r,"\\$&"):e}},function(e,a,n){var t=n(27),r=n(390),d=n(187),i="Expected a function",o=Math.max,s=Math.min;e.exports=function debounce(e,a,n){var u,c,l,g,p,f,R=0,h=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError(i);function invokeFunc(a){var n=u,t=c;return u=c=void 0,R=a,g=e.apply(t,n)}function shouldInvoke(e){var n=e-f;return void 0===f||n>=a||n<0||m&&e-R>=l}function timerExpired(){var e=r();if(shouldInvoke(e))return trailingEdge(e);p=setTimeout(timerExpired,function remainingWait(e){var n=a-(e-f);return m?s(n,l-(e-R)):n}(e))}function trailingEdge(e){return p=void 0,y&&u?invokeFunc(e):(u=c=void 0,g)}function debounced(){var e=r(),n=shouldInvoke(e);if(u=arguments,c=this,f=e,n){if(void 0===p)return function leadingEdge(e){return R=e,p=setTimeout(timerExpired,a),h?invokeFunc(e):g}(f);if(m)return clearTimeout(p),p=setTimeout(timerExpired,a),invokeFunc(f)}return void 0===p&&(p=setTimeout(timerExpired,a)),g}return a=d(a)||0,t(n)&&(h=!!n.leading,l=(m="maxWait"in n)?o(d(n.maxWait)||0,a):l,y="trailing"in n?!!n.trailing:y),debounced.cancel=function cancel(){void 0!==p&&clearTimeout(p),R=0,u=f=c=p=void 0},debounced.flush=function flush(){return void 0===p?g:trailingEdge(r())},debounced}},function(e,a,n){"use strict";const t=n(395).generate,r=n(396).parse,d=n(0),i=n(397),o=n(400),s=n(402),u=n(403),c=d().addRange(0,1114111),l=d().addRange(0,65535),g=c.clone().remove(10,13,8232,8233),getCharacterClassEscapeSet=(e,a,n)=>a?n?u.UNICODE_IGNORE_CASE.get(e):u.UNICODE.get(e):u.REGULAR.get(e),getUnicodePropertyValueSet=(e,a)=>{const t=a?`${e}/${a}`:`Binary_Property/${e}`;try{return n(404)(`./${t}.js`)}catch(n){throw new Error(`Failed to recognize value \`${a}\` for property `+`\`${e}\`.`)}},getUnicodePropertyEscapeSet=(e,a)=>{const n=e.split("="),t=n[0];let r;if(1==n.length)r=(e=>{try{const a="General_Category",n=o(a,e);return getUnicodePropertyValueSet(a,n)}catch(e){}const a=i(e);return getUnicodePropertyValueSet(a)})(t);else{const e=i(t),a=o(e,n[1]);r=getUnicodePropertyValueSet(e,a)}return a?c.clone().remove(r):r.clone()};d.prototype.iuAddRange=function(e,a){const n=this;do{const a=caseFold(e);a&&n.add(a)}while(++e<=a);return n};const update=(e,a)=>{let n=r(a,p.useUnicodeFlag?"u":"");switch(n.type){case"characterClass":case"group":case"value":break;default:n=wrap(n,a)}Object.assign(e,n)},wrap=(e,a)=>({type:"group",behavior:"ignore",body:[e],raw:`(?:${a})`}),caseFold=e=>s.get(e)||!1,updateNamedReference=(e,a)=>{delete e.name,e.matchIndex=a},processTerm=(e,a,n)=>{switch(e.type){case"dot":p.unicode?update(e,(e=>e?c:g)(p.dotAll).toString(a)):p.dotAll&&update(e,"[\\s\\S]");break;case"characterClass":e=((e,a)=>{let n=d();for(const a of e.body)switch(a.type){case"value":if(n.add(a.codePoint),p.ignoreCase&&p.unicode&&!p.useUnicodeFlag){const e=caseFold(a.codePoint);e&&n.add(e)}break;case"characterClassRange":const e=a.min.codePoint,t=a.max.codePoint;n.addRange(e,t),p.ignoreCase&&p.unicode&&!p.useUnicodeFlag&&n.iuAddRange(e,t);break;case"characterClassEscape":n.add(getCharacterClassEscapeSet(a.value,p.unicode,p.ignoreCase));break;case"unicodePropertyEscape":n.add(getUnicodePropertyEscapeSet(a.value,a.negative));break;default:throw new Error(`Unknown term type: ${a.type}`)}return e.negative&&(n=(p.unicode?c:l).clone().remove(n)),update(e,n.toString(a)),e})(e,a);break;case"unicodePropertyEscape":update(e,getUnicodePropertyEscapeSet(e.value,e.negative).toString(a));break;case"characterClassEscape":update(e,getCharacterClassEscapeSet(e.value,p.unicode,p.ignoreCase).toString(a));break;case"group":if("normal"==e.behavior&&n.lastIndex++,e.name){const a=e.name.value;if(n.names[a])throw new Error(`Multiple groups with the same name (${a}) are not allowed.`);const t=n.lastIndex;delete e.name,n.names[a]=t,n.onNamedGroup&&n.onNamedGroup.call(null,a,t),n.unmatchedReferences[a]&&(n.unmatchedReferences[a].forEach(e=>{updateNamedReference(e,t)}),delete n.unmatchedReferences[a])}case"alternative":case"disjunction":case"quantifier":e.body=e.body.map(e=>processTerm(e,a,n));break;case"value":const t=e.codePoint,r=d(t);if(p.ignoreCase&&p.unicode&&!p.useUnicodeFlag){const e=caseFold(t);e&&r.add(e)}update(e,r.toString(a));break;case"reference":if(e.name){const a=e.name.value,t=n.names[a];if(t){updateNamedReference(e,t);break}n.unmatchedReferences[a]||(n.unmatchedReferences[a]=[]),n.unmatchedReferences[a].push(e)}break;case"anchor":case"empty":case"group":break;default:throw new Error(`Unknown term type: ${e.type}`)}return e},p={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};e.exports=(e,a,n)=>{const d={unicodePropertyEscape:n&&n.unicodePropertyEscape,namedGroups:n&&n.namedGroup,lookbehind:n&&n.lookbehind};p.ignoreCase=a&&a.includes("i"),p.unicode=a&&a.includes("u");const i=n&&n.dotAllFlag;p.dotAll=i&&a&&a.includes("s"),p.useUnicodeFlag=n&&n.useUnicodeFlag;const o={hasUnicodeFlag:p.useUnicodeFlag,bmpOnly:!p.unicode},s={onNamedGroup:n&&n.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},u=r(e,a,d);return processTerm(u,o,s),(e=>{const a=Object.keys(e.unmatchedReferences);if(a.length>0)throw new Error(`Unknown group names: ${a}`)})(s),t(u)}},function(e,a,n){"use strict";(function(e){var t=n(212),r=function Chunk(e,a,n){this.start=e,this.end=a,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};r.prototype.appendLeft=function appendLeft(e){this.outro+=e},r.prototype.appendRight=function appendRight(e){this.intro=this.intro+e},r.prototype.clone=function clone(){var e=new r(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},r.prototype.contains=function contains(e){return this.start=t.length)return"\t";var r=t.reduce((function(e,a){var n=/^ +/.exec(a)[0].length;return Math.min(n,e)}),1/0);return new Array(r+1).join(" ")}function getRelativePath(e,a){var n=e.split(/[/\\]/),t=a.split(/[/\\]/);for(n.pop();n[0]===t[0];)n.shift(),t.shift();if(n.length)for(var r=n.length;r--;)n[r]="..";return n.concat(t).join("/")}d.prototype.toString=function toString(){return JSON.stringify(this)},d.prototype.toUrl=function toUrl(){return"data:application/json;charset=utf-8;base64,"+btoa(this.toString())};var i=Object.prototype.toString;function isObject(e){return"[object Object]"===i.call(e)}function getLocator(e){for(var a=e.split("\n"),n=[],t=0,r=0;t>1;e=0&&r.push(t),this.rawSegments.push(r)}else this.pending&&this.rawSegments.push(this.pending);this.advance(a),this.pending=null},o.prototype.addUneditedChunk=function addUneditedChunk(e,a,n,t,r){for(var d=a.start,i=!0;d1){for(var n=0;n=e&&n<=a)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(a),this._split(n);var t=this.byStart[e],r=this.byEnd[a],d=t.previous,i=r.next,o=this.byStart[n];if(!o&&r===this.lastChunk)return this;var s=o?o.previous:this.lastChunk;return d&&(d.next=i),i&&(i.previous=d),s&&(s.next=t),o&&(o.previous=r),t.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=t.previous,this.lastChunk.next=null),t.previous=s,r.next=o||null,s||(this.firstChunk=t),o||(this.lastChunk=r),this},c.prototype.overwrite=function overwrite(e,a,n,t){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;if(a>this.original.length)throw new Error("end is out of bounds");if(e===a)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(a),!0===t&&(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),t={storeName:!0});var d=void 0!==t&&t.storeName,i=void 0!==t&&t.contentOnly;if(d){var o=this.original.slice(e,a);this.storedNames[o]=!0}var s=this.byStart[e],c=this.byEnd[a];if(s){if(a>s.end&&s.next!==this.byStart[s.end])throw new Error("Cannot overwrite across a split point");if(s.edit(n,d,i),s!==c){for(var l=s.next;l!==c;)l.edit("",!1),l=l.next;l.edit("",!1)}}else{var g=new r(e,a,"").edit(n,d);c.next=g,g.previous=c}return this},c.prototype.prepend=function prepend(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},c.prototype.prependLeft=function prependLeft(e,a){if("string"!=typeof a)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(a):this.intro=a+this.intro,this},c.prototype.prependRight=function prependRight(e,a){if("string"!=typeof a)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(a):this.outro=a+this.outro,this},c.prototype.remove=function remove(e,a){for(;e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;if(e===a)return this;if(e<0||a>this.original.length)throw new Error("Character is out of bounds");if(e>a)throw new Error("end must be greater than start");this._split(e),this._split(a);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=a>n.end?this.byStart[n.end]:null;return this},c.prototype.lastChar=function lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},c.prototype.lastLine=function lastLine(){var e=this.outro.lastIndexOf(s);if(-1!==e)return this.outro.substr(e+1);var a=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(e=n.outro.lastIndexOf(s)))return n.outro.substr(e+1)+a;a=n.outro+a}if(n.content.length>0){if(-1!==(e=n.content.lastIndexOf(s)))return n.content.substr(e+1)+a;a=n.content+a}if(n.intro.length>0){if(-1!==(e=n.intro.lastIndexOf(s)))return n.intro.substr(e+1)+a;a=n.intro+a}}while(n=n.previous);return-1!==(e=this.intro.lastIndexOf(s))?this.intro.substr(e+1)+a:this.intro+a},c.prototype.slice=function slice(e,a){for(void 0===e&&(e=0),void 0===a&&(a=this.original.length);e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;for(var n="",t=this.firstChunk;t&&(t.start>e||t.end<=e);){if(t.start=a)return n;t=t.next}if(t&&t.edited&&t.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var r=t;t;){!t.intro||r===t&&t.start!==e||(n+=t.intro);var d=t.start=a;if(d&&t.edited&&t.end!==a)throw new Error("Cannot use replaced character "+a+" as slice end anchor.");var i=r===t?e-t.start:0,o=d?t.content.length+a-t.end:t.content.length;if(n+=t.content.slice(i,o),!t.outro||d&&t.end!==a||(n+=t.outro),d)break;t=t.next}return n},c.prototype.snip=function snip(e,a){var n=this.clone();return n.remove(0,e),n.remove(a,n.original.length),n},c.prototype._split=function _split(e){if(!this.byStart[e]&&!this.byEnd[e])for(var a=this.lastSearchedChunk,n=e>a.end;a;){if(a.contains(e))return this._splitChunk(a,e);a=n?this.byStart[a.end]:this.byEnd[a.start]}},c.prototype._splitChunk=function _splitChunk(e,a){if(e.edited&&e.content.length){var n=getLocator(this.original)(a);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var t=e.split(a);return this.byEnd[a]=e,this.byStart[a]=t,this.byEnd[t.end]=t,e===this.lastChunk&&(this.lastChunk=t),this.lastSearchedChunk=e,!0},c.prototype.toString=function toString(){for(var e=this.intro,a=this.firstChunk;a;)e+=a.toString(),a=a.next;return e+this.outro},c.prototype.isEmpty=function isEmpty(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},c.prototype.length=function length(){var e=this.firstChunk,length=0;do{length+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return length},c.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},c.prototype.trim=function trim(e){return this.trimStart(e).trimEnd(e)},c.prototype.trimEndAborted=function trimEndAborted(e){var a=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(a,""),this.outro.length)return!0;var n=this.lastChunk;do{var t=n.end,r=n.trimEnd(a);if(n.end!==t&&(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),r)return!0;n=n.previous}while(n);return!1},c.prototype.trimEnd=function trimEnd(e){return this.trimEndAborted(e),this},c.prototype.trimStartAborted=function trimStartAborted(e){var a=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(a,""),this.intro.length)return!0;var n=this.firstChunk;do{var t=n.end,r=n.trimStart(a);if(n.end!==t&&(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),r)return!0;n=n.next}while(n);return!1},c.prototype.trimStart=function trimStart(e){return this.trimStartAborted(e),this};var l=Object.prototype.hasOwnProperty,g=function Bundle(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};g.prototype.addSource=function addSource(e){if(e instanceof c)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!isObject(e)||!e.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(a){l.call(e,a)||(e[a]=e.content[a])})),void 0===e.separator&&(e.separator=this.separator),e.filename)if(l.call(this.uniqueSourceIndexByFilename,e.filename)){var a=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==a.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},g.prototype.append=function append(e,a){return this.addSource({content:new c(e),separator:a&&a.separator||""}),this},g.prototype.clone=function clone(){var e=new g({intro:this.intro,separator:this.separator});return this.sources.forEach((function(a){e.addSource({filename:a.filename,content:a.content.clone(),separator:a.separator})})),e},g.prototype.generateDecodedMap=function generateDecodedMap(e){var a=this;void 0===e&&(e={});var n=[];this.sources.forEach((function(e){Object.keys(e.content.storedNames).forEach((function(e){~n.indexOf(e)||n.push(e)}))}));var t=new o(e.hires);return this.intro&&t.advance(this.intro),this.sources.forEach((function(e,r){r>0&&t.advance(a.separator);var d=e.filename?a.uniqueSourceIndexByFilename[e.filename]:-1,i=e.content,o=getLocator(i.original);i.intro&&t.advance(i.intro),i.firstChunk.eachNext((function(a){var r=o(a.start);a.intro.length&&t.advance(a.intro),e.filename?a.edited?t.addEdit(d,a.content,r,a.storeName?n.indexOf(a.original):-1):t.addUneditedChunk(d,a,i.original,r,i.sourcemapLocations):t.advance(a.content),a.outro.length&&t.advance(a.outro)})),i.outro&&t.advance(i.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((function(a){return e.file?getRelativePath(e.file,a.filename):a.filename})),sourcesContent:this.uniqueSources.map((function(a){return e.includeContent?a.content:null})),names:n,mappings:t.raw}},g.prototype.generateMap=function generateMap(e){return new d(this.generateDecodedMap(e))},g.prototype.getIndentString=function getIndentString(){var e={};return this.sources.forEach((function(a){var n=a.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)})),Object.keys(e).sort((function(a,n){return e[a]-e[n]}))[0]||"\t"},g.prototype.indent=function indent(e){var a=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((function(t,r){var d=void 0!==t.separator?t.separator:a.separator,i=n||r>0&&/\r?\n$/.test(d);t.content.indent(e,{exclude:t.indentExclusionRanges,indentStart:i}),n="\n"===t.content.lastChar()})),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,(function(a,n){return n>0?e+a:a}))),this},g.prototype.prepend=function prepend(e){return this.intro=e+this.intro,this},g.prototype.toString=function toString(){var e=this,a=this.sources.map((function(a,n){var t=void 0!==a.separator?a.separator:e.separator;return(n>0?t:"")+a.content.toString()})).join("");return this.intro+a},g.prototype.isEmpty=function isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((function(e){return!e.content.isEmpty()}))},g.prototype.length=function length(){return this.sources.reduce((function(e,a){return e+a.content.length()}),this.intro.length)},g.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},g.prototype.trim=function trim(e){return this.trimStart(e).trimEnd(e)},g.prototype.trimStart=function trimStart(e){var a=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(a,""),!this.intro){var n,t=0;do{if(!(n=this.sources[t++]))break}while(!n.content.trimStartAborted(e))}return this},g.prototype.trimEnd=function trimEnd(e){var a,n=new RegExp((e||"\\s")+"+$"),t=this.sources.length-1;do{if(!(a=this.sources[t--])){this.intro=this.intro.replace(n,"");break}}while(!a.content.trimEndAborted(e));return this},a.a=c}).call(this,n(173).Buffer)},function(e,a,n){"use strict";n.d(a,"a",(function(){return encode}));for(var t={},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=0;d0&&(d+=";"),0!==o.length){for(var s=0,u=[],c=0,l=o;c1&&(p+=encodeInteger(g[1]-a)+encodeInteger(g[2]-n)+encodeInteger(g[3]-t),a=g[1],n=g[2],t=g[3]),5===g.length&&(p+=encodeInteger(g[4]-r),r=g[4]),u.push(p)}d+=u.join(",")}}return d}function encodeInteger(e){var a="";e=e<0?-e<<1|1:e<<1;do{var n=31&e;(e>>>=5)>0&&(n|=32),a+=r[n]}while(e>0);return a}},function(e,a,n){"use strict";const t=n(802),r=/^[\da-fA-F]+$/,d=/^\d+$/,i=new WeakMap;function getJsxTokens(e){e=e.Parser.acorn||e;let a=i.get(e);if(!a){const n=e.tokTypes,t=e.TokContext,r=e.TokenType,d=new t("...",!0,!0),u={tc_oTag:d,tc_cTag:o,tc_expr:s},c={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart"),jsxTagEnd:new r("jsxTagEnd")};c.jsxTagStart.updateContext=function(){this.context.push(s),this.context.push(d),this.exprAllowed=!1},c.jsxTagEnd.updateContext=function(e){let a=this.context.pop();a===d&&e===n.slash||a===o?(this.context.pop(),this.exprAllowed=this.curContext()===s):this.exprAllowed=!0},a={tokContexts:u,tokTypes:c},i.set(e,a)}return a}function getQualifiedJSXName(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property):void 0:e}e.exports=function(e){return e=e||{},function(a){return function plugin(e,a){const i=a.acorn||n(46),o=getJsxTokens(i),s=i.tokTypes,u=o.tokTypes,c=i.tokContexts,l=o.tokContexts.tc_oTag,g=o.tokContexts.tc_cTag,p=o.tokContexts.tc_expr,f=i.isNewLine,R=i.isIdentifierStart,h=i.isIdentifierChar;return class extends a{static get acornJsx(){return o}jsx_readToken(){let e="",a=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(a,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(a,this.pos),e+=this.jsx_readEntity(),a=this.pos;break;default:f(n)?(e+=this.input.slice(a,this.pos),e+=this.jsx_readNewLine(!0),a=this.pos):++this.pos}}}jsx_readNewLine(e){let a,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,a=e?"\n":"\r\n"):a=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),a}jsx_readString(e){let a="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let t=this.input.charCodeAt(this.pos);if(t===e)break;38===t?(a+=this.input.slice(n,this.pos),a+=this.jsx_readEntity(),n=this.pos):f(t)?(a+=this.input.slice(n,this.pos),a+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return a+=this.input.slice(n,this.pos++),this.finishToken(s.string,a)}jsx_readEntity(){let e,a="",n=0,i=this.input[this.pos];"&"!==i&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos")}let i=r.name?"Element":"Fragment";return n["opening"+i]=r,n["closing"+i]=d,n.children=t,this.type===s.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+i)}jsx_parseText(e){let a=this.parseLiteral(e);return a.type="JSXText",a}jsx_parseElement(){let e=this.start,a=this.startLoc;return this.next(),this.jsx_parseElementAt(e,a)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText(this.value):this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let a=this.curContext();if(a===p)return this.jsx_readToken();if(a===l||a===g){if(R(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(u.jsxTagEnd);if((34===e||39===e)&&a==l)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==s.braceL){var a=this.curContext();a==l?this.context.push(c.b_expr):a==p?this.context.push(c.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==s.slash||e!==u.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(g),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},a)}},Object.defineProperty(e.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(n(46)).tokTypes},configurable:!0,enumerable:!0})},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.DynamicImportKey=void 0;var t=function(){function defineProperties(e,a){for(var n=0;n=a||n<0||g&&e-c>=i}function timerExpired(){var e=now();if(shouldInvoke(e))return trailingEdge(e);s=setTimeout(timerExpired,function remainingWait(e){var n=a-(e-u);return g?R(n,i-(e-c)):n}(e))}function trailingEdge(e){return s=void 0,p&&r?invokeFunc(e):(r=d=void 0,o)}function debounced(){var e=now(),n=shouldInvoke(e);if(r=arguments,d=this,u=e,n){if(void 0===s)return function leadingEdge(e){return c=e,s=setTimeout(timerExpired,a),l?invokeFunc(e):o}(u);if(g)return s=setTimeout(timerExpired,a),invokeFunc(u)}return void 0===s&&(s=setTimeout(timerExpired,a)),o}return a=toNumber(a)||0,isObject(t)&&(l=!!t.leading,i=(g="maxWait"in t)?f(toNumber(t.maxWait)||0,a):i,p="trailing"in t?!!t.trailing:p),debounced.cancel=function cancel(){void 0!==s&&clearTimeout(s),c=0,r=u=d=s=void 0},debounced.flush=function flush(){return void 0===s?o:trailingEdge(now())},debounced}}).call(this,n(14))},function(e,a,n){n(220),e.exports=n(857)},function(e,a,n){var t=n(221);"string"==typeof t&&(t=[[e.i,t,""]]);var r={transform:void 0};n(223)(t,r);t.locals&&(e.exports=t.locals)},function(e,a,n){(e.exports=n(222)(!1)).push([e.i,".container {\n display: flex;\n flex-direction: column;\n font-family: sans-serif;\n}\n\n.container > p {\n font-size: 1rem;\n}\n\n.container > em {\n font-size: 0.8rem;\n}\n\n.dropzone {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px;\n border-width: 2px;\n border-radius: 2px;\n border-color: #eeeeee;\n border-style: dashed;\n background-color: #fafafa;\n color: #bdbdbd;\n outline: none;\n transition: border 0.24s ease-in-out;\n}\n\n.dropzone:focus {\n border-color: #2196f3;\n}\n\n.dropzone.disabled {\n opacity: 0.6;\n}\n",""])},function(e,a){e.exports=function(e){var a=[];return a.toString=function toString(){return this.map((function(a){var n=function cssWithMappingToString(e,a){var n=e[1]||"",t=e[3];if(!t)return n;if(a&&"function"==typeof btoa){var r=function toComment(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(t),d=t.sources.map((function(e){return"/*# sourceURL="+t.sourceRoot+e+" */"}));return[n].concat(d).concat([r]).join("\n")}return[n].join("\n")}(a,e);return a[2]?"@media "+a[2]+"{"+n+"}":n})).join("")},a.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var t={},r=0;r=0&&c.splice(a,1)}function createStyleElement(e){var a=document.createElement("style");return e.attrs.type="text/css",addAttrs(a,e.attrs),insertStyleElement(e,a),a}function addAttrs(e,a){Object.keys(a).forEach((function(n){e.setAttribute(n,a[n])}))}function addStyle(e,a){var n,t,r,d;if(a.transform&&e.css){if(!(d=a.transform(e.css)))return function(){};e.css=d}if(a.singleton){var i=u++;n=s||(s=createStyleElement(a)),t=applyToSingletonTag.bind(null,n,i,!1),r=applyToSingletonTag.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function createLinkElement(e){var a=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",addAttrs(a,e.attrs),insertStyleElement(e,a),a}(a),t=updateLink.bind(null,n,a),r=function(){removeStyleElement(n),n.href&&URL.revokeObjectURL(n.href)}):(n=createStyleElement(a),t=applyToTag.bind(null,n),r=function(){removeStyleElement(n)});return t(e),function updateStyle(a){if(a){if(a.css===e.css&&a.media===e.media&&a.sourceMap===e.sourceMap)return;t(e=a)}else r()}}e.exports=function(e,a){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(a=a||{}).attrs="object"==typeof a.attrs?a.attrs:{},a.singleton||(a.singleton=i()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var n=listToStyles(e,a);return addStylesToDom(n,a),function update(e){for(var t=[],r=0;r1)for(var n=1;nc;)if((o=s[c++])!=o)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},function(e,a,n){var t=n(78),r=Math.max,d=Math.min;e.exports=function(e,a){var n=t(e);return n<0?r(n+a,0):d(n,a)}},function(e,a,n){"use strict";var t=n(22),r=n(10),d=n(79),i=n(111),o=n(107),s=n(52),u=n(73),c=Object.assign;e.exports=!c||r((function(){var e={},a={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),7!=c({},e)[n]||"abcdefghijklmnopqrst"!=d(c({},a)).join("")}))?function assign(e,a){for(var n=s(e),r=arguments.length,c=1,l=i.f,g=o.f;r>c;)for(var p,f=u(arguments[c++]),R=l?d(f).concat(l(f)):d(f),h=R.length,m=0;h>m;)p=R[m++],t&&!g.call(f,p)||(n[p]=f[p]);return n}:c},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};a.default=function getDynamicStyles(e){var a=null;for(var n in e){var r=e[n],d=void 0===r?"undefined":t(r);if("function"===d)a||(a={}),a[n]=r;else if("object"===d&&null!==r&&!Array.isArray(r)){var i=getDynamicStyles(r);i&&(a||(a={}),a[n]=i)}}return a}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=function(){function defineProperties(e,a){for(var n=0;n0&&(this.refs[a]--,0===this.refs[a]&&this.sheets[a].detach()):(0,r.default)(!1,"SheetsManager: can't find sheet to unmanage")}},{key:"size",get:function get(){return this.keys.length}}]),SheetsManager}();a.default=d},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};a.default=function cloneStyle(e){if(null==e)return e;var a=void 0===e?"undefined":t(e);if("string"===a||"number"===a||"function"===a)return e;if(d(e))return e.map(cloneStyle);if((0,r.default)(e))return e;var n={};for(var i in e){var o=e[i];"object"!==(void 0===o?"undefined":t(o))?n[i]=o:n[i]=cloneStyle(o)}return n};var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(150));var d=Array.isArray},function(e,a,n){"use strict";n.r(a),function(e,t){var r,d=n(196);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:t;var i=Object(d.a)(r);a.default=i}.call(this,n(14),n(241)(e))},function(e,a){e.exports=function(e){if(!e.webpackPolyfill){var a=Object.create(e);a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),Object.defineProperty(a,"exports",{enumerable:!0}),a.webpackPolyfill=1}return a}},function(e,a,n){"use strict";(function(e){Object.defineProperty(a,"__esModule",{value:!0});e.CSS;a.default=function(e){return e}}).call(this,n(14))},function(e,a,n){"use strict";(function(e){Object.defineProperty(a,"__esModule",{value:!0});var n="2f1acc6c3a606b082e5eef5e54414ffb";null==e[n]&&(e[n]=0),a.default=e[n]++}).call(this,n(14))},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=Object.assign||function(e){for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return e.createGenerateClassName&&(this.options.createGenerateClassName=e.createGenerateClassName,this.generateClassName=e.createGenerateClassName()),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),(e.virtual||e.Renderer)&&(this.options.Renderer=e.Renderer||(e.virtual?m.default:h.default)),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function createStyleSheet(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.index;"number"!=typeof n&&(n=0===g.default.index?0:g.default.index+1);var t=new o.default(e,r({},a,{jss:this,generateClassName:a.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(t),t}},{key:"removeStyleSheet",value:function removeStyleSheet(e){return e.detach(),g.default.remove(e),this}},{key:"createRule",value:function createRule(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===e?"undefined":t(e))&&(n=a,a=e,e=void 0);var r=n;r.jss=this,r.Renderer=this.options.Renderer,r.generateClassName||(r.generateClassName=this.generateClassName),r.classes||(r.classes={});var d=(0,R.default)(e,a,r);return!r.selector&&d instanceof p.default&&(d.selector="."+r.generateClassName(d)),this.plugins.onProcessRule(d),d}},{key:"use",value:function use(){for(var e=this,a=arguments.length,n=Array(a),t=0;t0&&void 0!==arguments[0]?arguments[0]:{indent:1},a=this.rules.toString(e);return a&&(a+="\n"),this.key+" {\n"+a+"}"}}]),KeyframesRule}();a.default=i},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=Object.assign||function(e){for(var a=1;a0&&void 0!==arguments[0]?arguments[0]:{indent:1},a=this.rules.toString(e);return a?this.key+" {\n"+a+"\n}":""}}]),ConditionalRule}();a.default=i},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=function(){function defineProperties(e,a){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return e.substr(a,e.indexOf("{")-1)},function(e){if(e.type===c)return e.selectorText;if(e.type===l){var a=e.name;if(a)return"@keyframes "+a;var n=e.cssText;return"@"+u(n,n.indexOf("keyframes"))}return u(e.cssText)});function setSelector(e,a){return e.selectorText=a,e.selectorText===a}var p,f,R=s((function(){return document.head||document.getElementsByTagName("head")[0]})),h=(p=void 0,f=!1,function(e){var a={};p||(p=document.createElement("style"));for(var n=0;n0){var n=function findHigherSheet(e,a){for(var n=0;na.index&&t.options.insertionPoint===a.insertionPoint)return t}return null}(a,e);if(n)return n.renderer.element;if(n=function findHighestSheet(e,a){for(var n=e.length-1;n>=0;n--){var t=e[n];if(t.attached&&t.options.insertionPoint===a.insertionPoint)return t}return null}(a,e))return n.renderer.element.nextElementSibling}var t=e.insertionPoint;if(t&&"string"==typeof t){var i=function findCommentNode(e){for(var a=R(),n=0;n