commit 39cbd32dade95af479393ecc132bc58a7b455d4b Author: Zerroi Date: Sat Apr 13 13:54:14 2024 +0800 ElasticSearch_Hotel diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..07fc08f --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..8b2b496 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,19 @@ + + + + + mysql.8 + true + true + 192.168.249.131 + com.mysql.cj.jdbc.Driver + jdbc:mysql://192.168.249.131:3306/hotel_demo?useSSL=false + + + + + + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..0e1c064 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..abb532a --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 0000000..4abbfdf --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d5cd614 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..a130333 --- /dev/null +++ b/pom.xml @@ -0,0 +1,85 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.3.10.RELEASE + + + cn.itcast.demo + hotel-demo + 0.0.1-SNAPSHOT + hotel-demo + Demo project for Spring Boot + + 1.8 + 7.12.1 + + + + + org.elasticsearch.client + elasticsearch-rest-high-level-client + + + org.springframework.boot + spring-boot-starter-web + + + com.baomidou + mybatis-plus-boot-starter + 3.4.2 + + + mysql + mysql-connector-java + runtime + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + org.junit.vintage + junit-vintage-engine + + + + + + com.alibaba + fastjson + 1.2.71 + + + org.apache.commons + commons-lang3 + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/cn/itcast/hotel/HotelDemoApplication.java b/src/main/java/cn/itcast/hotel/HotelDemoApplication.java new file mode 100644 index 0000000..518760e --- /dev/null +++ b/src/main/java/cn/itcast/hotel/HotelDemoApplication.java @@ -0,0 +1,19 @@ +package cn.itcast.hotel; + +import com.baomidou.mybatisplus.annotation.DbType; +import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; +import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Bean; + +@MapperScan("cn.itcast.hotel.mapper") +@SpringBootApplication +public class HotelDemoApplication { + + public static void main(String[] args) { + SpringApplication.run(HotelDemoApplication.class, args); + } + +} diff --git a/src/main/java/cn/itcast/hotel/constants/HotelIndexConstants.java b/src/main/java/cn/itcast/hotel/constants/HotelIndexConstants.java new file mode 100644 index 0000000..e051fa8 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/constants/HotelIndexConstants.java @@ -0,0 +1,50 @@ +package cn.itcast.hotel.constants; + +public class HotelIndexConstants { + public static final String MAPPING_TEMPLATE = + "{\n" + + " \"mappings\": {\n" + + " \"properties\": {\n" + + " \"id\": {\n" + + " \"type\": \"keyword\"\n" + + " },\n" + + " \"name\": {\n" + + " \"type\": \"text\", \n" + + " \"analyzer\": \"ik_max_word\",\n" + + " \"copy_to\": \"all\"\n" + + " },\n" + + " \"address\": {\n" + + " \"type\": \"keyword\",\n" + + " \"index\": false\n" + + " },\n" + + " \"price\": {\n" + + " \"type\": \"integer\"\n" + + " },\n" + + " \"score\": {\n" + + " \"type\": \"integer\"\n" + + " },\n" + + " \"brand\": {\n" + + " \"type\": \"keyword\",\n" + + " \"copy_to\": \"all\"\n" + + " },\n" + + " \"city\": {\n" + + " \"type\": \"keyword\"\n" + + " },\n" + + " \"startName\": {\n" + + " \"type\": \"keyword\"\n" + + " },\n" + + " \"business\": {\n" + + " \"type\": \"keyword\",\n" + + " \"copy_to\": \"all\"\n" + + " },\n" + + " \"location\": {\n" + + " \"type\": \"geo_point\"\n" + + " },\n" + + " \"pic\": {\n" + + " \"type\": \"keyword\",\n" + + " \"index\": false\n" + + " }\n" + + " }\n" + + " }\n" + + "}"; +} diff --git a/src/main/java/cn/itcast/hotel/mapper/HotelMapper.java b/src/main/java/cn/itcast/hotel/mapper/HotelMapper.java new file mode 100644 index 0000000..8a955c0 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/mapper/HotelMapper.java @@ -0,0 +1,7 @@ +package cn.itcast.hotel.mapper; + +import cn.itcast.hotel.pojo.Hotel; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +public interface HotelMapper extends BaseMapper { +} diff --git a/src/main/java/cn/itcast/hotel/pojo/Hotel.java b/src/main/java/cn/itcast/hotel/pojo/Hotel.java new file mode 100644 index 0000000..6e9cfa6 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/pojo/Hotel.java @@ -0,0 +1,24 @@ +package cn.itcast.hotel.pojo; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName("tb_hotel") +public class Hotel { + @TableId(type = IdType.INPUT) + private Long id; + private String name; + private String address; + private Integer price; + private Integer score; + private String brand; + private String city; + private String starName; + private String business; + private String longitude; + private String latitude; + private String pic; +} diff --git a/src/main/java/cn/itcast/hotel/pojo/HotelDoc.java b/src/main/java/cn/itcast/hotel/pojo/HotelDoc.java new file mode 100644 index 0000000..4d393b9 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/pojo/HotelDoc.java @@ -0,0 +1,34 @@ +package cn.itcast.hotel.pojo; + +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@NoArgsConstructor +public class HotelDoc { + private Long id; + private String name; + private String address; + private Integer price; + private Integer score; + private String brand; + private String city; + private String starName; + private String business; + private String location; + private String pic; + + public HotelDoc(Hotel hotel) { + this.id = hotel.getId(); + this.name = hotel.getName(); + this.address = hotel.getAddress(); + this.price = hotel.getPrice(); + this.score = hotel.getScore(); + this.brand = hotel.getBrand(); + this.city = hotel.getCity(); + this.starName = hotel.getStarName(); + this.business = hotel.getBusiness(); + this.location = hotel.getLatitude() + ", " + hotel.getLongitude(); + this.pic = hotel.getPic(); + } +} diff --git a/src/main/java/cn/itcast/hotel/service/IHotelService.java b/src/main/java/cn/itcast/hotel/service/IHotelService.java new file mode 100644 index 0000000..d4ab356 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/service/IHotelService.java @@ -0,0 +1,7 @@ +package cn.itcast.hotel.service; + +import cn.itcast.hotel.pojo.Hotel; +import com.baomidou.mybatisplus.extension.service.IService; + +public interface IHotelService extends IService { +} diff --git a/src/main/java/cn/itcast/hotel/service/impl/HotelService.java b/src/main/java/cn/itcast/hotel/service/impl/HotelService.java new file mode 100644 index 0000000..5a312ac --- /dev/null +++ b/src/main/java/cn/itcast/hotel/service/impl/HotelService.java @@ -0,0 +1,11 @@ +package cn.itcast.hotel.service.impl; + +import cn.itcast.hotel.mapper.HotelMapper; +import cn.itcast.hotel.pojo.Hotel; +import cn.itcast.hotel.service.IHotelService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +@Service +public class HotelService extends ServiceImpl implements IHotelService { +} diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..85c2e3b --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,17 @@ +server: + port: 8089 +spring: + datasource: + url: jdbc:mysql://192.168.249.131:3306/hotel_demo?useSSL=false + username: root + password: root + driver-class-name: com.mysql.cj.jdbc.Driver +logging: + level: + cn.itcast: debug + pattern: + dateformat: HH:mm:ss:SSS +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + type-aliases-package: cn.itcast.hotel.pojo \ No newline at end of file diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..24a1f44 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,14 @@ + + + + + + %d{MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/static/css/banner.css b/src/main/resources/static/css/banner.css new file mode 100644 index 0000000..0c3c8c2 --- /dev/null +++ b/src/main/resources/static/css/banner.css @@ -0,0 +1,96 @@ +#toggle-button{ + display: none; +} +.button-label{ + position: relative; + display: inline-block; + width: 68px; + background-color: #ccc; + border: #ccc; + border-radius: 30px; + cursor: pointer; + box-shadow:inset 0 0 3px 1px rgba(0, 0, 0, 0.4); +} +.circle{ + position: absolute; + top: 0; + left: 0; + width: 20px; + height: 20px; + border-radius: 50%; + background-color: #fff; + box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.5); +} +.button-label .text { + line-height: 20px; + font-size: 12px; + + /* + 用来阻止页面文字被选中,出现蓝色 + 可以将下面两行代码注释掉来查看区别 + */ + -webkit-user-select: none; + user-select: none; +} +.on { + color: #fff; + display: none; + text-indent: 0; +} +.off { + color: #fff; + display: inline-block; + text-indent: 0; +} +.button-label .circle{ + left: 0; + transition: all 0.3s;/*transition过度,时间为0.3秒*/ +} + +/* +以下是checked被选中后,紧跟checked标签后面label的样式。 +例如:div+p 选择所有紧接着
元素之后的

