From f3f70b64085784ed0f52e839b4d63abc5ff62350 Mon Sep 17 00:00:00 2001 From: xyy94813 Date: Thu, 6 Jul 2023 16:22:04 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20xyy94813?= =?UTF-8?q?/amap-react-components@20e25d164fa1c4eb5dc4727e0c739aa0b05ba94a?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iframe.html | 2 +- main.0ebfcea4ca1b9ac4f407.bundle.js | 2 -- main.0ebfcea4ca1b9ac4f407.bundle.js.map | 1 - main.2c0584dcb126eb2bc599.bundle.js | 2 ++ main.2c0584dcb126eb2bc599.bundle.js.map | 1 + runtime~main.0ebfcea4ca1b9ac4f407.bundle.js.map | 1 - ...bundle.js => runtime~main.2c0584dcb126eb2bc599.bundle.js | 2 +- runtime~main.2c0584dcb126eb2bc599.bundle.js.map | 1 + vendors~main.0ebfcea4ca1b9ac4f407.bundle.js.map | 1 - ...bundle.js => vendors~main.2c0584dcb126eb2bc599.bundle.js | 6 +++--- ... vendors~main.2c0584dcb126eb2bc599.bundle.js.LICENSE.txt | 0 vendors~main.2c0584dcb126eb2bc599.bundle.js.map | 1 + 12 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 main.0ebfcea4ca1b9ac4f407.bundle.js delete mode 100644 main.0ebfcea4ca1b9ac4f407.bundle.js.map create mode 100644 main.2c0584dcb126eb2bc599.bundle.js create mode 100644 main.2c0584dcb126eb2bc599.bundle.js.map delete mode 100644 runtime~main.0ebfcea4ca1b9ac4f407.bundle.js.map rename runtime~main.0ebfcea4ca1b9ac4f407.bundle.js => runtime~main.2c0584dcb126eb2bc599.bundle.js (97%) create mode 100644 runtime~main.2c0584dcb126eb2bc599.bundle.js.map delete mode 100644 vendors~main.0ebfcea4ca1b9ac4f407.bundle.js.map rename vendors~main.0ebfcea4ca1b9ac4f407.bundle.js => vendors~main.2c0584dcb126eb2bc599.bundle.js (99%) rename vendors~main.0ebfcea4ca1b9ac4f407.bundle.js.LICENSE.txt => vendors~main.2c0584dcb126eb2bc599.bundle.js.LICENSE.txt (100%) create mode 100644 vendors~main.2c0584dcb126eb2bc599.bundle.js.map diff --git a/iframe.html b/iframe.html index 4e1550d..1054e31 100644 --- a/iframe.html +++ b/iframe.html @@ -130,4 +130,4 @@ - window['FRAMEWORK_OPTIONS'] = {}; \ No newline at end of file + window['FRAMEWORK_OPTIONS'] = {}; \ No newline at end of file diff --git a/main.0ebfcea4ca1b9ac4f407.bundle.js b/main.0ebfcea4ca1b9ac4f407.bundle.js deleted file mode 100644 index eb8335f..0000000 --- a/main.0ebfcea4ca1b9ac4f407.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1137:function(module,exports,__webpack_require__){"use strict";__webpack_require__(8),__webpack_require__(4),__webpack_require__(50),__webpack_require__(1138),__webpack_require__(42),__webpack_require__(43),__webpack_require__(1139),__webpack_require__(34),__webpack_require__(44);var _clientApi=__webpack_require__(61),_clientLogger=__webpack_require__(40),_configFilename=__webpack_require__(1140);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);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"}},cursor:{description:"指定鼠标悬停时的鼠标样式",type:{required:!1,summary:"string"}},extData:{description:"设置用户自定义属性",type:{required:!1,summary:"Object"}},draggable:{description:"是否可拖动",type:{required:!1,summary:"type",defaultValue:!1},table:{defaultValue:!1},control:{type:"boolean"}},visible:{description:"显示或隐藏",type:{required:!1,summary:"boolean",defaultValue:!0},table:{defaultValue:!0},control:{type:"boolean"}},bubble:{description:"是否将覆盖物的鼠标或touch等事件冒泡到地图上",type:{required:!1,summary:"boolean",defaultValue:!1},table:{defaultValue:!1},control:{type:"boolean"}},onShow:{description:"显示,回调函数",type:{required:!1,summary:'(event: AMap.Event<"show">) => void'}},onHide:{description:"隐藏,回调函数",type:{required:!1,summary:'(event: AMap.Event<"hide">) => void'}}}};var Template=function Template(args){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(index__WEBPACK_IMPORTED_MODULE_4__.a,__assign({},args))},CommonUse=Template.bind({});CommonUse.storyName="基本使用",CommonUse.args={};var CustomStyle=Template.bind({});CustomStyle.storyName="自定义样式",CustomStyle.args={fillColor:"yellow",fillOpacity:.5,strokeColor:"red",strokeStyle:"dashed",strokeOpacity:.1,strokeWeight:20,strokeDasharray:[10,40]},CommonUse.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CommonUse.parameters),CustomStyle.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CustomStyle.parameters)},1146:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChangeOffset",(function(){return ChangeOffset})),__webpack_require__.d(__webpack_exports__,"ChangePosition",(function(){return ChangePosition})),__webpack_require__.d(__webpack_exports__,"HideControlButton",(function(){return HideControlButton}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},ChangeOffset.parameters),ChangePosition.parameters=__assign({storySource:{source:"(args) => "}},ChangePosition.parameters),HideControlButton.parameters=__assign({storySource:{source:"(args) => "}},HideControlButton.parameters)},1147:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CommonUse",(function(){return CommonUse})),__webpack_require__.d(__webpack_exports__,"CustomOverlay",(function(){return CustomOverlay}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(52),_AMapAutoFitView_stories_withAutoFitView__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(227),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i AMap.Overlay"}}},getPolyline:{description:"指定点要素的绘制方式,缺省时为 Polyline 的默认样式。",table:{type:{summary:"(geojson?: GeoJSON.GeoJSON, lnglat?: GeoJSON.Point, map?: AMap.Map | null, AMap?: AMap.AMap) => AMap.Overlay"}}},getPolygon:{description:"指定点要素的绘制方式,缺省时为 Polygon 的默认样式。",table:{type:{summary:"(geojson?: GeoJSON.GeoJSON, lnglat?: GeoJSON.Point, map?: AMap.Map | null, AMap?: AMap.AMap) => AMap.Overlay"}}}}};var Template=function Template(args){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(index__WEBPACK_IMPORTED_MODULE_3__.c,__assign({},args))},CommonUse=Template.bind({});CommonUse.storyName="基本使用",CommonUse.args={geoJSON:mockData};var CustomOverlay=Template.bind({});CustomOverlay.storyName="自定义覆盖物",CustomOverlay.args={geoJSON:mockData,options:{strokeColor:"red",strokeWeight:4},getMarker:function getMarker(_,lnglat,map,AMap){var options={position:lnglat,map:map,label:{offset:[],direction:"Top",content:"MyMarker"}};return new AMap.Marker(options)},getPolyline:function getPolyline(_,lnglat,map,AMap){var options={path:lnglat,map:map};return new AMap.Polyline(options)},getPolygon:function getPolygon(_,lnglat,map,AMap){var polygon=new AMap.Polygon,path=Object(index__WEBPACK_IMPORTED_MODULE_3__.j)(lnglat);return polygon.setPath(path),polygon.setOptions({strokeColor:"yellow"}),polygon.setMap(map),polygon}},CommonUse.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CommonUse.parameters),CustomOverlay.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CustomOverlay.parameters)},1148:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChangePosition",(function(){return ChangePosition})),__webpack_require__.d(__webpack_exports__,"ChangeStyle",(function(){return ChangeStyle})),__webpack_require__.d(__webpack_exports__,"ChangeTheme",(function(){return ChangeTheme})),__webpack_require__.d(__webpack_exports__,"NotAutoMove",(function(){return NotAutoMove}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},ChangePosition.parameters),ChangeStyle.parameters=__assign({storySource:{source:"(args) => "}},ChangeStyle.parameters),ChangeTheme.parameters=__assign({storySource:{source:"(args) => "}},ChangeTheme.parameters),NotAutoMove.parameters=__assign({storySource:{source:"(args) => "}},NotAutoMove.parameters)},1149:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CommonUse",(function(){return CommonUse})),__webpack_require__.d(__webpack_exports__,"DefaultType",(function(){return DefaultType})),__webpack_require__.d(__webpack_exports__,"DefaultShowTraffic",(function(){return DefaultShowTraffic})),__webpack_require__.d(__webpack_exports__,"DefaultShowRoad",(function(){return DefaultShowRoad}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},CommonUse.parameters),DefaultType.parameters=__assign({storySource:{source:"(args) => "}},DefaultType.parameters),DefaultShowTraffic.parameters=__assign({storySource:{source:"(args) => "}},DefaultShowTraffic.parameters),DefaultShowRoad.parameters=__assign({storySource:{source:"(args) => "}},DefaultShowRoad.parameters)},1150:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CommonUse",(function(){return CommonUse}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i) => void'}}}};var CommonUse=function Template(args){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(index__WEBPACK_IMPORTED_MODULE_4__.g,__assign({},args))}.bind({});CommonUse.storyName="基本使用",CommonUse.args={type:"polygon",options:{strokeColor:"red",strokeWeight:4},onCompleted:eventHandler.onCompleted},CommonUse.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CommonUse.parameters)},1151:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChangeOffset",(function(){return ChangeOffset})),__webpack_require__.d(__webpack_exports__,"ChangePosition",(function(){return ChangePosition}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},ChangeOffset.parameters),ChangePosition.parameters=__assign({storySource:{source:"(args) => "}},ChangePosition.parameters)},1152:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChangeOffset",(function(){return ChangeOffset})),__webpack_require__.d(__webpack_exports__,"ChangePosition",(function(){return ChangePosition}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},ChangeOffset.parameters),ChangePosition.parameters=__assign({storySource:{source:"(args) => "}},ChangePosition.parameters)},135:function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_components_AMapAPIContainer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(220);__webpack_exports__.a=function useAMapAPI(){return Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_components_AMapAPIContainer__WEBPACK_IMPORTED_MODULE_1__.a)}},136:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(13);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_useAMap__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(31),useAMapContainerBinder=function useAMapContainerBinder(curInstance){var map=Object(_useAMap__WEBPACK_IMPORTED_MODULE_2__.a)().map;Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){var clearEffect;return curInstance&&map?(clearEffect=function clearEffect(){try{map.remove(curInstance)}catch(error){}},map.add(curInstance),clearEffect):clearEffect}),[curInstance,map])};__webpack_exports__.a=useAMapContainerBinder;try{useAMapContainerBinder.displayName="useAMapContainerBinder",useAMapContainerBinder.__docgenInfo={description:"",displayName:"useAMapContainerBinder",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useAMapContainerBinder.ts#useAMapContainerBinder"]={docgenInfo:useAMapContainerBinder.__docgenInfo,name:"useAMapContainerBinder",path:"src/hooks/useAMapContainerBinder.ts#useAMapContainerBinder"})}catch(__react_docgen_typescript_loader_error){}},169:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return AMapMap_AMapMapContext})),__webpack_require__.d(__webpack_exports__,"a",(function(){return AMapMap_AMapMap}));var react=__webpack_require__(0),react_default=__webpack_require__.n(react),AMapMap_AMapMapContext=react.createContext(null),useAMapAPI=__webpack_require__(135),CONTAINER_STYLE={width:"100%",height:"100%"},defaultProps={center:void 0,cityName:void 0,zoom:void 0},AMapMap=Object(react.forwardRef)((function(_a,ref){var children=_a.children,center=_a.center,cityName=_a.cityName,zoom=_a.zoom,AMap=Object(useAMapAPI.a)().__AMAP__,$mapContainer=Object(react.useRef)(null),_b=Object(react.useState)(null),curMap=_b[0],setInstance=_b[1];return Object(react.useEffect)((function(){var clearEffect;if(!$mapContainer.current||!AMap)return clearEffect;return function initMap(){var newInstance=new AMap.Map($mapContainer.current);clearEffect=function clearEffect(){newInstance.destroy()},setInstance(newInstance)}(),clearEffect}),[AMap]),Object(react.useImperativeHandle)(ref,(function(){return curMap}),[curMap]),Object(react.useEffect)((function(){var _a;cityName&&(null===(_a=null==curMap?void 0:curMap.setCity)||void 0===_a||_a.call(curMap,cityName,(function(){})))}),[cityName,curMap]),Object(react.useEffect)((function(){zoom&&(null==curMap||curMap.setZoom(zoom))}),[zoom,curMap]),Object(react.useEffect)((function(){var _a;center&&(null===(_a=null==curMap?void 0:curMap.setCenter)||void 0===_a||_a.call(curMap,center))}),[center,curMap]),react_default.a.createElement("div",{style:CONTAINER_STYLE,ref:$mapContainer},react_default.a.createElement(AMapMap_AMapMapContext.Provider,{value:curMap},children))}));AMapMap.defaultProps=defaultProps;var AMapMap_AMapMap=Object(react.memo)(AMapMap);try{AMapMap.displayName="AMapMap",AMapMap.__docgenInfo={description:"",displayName:"AMapMap",props:{center:{defaultValue:{value:"undefined"},description:"",name:"center",required:!1,type:{name:"[number, number]"}},cityName:{defaultValue:{value:"undefined"},description:"",name:"cityName",required:!1,type:{name:"string"}},zoom:{defaultValue:{value:"undefined"},description:"",name:"zoom",required:!1,type:{name:"number"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"ReactText"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMap/AMapMap.tsx#AMapMap"]={docgenInfo:AMapMap.__docgenInfo,name:"AMapMap",path:"src/components/AMapMap/AMapMap.tsx#AMapMap"})}catch(__react_docgen_typescript_loader_error){}try{AMapMap.displayName="AMapMap",AMapMap.__docgenInfo={description:"",displayName:"AMapMap",props:{center:{defaultValue:{value:"undefined"},description:"",name:"center",required:!1,type:{name:"[number, number]"}},cityName:{defaultValue:{value:"undefined"},description:"",name:"cityName",required:!1,type:{name:"string"}},zoom:{defaultValue:{value:"undefined"},description:"",name:"zoom",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMap/AMapMap.tsx#AMapMap"]={docgenInfo:AMapMap.__docgenInfo,name:"AMapMap",path:"src/components/AMapMap/AMapMap.tsx#AMapMap"})}catch(__react_docgen_typescript_loader_error){}},220:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return AMapAPIContainer_AMapAPIContext})),__webpack_require__.d(__webpack_exports__,"b",(function(){return createAMapAPIContainer_createAMapAPIContainer}));var react=__webpack_require__(0),react_default=__webpack_require__.n(react),defaultContext={__AMAP__:null,__AMAP_UI__:null},AMapAPIContainer_AMapAPIContext=Object(react.createContext)(defaultContext),dist=(__webpack_require__(3),__webpack_require__(110),__webpack_require__(10),__webpack_require__(4),__webpack_require__(11),__webpack_require__(21),__webpack_require__(15),__webpack_require__(14),__webpack_require__(18),__webpack_require__(17),__webpack_require__(522)),dist_default=__webpack_require__.n(dist),getGlobalObject=__webpack_require__(228),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]0&&promises.push(new Promise((function(r){AMap.plugin(otherOptions.plugins,r)}))),[4,Promise.all(promises)];case 3:_c.sent(),_c.label=4;case 4:return[2,{default:function AMapAPIContainer(_a){var children=_a.children;return react_default.a.createElement(AMapAPIContainer_AMapAPIContext.Provider,{value:{__AMAP__:AMap,__AMAP_UI__:AMapUI}},children)}}]}}))}))}))};try{createAMapAPIContainer_createAMapAPIContainer.displayName="createAMapAPIContainer",createAMapAPIContainer_createAMapAPIContainer.__docgenInfo={description:"",displayName:"createAMapAPIContainer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAPIContainer/createAMapAPIContainer.tsx#createAMapAPIContainer"]={docgenInfo:createAMapAPIContainer_createAMapAPIContainer.__docgenInfo,name:"createAMapAPIContainer",path:"src/components/AMapAPIContainer/createAMapAPIContainer.tsx#createAMapAPIContainer"})}catch(__react_docgen_typescript_loader_error){}try{createAMapAPIContainer_createAMapAPIContainer.displayName="createAMapAPIContainer",createAMapAPIContainer_createAMapAPIContainer.__docgenInfo={description:"",displayName:"createAMapAPIContainer",props:{key:{defaultValue:null,description:"",name:"key",required:!0,type:{name:"string"}},version:{defaultValue:null,description:"",name:"version",required:!0,type:{name:"string"}},plugins:{defaultValue:null,description:"",name:"plugins",required:!1,type:{name:"string[]"}},AMapUI:{defaultValue:null,description:"",name:"AMapUI",required:!1,type:{name:"{ version?: string; plugins?: string[] | undefined; } | undefined"}},Loca:{defaultValue:null,description:"",name:"Loca",required:!1,type:{name:"{ version?: string; } | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAPIContainer/createAMapAPIContainer.tsx#createAMapAPIContainer"]={docgenInfo:createAMapAPIContainer_createAMapAPIContainer.__docgenInfo,name:"createAMapAPIContainer",path:"src/components/AMapAPIContainer/createAMapAPIContainer.tsx#createAMapAPIContainer"})}catch(__react_docgen_typescript_loader_error){}},225:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"AsyncPluginAPIContainer",(function(){return AsyncPluginAPIContainer})),__webpack_require__.d(__webpack_exports__,"AsyncPlugin",(function(){return AsyncPlugin})),__webpack_require__.d(__webpack_exports__,"SyncPlugin",(function(){return SyncPlugin}));__webpack_require__(3),__webpack_require__(13),__webpack_require__(10),__webpack_require__(19),__webpack_require__(22);var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),index__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(25),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i {\n const { __AMAP__: AMap } = useAMapAPI();\n const $container = useRef(null);\n const $map = useRef(null);\n useEffect(() => {\n let clearEffect;\n if (!AMap || !$container.current) {\n return clearEffect;\n }\n\n const map = new AMap.Map($container.current);\n $map.current = map;\n\n AMap.plugin(\n ['ControlBar', 'ToolBar', 'Scale', 'MapType', 'HawkEye'].map(\n (pluginName) => `AMap.${pluginName}`,\n ),\n () => initPlugin(AMap, map),\n );\n\n AMapUI.loadUI('overlay/SimpleMarker', (SimpleMarker: typeof AMapUI.SimpleMarker) => {\n initUIPlugin(SimpleMarker, map);\n });\n\n clearEffect = () => {\n map.destroy();\n };\n\n return clearEffect;\n }, [AMap]);\n\n return
;\n};\n";AsyncPlugin.parameters={docs:{source:{code:AsyncPluginCode}}};var SyncPluginContentDrawer=function SyncPluginContentDrawer(){var _a=Object(index__WEBPACK_IMPORTED_MODULE_6__.l)(),AMap=_a.__AMAP__,AMapUI=_a.__AMAP_UI__,$container=Object(react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null),$map=Object(react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null);return Object(react__WEBPACK_IMPORTED_MODULE_5__.useEffect)((function(){var clearEffect;if(!AMap||!$container.current)return clearEffect;var map=new AMap.Map($container.current);return $map.current=map,initPlugin(AMap,map),initUIPlugin(AMapUI.SimpleMarker,map),clearEffect=function clearEffect(){map.destroy()}}),[AMap,AMapUI]),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{ref:$container,style:{height:400}})},SyncPlugin=function SyncPlugin(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_5__.Suspense,{fallback:"loading..."},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(SyncPluginAPIContainer,null,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(SyncPluginContentDrawer,null)))};SyncPlugin.storyName="同步加载插件";var SyncPluginCode="\nconst SyncPluginAPIContainer = createAMapAPIContainer({\n version: '2.0',\n apiKey: AMAP_API_KEY,\n plugins: ['ControlBar', 'ToolBar', 'Scale', 'MapType', 'HawkEye'].map(\n (pluginName) => `AMap.${pluginName}`,\n ),\n AMapUI: {\n version: '1.1',\n plugins: ['overlay/SimpleMarker'],\n },\n});\n\n"+initPlugin.toString()+"\n\n"+initUIPlugin.toString()+"\n\nconst SyncPluginContentDrawer = () => {\n const { __AMAP__: AMap, __AMAP_UI__: AMapUI } = useAMapAPI();\n const $container = useRef(null);\n const $map = useRef(null);\n useEffect(() => {\n let clearEffect;\n if (!AMap || !$container.current) {\n return clearEffect;\n }\n\n const map = new AMap.Map($container.current);\n $map.current = map;\n\n initPlugin(AMap, map);\n initUIPlugin(AMapUI!.SimpleMarker, map);\n\n clearEffect = () => {\n map.destroy();\n };\n\n return clearEffect;\n }, [AMap, AMapUI]);\n return
;\n};\n\n() => (\n \n \n \n)\n";SyncPlugin.parameters={docs:{source:{code:SyncPluginCode}}},AsyncPluginAPIContainer.parameters=__assign({storySource:{source:"createAMapAPIContainer({\n key: AMAP_API_KEY,\n version: '2.0',\n AMapUI: {\n version: '1.1',\n },\n})"}},AsyncPluginAPIContainer.parameters),AsyncPlugin.parameters=__assign({storySource:{source:'() => (\n \n \n \n \n \n)'}},AsyncPlugin.parameters),SyncPlugin.parameters=__assign({storySource:{source:'() => (\n \n \n \n \n \n)'}},SyncPlugin.parameters);try{AsyncPluginAPIContainer.displayName="AsyncPluginAPIContainer",AsyncPluginAPIContainer.__docgenInfo={description:"",displayName:"AsyncPluginAPIContainer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAPIContainer/stories/createAMapAPIContainer.stories.tsx#AsyncPluginAPIContainer"]={docgenInfo:AsyncPluginAPIContainer.__docgenInfo,name:"AsyncPluginAPIContainer",path:"src/components/AMapAPIContainer/stories/createAMapAPIContainer.stories.tsx#AsyncPluginAPIContainer"})}catch(__react_docgen_typescript_loader_error){}},226:function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);__webpack_exports__.a=function useVisible(instance,visible){Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var _a,_b;visible?null===(_a=null==instance?void 0:instance.show)||void 0===_a||_a.call(instance):null===(_b=null==instance?void 0:instance.hide)||void 0===_b||_b.call(instance)}),[instance,visible])}},227:function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__(0),react_default=__webpack_require__.n(react),AMapAutoFitView=__webpack_require__(512);__webpack_exports__.a=function withAutoFitView(renderStory,context){return react_default.a.createElement(react_default.a.Fragment,null,renderStory({},context),react_default.a.createElement(AMapAutoFitView.a,null))}},228:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__(1143);__webpack_exports__.a=function getGlobalObject(){var _a;return null!==(_a=null!==globalThis&&void 0!==globalThis?globalThis:global)&&void 0!==_a?_a:window}}).call(this,__webpack_require__(53))},25:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"l",(function(){return useAMapAPI.a})),__webpack_require__.d(__webpack_exports__,"k",(function(){return AMapAPIContainer.b})),__webpack_require__.d(__webpack_exports__,"e",(function(){return AMapMap.a})),__webpack_require__.d(__webpack_exports__,"b",(function(){return components_AMapControlBar_AMapControlBar})),__webpack_require__.d(__webpack_exports__,"d",(function(){return components_AMapHawkEye_AMapHawkEye})),__webpack_require__.d(__webpack_exports__,"h",(function(){return components_AMapScale_AMapScale})),__webpack_require__.d(__webpack_exports__,"i",(function(){return components_AMapToolBar_AMapToolBar})),__webpack_require__.d(__webpack_exports__,"f",(function(){return components_AMapMapType_AMapMapType})),__webpack_require__.d(__webpack_exports__,"c",(function(){return AMapGeoJSON.default})),__webpack_require__.d(__webpack_exports__,"a",(function(){return AMapCircle.default})),__webpack_require__.d(__webpack_exports__,"g",(function(){return AMapMouseTool.default})),__webpack_require__.d(__webpack_exports__,"j",(function(){return helpers_coordsOfGeoJSON2AMapPolygonPath}));var useAMapAPI=__webpack_require__(135),useAMap=__webpack_require__(31),useAMapEventBinder=(__webpack_require__(136),__webpack_require__(38)),react=(__webpack_require__(13),__webpack_require__(0)),hooks_useAMapPluginInstance=function useAMapPluginInstance(pluginName,initInstance){var _a=Object(useAMap.a)(),AMap=_a.__AMAP__,map=_a.map,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1];return Object(react.useEffect)((function(){if(AMap&&map){var init=function init(){var instance=initInstance(AMap,map);setInstance(instance)};AMap[pluginName]?init():AMap.plugin(["AMap."+pluginName],init)}}),[AMap,map,pluginName,initInstance]),curInstance},AMapAPIContainer=__webpack_require__(220),AMapMap=__webpack_require__(169),useAMapControlBinder_useAMapControlBinder=function useAMapControlBinder(controlInstance){var map=Object(useAMap.a)().map;Object(react.useEffect)((function(){var clearEffect;return controlInstance&&map?(clearEffect=function clearEffect(){map.removeControl(controlInstance)},map.addControl(controlInstance),clearEffect):clearEffect}),[map,controlInstance])},hooks_useAMapControlBinder=useAMapControlBinder_useAMapControlBinder;try{useAMapControlBinder_useAMapControlBinder.displayName="useAMapControlBinder",useAMapControlBinder_useAMapControlBinder.__docgenInfo={description:"",displayName:"useAMapControlBinder",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useAMapControlBinder.ts#useAMapControlBinder"]={docgenInfo:useAMapControlBinder_useAMapControlBinder.__docgenInfo,name:"useAMapControlBinder",path:"src/hooks/useAMapControlBinder.ts#useAMapControlBinder"})}catch(__react_docgen_typescript_loader_error){}var AMapControlBar_AMapControlBar=function AMapControlBar(_a){var position=_a.position,offset=_a.offset,showControlButton=_a.showControlButton,visible=_a.visible,onHide=_a.onHide,onShow=_a.onShow,AMap=Object(useAMap.a)().__AMAP__,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1],initConfig=Object(react.useMemo)((function(){var conf={position:position};return void 0!==showControlButton&&(conf.showControlButton=showControlButton),void 0!==offset&&(conf.offset=offset),conf}),[showControlButton,position,offset]);return Object(react.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.ControlBar(initConfig);setInstance(newInstance)};AMap.ControlBar?initInstance():AMap.plugin("AMap.ControlBar",initInstance)}}),[AMap,initConfig]),Object(react.useEffect)((function(){var _a,_b;visible?null===(_a=null==curInstance?void 0:curInstance.show)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.hide)||void 0===_b||_b.call(curInstance)}),[curInstance,visible]),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapControlBar_AMapControlBar.defaultProps={position:"LT",showControlButton:!0,visible:!0,onShow:void 0,onHide:void 0};var components_AMapControlBar_AMapControlBar=Object(react.memo)(AMapControlBar_AMapControlBar);try{AMapControlBar_AMapControlBar.displayName="AMapControlBar",AMapControlBar_AMapControlBar.__docgenInfo={description:"",displayName:"AMapControlBar",props:{offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"[number, number]"}},position:{defaultValue:{value:"'LT' as AMapControlBarProps['position']"},description:"",name:"position",required:!1,type:{name:'{ top?: string; left?: string; right?: string; bottom?: string; } | "LT" | "RT" | "LB" | "RB"'}},showControlButton:{defaultValue:{value:!0},description:"",name:"showControlButton",required:!1,type:{name:"boolean"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event: any) => void"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapControlBar/AMapControlBar.tsx#AMapControlBar"]={docgenInfo:AMapControlBar_AMapControlBar.__docgenInfo,name:"AMapControlBar",path:"src/components/AMapControlBar/AMapControlBar.tsx#AMapControlBar"})}catch(__react_docgen_typescript_loader_error){}try{AMapControlBar_AMapControlBar.displayName="AMapControlBar",AMapControlBar_AMapControlBar.__docgenInfo={description:"",displayName:"AMapControlBar",props:{offset:{defaultValue:null,description:"",name:"offset",required:!0,type:{name:"any"}},position:{defaultValue:{value:"'LT' as AMapControlBarProps['position']"},description:"",name:"position",required:!1,type:{name:"any"}},showControlButton:{defaultValue:{value:!0},description:"",name:"showControlButton",required:!1,type:{name:"boolean"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"((event: any) => void)"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"((event: any) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapControlBar/AMapControlBar.tsx#AMapControlBar"]={docgenInfo:AMapControlBar_AMapControlBar.__docgenInfo,name:"AMapControlBar",path:"src/components/AMapControlBar/AMapControlBar.tsx#AMapControlBar"})}catch(__react_docgen_typescript_loader_error){}var AMapHawkEye_AMapHawkEye=function AMapHawkEye(_a){var autoMove=_a.autoMove,showRectangle=_a.showRectangle,showButton=_a.showButton,isOpen=_a.isOpen,mapStyle=_a.mapStyle,width=_a.width,height=_a.height,offset=_a.offset,borderStyle=_a.borderStyle,borderColor=_a.borderColor,borderRadius=_a.borderRadius,borderWidth=_a.borderWidth,buttonSize=_a.buttonSize,visible=_a.visible,onShow=_a.onShow,onHide=_a.onHide,AMap=Object(useAMap.a)().__AMAP__,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1],initConfig=Object(react.useMemo)((function(){var conf={};return void 0!==autoMove&&(conf.autoMove=autoMove),void 0!==showRectangle&&(conf.showRectangle=showRectangle),void 0!==showButton&&(conf.showButton=showButton),void 0!==mapStyle&&(conf.mapStyle=mapStyle),void 0!==width&&(conf.width=width),void 0!==height&&(conf.height=height),void 0!==offset&&(conf.offset=offset),void 0!==borderStyle&&(conf.borderStyle=borderStyle),void 0!==borderColor&&(conf.borderColor=borderColor),void 0!==borderRadius&&(conf.borderRadius=borderRadius),void 0!==borderWidth&&(conf.borderWidth=borderWidth),void 0!==buttonSize&&(conf.buttonSize=buttonSize),conf}),[autoMove,showRectangle,showButton,mapStyle,width,height,offset,borderStyle,borderColor,borderRadius,borderWidth,buttonSize]);return Object(react.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.HawkEye(initConfig);setInstance(newInstance)};AMap.HawkEye?initInstance():AMap.plugin("AMap.HawkEye",initInstance)}}),[AMap,initConfig]),Object(react.useEffect)((function(){var _a,_b;isOpen?null===(_a=null==curInstance?void 0:curInstance.open)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.close)||void 0===_b||_b.call(curInstance)}),[curInstance,isOpen]),Object(react.useEffect)((function(){var _a,_b;visible?null===(_a=null==curInstance?void 0:curInstance.show)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.hide)||void 0===_b||_b.call(curInstance)}),[curInstance,visible]),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapHawkEye_AMapHawkEye.defaultProps={showButton:!0,isOpen:!0,visible:!0,onShow:void 0,onHide:void 0};var components_AMapHawkEye_AMapHawkEye=Object(react.memo)(AMapHawkEye_AMapHawkEye);try{AMapHawkEye_AMapHawkEye.displayName="AMapHawkEye",AMapHawkEye_AMapHawkEye.__docgenInfo={description:"",displayName:"AMapHawkEye",props:{autoMove:{defaultValue:null,description:"",name:"autoMove",required:!1,type:{name:"boolean"}},showRectangle:{defaultValue:null,description:"",name:"showRectangle",required:!1,type:{name:"boolean"}},showButton:{defaultValue:{value:!0},description:"",name:"showButton",required:!1,type:{name:"boolean"}},isOpen:{defaultValue:{value:!0},description:"",name:"isOpen",required:!1,type:{name:"boolean"}},mapStyle:{defaultValue:null,description:"",name:"mapStyle",required:!1,type:{name:"string"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"string"}},offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"[number, number]"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:"string"}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"string"}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"string"}},buttonSize:{defaultValue:null,description:"",name:"buttonSize",required:!1,type:{name:"string"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event: any) => void"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapHawkEye/AMapHawkEye.tsx#AMapHawkEye"]={docgenInfo:AMapHawkEye_AMapHawkEye.__docgenInfo,name:"AMapHawkEye",path:"src/components/AMapHawkEye/AMapHawkEye.tsx#AMapHawkEye"})}catch(__react_docgen_typescript_loader_error){}try{AMapHawkEye_AMapHawkEye.displayName="AMapHawkEye",AMapHawkEye_AMapHawkEye.__docgenInfo={description:"",displayName:"AMapHawkEye",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapHawkEye/AMapHawkEye.tsx#AMapHawkEye"]={docgenInfo:AMapHawkEye_AMapHawkEye.__docgenInfo,name:"AMapHawkEye",path:"src/components/AMapHawkEye/AMapHawkEye.tsx#AMapHawkEye"})}catch(__react_docgen_typescript_loader_error){}var AMapScale_AMapScale=function AMapScale(_a){var position=_a.position,offset=_a.offset,visible=_a.visible,onShow=_a.onShow,onHide=_a.onHide,AMap=Object(useAMap.a)().__AMAP__,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1],initConfig=Object(react.useMemo)((function(){var conf={position:position};return void 0!==offset&&(conf.offset=offset),conf}),[position,offset]);return Object(react.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.Scale(initConfig);setInstance(newInstance)};AMap.Scale?initInstance():AMap.plugin("AMap.Scale",initInstance)}}),[AMap,position,offset,initConfig]),Object(react.useEffect)((function(){var _a,_b;visible?null===(_a=null==curInstance?void 0:curInstance.show)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.hide)||void 0===_b||_b.call(curInstance)}),[curInstance,visible]),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapScale_AMapScale.defaultProps={position:"LB",visible:!0,onShow:void 0,onHide:void 0};var components_AMapScale_AMapScale=Object(react.memo)(AMapScale_AMapScale);try{AMapScale_AMapScale.displayName="AMapScale",AMapScale_AMapScale.__docgenInfo={description:"",displayName:"AMapScale",props:{offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"[number, number]"}},position:{defaultValue:{value:"'LB' as AMapScaleProps['position']"},description:"",name:"position",required:!1,type:{name:'{ top?: string; left?: string; right?: string; bottom?: string; } | "LT" | "RT" | "LB" | "RB"'}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event: any) => void"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapScale/AMapScale.tsx#AMapScale"]={docgenInfo:AMapScale_AMapScale.__docgenInfo,name:"AMapScale",path:"src/components/AMapScale/AMapScale.tsx#AMapScale"})}catch(__react_docgen_typescript_loader_error){}try{AMapScale_AMapScale.displayName="AMapScale",AMapScale_AMapScale.__docgenInfo={description:"",displayName:"AMapScale",props:{offset:{defaultValue:null,description:"",name:"offset",required:!0,type:{name:"any"}},position:{defaultValue:{value:"'LB' as AMapScaleProps['position']"},description:"",name:"position",required:!1,type:{name:"any"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"((event: any) => void)"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"((event: any) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapScale/AMapScale.tsx#AMapScale"]={docgenInfo:AMapScale_AMapScale.__docgenInfo,name:"AMapScale",path:"src/components/AMapScale/AMapScale.tsx#AMapScale"})}catch(__react_docgen_typescript_loader_error){}var AMapToolBar_AMapToolBar=function AMapToolBar(_a){var position=_a.position,offset=_a.offset,visible=_a.visible,onShow=_a.onShow,onHide=_a.onHide,AMap=Object(useAMap.a)().__AMAP__,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1],initConfig=Object(react.useMemo)((function(){var conf={position:position};return void 0!==offset&&(conf.offset=offset),conf}),[position,offset]);return Object(react.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.ToolBar(initConfig);setInstance(newInstance)};AMap.ToolBar?initInstance():AMap.plugin("AMap.ToolBar",initInstance)}}),[AMap,position,offset,initConfig]),Object(react.useEffect)((function(){var _a,_b;visible?null===(_a=null==curInstance?void 0:curInstance.show)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.hide)||void 0===_b||_b.call(curInstance)}),[curInstance,visible]),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapToolBar_AMapToolBar.defaultProps={position:"LT",visible:!0,onShow:void 0,onHide:void 0};var components_AMapToolBar_AMapToolBar=Object(react.memo)(AMapToolBar_AMapToolBar);try{AMapToolBar_AMapToolBar.displayName="AMapToolBar",AMapToolBar_AMapToolBar.__docgenInfo={description:"",displayName:"AMapToolBar",props:{offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"[number, number]"}},position:{defaultValue:{value:"'LT' as AMapToolBarProps['position']"},description:"",name:"position",required:!1,type:{name:'{ top?: string; left?: string; right?: string; bottom?: string; } | "LT" | "RT" | "LB" | "RB"'}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event: any) => void"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapToolBar/AMapToolBar.tsx#AMapToolBar"]={docgenInfo:AMapToolBar_AMapToolBar.__docgenInfo,name:"AMapToolBar",path:"src/components/AMapToolBar/AMapToolBar.tsx#AMapToolBar"})}catch(__react_docgen_typescript_loader_error){}try{AMapToolBar_AMapToolBar.displayName="AMapToolBar",AMapToolBar_AMapToolBar.__docgenInfo={description:"",displayName:"AMapToolBar",props:{offset:{defaultValue:null,description:"",name:"offset",required:!0,type:{name:"any"}},position:{defaultValue:{value:"'LT' as AMapToolBarProps['position']"},description:"",name:"position",required:!1,type:{name:"any"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"((event: any) => void)"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"((event: any) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapToolBar/AMapToolBar.tsx#AMapToolBar"]={docgenInfo:AMapToolBar_AMapToolBar.__docgenInfo,name:"AMapToolBar",path:"src/components/AMapToolBar/AMapToolBar.tsx#AMapToolBar"})}catch(__react_docgen_typescript_loader_error){}var useVisible=__webpack_require__(226),AMapMapType_AMapMapType=function AMapMapType(_a){var defaultType=_a.defaultType,showTraffic=_a.showTraffic,showRoad=_a.showRoad,visible=_a.visible,onHide=_a.onHide,onShow=_a.onShow,initInstance=Object(react.useCallback)((function(AMap){return new AMap.MapType({defaultType:defaultType,showTraffic:showTraffic,showRoad:showRoad})}),[defaultType,showRoad,showTraffic]),curInstance=hooks_useAMapPluginInstance("MapType",initInstance);return Object(useVisible.a)(curInstance,!!visible),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapMapType_AMapMapType.defaultProps={defaultType:0,showTraffic:!1,showRoad:!1,visible:!0,onShow:void 0,onHide:void 0};var components_AMapMapType_AMapMapType=AMapMapType_AMapMapType;try{AMapMapType_AMapMapType.displayName="AMapMapType",AMapMapType_AMapMapType.__docgenInfo={description:"",displayName:"AMapMapType",props:{defaultType:{defaultValue:{value:0},description:"",name:"defaultType",required:!1,type:{name:"number"}},showTraffic:{defaultValue:{value:!1},description:"",name:"showTraffic",required:!1,type:{name:"boolean"}},showRoad:{defaultValue:{value:!1},description:"",name:"showRoad",required:!1,type:{name:"boolean"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event?: any) => void"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event?: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMapType/AMapMapType.tsx#AMapMapType"]={docgenInfo:AMapMapType_AMapMapType.__docgenInfo,name:"AMapMapType",path:"src/components/AMapMapType/AMapMapType.tsx#AMapMapType"})}catch(__react_docgen_typescript_loader_error){}try{AMapMapType_AMapMapType.displayName="AMapMapType",AMapMapType_AMapMapType.__docgenInfo={description:"",displayName:"AMapMapType",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMapType/AMapMapType.tsx#AMapMapType"]={docgenInfo:AMapMapType_AMapMapType.__docgenInfo,name:"AMapMapType",path:"src/components/AMapMapType/AMapMapType.tsx#AMapMapType"})}catch(__react_docgen_typescript_loader_error){}var AMapGeoJSON=__webpack_require__(504),AMapCircle=__webpack_require__(507),AMapMouseTool=__webpack_require__(509),isPosition=(__webpack_require__(12),__webpack_require__(16),__webpack_require__(112),function isPosition(pos){return Array.isArray(pos)&&2===pos.length&&"number"==typeof pos[0]&&"number"==typeof pos[1]}),isLineCoords=function isLineCoords(line){return Array.isArray(line)&&line.every(isPosition)};try{isPosition.displayName="isPosition",isPosition.__docgenInfo={description:"",displayName:"isPosition",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/helpers/geoJSONHelper.ts#isPosition"]={docgenInfo:isPosition.__docgenInfo,name:"isPosition",path:"src/helpers/geoJSONHelper.ts#isPosition"})}catch(__react_docgen_typescript_loader_error){}try{isLineCoords.displayName="isLineCoords",isLineCoords.__docgenInfo={description:"",displayName:"isLineCoords",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/helpers/geoJSONHelper.ts#isLineCoords"]={docgenInfo:isLineCoords.__docgenInfo,name:"isLineCoords",path:"src/helpers/geoJSONHelper.ts#isLineCoords"})}catch(__react_docgen_typescript_loader_error){}var coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath=function coordsOfGeoJSON2AMapPolygonPath(coords){return isLineCoords(coords)?function coordsOfGeoJSONRingLine2AMapPolygonPath(coords){var len=coords.length;return coords.slice(0,len-1)}(coords):coords.map(coordsOfGeoJSON2AMapPolygonPath)},helpers_coordsOfGeoJSON2AMapPolygonPath=coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath;try{coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath.displayName="coordsOfGeoJSON2AMapPolygonPath",coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath.__docgenInfo={description:"去掉最后一个 Position 点。\n支持 GeoJSON.Polygon 和 GeoJSON.MultiplePolygon 转换",displayName:"coordsOfGeoJSON2AMapPolygonPath",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/helpers/coordsOfGeoJSON2AMapPolygonPath.ts#coordsOfGeoJSON2AMapPolygonPath"]={docgenInfo:coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath.__docgenInfo,name:"coordsOfGeoJSON2AMapPolygonPath",path:"src/helpers/coordsOfGeoJSON2AMapPolygonPath.ts#coordsOfGeoJSON2AMapPolygonPath"})}catch(__react_docgen_typescript_loader_error){}var isLatLng=function isLatLng(p){return!(!("lat"in p)||!("lng"in p))},amapPolygonPath2GeoJSONCoords_amapPolygonPath2GeoJSONCoords=function amapPolygonPath2GeoJSONCoords(path){if(function isLatLngArr(p){return p.every(isLatLng)}(path)){var coords=path.map((function(item){return item.toArray()}));return coords.push(coords[0].slice(0)),coords}return path.map(amapPolygonPath2GeoJSONCoords)};try{amapPolygonPath2GeoJSONCoords_amapPolygonPath2GeoJSONCoords.displayName="amapPolygonPath2GeoJSONCoords",amapPolygonPath2GeoJSONCoords_amapPolygonPath2GeoJSONCoords.__docgenInfo={description:"补充最后一个 Position。\n支持转换至 GeoJSON.Polygon 和 GeoJSON.MultiplePolygon 的 coords",displayName:"amapPolygonPath2GeoJSONCoords",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"(() => string) | (() => string) | (() => string)"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocalString methods.",name:"toLocaleString",required:!1,type:{name:"(() => string) | (() => string) | (() => string)"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.",name:"pop",required:!0,type:{name:"(() => any) | (() => any[]) | (() => any[][])"}},push:{defaultValue:null,description:"Appends new elements to an array, and returns the new length of the array.\n@param items New elements of the Array.",name:"push",required:!0,type:{name:"((...items: any[]) => number) | ((...items: any[][]) => number) | ((...items: any[][][]) => number)"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nCombines two or more arrays.\n@param items Additional items to add to the end of array1.\n@param items Additional items to add to the end of array1.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray[]): any[]; (...items: any[]): any[]; } | { (...items: ConcatArray[]): any[][]; (...items: (any[] | ConcatArray)[]): any[][]; } | { ...; }"}},join:{defaultValue:null,description:"Adds all the elements of an array separated by the specified separator string.\n@param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"((separator?: string) => string) | ((separator?: string) => string) | ((separator?: string) => string)"}},reverse:{defaultValue:null,description:"Reverses the elements in an Array.",name:"reverse",required:!0,type:{name:"(() => any[]) | (() => any[][]) | (() => any[][][])"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.",name:"shift",required:!0,type:{name:"(() => any) | (() => any[]) | (() => any[][])"}},slice:{defaultValue:null,description:"Returns a section of an array.\n@param start The beginning of the specified portion of the array.\n@param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.",name:"slice",required:!0,type:{name:"((start?: number, end?: number) => any[]) | ((start?: number, end?: number) => any[][]) | ((start?: number, end?: number) => any[][][])"}},sort:{defaultValue:null,description:"Sorts an array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\ra negative value if first argument is less than second argument, zero if they're equal and a positive\rvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r```ts\r[11,2,22,1].sort((a, b) => a - b)\r```",name:"sort",required:!0,type:{name:"((compareFn?: (a: any, b: any) => number) => any[]) | ((compareFn?: (a: any[], b: any[]) => number) => any[][]) | ((compareFn?: (a: any[][], b: any[][]) => number) => any[][][])"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\nRemoves elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param items Elements to insert into the array in place of the deleted elements.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; } | { (start: number, deleteCount?: number): any[][]; (start: number, deleteCount: number, ...items: any[][]): any[][]; } | { ...; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array.\n@param items Elements to insert at the start of the Array.",name:"unshift",required:!0,type:{name:"((...items: any[]) => number) | ((...items: any[][]) => number) | ((...items: any[][][]) => number)"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => number) | ((searchElement: any[], fromIndex?: number) => number) | ((searchElement: any[][], fromIndex?: number) => number)"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => number) | ((searchElement: any[], fromIndex?: number) => number) | ((searchElement: any[][], fromIndex?: number) => number)"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param callbackfn A function that accepts up to three arguments. The every method calls\rthe callbackfn function for each element in the array until the callbackfn returns a value\rwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function.\rIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[], index: number, array: any[][]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => unknown, thisArg?: any) => boolean)"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param callbackfn A function that accepts up to three arguments. The some method calls\rthe callbackfn function for each element in the array until the callbackfn returns a value\rwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function.\rIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[], index: number, array: any[][]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => unknown, thisArg?: any) => boolean)"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any) => void) | ((callbackfn: (value: any[], index: number, array: any[][]) => void, thisArg?: any) => void) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => void, thisArg?: any) => void)"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any[], index: number, array: any[][]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => U, thisArg?: any) => U[])"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\nReturns the elements of an array that meet the condition specified in a callback function.\n@param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n@param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ (callbackfn: (value: any, index: number, array: any[]) => value is S, thisArg?: any): S[]; (callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any): any[]; } | { (callbackfn: (value: any[], index: number, array: any[][]) => value is S, thisArg?: any): S[]; (..."}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\nCalls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) ..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\nCalls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) ..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\rorder, until it finds one where predicate returns true. If such an element is found, find\rimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\rpredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ (predicate: (this: void, value: any, index: number, obj: any[]) => value is S, thisArg?: any): S; (predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any; } | { ...; } | { ...; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\rorder, until it finds one where predicate returns true. If such an element is found,\rfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\rpredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"((predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any) => number) | ((predicate: (value: any[], index: number, obj: any[][]) => unknown, thisArg?: any) => number) | ((predicate: (value: any[][], index: number, obj: any[][][]) => unknown, thisArg?: any) => number)"}},fill:{defaultValue:null,description:"Returns the this object after filling the section identified by start and end with value\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\rlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\rlength+end.",name:"fill",required:!0,type:{name:"((value: any, start?: number, end?: number) => any[]) | ((value: any[], start?: number, end?: number) => any[][]) | ((value: any[][], start?: number, end?: number) => any[][][])"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\rlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\ris treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"((target: number, start: number, end?: number) => any[]) | ((target: number, start: number, end?: number) => any[][]) | ((target: number, start: number, end?: number) => any[][][])"}},"__@iterator":{defaultValue:null,description:"Iterator",name:"__@iterator",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"(() => IterableIterator<[number, any]>) | (() => IterableIterator<[number, any[]]>) | (() => IterableIterator<[number, any[][]]>)"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},"__@unscopables":{defaultValue:null,description:"Returns an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables",required:!0,type:{name:"(() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { ...; })"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => boolean) | ((searchElement: any[], fromIndex?: number) => boolean) | ((searchElement: any[][], fromIndex?: number) => boolean)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/helpers/amapPolygonPath2GeoJSONCoords.ts#amapPolygonPath2GeoJSONCoords"]={docgenInfo:amapPolygonPath2GeoJSONCoords_amapPolygonPath2GeoJSONCoords.__docgenInfo,name:"amapPolygonPath2GeoJSONCoords",path:"src/helpers/amapPolygonPath2GeoJSONCoords.ts#amapPolygonPath2GeoJSONCoords"})}catch(__react_docgen_typescript_loader_error){}try{useAMapContainerBinder.displayName="useAMapContainerBinder",useAMapContainerBinder.__docgenInfo={description:"",displayName:"useAMapContainerBinder",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/index.ts#useAMapContainerBinder"]={docgenInfo:useAMapContainerBinder.__docgenInfo,name:"useAMapContainerBinder",path:"src/index.ts#useAMapContainerBinder"})}catch(__react_docgen_typescript_loader_error){}try{coordsOfGeoJSON2AMapPolygonPath.displayName="coordsOfGeoJSON2AMapPolygonPath",coordsOfGeoJSON2AMapPolygonPath.__docgenInfo={description:"去掉最后一个 Position 点。\n支持 GeoJSON.Polygon 和 GeoJSON.MultiplePolygon 转换",displayName:"coordsOfGeoJSON2AMapPolygonPath",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/index.ts#coordsOfGeoJSON2AMapPolygonPath"]={docgenInfo:coordsOfGeoJSON2AMapPolygonPath.__docgenInfo,name:"coordsOfGeoJSON2AMapPolygonPath",path:"src/index.ts#coordsOfGeoJSON2AMapPolygonPath"})}catch(__react_docgen_typescript_loader_error){}try{amapPolygonPath2GeoJSONCoords.displayName="amapPolygonPath2GeoJSONCoords",amapPolygonPath2GeoJSONCoords.__docgenInfo={description:"补充最后一个 Position。\n支持转换至 GeoJSON.Polygon 和 GeoJSON.MultiplePolygon 的 coords",displayName:"amapPolygonPath2GeoJSONCoords",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"(() => string) | (() => string) | (() => string)"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocalString methods.",name:"toLocaleString",required:!1,type:{name:"(() => string) | (() => string) | (() => string)"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.",name:"pop",required:!0,type:{name:"(() => any) | (() => any[]) | (() => any[][])"}},push:{defaultValue:null,description:"Appends new elements to an array, and returns the new length of the array.\n@param items New elements of the Array.",name:"push",required:!0,type:{name:"((...items: any[]) => number) | ((...items: any[][]) => number) | ((...items: any[][][]) => number)"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nCombines two or more arrays.\n@param items Additional items to add to the end of array1.\n@param items Additional items to add to the end of array1.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray[]): any[]; (...items: any[]): any[]; } | { (...items: ConcatArray[]): any[][]; (...items: (any[] | ConcatArray)[]): any[][]; } | { ...; }"}},join:{defaultValue:null,description:"Adds all the elements of an array separated by the specified separator string.\n@param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"((separator?: string) => string) | ((separator?: string) => string) | ((separator?: string) => string)"}},reverse:{defaultValue:null,description:"Reverses the elements in an Array.",name:"reverse",required:!0,type:{name:"(() => any[]) | (() => any[][]) | (() => any[][][])"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.",name:"shift",required:!0,type:{name:"(() => any) | (() => any[]) | (() => any[][])"}},slice:{defaultValue:null,description:"Returns a section of an array.\n@param start The beginning of the specified portion of the array.\n@param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.",name:"slice",required:!0,type:{name:"((start?: number, end?: number) => any[]) | ((start?: number, end?: number) => any[][]) | ((start?: number, end?: number) => any[][][])"}},sort:{defaultValue:null,description:"Sorts an array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\ra negative value if first argument is less than second argument, zero if they're equal and a positive\rvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r```ts\r[11,2,22,1].sort((a, b) => a - b)\r```",name:"sort",required:!0,type:{name:"((compareFn?: (a: any, b: any) => number) => any[]) | ((compareFn?: (a: any[], b: any[]) => number) => any[][]) | ((compareFn?: (a: any[][], b: any[][]) => number) => any[][][])"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\nRemoves elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param items Elements to insert into the array in place of the deleted elements.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; } | { (start: number, deleteCount?: number): any[][]; (start: number, deleteCount: number, ...items: any[][]): any[][]; } | { ...; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array.\n@param items Elements to insert at the start of the Array.",name:"unshift",required:!0,type:{name:"((...items: any[]) => number) | ((...items: any[][]) => number) | ((...items: any[][][]) => number)"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => number) | ((searchElement: any[], fromIndex?: number) => number) | ((searchElement: any[][], fromIndex?: number) => number)"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => number) | ((searchElement: any[], fromIndex?: number) => number) | ((searchElement: any[][], fromIndex?: number) => number)"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param callbackfn A function that accepts up to three arguments. The every method calls\rthe callbackfn function for each element in the array until the callbackfn returns a value\rwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function.\rIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[], index: number, array: any[][]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => unknown, thisArg?: any) => boolean)"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param callbackfn A function that accepts up to three arguments. The some method calls\rthe callbackfn function for each element in the array until the callbackfn returns a value\rwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function.\rIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[], index: number, array: any[][]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => unknown, thisArg?: any) => boolean)"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any) => void) | ((callbackfn: (value: any[], index: number, array: any[][]) => void, thisArg?: any) => void) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => void, thisArg?: any) => void)"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any[], index: number, array: any[][]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => U, thisArg?: any) => U[])"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\nReturns the elements of an array that meet the condition specified in a callback function.\n@param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n@param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ (callbackfn: (value: any, index: number, array: any[]) => value is S, thisArg?: any): S[]; (callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any): any[]; } | { (callbackfn: (value: any[], index: number, array: any[][]) => value is S, thisArg?: any): S[]; (..."}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\nCalls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) ..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\nCalls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) ..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\rorder, until it finds one where predicate returns true. If such an element is found, find\rimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\rpredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ (predicate: (this: void, value: any, index: number, obj: any[]) => value is S, thisArg?: any): S; (predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any; } | { ...; } | { ...; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\rorder, until it finds one where predicate returns true. If such an element is found,\rfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\rpredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"((predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any) => number) | ((predicate: (value: any[], index: number, obj: any[][]) => unknown, thisArg?: any) => number) | ((predicate: (value: any[][], index: number, obj: any[][][]) => unknown, thisArg?: any) => number)"}},fill:{defaultValue:null,description:"Returns the this object after filling the section identified by start and end with value\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\rlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\rlength+end.",name:"fill",required:!0,type:{name:"((value: any, start?: number, end?: number) => any[]) | ((value: any[], start?: number, end?: number) => any[][]) | ((value: any[][], start?: number, end?: number) => any[][][])"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\rlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\ris treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"((target: number, start: number, end?: number) => any[]) | ((target: number, start: number, end?: number) => any[][]) | ((target: number, start: number, end?: number) => any[][][])"}},"__@iterator":{defaultValue:null,description:"Iterator",name:"__@iterator",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"(() => IterableIterator<[number, any]>) | (() => IterableIterator<[number, any[]]>) | (() => IterableIterator<[number, any[][]]>)"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},"__@unscopables":{defaultValue:null,description:"Returns an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables",required:!0,type:{name:"(() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { ...; })"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => boolean) | ((searchElement: any[], fromIndex?: number) => boolean) | ((searchElement: any[][], fromIndex?: number) => boolean)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/index.ts#amapPolygonPath2GeoJSONCoords"]={docgenInfo:amapPolygonPath2GeoJSONCoords.__docgenInfo,name:"amapPolygonPath2GeoJSONCoords",path:"src/index.ts#amapPolygonPath2GeoJSONCoords"})}catch(__react_docgen_typescript_loader_error){}},31:function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_components_AMapMap__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(169),_useAMapAPI__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(135);__webpack_exports__.a=function useAMap(){var _a=Object(_useAMapAPI__WEBPACK_IMPORTED_MODULE_2__.a)();return{__AMAP__:_a.__AMAP__,__AMAP_UI__:_a.__AMAP_UI__,map:Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_components_AMapMap__WEBPACK_IMPORTED_MODULE_1__.b)}}},38:function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);__webpack_exports__.a=function useAMapEventBinder(instance,eventName,handler){Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var clearEffect;if(!instance||!handler)return clearEffect;instance.on(eventName,handler);var lastEventHandler=handler;return clearEffect=function clearEffect(){lastEventHandler&&instance&&instance.off(eventName,lastEventHandler)}}),[instance,eventName,handler])}},504:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(505);var _AMapGeoJSON__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(506);__webpack_require__.d(__webpack_exports__,"default",(function(){return _AMapGeoJSON__WEBPACK_IMPORTED_MODULE_1__.a}))},505:function(module,exports){},506:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(13);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_hooks_useAMap__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(31),_hooks_useAMapContainerBinder__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(136),AMapGeoJSON=function AMapGeoJSON(_a){var geoJSON=_a.geoJSON,getPolyline=_a.getPolyline,getMarker=_a.getMarker,getPolygon=_a.getPolygon,options=_a.options,_b=Object(_hooks_useAMap__WEBPACK_IMPORTED_MODULE_2__.a)(),AMap=_b.__AMAP__,map=_b.map,_c=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),curInstance=_c[0],setInstance=_c[1],withMap=Object(react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((function(fn){return"function"!=typeof fn?fn:function(geojson,lnglat){return fn(geojson,lnglat,map,AMap)}}),[AMap,map]);return Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.GeoJSON({getMarker:withMap(getMarker),getPolygon:withMap(getPolygon),getPolyline:withMap(getPolyline)});setInstance(newInstance)};AMap.GeoJSON?initInstance():AMap.plugin("AMap.GeoJSON",initInstance)}}),[AMap,geoJSON,getPolyline,getMarker,getPolygon,withMap]),Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){var _a;null===(_a=null==curInstance?void 0:curInstance.importData)||void 0===_a||_a.call(curInstance,geoJSON)}),[geoJSON,curInstance]),Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){var _a;options&&(null===(_a=null==curInstance?void 0:curInstance.setOptions)||void 0===_a||_a.call(curInstance,options))}),[options,curInstance]),Object(_hooks_useAMapContainerBinder__WEBPACK_IMPORTED_MODULE_3__.a)(curInstance),null};AMapGeoJSON.defaultProps={},__webpack_exports__.a=AMapGeoJSON;try{AMapGeoJSON.displayName="AMapGeoJSON",AMapGeoJSON.__docgenInfo={description:"",displayName:"AMapGeoJSON",props:{geoJSON:{defaultValue:null,description:"",name:"geoJSON",required:!1,type:{name:"any"}},getMarker:{defaultValue:null,description:"",name:"getMarker",required:!1,type:{name:"GeoJSONGetOverlayCallBack & AMapGeoJSONGetOverlayCallback"}},getPolyline:{defaultValue:null,description:"",name:"getPolyline",required:!1,type:{name:"GeoJSONGetOverlayCallBack & AMapGeoJSONGetOverlayCallback"}},getPolygon:{defaultValue:null,description:"",name:"getPolygon",required:!1,type:{name:"GeoJSONGetOverlayCallBack & AMapGeoJSONGetOverlayCallback"}},options:{defaultValue:null,description:"",name:"options",required:!1,type:{name:"{ [k: string]: any; }"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapGeoJSON/AMapGeoJSON.tsx#AMapGeoJSON"]={docgenInfo:AMapGeoJSON.__docgenInfo,name:"AMapGeoJSON",path:"src/components/AMapGeoJSON/AMapGeoJSON.tsx#AMapGeoJSON"})}catch(__react_docgen_typescript_loader_error){}try{AMapGeoJSON.displayName="AMapGeoJSON",AMapGeoJSON.__docgenInfo={description:"",displayName:"AMapGeoJSON",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapGeoJSON/AMapGeoJSON.tsx#AMapGeoJSON"]={docgenInfo:AMapGeoJSON.__docgenInfo,name:"AMapGeoJSON",path:"src/components/AMapGeoJSON/AMapGeoJSON.tsx#AMapGeoJSON"})}catch(__react_docgen_typescript_loader_error){}},507:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(508);var _AMapCircle__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(513);__webpack_require__.d(__webpack_exports__,"default",(function(){return _AMapCircle__WEBPACK_IMPORTED_MODULE_1__.a}))},508:function(module,exports){},509:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(510);var _AMapMouseTool__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(511);__webpack_require__.d(__webpack_exports__,"default",(function(){return _AMapMouseTool__WEBPACK_IMPORTED_MODULE_1__.a}))},510:function(module,exports){},511:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(13);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_hooks_useAMap__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(31),_hooks_useAMapEventBinder__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(38),AMapMouseTool=Object(react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((function(_a,ref){var type=_a.type,options=_a.options,onCompleted=_a.onCompleted,_b=Object(_hooks_useAMap__WEBPACK_IMPORTED_MODULE_2__.a)(),AMap=_b.__AMAP__,map=_b.map,_c=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),curInstance=_c[0],setInstance=_c[1];return Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){if(AMap&&map){var init=function init(){var instance=new AMap.MouseTool(map);setInstance(instance)};AMap.MouseTool?init():AMap.plugin(["AMap.MouseTool"],init)}}),[AMap,map]),Object(react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(ref,(function(){return curInstance}),[curInstance]),Object(_hooks_useAMapEventBinder__WEBPACK_IMPORTED_MODULE_3__.a)(curInstance,"draw",onCompleted),Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){var clearEffect;return curInstance?(clearEffect=function clearEffect(){return curInstance.close(!1)},curInstance[type](null!=options?options:{}),clearEffect):clearEffect}),[curInstance,options,type]),null}));AMapMouseTool.defaultProps={options:{},onCompleted:void 0},__webpack_exports__.a=AMapMouseTool;try{AMapMouseTool.displayName="AMapMouseTool",AMapMouseTool.__docgenInfo={description:"Origin Docs See:\nhttps://lbs.amap.com/api/javascript-api/reference/plugin#AMap.MouseTool",displayName:"AMapMouseTool",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:'"marker" | "circle" | "rectangle" | "polyline" | "polygon" | "measureArea" | "rule" | "rectZoomIn" | "rectZoomOut"'}},options:{defaultValue:{value:"{}"},description:"",name:"options",required:!1,type:{name:"MarkerOptions | PolylineOptions | PolygonOptions | RectangleOptions | CircleOptions"}},onCompleted:{defaultValue:{value:"undefined"},description:"",name:"onCompleted",required:!1,type:{name:"(e: any) => void"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"ReactText"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMouseTool/AMapMouseTool.tsx#AMapMouseTool"]={docgenInfo:AMapMouseTool.__docgenInfo,name:"AMapMouseTool",path:"src/components/AMapMouseTool/AMapMouseTool.tsx#AMapMouseTool"})}catch(__react_docgen_typescript_loader_error){}try{AMapMouseTool.displayName="AMapMouseTool",AMapMouseTool.__docgenInfo={description:"Origin Docs See:\nhttps://lbs.amap.com/api/javascript-api/reference/plugin#AMap.MouseTool",displayName:"AMapMouseTool",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"circle"'},{value:'"marker"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"rectangle"'},{value:'"measureArea"'},{value:'"rule"'},{value:'"rectZoomIn"'},{value:'"rectZoomOut"'}]}},options:{defaultValue:{value:"{}"},description:"",name:"options",required:!1,type:{name:"any"}},onCompleted:{defaultValue:{value:"undefined"},description:"",name:"onCompleted",required:!1,type:{name:"((e: any) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMouseTool/AMapMouseTool.tsx#AMapMouseTool"]={docgenInfo:AMapMouseTool.__docgenInfo,name:"AMapMouseTool",path:"src/components/AMapMouseTool/AMapMouseTool.tsx#AMapMouseTool"})}catch(__react_docgen_typescript_loader_error){}},512:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__(13),__webpack_require__(313);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),_hooks_useAMap__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(31),AMapAutoFitView=function AMapAutoFitView(_a){var delay=_a.delay,map=Object(_hooks_useAMap__WEBPACK_IMPORTED_MODULE_3__.a)().map,_b=Object(react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),fitViewed=_b[0],setFitViewed=_b[1];return Object(react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((function(){var clearEffect;if(fitViewed)return clearEffect;var timeoutKey=setTimeout((function(){map&&(map.setFitView(),setFitViewed(!0))}),delay);return clearEffect=function clearEffect(){global.clearTimeout(timeoutKey)}}),[delay,map,fitViewed]),null};AMapAutoFitView.defaultProps={delay:2e3},__webpack_exports__.a=AMapAutoFitView;try{AMapAutoFitView.displayName="AMapAutoFitView",AMapAutoFitView.__docgenInfo={description:"",displayName:"AMapAutoFitView",props:{delay:{defaultValue:{value:2e3},description:"",name:"delay",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAutoFitView/AMapAutoFitView.tsx#AMapAutoFitView"]={docgenInfo:AMapAutoFitView.__docgenInfo,name:"AMapAutoFitView",path:"src/components/AMapAutoFitView/AMapAutoFitView.tsx#AMapAutoFitView"})}catch(__react_docgen_typescript_loader_error){}try{AMapAutoFitView.displayName="AMapAutoFitView",AMapAutoFitView.__docgenInfo={description:"",displayName:"AMapAutoFitView",props:{delay:{defaultValue:{value:2e3},description:"",name:"delay",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAutoFitView/AMapAutoFitView.tsx#AMapAutoFitView"]={docgenInfo:AMapAutoFitView.__docgenInfo,name:"AMapAutoFitView",path:"src/components/AMapAutoFitView/AMapAutoFitView.tsx#AMapAutoFitView"})}catch(__react_docgen_typescript_loader_error){}}).call(this,__webpack_require__(53))},513:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(69),__webpack_require__(50),__webpack_require__(82);var react=__webpack_require__(0),useAMap=__webpack_require__(31),useAMapContainerBinder=__webpack_require__(136),useAMapEventBinder=__webpack_require__(38),useVisible=__webpack_require__(226),__spreadArrays=function(){for(var s=0,i=0,il=arguments.length;i void"}},onHide:{defaultValue:null,description:"",name:"onHide",required:!1,type:{name:"() => void"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"ReactText"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapCircle/AMapCircle.tsx#AMapCircle"]={docgenInfo:AMapCircle.__docgenInfo,name:"AMapCircle",path:"src/components/AMapCircle/AMapCircle.tsx#AMapCircle"})}catch(__react_docgen_typescript_loader_error){}try{AMapCircle.displayName="AMapCircle",AMapCircle.__docgenInfo={description:"",displayName:"AMapCircle",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapCircle/AMapCircle.tsx#AMapCircle"]={docgenInfo:AMapCircle.__docgenInfo,name:"AMapCircle",path:"src/components/AMapCircle/AMapCircle.tsx#AMapCircle"})}catch(__react_docgen_typescript_loader_error){}},52:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"SetCenter",(function(){return SetCenter})),__webpack_require__.d(__webpack_exports__,"SetCityName",(function(){return SetCityName})),__webpack_require__.d(__webpack_exports__,"SetZoom",(function(){return SetZoom})),__webpack_require__.d(__webpack_exports__,"withAMapContainer",(function(){return withAMapContainer}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(25),_AMapAPIContainer_stories_createAMapAPIContainer_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(225),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},SetCenter.parameters),SetCityName.parameters=__assign({storySource:{source:"(args) => "}},SetCityName.parameters),SetZoom.parameters=__assign({storySource:{source:"(args) => "}},SetZoom.parameters),withAMapContainer.parameters=__assign({storySource:{source:"(renderStory: Story, context: any) => (\n \n
\n {renderStory({}, context)}\n
\n
\n)"}},withAMapContainer.parameters)},525:function(module,exports,__webpack_require__){__webpack_require__(526),__webpack_require__(700),__webpack_require__(701),__webpack_require__(863),__webpack_require__(1083),__webpack_require__(1116),__webpack_require__(1128),__webpack_require__(1130),__webpack_require__(1135),__webpack_require__(1137),module.exports=__webpack_require__(1141)},597:function(module,exports){},701:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__(396)}},[[525,1,2]]]); -//# sourceMappingURL=main.0ebfcea4ca1b9ac4f407.bundle.js.map \ No newline at end of file diff --git a/main.0ebfcea4ca1b9ac4f407.bundle.js.map b/main.0ebfcea4ca1b9ac4f407.bundle.js.map deleted file mode 100644 index d35ecea..0000000 --- a/main.0ebfcea4ca1b9ac4f407.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"main.0ebfcea4ca1b9ac4f407.bundle.js","sources":["webpack:///main.0ebfcea4ca1b9ac4f407.bundle.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/main.2c0584dcb126eb2bc599.bundle.js b/main.2c0584dcb126eb2bc599.bundle.js new file mode 100644 index 0000000..747282f --- /dev/null +++ b/main.2c0584dcb126eb2bc599.bundle.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1137:function(module,exports,__webpack_require__){"use strict";__webpack_require__(8),__webpack_require__(4),__webpack_require__(50),__webpack_require__(1138),__webpack_require__(42),__webpack_require__(43),__webpack_require__(1139),__webpack_require__(35),__webpack_require__(44);var _clientApi=__webpack_require__(61),_clientLogger=__webpack_require__(40),_configFilename=__webpack_require__(1140);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);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"}},cursor:{description:"指定鼠标悬停时的鼠标样式",type:{required:!1,summary:"string"}},extData:{description:"设置用户自定义属性",type:{required:!1,summary:"Object"}},draggable:{description:"是否可拖动",type:{required:!1,summary:"type",defaultValue:!1},table:{defaultValue:!1},control:{type:"boolean"}},visible:{description:"显示或隐藏",type:{required:!1,summary:"boolean",defaultValue:!0},table:{defaultValue:!0},control:{type:"boolean"}},bubble:{description:"是否将覆盖物的鼠标或touch等事件冒泡到地图上",type:{required:!1,summary:"boolean",defaultValue:!1},table:{defaultValue:!1},control:{type:"boolean"}},onShow:{description:"显示,回调函数",type:{required:!1,summary:'(event: AMap.Event<"show">) => void'}},onHide:{description:"隐藏,回调函数",type:{required:!1,summary:'(event: AMap.Event<"hide">) => void'}}}};var Template=function Template(args){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(index__WEBPACK_IMPORTED_MODULE_4__.a,__assign({},args))},CommonUse=Template.bind({});CommonUse.storyName="基本使用",CommonUse.args={};var CustomStyle=Template.bind({});CustomStyle.storyName="自定义样式",CustomStyle.args={fillColor:"yellow",fillOpacity:.5,strokeColor:"red",strokeStyle:"dashed",strokeOpacity:.1,strokeWeight:20,strokeDasharray:[10,40]};var ClickEvent=Template.bind({});ClickEvent.storyName="点击事件(左单/左双/右单)",ClickEvent.args={onClick:eventHandler.onClick,onDBLClick:eventHandler.onDBLClick,onRightClick:eventHandler.onRightClick};var MouseEvent=Template.bind({});MouseEvent.storyName="鼠标事件(按下/抬起/经过/移出)",MouseEvent.args={onMousedown:eventHandler.onMousedown,onMouseup:eventHandler.onMouseup,onMouseover:eventHandler.onMouseover,onMouseout:eventHandler.onMouseout};var TouchEvent=Template.bind({});TouchEvent.storyName="触摸事件(触摸开始/触摸移动/触摸结束)",TouchEvent.args={onTouchstart:eventHandler.onTouchstart,onTouchmove:eventHandler.onTouchmove,onTouchend:eventHandler.onTouchend},CommonUse.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CommonUse.parameters),CustomStyle.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CustomStyle.parameters),ClickEvent.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},ClickEvent.parameters),MouseEvent.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},MouseEvent.parameters),TouchEvent.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},TouchEvent.parameters)},1146:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChangeOffset",(function(){return ChangeOffset})),__webpack_require__.d(__webpack_exports__,"ChangePosition",(function(){return ChangePosition})),__webpack_require__.d(__webpack_exports__,"HideControlButton",(function(){return HideControlButton}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},ChangeOffset.parameters),ChangePosition.parameters=__assign({storySource:{source:"(args) => "}},ChangePosition.parameters),HideControlButton.parameters=__assign({storySource:{source:"(args) => "}},HideControlButton.parameters)},1147:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CommonUse",(function(){return CommonUse})),__webpack_require__.d(__webpack_exports__,"CustomOverlay",(function(){return CustomOverlay}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(52),_AMapAutoFitView_stories_withAutoFitView__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(227),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i AMap.Overlay"}}},getPolyline:{description:"指定点要素的绘制方式,缺省时为 Polyline 的默认样式。",table:{type:{summary:"(geojson?: GeoJSON.GeoJSON, lnglat?: GeoJSON.Point, map?: AMap.Map | null, AMap?: AMap.AMap) => AMap.Overlay"}}},getPolygon:{description:"指定点要素的绘制方式,缺省时为 Polygon 的默认样式。",table:{type:{summary:"(geojson?: GeoJSON.GeoJSON, lnglat?: GeoJSON.Point, map?: AMap.Map | null, AMap?: AMap.AMap) => AMap.Overlay"}}}}};var Template=function Template(args){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(index__WEBPACK_IMPORTED_MODULE_3__.c,__assign({},args))},CommonUse=Template.bind({});CommonUse.storyName="基本使用",CommonUse.args={geoJSON:mockData};var CustomOverlay=Template.bind({});CustomOverlay.storyName="自定义覆盖物",CustomOverlay.args={geoJSON:mockData,options:{strokeColor:"red",strokeWeight:4},getMarker:function getMarker(_,lnglat,map,AMap){var options={position:lnglat,map:map,label:{offset:[],direction:"Top",content:"MyMarker"}};return new AMap.Marker(options)},getPolyline:function getPolyline(_,lnglat,map,AMap){var options={path:lnglat,map:map};return new AMap.Polyline(options)},getPolygon:function getPolygon(_,lnglat,map,AMap){var polygon=new AMap.Polygon,path=Object(index__WEBPACK_IMPORTED_MODULE_3__.j)(lnglat);return polygon.setPath(path),polygon.setOptions({strokeColor:"yellow"}),polygon.setMap(map),polygon}},CommonUse.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CommonUse.parameters),CustomOverlay.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CustomOverlay.parameters)},1148:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChangePosition",(function(){return ChangePosition})),__webpack_require__.d(__webpack_exports__,"ChangeStyle",(function(){return ChangeStyle})),__webpack_require__.d(__webpack_exports__,"ChangeTheme",(function(){return ChangeTheme})),__webpack_require__.d(__webpack_exports__,"NotAutoMove",(function(){return NotAutoMove}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},ChangePosition.parameters),ChangeStyle.parameters=__assign({storySource:{source:"(args) => "}},ChangeStyle.parameters),ChangeTheme.parameters=__assign({storySource:{source:"(args) => "}},ChangeTheme.parameters),NotAutoMove.parameters=__assign({storySource:{source:"(args) => "}},NotAutoMove.parameters)},1149:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CommonUse",(function(){return CommonUse})),__webpack_require__.d(__webpack_exports__,"DefaultType",(function(){return DefaultType})),__webpack_require__.d(__webpack_exports__,"DefaultShowTraffic",(function(){return DefaultShowTraffic})),__webpack_require__.d(__webpack_exports__,"DefaultShowRoad",(function(){return DefaultShowRoad}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},CommonUse.parameters),DefaultType.parameters=__assign({storySource:{source:"(args) => "}},DefaultType.parameters),DefaultShowTraffic.parameters=__assign({storySource:{source:"(args) => "}},DefaultShowTraffic.parameters),DefaultShowRoad.parameters=__assign({storySource:{source:"(args) => "}},DefaultShowRoad.parameters)},1150:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CommonUse",(function(){return CommonUse}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i) => void'}}}};var CommonUse=function Template(args){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(index__WEBPACK_IMPORTED_MODULE_4__.g,__assign({},args))}.bind({});CommonUse.storyName="基本使用",CommonUse.args={type:"polygon",options:{strokeColor:"red",strokeWeight:4},onCompleted:eventHandler.onCompleted},CommonUse.parameters=__assign({storySource:{source:"(args) => (\n \n)"}},CommonUse.parameters)},1151:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChangeOffset",(function(){return ChangeOffset})),__webpack_require__.d(__webpack_exports__,"ChangePosition",(function(){return ChangePosition}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},ChangeOffset.parameters),ChangePosition.parameters=__assign({storySource:{source:"(args) => "}},ChangePosition.parameters)},1152:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChangeOffset",(function(){return ChangeOffset})),__webpack_require__.d(__webpack_exports__,"ChangePosition",(function(){return ChangePosition}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_addon_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),index__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(25),_AMapMap_stories_AMapMap_stories__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(52),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},ChangeOffset.parameters),ChangePosition.parameters=__assign({storySource:{source:"(args) => "}},ChangePosition.parameters)},135:function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_components_AMapAPIContainer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(220);__webpack_exports__.a=function useAMapAPI(){return Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_components_AMapAPIContainer__WEBPACK_IMPORTED_MODULE_1__.a)}},136:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(13);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_useAMap__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(32),useAMapContainerBinder=function useAMapContainerBinder(curInstance){var map=Object(_useAMap__WEBPACK_IMPORTED_MODULE_2__.a)().map;Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){var clearEffect;return curInstance&&map?(clearEffect=function clearEffect(){try{map.remove(curInstance)}catch(error){}},map.add(curInstance),clearEffect):clearEffect}),[curInstance,map])};__webpack_exports__.a=useAMapContainerBinder;try{useAMapContainerBinder.displayName="useAMapContainerBinder",useAMapContainerBinder.__docgenInfo={description:"",displayName:"useAMapContainerBinder",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useAMapContainerBinder.ts#useAMapContainerBinder"]={docgenInfo:useAMapContainerBinder.__docgenInfo,name:"useAMapContainerBinder",path:"src/hooks/useAMapContainerBinder.ts#useAMapContainerBinder"})}catch(__react_docgen_typescript_loader_error){}},169:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return AMapMap_AMapMapContext})),__webpack_require__.d(__webpack_exports__,"a",(function(){return AMapMap_AMapMap}));var react=__webpack_require__(0),react_default=__webpack_require__.n(react),AMapMap_AMapMapContext=react.createContext(null),useAMapAPI=__webpack_require__(135),CONTAINER_STYLE={width:"100%",height:"100%"},defaultProps={center:void 0,cityName:void 0,zoom:void 0},AMapMap=Object(react.forwardRef)((function(_a,ref){var children=_a.children,center=_a.center,cityName=_a.cityName,zoom=_a.zoom,AMap=Object(useAMapAPI.a)().__AMAP__,$mapContainer=Object(react.useRef)(null),_b=Object(react.useState)(null),curMap=_b[0],setInstance=_b[1];return Object(react.useEffect)((function(){var clearEffect;if(!$mapContainer.current||!AMap)return clearEffect;return function initMap(){var newInstance=new AMap.Map($mapContainer.current);clearEffect=function clearEffect(){newInstance.destroy()},setInstance(newInstance)}(),clearEffect}),[AMap]),Object(react.useImperativeHandle)(ref,(function(){return curMap}),[curMap]),Object(react.useEffect)((function(){var _a;cityName&&(null===(_a=null==curMap?void 0:curMap.setCity)||void 0===_a||_a.call(curMap,cityName,(function(){})))}),[cityName,curMap]),Object(react.useEffect)((function(){zoom&&(null==curMap||curMap.setZoom(zoom))}),[zoom,curMap]),Object(react.useEffect)((function(){var _a;center&&(null===(_a=null==curMap?void 0:curMap.setCenter)||void 0===_a||_a.call(curMap,center))}),[center,curMap]),react_default.a.createElement("div",{style:CONTAINER_STYLE,ref:$mapContainer},react_default.a.createElement(AMapMap_AMapMapContext.Provider,{value:curMap},children))}));AMapMap.defaultProps=defaultProps;var AMapMap_AMapMap=Object(react.memo)(AMapMap);try{AMapMap.displayName="AMapMap",AMapMap.__docgenInfo={description:"",displayName:"AMapMap",props:{center:{defaultValue:{value:"undefined"},description:"",name:"center",required:!1,type:{name:"[number, number]"}},cityName:{defaultValue:{value:"undefined"},description:"",name:"cityName",required:!1,type:{name:"string"}},zoom:{defaultValue:{value:"undefined"},description:"",name:"zoom",required:!1,type:{name:"number"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"ReactText"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMap/AMapMap.tsx#AMapMap"]={docgenInfo:AMapMap.__docgenInfo,name:"AMapMap",path:"src/components/AMapMap/AMapMap.tsx#AMapMap"})}catch(__react_docgen_typescript_loader_error){}try{AMapMap.displayName="AMapMap",AMapMap.__docgenInfo={description:"",displayName:"AMapMap",props:{center:{defaultValue:{value:"undefined"},description:"",name:"center",required:!1,type:{name:"[number, number]"}},cityName:{defaultValue:{value:"undefined"},description:"",name:"cityName",required:!1,type:{name:"string"}},zoom:{defaultValue:{value:"undefined"},description:"",name:"zoom",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMap/AMapMap.tsx#AMapMap"]={docgenInfo:AMapMap.__docgenInfo,name:"AMapMap",path:"src/components/AMapMap/AMapMap.tsx#AMapMap"})}catch(__react_docgen_typescript_loader_error){}},220:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return AMapAPIContainer_AMapAPIContext})),__webpack_require__.d(__webpack_exports__,"b",(function(){return createAMapAPIContainer_createAMapAPIContainer}));var react=__webpack_require__(0),react_default=__webpack_require__.n(react),defaultContext={__AMAP__:null,__AMAP_UI__:null},AMapAPIContainer_AMapAPIContext=Object(react.createContext)(defaultContext),dist=(__webpack_require__(3),__webpack_require__(110),__webpack_require__(10),__webpack_require__(4),__webpack_require__(11),__webpack_require__(21),__webpack_require__(15),__webpack_require__(14),__webpack_require__(18),__webpack_require__(17),__webpack_require__(522)),dist_default=__webpack_require__.n(dist),getGlobalObject=__webpack_require__(228),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]0&&promises.push(new Promise((function(r){AMap.plugin(otherOptions.plugins,r)}))),[4,Promise.all(promises)];case 3:_c.sent(),_c.label=4;case 4:return[2,{default:function AMapAPIContainer(_a){var children=_a.children;return react_default.a.createElement(AMapAPIContainer_AMapAPIContext.Provider,{value:{__AMAP__:AMap,__AMAP_UI__:AMapUI}},children)}}]}}))}))}))};try{createAMapAPIContainer_createAMapAPIContainer.displayName="createAMapAPIContainer",createAMapAPIContainer_createAMapAPIContainer.__docgenInfo={description:"",displayName:"createAMapAPIContainer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAPIContainer/createAMapAPIContainer.tsx#createAMapAPIContainer"]={docgenInfo:createAMapAPIContainer_createAMapAPIContainer.__docgenInfo,name:"createAMapAPIContainer",path:"src/components/AMapAPIContainer/createAMapAPIContainer.tsx#createAMapAPIContainer"})}catch(__react_docgen_typescript_loader_error){}try{createAMapAPIContainer_createAMapAPIContainer.displayName="createAMapAPIContainer",createAMapAPIContainer_createAMapAPIContainer.__docgenInfo={description:"",displayName:"createAMapAPIContainer",props:{key:{defaultValue:null,description:"",name:"key",required:!0,type:{name:"string"}},version:{defaultValue:null,description:"",name:"version",required:!0,type:{name:"string"}},plugins:{defaultValue:null,description:"",name:"plugins",required:!1,type:{name:"string[]"}},AMapUI:{defaultValue:null,description:"",name:"AMapUI",required:!1,type:{name:"{ version?: string; plugins?: string[] | undefined; } | undefined"}},Loca:{defaultValue:null,description:"",name:"Loca",required:!1,type:{name:"{ version?: string; } | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAPIContainer/createAMapAPIContainer.tsx#createAMapAPIContainer"]={docgenInfo:createAMapAPIContainer_createAMapAPIContainer.__docgenInfo,name:"createAMapAPIContainer",path:"src/components/AMapAPIContainer/createAMapAPIContainer.tsx#createAMapAPIContainer"})}catch(__react_docgen_typescript_loader_error){}},225:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"AsyncPluginAPIContainer",(function(){return AsyncPluginAPIContainer})),__webpack_require__.d(__webpack_exports__,"AsyncPlugin",(function(){return AsyncPlugin})),__webpack_require__.d(__webpack_exports__,"SyncPlugin",(function(){return SyncPlugin}));__webpack_require__(3),__webpack_require__(13),__webpack_require__(10),__webpack_require__(19),__webpack_require__(22);var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),index__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(25),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i {\n const { __AMAP__: AMap } = useAMapAPI();\n const $container = useRef(null);\n const $map = useRef(null);\n useEffect(() => {\n let clearEffect;\n if (!AMap || !$container.current) {\n return clearEffect;\n }\n\n const map = new AMap.Map($container.current);\n $map.current = map;\n\n AMap.plugin(\n ['ControlBar', 'ToolBar', 'Scale', 'MapType', 'HawkEye'].map(\n (pluginName) => `AMap.${pluginName}`,\n ),\n () => initPlugin(AMap, map),\n );\n\n AMapUI.loadUI('overlay/SimpleMarker', (SimpleMarker: typeof AMapUI.SimpleMarker) => {\n initUIPlugin(SimpleMarker, map);\n });\n\n clearEffect = () => {\n map.destroy();\n };\n\n return clearEffect;\n }, [AMap]);\n\n return
;\n};\n";AsyncPlugin.parameters={docs:{source:{code:AsyncPluginCode}}};var SyncPluginContentDrawer=function SyncPluginContentDrawer(){var _a=Object(index__WEBPACK_IMPORTED_MODULE_6__.l)(),AMap=_a.__AMAP__,AMapUI=_a.__AMAP_UI__,$container=Object(react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null),$map=Object(react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null);return Object(react__WEBPACK_IMPORTED_MODULE_5__.useEffect)((function(){var clearEffect;if(!AMap||!$container.current)return clearEffect;var map=new AMap.Map($container.current);return $map.current=map,initPlugin(AMap,map),initUIPlugin(AMapUI.SimpleMarker,map),clearEffect=function clearEffect(){map.destroy()}}),[AMap,AMapUI]),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{ref:$container,style:{height:400}})},SyncPlugin=function SyncPlugin(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_5__.Suspense,{fallback:"loading..."},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(SyncPluginAPIContainer,null,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(SyncPluginContentDrawer,null)))};SyncPlugin.storyName="同步加载插件";var SyncPluginCode="\nconst SyncPluginAPIContainer = createAMapAPIContainer({\n version: '2.0',\n apiKey: AMAP_API_KEY,\n plugins: ['ControlBar', 'ToolBar', 'Scale', 'MapType', 'HawkEye'].map(\n (pluginName) => `AMap.${pluginName}`,\n ),\n AMapUI: {\n version: '1.1',\n plugins: ['overlay/SimpleMarker'],\n },\n});\n\n"+initPlugin.toString()+"\n\n"+initUIPlugin.toString()+"\n\nconst SyncPluginContentDrawer = () => {\n const { __AMAP__: AMap, __AMAP_UI__: AMapUI } = useAMapAPI();\n const $container = useRef(null);\n const $map = useRef(null);\n useEffect(() => {\n let clearEffect;\n if (!AMap || !$container.current) {\n return clearEffect;\n }\n\n const map = new AMap.Map($container.current);\n $map.current = map;\n\n initPlugin(AMap, map);\n initUIPlugin(AMapUI!.SimpleMarker, map);\n\n clearEffect = () => {\n map.destroy();\n };\n\n return clearEffect;\n }, [AMap, AMapUI]);\n return
;\n};\n\n() => (\n \n \n \n)\n";SyncPlugin.parameters={docs:{source:{code:SyncPluginCode}}},AsyncPluginAPIContainer.parameters=__assign({storySource:{source:"createAMapAPIContainer({\n key: AMAP_API_KEY,\n version: '2.0',\n AMapUI: {\n version: '1.1',\n },\n})"}},AsyncPluginAPIContainer.parameters),AsyncPlugin.parameters=__assign({storySource:{source:'() => (\n \n \n \n \n \n)'}},AsyncPlugin.parameters),SyncPlugin.parameters=__assign({storySource:{source:'() => (\n \n \n \n \n \n)'}},SyncPlugin.parameters);try{AsyncPluginAPIContainer.displayName="AsyncPluginAPIContainer",AsyncPluginAPIContainer.__docgenInfo={description:"",displayName:"AsyncPluginAPIContainer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAPIContainer/stories/createAMapAPIContainer.stories.tsx#AsyncPluginAPIContainer"]={docgenInfo:AsyncPluginAPIContainer.__docgenInfo,name:"AsyncPluginAPIContainer",path:"src/components/AMapAPIContainer/stories/createAMapAPIContainer.stories.tsx#AsyncPluginAPIContainer"})}catch(__react_docgen_typescript_loader_error){}},226:function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);__webpack_exports__.a=function useVisible(instance,visible){Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var _a,_b;visible?null===(_a=null==instance?void 0:instance.show)||void 0===_a||_a.call(instance):null===(_b=null==instance?void 0:instance.hide)||void 0===_b||_b.call(instance)}),[instance,visible])}},227:function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__(0),react_default=__webpack_require__.n(react),AMapAutoFitView=__webpack_require__(512);__webpack_exports__.a=function withAutoFitView(renderStory,context){return react_default.a.createElement(react_default.a.Fragment,null,renderStory({},context),react_default.a.createElement(AMapAutoFitView.a,null))}},228:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__(1143);__webpack_exports__.a=function getGlobalObject(){var _a;return null!==(_a=null!==globalThis&&void 0!==globalThis?globalThis:global)&&void 0!==_a?_a:window}}).call(this,__webpack_require__(53))},25:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"l",(function(){return useAMapAPI.a})),__webpack_require__.d(__webpack_exports__,"k",(function(){return AMapAPIContainer.b})),__webpack_require__.d(__webpack_exports__,"e",(function(){return AMapMap.a})),__webpack_require__.d(__webpack_exports__,"b",(function(){return components_AMapControlBar_AMapControlBar})),__webpack_require__.d(__webpack_exports__,"d",(function(){return components_AMapHawkEye_AMapHawkEye})),__webpack_require__.d(__webpack_exports__,"h",(function(){return components_AMapScale_AMapScale})),__webpack_require__.d(__webpack_exports__,"i",(function(){return components_AMapToolBar_AMapToolBar})),__webpack_require__.d(__webpack_exports__,"f",(function(){return components_AMapMapType_AMapMapType})),__webpack_require__.d(__webpack_exports__,"c",(function(){return AMapGeoJSON.default})),__webpack_require__.d(__webpack_exports__,"a",(function(){return AMapCircle.default})),__webpack_require__.d(__webpack_exports__,"g",(function(){return AMapMouseTool.default})),__webpack_require__.d(__webpack_exports__,"j",(function(){return helpers_coordsOfGeoJSON2AMapPolygonPath}));var useAMapAPI=__webpack_require__(135),useAMap=__webpack_require__(32),useAMapEventBinder=(__webpack_require__(136),__webpack_require__(26)),react=(__webpack_require__(13),__webpack_require__(0)),hooks_useAMapPluginInstance=function useAMapPluginInstance(pluginName,initInstance){var _a=Object(useAMap.a)(),AMap=_a.__AMAP__,map=_a.map,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1];return Object(react.useEffect)((function(){if(AMap&&map){var init=function init(){var instance=initInstance(AMap,map);setInstance(instance)};AMap[pluginName]?init():AMap.plugin(["AMap."+pluginName],init)}}),[AMap,map,pluginName,initInstance]),curInstance},AMapAPIContainer=__webpack_require__(220),AMapMap=__webpack_require__(169),useAMapControlBinder_useAMapControlBinder=function useAMapControlBinder(controlInstance){var map=Object(useAMap.a)().map;Object(react.useEffect)((function(){var clearEffect;return controlInstance&&map?(clearEffect=function clearEffect(){map.removeControl(controlInstance)},map.addControl(controlInstance),clearEffect):clearEffect}),[map,controlInstance])},hooks_useAMapControlBinder=useAMapControlBinder_useAMapControlBinder;try{useAMapControlBinder_useAMapControlBinder.displayName="useAMapControlBinder",useAMapControlBinder_useAMapControlBinder.__docgenInfo={description:"",displayName:"useAMapControlBinder",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useAMapControlBinder.ts#useAMapControlBinder"]={docgenInfo:useAMapControlBinder_useAMapControlBinder.__docgenInfo,name:"useAMapControlBinder",path:"src/hooks/useAMapControlBinder.ts#useAMapControlBinder"})}catch(__react_docgen_typescript_loader_error){}var AMapControlBar_AMapControlBar=function AMapControlBar(_a){var position=_a.position,offset=_a.offset,showControlButton=_a.showControlButton,visible=_a.visible,onHide=_a.onHide,onShow=_a.onShow,AMap=Object(useAMap.a)().__AMAP__,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1],initConfig=Object(react.useMemo)((function(){var conf={position:position};return void 0!==showControlButton&&(conf.showControlButton=showControlButton),void 0!==offset&&(conf.offset=offset),conf}),[showControlButton,position,offset]);return Object(react.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.ControlBar(initConfig);setInstance(newInstance)};AMap.ControlBar?initInstance():AMap.plugin("AMap.ControlBar",initInstance)}}),[AMap,initConfig]),Object(react.useEffect)((function(){var _a,_b;visible?null===(_a=null==curInstance?void 0:curInstance.show)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.hide)||void 0===_b||_b.call(curInstance)}),[curInstance,visible]),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapControlBar_AMapControlBar.defaultProps={position:"LT",showControlButton:!0,visible:!0,onShow:void 0,onHide:void 0};var components_AMapControlBar_AMapControlBar=Object(react.memo)(AMapControlBar_AMapControlBar);try{AMapControlBar_AMapControlBar.displayName="AMapControlBar",AMapControlBar_AMapControlBar.__docgenInfo={description:"",displayName:"AMapControlBar",props:{offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"[number, number]"}},position:{defaultValue:{value:"'LT' as AMapControlBarProps['position']"},description:"",name:"position",required:!1,type:{name:'{ top?: string; left?: string; right?: string; bottom?: string; } | "LT" | "RT" | "LB" | "RB"'}},showControlButton:{defaultValue:{value:!0},description:"",name:"showControlButton",required:!1,type:{name:"boolean"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event: any) => void"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapControlBar/AMapControlBar.tsx#AMapControlBar"]={docgenInfo:AMapControlBar_AMapControlBar.__docgenInfo,name:"AMapControlBar",path:"src/components/AMapControlBar/AMapControlBar.tsx#AMapControlBar"})}catch(__react_docgen_typescript_loader_error){}try{AMapControlBar_AMapControlBar.displayName="AMapControlBar",AMapControlBar_AMapControlBar.__docgenInfo={description:"",displayName:"AMapControlBar",props:{offset:{defaultValue:null,description:"",name:"offset",required:!0,type:{name:"any"}},position:{defaultValue:{value:"'LT' as AMapControlBarProps['position']"},description:"",name:"position",required:!1,type:{name:"any"}},showControlButton:{defaultValue:{value:!0},description:"",name:"showControlButton",required:!1,type:{name:"boolean"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"((event: any) => void)"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"((event: any) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapControlBar/AMapControlBar.tsx#AMapControlBar"]={docgenInfo:AMapControlBar_AMapControlBar.__docgenInfo,name:"AMapControlBar",path:"src/components/AMapControlBar/AMapControlBar.tsx#AMapControlBar"})}catch(__react_docgen_typescript_loader_error){}var AMapHawkEye_AMapHawkEye=function AMapHawkEye(_a){var autoMove=_a.autoMove,showRectangle=_a.showRectangle,showButton=_a.showButton,isOpen=_a.isOpen,mapStyle=_a.mapStyle,width=_a.width,height=_a.height,offset=_a.offset,borderStyle=_a.borderStyle,borderColor=_a.borderColor,borderRadius=_a.borderRadius,borderWidth=_a.borderWidth,buttonSize=_a.buttonSize,visible=_a.visible,onShow=_a.onShow,onHide=_a.onHide,AMap=Object(useAMap.a)().__AMAP__,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1],initConfig=Object(react.useMemo)((function(){var conf={};return void 0!==autoMove&&(conf.autoMove=autoMove),void 0!==showRectangle&&(conf.showRectangle=showRectangle),void 0!==showButton&&(conf.showButton=showButton),void 0!==mapStyle&&(conf.mapStyle=mapStyle),void 0!==width&&(conf.width=width),void 0!==height&&(conf.height=height),void 0!==offset&&(conf.offset=offset),void 0!==borderStyle&&(conf.borderStyle=borderStyle),void 0!==borderColor&&(conf.borderColor=borderColor),void 0!==borderRadius&&(conf.borderRadius=borderRadius),void 0!==borderWidth&&(conf.borderWidth=borderWidth),void 0!==buttonSize&&(conf.buttonSize=buttonSize),conf}),[autoMove,showRectangle,showButton,mapStyle,width,height,offset,borderStyle,borderColor,borderRadius,borderWidth,buttonSize]);return Object(react.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.HawkEye(initConfig);setInstance(newInstance)};AMap.HawkEye?initInstance():AMap.plugin("AMap.HawkEye",initInstance)}}),[AMap,initConfig]),Object(react.useEffect)((function(){var _a,_b;isOpen?null===(_a=null==curInstance?void 0:curInstance.open)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.close)||void 0===_b||_b.call(curInstance)}),[curInstance,isOpen]),Object(react.useEffect)((function(){var _a,_b;visible?null===(_a=null==curInstance?void 0:curInstance.show)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.hide)||void 0===_b||_b.call(curInstance)}),[curInstance,visible]),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapHawkEye_AMapHawkEye.defaultProps={showButton:!0,isOpen:!0,visible:!0,onShow:void 0,onHide:void 0};var components_AMapHawkEye_AMapHawkEye=Object(react.memo)(AMapHawkEye_AMapHawkEye);try{AMapHawkEye_AMapHawkEye.displayName="AMapHawkEye",AMapHawkEye_AMapHawkEye.__docgenInfo={description:"",displayName:"AMapHawkEye",props:{autoMove:{defaultValue:null,description:"",name:"autoMove",required:!1,type:{name:"boolean"}},showRectangle:{defaultValue:null,description:"",name:"showRectangle",required:!1,type:{name:"boolean"}},showButton:{defaultValue:{value:!0},description:"",name:"showButton",required:!1,type:{name:"boolean"}},isOpen:{defaultValue:{value:!0},description:"",name:"isOpen",required:!1,type:{name:"boolean"}},mapStyle:{defaultValue:null,description:"",name:"mapStyle",required:!1,type:{name:"string"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"string"}},offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"[number, number]"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:"string"}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"string"}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"string"}},buttonSize:{defaultValue:null,description:"",name:"buttonSize",required:!1,type:{name:"string"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event?: any) => void"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event?: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapHawkEye/AMapHawkEye.tsx#AMapHawkEye"]={docgenInfo:AMapHawkEye_AMapHawkEye.__docgenInfo,name:"AMapHawkEye",path:"src/components/AMapHawkEye/AMapHawkEye.tsx#AMapHawkEye"})}catch(__react_docgen_typescript_loader_error){}try{AMapHawkEye_AMapHawkEye.displayName="AMapHawkEye",AMapHawkEye_AMapHawkEye.__docgenInfo={description:"",displayName:"AMapHawkEye",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapHawkEye/AMapHawkEye.tsx#AMapHawkEye"]={docgenInfo:AMapHawkEye_AMapHawkEye.__docgenInfo,name:"AMapHawkEye",path:"src/components/AMapHawkEye/AMapHawkEye.tsx#AMapHawkEye"})}catch(__react_docgen_typescript_loader_error){}var AMapScale_AMapScale=function AMapScale(_a){var position=_a.position,offset=_a.offset,visible=_a.visible,onShow=_a.onShow,onHide=_a.onHide,AMap=Object(useAMap.a)().__AMAP__,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1],initConfig=Object(react.useMemo)((function(){var conf={position:position};return void 0!==offset&&(conf.offset=offset),conf}),[position,offset]);return Object(react.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.Scale(initConfig);setInstance(newInstance)};AMap.Scale?initInstance():AMap.plugin("AMap.Scale",initInstance)}}),[AMap,position,offset,initConfig]),Object(react.useEffect)((function(){var _a,_b;visible?null===(_a=null==curInstance?void 0:curInstance.show)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.hide)||void 0===_b||_b.call(curInstance)}),[curInstance,visible]),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapScale_AMapScale.defaultProps={position:"LB",visible:!0,onShow:void 0,onHide:void 0};var components_AMapScale_AMapScale=Object(react.memo)(AMapScale_AMapScale);try{AMapScale_AMapScale.displayName="AMapScale",AMapScale_AMapScale.__docgenInfo={description:"",displayName:"AMapScale",props:{offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"[number, number]"}},position:{defaultValue:{value:"'LB' as AMapScaleProps['position']"},description:"",name:"position",required:!1,type:{name:'{ top?: string; left?: string; right?: string; bottom?: string; } | "LT" | "RT" | "LB" | "RB"'}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event?: any) => void"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event?: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapScale/AMapScale.tsx#AMapScale"]={docgenInfo:AMapScale_AMapScale.__docgenInfo,name:"AMapScale",path:"src/components/AMapScale/AMapScale.tsx#AMapScale"})}catch(__react_docgen_typescript_loader_error){}try{AMapScale_AMapScale.displayName="AMapScale",AMapScale_AMapScale.__docgenInfo={description:"",displayName:"AMapScale",props:{offset:{defaultValue:null,description:"",name:"offset",required:!0,type:{name:"any"}},position:{defaultValue:{value:"'LB' as AMapScaleProps['position']"},description:"",name:"position",required:!1,type:{name:"any"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"((event?: any) => void)"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"((event?: any) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapScale/AMapScale.tsx#AMapScale"]={docgenInfo:AMapScale_AMapScale.__docgenInfo,name:"AMapScale",path:"src/components/AMapScale/AMapScale.tsx#AMapScale"})}catch(__react_docgen_typescript_loader_error){}var AMapToolBar_AMapToolBar=function AMapToolBar(_a){var position=_a.position,offset=_a.offset,visible=_a.visible,onShow=_a.onShow,onHide=_a.onHide,AMap=Object(useAMap.a)().__AMAP__,_b=Object(react.useState)(null),curInstance=_b[0],setInstance=_b[1],initConfig=Object(react.useMemo)((function(){var conf={position:position};return void 0!==offset&&(conf.offset=offset),conf}),[position,offset]);return Object(react.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.ToolBar(initConfig);setInstance(newInstance)};AMap.ToolBar?initInstance():AMap.plugin("AMap.ToolBar",initInstance)}}),[AMap,position,offset,initConfig]),Object(react.useEffect)((function(){var _a,_b;visible?null===(_a=null==curInstance?void 0:curInstance.show)||void 0===_a||_a.call(curInstance):null===(_b=null==curInstance?void 0:curInstance.hide)||void 0===_b||_b.call(curInstance)}),[curInstance,visible]),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapToolBar_AMapToolBar.defaultProps={position:"LT",visible:!0,onShow:void 0,onHide:void 0};var components_AMapToolBar_AMapToolBar=Object(react.memo)(AMapToolBar_AMapToolBar);try{AMapToolBar_AMapToolBar.displayName="AMapToolBar",AMapToolBar_AMapToolBar.__docgenInfo={description:"",displayName:"AMapToolBar",props:{offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"[number, number]"}},position:{defaultValue:{value:"'LT' as AMapToolBarProps['position']"},description:"",name:"position",required:!1,type:{name:'{ top?: string; left?: string; right?: string; bottom?: string; } | "LT" | "RT" | "LB" | "RB"'}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event?: any) => void"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event?: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapToolBar/AMapToolBar.tsx#AMapToolBar"]={docgenInfo:AMapToolBar_AMapToolBar.__docgenInfo,name:"AMapToolBar",path:"src/components/AMapToolBar/AMapToolBar.tsx#AMapToolBar"})}catch(__react_docgen_typescript_loader_error){}try{AMapToolBar_AMapToolBar.displayName="AMapToolBar",AMapToolBar_AMapToolBar.__docgenInfo={description:"",displayName:"AMapToolBar",props:{offset:{defaultValue:null,description:"",name:"offset",required:!0,type:{name:"any"}},position:{defaultValue:{value:"'LT' as AMapToolBarProps['position']"},description:"",name:"position",required:!1,type:{name:"any"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"((event?: any) => void)"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"((event?: any) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapToolBar/AMapToolBar.tsx#AMapToolBar"]={docgenInfo:AMapToolBar_AMapToolBar.__docgenInfo,name:"AMapToolBar",path:"src/components/AMapToolBar/AMapToolBar.tsx#AMapToolBar"})}catch(__react_docgen_typescript_loader_error){}var useVisible=__webpack_require__(226),AMapMapType_AMapMapType=function AMapMapType(_a){var defaultType=_a.defaultType,showTraffic=_a.showTraffic,showRoad=_a.showRoad,visible=_a.visible,onHide=_a.onHide,onShow=_a.onShow,initInstance=Object(react.useCallback)((function(AMap){return new AMap.MapType({defaultType:defaultType,showTraffic:showTraffic,showRoad:showRoad})}),[defaultType,showRoad,showTraffic]),curInstance=hooks_useAMapPluginInstance("MapType",initInstance);return Object(useVisible.a)(curInstance,!!visible),Object(useAMapEventBinder.a)(curInstance,"show",onShow),Object(useAMapEventBinder.a)(curInstance,"hide",onHide),hooks_useAMapControlBinder(curInstance),null};AMapMapType_AMapMapType.defaultProps={defaultType:0,showTraffic:!1,showRoad:!1,visible:!0,onShow:void 0,onHide:void 0};var components_AMapMapType_AMapMapType=AMapMapType_AMapMapType;try{AMapMapType_AMapMapType.displayName="AMapMapType",AMapMapType_AMapMapType.__docgenInfo={description:"",displayName:"AMapMapType",props:{defaultType:{defaultValue:{value:0},description:"",name:"defaultType",required:!1,type:{name:"number"}},showTraffic:{defaultValue:{value:!1},description:"",name:"showTraffic",required:!1,type:{name:"boolean"}},showRoad:{defaultValue:{value:!1},description:"",name:"showRoad",required:!1,type:{name:"boolean"}},visible:{defaultValue:{value:!0},description:"",name:"visible",required:!1,type:{name:"boolean"}},onHide:{defaultValue:{value:"undefined"},description:"",name:"onHide",required:!1,type:{name:"(event?: any) => void"}},onShow:{defaultValue:{value:"undefined"},description:"",name:"onShow",required:!1,type:{name:"(event?: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMapType/AMapMapType.tsx#AMapMapType"]={docgenInfo:AMapMapType_AMapMapType.__docgenInfo,name:"AMapMapType",path:"src/components/AMapMapType/AMapMapType.tsx#AMapMapType"})}catch(__react_docgen_typescript_loader_error){}try{AMapMapType_AMapMapType.displayName="AMapMapType",AMapMapType_AMapMapType.__docgenInfo={description:"",displayName:"AMapMapType",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMapType/AMapMapType.tsx#AMapMapType"]={docgenInfo:AMapMapType_AMapMapType.__docgenInfo,name:"AMapMapType",path:"src/components/AMapMapType/AMapMapType.tsx#AMapMapType"})}catch(__react_docgen_typescript_loader_error){}var AMapGeoJSON=__webpack_require__(504),AMapCircle=__webpack_require__(507),AMapMouseTool=__webpack_require__(509),isPosition=(__webpack_require__(12),__webpack_require__(16),__webpack_require__(112),function isPosition(pos){return Array.isArray(pos)&&2===pos.length&&"number"==typeof pos[0]&&"number"==typeof pos[1]}),isLineCoords=function isLineCoords(line){return Array.isArray(line)&&line.every(isPosition)};try{isPosition.displayName="isPosition",isPosition.__docgenInfo={description:"",displayName:"isPosition",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/helpers/geoJSONHelper.ts#isPosition"]={docgenInfo:isPosition.__docgenInfo,name:"isPosition",path:"src/helpers/geoJSONHelper.ts#isPosition"})}catch(__react_docgen_typescript_loader_error){}try{isLineCoords.displayName="isLineCoords",isLineCoords.__docgenInfo={description:"",displayName:"isLineCoords",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/helpers/geoJSONHelper.ts#isLineCoords"]={docgenInfo:isLineCoords.__docgenInfo,name:"isLineCoords",path:"src/helpers/geoJSONHelper.ts#isLineCoords"})}catch(__react_docgen_typescript_loader_error){}var coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath=function coordsOfGeoJSON2AMapPolygonPath(coords){return isLineCoords(coords)?function coordsOfGeoJSONRingLine2AMapPolygonPath(coords){var len=coords.length;return coords.slice(0,len-1)}(coords):coords.map(coordsOfGeoJSON2AMapPolygonPath)},helpers_coordsOfGeoJSON2AMapPolygonPath=coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath;try{coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath.displayName="coordsOfGeoJSON2AMapPolygonPath",coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath.__docgenInfo={description:"去掉最后一个 Position 点。\n支持 GeoJSON.Polygon 和 GeoJSON.MultiplePolygon 转换",displayName:"coordsOfGeoJSON2AMapPolygonPath",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/helpers/coordsOfGeoJSON2AMapPolygonPath.ts#coordsOfGeoJSON2AMapPolygonPath"]={docgenInfo:coordsOfGeoJSON2AMapPolygonPath_coordsOfGeoJSON2AMapPolygonPath.__docgenInfo,name:"coordsOfGeoJSON2AMapPolygonPath",path:"src/helpers/coordsOfGeoJSON2AMapPolygonPath.ts#coordsOfGeoJSON2AMapPolygonPath"})}catch(__react_docgen_typescript_loader_error){}var isLatLng=function isLatLng(p){return!(!("lat"in p)||!("lng"in p))},amapPolygonPath2GeoJSONCoords_amapPolygonPath2GeoJSONCoords=function amapPolygonPath2GeoJSONCoords(path){if(function isLatLngArr(p){return p.every(isLatLng)}(path)){var coords=path.map((function(item){return item.toArray()}));return coords.push(coords[0].slice(0)),coords}return path.map(amapPolygonPath2GeoJSONCoords)};try{amapPolygonPath2GeoJSONCoords_amapPolygonPath2GeoJSONCoords.displayName="amapPolygonPath2GeoJSONCoords",amapPolygonPath2GeoJSONCoords_amapPolygonPath2GeoJSONCoords.__docgenInfo={description:"补充最后一个 Position。\n支持转换至 GeoJSON.Polygon 和 GeoJSON.MultiplePolygon 的 coords",displayName:"amapPolygonPath2GeoJSONCoords",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"(() => string) | (() => string) | (() => string)"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocalString methods.",name:"toLocaleString",required:!1,type:{name:"(() => string) | (() => string) | (() => string)"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.",name:"pop",required:!0,type:{name:"(() => any) | (() => any[]) | (() => any[][])"}},push:{defaultValue:null,description:"Appends new elements to an array, and returns the new length of the array.\n@param items New elements of the Array.",name:"push",required:!0,type:{name:"((...items: any[]) => number) | ((...items: any[][]) => number) | ((...items: any[][][]) => number)"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nCombines two or more arrays.\n@param items Additional items to add to the end of array1.\n@param items Additional items to add to the end of array1.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray[]): any[]; (...items: any[]): any[]; } | { (...items: ConcatArray[]): any[][]; (...items: (any[] | ConcatArray)[]): any[][]; } | { ...; }"}},join:{defaultValue:null,description:"Adds all the elements of an array separated by the specified separator string.\n@param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"((separator?: string) => string) | ((separator?: string) => string) | ((separator?: string) => string)"}},reverse:{defaultValue:null,description:"Reverses the elements in an Array.",name:"reverse",required:!0,type:{name:"(() => any[]) | (() => any[][]) | (() => any[][][])"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.",name:"shift",required:!0,type:{name:"(() => any) | (() => any[]) | (() => any[][])"}},slice:{defaultValue:null,description:"Returns a section of an array.\n@param start The beginning of the specified portion of the array.\n@param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.",name:"slice",required:!0,type:{name:"((start?: number, end?: number) => any[]) | ((start?: number, end?: number) => any[][]) | ((start?: number, end?: number) => any[][][])"}},sort:{defaultValue:null,description:"Sorts an array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\ra negative value if first argument is less than second argument, zero if they're equal and a positive\rvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r```ts\r[11,2,22,1].sort((a, b) => a - b)\r```",name:"sort",required:!0,type:{name:"((compareFn?: (a: any, b: any) => number) => any[]) | ((compareFn?: (a: any[], b: any[]) => number) => any[][]) | ((compareFn?: (a: any[][], b: any[][]) => number) => any[][][])"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\nRemoves elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param items Elements to insert into the array in place of the deleted elements.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; } | { (start: number, deleteCount?: number): any[][]; (start: number, deleteCount: number, ...items: any[][]): any[][]; } | { ...; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array.\n@param items Elements to insert at the start of the Array.",name:"unshift",required:!0,type:{name:"((...items: any[]) => number) | ((...items: any[][]) => number) | ((...items: any[][][]) => number)"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => number) | ((searchElement: any[], fromIndex?: number) => number) | ((searchElement: any[][], fromIndex?: number) => number)"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => number) | ((searchElement: any[], fromIndex?: number) => number) | ((searchElement: any[][], fromIndex?: number) => number)"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param callbackfn A function that accepts up to three arguments. The every method calls\rthe callbackfn function for each element in the array until the callbackfn returns a value\rwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function.\rIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[], index: number, array: any[][]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => unknown, thisArg?: any) => boolean)"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param callbackfn A function that accepts up to three arguments. The some method calls\rthe callbackfn function for each element in the array until the callbackfn returns a value\rwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function.\rIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[], index: number, array: any[][]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => unknown, thisArg?: any) => boolean)"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any) => void) | ((callbackfn: (value: any[], index: number, array: any[][]) => void, thisArg?: any) => void) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => void, thisArg?: any) => void)"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any[], index: number, array: any[][]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => U, thisArg?: any) => U[])"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\nReturns the elements of an array that meet the condition specified in a callback function.\n@param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n@param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ (callbackfn: (value: any, index: number, array: any[]) => value is S, thisArg?: any): S[]; (callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any): any[]; } | { (callbackfn: (value: any[], index: number, array: any[][]) => value is S, thisArg?: any): S[]; (..."}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\nCalls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) ..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\nCalls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) ..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\rorder, until it finds one where predicate returns true. If such an element is found, find\rimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\rpredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ (predicate: (this: void, value: any, index: number, obj: any[]) => value is S, thisArg?: any): S; (predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any; } | { ...; } | { ...; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\rorder, until it finds one where predicate returns true. If such an element is found,\rfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\rpredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"((predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any) => number) | ((predicate: (value: any[], index: number, obj: any[][]) => unknown, thisArg?: any) => number) | ((predicate: (value: any[][], index: number, obj: any[][][]) => unknown, thisArg?: any) => number)"}},fill:{defaultValue:null,description:"Returns the this object after filling the section identified by start and end with value\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\rlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\rlength+end.",name:"fill",required:!0,type:{name:"((value: any, start?: number, end?: number) => any[]) | ((value: any[], start?: number, end?: number) => any[][]) | ((value: any[][], start?: number, end?: number) => any[][][])"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\rlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\ris treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"((target: number, start: number, end?: number) => any[]) | ((target: number, start: number, end?: number) => any[][]) | ((target: number, start: number, end?: number) => any[][][])"}},"__@iterator":{defaultValue:null,description:"Iterator",name:"__@iterator",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"(() => IterableIterator<[number, any]>) | (() => IterableIterator<[number, any[]]>) | (() => IterableIterator<[number, any[][]]>)"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},"__@unscopables":{defaultValue:null,description:"Returns an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables",required:!0,type:{name:"(() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { ...; })"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => boolean) | ((searchElement: any[], fromIndex?: number) => boolean) | ((searchElement: any[][], fromIndex?: number) => boolean)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/helpers/amapPolygonPath2GeoJSONCoords.ts#amapPolygonPath2GeoJSONCoords"]={docgenInfo:amapPolygonPath2GeoJSONCoords_amapPolygonPath2GeoJSONCoords.__docgenInfo,name:"amapPolygonPath2GeoJSONCoords",path:"src/helpers/amapPolygonPath2GeoJSONCoords.ts#amapPolygonPath2GeoJSONCoords"})}catch(__react_docgen_typescript_loader_error){}try{useAMapContainerBinder.displayName="useAMapContainerBinder",useAMapContainerBinder.__docgenInfo={description:"",displayName:"useAMapContainerBinder",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/index.ts#useAMapContainerBinder"]={docgenInfo:useAMapContainerBinder.__docgenInfo,name:"useAMapContainerBinder",path:"src/index.ts#useAMapContainerBinder"})}catch(__react_docgen_typescript_loader_error){}try{coordsOfGeoJSON2AMapPolygonPath.displayName="coordsOfGeoJSON2AMapPolygonPath",coordsOfGeoJSON2AMapPolygonPath.__docgenInfo={description:"去掉最后一个 Position 点。\n支持 GeoJSON.Polygon 和 GeoJSON.MultiplePolygon 转换",displayName:"coordsOfGeoJSON2AMapPolygonPath",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/index.ts#coordsOfGeoJSON2AMapPolygonPath"]={docgenInfo:coordsOfGeoJSON2AMapPolygonPath.__docgenInfo,name:"coordsOfGeoJSON2AMapPolygonPath",path:"src/index.ts#coordsOfGeoJSON2AMapPolygonPath"})}catch(__react_docgen_typescript_loader_error){}try{amapPolygonPath2GeoJSONCoords.displayName="amapPolygonPath2GeoJSONCoords",amapPolygonPath2GeoJSONCoords.__docgenInfo={description:"补充最后一个 Position。\n支持转换至 GeoJSON.Polygon 和 GeoJSON.MultiplePolygon 的 coords",displayName:"amapPolygonPath2GeoJSONCoords",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"(() => string) | (() => string) | (() => string)"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocalString methods.",name:"toLocaleString",required:!1,type:{name:"(() => string) | (() => string) | (() => string)"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.",name:"pop",required:!0,type:{name:"(() => any) | (() => any[]) | (() => any[][])"}},push:{defaultValue:null,description:"Appends new elements to an array, and returns the new length of the array.\n@param items New elements of the Array.",name:"push",required:!0,type:{name:"((...items: any[]) => number) | ((...items: any[][]) => number) | ((...items: any[][][]) => number)"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nCombines two or more arrays.\n@param items Additional items to add to the end of array1.\n@param items Additional items to add to the end of array1.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray[]): any[]; (...items: any[]): any[]; } | { (...items: ConcatArray[]): any[][]; (...items: (any[] | ConcatArray)[]): any[][]; } | { ...; }"}},join:{defaultValue:null,description:"Adds all the elements of an array separated by the specified separator string.\n@param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"((separator?: string) => string) | ((separator?: string) => string) | ((separator?: string) => string)"}},reverse:{defaultValue:null,description:"Reverses the elements in an Array.",name:"reverse",required:!0,type:{name:"(() => any[]) | (() => any[][]) | (() => any[][][])"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.",name:"shift",required:!0,type:{name:"(() => any) | (() => any[]) | (() => any[][])"}},slice:{defaultValue:null,description:"Returns a section of an array.\n@param start The beginning of the specified portion of the array.\n@param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.",name:"slice",required:!0,type:{name:"((start?: number, end?: number) => any[]) | ((start?: number, end?: number) => any[][]) | ((start?: number, end?: number) => any[][][])"}},sort:{defaultValue:null,description:"Sorts an array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\ra negative value if first argument is less than second argument, zero if they're equal and a positive\rvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r```ts\r[11,2,22,1].sort((a, b) => a - b)\r```",name:"sort",required:!0,type:{name:"((compareFn?: (a: any, b: any) => number) => any[]) | ((compareFn?: (a: any[], b: any[]) => number) => any[][]) | ((compareFn?: (a: any[][], b: any[][]) => number) => any[][][])"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\nRemoves elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param items Elements to insert into the array in place of the deleted elements.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; } | { (start: number, deleteCount?: number): any[][]; (start: number, deleteCount: number, ...items: any[][]): any[][]; } | { ...; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array.\n@param items Elements to insert at the start of the Array.",name:"unshift",required:!0,type:{name:"((...items: any[]) => number) | ((...items: any[][]) => number) | ((...items: any[][][]) => number)"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => number) | ((searchElement: any[], fromIndex?: number) => number) | ((searchElement: any[][], fromIndex?: number) => number)"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => number) | ((searchElement: any[], fromIndex?: number) => number) | ((searchElement: any[][], fromIndex?: number) => number)"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param callbackfn A function that accepts up to three arguments. The every method calls\rthe callbackfn function for each element in the array until the callbackfn returns a value\rwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function.\rIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[], index: number, array: any[][]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => unknown, thisArg?: any) => boolean)"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param callbackfn A function that accepts up to three arguments. The some method calls\rthe callbackfn function for each element in the array until the callbackfn returns a value\rwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function.\rIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[], index: number, array: any[][]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => unknown, thisArg?: any) => boolean)"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any) => void) | ((callbackfn: (value: any[], index: number, array: any[][]) => void, thisArg?: any) => void) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => void, thisArg?: any) => void)"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any[], index: number, array: any[][]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any[][], index: number, array: any[][][]) => U, thisArg?: any) => U[])"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\nReturns the elements of an array that meet the condition specified in a callback function.\n@param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n@param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ (callbackfn: (value: any, index: number, array: any[]) => value is S, thisArg?: any): S[]; (callbackfn: (value: any, index: number, array: any[]) => unknown, thisArg?: any): any[]; } | { (callbackfn: (value: any[], index: number, array: any[][]) => value is S, thisArg?: any): S[]; (..."}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\nCalls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) ..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\nCalls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any; (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) ..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\rorder, until it finds one where predicate returns true. If such an element is found, find\rimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\rpredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ (predicate: (this: void, value: any, index: number, obj: any[]) => value is S, thisArg?: any): S; (predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any; } | { ...; } | { ...; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\rorder, until it finds one where predicate returns true. If such an element is found,\rfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\rpredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"((predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any) => number) | ((predicate: (value: any[], index: number, obj: any[][]) => unknown, thisArg?: any) => number) | ((predicate: (value: any[][], index: number, obj: any[][][]) => unknown, thisArg?: any) => number)"}},fill:{defaultValue:null,description:"Returns the this object after filling the section identified by start and end with value\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\rlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\rlength+end.",name:"fill",required:!0,type:{name:"((value: any, start?: number, end?: number) => any[]) | ((value: any[], start?: number, end?: number) => any[][]) | ((value: any[][], start?: number, end?: number) => any[][][])"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\rlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\ris treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"((target: number, start: number, end?: number) => any[]) | ((target: number, start: number, end?: number) => any[][]) | ((target: number, start: number, end?: number) => any[][][])"}},"__@iterator":{defaultValue:null,description:"Iterator",name:"__@iterator",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"(() => IterableIterator<[number, any]>) | (() => IterableIterator<[number, any[]]>) | (() => IterableIterator<[number, any[][]]>)"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"(() => IterableIterator) | (() => IterableIterator) | (() => IterableIterator)"}},"__@unscopables":{defaultValue:null,description:"Returns an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables",required:!0,type:{name:"(() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }) | (() => { ...; })"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"((searchElement: any, fromIndex?: number) => boolean) | ((searchElement: any[], fromIndex?: number) => boolean) | ((searchElement: any[][], fromIndex?: number) => boolean)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/index.ts#amapPolygonPath2GeoJSONCoords"]={docgenInfo:amapPolygonPath2GeoJSONCoords.__docgenInfo,name:"amapPolygonPath2GeoJSONCoords",path:"src/index.ts#amapPolygonPath2GeoJSONCoords"})}catch(__react_docgen_typescript_loader_error){}},26:function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);__webpack_exports__.a=function useAMapEventBinder(instance,eventName,handler){Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var clearEffect;if(!instance||!handler)return clearEffect;instance.on(eventName,handler);var lastEventHandler=handler;return clearEffect=function clearEffect(){lastEventHandler&&instance&&instance.off(eventName,lastEventHandler)}}),[instance,eventName,handler])}},32:function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_components_AMapMap__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(169),_useAMapAPI__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(135);__webpack_exports__.a=function useAMap(){var _a=Object(_useAMapAPI__WEBPACK_IMPORTED_MODULE_2__.a)();return{__AMAP__:_a.__AMAP__,__AMAP_UI__:_a.__AMAP_UI__,map:Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_components_AMapMap__WEBPACK_IMPORTED_MODULE_1__.b)}}},504:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(505);var _AMapGeoJSON__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(506);__webpack_require__.d(__webpack_exports__,"default",(function(){return _AMapGeoJSON__WEBPACK_IMPORTED_MODULE_1__.a}))},505:function(module,exports){},506:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(13);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_hooks_useAMap__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(32),_hooks_useAMapContainerBinder__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(136),AMapGeoJSON=function AMapGeoJSON(_a){var geoJSON=_a.geoJSON,getPolyline=_a.getPolyline,getMarker=_a.getMarker,getPolygon=_a.getPolygon,options=_a.options,_b=Object(_hooks_useAMap__WEBPACK_IMPORTED_MODULE_2__.a)(),AMap=_b.__AMAP__,map=_b.map,_c=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),curInstance=_c[0],setInstance=_c[1],withMap=Object(react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((function(fn){return"function"!=typeof fn?fn:function(geojson,lnglat){return fn(geojson,lnglat,map,AMap)}}),[AMap,map]);return Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){if(AMap){var initInstance=function initInstance(){var newInstance=new AMap.GeoJSON({getMarker:withMap(getMarker),getPolygon:withMap(getPolygon),getPolyline:withMap(getPolyline)});setInstance(newInstance)};AMap.GeoJSON?initInstance():AMap.plugin("AMap.GeoJSON",initInstance)}}),[AMap,geoJSON,getPolyline,getMarker,getPolygon,withMap]),Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){var _a;null===(_a=null==curInstance?void 0:curInstance.importData)||void 0===_a||_a.call(curInstance,geoJSON)}),[geoJSON,curInstance]),Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){var _a;options&&(null===(_a=null==curInstance?void 0:curInstance.setOptions)||void 0===_a||_a.call(curInstance,options))}),[options,curInstance]),Object(_hooks_useAMapContainerBinder__WEBPACK_IMPORTED_MODULE_3__.a)(curInstance),null};AMapGeoJSON.defaultProps={},__webpack_exports__.a=AMapGeoJSON;try{AMapGeoJSON.displayName="AMapGeoJSON",AMapGeoJSON.__docgenInfo={description:"",displayName:"AMapGeoJSON",props:{geoJSON:{defaultValue:null,description:"",name:"geoJSON",required:!1,type:{name:"any"}},getMarker:{defaultValue:null,description:"",name:"getMarker",required:!1,type:{name:"GeoJSONGetOverlayCallBack & AMapGeoJSONGetOverlayCallback"}},getPolyline:{defaultValue:null,description:"",name:"getPolyline",required:!1,type:{name:"GeoJSONGetOverlayCallBack & AMapGeoJSONGetOverlayCallback"}},getPolygon:{defaultValue:null,description:"",name:"getPolygon",required:!1,type:{name:"GeoJSONGetOverlayCallBack & AMapGeoJSONGetOverlayCallback"}},options:{defaultValue:null,description:"",name:"options",required:!1,type:{name:"{ [k: string]: any; }"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapGeoJSON/AMapGeoJSON.tsx#AMapGeoJSON"]={docgenInfo:AMapGeoJSON.__docgenInfo,name:"AMapGeoJSON",path:"src/components/AMapGeoJSON/AMapGeoJSON.tsx#AMapGeoJSON"})}catch(__react_docgen_typescript_loader_error){}try{AMapGeoJSON.displayName="AMapGeoJSON",AMapGeoJSON.__docgenInfo={description:"",displayName:"AMapGeoJSON",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapGeoJSON/AMapGeoJSON.tsx#AMapGeoJSON"]={docgenInfo:AMapGeoJSON.__docgenInfo,name:"AMapGeoJSON",path:"src/components/AMapGeoJSON/AMapGeoJSON.tsx#AMapGeoJSON"})}catch(__react_docgen_typescript_loader_error){}},507:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(508);var _AMapCircle__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(513);__webpack_require__.d(__webpack_exports__,"default",(function(){return _AMapCircle__WEBPACK_IMPORTED_MODULE_1__.a}))},508:function(module,exports){},509:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(510);var _AMapMouseTool__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(511);__webpack_require__.d(__webpack_exports__,"default",(function(){return _AMapMouseTool__WEBPACK_IMPORTED_MODULE_1__.a}))},510:function(module,exports){},511:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(13);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_hooks_useAMap__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(32),_hooks_useAMapEventBinder__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(26),AMapMouseTool=Object(react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((function(_a,ref){var type=_a.type,options=_a.options,onCompleted=_a.onCompleted,_b=Object(_hooks_useAMap__WEBPACK_IMPORTED_MODULE_2__.a)(),AMap=_b.__AMAP__,map=_b.map,_c=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),curInstance=_c[0],setInstance=_c[1];return Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){if(AMap&&map){var init=function init(){var instance=new AMap.MouseTool(map);setInstance(instance)};AMap.MouseTool?init():AMap.plugin(["AMap.MouseTool"],init)}}),[AMap,map]),Object(react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(ref,(function(){return curInstance}),[curInstance]),Object(_hooks_useAMapEventBinder__WEBPACK_IMPORTED_MODULE_3__.a)(curInstance,"draw",onCompleted),Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){var clearEffect;return curInstance?(clearEffect=function clearEffect(){return curInstance.close(!1)},curInstance[type](null!=options?options:{}),clearEffect):clearEffect}),[curInstance,options,type]),null}));AMapMouseTool.defaultProps={options:{},onCompleted:void 0},__webpack_exports__.a=AMapMouseTool;try{AMapMouseTool.displayName="AMapMouseTool",AMapMouseTool.__docgenInfo={description:"Origin Docs See:\nhttps://lbs.amap.com/api/javascript-api/reference/plugin#AMap.MouseTool",displayName:"AMapMouseTool",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:'"marker" | "circle" | "rectangle" | "polyline" | "polygon" | "measureArea" | "rule" | "rectZoomIn" | "rectZoomOut"'}},options:{defaultValue:{value:"{}"},description:"",name:"options",required:!1,type:{name:"CircleOptions | MarkerOptions | PolylineOptions | PolygonOptions | RectangleOptions"}},onCompleted:{defaultValue:{value:"undefined"},description:"",name:"onCompleted",required:!1,type:{name:"(e: any) => void"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"ReactText"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMouseTool/AMapMouseTool.tsx#AMapMouseTool"]={docgenInfo:AMapMouseTool.__docgenInfo,name:"AMapMouseTool",path:"src/components/AMapMouseTool/AMapMouseTool.tsx#AMapMouseTool"})}catch(__react_docgen_typescript_loader_error){}try{AMapMouseTool.displayName="AMapMouseTool",AMapMouseTool.__docgenInfo={description:"Origin Docs See:\nhttps://lbs.amap.com/api/javascript-api/reference/plugin#AMap.MouseTool",displayName:"AMapMouseTool",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"circle"'},{value:'"marker"'},{value:'"polygon"'},{value:'"polyline"'},{value:'"rectangle"'},{value:'"measureArea"'},{value:'"rule"'},{value:'"rectZoomIn"'},{value:'"rectZoomOut"'}]}},options:{defaultValue:{value:"{}"},description:"",name:"options",required:!1,type:{name:"any"}},onCompleted:{defaultValue:{value:"undefined"},description:"",name:"onCompleted",required:!1,type:{name:"((e: any) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapMouseTool/AMapMouseTool.tsx#AMapMouseTool"]={docgenInfo:AMapMouseTool.__docgenInfo,name:"AMapMouseTool",path:"src/components/AMapMouseTool/AMapMouseTool.tsx#AMapMouseTool"})}catch(__react_docgen_typescript_loader_error){}},512:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__(13),__webpack_require__(313);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),_hooks_useAMap__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(32),AMapAutoFitView=function AMapAutoFitView(_a){var delay=_a.delay,map=Object(_hooks_useAMap__WEBPACK_IMPORTED_MODULE_3__.a)().map,_b=Object(react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),fitViewed=_b[0],setFitViewed=_b[1];return Object(react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((function(){var clearEffect;if(fitViewed)return clearEffect;var timeoutKey=setTimeout((function(){map&&(map.setFitView(),setFitViewed(!0))}),delay);return clearEffect=function clearEffect(){global.clearTimeout(timeoutKey)}}),[delay,map,fitViewed]),null};AMapAutoFitView.defaultProps={delay:2e3},__webpack_exports__.a=AMapAutoFitView;try{AMapAutoFitView.displayName="AMapAutoFitView",AMapAutoFitView.__docgenInfo={description:"",displayName:"AMapAutoFitView",props:{delay:{defaultValue:{value:2e3},description:"",name:"delay",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAutoFitView/AMapAutoFitView.tsx#AMapAutoFitView"]={docgenInfo:AMapAutoFitView.__docgenInfo,name:"AMapAutoFitView",path:"src/components/AMapAutoFitView/AMapAutoFitView.tsx#AMapAutoFitView"})}catch(__react_docgen_typescript_loader_error){}try{AMapAutoFitView.displayName="AMapAutoFitView",AMapAutoFitView.__docgenInfo={description:"",displayName:"AMapAutoFitView",props:{delay:{defaultValue:{value:2e3},description:"",name:"delay",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapAutoFitView/AMapAutoFitView.tsx#AMapAutoFitView"]={docgenInfo:AMapAutoFitView.__docgenInfo,name:"AMapAutoFitView",path:"src/components/AMapAutoFitView/AMapAutoFitView.tsx#AMapAutoFitView"})}catch(__react_docgen_typescript_loader_error){}}).call(this,__webpack_require__(53))},513:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(69),__webpack_require__(50),__webpack_require__(82);var react=__webpack_require__(0),useAMap=__webpack_require__(32),useAMapContainerBinder=__webpack_require__(136),useAMapEventBinder=__webpack_require__(26),useVisible=__webpack_require__(226),__spreadArrays=function(){for(var s=0,i=0,il=arguments.length;i void"}},onHide:{defaultValue:null,description:"",name:"onHide",required:!1,type:{name:"(event?: any) => void"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(event?: any) => void"}},onDBLClick:{defaultValue:null,description:"",name:"onDBLClick",required:!1,type:{name:"(event?: any) => void"}},onRightClick:{defaultValue:null,description:"",name:"onRightClick",required:!1,type:{name:"(event?: any) => void"}},onMousedown:{defaultValue:null,description:"",name:"onMousedown",required:!1,type:{name:"(event?: any) => void"}},onMouseup:{defaultValue:null,description:"",name:"onMouseup",required:!1,type:{name:"(event?: any) => void"}},onMouseover:{defaultValue:null,description:"",name:"onMouseover",required:!1,type:{name:"(event?: any) => void"}},onMouseout:{defaultValue:null,description:"",name:"onMouseout",required:!1,type:{name:"(event?: any) => void"}},onTouchstart:{defaultValue:null,description:"",name:"onTouchstart",required:!1,type:{name:"(event?: any) => void"}},onTouchmove:{defaultValue:null,description:"",name:"onTouchmove",required:!1,type:{name:"(event?: any) => void"}},onTouchend:{defaultValue:null,description:"",name:"onTouchend",required:!1,type:{name:"(event?: any) => void"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"ReactText"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapCircle/AMapCircle.tsx#AMapCircle"]={docgenInfo:AMapCircle.__docgenInfo,name:"AMapCircle",path:"src/components/AMapCircle/AMapCircle.tsx#AMapCircle"})}catch(__react_docgen_typescript_loader_error){}try{AMapCircle.displayName="AMapCircle",AMapCircle.__docgenInfo={description:"",displayName:"AMapCircle",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/AMapCircle/AMapCircle.tsx#AMapCircle"]={docgenInfo:AMapCircle.__docgenInfo,name:"AMapCircle",path:"src/components/AMapCircle/AMapCircle.tsx#AMapCircle"})}catch(__react_docgen_typescript_loader_error){}},52:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"SetCenter",(function(){return SetCenter})),__webpack_require__.d(__webpack_exports__,"SetCityName",(function(){return SetCityName})),__webpack_require__.d(__webpack_exports__,"SetZoom",(function(){return SetZoom})),__webpack_require__.d(__webpack_exports__,"withAMapContainer",(function(){return withAMapContainer}));__webpack_require__(3),__webpack_require__(78);var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(25),_AMapAPIContainer_stories_createAMapAPIContainer_stories__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(225),__assign=function(){return(__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i "}},SetCenter.parameters),SetCityName.parameters=__assign({storySource:{source:"(args) => "}},SetCityName.parameters),SetZoom.parameters=__assign({storySource:{source:"(args) => "}},SetZoom.parameters),withAMapContainer.parameters=__assign({storySource:{source:"(renderStory: Story, context: any) => (\n \n
\n {renderStory({}, context)}\n
\n
\n)"}},withAMapContainer.parameters)},525:function(module,exports,__webpack_require__){__webpack_require__(526),__webpack_require__(700),__webpack_require__(701),__webpack_require__(863),__webpack_require__(1083),__webpack_require__(1116),__webpack_require__(1128),__webpack_require__(1130),__webpack_require__(1135),__webpack_require__(1137),module.exports=__webpack_require__(1141)},597:function(module,exports){},701:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__(396)}},[[525,1,2]]]); +//# sourceMappingURL=main.2c0584dcb126eb2bc599.bundle.js.map \ No newline at end of file diff --git a/main.2c0584dcb126eb2bc599.bundle.js.map b/main.2c0584dcb126eb2bc599.bundle.js.map new file mode 100644 index 0000000..18db51e --- /dev/null +++ b/main.2c0584dcb126eb2bc599.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"main.2c0584dcb126eb2bc599.bundle.js","sources":["webpack:///main.2c0584dcb126eb2bc599.bundle.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/runtime~main.0ebfcea4ca1b9ac4f407.bundle.js.map b/runtime~main.0ebfcea4ca1b9ac4f407.bundle.js.map deleted file mode 100644 index 99c91b7..0000000 --- a/runtime~main.0ebfcea4ca1b9ac4f407.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime~main.0ebfcea4ca1b9ac4f407.bundle.js","sources":["webpack:///runtime~main.0ebfcea4ca1b9ac4f407.bundle.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/runtime~main.0ebfcea4ca1b9ac4f407.bundle.js b/runtime~main.2c0584dcb126eb2bc599.bundle.js similarity index 97% rename from runtime~main.0ebfcea4ca1b9ac4f407.bundle.js rename to runtime~main.2c0584dcb126eb2bc599.bundle.js index e1a8aa5..9971a70 100644 --- a/runtime~main.0ebfcea4ca1b9ac4f407.bundle.js +++ b/runtime~main.2c0584dcb126eb2bc599.bundle.js @@ -1,2 +1,2 @@ !function(modules){function webpackJsonpCallback(data){for(var moduleId,chunkId,chunkIds=data[0],moreModules=data[1],executeModules=data[2],i=0,resolves=[];i1?_len-1:0),_key=1;_key<_len;_key++)activations[_key-1]=arguments[_key];var activeNames=(0,_flattenNames2.default)(activations),merged=(0,_mergeClasses2.default)(classes,activeNames);return(0,_autoprefix2.default)(merged)};exports.default=ReactCSS},function(module,exports,__webpack_require__){var $=__webpack_require__(9),assign=__webpack_require__(398);$({target:"Object",stat:!0,forced:Object.assign!==assign},{assign:assign})},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),global=__webpack_require__(26),getBuiltIn=__webpack_require__(96),IS_PURE=__webpack_require__(95),DESCRIPTORS=__webpack_require__(39),NATIVE_SYMBOL=__webpack_require__(257),USE_SYMBOL_AS_UID=__webpack_require__(393),fails=__webpack_require__(29),has=__webpack_require__(47),isArray=__webpack_require__(151),isObject=__webpack_require__(32),anObject=__webpack_require__(41),toObject=__webpack_require__(67),toIndexedObject=__webpack_require__(73),toPrimitive=__webpack_require__(146),createPropertyDescriptor=__webpack_require__(126),nativeObjectCreate=__webpack_require__(97),objectKeys=__webpack_require__(154),getOwnPropertyNamesModule=__webpack_require__(148),getOwnPropertyNamesExternal=__webpack_require__(680),getOwnPropertySymbolsModule=__webpack_require__(255),getOwnPropertyDescriptorModule=__webpack_require__(89),definePropertyModule=__webpack_require__(54),propertyIsEnumerableModule=__webpack_require__(180),createNonEnumerableProperty=__webpack_require__(80),redefine=__webpack_require__(58),shared=__webpack_require__(250),sharedKey=__webpack_require__(181),hiddenKeys=__webpack_require__(147),uid=__webpack_require__(182),wellKnownSymbol=__webpack_require__(30),wrappedWellKnownSymbolModule=__webpack_require__(395),defineWellKnownSymbol=__webpack_require__(46),setToStringTag=__webpack_require__(91),InternalStateModule=__webpack_require__(74),$forEach=__webpack_require__(98).forEach,HIDDEN=sharedKey("hidden"),TO_PRIMITIVE=wellKnownSymbol("toPrimitive"),setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor("Symbol"),ObjectPrototype=Object.prototype,$Symbol=global.Symbol,$stringify=getBuiltIn("JSON","stringify"),nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule.f,AllSymbols=shared("symbols"),ObjectPrototypeSymbols=shared("op-symbols"),StringToSymbolRegistry=shared("string-to-symbol-registry"),SymbolToStringRegistry=shared("symbol-to-string-registry"),WellKnownSymbolsStore=shared("wks"),QObject=global.QObject,USE_SETTER=!QObject||!QObject.prototype||!QObject.prototype.findChild,setSymbolDescriptor=DESCRIPTORS&&fails((function(){return 7!=nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a}))?function(O,P,Attributes){var ObjectPrototypeDescriptor=nativeGetOwnPropertyDescriptor(ObjectPrototype,P);ObjectPrototypeDescriptor&&delete ObjectPrototype[P],nativeDefineProperty(O,P,Attributes),ObjectPrototypeDescriptor&&O!==ObjectPrototype&&nativeDefineProperty(ObjectPrototype,P,ObjectPrototypeDescriptor)}:nativeDefineProperty,wrap=function(tag,description){var symbol=AllSymbols[tag]=nativeObjectCreate($Symbol.prototype);return setInternalState(symbol,{type:"Symbol",tag:tag,description:description}),DESCRIPTORS||(symbol.description=description),symbol},isSymbol=USE_SYMBOL_AS_UID?function(it){return"symbol"==typeof it}:function(it){return Object(it)instanceof $Symbol},$defineProperty=function defineProperty(O,P,Attributes){O===ObjectPrototype&&$defineProperty(ObjectPrototypeSymbols,P,Attributes),anObject(O);var key=toPrimitive(P,!0);return anObject(Attributes),has(AllSymbols,key)?(Attributes.enumerable?(has(O,HIDDEN)&&O[HIDDEN][key]&&(O[HIDDEN][key]=!1),Attributes=nativeObjectCreate(Attributes,{enumerable:createPropertyDescriptor(0,!1)})):(has(O,HIDDEN)||nativeDefineProperty(O,HIDDEN,createPropertyDescriptor(1,{})),O[HIDDEN][key]=!0),setSymbolDescriptor(O,key,Attributes)):nativeDefineProperty(O,key,Attributes)},$defineProperties=function defineProperties(O,Properties){anObject(O);var properties=toIndexedObject(Properties),keys=objectKeys(properties).concat($getOwnPropertySymbols(properties));return $forEach(keys,(function(key){DESCRIPTORS&&!$propertyIsEnumerable.call(properties,key)||$defineProperty(O,key,properties[key])})),O},$propertyIsEnumerable=function propertyIsEnumerable(V){var P=toPrimitive(V,!0),enumerable=nativePropertyIsEnumerable.call(this,P);return!(this===ObjectPrototype&&has(AllSymbols,P)&&!has(ObjectPrototypeSymbols,P))&&(!(enumerable||!has(this,P)||!has(AllSymbols,P)||has(this,HIDDEN)&&this[HIDDEN][P])||enumerable)},$getOwnPropertyDescriptor=function getOwnPropertyDescriptor(O,P){var it=toIndexedObject(O),key=toPrimitive(P,!0);if(it!==ObjectPrototype||!has(AllSymbols,key)||has(ObjectPrototypeSymbols,key)){var descriptor=nativeGetOwnPropertyDescriptor(it,key);return!descriptor||!has(AllSymbols,key)||has(it,HIDDEN)&&it[HIDDEN][key]||(descriptor.enumerable=!0),descriptor}},$getOwnPropertyNames=function getOwnPropertyNames(O){var names=nativeGetOwnPropertyNames(toIndexedObject(O)),result=[];return $forEach(names,(function(key){has(AllSymbols,key)||has(hiddenKeys,key)||result.push(key)})),result},$getOwnPropertySymbols=function getOwnPropertySymbols(O){var IS_OBJECT_PROTOTYPE=O===ObjectPrototype,names=nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE?ObjectPrototypeSymbols:toIndexedObject(O)),result=[];return $forEach(names,(function(key){!has(AllSymbols,key)||IS_OBJECT_PROTOTYPE&&!has(ObjectPrototype,key)||result.push(AllSymbols[key])})),result};(NATIVE_SYMBOL||(redefine(($Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor");var description=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,tag=uid(description),setter=function(value){this===ObjectPrototype&&setter.call(ObjectPrototypeSymbols,value),has(this,HIDDEN)&&has(this[HIDDEN],tag)&&(this[HIDDEN][tag]=!1),setSymbolDescriptor(this,tag,createPropertyDescriptor(1,value))};return DESCRIPTORS&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype,tag,{configurable:!0,set:setter}),wrap(tag,description)}).prototype,"toString",(function toString(){return getInternalState(this).tag})),redefine($Symbol,"withoutSetter",(function(description){return wrap(uid(description),description)})),propertyIsEnumerableModule.f=$propertyIsEnumerable,definePropertyModule.f=$defineProperty,getOwnPropertyDescriptorModule.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(name){return wrap(wellKnownSymbol(name),name)},DESCRIPTORS&&(nativeDefineProperty($Symbol.prototype,"description",{configurable:!0,get:function description(){return getInternalState(this).description}}),IS_PURE||redefine(ObjectPrototype,"propertyIsEnumerable",$propertyIsEnumerable,{unsafe:!0}))),$({global:!0,wrap:!0,forced:!NATIVE_SYMBOL,sham:!NATIVE_SYMBOL},{Symbol:$Symbol}),$forEach(objectKeys(WellKnownSymbolsStore),(function(name){defineWellKnownSymbol(name)})),$({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL},{for:function(key){var string=String(key);if(has(StringToSymbolRegistry,string))return StringToSymbolRegistry[string];var symbol=$Symbol(string);return StringToSymbolRegistry[string]=symbol,SymbolToStringRegistry[symbol]=string,symbol},keyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+" is not a symbol");if(has(SymbolToStringRegistry,sym))return SymbolToStringRegistry[sym]},useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$({target:"Object",stat:!0,forced:!NATIVE_SYMBOL,sham:!DESCRIPTORS},{create:function create(O,Properties){return void 0===Properties?nativeObjectCreate(O):$defineProperties(nativeObjectCreate(O),Properties)},defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$({target:"Object",stat:!0,forced:!NATIVE_SYMBOL},{getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols}),$({target:"Object",stat:!0,forced:fails((function(){getOwnPropertySymbolsModule.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(it){return getOwnPropertySymbolsModule.f(toObject(it))}}),$stringify)&&$({target:"JSON",stat:!0,forced:!NATIVE_SYMBOL||fails((function(){var symbol=$Symbol();return"[null]"!=$stringify([symbol])||"{}"!=$stringify({a:symbol})||"{}"!=$stringify(Object(symbol))}))},{stringify:function stringify(it,replacer,space){for(var $replacer,args=[it],index=1;arguments.length>index;)args.push(arguments[index++]);if($replacer=replacer,(isObject(replacer)||void 0!==it)&&!isSymbol(it))return isArray(replacer)||(replacer=function(key,value){if("function"==typeof $replacer&&(value=$replacer.call(this,key,value)),!isSymbol(value))return value}),args[1]=replacer,$stringify.apply(null,args)}});$Symbol.prototype[TO_PRIMITIVE]||createNonEnumerableProperty($Symbol.prototype,TO_PRIMITIVE,$Symbol.prototype.valueOf),setToStringTag($Symbol,"Symbol"),hiddenKeys[HIDDEN]=!0},function(module,exports,__webpack_require__){"use strict";var $SyntaxError=SyntaxError,$Function=Function,$TypeError=TypeError,getEvalledConstructor=function(expressionSyntax){try{return $Function('"use strict"; return ('+expressionSyntax+").constructor;")()}catch(e){}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch(e){$gOPD=null}var throwTypeError=function(){throw new $TypeError},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(calleeThrows){try{return $gOPD(arguments,"callee").get}catch(gOPDthrows){return throwTypeError}}}():throwTypeError,hasSymbols=__webpack_require__(71)(),getProto=Object.getPrototypeOf||function(x){return x.__proto__},needsEval={},TypedArray="undefined"==typeof Uint8Array?void 0:getProto(Uint8Array),INTRINSICS={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols?getProto((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols?getProto((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):void 0,"%Symbol%":hasSymbols?Symbol:void 0,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=__webpack_require__(173),hasOwn=__webpack_require__(49),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function stringToPath(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if("%"===first&&"%"!==last)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===last&&"%"!==first)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var result=[];return $replace(string,rePropName,(function(match,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar,"$1"):number||match})),result},getBaseIntrinsic=function getBaseIntrinsic(name,allowMissing){var alias,intrinsicName=name;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(intrinsicName="%"+(alias=LEGACY_ALIASES[intrinsicName])[0]+"%"),hasOwn(INTRINSICS,intrinsicName)){var value=INTRINSICS[intrinsicName];if(value===needsEval&&(value=function doEval(name){var value;if("%AsyncFunction%"===name)value=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===name)value=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===name)value=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===name){var fn=doEval("%AsyncGeneratorFunction%");fn&&(value=fn.prototype)}else if("%AsyncIteratorPrototype%"===name){var gen=doEval("%AsyncGenerator%");gen&&(value=getProto(gen.prototype))}return INTRINSICS[name]=value,value}(intrinsicName)),void 0===value&&!allowMissing)throw new $TypeError("intrinsic "+name+" exists, but is not available. Please file an issue!");return{alias:alias,name:intrinsicName,value:value}}throw new $SyntaxError("intrinsic "+name+" does not exist!")};module.exports=function GetIntrinsic(name,allowMissing){if("string"!=typeof name||0===name.length)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof allowMissing)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,name))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=stringToPath(name),intrinsicBaseName=parts.length>0?parts[0]:"",intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing),intrinsicRealName=intrinsic.name,value=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i=1,isOwn=!0;i=parts.length){var desc=$gOPD(value,part);value=(isOwn=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:value[part]}else isOwn=hasOwn(value,part),value=value[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value)}}return value}},function(module,exports,__webpack_require__){var DESCRIPTORS=__webpack_require__(39),defineProperty=__webpack_require__(54).f,FunctionPrototype=Function.prototype,FunctionPrototypeToString=FunctionPrototype.toString,nameRE=/^\s*function ([^ (]*)/;DESCRIPTORS&&!("name"in FunctionPrototype)&&defineProperty(FunctionPrototype,"name",{configurable:!0,get:function(){try{return FunctionPrototypeToString.call(this).match(nameRE)[1]}catch(error){return""}}})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={styled:!0,ignoreSsrWarning:!0,isPropValid:!0,createGlobal:!0,createReset:!0,lighten:!0,darken:!0};Object.defineProperty(exports,"isPropValid",{enumerable:!0,get:function get(){return _isPropValid.default}}),Object.defineProperty(exports,"createGlobal",{enumerable:!0,get:function get(){return _global.createGlobal}}),Object.defineProperty(exports,"createReset",{enumerable:!0,get:function get(){return _global.createReset}}),Object.defineProperty(exports,"lighten",{enumerable:!0,get:function get(){return _utils.lightenColor}}),Object.defineProperty(exports,"darken",{enumerable:!0,get:function get(){return _utils.darkenColor}}),exports.ignoreSsrWarning=exports.styled=void 0;var _styled2=_interopRequireDefault(__webpack_require__(1157)),_base=__webpack_require__(203);Object.keys(_base).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_base[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _base[key]}}))}));var _types=__webpack_require__(869);Object.keys(_types).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_types[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _types[key]}}))}));var _core=__webpack_require__(84);Object.keys(_core).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_core[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _core[key]}}))}));var _emotionTheming=__webpack_require__(870);Object.keys(_emotionTheming).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_emotionTheming[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _emotionTheming[key]}}))}));var _isPropValid=_interopRequireDefault(__webpack_require__(341)),_global=__webpack_require__(873),_create=__webpack_require__(448);Object.keys(_create).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_create[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _create[key]}}))}));var _convert=__webpack_require__(450);Object.keys(_convert).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_convert[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _convert[key]}}))}));var _ensure=__webpack_require__(877);Object.keys(_ensure).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_ensure[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ensure[key]}}))}));var _utils=__webpack_require__(204);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var styled=_styled2.default;exports.styled=styled;exports.ignoreSsrWarning="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */"},function(module,exports,__webpack_require__){var $=__webpack_require__(9),toObject=__webpack_require__(67),nativeKeys=__webpack_require__(154);$({target:"Object",stat:!0,forced:__webpack_require__(29)((function(){nativeKeys(1)}))},{keys:function keys(it){return nativeKeys(toObject(it))}})},function(module,exports,__webpack_require__){var global=__webpack_require__(26),getOwnPropertyDescriptor=__webpack_require__(89).f,createNonEnumerableProperty=__webpack_require__(80),redefine=__webpack_require__(58),setGlobal=__webpack_require__(248),copyConstructorProperties=__webpack_require__(390),isForced=__webpack_require__(150);module.exports=function(options,source){var target,key,targetProperty,sourceProperty,descriptor,TARGET=options.target,GLOBAL=options.global,STATIC=options.stat;if(target=GLOBAL?global:STATIC?global[TARGET]||setGlobal(TARGET,{}):(global[TARGET]||{}).prototype)for(key in source){if(sourceProperty=source[key],targetProperty=options.noTargetGet?(descriptor=getOwnPropertyDescriptor(target,key))&&descriptor.value:target[key],!isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced)&&void 0!==targetProperty){if(typeof sourceProperty==typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,"sham",!0),redefine(target,key,sourceProperty,options)}}},function(module,exports,__webpack_require__){var TO_STRING_TAG_SUPPORT=__webpack_require__(260),redefine=__webpack_require__(58),toString=__webpack_require__(679);TO_STRING_TAG_SUPPORT||redefine(Object.prototype,"toString",toString,{unsafe:!0})},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),DESCRIPTORS=__webpack_require__(39),global=__webpack_require__(26),has=__webpack_require__(47),isObject=__webpack_require__(32),defineProperty=__webpack_require__(54).f,copyConstructorProperties=__webpack_require__(390),NativeSymbol=global.Symbol;if(DESCRIPTORS&&"function"==typeof NativeSymbol&&(!("description"in NativeSymbol.prototype)||void 0!==NativeSymbol().description)){var EmptyStringDescriptionStore={},SymbolWrapper=function Symbol(){var description=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),result=this instanceof SymbolWrapper?new NativeSymbol(description):void 0===description?NativeSymbol():NativeSymbol(description);return""===description&&(EmptyStringDescriptionStore[result]=!0),result};copyConstructorProperties(SymbolWrapper,NativeSymbol);var symbolPrototype=SymbolWrapper.prototype=NativeSymbol.prototype;symbolPrototype.constructor=SymbolWrapper;var symbolToString=symbolPrototype.toString,native="Symbol(test)"==String(NativeSymbol("test")),regexp=/^Symbol\((.*)\)[^)]+$/;defineProperty(symbolPrototype,"description",{configurable:!0,get:function description(){var symbol=isObject(this)?this.valueOf():this,string=symbolToString.call(symbol);if(has(EmptyStringDescriptionStore,symbol))return"";var desc=native?string.slice(7,-1):string.replace(regexp,"$1");return""===desc?void 0:desc}}),$({global:!0,forced:!0},{Symbol:SymbolWrapper})}},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),isObject=__webpack_require__(32),isArray=__webpack_require__(151),toAbsoluteIndex=__webpack_require__(253),toLength=__webpack_require__(60),toIndexedObject=__webpack_require__(73),createProperty=__webpack_require__(152),wellKnownSymbol=__webpack_require__(30),arrayMethodHasSpeciesSupport=__webpack_require__(153),arrayMethodUsesToLength=__webpack_require__(75),HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("slice"),USES_TO_LENGTH=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),SPECIES=wellKnownSymbol("species"),nativeSlice=[].slice,max=Math.max;$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{slice:function slice(start,end){var Constructor,result,n,O=toIndexedObject(this),length=toLength(O.length),k=toAbsoluteIndex(start,length),fin=toAbsoluteIndex(void 0===end?length:end,length);if(isArray(O)&&("function"!=typeof(Constructor=O.constructor)||Constructor!==Array&&!isArray(Constructor.prototype)?isObject(Constructor)&&null===(Constructor=Constructor[SPECIES])&&(Constructor=void 0):Constructor=void 0,Constructor===Array||void 0===Constructor))return nativeSlice.call(O,k,fin);for(result=new(void 0===Constructor?Array:Constructor)(max(fin-k,0)),n=0;k1?arguments[1]:void 0)}})},function(module,exports,__webpack_require__){"use strict";var toIndexedObject=__webpack_require__(73),addToUnscopables=__webpack_require__(271),Iterators=__webpack_require__(157),InternalStateModule=__webpack_require__(74),defineIterator=__webpack_require__(272),setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor("Array Iterator");module.exports=defineIterator(Array,"Array",(function(iterated,kind){setInternalState(this,{type:"Array Iterator",target:toIndexedObject(iterated),index:0,kind:kind})}),(function(){var state=getInternalState(this),target=state.target,kind=state.kind,index=state.index++;return!target||index>=target.length?(state.target=void 0,{value:void 0,done:!0}):"keys"==kind?{value:index,done:!1}:"values"==kind?{value:target[index],done:!1}:{value:[index,target[index]],done:!1}}),"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries")},function(module,exports,__webpack_require__){"use strict";var charAt=__webpack_require__(266).charAt,InternalStateModule=__webpack_require__(74),defineIterator=__webpack_require__(272),setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor("String Iterator");defineIterator(String,"String",(function(iterated){setInternalState(this,{type:"String Iterator",string:String(iterated),index:0})}),(function next(){var point,state=getInternalState(this),string=state.string,index=state.index;return index>=string.length?{value:void 0,done:!0}:(point=charAt(string,index),state.index+=point.length,{value:point,done:!1})}))},function(module,exports,__webpack_require__){__webpack_require__(9)({target:"Array",stat:!0},{isArray:__webpack_require__(151)})},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),$indexOf=__webpack_require__(252).indexOf,arrayMethodIsStrict=__webpack_require__(107),arrayMethodUsesToLength=__webpack_require__(75),nativeIndexOf=[].indexOf,NEGATIVE_ZERO=!!nativeIndexOf&&1/[1].indexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("indexOf"),USES_TO_LENGTH=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});$({target:"Array",proto:!0,forced:NEGATIVE_ZERO||!STRICT_METHOD||!USES_TO_LENGTH},{indexOf:function indexOf(searchElement){return NEGATIVE_ZERO?nativeIndexOf.apply(this,arguments)||0:$indexOf(this,searchElement,arguments.length>1?arguments[1]:void 0)}})},function(module,exports,__webpack_require__){var global=__webpack_require__(26),DOMIterables=__webpack_require__(401),ArrayIteratorMethods=__webpack_require__(14),createNonEnumerableProperty=__webpack_require__(80),wellKnownSymbol=__webpack_require__(30),ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values;for(var COLLECTION_NAME in DOMIterables){var Collection=global[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype){if(CollectionPrototype[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(CollectionPrototype,ITERATOR,ArrayValues)}catch(error){CollectionPrototype[ITERATOR]=ArrayValues}if(CollectionPrototype[TO_STRING_TAG]||createNonEnumerableProperty(CollectionPrototype,TO_STRING_TAG,COLLECTION_NAME),DOMIterables[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods)if(CollectionPrototype[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(CollectionPrototype,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(error){CollectionPrototype[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}},function(module,exports,__webpack_require__){"use strict";var redefine=__webpack_require__(58),anObject=__webpack_require__(41),fails=__webpack_require__(29),flags=__webpack_require__(264),RegExpPrototype=RegExp.prototype,nativeToString=RegExpPrototype.toString,NOT_GENERIC=fails((function(){return"/a/b"!=nativeToString.call({source:"a",flags:"b"})})),INCORRECT_NAME="toString"!=nativeToString.name;(NOT_GENERIC||INCORRECT_NAME)&&redefine(RegExp.prototype,"toString",(function toString(){var R=anObject(this),p=String(R.source),rf=R.flags;return"/"+p+"/"+String(void 0===rf&&R instanceof RegExp&&!("flags"in RegExpPrototype)?flags.call(R):rf)}),{unsafe:!0})},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),fails=__webpack_require__(29),isArray=__webpack_require__(151),isObject=__webpack_require__(32),toObject=__webpack_require__(67),toLength=__webpack_require__(60),createProperty=__webpack_require__(152),arraySpeciesCreate=__webpack_require__(256),arrayMethodHasSpeciesSupport=__webpack_require__(153),wellKnownSymbol=__webpack_require__(30),V8_VERSION=__webpack_require__(258),IS_CONCAT_SPREADABLE=wellKnownSymbol("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION>=51||!fails((function(){var array=[];return array[IS_CONCAT_SPREADABLE]=!1,array.concat()[0]!==array})),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(O){if(!isObject(O))return!1;var spreadable=O[IS_CONCAT_SPREADABLE];return void 0!==spreadable?!!spreadable:isArray(O)};$({target:"Array",proto:!0,forced:!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT},{concat:function concat(arg){var i,k,length,len,E,O=toObject(this),A=arraySpeciesCreate(O,0),n=0;for(i=-1,length=arguments.length;i9007199254740991)throw TypeError("Maximum allowed index exceeded");for(k=0;k=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(A,n++,E)}return A.length=n,A}})},function(module,exports,__webpack_require__){__webpack_require__(46)("iterator")},function(module,exports,__webpack_require__){var redefine=__webpack_require__(58),DatePrototype=Date.prototype,nativeDateToString=DatePrototype.toString,getTime=DatePrototype.getTime;new Date(NaN)+""!="Invalid Date"&&redefine(DatePrototype,"toString",(function toString(){var value=getTime.call(this);return value==value?nativeDateToString.call(this):"Invalid Date"}))},function(module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return(_extends=Object.assign||function(target){for(var i=1;i-1?callBind(intrinsic):intrinsic}},function(module,exports,__webpack_require__){var $=__webpack_require__(9),FREEZING=__webpack_require__(399),fails=__webpack_require__(29),isObject=__webpack_require__(32),onFreeze=__webpack_require__(155).onFreeze,nativeFreeze=Object.freeze;$({target:"Object",stat:!0,forced:fails((function(){nativeFreeze(1)})),sham:!FREEZING},{freeze:function freeze(it){return nativeFreeze&&isObject(it)?nativeFreeze(onFreeze(it)):it}})},function(module,__webpack_exports__,__webpack_require__){"use strict";var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(224),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=_freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__.a||freeSelf||Function("return this")();__webpack_exports__.a=root},,function(module,exports,__webpack_require__){var fails=__webpack_require__(29);module.exports=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(module,exports,__webpack_require__){"use strict";__webpack_require__(20),__webpack_require__(24),__webpack_require__(55),Object.defineProperty(exports,"__esModule",{value:!0}),exports.pretty=exports.logger=void 0;var _global=__webpack_require__(33),levels={trace:1,debug:2,info:3,warn:4,error:5,silent:10},currentLogLevelString=_global.LOGLEVEL,currentLogLevelNumber=levels[currentLogLevelString]||levels.info,logger={trace:function trace(message){for(var _len=arguments.length,rest=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)rest[_key-1]=arguments[_key];return currentLogLevelNumber<=levels.trace&&_global.console.trace.apply(_global.console,[message].concat(rest))},debug:function debug(message){for(var _len2=arguments.length,rest=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)rest[_key2-1]=arguments[_key2];return currentLogLevelNumber<=levels.debug&&_global.console.debug.apply(_global.console,[message].concat(rest))},info:function info(message){for(var _len3=arguments.length,rest=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)rest[_key3-1]=arguments[_key3];return currentLogLevelNumber<=levels.info&&_global.console.info.apply(_global.console,[message].concat(rest))},warn:function warn(message){for(var _len4=arguments.length,rest=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)rest[_key4-1]=arguments[_key4];return currentLogLevelNumber<=levels.warn&&_global.console.warn.apply(_global.console,[message].concat(rest))},error:function error(message){for(var _len5=arguments.length,rest=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++)rest[_key5-1]=arguments[_key5];return currentLogLevelNumber<=levels.error&&_global.console.error.apply(_global.console,[message].concat(rest))},log:function log(message){for(var _len6=arguments.length,rest=new Array(_len6>1?_len6-1:0),_key6=1;_key6<_len6;_key6++)rest[_key6-1]=arguments[_key6];return currentLogLevelNumber/gi,endTagRe=/<\/span>/gi;for(argArray.push(args[0].replace(startTagRe,"%c").replace(endTagRe,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(var j=1;j2?arguments[2]:{},props=keys(map);hasSymbols&&(props=concat.call(props,Object.getOwnPropertySymbols(map)));for(var i=0;i1?arguments[1]:void 0)}})},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"adjustHue",(function(){return curriedAdjustHue})),__webpack_require__.d(__webpack_exports__,"animation",(function(){return animation})),__webpack_require__.d(__webpack_exports__,"backgroundImages",(function(){return backgroundImages})),__webpack_require__.d(__webpack_exports__,"backgrounds",(function(){return backgrounds})),__webpack_require__.d(__webpack_exports__,"between",(function(){return between})),__webpack_require__.d(__webpack_exports__,"border",(function(){return border})),__webpack_require__.d(__webpack_exports__,"borderColor",(function(){return borderColor})),__webpack_require__.d(__webpack_exports__,"borderRadius",(function(){return borderRadius})),__webpack_require__.d(__webpack_exports__,"borderStyle",(function(){return borderStyle})),__webpack_require__.d(__webpack_exports__,"borderWidth",(function(){return borderWidth})),__webpack_require__.d(__webpack_exports__,"buttons",(function(){return buttons})),__webpack_require__.d(__webpack_exports__,"clearFix",(function(){return clearFix})),__webpack_require__.d(__webpack_exports__,"complement",(function(){return complement})),__webpack_require__.d(__webpack_exports__,"cover",(function(){return cover})),__webpack_require__.d(__webpack_exports__,"cssVar",(function(){return cssVar})),__webpack_require__.d(__webpack_exports__,"darken",(function(){return curriedDarken})),__webpack_require__.d(__webpack_exports__,"desaturate",(function(){return curriedDesaturate})),__webpack_require__.d(__webpack_exports__,"directionalProperty",(function(){return directionalProperty})),__webpack_require__.d(__webpack_exports__,"ellipsis",(function(){return ellipsis})),__webpack_require__.d(__webpack_exports__,"em",(function(){return em})),__webpack_require__.d(__webpack_exports__,"fluidRange",(function(){return fluidRange})),__webpack_require__.d(__webpack_exports__,"fontFace",(function(){return fontFace})),__webpack_require__.d(__webpack_exports__,"getContrast",(function(){return getContrast})),__webpack_require__.d(__webpack_exports__,"getLuminance",(function(){return getLuminance})),__webpack_require__.d(__webpack_exports__,"getValueAndUnit",(function(){return getValueAndUnit})),__webpack_require__.d(__webpack_exports__,"grayscale",(function(){return grayscale})),__webpack_require__.d(__webpack_exports__,"hiDPI",(function(){return hiDPI})),__webpack_require__.d(__webpack_exports__,"hideText",(function(){return hideText})),__webpack_require__.d(__webpack_exports__,"hideVisually",(function(){return hideVisually})),__webpack_require__.d(__webpack_exports__,"hsl",(function(){return hsl})),__webpack_require__.d(__webpack_exports__,"hslToColorString",(function(){return hslToColorString})),__webpack_require__.d(__webpack_exports__,"hsla",(function(){return hsla})),__webpack_require__.d(__webpack_exports__,"invert",(function(){return invert})),__webpack_require__.d(__webpack_exports__,"lighten",(function(){return curriedLighten})),__webpack_require__.d(__webpack_exports__,"linearGradient",(function(){return linearGradient})),__webpack_require__.d(__webpack_exports__,"margin",(function(){return margin})),__webpack_require__.d(__webpack_exports__,"math",(function(){return math})),__webpack_require__.d(__webpack_exports__,"meetsContrastGuidelines",(function(){return meetsContrastGuidelines})),__webpack_require__.d(__webpack_exports__,"mix",(function(){return curriedMix})),__webpack_require__.d(__webpack_exports__,"modularScale",(function(){return modularScale})),__webpack_require__.d(__webpack_exports__,"normalize",(function(){return normalize})),__webpack_require__.d(__webpack_exports__,"opacify",(function(){return curriedOpacify})),__webpack_require__.d(__webpack_exports__,"padding",(function(){return padding})),__webpack_require__.d(__webpack_exports__,"parseToHsl",(function(){return parseToHsl})),__webpack_require__.d(__webpack_exports__,"parseToRgb",(function(){return parseToRgb})),__webpack_require__.d(__webpack_exports__,"position",(function(){return position})),__webpack_require__.d(__webpack_exports__,"radialGradient",(function(){return radialGradient})),__webpack_require__.d(__webpack_exports__,"readableColor",(function(){return readableColor})),__webpack_require__.d(__webpack_exports__,"rem",(function(){return rem})),__webpack_require__.d(__webpack_exports__,"retinaImage",(function(){return retinaImage})),__webpack_require__.d(__webpack_exports__,"rgb",(function(){return rgb})),__webpack_require__.d(__webpack_exports__,"rgbToColorString",(function(){return rgbToColorString})),__webpack_require__.d(__webpack_exports__,"rgba",(function(){return rgba})),__webpack_require__.d(__webpack_exports__,"saturate",(function(){return curriedSaturate})),__webpack_require__.d(__webpack_exports__,"setHue",(function(){return curriedSetHue})),__webpack_require__.d(__webpack_exports__,"setLightness",(function(){return curriedSetLightness})),__webpack_require__.d(__webpack_exports__,"setSaturation",(function(){return curriedSetSaturation})),__webpack_require__.d(__webpack_exports__,"shade",(function(){return curriedShade})),__webpack_require__.d(__webpack_exports__,"size",(function(){return size})),__webpack_require__.d(__webpack_exports__,"stripUnit",(function(){return stripUnit})),__webpack_require__.d(__webpack_exports__,"textInputs",(function(){return textInputs})),__webpack_require__.d(__webpack_exports__,"timingFunctions",(function(){return timingFunctions})),__webpack_require__.d(__webpack_exports__,"tint",(function(){return curriedTint})),__webpack_require__.d(__webpack_exports__,"toColorString",(function(){return toColorString})),__webpack_require__.d(__webpack_exports__,"transitions",(function(){return transitions})),__webpack_require__.d(__webpack_exports__,"transparentize",(function(){return curriedTransparentize})),__webpack_require__.d(__webpack_exports__,"triangle",(function(){return triangle})),__webpack_require__.d(__webpack_exports__,"wordWrap",(function(){return wordWrap}));var esm_extends=__webpack_require__(23);var inheritsLoose=__webpack_require__(118);function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var setPrototypeOf=__webpack_require__(137);function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function construct_construct(Parent,args,Class){return(construct_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var instance=new(Function.bind.apply(Parent,a));return Class&&Object(setPrototypeOf.a)(instance,Class.prototype),instance}).apply(null,arguments)}function wrapNativeSuper_wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(wrapNativeSuper_wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!function _isNativeFunction(fn){return-1!==Function.toString.call(fn).indexOf("[native code]")}(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return construct_construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),Object(setPrototypeOf.a)(Wrapper,Class)})(Class)}function _taggedTemplateLiteralLoose(strings,raw){return raw||(raw=strings.slice(0)),strings.raw=raw,strings}function last(){var _ref;return(_ref=arguments.length-1)<0||arguments.length<=_ref?void 0:arguments[_ref]}var defaultMathSymbols={symbols:{"!":{postfix:{symbol:"!",f:function factorial(a){return a%1||!(+a>=0)?NaN:a>170?1/0:0===a?1:a*factorial(a-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function power(a,b){return Math.pow(a,b)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function multiplication(a,b){return a*b},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function division(a,b){return a/b},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function addition(a,b){return a+b},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:last,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function subtraction(a,b){return a-b},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function negation(a){return-a},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function comma(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:last,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function min(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function max(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function sqrt(a){return Math.sqrt(a)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}};var polished_esm_PolishedError=function(_Error){function PolishedError(code){return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(_Error.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+code+" for more information.")||this)}return Object(inheritsLoose.a)(PolishedError,_Error),PolishedError}(wrapNativeSuper_wrapNativeSuper(Error)),unitRegExp=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function exec(operators,values){var _ref,op=operators.pop();return values.push(op.f.apply(op,(_ref=[]).concat.apply(_ref,values.splice(-op.argCount)))),op.precedence}function calculate(expression,additionalSymbols){var match,symbolMap=function mergeSymbolMaps(additionalSymbols){var symbolMap={};return symbolMap.symbols=additionalSymbols?Object(esm_extends.a)({},defaultMathSymbols.symbols,{},additionalSymbols.symbols):Object(esm_extends.a)({},defaultMathSymbols.symbols),symbolMap}(additionalSymbols),operators=[symbolMap.symbols["("].prefix],values=[],pattern=new RegExp("\\d+(?:\\.\\d+)?|"+Object.keys(symbolMap.symbols).map((function(key){return symbolMap.symbols[key]})).sort((function(a,b){return b.symbol.length-a.symbol.length})).map((function(val){return val.regSymbol})).join("|")+"|(\\S)","g");pattern.lastIndex=0;var afterValue=!1;do{var _ref2=(match=pattern.exec(expression))||[")",void 0],token=_ref2[0],bad=_ref2[1],notNumber=symbolMap.symbols[token],notNewValue=notNumber&&!notNumber.prefix&&!notNumber.func,notAfterValue=!notNumber||!notNumber.postfix&&!notNumber.infix;if(bad||(afterValue?notAfterValue:notNewValue))throw new polished_esm_PolishedError(37,match?match.index:expression.length,expression);if(afterValue){var curr=notNumber.postfix||notNumber.infix;do{var prev=operators[operators.length-1];if((curr.precedence-prev.precedence||prev.rightToLeft)>0)break}while(exec(operators,values));afterValue="postfix"===curr.notation,")"!==curr.symbol&&(operators.push(curr),afterValue&&exec(operators,values))}else if(notNumber){if(operators.push(notNumber.prefix||notNumber.func),notNumber.func&&(!(match=pattern.exec(expression))||"("!==match[0]))throw new polished_esm_PolishedError(38,match?match.index:expression.length,expression)}else values.push(+token),afterValue=!0}while(match&&operators.length);if(operators.length)throw new polished_esm_PolishedError(39,match?match.index:expression.length,expression);if(match)throw new polished_esm_PolishedError(40,match?match.index:expression.length,expression);return values.pop()}function reverseString(str){return str.split("").reverse().join("")}function math(formula,additionalSymbols){var reversedFormula=reverseString(formula),formulaMatch=reversedFormula.match(unitRegExp);if(formulaMatch&&!formulaMatch.every((function(unit){return unit===formulaMatch[0]})))throw new polished_esm_PolishedError(41);return""+calculate(reverseString(reversedFormula.replace(unitRegExp,"")),additionalSymbols)+(formulaMatch?reverseString(formulaMatch[0]):"")}var cssVariableRegex=/--[\S]*/g;function cssVar(cssVariable,passThrough){if(!cssVariable||!cssVariable.match(cssVariableRegex)){if(passThrough)return cssVariable;throw new polished_esm_PolishedError(73)}var variableValue;if("undefined"!=typeof document&&null!==document.documentElement&&(variableValue=getComputedStyle(document.documentElement).getPropertyValue(cssVariable)),variableValue)return variableValue.trim();throw new polished_esm_PolishedError(74)}function capitalizeString(string){return string.charAt(0).toUpperCase()+string.slice(1)}var positionMap=["Top","Right","Bottom","Left"];function generateProperty(property,position){if(!property)return position.toLowerCase();var splitProperty=property.split("-");if(splitProperty.length>1)return splitProperty.splice(1,0,position),splitProperty.reduce((function(acc,val){return""+acc+capitalizeString(val)}));var joinedProperty=property.replace(/([a-z])([A-Z])/g,"$1"+position+"$2");return property===joinedProperty?""+property+position:joinedProperty}function generateStyles(property,valuesWithDefaults){for(var styles={},i=0;i1?_len-1:0),_key=1;_key<_len;_key++)values[_key-1]=arguments[_key];var firstValue=values[0],_values$=values[1],secondValue=void 0===_values$?firstValue:_values$,_values$2=values[2],thirdValue=void 0===_values$2?firstValue:_values$2,_values$3=values[3],fourthValue=void 0===_values$3?secondValue:_values$3,valuesWithDefaults=[firstValue,secondValue,thirdValue,fourthValue];return generateStyles(property,valuesWithDefaults)}function endsWith(string,suffix){return string.substr(-suffix.length)===suffix}var cssRegex=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function stripUnit(value,unitReturn){if("string"!=typeof value)return unitReturn?[value,void 0]:value;var matchedValue=value.match(cssRegex);return unitReturn?(console.warn("stripUnit's unitReturn functionality has been marked for deprecation in polished 4.0. It's functionality has been been moved to getValueAndUnit."),matchedValue?[parseFloat(value),matchedValue[2]]:[value,void 0]):matchedValue?parseFloat(value):value}var pxtoFactory=function pxtoFactory(to){return function(pxval,base){void 0===base&&(base="16px");var newPxval=pxval,newBase=base;if("string"==typeof pxval){if(!endsWith(pxval,"px"))throw new polished_esm_PolishedError(69,to,pxval);newPxval=stripUnit(pxval)}if("string"==typeof base){if(!endsWith(base,"px"))throw new polished_esm_PolishedError(70,to,base);newBase=stripUnit(base)}if("string"==typeof newPxval)throw new polished_esm_PolishedError(71,pxval,to);if("string"==typeof newBase)throw new polished_esm_PolishedError(72,base,to);return""+newPxval/newBase+to}},em=pxtoFactory("em"),cssRegex$1=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function getValueAndUnit(value){if("string"!=typeof value)return[value,""];var matchedValue=value.match(cssRegex$1);return matchedValue?[parseFloat(value),matchedValue[2]]:[value,void 0]}var ratioNames={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};function modularScale(steps,base,ratio){if(void 0===base&&(base="1em"),void 0===ratio&&(ratio=1.333),"number"!=typeof steps)throw new polished_esm_PolishedError(42);if("string"==typeof ratio&&!ratioNames[ratio])throw new polished_esm_PolishedError(43);var _ref="string"==typeof base?getValueAndUnit(base):[base,""],realBase=_ref[0],unit=_ref[1],realRatio="string"==typeof ratio?function getRatio(ratioName){return ratioNames[ratioName]}(ratio):ratio;if("string"==typeof realBase)throw new polished_esm_PolishedError(44,base);return""+realBase*Math.pow(realRatio,steps)+(unit||"")}var rem=pxtoFactory("rem");function between(fromSize,toSize,minScreen,maxScreen){void 0===minScreen&&(minScreen="320px"),void 0===maxScreen&&(maxScreen="1200px");var _getValueAndUnit=getValueAndUnit(fromSize),unitlessFromSize=_getValueAndUnit[0],fromSizeUnit=_getValueAndUnit[1],_getValueAndUnit2=getValueAndUnit(toSize),unitlessToSize=_getValueAndUnit2[0],toSizeUnit=_getValueAndUnit2[1],_getValueAndUnit3=getValueAndUnit(minScreen),unitlessMinScreen=_getValueAndUnit3[0],minScreenUnit=_getValueAndUnit3[1],_getValueAndUnit4=getValueAndUnit(maxScreen),unitlessMaxScreen=_getValueAndUnit4[0],maxScreenUnit=_getValueAndUnit4[1];if("number"!=typeof unitlessMinScreen||"number"!=typeof unitlessMaxScreen||!minScreenUnit||!maxScreenUnit||minScreenUnit!==maxScreenUnit)throw new polished_esm_PolishedError(47);if("number"!=typeof unitlessFromSize||"number"!=typeof unitlessToSize||fromSizeUnit!==toSizeUnit)throw new polished_esm_PolishedError(48);var slope=(unitlessFromSize-unitlessToSize)/(unitlessMinScreen-unitlessMaxScreen);return"calc("+(unitlessToSize-slope*unitlessMaxScreen).toFixed(2)+(fromSizeUnit||"")+" + "+(100*slope).toFixed(2)+"vw)"}function clearFix(parent){var _ref;return void 0===parent&&(parent="&"),(_ref={})[parent+"::after"]={clear:"both",content:'""',display:"table"},_ref}function cover(offset){return void 0===offset&&(offset=0),{position:"absolute",top:offset,right:offset,bottom:offset,left:offset}}function ellipsis(width){return void 0===width&&(width="100%"),{display:"inline-block",maxWidth:width,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}}function _createForOfIteratorHelperLoose(o){var i=0;if("undefined"==typeof Symbol||null==o[Symbol.iterator]){if(Array.isArray(o)||(o=function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(o)))return function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(i=o[Symbol.iterator]()).next.bind(i)}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1?_len-1:0),_key=1;_key<_len;_key++)substitutions[_key-1]=arguments[_key];for(var i=0;i1?(template=template.slice(0,-1),template+=", "+substitutions[i]):1===definedValues.length&&(template+=""+substitutions[i])}else substitutions[i]&&(template+=substitutions[i]+" ");return template.trim()}function _templateObject(){var data=_taggedTemplateLiteralLoose(["linear-gradient(","",")"]);return _templateObject=function _templateObject(){return data},data}function linearGradient(_ref){var colorStops=_ref.colorStops,fallback=_ref.fallback,_ref$toDirection=_ref.toDirection,toDirection=void 0===_ref$toDirection?"":_ref$toDirection;if(!colorStops||colorStops.length<2)throw new polished_esm_PolishedError(56);return{backgroundColor:fallback||colorStops[0].split(" ")[0],backgroundImage:constructGradientValue(_templateObject(),toDirection,colorStops.join(", "))}}function normalize(){var _ref;return[(_ref={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},main:{display:"block"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},_ref["b,\n strong"]={fontWeight:"bolder"},_ref["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},_ref.small={fontSize:"80%"},_ref["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},_ref.sub={bottom:"-0.25em"},_ref.sup={top:"-0.5em"},_ref.img={borderStyle:"none"},_ref["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},_ref["button,\n input"]={overflow:"visible"},_ref["button,\n select"]={textTransform:"none"},_ref['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},_ref['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},_ref['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},_ref.fieldset={padding:"0.35em 0.625em 0.75em"},_ref.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},_ref.progress={verticalAlign:"baseline"},_ref.textarea={overflow:"auto"},_ref['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},_ref['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},_ref['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},_ref['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},_ref["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},_ref.details={display:"block"},_ref.summary={display:"list-item"},_ref.template={display:"none"},_ref["[hidden]"]={display:"none"},_ref),{"abbr[title]":{textDecoration:"underline dotted"}}]}function _templateObject$1(){var data=_taggedTemplateLiteralLoose(["radial-gradient(","","","",")"]);return _templateObject$1=function _templateObject(){return data},data}function radialGradient(_ref){var colorStops=_ref.colorStops,_ref$extent=_ref.extent,extent=void 0===_ref$extent?"":_ref$extent,fallback=_ref.fallback,_ref$position=_ref.position,position=void 0===_ref$position?"":_ref$position,_ref$shape=_ref.shape,shape=void 0===_ref$shape?"":_ref$shape;if(!colorStops||colorStops.length<2)throw new polished_esm_PolishedError(57);return{backgroundColor:fallback||colorStops[0].split(" ")[0],backgroundImage:constructGradientValue(_templateObject$1(),position,shape,extent,colorStops.join(", "))}}function retinaImage(filename,backgroundSize,extension,retinaFilename,retinaSuffix){var _ref;if(void 0===extension&&(extension="png"),void 0===retinaSuffix&&(retinaSuffix="_2x"),!filename)throw new polished_esm_PolishedError(58);var ext=extension.replace(/^\./,""),rFilename=retinaFilename?retinaFilename+"."+ext:""+filename+retinaSuffix+"."+ext;return(_ref={backgroundImage:"url("+filename+"."+ext+")"})[hiDPI()]=Object(esm_extends.a)({backgroundImage:"url("+rFilename+")"},backgroundSize?{backgroundSize:backgroundSize}:{}),_ref}var functionsMap={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function timingFunctions(timingFunction){return function getTimingFunction(functionName){return functionsMap[functionName]}(timingFunction)}var getBorderWidth=function getBorderWidth(pointingDirection,height,width){var fullWidth=""+width[0]+(width[1]||""),halfWidth=""+width[0]/2+(width[1]||""),fullHeight=""+height[0]+(height[1]||""),halfHeight=""+height[0]/2+(height[1]||"");switch(pointingDirection){case"top":return"0 "+halfWidth+" "+fullHeight+" "+halfWidth;case"topLeft":return fullWidth+" "+fullHeight+" 0 0";case"left":return halfHeight+" "+fullWidth+" "+halfHeight+" 0";case"bottomLeft":return fullWidth+" 0 0 "+fullHeight;case"bottom":return fullHeight+" "+halfWidth+" 0 "+halfWidth;case"bottomRight":return"0 0 "+fullWidth+" "+fullHeight;case"right":return halfHeight+" 0 "+halfHeight+" "+fullWidth;case"topRight":default:return"0 "+fullWidth+" "+fullHeight+" 0"}},getBorderColor=function getBorderColor(pointingDirection,foregroundColor,backgroundColor){switch(pointingDirection){case"top":case"bottomRight":return backgroundColor+" "+backgroundColor+" "+foregroundColor+" "+backgroundColor;case"right":case"bottomLeft":return backgroundColor+" "+backgroundColor+" "+backgroundColor+" "+foregroundColor;case"bottom":case"topLeft":return foregroundColor+" "+backgroundColor+" "+backgroundColor+" "+backgroundColor;case"left":case"topRight":return backgroundColor+" "+foregroundColor+" "+backgroundColor+" "+backgroundColor;default:throw new polished_esm_PolishedError(59)}};function triangle(_ref){var pointingDirection=_ref.pointingDirection,height=_ref.height,width=_ref.width,foregroundColor=_ref.foregroundColor,_ref$backgroundColor=_ref.backgroundColor,backgroundColor=void 0===_ref$backgroundColor?"transparent":_ref$backgroundColor,widthAndUnit=getValueAndUnit(width),heightAndUnit=getValueAndUnit(height);if(isNaN(heightAndUnit[0])||isNaN(widthAndUnit[0]))throw new polished_esm_PolishedError(60);return{width:"0",height:"0",borderColor:getBorderColor(pointingDirection,foregroundColor,backgroundColor),borderStyle:"solid",borderWidth:getBorderWidth(pointingDirection,heightAndUnit,widthAndUnit)}}function wordWrap(wrap){return void 0===wrap&&(wrap="break-word"),{overflowWrap:wrap,wordWrap:wrap,wordBreak:"break-word"===wrap?"break-all":wrap}}function colorToInt(color){return Math.round(255*color)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert){if(void 0===convert&&(convert=convertToInt),0===saturation)return convert(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new polished_esm_PolishedError(3);var normalizedColor=function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha:alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor);if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new polished_esm_PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor);if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new polished_esm_PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])}}throw new polished_esm_PolishedError(5)}function parseToHsl(color){return function rgbToHsl(color){var hue,red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness:lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness:lightness};var delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if("object"==typeof value&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new polished_esm_PolishedError(2)}function rgb(value,green,blue){if("number"==typeof value&&"number"==typeof green&&"number"==typeof blue)return reduceHexValue("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if("object"==typeof value&&void 0===green&&void 0===blue)return reduceHexValue("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new polished_esm_PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if("string"==typeof firstValue&&"number"==typeof secondValue){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}if("number"==typeof firstValue&&"number"==typeof secondValue&&"number"==typeof thirdValue&&"number"==typeof fourthValue)return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"==typeof firstValue&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new polished_esm_PolishedError(7)}function toColorString(color){if("object"!=typeof color)throw new polished_esm_PolishedError(8);if(function isRgba(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha}(color))return rgba(color);if(function isRgb(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||void 0===color.alpha)}(color))return rgb(color);if(function isHsla(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha}(color))return hsla(color);if(function isHsl(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||void 0===color.alpha)}(color))return hsl(color);throw new polished_esm_PolishedError(8)}function curry(f){return function curried(f,length,acc){return function fn(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}(f,f.length,[])}function adjustHue(degree,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(Object(esm_extends.a)({},hslColor,{hue:hslColor.hue+parseFloat(degree)}))}var curriedAdjustHue=curry(adjustHue);function complement(color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(Object(esm_extends.a)({},hslColor,{hue:(hslColor.hue+180)%360}))}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(Object(esm_extends.a)({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken);function desaturate(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(Object(esm_extends.a)({},hslColor,{saturation:guard(0,1,hslColor.saturation-parseFloat(amount))}))}var curriedDesaturate=curry(desaturate);function getLuminance(color){if("transparent"===color)return 0;var rgbColor=parseToRgb(color),_Object$keys$map=Object.keys(rgbColor).map((function(key){var channel=rgbColor[key]/255;return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)})),r=_Object$keys$map[0],g=_Object$keys$map[1],b=_Object$keys$map[2];return parseFloat((.2126*r+.7152*g+.0722*b).toFixed(3))}function getContrast(color1,color2){var luminance1=getLuminance(color1),luminance2=getLuminance(color2);return parseFloat((luminance1>luminance2?(luminance1+.05)/(luminance2+.05):(luminance2+.05)/(luminance1+.05)).toFixed(2))}function grayscale(color){return"transparent"===color?color:toColorString(Object(esm_extends.a)({},parseToHsl(color),{saturation:0}))}function hslToColorString(color){if("object"==typeof color&&"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness)return color.alpha&&"number"==typeof color.alpha?hsla({hue:color.hue,saturation:color.saturation,lightness:color.lightness,alpha:color.alpha}):hsl({hue:color.hue,saturation:color.saturation,lightness:color.lightness});throw new polished_esm_PolishedError(45)}function invert(color){if("transparent"===color)return color;var value=parseToRgb(color);return toColorString(Object(esm_extends.a)({},value,{red:255-value.red,green:255-value.green,blue:255-value.blue}))}function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(Object(esm_extends.a)({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten);function meetsContrastGuidelines(color1,color2){var contrastRatio=getContrast(color1,color2);return{AA:contrastRatio>=4.5,AALarge:contrastRatio>=3,AAA:contrastRatio>=7,AAALarge:contrastRatio>=4.5}}function mix(weight,color,otherColor){if("transparent"===color)return otherColor;if("transparent"===otherColor)return color;if(0===weight)return otherColor;var parsedColor1=parseToRgb(color),color1=Object(esm_extends.a)({},parsedColor1,{alpha:"number"==typeof parsedColor1.alpha?parsedColor1.alpha:1}),parsedColor2=parseToRgb(otherColor),color2=Object(esm_extends.a)({},parsedColor2,{alpha:"number"==typeof parsedColor2.alpha?parsedColor2.alpha:1}),alphaDelta=color1.alpha-color2.alpha,x=2*parseFloat(weight)-1,weight1=((x*alphaDelta==-1?x:x+alphaDelta)/(1+x*alphaDelta)+1)/2,weight2=1-weight1;return rgba({red:Math.floor(color1.red*weight1+color2.red*weight2),green:Math.floor(color1.green*weight1+color2.green*weight2),blue:Math.floor(color1.blue*weight1+color2.blue*weight2),alpha:color1.alpha*(parseFloat(weight)/1)+color2.alpha*(1-parseFloat(weight)/1)})}var curriedMix=curry(mix);function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color),alpha="number"==typeof parsedColor.alpha?parsedColor.alpha:1;return rgba(Object(esm_extends.a)({},parsedColor,{alpha:guard(0,1,(100*alpha+100*parseFloat(amount))/100)}))}var curriedOpacify=curry(opacify);function readableColor(color,lightReturnColor,darkReturnColor,strict){void 0===lightReturnColor&&(lightReturnColor="#000"),void 0===darkReturnColor&&(darkReturnColor="#fff"),void 0===strict&&(strict=!1);var isLightColor=getLuminance(color)>.179,preferredReturnColor=isLightColor?lightReturnColor:darkReturnColor;return!strict||getContrast(color,preferredReturnColor)>=4.5?preferredReturnColor:isLightColor?"#000":"#fff"}function rgbToColorString(color){if("object"==typeof color&&"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue)return"number"==typeof color.alpha?rgba({red:color.red,green:color.green,blue:color.blue,alpha:color.alpha}):rgb({red:color.red,green:color.green,blue:color.blue});throw new polished_esm_PolishedError(46)}function saturate(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(Object(esm_extends.a)({},hslColor,{saturation:guard(0,1,hslColor.saturation+parseFloat(amount))}))}var curriedSaturate=curry(saturate);function setHue(hue,color){return"transparent"===color?color:toColorString(Object(esm_extends.a)({},parseToHsl(color),{hue:parseFloat(hue)}))}var curriedSetHue=curry(setHue);function setLightness(lightness,color){return"transparent"===color?color:toColorString(Object(esm_extends.a)({},parseToHsl(color),{lightness:parseFloat(lightness)}))}var curriedSetLightness=curry(setLightness);function setSaturation(saturation,color){return"transparent"===color?color:toColorString(Object(esm_extends.a)({},parseToHsl(color),{saturation:parseFloat(saturation)}))}var curriedSetSaturation=curry(setSaturation);function shade(percentage,color){return"transparent"===color?color:curriedMix(parseFloat(percentage),"rgb(0, 0, 0)",color)}var curriedShade=curry(shade);function tint(percentage,color){return"transparent"===color?color:curriedMix(parseFloat(percentage),"rgb(255, 255, 255)",color)}var curriedTint=curry(tint);function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color),alpha="number"==typeof parsedColor.alpha?parsedColor.alpha:1;return rgba(Object(esm_extends.a)({},parsedColor,{alpha:guard(0,1,(100*alpha-100*parseFloat(amount))/100)}))}var curriedTransparentize=curry(transparentize);function animation(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var multiMode=Array.isArray(args[0]);if(!multiMode&&args.length>8)throw new polished_esm_PolishedError(64);var code=args.map((function(arg){if(multiMode&&!Array.isArray(arg)||!multiMode&&Array.isArray(arg))throw new polished_esm_PolishedError(65);if(Array.isArray(arg)&&arg.length>8)throw new polished_esm_PolishedError(66);return Array.isArray(arg)?arg.join(" "):arg})).join(", ");return{animation:code}}function backgroundImages(){for(var _len=arguments.length,properties=new Array(_len),_key=0;_key<_len;_key++)properties[_key]=arguments[_key];return{backgroundImage:properties.join(", ")}}function backgrounds(){for(var _len=arguments.length,properties=new Array(_len),_key=0;_key<_len;_key++)properties[_key]=arguments[_key];return{background:properties.join(", ")}}var sideMap=["top","right","bottom","left"];function border(sideKeyword){for(var _len=arguments.length,values=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)values[_key-1]=arguments[_key];var _ref;return"string"==typeof sideKeyword&&sideMap.indexOf(sideKeyword)>=0?((_ref={})["border"+capitalizeString(sideKeyword)+"Width"]=values[0],_ref["border"+capitalizeString(sideKeyword)+"Style"]=values[1],_ref["border"+capitalizeString(sideKeyword)+"Color"]=values[2],_ref):(values.unshift(sideKeyword),{borderWidth:values[0],borderStyle:values[1],borderColor:values[2]})}function borderColor(){for(var _len=arguments.length,values=new Array(_len),_key=0;_key<_len;_key++)values[_key]=arguments[_key];return directionalProperty.apply(void 0,["borderColor"].concat(values))}function borderRadius(side,radius){var _ref,_ref2,uppercaseSide=capitalizeString(side);if(!radius&&0!==radius)throw new polished_esm_PolishedError(62);if("Top"===uppercaseSide||"Bottom"===uppercaseSide)return(_ref={})["border"+uppercaseSide+"RightRadius"]=radius,_ref["border"+uppercaseSide+"LeftRadius"]=radius,_ref;if("Left"===uppercaseSide||"Right"===uppercaseSide)return(_ref2={})["borderTop"+uppercaseSide+"Radius"]=radius,_ref2["borderBottom"+uppercaseSide+"Radius"]=radius,_ref2;throw new polished_esm_PolishedError(63)}function borderStyle(){for(var _len=arguments.length,values=new Array(_len),_key=0;_key<_len;_key++)values[_key]=arguments[_key];return directionalProperty.apply(void 0,["borderStyle"].concat(values))}function borderWidth(){for(var _len=arguments.length,values=new Array(_len),_key=0;_key<_len;_key++)values[_key]=arguments[_key];return directionalProperty.apply(void 0,["borderWidth"].concat(values))}function generateSelectors(template,state){return template(state?":"+state:"")}function statefulSelectors(states,template,stateMap){if(!template)throw new polished_esm_PolishedError(67);if(0===states.length)return generateSelectors(template,null);for(var selectors=[],i=0;i1?_len-1:0),_key=1;_key<_len;_key++)values[_key-1]=arguments[_key];return positionMap$1.indexOf(firstValue)>=0&&firstValue?Object(esm_extends.a)({},directionalProperty.apply(void 0,[""].concat(values)),{position:firstValue}):directionalProperty.apply(void 0,["",firstValue].concat(values))}function size(height,width){return void 0===width&&(width=height),{height:height,width:width}}var stateMap$1=[void 0,null,"active","focus","hover"];function template$1(state){return'input[type="color"]'+state+',\n input[type="date"]'+state+',\n input[type="datetime"]'+state+',\n input[type="datetime-local"]'+state+',\n input[type="email"]'+state+',\n input[type="month"]'+state+',\n input[type="number"]'+state+',\n input[type="password"]'+state+',\n input[type="search"]'+state+',\n input[type="tel"]'+state+',\n input[type="text"]'+state+',\n input[type="time"]'+state+',\n input[type="url"]'+state+',\n input[type="week"]'+state+",\n input:not([type])"+state+",\n textarea"+state}function textInputs(){for(var _len=arguments.length,states=new Array(_len),_key=0;_key<_len;_key++)states[_key]=arguments[_key];return statefulSelectors(states,template$1,stateMap$1)}function transitions(){for(var _len=arguments.length,properties=new Array(_len),_key=0;_key<_len;_key++)properties[_key]=arguments[_key];if(Array.isArray(properties[0])&&2===properties.length){var value=properties[1];if("string"!=typeof value)throw new polished_esm_PolishedError(61);var transitionsString=properties[0].map((function(property){return property+" "+value})).join(", ");return{transition:transitionsString}}return{transition:properties.join(", ")}}},,function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports,__webpack_require__){var DESCRIPTORS=__webpack_require__(39),IE8_DOM_DEFINE=__webpack_require__(387),anObject=__webpack_require__(41),toPrimitive=__webpack_require__(146),nativeDefineProperty=Object.defineProperty;exports.f=DESCRIPTORS?nativeDefineProperty:function defineProperty(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return nativeDefineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports,__webpack_require__){"use strict";var fixRegExpWellKnownSymbolLogic=__webpack_require__(184),anObject=__webpack_require__(41),toObject=__webpack_require__(67),toLength=__webpack_require__(60),toInteger=__webpack_require__(149),requireObjectCoercible=__webpack_require__(66),advanceStringIndex=__webpack_require__(265),regExpExec=__webpack_require__(185),max=Math.max,min=Math.min,floor=Math.floor,SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d\d?|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d\d?)/g;fixRegExpWellKnownSymbolLogic("replace",2,(function(REPLACE,nativeReplace,maybeCallNative,reason){var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,REPLACE_KEEPS_$0=reason.REPLACE_KEEPS_$0,UNSAFE_SUBSTITUTE=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function replace(searchValue,replaceValue){var O=requireObjectCoercible(this),replacer=null==searchValue?void 0:searchValue[REPLACE];return void 0!==replacer?replacer.call(searchValue,O,replaceValue):nativeReplace.call(String(O),searchValue,replaceValue)},function(regexp,replaceValue){if(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE&&REPLACE_KEEPS_$0||"string"==typeof replaceValue&&-1===replaceValue.indexOf(UNSAFE_SUBSTITUTE)){var res=maybeCallNative(nativeReplace,regexp,this,replaceValue);if(res.done)return res.value}var rx=anObject(regexp),S=String(this),functionalReplace="function"==typeof replaceValue;functionalReplace||(replaceValue=String(replaceValue));var global=rx.global;if(global){var fullUnicode=rx.unicode;rx.lastIndex=0}for(var results=[];;){var result=regExpExec(rx,S);if(null===result)break;if(results.push(result),!global)break;""===String(result[0])&&(rx.lastIndex=advanceStringIndex(S,toLength(rx.lastIndex),fullUnicode))}for(var it,accumulatedResult="",nextSourcePosition=0,i=0;i=nextSourcePosition&&(accumulatedResult+=S.slice(nextSourcePosition,position)+replacement,nextSourcePosition=position+matched.length)}return accumulatedResult+S.slice(nextSourcePosition)}];function getSubstitution(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length,m=captures.length,symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==namedCaptures&&(namedCaptures=toObject(namedCaptures),symbols=SUBSTITUTION_SYMBOLS),nativeReplace.call(replacement,symbols,(function(match,ch){var capture;switch(ch.charAt(0)){case"$":return"$";case"&":return matched;case"`":return str.slice(0,position);case"'":return str.slice(tailPos);case"<":capture=namedCaptures[ch.slice(1,-1)];break;default:var n=+ch;if(0===n)return match;if(n>m){var f=floor(n/10);return 0===f?match:f<=m?void 0===captures[f-1]?ch.charAt(1):captures[f-1]+ch.charAt(1):match}capture=captures[n-1]}return void 0===capture?"":capture}))}}))},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),IndexedObject=__webpack_require__(145),toIndexedObject=__webpack_require__(73),arrayMethodIsStrict=__webpack_require__(107),nativeJoin=[].join,ES3_STRINGS=IndexedObject!=Object,STRICT_METHOD=arrayMethodIsStrict("join",",");$({target:"Array",proto:!0,forced:ES3_STRINGS||!STRICT_METHOD},{join:function join(separator){return nativeJoin.call(toIndexedObject(this),void 0===separator?",":separator)}})},function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0});var _constants=__webpack_require__(339);Object.keys(_constants).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_constants[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _constants[key]}}))}));var _models=__webpack_require__(1118);Object.keys(_models).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_models[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _models[key]}}))}));var _preview=__webpack_require__(1125);Object.keys(_preview).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_preview[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _preview[key]}}))})),module&&module.hot&&module.hot.decline&&module.hot.decline()}).call(this,__webpack_require__(128)(module))},function(module,exports,__webpack_require__){var global=__webpack_require__(26),createNonEnumerableProperty=__webpack_require__(80),has=__webpack_require__(47),setGlobal=__webpack_require__(248),inspectSource=__webpack_require__(249),InternalStateModule=__webpack_require__(74),getInternalState=InternalStateModule.get,enforceInternalState=InternalStateModule.enforce,TEMPLATE=String(String).split("String");(module.exports=function(O,key,value,options){var unsafe=!!options&&!!options.unsafe,simple=!!options&&!!options.enumerable,noTargetGet=!!options&&!!options.noTargetGet;"function"==typeof value&&("string"!=typeof key||has(value,"name")||createNonEnumerableProperty(value,"name",key),enforceInternalState(value).source=TEMPLATE.join("string"==typeof key?key:"")),O!==global?(unsafe?!noTargetGet&&O[key]&&(simple=!0):delete O[key],simple?O[key]=value:createNonEnumerableProperty(O,key,value)):simple?O[key]=value:setGlobal(key,value)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&getInternalState(this).source||inspectSource(this)}))},function(module,exports){module.exports=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}},module.exports.default=module.exports,module.exports.__esModule=!0},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(149),min=Math.min;module.exports=function(argument){return argument>0?min(toInteger(argument),9007199254740991):0}},function(module,exports,__webpack_require__){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={ClientApi:!0,addDecorator:!0,addParameters:!0,addLoader:!0,addArgTypesEnhancer:!0,defaultDecorateStory:!0,combineParameters:!0,StoryStore:!0,ConfigApi:!0,pathToId:!0,simulatePageLoad:!0,simulateDOMContentLoaded:!0,getQueryParams:!0,getQueryParam:!0};Object.defineProperty(exports,"ClientApi",{enumerable:!0,get:function get(){return _client_api.default}}),Object.defineProperty(exports,"addDecorator",{enumerable:!0,get:function get(){return _client_api.addDecorator}}),Object.defineProperty(exports,"addParameters",{enumerable:!0,get:function get(){return _client_api.addParameters}}),Object.defineProperty(exports,"addLoader",{enumerable:!0,get:function get(){return _client_api.addLoader}}),Object.defineProperty(exports,"addArgTypesEnhancer",{enumerable:!0,get:function get(){return _client_api.addArgTypesEnhancer}}),Object.defineProperty(exports,"defaultDecorateStory",{enumerable:!0,get:function get(){return _decorators.defaultDecorateStory}}),Object.defineProperty(exports,"combineParameters",{enumerable:!0,get:function get(){return _parameters.combineParameters}}),Object.defineProperty(exports,"StoryStore",{enumerable:!0,get:function get(){return _story_store.default}}),Object.defineProperty(exports,"ConfigApi",{enumerable:!0,get:function get(){return _config_api.default}}),Object.defineProperty(exports,"pathToId",{enumerable:!0,get:function get(){return _pathToId.default}}),Object.defineProperty(exports,"simulatePageLoad",{enumerable:!0,get:function get(){return _simulatePageload.simulatePageLoad}}),Object.defineProperty(exports,"simulateDOMContentLoaded",{enumerable:!0,get:function get(){return _simulatePageload.simulateDOMContentLoaded}}),Object.defineProperty(exports,"getQueryParams",{enumerable:!0,get:function get(){return _queryparams.getQueryParams}}),Object.defineProperty(exports,"getQueryParam",{enumerable:!0,get:function get(){return _queryparams.getQueryParam}});var _client_api=function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache();if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__(706)),_decorators=__webpack_require__(418),_parameters=__webpack_require__(159);Object.keys(_parameters).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_parameters[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _parameters[key]}}))}));var _story_store=_interopRequireDefault(__webpack_require__(742)),_config_api=_interopRequireDefault(__webpack_require__(819)),_pathToId=_interopRequireDefault(__webpack_require__(820)),_simulatePageload=__webpack_require__(821),_queryparams=__webpack_require__(822),_hooks=__webpack_require__(269);Object.keys(_hooks).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_hooks[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _hooks[key]}}))}));var _types=__webpack_require__(827);Object.keys(_types).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_types[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _types[key]}}))}));var _inferControls=__webpack_require__(438);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var cache=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return cache},cache}Object.keys(_inferControls).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_inferControls[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _inferControls[key]}}))}))},function(module,exports,__webpack_require__){(function(global){function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}var val=global.localStorage[name];return null!=val&&"true"===String(val).toLowerCase()}module.exports=function deprecate(fn,msg){if(config("noDeprecation"))return fn;var warned=!1;return function deprecated(){if(!warned){if(config("throwDeprecation"))throw new Error(msg);config("traceDeprecation")?console.trace(msg):console.warn(msg),warned=!0}return fn.apply(this,arguments)}}}).call(this,__webpack_require__(53))},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsContext=void 0;var DocsContext=(0,__webpack_require__(0).createContext)({});exports.DocsContext=DocsContext},function(module,exports,__webpack_require__){"use strict";var ES5Type=__webpack_require__(233);module.exports=function Type(x){return"symbol"==typeof x?"Symbol":ES5Type(x)}},function(module,exports,__webpack_require__){"use strict";var $TypeError=__webpack_require__(5)("%TypeError%"),inspect=__webpack_require__(143),IsPropertyKey=__webpack_require__(72),Type=__webpack_require__(28);module.exports=function Get(O,P){if("Object"!==Type(O))throw new $TypeError("Assertion failed: Type(O) is not Object");if(!IsPropertyKey(P))throw new $TypeError("Assertion failed: IsPropertyKey(P) is not true, got "+inspect(P));return O[P]}},function(module,exports){module.exports=function(it){if(null==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){var requireObjectCoercible=__webpack_require__(66);module.exports=function(argument){return Object(requireObjectCoercible(argument))}},function(module,exports){var isArray=Array.isArray;module.exports=isArray},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),$reduce=__webpack_require__(741).left,arrayMethodIsStrict=__webpack_require__(107),arrayMethodUsesToLength=__webpack_require__(75),STRICT_METHOD=arrayMethodIsStrict("reduce"),USES_TO_LENGTH=arrayMethodUsesToLength("reduce",{1:0});$({target:"Array",proto:!0,forced:!STRICT_METHOD||!USES_TO_LENGTH},{reduce:function reduce(callbackfn){return $reduce(this,callbackfn,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(module,exports,__webpack_require__){"use strict";var fixRegExpWellKnownSymbolLogic=__webpack_require__(184),isRegExp=__webpack_require__(280),anObject=__webpack_require__(41),requireObjectCoercible=__webpack_require__(66),speciesConstructor=__webpack_require__(412),advanceStringIndex=__webpack_require__(265),toLength=__webpack_require__(60),callRegExpExec=__webpack_require__(185),regexpExec=__webpack_require__(183),fails=__webpack_require__(29),arrayPush=[].push,min=Math.min,SUPPORTS_Y=!fails((function(){return!RegExp(4294967295,"y")}));fixRegExpWellKnownSymbolLogic("split",2,(function(SPLIT,nativeSplit,maybeCallNative){var internalSplit;return internalSplit="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(separator,limit){var string=String(requireObjectCoercible(this)),lim=void 0===limit?4294967295:limit>>>0;if(0===lim)return[];if(void 0===separator)return[string];if(!isRegExp(separator))return nativeSplit.call(string,separator,lim);for(var match,lastIndex,lastLength,output=[],flags=(separator.ignoreCase?"i":"")+(separator.multiline?"m":"")+(separator.unicode?"u":"")+(separator.sticky?"y":""),lastLastIndex=0,separatorCopy=new RegExp(separator.source,flags+"g");(match=regexpExec.call(separatorCopy,string))&&!((lastIndex=separatorCopy.lastIndex)>lastLastIndex&&(output.push(string.slice(lastLastIndex,match.index)),match.length>1&&match.index=lim));)separatorCopy.lastIndex===match.index&&separatorCopy.lastIndex++;return lastLastIndex===string.length?!lastLength&&separatorCopy.test("")||output.push(""):output.push(string.slice(lastLastIndex)),output.length>lim?output.slice(0,lim):output}:"0".split(void 0,0).length?function(separator,limit){return void 0===separator&&0===limit?[]:nativeSplit.call(this,separator,limit)}:nativeSplit,[function split(separator,limit){var O=requireObjectCoercible(this),splitter=null==separator?void 0:separator[SPLIT];return void 0!==splitter?splitter.call(separator,O,limit):internalSplit.call(String(O),separator,limit)},function(regexp,limit){var res=maybeCallNative(internalSplit,regexp,this,limit,internalSplit!==nativeSplit);if(res.done)return res.value;var rx=anObject(regexp),S=String(this),C=speciesConstructor(rx,RegExp),unicodeMatching=rx.unicode,flags=(rx.ignoreCase?"i":"")+(rx.multiline?"m":"")+(rx.unicode?"u":"")+(SUPPORTS_Y?"y":"g"),splitter=new C(SUPPORTS_Y?rx:"^(?:"+rx.source+")",flags),lim=void 0===limit?4294967295:limit>>>0;if(0===lim)return[];if(0===S.length)return null===callRegExpExec(splitter,S)?[S]:[];for(var p=0,q=0,A=[];q1?arguments[1]:void 0)}}),addToUnscopables("includes")},function(module,exports,__webpack_require__){__webpack_require__(9)({target:"Function",proto:!0},{bind:__webpack_require__(416)})},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),createHTML=__webpack_require__(446);$({target:"String",proto:!0,forced:__webpack_require__(447)("bold")},{bold:function bold(){return createHTML(this,"b","","")}})},function(module,exports,__webpack_require__){var DESCRIPTORS=__webpack_require__(39),definePropertyModule=__webpack_require__(54),createPropertyDescriptor=__webpack_require__(126);module.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports,__webpack_require__){var freeGlobal=__webpack_require__(403),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();module.exports=root},function(module,exports,__webpack_require__){var $=__webpack_require__(9),$entries=__webpack_require__(411).entries;$({target:"Object",stat:!0},{entries:function entries(O){return $entries(O)}})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={Badge:!0,Link:!0,DocumentWrapper:!0,SyntaxHighlighter:!0,SyntaxHighlighterProps:!0,SyntaxHighlighterRendererProps:!0,createSyntaxHighlighterElement:!0,ActionBar:!0,Spaced:!0,Placeholder:!0,ScrollArea:!0,Zoom:!0,Button:!0,Form:!0,WithTooltip:!0,WithTooltipPure:!0,TooltipMessage:!0,TooltipNote:!0,TooltipLinkList:!0,Tabs:!0,TabsState:!0,TabBar:!0,TabWrapper:!0,IconButton:!0,TabButton:!0,Separator:!0,interleaveSeparators:!0,Bar:!0,FlexBar:!0,AddonPanel:!0,Icons:!0,IconsProps:!0,StorybookLogo:!0,StorybookIcon:!0,Loader:!0};Object.defineProperty(exports,"Badge",{enumerable:!0,get:function get(){return _Badge.Badge}}),Object.defineProperty(exports,"Link",{enumerable:!0,get:function get(){return _link.Link}}),Object.defineProperty(exports,"DocumentWrapper",{enumerable:!0,get:function get(){return _DocumentWrapper.DocumentWrapper}}),Object.defineProperty(exports,"SyntaxHighlighter",{enumerable:!0,get:function get(){return _syntaxhighlighter.SyntaxHighlighter}}),Object.defineProperty(exports,"SyntaxHighlighterProps",{enumerable:!0,get:function get(){return _syntaxhighlighter.SyntaxHighlighterProps}}),Object.defineProperty(exports,"SyntaxHighlighterRendererProps",{enumerable:!0,get:function get(){return _syntaxhighlighter.SyntaxHighlighterRendererProps}}),Object.defineProperty(exports,"createSyntaxHighlighterElement",{enumerable:!0,get:function get(){return _syntaxhighlighter.createSyntaxHighlighterElement}}),Object.defineProperty(exports,"ActionBar",{enumerable:!0,get:function get(){return _ActionBar.ActionBar}}),Object.defineProperty(exports,"Spaced",{enumerable:!0,get:function get(){return _Spaced.Spaced}}),Object.defineProperty(exports,"Placeholder",{enumerable:!0,get:function get(){return _placeholder.Placeholder}}),Object.defineProperty(exports,"ScrollArea",{enumerable:!0,get:function get(){return _ScrollArea.ScrollArea}}),Object.defineProperty(exports,"Zoom",{enumerable:!0,get:function get(){return _Zoom.Zoom}}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function get(){return _Button.Button}}),Object.defineProperty(exports,"Form",{enumerable:!0,get:function get(){return _index.Form}}),Object.defineProperty(exports,"WithTooltip",{enumerable:!0,get:function get(){return _WithTooltip.WithTooltip}}),Object.defineProperty(exports,"WithTooltipPure",{enumerable:!0,get:function get(){return _WithTooltip.WithTooltipPure}}),Object.defineProperty(exports,"TooltipMessage",{enumerable:!0,get:function get(){return _TooltipMessage.TooltipMessage}}),Object.defineProperty(exports,"TooltipNote",{enumerable:!0,get:function get(){return _TooltipNote.TooltipNote}}),Object.defineProperty(exports,"TooltipLinkList",{enumerable:!0,get:function get(){return _TooltipLinkList.TooltipLinkList}}),Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function get(){return _tabs.Tabs}}),Object.defineProperty(exports,"TabsState",{enumerable:!0,get:function get(){return _tabs.TabsState}}),Object.defineProperty(exports,"TabBar",{enumerable:!0,get:function get(){return _tabs.TabBar}}),Object.defineProperty(exports,"TabWrapper",{enumerable:!0,get:function get(){return _tabs.TabWrapper}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function get(){return _button.IconButton}}),Object.defineProperty(exports,"TabButton",{enumerable:!0,get:function get(){return _button.TabButton}}),Object.defineProperty(exports,"Separator",{enumerable:!0,get:function get(){return _separator.Separator}}),Object.defineProperty(exports,"interleaveSeparators",{enumerable:!0,get:function get(){return _separator.interleaveSeparators}}),Object.defineProperty(exports,"Bar",{enumerable:!0,get:function get(){return _bar.Bar}}),Object.defineProperty(exports,"FlexBar",{enumerable:!0,get:function get(){return _bar.FlexBar}}),Object.defineProperty(exports,"AddonPanel",{enumerable:!0,get:function get(){return _addonPanel.AddonPanel}}),Object.defineProperty(exports,"Icons",{enumerable:!0,get:function get(){return _icon.Icons}}),Object.defineProperty(exports,"IconsProps",{enumerable:!0,get:function get(){return _icon.IconsProps}}),Object.defineProperty(exports,"StorybookLogo",{enumerable:!0,get:function get(){return _StorybookLogo.StorybookLogo}}),Object.defineProperty(exports,"StorybookIcon",{enumerable:!0,get:function get(){return _StorybookIcon.StorybookIcon}}),Object.defineProperty(exports,"Loader",{enumerable:!0,get:function get(){return _Loader.Loader}});var _Badge=__webpack_require__(866),_link=__webpack_require__(206),_DocumentWrapper=__webpack_require__(883),_syntaxhighlighter=__webpack_require__(207),_ActionBar=__webpack_require__(316),_Spaced=__webpack_require__(939),_placeholder=__webpack_require__(466),_ScrollArea=__webpack_require__(317),_Zoom=__webpack_require__(208),_Button=__webpack_require__(467),_index=__webpack_require__(115),_WithTooltip=__webpack_require__(468),_TooltipMessage=__webpack_require__(946),_TooltipNote=__webpack_require__(947),_TooltipLinkList=__webpack_require__(948),_tabs=__webpack_require__(469),_button=__webpack_require__(319),_separator=__webpack_require__(950),_bar=__webpack_require__(318),_addonPanel=__webpack_require__(951),_icon=__webpack_require__(103),_StorybookLogo=__webpack_require__(952),_StorybookIcon=__webpack_require__(953),_blocks=__webpack_require__(954);Object.keys(_blocks).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_blocks[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _blocks[key]}}))}));var _controls=__webpack_require__(478);Object.keys(_controls).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_controls[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _controls[key]}}))}));var _Loader=__webpack_require__(1037)},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CacheProvider",(function(){return CacheProvider})),__webpack_require__.d(__webpack_exports__,"ThemeContext",(function(){return ThemeContext})),__webpack_require__.d(__webpack_exports__,"withEmotionCache",(function(){return emotion_element_57a3a7a3_browser_esm_withEmotionCache})),__webpack_require__.d(__webpack_exports__,"css",(function(){return css_browser_esm})),__webpack_require__.d(__webpack_exports__,"ClassNames",(function(){return ClassNames})),__webpack_require__.d(__webpack_exports__,"Global",(function(){return Global})),__webpack_require__.d(__webpack_exports__,"createElement",(function(){return core_browser_esm_jsx})),__webpack_require__.d(__webpack_exports__,"jsx",(function(){return core_browser_esm_jsx})),__webpack_require__.d(__webpack_exports__,"keyframes",(function(){return core_browser_esm_keyframes}));var inheritsLoose=__webpack_require__(118),react=__webpack_require__(0);var StyleSheet=function(){function StyleSheet(options){this.isSpeedy=void 0===options.speedy||options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.before=null}var _proto=StyleSheet.prototype;return _proto.insert=function insert(rule){if(this.ctr%(this.isSpeedy?65e3:1)==0){var before,_tag=function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag}(this);before=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(_tag,before),this.tags.push(_tag)}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;ih&&(h=(c=c.trim()).charCodeAt(0)),h){case 38:return c.replace(F,"$1"+d.trim());case 58:return d.trim()+c.replace(F,"$1"+d.trim());default:if(0<1*e&&0b.charCodeAt(8))break;case 115:a=a.replace(b,"-webkit-"+b)+";"+a;break;case 207:case 102:a=a.replace(b,"-webkit-"+(102e.charCodeAt(0)&&(e=e.trim()),e=[e],0q)&&(t=(f=f.replace(" ",":")).length),0=4;++i,len-=4)k=1540483477*(65535&(k=255&str.charCodeAt(i)|(255&str.charCodeAt(++i))<<8|(255&str.charCodeAt(++i))<<16|(255&str.charCodeAt(++i))<<24))+(59797*(k>>>16)<<16),h=1540483477*(65535&(k^=k>>>24))+(59797*(k>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(len){case 3:h^=(255&str.charCodeAt(i+2))<<16;case 2:h^=(255&str.charCodeAt(i+1))<<8;case 1:h=1540483477*(65535&(h^=255&str.charCodeAt(i)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)},unitless_browser_esm={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},memoize_browser_esm=__webpack_require__(221),hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function isCustomProperty(property){return 45===property.charCodeAt(1)},isProcessableValue=function isProcessableValue(value){return null!=value&&"boolean"!=typeof value},processStyleName=Object(memoize_browser_esm.a)((function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()})),serialize_browser_esm_processStyleValue=function processStyleValue(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex,(function(match,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1}))}return 1===unitless_browser_esm[key]||isCustomProperty(key)||"number"!=typeof value||0===value?value:value+"px"};function handleInterpolation(mergedProps,registered,interpolation,couldBeSelectorInterpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles)return interpolation;switch(typeof interpolation){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor={name:next.name,styles:next.styles,next:cursor},next=next.next;return interpolation.styles+";"}return function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i1?arguments[1]:void 0)}})},function(module,exports,__webpack_require__){var baseAssignValue=__webpack_require__(284),baseForOwn=__webpack_require__(286),baseIteratee=__webpack_require__(294);module.exports=function mapValues(object,iteratee){var result={};return iteratee=baseIteratee(iteratee,3),baseForOwn(object,(function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object))})),result}},function(module,exports){module.exports=!1},function(module,exports,__webpack_require__){var path=__webpack_require__(251),global=__webpack_require__(26),aFunction=function(variable){return"function"==typeof variable?variable:void 0};module.exports=function(namespace,method){return arguments.length<2?aFunction(path[namespace])||aFunction(global[namespace]):path[namespace]&&path[namespace][method]||global[namespace]&&global[namespace][method]}},function(module,exports,__webpack_require__){var activeXDocument,anObject=__webpack_require__(41),defineProperties=__webpack_require__(262),enumBugKeys=__webpack_require__(254),hiddenKeys=__webpack_require__(147),html=__webpack_require__(394),documentCreateElement=__webpack_require__(247),sharedKey=__webpack_require__(181),IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return"