元素 +*/ +#toggle-button:checked + label.button-label .circle{ + left: 49px; +} +#toggle-button:checked + label.button-label .on{ + display: inline-block; +} +#toggle-button:checked + label.button-label .off{ + display: none; +} +#toggle-button:checked + label.button-label{ + background-color: #FF8800; +} + + +.banner{ + width: 100%; + display: flex; + justify-content: space-between; + padding-top: 10px; +} + +.logo { + display: flex; + justify-items: left; + +} +.logo img{ + width: 40px; +} +.logo span { + width: 80px; +} +.logo-ch { + line-height: 26px; + font-size: 14px; + color: #333; + font-weight: bold; + font-family: "Helvetica Neue", "Arial", "PingFang SC", "Microsoft Yahei", "SimSun", sans-serif; +} +.logo-en { + line-height: 14px; + font-size: 8px; +} diff --git a/src/main/resources/static/css/index.css b/src/main/resources/static/css/index.css new file mode 100644 index 0000000..b448139 --- /dev/null +++ b/src/main/resources/static/css/index.css @@ -0,0 +1,372 @@ + +.search-bar{ + display: flex; + flex-direction: column; + align-items: center; +} +.input-box{ + display: flex; + width: 35%; +} +.search-bar input { + border: 1px solid #F80; + width: 80%; + height: 28px; + line-height: 28px; + vertical-align: top; + border-radius: .25rem 0 0 .25rem; +} + +.search-bar button { + width: 20%; + border: 1px solid #F80; + background-color: #F80; + color: #fff; + line-height: 28px; + margin-left: -6px; + border-radius: 0 .25rem .25rem 0; + height: 28px; +} + +#complete-box{ + margin-top: 28px; + position: absolute; + z-index: 99; + text-align: left; + border: 1px solid #f1f1f2; + width: 336px; + height: 120px; + background-color: #fff; +} +#complete-box div{ + padding-left: 7px; +} + +.btn { + height: 34px; + line-height: 34px; + padding: 0 12px; + font-size: 16px; + font-family: "Arial", "PingFang SC", "Microsoft Yahei", "SimSun", sans-serif; + color: #FFF; + background: #F80; + border-color: #F80; + vertical-align: top; + text-align: center; + display: inline-block; + box-sizing: content-box; + cursor: pointer; + border-radius: 3px; +} + +em { + color: red; + font-style: normal; +} + +.selected { + color: red; +} + +.filter-list { + padding: 5px 0; + background: #fff; + border-radius: 3px; + box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2); +} + +.filter-box { + display: flex; + align-content: center; + position: relative; + line-height: 24px; +} + +.f-key { + font-size: 12px; + color: #666; + width: 10%; + text-align: center; + margin: auto; + line-height: 100%; +} +.column-divider{ + width: 2px; + border-radius: 1px; + box-shadow: 1px 0 0 rgba(0,0,0,.2) inset,-1px 0 0 rgba(255,255,255,.2) inset; +} +.row-divider{ + margin: auto; + width: 98%; + border-radius: 1px; + height: 3px; + box-shadow:0 1px 0 rgba(0,0,0,.2) inset,0 -1px 0 rgba(255,255,255,.2) inset; +} +a { + text-decoration: none; + color: #999; +} + +a:hover { + color: #F80; +} + +.f-items { + width: 85%; + display: flex; + flex-wrap: wrap; + align-content: center; +} + +.f-item { + width: 80px; + line-height: 30px; + font-size: 12px; +} +.btn-arrow{ + border-radius: 3px; +} +.btn-arrow, +.btn-arrow:visited, +.btn-arrow:link, +.btn-arrow:active { + width: 46px; + height: 23px; + border: 1px solid #DDD; + background: #FFF; + line-height: 23px; + font-family: "\5b8b\4f53"; + text-align: center; + font-size: 16px; + color: #AAA; + text-decoration: none; + out-line: none +} + +.btn-arrow:hover { + background-color: #FF8800; + color: whitesmoke; +} + +.sort-item { + display: inline; + width: 50px; + float: left; + font-size: 13px; +} + +.selected-ops { + display: flex; + align-items: center; +} + +.open { + font-size: 12px; + margin-left: 10px; + line-height: 24px; + margin-bottom: 3px; +} + +.selected-op { + border: 1px solid #eee; + border-radius: 3px; + font-size: 12px; + margin-left: 10px; + line-height: 16px; + background: #fff; + padding: 0px 5px 1px; +} + +.selected-op:hover { + box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1); +} + +.selected-op span { + color: red; + cursor: pointer; +} + +.close { + margin-left: 8px; + font-size: 16px; + font-weight: 800; +} + +.top-ban { + margin-top: 20px; + display: flex; + justify-content: space-between; +} + +.top-pagination { + padding: 3px 15px; + font-size: 11px; + font-weight: 700; + line-height: 18px; + color: #999; + text-shadow: 0 1px 0 rgba(255, 255, 255, .5); + text-transform: uppercase; +} + +.top-pagination span { + margin-right: 10px; +} + + +body { + background-color: #fcfcfc; +} + +#app { + width: 100%; + display: flex; + justify-content: center; +} + +.star-name { + width: 50px; + text-align: center; + font: 12px/1.5 tahoma, arial, 'pingfang sc', 'Hiragino Sans GB', \5b8b\4f53, sans-serif; + background-color: #fe7a6b; + color: #fff; + margin-bottom: 10px; + border-radius: 3px; + padding: 2px 5px; + zoom: 1; +} +.hotel-info { + text-align: left; + width: 50%; + display: flex; + flex-direction: column; + justify-content: space-around; +} +#hotel-price { + font-weight: bold; + font-size: 24px; + color: #f60; + padding-right: 2px; + font-family: 'Helvetica Neue', 'Arial', 'PingFang SC', 'Microsoft Yahei', 'SimSun', sans-serif; +} + +.hotel-name { + font-size: 18px; + color: #333; + font-weight: bold; + font-family: "Helvetica Neue", "Arial", "PingFang SC", "Microsoft Yahei", "SimSun", sans-serif; + line-height: 26px; +} + +.hotel-score { + font-size: 14px; + color: #365873; + font-weight: 700; + font: arial, 'pingfang sc', 'Hiragino Sans GB', \5b8b\4f53, sans-serif +} + +.hotel-list { + display: flex; + flex-direction: column; + width: 640px; + height: 100%; +} +.hotel-list span{ + font-size: 12px;font: arial,'pingfang sc','Hiragino Sans GB',\5b8b\4f53,sans-serif +} +.order { + color: #2bba9e; cursor: default; font: 12px/1.5 tahoma,arial,'pingfang sc','Hiragino Sans GB',\5b8b\4f53,sans-serif; +} +.address { + margin-bottom: 10px;font: 12px/1.5 tahoma,arial,'pingfang sc','Hiragino Sans GB',\5b8b\4f53,sans-serif; +} + +.hotel-box { + padding: 20px; + margin-bottom: 10px; + position: relative; + background: #fff; + border-radius: 5px; + box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2); +} + +.hotel-box:hover { + box-shadow: 0 1px 3px 1px rgba(245, 131, 8, 0.3); +} + +.fixed-map { + position: fixed; + top: 0; +} + +.map-box { + background-color: #fff; + color: #666; + width: 360px; + height: 400px; + padding: 5px; + border-radius: 5px; + box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2); +} + +.map-head { + line-height: 35px; +} + +.amap { + width: 100%; + height: 350px; +} + +.marker-label{ + font-size: 12px; +} +.marker { + position: absolute; + top: -25px; + right: -100px; + color: #fff; + padding: 4px 10px; + box-shadow: 1px 1px 1px rgba(10, 10, 10, .2); + white-space: nowrap; + font-size: 12px; + font-family: ""; + background-color: #25A5F7; + border-radius: 3px; +} + +em{ + color: red; +} +.ad-mark { + position: absolute; + left: 5px; + top: 0; +} +.ad-mark img{ + filter: drop-shadow(1px 2px 1px rgba(0,0,0,.3)) +} + +.map-geo{ + position: relative; + bottom: 35px; + left: 310px; + width: 32px; + height: 32px; + border-radius: 50%; + cursor: pointer; + background-image: url(https://a.amap.com/jsapi/static/image/plugin/locate.png); + background-size: 24px; + background-repeat: no-repeat; + background-position: 50%; + background-color: #fff; + box-shadow: 0 0 5px silver; +} + +.map-geo img { + height: 24px; + width: 24px; + background-color: #fff; + margin: 4px; + border-radius: 50%; + -webkit-animation: rotate 2s linear infinite; +} \ No newline at end of file diff --git a/src/main/resources/static/img/ad.png b/src/main/resources/static/img/ad.png new file mode 100644 index 0000000..8250ec8 Binary files /dev/null and b/src/main/resources/static/img/ad.png differ diff --git a/src/main/resources/static/img/ad2.png b/src/main/resources/static/img/ad2.png new file mode 100644 index 0000000..60ebccf Binary files /dev/null and b/src/main/resources/static/img/ad2.png differ diff --git a/src/main/resources/static/img/heima.png b/src/main/resources/static/img/heima.png new file mode 100644 index 0000000..f386f67 Binary files /dev/null and b/src/main/resources/static/img/heima.png differ diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html new file mode 100644 index 0000000..5ba15d0 --- /dev/null +++ b/src/main/resources/static/index.html @@ -0,0 +1,540 @@ + + + + + + 黑马旅游 + + + + + + + +

+
+ + + + +
+
全部结果:
+
+ {{filterNames[k]}}:{{v}} × +
+
+ +
+
+
+
{{filterNames[k]}}
+
+ +
+
+
+ +
+ +
+ +
+
+ {{item.text}} + | +
+
+ + +
+ {{total}} 家酒店 + {{params.page}}/{{totalPage}} + < + > +
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+
+
{{hotel.starName}}
+
+ 位于 {{hotel.business}} 周边,{{hotel.address}} +
+
1分钟前有人预订了该酒店
+
距离您 {{hotel.distance.toFixed(2)}} km
+
+
+
+ {{hotel.price}} +
+
立即预定
+
+ {{hotel.score / 10}}分 /5分 +
+
+
+
+
+
地图预览
+
+
+ +
+
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/static/js/amap.min.js b/src/main/resources/static/js/amap.min.js new file mode 100644 index 0000000..f3c85c2 --- /dev/null +++ b/src/main/resources/static/js/amap.min.js @@ -0,0 +1,2 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("VueAMap",["vue"],e):"object"==typeof exports?exports.VueAMap=e(require("vue")):t.VueAMap=e(t.Vue)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=64)}([function(t,e,n){"use strict";var r=n(45),o=n.n(r),i=n(6),a=n(50),s=n(13),u=n(49),c=n(27);e.a={data:function(){return{unwatchFns:[]}},mounted:function(){var t=this;s.b&&s.b.load().then(function(){t.__contextReady&&t.__contextReady.call(t,t.convertProps())}),this.$amap=this.$amap||this.$parent.$amap,this.$amap?this.register():this.$on(u.a.AMAP_READY_EVENT,function(e){t.$amap=e,t.register()})},destroyed:function(){this.unregisterEvents(),this.$amapComponent&&(this.$amapComponent.setMap&&this.$amapComponent.setMap(null),this.$amapComponent.close&&this.$amapComponent.close(),this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.unwatchFns.forEach(function(t){return t()}),this.unwatchFns=[])},methods:{getHandlerFun:function(t){return this.handlers&&this.handlers[t]?this.handlers[t]:this.$amapComponent["set"+o()(t)]||this.$amapComponent.setOptions},convertProps:function(){var t=this,e={};this.$amap&&(e.map=this.$amap);var n=this.$options.propsData,r=void 0===n?{}:n,o=this.propsRedirect;return Object.keys(r).reduce(function(n,i){var a=i,s=t.convertSignalProp(a,r[a]);return void 0===s?n:(o&&o[i]&&(a=o[a]),e[a]=s,n)},e)},convertSignalProp:function(t,e){var n="",r="";if(this.amapTagName)try{var a=o()(this.amapTagName).replace(/^El/,"");r=(c.default[a]||"").props[t].$type,n=i.a[r]}catch(t){}if(r&&n)return n(e);if(this.converters&&this.converters[t])return this.converters[t].call(this,e);var s=i.a[t];return s?s(e):e},registerEvents:function(){if(this.setEditorEvents&&this.setEditorEvents(),this.$options.propsData){if(this.$options.propsData.events)for(var t in this.events)a.a.addListener(this.$amapComponent,t,this.events[t]);if(this.$options.propsData.onceEvents)for(var e in this.onceEvents)a.a.addListenerOnce(this.$amapComponent,e,this.onceEvents[e])}},unregisterEvents:function(){a.a.clearListeners(this.$amapComponent)},setPropWatchers:function(){var t=this,e=this.propsRedirect,n=this.$options.propsData,r=void 0===n?{}:n;Object.keys(r).forEach(function(n){var r=n;e&&e[n]&&(r=e[n]);var o=t.getHandlerFun(r);if(o||"events"===n){var i=t.$watch(n,function(e){if("events"===n)return t.unregisterEvents(),void t.registerEvents();if(o&&o===t.$amapComponent.setOptions){var i;return o.call(t.$amapComponent,(i={},i[r]=t.convertSignalProp(n,e),i))}o.call(t.$amapComponent,t.convertSignalProp(n,e))});t.unwatchFns.push(i)}})},registerToManager:function(){var t=this.amapManager||this.$parent.amapManager;t&&void 0!==this.vid&&t.setComponent(this.vid,this.$amapComponent)},initProps:function(){var t=this;["editable","visible"].forEach(function(e){if(void 0!==t[e]){var n=t.getHandlerFun(e);n&&n.call(t.$amapComponent,t.convertSignalProp(e,t[e]))}})},printReactiveProp:function(){var t=this;Object.keys(this._props).forEach(function(e){t.$amapComponent["set"+o()(e)]&&console.log(e)})},register:function(){var t=this,e=this.__initComponent&&this.__initComponent(this.convertProps());e&&e.then?e.then(function(e){return t.registerRest(e)}):this.registerRest(e)},registerRest:function(t){!this.$amapComponent&&t&&(this.$amapComponent=t),this.registerEvents(),this.initProps(),this.setPropWatchers(),this.registerToManager(),this.events&&this.events.init&&this.events.init(this.$amapComponent,this.$amap,this.amapManager||this.$parent.amapManager)},$$getInstance:function(){return this.$amapComponent}}}},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var p;if(a?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=p):o&&(p=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),p)if(c.functional){c._injectStyles=p;var f=c.render;c.render=function(t,e){return p.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,p):[p]}return{exports:t,options:c}}e.a=r},function(t,e,n){var r=n(30)("wks"),o=n(14),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";function r(t){return new AMap.Pixel(t[0],t[1])}function o(t){return new AMap.Size(t[0],t[1])}function i(t){return Array.isArray(t)?t:[t.getX(),t.getY()]}function a(t){return new AMap.LngLat(t[0],t[1])}function s(t){if(t)return Array.isArray(t)?t.slice():[t.getLng(),t.getLat()]}function u(t){return new AMap.Bounds(a(t[0]),a(t[1]))}e.e=r,e.c=i,e.d=a,e.b=s,n.d(e,"a",function(){return c});var c={position:a,offset:r,bounds:u,LngLat:a,Pixel:r,Size:o,Bounds:u}},function(t,e,n){var r=n(3),o=n(8),i=n(11),a=n(14)("src"),s=Function.toString,u=(""+s).split("toString");n(16).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(9),o=n(20);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(10),o=n(31),i=n(33),a=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports={}},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var r=n(97),o=n(19),i=n.n(o),a=null,s=function(t){i.a.prototype.$isServer||a||(a||(a=new r.a(t)),a.load())}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(71);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(75),o=n(22);t.exports=function(t){return r(o(t))}},function(e,n){e.exports=t},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(70),o=n(34),i=n(7),a=n(8),s=n(12),u=n(72),c=n(25),p=n(79),f=n(2)("iterator"),l=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,m,y){u(n,e,h);var g,b,_,x=function(t){if(!l&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",w="values"==v,$=!1,M=t.prototype,E=M[f]||M["@@iterator"]||v&&M[v],A=E||x(v),O=v?w?x("entries"):A:void 0,S="Array"==e?M.entries||E:E;if(S&&(_=p(S.call(new t)))!==Object.prototype&&_.next&&(c(_,C,!0),r||"function"==typeof _[f]||a(_,f,d)),w&&E&&"values"!==E.name&&($=!0,A=function(){return E.call(this)}),r&&!y||!l&&!$&&M[f]||a(M,f,A),s[e]=A,s[C]=d,v)if(g={values:w?A:x("values"),keys:m?A:x("keys"),entries:O},y)for(b in g)b in M||i(M,b,g[b]);else o(o.P+o.F*(l||$),e,g);return g}},function(t,e,n){var r=n(30)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(9).f,o=n(11),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(50);e.a={methods:{setEditorEvents:function(){var t=this;if(this.$amapComponent.editor&&this.events){var e=["addnode","adjust","removenode","end","move"],n={};Object.keys(this.events).forEach(function(r){-1!==e.indexOf(r)&&(n[r]=t.events[r])}),Object.keys(n).forEach(function(e){r.a.addListener(t.$amapComponent.editor,e,n[e])})}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(n(65),n(45)),o=n.n(r),i=n(13),a=n(100),s=n(106),u=n(107),c=n(111),p=n(113),f=n(115),l=n(116),d=n(118),h=n(120),v=n(122),m=n(124),y=n(126),g=n(128),b=n(130),_=n(131);n.d(e,"AMapManager",function(){return b.a}),n.d(e,"initAMapApiLoader",function(){return i.a}),n.d(e,"createCustomComponent",function(){return _.a}),n.d(e,"lazyAMapApiLoaderInstance",function(){return i.b});var x=[a.a,s.a,u.a,c.a,p.a,f.a,d.a,l.a,h.a,v.a,m.a,y.a,g.a],C={initAMapApiLoader:i.a,AMapManager:b.a};C.install=function(t){C.installed||(t.config.optionMergeStrategies.deferredReady=t.config.optionMergeStrategies.created,x.map(function(e){t.component(e.name,e),C[o()(e.name).replace(/^El/,"")]=e}))};"undefined"!=typeof window&&window.Vue&&function t(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.installed||C.install(e)}(window.Vue),e.default=C},function(t,e,n){var r=n(29),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(3),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){t.exports=!n(5)&&!n(15)(function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),o=n(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(3),o=n(16),i=n(8),a=n(7),s=n(17),u=function(t,e,n){var c,p,f,l,d=t&u.F,h=t&u.G,v=t&u.S,m=t&u.P,y=t&u.B,g=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=h?o:o[e]||(o[e]={}),_=b.prototype||(b.prototype={});h&&(n=e);for(c in n)p=!d&&g&&void 0!==g[c],f=(p?g:n)[c],l=y&&p?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,g&&a(g,c,f,t&u.U),b[c]!=f&&i(b,c,l),m&&_[c]!=f&&(_[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(10),o=n(73),i=n(38),a=n(24)("IE_PROTO"),s=function(){},u=function(){var t,e=n(32)("iframe"),r=i.length;for(e.style.display="none",n(78).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(" + + + + + + + + + \ No newline at end of file diff --git a/target/classes/static/js/amap.min.js b/target/classes/static/js/amap.min.js new file mode 100644 index 0000000..f3c85c2 --- /dev/null +++ b/target/classes/static/js/amap.min.js @@ -0,0 +1,2 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("VueAMap",["vue"],e):"object"==typeof exports?exports.VueAMap=e(require("vue")):t.VueAMap=e(t.Vue)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=64)}([function(t,e,n){"use strict";var r=n(45),o=n.n(r),i=n(6),a=n(50),s=n(13),u=n(49),c=n(27);e.a={data:function(){return{unwatchFns:[]}},mounted:function(){var t=this;s.b&&s.b.load().then(function(){t.__contextReady&&t.__contextReady.call(t,t.convertProps())}),this.$amap=this.$amap||this.$parent.$amap,this.$amap?this.register():this.$on(u.a.AMAP_READY_EVENT,function(e){t.$amap=e,t.register()})},destroyed:function(){this.unregisterEvents(),this.$amapComponent&&(this.$amapComponent.setMap&&this.$amapComponent.setMap(null),this.$amapComponent.close&&this.$amapComponent.close(),this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.unwatchFns.forEach(function(t){return t()}),this.unwatchFns=[])},methods:{getHandlerFun:function(t){return this.handlers&&this.handlers[t]?this.handlers[t]:this.$amapComponent["set"+o()(t)]||this.$amapComponent.setOptions},convertProps:function(){var t=this,e={};this.$amap&&(e.map=this.$amap);var n=this.$options.propsData,r=void 0===n?{}:n,o=this.propsRedirect;return Object.keys(r).reduce(function(n,i){var a=i,s=t.convertSignalProp(a,r[a]);return void 0===s?n:(o&&o[i]&&(a=o[a]),e[a]=s,n)},e)},convertSignalProp:function(t,e){var n="",r="";if(this.amapTagName)try{var a=o()(this.amapTagName).replace(/^El/,"");r=(c.default[a]||"").props[t].$type,n=i.a[r]}catch(t){}if(r&&n)return n(e);if(this.converters&&this.converters[t])return this.converters[t].call(this,e);var s=i.a[t];return s?s(e):e},registerEvents:function(){if(this.setEditorEvents&&this.setEditorEvents(),this.$options.propsData){if(this.$options.propsData.events)for(var t in this.events)a.a.addListener(this.$amapComponent,t,this.events[t]);if(this.$options.propsData.onceEvents)for(var e in this.onceEvents)a.a.addListenerOnce(this.$amapComponent,e,this.onceEvents[e])}},unregisterEvents:function(){a.a.clearListeners(this.$amapComponent)},setPropWatchers:function(){var t=this,e=this.propsRedirect,n=this.$options.propsData,r=void 0===n?{}:n;Object.keys(r).forEach(function(n){var r=n;e&&e[n]&&(r=e[n]);var o=t.getHandlerFun(r);if(o||"events"===n){var i=t.$watch(n,function(e){if("events"===n)return t.unregisterEvents(),void t.registerEvents();if(o&&o===t.$amapComponent.setOptions){var i;return o.call(t.$amapComponent,(i={},i[r]=t.convertSignalProp(n,e),i))}o.call(t.$amapComponent,t.convertSignalProp(n,e))});t.unwatchFns.push(i)}})},registerToManager:function(){var t=this.amapManager||this.$parent.amapManager;t&&void 0!==this.vid&&t.setComponent(this.vid,this.$amapComponent)},initProps:function(){var t=this;["editable","visible"].forEach(function(e){if(void 0!==t[e]){var n=t.getHandlerFun(e);n&&n.call(t.$amapComponent,t.convertSignalProp(e,t[e]))}})},printReactiveProp:function(){var t=this;Object.keys(this._props).forEach(function(e){t.$amapComponent["set"+o()(e)]&&console.log(e)})},register:function(){var t=this,e=this.__initComponent&&this.__initComponent(this.convertProps());e&&e.then?e.then(function(e){return t.registerRest(e)}):this.registerRest(e)},registerRest:function(t){!this.$amapComponent&&t&&(this.$amapComponent=t),this.registerEvents(),this.initProps(),this.setPropWatchers(),this.registerToManager(),this.events&&this.events.init&&this.events.init(this.$amapComponent,this.$amap,this.amapManager||this.$parent.amapManager)},$$getInstance:function(){return this.$amapComponent}}}},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var p;if(a?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=p):o&&(p=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),p)if(c.functional){c._injectStyles=p;var f=c.render;c.render=function(t,e){return p.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,p):[p]}return{exports:t,options:c}}e.a=r},function(t,e,n){var r=n(30)("wks"),o=n(14),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";function r(t){return new AMap.Pixel(t[0],t[1])}function o(t){return new AMap.Size(t[0],t[1])}function i(t){return Array.isArray(t)?t:[t.getX(),t.getY()]}function a(t){return new AMap.LngLat(t[0],t[1])}function s(t){if(t)return Array.isArray(t)?t.slice():[t.getLng(),t.getLat()]}function u(t){return new AMap.Bounds(a(t[0]),a(t[1]))}e.e=r,e.c=i,e.d=a,e.b=s,n.d(e,"a",function(){return c});var c={position:a,offset:r,bounds:u,LngLat:a,Pixel:r,Size:o,Bounds:u}},function(t,e,n){var r=n(3),o=n(8),i=n(11),a=n(14)("src"),s=Function.toString,u=(""+s).split("toString");n(16).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(9),o=n(20);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(10),o=n(31),i=n(33),a=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports={}},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var r=n(97),o=n(19),i=n.n(o),a=null,s=function(t){i.a.prototype.$isServer||a||(a||(a=new r.a(t)),a.load())}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(71);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(75),o=n(22);t.exports=function(t){return r(o(t))}},function(e,n){e.exports=t},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(70),o=n(34),i=n(7),a=n(8),s=n(12),u=n(72),c=n(25),p=n(79),f=n(2)("iterator"),l=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,m,y){u(n,e,h);var g,b,_,x=function(t){if(!l&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",w="values"==v,$=!1,M=t.prototype,E=M[f]||M["@@iterator"]||v&&M[v],A=E||x(v),O=v?w?x("entries"):A:void 0,S="Array"==e?M.entries||E:E;if(S&&(_=p(S.call(new t)))!==Object.prototype&&_.next&&(c(_,C,!0),r||"function"==typeof _[f]||a(_,f,d)),w&&E&&"values"!==E.name&&($=!0,A=function(){return E.call(this)}),r&&!y||!l&&!$&&M[f]||a(M,f,A),s[e]=A,s[C]=d,v)if(g={values:w?A:x("values"),keys:m?A:x("keys"),entries:O},y)for(b in g)b in M||i(M,b,g[b]);else o(o.P+o.F*(l||$),e,g);return g}},function(t,e,n){var r=n(30)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(9).f,o=n(11),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(50);e.a={methods:{setEditorEvents:function(){var t=this;if(this.$amapComponent.editor&&this.events){var e=["addnode","adjust","removenode","end","move"],n={};Object.keys(this.events).forEach(function(r){-1!==e.indexOf(r)&&(n[r]=t.events[r])}),Object.keys(n).forEach(function(e){r.a.addListener(t.$amapComponent.editor,e,n[e])})}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(n(65),n(45)),o=n.n(r),i=n(13),a=n(100),s=n(106),u=n(107),c=n(111),p=n(113),f=n(115),l=n(116),d=n(118),h=n(120),v=n(122),m=n(124),y=n(126),g=n(128),b=n(130),_=n(131);n.d(e,"AMapManager",function(){return b.a}),n.d(e,"initAMapApiLoader",function(){return i.a}),n.d(e,"createCustomComponent",function(){return _.a}),n.d(e,"lazyAMapApiLoaderInstance",function(){return i.b});var x=[a.a,s.a,u.a,c.a,p.a,f.a,d.a,l.a,h.a,v.a,m.a,y.a,g.a],C={initAMapApiLoader:i.a,AMapManager:b.a};C.install=function(t){C.installed||(t.config.optionMergeStrategies.deferredReady=t.config.optionMergeStrategies.created,x.map(function(e){t.component(e.name,e),C[o()(e.name).replace(/^El/,"")]=e}))};"undefined"!=typeof window&&window.Vue&&function t(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.installed||C.install(e)}(window.Vue),e.default=C},function(t,e,n){var r=n(29),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(3),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){t.exports=!n(5)&&!n(15)(function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),o=n(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(3),o=n(16),i=n(8),a=n(7),s=n(17),u=function(t,e,n){var c,p,f,l,d=t&u.F,h=t&u.G,v=t&u.S,m=t&u.P,y=t&u.B,g=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=h?o:o[e]||(o[e]={}),_=b.prototype||(b.prototype={});h&&(n=e);for(c in n)p=!d&&g&&void 0!==g[c],f=(p?g:n)[c],l=y&&p?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,g&&a(g,c,f,t&u.U),b[c]!=f&&i(b,c,l),m&&_[c]!=f&&(_[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(10),o=n(73),i=n(38),a=n(24)("IE_PROTO"),s=function(){},u=function(){var t,e=n(32)("iframe"),r=i.length;for(e.style.display="none",n(78).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("