From fcf363ae195b3de0243a0fb5611e5095deecf5d9 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Thu, 27 May 2021 09:27:47 +0800
Subject: [PATCH] 小程序初版
---
/dev/null | 95 -----------------------------------------------
manifest.json | 2
2 files changed, 1 insertions(+), 96 deletions(-)
diff --git a/manifest.json b/manifest.json
index 06207de..0cc74f8 100644
--- a/manifest.json
+++ b/manifest.json
@@ -50,7 +50,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
- "appid" : "wx8d8a6035fb1fb858",
+ "appid" : "wx739eb6d9c0fbc711",
"setting" : {
"urlCheck" : false,
"minified" : true,
diff --git a/xcxjingqingmap/css/body.css b/xcxjingqingmap/css/body.css
deleted file mode 100644
index a332c7b..0000000
--- a/xcxjingqingmap/css/body.css
+++ /dev/null
@@ -1,243 +0,0 @@
-body {
- padding: 0;
- margin: 0;
-}
-
-html, body, #mapVue {
- width: 100%;
- height: 100%;
-}
-
-#map {
- width: 100%;
- height: 50%;
- z-index: 1;
-}
-
-#mapVue {
- overflow: hidden;
- /* border: solid 1px springgreen; */
-}
-
-.dingwei {
- position: fixed;
- width: 38px;
- height: 38px;
- top: 100px;
- right: 0;
- z-index: 100;
- background-color: #fff;
- border-radius: 20px;
- opacity: 0.8;
- border: 1px solid gray;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-#seedata {
- position: fixed;
- bottom: 0;
- width: 100%;
- height: 70%;
- z-index: 400;
- background-color: #fff;
- /* opacity: 0.9; */
- display: flex;
- flex-direction: column;
- border-radius: 60px 60px 0 0;
-}
-
-.title {
- width: 100%;
- height: 14%;
- /* border: 1px solid springgreen; */
- border-radius: 60px 60px 0 0;
- position: relative;
- /* top: -3%; */
- background-color: #fff;
- z-index: 101;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
-}
-
-.title-span {
- height: 15%;
-}
-
-/* .title::after {
- content: '';
- display: block;
- width: 40px;
- height: 40px;
- border: springgreen solid 1px;
-} */
-
-.main {
- width: 95%;
- margin: 0 auto;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- border-top: 1px solid rgb(138, 138, 138);
-}
-
-.f-m-once {
- /* border: 1px solid rgb(194, 142, 0); */
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 8px 0 8px 0
-}
-
-.f-m-o-title {
- display: flex;
- align-items: center;
- width: 40%;
-}
-
-.f-m-o-t-img {
- width: 30px;
- height: 30px;
- padding-right: 10px;
- position: relative;
- left: 20rpx;
-}
-
-.f-m-o-center {
- width: 60%;
-}
-
-.el-divider {
- margin: 0 auto;
- width: 90%;
-}
-
-.but {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-around;
- padding-top: 5px;
-}
-
-.buta {
- /* border: 1px solid #4D7CEE; */
-}
-
-.shipingPopup {
- position: fixed;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- background-color: rgba(0, 0, 0, 0.5);
- z-index: 200;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.s-p-main {
- width: 90%;
- height: 90%;
- /* background-color: #fff; */
-}
-
-.s-p-gaunbi {
- position: relative;
- left: 90%;
- width: 50px;
- height: 50px;
-}
-
-/* video::-webkit-media-controls-timeline {
- display: none;
-} */
-
-.butb {
- width: 80px;
- height: 80px;
- border: 1px solid rgb(46, 118, 228);
- border-radius: 40px;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #fff;
- background-image: linear-gradient(to bottom, #3CA7F4, #4D7CEE);
-}
-
-/* .resultFeedback {
- position: fixed;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- background-color: rgba(0, 0, 0, 0.5);
- z-index: 201;
- display: flex;
- align-items: center;
- justify-content: center;
-} */
-
-/* .b-r-main {
- width: 90%;
- height: 90%;
-}
-
-.b-r-gaunbi {
- position: relative;
- left: 90%;
- width: 50px;
- height: 50px;
-}
-
-.b-r-main-in {
- width: 100%;
- height: auto;
- padding-bottom: 20px;
- background-color: #fff;
- border-radius: 10px;
-}
-
-.b-r-m-i-once {
- padding: 10px 0 10px 10px;
- display: flex;
- justify-content: space-around;
-}
-
-.b-r-m-i-o-title {
- width: 30%;
- position: relative;
- top: 10px;
-}
-
-.b-r-m-i-o-center {
- width: 70%;
-}
-.b-r-i-o-ups{
- /* align-items: center; */
-}
-.b-r-m-i-o-c-img {
- width: 50px;
- height: 50px;
-}
-.b-r-m-but{
- position: relative;
- left: calc(50% - 40px);
-} */
-.butc {
- /* border: 1px solid #4D7CEE; */
-}
-
-.b-b-img {
- width: 40px;
- height: 40px;
- display: block;
- /* border: 1px solid #4D7CEE; */
-}
\ No newline at end of file
diff --git a/xcxjingqingmap/css/elementUI.css b/xcxjingqingmap/css/elementUI.css
deleted file mode 100644
index f3a3ab7..0000000
--- a/xcxjingqingmap/css/elementUI.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";.el-pagination--small .arrow.disabled,.el-table .hidden-columns,.el-table td.is-hidden>*,.el-table th.is-hidden>*,.el-table--hidden{visibility:hidden}.el-input__suffix,.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-dropdown .el-dropdown-selfdefine:focus:active,.el-dropdown .el-dropdown-selfdefine:focus:not(.focusing),.el-message__closeBtn:focus,.el-message__content:focus,.el-popover:focus,.el-popover:focus:active,.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing),.el-rate:active,.el-rate:focus,.el-tooltip:focus:hover,.el-tooltip:focus:not(.focusing),.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}@font-face{font-family:element-icons;src:url(fonts/element-icons.woff) format("woff"),url(fonts/element-icons.ttf) format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class*=" el-icon-"],[class^=el-icon-]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-ice-cream-round:before{content:"\e6a0"}.el-icon-ice-cream-square:before{content:"\e6a3"}.el-icon-lollipop:before{content:"\e6a4"}.el-icon-potato-strips:before{content:"\e6a5"}.el-icon-milk-tea:before{content:"\e6a6"}.el-icon-ice-drink:before{content:"\e6a7"}.el-icon-ice-tea:before{content:"\e6a9"}.el-icon-coffee:before{content:"\e6aa"}.el-icon-orange:before{content:"\e6ab"}.el-icon-pear:before{content:"\e6ac"}.el-icon-apple:before{content:"\e6ad"}.el-icon-cherry:before{content:"\e6ae"}.el-icon-watermelon:before{content:"\e6af"}.el-icon-grape:before{content:"\e6b0"}.el-icon-refrigerator:before{content:"\e6b1"}.el-icon-goblet-square-full:before{content:"\e6b2"}.el-icon-goblet-square:before{content:"\e6b3"}.el-icon-goblet-full:before{content:"\e6b4"}.el-icon-goblet:before{content:"\e6b5"}.el-icon-cold-drink:before{content:"\e6b6"}.el-icon-coffee-cup:before{content:"\e6b8"}.el-icon-water-cup:before{content:"\e6b9"}.el-icon-hot-water:before{content:"\e6ba"}.el-icon-ice-cream:before{content:"\e6bb"}.el-icon-dessert:before{content:"\e6bc"}.el-icon-sugar:before{content:"\e6bd"}.el-icon-tableware:before{content:"\e6be"}.el-icon-burger:before{content:"\e6bf"}.el-icon-knife-fork:before{content:"\e6c1"}.el-icon-fork-spoon:before{content:"\e6c2"}.el-icon-chicken:before{content:"\e6c3"}.el-icon-food:before{content:"\e6c4"}.el-icon-dish-1:before{content:"\e6c5"}.el-icon-dish:before{content:"\e6c6"}.el-icon-moon-night:before{content:"\e6ee"}.el-icon-moon:before{content:"\e6f0"}.el-icon-cloudy-and-sunny:before{content:"\e6f1"}.el-icon-partly-cloudy:before{content:"\e6f2"}.el-icon-cloudy:before{content:"\e6f3"}.el-icon-sunny:before{content:"\e6f6"}.el-icon-sunset:before{content:"\e6f7"}.el-icon-sunrise-1:before{content:"\e6f8"}.el-icon-sunrise:before{content:"\e6f9"}.el-icon-heavy-rain:before{content:"\e6fa"}.el-icon-lightning:before{content:"\e6fb"}.el-icon-light-rain:before{content:"\e6fc"}.el-icon-wind-power:before{content:"\e6fd"}.el-icon-baseball:before{content:"\e712"}.el-icon-soccer:before{content:"\e713"}.el-icon-football:before{content:"\e715"}.el-icon-basketball:before{content:"\e716"}.el-icon-ship:before{content:"\e73f"}.el-icon-truck:before{content:"\e740"}.el-icon-bicycle:before{content:"\e741"}.el-icon-mobile-phone:before{content:"\e6d3"}.el-icon-service:before{content:"\e6d4"}.el-icon-key:before{content:"\e6e2"}.el-icon-unlock:before{content:"\e6e4"}.el-icon-lock:before{content:"\e6e5"}.el-icon-watch:before{content:"\e6fe"}.el-icon-watch-1:before{content:"\e6ff"}.el-icon-timer:before{content:"\e702"}.el-icon-alarm-clock:before{content:"\e703"}.el-icon-map-location:before{content:"\e704"}.el-icon-delete-location:before{content:"\e705"}.el-icon-add-location:before{content:"\e706"}.el-icon-location-information:before{content:"\e707"}.el-icon-location-outline:before{content:"\e708"}.el-icon-location:before{content:"\e79e"}.el-icon-place:before{content:"\e709"}.el-icon-discover:before{content:"\e70a"}.el-icon-first-aid-kit:before{content:"\e70b"}.el-icon-trophy-1:before{content:"\e70c"}.el-icon-trophy:before{content:"\e70d"}.el-icon-medal:before{content:"\e70e"}.el-icon-medal-1:before{content:"\e70f"}.el-icon-stopwatch:before{content:"\e710"}.el-icon-mic:before{content:"\e711"}.el-icon-copy-document:before{content:"\e718"}.el-icon-full-screen:before{content:"\e719"}.el-icon-switch-button:before{content:"\e71b"}.el-icon-aim:before{content:"\e71c"}.el-icon-crop:before{content:"\e71d"}.el-icon-odometer:before{content:"\e71e"}.el-icon-time:before{content:"\e71f"}.el-icon-bangzhu:before{content:"\e724"}.el-icon-close-notification:before{content:"\e726"}.el-icon-microphone:before{content:"\e727"}.el-icon-turn-off-microphone:before{content:"\e728"}.el-icon-position:before{content:"\e729"}.el-icon-postcard:before{content:"\e72a"}.el-icon-message:before{content:"\e72b"}.el-icon-chat-line-square:before{content:"\e72d"}.el-icon-chat-dot-square:before{content:"\e72e"}.el-icon-chat-dot-round:before{content:"\e72f"}.el-icon-chat-square:before{content:"\e730"}.el-icon-chat-line-round:before{content:"\e731"}.el-icon-chat-round:before{content:"\e732"}.el-icon-set-up:before{content:"\e733"}.el-icon-turn-off:before{content:"\e734"}.el-icon-open:before{content:"\e735"}.el-icon-connection:before{content:"\e736"}.el-icon-link:before{content:"\e737"}.el-icon-cpu:before{content:"\e738"}.el-icon-thumb:before{content:"\e739"}.el-icon-female:before{content:"\e73a"}.el-icon-male:before{content:"\e73b"}.el-icon-guide:before{content:"\e73c"}.el-icon-news:before{content:"\e73e"}.el-icon-price-tag:before{content:"\e744"}.el-icon-discount:before{content:"\e745"}.el-icon-wallet:before{content:"\e747"}.el-icon-coin:before{content:"\e748"}.el-icon-money:before{content:"\e749"}.el-icon-bank-card:before{content:"\e74a"}.el-icon-box:before{content:"\e74b"}.el-icon-present:before{content:"\e74c"}.el-icon-sell:before{content:"\e6d5"}.el-icon-sold-out:before{content:"\e6d6"}.el-icon-shopping-bag-2:before{content:"\e74d"}.el-icon-shopping-bag-1:before{content:"\e74e"}.el-icon-shopping-cart-2:before{content:"\e74f"}.el-icon-shopping-cart-1:before{content:"\e750"}.el-icon-shopping-cart-full:before{content:"\e751"}.el-icon-smoking:before{content:"\e752"}.el-icon-no-smoking:before{content:"\e753"}.el-icon-house:before{content:"\e754"}.el-icon-table-lamp:before{content:"\e755"}.el-icon-school:before{content:"\e756"}.el-icon-office-building:before{content:"\e757"}.el-icon-toilet-paper:before{content:"\e758"}.el-icon-notebook-2:before{content:"\e759"}.el-icon-notebook-1:before{content:"\e75a"}.el-icon-files:before{content:"\e75b"}.el-icon-collection:before{content:"\e75c"}.el-icon-receiving:before{content:"\e75d"}.el-icon-suitcase-1:before{content:"\e760"}.el-icon-suitcase:before{content:"\e761"}.el-icon-film:before{content:"\e763"}.el-icon-collection-tag:before{content:"\e765"}.el-icon-data-analysis:before{content:"\e766"}.el-icon-pie-chart:before{content:"\e767"}.el-icon-data-board:before{content:"\e768"}.el-icon-data-line:before{content:"\e76d"}.el-icon-reading:before{content:"\e769"}.el-icon-magic-stick:before{content:"\e76a"}.el-icon-coordinate:before{content:"\e76b"}.el-icon-mouse:before{content:"\e76c"}.el-icon-brush:before{content:"\e76e"}.el-icon-headset:before{content:"\e76f"}.el-icon-umbrella:before{content:"\e770"}.el-icon-scissors:before{content:"\e771"}.el-icon-mobile:before{content:"\e773"}.el-icon-attract:before{content:"\e774"}.el-icon-monitor:before{content:"\e775"}.el-icon-search:before{content:"\e778"}.el-icon-takeaway-box:before{content:"\e77a"}.el-icon-paperclip:before{content:"\e77d"}.el-icon-printer:before{content:"\e77e"}.el-icon-document-add:before{content:"\e782"}.el-icon-document:before{content:"\e785"}.el-icon-document-checked:before{content:"\e786"}.el-icon-document-copy:before{content:"\e787"}.el-icon-document-delete:before{content:"\e788"}.el-icon-document-remove:before{content:"\e789"}.el-icon-tickets:before{content:"\e78b"}.el-icon-folder-checked:before{content:"\e77f"}.el-icon-folder-delete:before{content:"\e780"}.el-icon-folder-remove:before{content:"\e781"}.el-icon-folder-add:before{content:"\e783"}.el-icon-folder-opened:before{content:"\e784"}.el-icon-folder:before{content:"\e78a"}.el-icon-edit-outline:before{content:"\e764"}.el-icon-edit:before{content:"\e78c"}.el-icon-date:before{content:"\e78e"}.el-icon-c-scale-to-original:before{content:"\e7c6"}.el-icon-view:before{content:"\e6ce"}.el-icon-loading:before{content:"\e6cf"}.el-icon-rank:before{content:"\e6d1"}.el-icon-sort-down:before{content:"\e7c4"}.el-icon-sort-up:before{content:"\e7c5"}.el-icon-sort:before{content:"\e6d2"}.el-icon-finished:before{content:"\e6cd"}.el-icon-refresh-left:before{content:"\e6c7"}.el-icon-refresh-right:before{content:"\e6c8"}.el-icon-refresh:before{content:"\e6d0"}.el-icon-video-play:before{content:"\e7c0"}.el-icon-video-pause:before{content:"\e7c1"}.el-icon-d-arrow-right:before{content:"\e6dc"}.el-icon-d-arrow-left:before{content:"\e6dd"}.el-icon-arrow-up:before{content:"\e6e1"}.el-icon-arrow-down:before{content:"\e6df"}.el-icon-arrow-right:before{content:"\e6e0"}.el-icon-arrow-left:before{content:"\e6de"}.el-icon-top-right:before{content:"\e6e7"}.el-icon-top-left:before{content:"\e6e8"}.el-icon-top:before{content:"\e6e6"}.el-icon-bottom:before{content:"\e6eb"}.el-icon-right:before{content:"\e6e9"}.el-icon-back:before{content:"\e6ea"}.el-icon-bottom-right:before{content:"\e6ec"}.el-icon-bottom-left:before{content:"\e6ed"}.el-icon-caret-top:before{content:"\e78f"}.el-icon-caret-bottom:before{content:"\e790"}.el-icon-caret-right:before{content:"\e791"}.el-icon-caret-left:before{content:"\e792"}.el-icon-d-caret:before{content:"\e79a"}.el-icon-share:before{content:"\e793"}.el-icon-menu:before{content:"\e798"}.el-icon-s-grid:before{content:"\e7a6"}.el-icon-s-check:before{content:"\e7a7"}.el-icon-s-data:before{content:"\e7a8"}.el-icon-s-opportunity:before{content:"\e7aa"}.el-icon-s-custom:before{content:"\e7ab"}.el-icon-s-claim:before{content:"\e7ad"}.el-icon-s-finance:before{content:"\e7ae"}.el-icon-s-comment:before{content:"\e7af"}.el-icon-s-flag:before{content:"\e7b0"}.el-icon-s-marketing:before{content:"\e7b1"}.el-icon-s-shop:before{content:"\e7b4"}.el-icon-s-open:before{content:"\e7b5"}.el-icon-s-management:before{content:"\e7b6"}.el-icon-s-ticket:before{content:"\e7b7"}.el-icon-s-release:before{content:"\e7b8"}.el-icon-s-home:before{content:"\e7b9"}.el-icon-s-promotion:before{content:"\e7ba"}.el-icon-s-operation:before{content:"\e7bb"}.el-icon-s-unfold:before{content:"\e7bc"}.el-icon-s-fold:before{content:"\e7a9"}.el-icon-s-platform:before{content:"\e7bd"}.el-icon-s-order:before{content:"\e7be"}.el-icon-s-cooperation:before{content:"\e7bf"}.el-icon-bell:before{content:"\e725"}.el-icon-message-solid:before{content:"\e799"}.el-icon-video-camera:before{content:"\e772"}.el-icon-video-camera-solid:before{content:"\e796"}.el-icon-camera:before{content:"\e779"}.el-icon-camera-solid:before{content:"\e79b"}.el-icon-download:before{content:"\e77c"}.el-icon-upload2:before{content:"\e77b"}.el-icon-upload:before{content:"\e7c3"}.el-icon-picture-outline-round:before{content:"\e75f"}.el-icon-picture-outline:before{content:"\e75e"}.el-icon-picture:before{content:"\e79f"}.el-icon-close:before{content:"\e6db"}.el-icon-check:before{content:"\e6da"}.el-icon-plus:before{content:"\e6d9"}.el-icon-minus:before{content:"\e6d8"}.el-icon-help:before{content:"\e73d"}.el-icon-s-help:before{content:"\e7b3"}.el-icon-circle-close:before{content:"\e78d"}.el-icon-circle-check:before{content:"\e720"}.el-icon-circle-plus-outline:before{content:"\e723"}.el-icon-remove-outline:before{content:"\e722"}.el-icon-zoom-out:before{content:"\e776"}.el-icon-zoom-in:before{content:"\e777"}.el-icon-error:before{content:"\e79d"}.el-icon-success:before{content:"\e79c"}.el-icon-circle-plus:before{content:"\e7a0"}.el-icon-remove:before{content:"\e7a2"}.el-icon-info:before{content:"\e7a1"}.el-icon-question:before{content:"\e7a4"}.el-icon-warning-outline:before{content:"\e6c9"}.el-icon-warning:before{content:"\e7a3"}.el-icon-goods:before{content:"\e7c2"}.el-icon-s-goods:before{content:"\e7b2"}.el-icon-star-off:before{content:"\e717"}.el-icon-star-on:before{content:"\e797"}.el-icon-more-outline:before{content:"\e6cc"}.el-icon-more:before{content:"\e794"}.el-icon-phone-outline:before{content:"\e6cb"}.el-icon-phone:before{content:"\e795"}.el-icon-user:before{content:"\e6e3"}.el-icon-user-solid:before{content:"\e7a5"}.el-icon-setting:before{content:"\e6ca"}.el-icon-s-tools:before{content:"\e7ac"}.el-icon-delete:before{content:"\e6d7"}.el-icon-delete-solid:before{content:"\e7c9"}.el-icon-eleme:before{content:"\e7c7"}.el-icon-platform-eleme:before{content:"\e7ca"}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}100%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}}@keyframes rotating{0%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}100%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}}.el-pagination{white-space:nowrap;padding:2px 5px;color:#303133;font-weight:700}.el-pagination::after,.el-pagination::before{display:table;content:""}.el-pagination::after{clear:both}.el-pagination button,.el-pagination span:not([class*=suffix]){display:inline-block;font-size:13px;min-width:35.5px;height:28px;line-height:28px;vertical-align:top;-webkit-box-sizing:border-box;box-sizing:border-box}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield;line-height:normal}.el-pagination .el-input__suffix{right:0;-webkit-transform:scale(.8);transform:scale(.8)}.el-pagination .el-select .el-input{width:100px;margin:0 5px}.el-pagination .el-select .el-input .el-input__inner{padding-right:25px;border-radius:3px}.el-pagination button{border:none;padding:0 6px;background:0 0}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:#409EFF}.el-pagination button:disabled{color:#C0C4CC;background-color:#FFF;cursor:not-allowed}.el-pagination .btn-next,.el-pagination .btn-prev{background:center center no-repeat #FFF;background-size:16px;cursor:pointer;margin:0;color:#303133}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700}.el-pagination .btn-prev{padding-right:12px}.el-pagination .btn-next{padding-left:12px}.el-pagination .el-pager li.disabled{color:#C0C4CC;cursor:not-allowed}.el-pager li,.el-pager li.btn-quicknext:hover,.el-pager li.btn-quickprev:hover{cursor:pointer}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li,.el-pagination--small .el-pager li.btn-quicknext,.el-pagination--small .el-pager li.btn-quickprev,.el-pagination--small .el-pager li:last-child{border-color:transparent;font-size:12px;line-height:22px;height:22px;min-width:22px}.el-pagination--small .more::before,.el-pagination--small li.more::before{line-height:24px}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){height:22px;line-height:22px}.el-pagination--small .el-pagination__editor,.el-pagination--small .el-pagination__editor.el-input .el-input__inner{height:22px}.el-pagination__sizes{margin:0 10px 0 0;font-weight:400;color:#606266}.el-pagination__sizes .el-input .el-input__inner{font-size:13px;padding-left:8px}.el-pagination__sizes .el-input .el-input__inner:hover{border-color:#409EFF}.el-pagination__total{margin-right:10px;font-weight:400;color:#606266}.el-pagination__jump{margin-left:24px;font-weight:400;color:#606266}.el-pagination__jump .el-input__inner{padding:0 3px}.el-pagination__rightwrapper{float:right}.el-pagination__editor{line-height:18px;padding:0 2px;height:28px;text-align:center;margin:0 2px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px}.el-pager,.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev{padding:0}.el-pagination__editor.el-input{width:50px}.el-pagination__editor.el-input .el-input__inner{height:28px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 5px;background-color:#f4f4f5;color:#606266;min-width:30px;border-radius:2px}.el-pagination.is-background .btn-next.disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.disabled{color:#C0C4CC}.el-pagination.is-background .el-pager li:not(.disabled):hover{color:#409EFF}.el-pagination.is-background .el-pager li:not(.disabled).active{background-color:#409EFF;color:#FFF}.el-dialog,.el-pager li{background:#FFF;-webkit-box-sizing:border-box}.el-pagination.is-background.el-pagination--small .btn-next,.el-pagination.is-background.el-pagination--small .btn-prev,.el-pagination.is-background.el-pagination--small .el-pager li{margin:0 3px;min-width:22px}.el-pager,.el-pager li{vertical-align:top;margin:0;display:inline-block}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0}.el-date-table,.el-table th{-webkit-user-select:none;-moz-user-select:none}.el-pager .more::before{line-height:30px}.el-pager li{padding:0 4px;font-size:13px;min-width:35.5px;height:28px;line-height:28px;box-sizing:border-box;text-align:center}.el-menu--collapse .el-menu .el-submenu,.el-menu--popup{min-width:200px}.el-pager li.btn-quicknext,.el-pager li.btn-quickprev{line-height:28px;color:#303133}.el-pager li.btn-quicknext.disabled,.el-pager li.btn-quickprev.disabled{color:#C0C4CC}.el-pager li.active+li{border-left:0}.el-pager li:hover{color:#409EFF}.el-pager li.active{color:#409EFF;cursor:default}@-webkit-keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{100%{opacity:0}}.el-dialog{position:relative;margin:0 auto 50px;border-radius:2px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.3);box-shadow:0 1px 3px rgba(0,0,0,.3);box-sizing:border-box;width:50%}.el-dialog.is-fullscreen{width:100%;margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog__header{padding:20px 20px 10px}.el-dialog__headerbtn{position:absolute;top:20px;right:20px;padding:0;background:0 0;border:none;outline:0;cursor:pointer;font-size:16px}.el-dialog__headerbtn .el-dialog__close{color:#909399}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:#409EFF}.el-dialog__title{line-height:24px;font-size:18px;color:#303133}.el-dialog__body{padding:30px 20px;color:#606266;font-size:14px;word-break:break-all}.el-dialog__footer{padding:10px 20px 20px;text-align:right;-webkit-box-sizing:border-box;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px 25px 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.dialog-fade-enter-active{-webkit-animation:dialog-fade-in .3s;animation:dialog-fade-in .3s}.dialog-fade-leave-active{-webkit-animation:dialog-fade-out .3s;animation:dialog-fade-out .3s}@-webkit-keyframes dialog-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@keyframes dialog-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}.el-autocomplete{position:relative;display:inline-block}.el-autocomplete-suggestion{margin:5px 0;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px;border:1px solid #E4E7ED;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#FFF}.el-dropdown-menu,.el-menu--collapse .el-submenu .el-menu{z-index:10;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-autocomplete-suggestion__wrap{max-height:280px;padding:10px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{padding:0 20px;margin:0;line-height:34px;cursor:pointer;color:#606266;font-size:14px;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-autocomplete-suggestion li.highlighted,.el-autocomplete-suggestion li:hover{background-color:#F5F7FA}.el-autocomplete-suggestion li.divider{margin-top:6px;border-top:1px solid #000}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{text-align:center;height:100px;line-height:100px;font-size:20px;color:#999}.el-autocomplete-suggestion.is-loading li::after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:#FFF}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-dropdown{display:inline-block;position:relative;color:#606266;font-size:14px}.el-dropdown .el-button-group{display:block}.el-dropdown .el-button-group .el-button{float:none}.el-dropdown .el-dropdown__caret-button{padding-left:5px;padding-right:5px;position:relative;border-left:none}.el-dropdown .el-dropdown__caret-button::before{content:'';position:absolute;display:block;width:1px;top:5px;bottom:5px;left:0;background:rgba(255,255,255,.5)}.el-dropdown .el-dropdown__caret-button.el-button--default::before{background:rgba(220,223,230,.5)}.el-dropdown .el-dropdown__caret-button:hover::before{top:0;bottom:0}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{padding-left:0}.el-dropdown__icon{font-size:12px;margin:0 3px}.el-dropdown-menu{position:absolute;top:0;left:0;padding:10px 0;margin:5px 0;background-color:#FFF;border:1px solid #EBEEF5;border-radius:4px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-dropdown-menu__item{list-style:none;line-height:36px;padding:0 20px;margin:0;font-size:14px;color:#606266;cursor:pointer;outline:0}.el-dropdown-menu__item:focus,.el-dropdown-menu__item:not(.is-disabled):hover{background-color:#ecf5ff;color:#66b1ff}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #EBEEF5}.el-dropdown-menu__item--divided:before{content:'';height:6px;display:block;margin:0 -20px;background-color:#FFF}.el-dropdown-menu__item.is-disabled{cursor:default;color:#bbb;pointer-events:none}.el-dropdown-menu--medium{padding:6px 0}.el-dropdown-menu--medium .el-dropdown-menu__item{line-height:30px;padding:0 17px;font-size:14px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:6px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:6px;margin:0 -17px}.el-dropdown-menu--small{padding:6px 0}.el-dropdown-menu--small .el-dropdown-menu__item{line-height:27px;padding:0 15px;font-size:13px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:4px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:4px;margin:0 -15px}.el-dropdown-menu--mini{padding:3px 0}.el-dropdown-menu--mini .el-dropdown-menu__item{line-height:24px;padding:0 10px;font-size:12px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:3px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:3px;margin:0 -10px}.el-menu{border-right:solid 1px #e6e6e6;list-style:none;position:relative;margin:0;padding-left:0;background-color:#FFF}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover,.el-menu--horizontal>.el-submenu .el-submenu__title:hover{background-color:#fff}.el-menu::after,.el-menu::before{display:table;content:""}.el-menu::after{clear:both}.el-menu.el-menu--horizontal{border-bottom:solid 1px #e6e6e6}.el-menu--horizontal{border-right:none}.el-menu--horizontal>.el-menu-item{float:left;height:60px;line-height:60px;margin:0;border-bottom:2px solid transparent;color:#909399}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-submenu{float:left}.el-menu--horizontal>.el-submenu:focus,.el-menu--horizontal>.el-submenu:hover{outline:0}.el-menu--horizontal>.el-submenu:focus .el-submenu__title,.el-menu--horizontal>.el-submenu:hover .el-submenu__title{color:#303133}.el-menu--horizontal>.el-submenu.is-active .el-submenu__title{border-bottom:2px solid #409EFF;color:#303133}.el-menu--horizontal>.el-submenu .el-submenu__title{height:60px;line-height:60px;border-bottom:2px solid transparent;color:#909399}.el-menu--horizontal>.el-submenu .el-submenu__icon-arrow{position:static;vertical-align:middle;margin-left:8px;margin-top:-3px}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-submenu__title{background-color:#FFF;float:none;height:36px;line-height:36px;padding:0 10px;color:#909399}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-submenu.is-active>.el-submenu__title{color:#303133}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:#303133}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid #409EFF;color:#303133}.el-menu--collapse{width:64px}.el-menu--collapse>.el-menu-item [class^=el-icon-],.el-menu--collapse>.el-submenu>.el-submenu__title [class^=el-icon-]{margin:0;vertical-align:middle;width:24px;text-align:center}.el-menu--collapse>.el-menu-item .el-submenu__icon-arrow,.el-menu--collapse>.el-submenu>.el-submenu__title .el-submenu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item span,.el-menu--collapse>.el-submenu>.el-submenu__title span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-submenu{position:relative}.el-menu--collapse .el-submenu .el-menu{position:absolute;margin-left:5px;top:0;left:100%;border:1px solid #E4E7ED;border-radius:2px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-menu-item,.el-submenu__title{height:56px;line-height:56px;position:relative;-webkit-box-sizing:border-box;white-space:nowrap;list-style:none}.el-menu--collapse .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{-webkit-transform:none;transform:none}.el-menu--popup{z-index:100;border:none;padding:5px 0;border-radius:2px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-menu--popup-bottom-start{margin-top:5px}.el-menu--popup-right-start{margin-left:5px;margin-right:5px}.el-menu-item{font-size:14px;color:#303133;padding:0 20px;cursor:pointer;-webkit-transition:border-color .3s,background-color .3s,color .3s;transition:border-color .3s,background-color .3s,color .3s;box-sizing:border-box}.el-menu-item *{vertical-align:middle}.el-menu-item i{color:#909399}.el-menu-item:focus,.el-menu-item:hover{outline:0;background-color:#ecf5ff}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon-]{margin-right:5px;width:24px;text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:#409EFF}.el-menu-item.is-active i{color:inherit}.el-submenu{list-style:none;margin:0;padding-left:0}.el-submenu__title{font-size:14px;color:#303133;padding:0 20px;cursor:pointer;-webkit-transition:border-color .3s,background-color .3s,color .3s;transition:border-color .3s,background-color .3s,color .3s;box-sizing:border-box}.el-submenu__title *{vertical-align:middle}.el-submenu__title i{color:#909399}.el-submenu__title:focus,.el-submenu__title:hover{outline:0;background-color:#ecf5ff}.el-submenu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-submenu__title:hover{background-color:#ecf5ff}.el-submenu .el-menu{border:none}.el-submenu .el-menu-item{height:50px;line-height:50px;padding:0 45px;min-width:200px}.el-submenu__icon-arrow{position:absolute;top:50%;right:20px;margin-top:-7px;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-size:12px}.el-submenu.is-active .el-submenu__title{border-bottom-color:#409EFF}.el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg)}.el-submenu.is-disabled .el-menu-item,.el-submenu.is-disabled .el-submenu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-submenu [class^=el-icon-]{vertical-align:middle;margin-right:5px;width:24px;text-align:center;font-size:18px}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px 20px;line-height:normal;font-size:12px;color:#909399}.el-radio-button__inner,.el-radio-group{display:inline-block;line-height:1;vertical-align:middle}.horizontal-collapse-transition .el-submenu__title .el-submenu__icon-arrow{-webkit-transition:.2s;transition:.2s;opacity:0}.el-radio-group{font-size:0}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{white-space:nowrap;background:#FFF;border:1px solid #DCDFE6;font-weight:500;border-left:0;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);padding:12px 20px;font-size:14px;border-radius:0}.el-radio-button__inner.is-round{padding:12px 20px}.el-radio-button__inner:hover{color:#409EFF}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:1px solid #DCDFE6;border-radius:4px 0 0 4px;-webkit-box-shadow:none!important;box-shadow:none!important}.el-radio-button__orig-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__orig-radio:checked+.el-radio-button__inner{color:#FFF;background-color:#409EFF;border-color:#409EFF;-webkit-box-shadow:-1px 0 0 0 #409EFF;box-shadow:-1px 0 0 0 #409EFF}.el-radio-button__orig-radio:disabled+.el-radio-button__inner{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5;-webkit-box-shadow:none;box-shadow:none}.el-radio-button__orig-radio:disabled:checked+.el-radio-button__inner{background-color:#F2F6FC}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 4px 4px 0}.el-popover,.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:4px}.el-radio-button--medium .el-radio-button__inner{padding:10px 20px;font-size:14px;border-radius:0}.el-radio-button--medium .el-radio-button__inner.is-round{padding:10px 20px}.el-radio-button--small .el-radio-button__inner{padding:9px 15px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:9px 15px}.el-radio-button--mini .el-radio-button__inner{padding:7px 15px;font-size:12px;border-radius:0}.el-radio-button--mini .el-radio-button__inner.is-round{padding:7px 15px}.el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled){-webkit-box-shadow:0 0 2px 2px #409EFF;box-shadow:0 0 2px 2px #409EFF}.el-switch{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;font-size:14px;line-height:20px;height:20px;vertical-align:middle}.el-switch__core,.el-switch__label{display:inline-block;cursor:pointer}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{-webkit-transition:.2s;transition:.2s;height:20px;font-size:14px;font-weight:500;vertical-align:middle;color:#303133}.el-switch__label.is-active{color:#409EFF}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__core{margin:0;position:relative;width:40px;height:20px;border:1px solid #DCDFE6;outline:0;border-radius:10px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#DCDFE6;-webkit-transition:border-color .3s,background-color .3s;transition:border-color .3s,background-color .3s;vertical-align:middle}.el-switch__core:after{content:"";position:absolute;top:1px;left:1px;border-radius:100%;-webkit-transition:all .3s;transition:all .3s;width:16px;height:16px;background-color:#FFF}.el-switch.is-checked .el-switch__core{border-color:#409EFF;background-color:#409EFF}.el-switch.is-checked .el-switch__core::after{left:100%;margin-left:-17px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter,.el-switch .label-fade-leave-active{opacity:0}.el-select-dropdown{position:absolute;z-index:1001;border:1px solid #E4E7ED;border-radius:4px;background-color:#FFF;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:#409EFF;background-color:#FFF}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:#F5F7FA}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{position:absolute;right:20px;font-family:element-icons;content:"\e6da";font-size:12px;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:#999;font-size:14px}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-select-dropdown__item{font-size:14px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#606266;height:34px;line-height:34px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-select-dropdown__item.is-disabled:hover{background-color:#FFF}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:#F5F7FA}.el-select-dropdown__item.selected{color:#409EFF;font-weight:700}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type)::after{content:'';position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:#E4E7ED}.el-select-group__title{padding-left:20px;font-size:12px;color:#909399;line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{display:inline-block;position:relative}.el-select .el-select__tags>span{display:contents}.el-select:hover .el-input__inner{border-color:#C0C4CC}.el-select .el-input__inner{cursor:pointer;padding-right:35px}.el-select .el-input__inner:focus{border-color:#409EFF}.el-select .el-input .el-select__caret{color:#C0C4CC;font-size:14px;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{-webkit-transform:rotateZ(0);transform:rotateZ(0)}.el-select .el-input .el-select__caret.is-show-close{font-size:14px;text-align:center;-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg);border-radius:100%;color:#C0C4CC;-webkit-transition:color .2s cubic-bezier(.645,.045,.355,1);transition:color .2s cubic-bezier(.645,.045,.355,1)}.el-select .el-input .el-select__caret.is-show-close:hover{color:#909399}.el-select .el-input.is-disabled .el-input__inner{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__inner:hover{border-color:#E4E7ED}.el-select .el-input.is-focus .el-input__inner{border-color:#409EFF}.el-select>.el-input{display:block}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:#666;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-mini{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:1000;right:25px;color:#C0C4CC;line-height:18px;font-size:14px}.el-select__close:hover{color:#909399}.el-select__tags{position:absolute;line-height:normal;white-space:normal;z-index:1;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.el-select .el-tag__close{margin-top:-2px}.el-select .el-tag{-webkit-box-sizing:border-box;box-sizing:border-box;border-color:transparent;margin:2px 0 2px 6px;background-color:#f0f2f5}.el-select .el-tag__close.el-icon-close{background-color:#C0C4CC;right:-7px;top:0;color:#FFF}.el-select .el-tag__close.el-icon-close:hover{background-color:#909399}.el-table,.el-table__expanded-cell{background-color:#FFF}.el-select .el-tag__close.el-icon-close::before{display:block;-webkit-transform:translate(0,.5px);transform:translate(0,.5px)}.el-table{position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;max-width:100%;font-size:14px;color:#606266}.el-table--mini,.el-table--small,.el-table__expand-icon{font-size:12px}.el-table__empty-block{min-height:60px;text-align:center;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:#909399}.el-table__expand-column .cell{padding:0;text-align:center}.el-table__expand-icon{position:relative;cursor:pointer;color:#666;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out;height:20px}.el-table__expand-icon--expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.el-table__expand-icon>.el-icon{position:absolute;left:50%;top:50%;margin-left:-5px;margin-top:-5px}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit td.gutter,.el-table--fit th.gutter{border-right-width:1px}.el-table--scrollable-x .el-table__body-wrapper{overflow-x:auto}.el-table--scrollable-y .el-table__body-wrapper{overflow-y:auto}.el-table thead{color:#909399;font-weight:500}.el-table thead.is-group th{background:#F5F7FA}.el-table th,.el-table tr{background-color:#FFF}.el-table td,.el-table th{padding:12px 0;min-width:0;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left}.el-table td.is-center,.el-table th.is-center{text-align:center}.el-table td.is-right,.el-table th.is-right{text-align:right}.el-table td.gutter,.el-table th.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table--medium td,.el-table--medium th{padding:10px 0}.el-table--small td,.el-table--small th{padding:8px 0}.el-table--mini td,.el-table--mini th{padding:6px 0}.el-table .cell,.el-table--border td:first-child .cell,.el-table--border th:first-child .cell{padding-left:10px}.el-table tr input[type=checkbox]{margin:0}.el-table td,.el-table th.is-leaf{border-bottom:1px solid #EBEEF5}.el-table th.is-sortable{cursor:pointer}.el-table th{overflow:hidden;-ms-user-select:none;user-select:none}.el-table th>.cell{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;vertical-align:middle;padding-left:10px;padding-right:10px;width:100%}.el-table th>.cell.highlight{color:#409EFF}.el-table th.required>div::before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td div{-webkit-box-sizing:border-box;box-sizing:border-box}.el-table td.gutter{width:0}.el-table .cell{-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding-right:10px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--border,.el-table--group{border:1px solid #EBEEF5}.el-table--border::after,.el-table--group::after,.el-table::before{content:'';position:absolute;background-color:#EBEEF5;z-index:1}.el-table--border::after,.el-table--group::after{top:0;right:0;width:1px;height:100%}.el-table::before{left:0;bottom:0;width:100%;height:1px}.el-table--border{border-right:none;border-bottom:none}.el-table--border.el-loading-parent--relative{border-color:transparent}.el-table--border td,.el-table--border th,.el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{border-right:1px solid #EBEEF5}.el-table--border th.gutter:last-of-type{border-bottom:1px solid #EBEEF5;border-bottom-width:1px}.el-table--border th,.el-table__fixed-right-patch{border-bottom:1px solid #EBEEF5}.el-table__fixed,.el-table__fixed-right{position:absolute;top:0;left:0;overflow-x:hidden;overflow-y:hidden;-webkit-box-shadow:0 0 10px rgba(0,0,0,.12);box-shadow:0 0 10px rgba(0,0,0,.12)}.el-table__fixed-right::before,.el-table__fixed::before{content:'';position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#EBEEF5;z-index:4}.el-table__fixed-right-patch{position:absolute;top:-1px;right:0;background-color:#FFF}.el-table__fixed-right{top:0;left:auto;right:0}.el-table__fixed-right .el-table__fixed-body-wrapper,.el-table__fixed-right .el-table__fixed-footer-wrapper,.el-table__fixed-right .el-table__fixed-header-wrapper{left:auto;right:0}.el-table__fixed-header-wrapper{position:absolute;left:0;top:0;z-index:3}.el-table__fixed-footer-wrapper{position:absolute;left:0;bottom:0;z-index:3}.el-table__fixed-footer-wrapper tbody td{border-top:1px solid #EBEEF5;background-color:#F5F7FA;color:#606266}.el-table__fixed-body-wrapper{position:absolute;left:0;top:37px;overflow:hidden;z-index:3}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__footer-wrapper{margin-top:-1px}.el-table__footer-wrapper td{border-top:1px solid #EBEEF5}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed;border-collapse:separate}.el-table__footer-wrapper,.el-table__header-wrapper{overflow:hidden}.el-table__footer-wrapper tbody td,.el-table__header-wrapper tbody td{background-color:#F5F7FA;color:#606266}.el-table__body-wrapper{overflow:hidden;position:relative}.el-table__body-wrapper.is-scrolling-left~.el-table__fixed,.el-table__body-wrapper.is-scrolling-none~.el-table__fixed,.el-table__body-wrapper.is-scrolling-none~.el-table__fixed-right,.el-table__body-wrapper.is-scrolling-right~.el-table__fixed-right{-webkit-box-shadow:none;box-shadow:none}.el-picker-panel,.el-table-filter{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-table__body-wrapper .el-table--border.is-scrolling-right~.el-table__fixed-right{border-left:1px solid #EBEEF5}.el-table .caret-wrapper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:34px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:5px solid transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:#C0C4CC;top:5px}.el-table .sort-caret.descending{border-top-color:#C0C4CC;bottom:7px}.el-table .ascending .sort-caret.ascending{border-bottom-color:#409EFF}.el-table .descending .sort-caret.descending{border-top-color:#409EFF}.el-table .hidden-columns{position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td{background:#FAFAFA}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td{background-color:#ecf5ff}.el-table__body tr.hover-row.current-row>td,.el-table__body tr.hover-row.el-table__row--striped.current-row>td,.el-table__body tr.hover-row.el-table__row--striped>td,.el-table__body tr.hover-row>td{background-color:#F5F7FA}.el-table__body tr.current-row>td{background-color:#ecf5ff}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:1px solid #EBEEF5;z-index:10}.el-table__column-filter-trigger{display:inline-block;line-height:34px;cursor:pointer}.el-table__column-filter-trigger i{color:#909399;font-size:12px;-webkit-transform:scale(.75);transform:scale(.75)}.el-table--enable-row-transition .el-table__body td{-webkit-transition:background-color .25s ease;transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td{background-color:#F5F7FA}.el-table--fluid-height .el-table__fixed,.el-table--fluid-height .el-table__fixed-right{bottom:0;overflow:hidden}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:20px;line-height:20px;height:20px;text-align:center;margin-right:3px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:1px solid #EBEEF5;border-radius:2px;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-webkit-box-sizing:border-box;box-sizing:border-box;margin:2px 0}.el-date-table td,.el-date-table td div{height:30px;-webkit-box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:14px}.el-table-filter__list-item:hover{background-color:#ecf5ff;color:#66b1ff}.el-table-filter__list-item.is-active{background-color:#409EFF;color:#FFF}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid #EBEEF5;padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:#606266;cursor:pointer;font-size:13px;padding:0 3px}.el-date-table td.in-range div,.el-date-table td.in-range div:hover,.el-date-table.is-week-mode .el-date-table__row.current div,.el-date-table.is-week-mode .el-date-table__row:hover div{background-color:#F2F6FC}.el-table-filter__bottom button:hover{color:#409EFF}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:block;margin-right:5px;margin-bottom:8px;margin-left:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-date-table{font-size:12px;-ms-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:#606266}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child div{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child div{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td{width:32px;padding:4px 0;box-sizing:border-box;text-align:center;cursor:pointer;position:relative}.el-date-table td div{padding:3px 0;box-sizing:border-box}.el-date-table td span{width:24px;height:24px;display:block;margin:0 auto;line-height:24px;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-radius:50%}.el-date-table td.next-month,.el-date-table td.prev-month{color:#C0C4CC}.el-date-table td.today{position:relative}.el-date-table td.today span{color:#409EFF;font-weight:700}.el-date-table td.today.end-date span,.el-date-table td.today.start-date span{color:#FFF}.el-date-table td.available:hover{color:#409EFF}.el-date-table td.current:not(.disabled) span{color:#FFF;background-color:#409EFF}.el-date-table td.end-date div,.el-date-table td.start-date div{color:#FFF}.el-date-table td.end-date span,.el-date-table td.start-date span{background-color:#409EFF}.el-date-table td.start-date div{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table td.end-date div{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td.disabled div{background-color:#F5F7FA;opacity:1;cursor:not-allowed;color:#C0C4CC}.el-date-table td.selected div{margin-left:5px;margin-right:5px;background-color:#F2F6FC;border-radius:15px}.el-date-table td.selected div:hover{background-color:#F2F6FC}.el-date-table td.selected span{background-color:#409EFF;color:#FFF;border-radius:15px}.el-date-table td.week{font-size:80%;color:#606266}.el-month-table,.el-year-table{font-size:12px;border-collapse:collapse}.el-date-table th{padding:5px;color:#606266;font-weight:400;border-bottom:solid 1px #EBEEF5}.el-month-table{margin:-1px}.el-month-table td{text-align:center;padding:8px 0;cursor:pointer}.el-month-table td div{height:48px;padding:6px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-month-table td.today .cell{color:#409EFF;font-weight:700}.el-month-table td.today.end-date .cell,.el-month-table td.today.start-date .cell{color:#FFF}.el-month-table td.disabled .cell{background-color:#F5F7FA;cursor:not-allowed;color:#C0C4CC}.el-month-table td.disabled .cell:hover{color:#C0C4CC}.el-month-table td .cell{width:60px;height:36px;display:block;line-height:36px;color:#606266;margin:0 auto;border-radius:18px}.el-month-table td .cell:hover{color:#409EFF}.el-month-table td.in-range div,.el-month-table td.in-range div:hover{background-color:#F2F6FC}.el-month-table td.end-date div,.el-month-table td.start-date div{color:#FFF}.el-month-table td.end-date .cell,.el-month-table td.start-date .cell{color:#FFF;background-color:#409EFF}.el-month-table td.start-date div{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-month-table td.end-date div{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-month-table td.current:not(.disabled) .cell{color:#409EFF}.el-year-table{margin:-1px}.el-year-table .el-icon{color:#303133}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td.today .cell{color:#409EFF;font-weight:700}.el-year-table td.disabled .cell{background-color:#F5F7FA;cursor:not-allowed;color:#C0C4CC}.el-year-table td.disabled .cell:hover{color:#C0C4CC}.el-year-table td .cell{width:48px;height:32px;display:block;line-height:32px;color:#606266;margin:0 auto}.el-year-table td .cell:hover,.el-year-table td.current:not(.disabled) .cell{color:#409EFF}.el-date-range-picker{width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-left{border-right:1px solid #e4e4e4}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{-webkit-box-sizing:border-box;box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:#303133}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#FFF}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px #EBEEF5}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:#606266}.el-date-picker__header-label.active,.el-date-picker__header-label:hover{color:#409EFF}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.selected:not(.disabled){color:#409EFF;font-weight:700}.time-select-item.disabled{color:#E4E7ED;cursor:not-allowed}.time-select-item:hover{background-color:#F5F7FA;font-weight:700;cursor:pointer}.el-date-editor{position:relative;display:inline-block;text-align:left}.el-date-editor.el-input,.el-date-editor.el-input__inner{width:220px}.el-date-editor--monthrange.el-input,.el-date-editor--monthrange.el-input__inner{width:300px}.el-date-editor--daterange.el-input,.el-date-editor--daterange.el-input__inner,.el-date-editor--timerange.el-input,.el-date-editor--timerange.el-input__inner{width:350px}.el-date-editor--datetimerange.el-input,.el-date-editor--datetimerange.el-input__inner{width:400px}.el-date-editor--dates .el-input__inner{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .el-icon-circle-close{cursor:pointer}.el-date-editor .el-range__icon{font-size:14px;margin-left:-5px;color:#C0C4CC;float:left;line-height:32px}.el-date-editor .el-range-input,.el-date-editor .el-range-separator{height:100%;margin:0;text-align:center;display:inline-block;font-size:14px}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;padding:0;width:39%;color:#606266}.el-date-editor .el-range-input::-webkit-input-placeholder{color:#C0C4CC}.el-date-editor .el-range-input:-ms-input-placeholder{color:#C0C4CC}.el-date-editor .el-range-input::-ms-input-placeholder{color:#C0C4CC}.el-date-editor .el-range-input::placeholder{color:#C0C4CC}.el-date-editor .el-range-separator{padding:0 5px;line-height:32px;width:5%;color:#303133}.el-date-editor .el-range__close-icon{font-size:14px;color:#C0C4CC;width:25px;display:inline-block;float:right;line-height:32px}.el-range-editor.el-input__inner{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px 10px}.el-range-editor .el-range-input{line-height:1}.el-range-editor.is-active,.el-range-editor.is-active:hover{border-color:#409EFF}.el-range-editor--medium.el-input__inner{height:36px}.el-range-editor--medium .el-range-separator{line-height:28px;font-size:14px}.el-range-editor--medium .el-range-input{font-size:14px}.el-range-editor--medium .el-range__close-icon,.el-range-editor--medium .el-range__icon{line-height:28px}.el-range-editor--small.el-input__inner{height:32px}.el-range-editor--small .el-range-separator{line-height:24px;font-size:13px}.el-range-editor--small .el-range-input{font-size:13px}.el-range-editor--small .el-range__close-icon,.el-range-editor--small .el-range__icon{line-height:24px}.el-range-editor--mini.el-input__inner{height:28px}.el-range-editor--mini .el-range-separator{line-height:20px;font-size:12px}.el-range-editor--mini .el-range-input{font-size:12px}.el-range-editor--mini .el-range__close-icon,.el-range-editor--mini .el-range__icon{line-height:20px}.el-range-editor.is-disabled{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:#E4E7ED}.el-range-editor.is-disabled input{background-color:#F5F7FA;color:#C0C4CC;cursor:not-allowed}.el-range-editor.is-disabled input::-webkit-input-placeholder{color:#C0C4CC}.el-range-editor.is-disabled input:-ms-input-placeholder{color:#C0C4CC}.el-range-editor.is-disabled input::-ms-input-placeholder{color:#C0C4CC}.el-range-editor.is-disabled input::placeholder{color:#C0C4CC}.el-range-editor.is-disabled .el-range-separator{color:#C0C4CC}.el-picker-panel{color:#606266;border:1px solid #E4E7ED;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);background:#FFF;border-radius:4px;line-height:30px;margin:5px 0}.el-popover,.el-time-panel{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-picker-panel__body-wrapper::after,.el-picker-panel__body::after{content:"";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid #e4e4e4;padding:4px;text-align:right;background-color:#FFF;position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:#606266;padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:#409EFF}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:#409EFF}.el-picker-panel__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:#ccc;cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:#303133;border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:#409EFF}.el-picker-panel__icon-btn.is-disabled{color:#bbb}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid #e4e4e4;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:6px;background-color:#FFF;overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{max-height:190px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper .el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__input.el-input .el-input__inner,.el-time-spinner__list{padding:0;text-align:center}.el-time-spinner__wrapper.is-arrow{-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{-webkit-transform:translateY(-32px);transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.disabled):not(.active){background:#FFF;cursor:default}.el-time-spinner__arrow{font-size:12px;color:#909399;position:absolute;left:0;width:100%;z-index:1;text-align:center;height:30px;line-height:30px;cursor:pointer}.el-time-spinner__arrow:hover{color:#409EFF}.el-time-spinner__arrow.el-icon-arrow-up{top:10px}.el-time-spinner__arrow.el-icon-arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__list{margin:0;list-style:none}.el-time-spinner__list::after,.el-time-spinner__list::before{content:'';display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px;color:#606266}.el-time-spinner__item:hover:not(.disabled):not(.active){background:#F5F7FA;cursor:pointer}.el-time-spinner__item.active:not(.disabled){color:#303133;font-weight:700}.el-time-spinner__item.disabled{color:#C0C4CC;cursor:not-allowed}.el-time-panel{margin:5px 0;border:1px solid #E4E7ED;background-color:#FFF;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:2px;position:absolute;width:180px;left:0;z-index:1000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:content-box;box-sizing:content-box}.el-slider__button,.el-slider__button-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content::after,.el-time-panel__content::before{content:"";top:50%;position:absolute;margin-top:-15px;height:32px;z-index:-1;left:0;right:0;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:6px;text-align:left;border-top:1px solid #E4E7ED;border-bottom:1px solid #E4E7ED}.el-time-panel__content::after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content::before{padding-left:50%;margin-right:12%;margin-left:12%}.el-time-panel__content.has-seconds::after{left:calc(100% / 3 * 2)}.el-time-panel__content.has-seconds::before{padding-left:calc(100% / 3)}.el-time-panel__footer{border-top:1px solid #e4e4e4;padding:4px;height:36px;line-height:25px;text-align:right;-webkit-box-sizing:border-box;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:#303133}.el-time-panel__btn.confirm{font-weight:800;color:#409EFF}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px}.el-time-range-picker__cell{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-time-range-picker__body{border-radius:2px;border:1px solid #E4E7ED}.el-popover{position:absolute;background:#FFF;min-width:150px;border:1px solid #EBEEF5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);word-break:break-all}.el-popover--plain{padding:18px 20px}.el-popover__title{color:#303133;font-size:16px;line-height:1;margin-bottom:12px}.v-modal-enter{-webkit-animation:v-modal-in .2s ease;animation:v-modal-in .2s ease}.v-modal-leave{-webkit-animation:v-modal-out .2s ease forwards;animation:v-modal-out .2s ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{100%{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000}.el-popup-parent--hidden{overflow:hidden}.el-message-box{display:inline-block;width:420px;padding-bottom:10px;vertical-align:middle;background-color:#FFF;border-radius:4px;border:1px solid #EBEEF5;font-size:18px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box__wrapper{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center}.el-message-box__wrapper::after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box__header{position:relative;padding:15px 15px 10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:18px;line-height:1;color:#303133}.el-message-box__headerbtn{position:absolute;top:15px;right:15px;padding:0;border:none;outline:0;background:0 0;font-size:16px;cursor:pointer}.el-form-item.is-error .el-input__inner,.el-form-item.is-error .el-input__inner:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus,.el-message-box__input input.invalid,.el-message-box__input input.invalid:focus{border-color:#F56C6C}.el-message-box__headerbtn .el-message-box__close{color:#909399}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:#409EFF}.el-message-box__content{padding:10px 15px;color:#606266;font-size:14px}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__status{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:24px!important}.el-message-box__status::before{padding-left:1px}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px}.el-message-box__status.el-icon-success{color:#67C23A}.el-message-box__status.el-icon-info{color:#909399}.el-message-box__status.el-icon-warning{color:#E6A23C}.el-message-box__status.el-icon-error{color:#F56C6C}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:#F56C6C;font-size:12px;min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;text-align:right}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.el-message-box--center{padding-bottom:30px}.el-message-box--center .el-message-box__header{padding-top:30px}.el-message-box--center .el-message-box__title{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;-webkit-transform:translateY(-1px);transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__content{text-align:center}.el-message-box--center .el-message-box__content{padding-left:27px;padding-right:27px}.msgbox-fade-enter-active{-webkit-animation:msgbox-fade-in .3s;animation:msgbox-fade-in .3s}.msgbox-fade-leave-active{-webkit-animation:msgbox-fade-out .3s;animation:msgbox-fade-out .3s}@-webkit-keyframes msgbox-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@keyframes msgbox-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb::after,.el-breadcrumb::before{display:table;content:""}.el-breadcrumb::after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:#C0C4CC}.el-breadcrumb__separator[class*=icon]{margin:0 6px;font-weight:400}.el-breadcrumb__item{float:left}.el-breadcrumb__inner{color:#606266}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;-webkit-transition:color .2s cubic-bezier(.645,.045,.355,1);transition:color .2s cubic-bezier(.645,.045,.355,1);color:#303133}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:#409EFF;cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:#606266;cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-form--label-left .el-form-item__label{text-align:left}.el-form--label-top .el-form-item__label{float:none;display:inline-block;text-align:left;padding:0 0 10px}.el-form--inline .el-form-item{display:inline-block;margin-right:10px;vertical-align:top}.el-form--inline .el-form-item__label{float:none;display:inline-block}.el-form--inline .el-form-item__content{display:inline-block;vertical-align:top}.el-form--inline.el-form--label-top .el-form-item__content{display:block}.el-form-item{margin-bottom:22px}.el-form-item::after,.el-form-item::before{display:table;content:""}.el-form-item::after{clear:both}.el-form-item .el-form-item{margin-bottom:0}.el-form-item--mini.el-form-item,.el-form-item--small.el-form-item{margin-bottom:18px}.el-form-item .el-input__validateIcon{display:none}.el-form-item--medium .el-form-item__content,.el-form-item--medium .el-form-item__label{line-height:36px}.el-form-item--small .el-form-item__content,.el-form-item--small .el-form-item__label{line-height:32px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--mini .el-form-item__content,.el-form-item--mini .el-form-item__label{line-height:28px}.el-form-item--mini .el-form-item__error{padding-top:1px}.el-form-item__label-wrap{float:left}.el-form-item__label-wrap .el-form-item__label{display:inline-block;float:none}.el-form-item__label{text-align:right;vertical-align:middle;float:left;font-size:14px;color:#606266;line-height:40px;padding:0 12px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-form-item__content{line-height:40px;position:relative;font-size:14px}.el-form-item__content::after,.el-form-item__content::before{display:table;content:""}.el-form-item__content::after{clear:both}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:#F56C6C;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before{content:'*';color:#F56C6C;margin-right:4px}.el-form-item.is-error .el-input-group__append .el-input__inner,.el-form-item.is-error .el-input-group__prepend .el-input__inner{border-color:transparent}.el-form-item.is-error .el-input__validateIcon{color:#F56C6C}.el-form-item--feedback .el-input__validateIcon{display:inline-block}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:#409EFF;z-index:1;-webkit-transition:-webkit-transform .3s cubic-bezier(.645,.045,.355,1);transition:-webkit-transform .3s cubic-bezier(.645,.045,.355,1);transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform .3s cubic-bezier(.645,.045,.355,1),-webkit-transform .3s cubic-bezier(.645,.045,.355,1);list-style:none}.el-tabs__new-tab{float:right;border:1px solid #d3dce6;height:18px;width:18px;line-height:18px;margin:12px 0 9px 10px;border-radius:3px;text-align:center;font-size:12px;color:#d3dce6;cursor:pointer;-webkit-transition:all .15s;transition:all .15s}.el-collapse-item__arrow,.el-tabs__nav{-webkit-transition:-webkit-transform .3s}.el-tabs__new-tab .el-icon-plus{-webkit-transform:scale(.8,.8);transform:scale(.8,.8)}.el-tabs__new-tab:hover{color:#409EFF}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:#E4E7ED;z-index:1}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap::after,.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap::after{content:none}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:#909399}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;float:left;z-index:2}.el-tabs__nav.is-stretch{min-width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.el-tabs__nav.is-stretch>*{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:40px;display:inline-block;list-style:none;font-size:14px;font-weight:500;color:#303133;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus.is-active.is-focus:not(:active){-webkit-box-shadow:0 0 2px 2px #409EFF inset;box-shadow:0 0 2px 2px #409EFF inset;border-radius:3px}.el-tabs__item .el-icon-close{border-radius:50%;text-align:center;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);margin-left:5px}.el-tabs__item .el-icon-close:before{-webkit-transform:scale(.9);transform:scale(.9);display:inline-block}.el-tabs__item .el-icon-close:hover{background-color:#C0C4CC;color:#FFF}.el-tabs__item.is-active{color:#409EFF}.el-tabs__item:hover{color:#409EFF;cursor:pointer}.el-tabs__item.is-disabled{color:#C0C4CC;cursor:default}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid #E4E7ED}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid #E4E7ED;border-bottom:none;border-radius:4px 4px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .el-icon-close{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .el-icon-close,.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .el-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid #E4E7ED;-webkit-transition:color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1);transition:color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:#FFF}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--border-card{background:#FFF;border:1px solid #DCDFE6;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04);box-shadow:0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:#F5F7FA;border-bottom:1px solid #E4E7ED;margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__item{-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);border:1px solid transparent;margin-top:-1px;color:#909399}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item,.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:#409EFF;background-color:#FFF;border-right-color:#DCDFE6;border-left-color:#DCDFE6}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:#409EFF}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:#C0C4CC}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid #DCDFE6}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{-webkit-transform:rotateZ(90deg);transform:rotateZ(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__nav-wrap.is-left::after{right:0;left:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left::after,.el-tabs--left .el-tabs__nav-wrap.is-right::after,.el-tabs--right .el-tabs__nav-wrap.is-left::after,.el-tabs--right .el-tabs__nav-wrap.is-right::after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left,.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid #E4E7ED;border-bottom:none;border-top:1px solid #E4E7ED;text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid #E4E7ED;border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid #E4E7ED;border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid #E4E7ED;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid #dfe4ed}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:#d1dbe5 transparent}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right::after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid #E4E7ED}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid #E4E7ED;border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid #E4E7ED;border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid #E4E7ED;border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid #dfe4ed}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:#d1dbe5 transparent}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter .3s;animation:slideInRight-enter .3s}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave .3s;animation:slideInRight-leave .3s}.slideInLeft-enter{-webkit-animation:slideInLeft-enter .3s;animation:slideInLeft-enter .3s}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave .3s;animation:slideInLeft-leave .3s}@-webkit-keyframes slideInRight-enter{0%{opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slideInRight-enter{0%{opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes slideInRight-leave{0%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(100%);transform:translateX(100%);opacity:0}}@keyframes slideInRight-leave{0%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(100%);transform:translateX(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slideInLeft-enter{0%{opacity:0;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{opacity:1;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes slideInLeft-leave{0%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(-100%);transform:translateX(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:translateX(-100%);transform:translateX(-100%);opacity:0}}.el-tree{position:relative;cursor:default;background:#FFF;color:#606266}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#909399;font-size:14px}.el-tree__drop-indicator{position:absolute;left:0;right:0;height:1px;background-color:#409EFF}.el-tree-node{white-space:nowrap;outline:0}.el-tree-node:focus>.el-tree-node__content{background-color:#F5F7FA}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:#409EFF;color:#fff}.el-tree-node__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:26px;cursor:pointer}.el-tree-node__content>.el-tree-node__expand-icon{padding:6px}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:#F5F7FA}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{cursor:pointer;color:#C0C4CC;font-size:12px;-webkit-transform:rotate(0);transform:rotate(0);-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.el-tree-node__expand-icon.expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default}.el-tree-node__label{font-size:14px}.el-tree-node__loading-icon{margin-right:8px;font-size:14px;color:#C0C4CC}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:#f0f7ff}.el-alert{width:100%;padding:8px 16px;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;position:relative;background-color:#FFF;overflow:hidden;opacity:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:opacity .2s;transition:opacity .2s}.el-alert.is-light .el-alert__closebtn{color:#C0C4CC}.el-alert.is-dark .el-alert__closebtn,.el-alert.is-dark .el-alert__description{color:#FFF}.el-alert.is-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-alert--success.is-light{background-color:#f0f9eb;color:#67C23A}.el-alert--success.is-light .el-alert__description{color:#67C23A}.el-alert--success.is-dark{background-color:#67C23A;color:#FFF}.el-alert--info.is-light{background-color:#f4f4f5;color:#909399}.el-alert--info.is-dark{background-color:#909399;color:#FFF}.el-alert--info .el-alert__description{color:#909399}.el-alert--warning.is-light{background-color:#fdf6ec;color:#E6A23C}.el-alert--warning.is-light .el-alert__description{color:#E6A23C}.el-alert--warning.is-dark{background-color:#E6A23C;color:#FFF}.el-alert--error.is-light{background-color:#fef0f0;color:#F56C6C}.el-alert--error.is-light .el-alert__description{color:#F56C6C}.el-alert--error.is-dark{background-color:#F56C6C;color:#FFF}.el-alert__content{display:table-cell;padding:0 8px}.el-alert__icon{font-size:16px;width:16px}.el-alert__icon.is-big{font-size:28px;width:28px}.el-alert__title{font-size:13px;line-height:18px}.el-alert__title.is-bold{font-weight:700}.el-alert .el-alert__description{font-size:12px;margin:5px 0 0}.el-alert__closebtn{font-size:12px;opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.el-alert-fade-enter,.el-alert-fade-leave-active,.el-loading-fade-enter,.el-loading-fade-leave-active,.el-notification-fade-leave-active{opacity:0}.el-alert__closebtn.is-customed{font-style:normal;font-size:13px;top:9px}.el-notification{display:-webkit-box;display:-ms-flexbox;display:flex;width:330px;padding:14px 26px 14px 13px;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #EBEEF5;position:fixed;background-color:#FFF;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-webkit-transition:opacity .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;transition:opacity .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;overflow:hidden}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:13px;margin-right:8px}.el-notification__title{font-weight:700;font-size:16px;color:#303133;margin:0}.el-notification__content{font-size:14px;line-height:21px;margin:6px 0 0;color:#606266;text-align:justify}.el-notification__content p{margin:0}.el-notification__icon{height:24px;width:24px;font-size:24px}.el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.el-notification__closeBtn:hover{color:#606266}.el-notification .el-icon-success{color:#67C23A}.el-notification .el-icon-error{color:#F56C6C}.el-notification .el-icon-info{color:#909399}.el-notification .el-icon-warning{color:#E6A23C}.el-notification-fade-enter.right{right:0;-webkit-transform:translateX(100%);transform:translateX(100%)}.el-notification-fade-enter.left{left:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.el-input-number{position:relative;display:inline-block;width:180px;line-height:38px}.el-input-number .el-input{display:block}.el-input-number .el-input__inner{-webkit-appearance:none;padding-left:50px;padding-right:50px;text-align:center}.el-input-number__decrease,.el-input-number__increase{position:absolute;z-index:1;top:1px;width:40px;height:auto;text-align:center;background:#F5F7FA;color:#606266;cursor:pointer;font-size:13px}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:#409EFF}.el-input-number__decrease:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled),.el-input-number__increase:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled){border-color:#409EFF}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 4px 4px 0;border-left:1px solid #DCDFE6}.el-input-number__decrease{left:1px;border-radius:4px 0 0 4px;border-right:1px solid #DCDFE6}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:#E4E7ED;color:#E4E7ED}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:#E4E7ED;cursor:not-allowed}.el-input-number--medium{width:200px;line-height:34px}.el-input-number--medium .el-input-number__decrease,.el-input-number--medium .el-input-number__increase{width:36px;font-size:14px}.el-input-number--medium .el-input__inner{padding-left:43px;padding-right:43px}.el-input-number--small{width:130px;line-height:30px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:32px;font-size:13px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{-webkit-transform:scale(.9);transform:scale(.9)}.el-input-number--small .el-input__inner{padding-left:39px;padding-right:39px}.el-input-number--mini{width:130px;line-height:26px}.el-input-number--mini .el-input-number__decrease,.el-input-number--mini .el-input-number__increase{width:28px;font-size:12px}.el-input-number--mini .el-input-number__decrease [class*=el-icon],.el-input-number--mini .el-input-number__increase [class*=el-icon]{-webkit-transform:scale(.8);transform:scale(.8)}.el-input-number--mini .el-input__inner{padding-left:35px;padding-right:35px}.el-input-number.is-without-controls .el-input__inner{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__inner{padding-left:15px;padding-right:50px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{height:auto;line-height:19px}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{-webkit-transform:scale(.8);transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-radius:0 4px 0 0;border-bottom:1px solid #DCDFE6}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;bottom:1px;top:auto;left:auto;border-right:none;border-left:1px solid #DCDFE6;border-radius:0 0 4px}.el-input-number.is-controls-right[class*=medium] [class*=decrease],.el-input-number.is-controls-right[class*=medium] [class*=increase]{line-height:17px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{line-height:15px}.el-input-number.is-controls-right[class*=mini] [class*=decrease],.el-input-number.is-controls-right[class*=mini] [class*=increase]{line-height:13px}.el-tooltip__popper{position:absolute;border-radius:4px;padding:10px;z-index:2000;font-size:12px;line-height:1.2;min-width:10px;word-wrap:break-word}.el-tooltip__popper .popper__arrow,.el-tooltip__popper .popper__arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-tooltip__popper .popper__arrow{border-width:6px}.el-tooltip__popper .popper__arrow::after{content:" ";border-width:5px}.el-progress-bar__inner::after,.el-row::after,.el-row::before,.el-slider::after,.el-slider::before,.el-slider__button-wrapper::after,.el-upload-cover::after{content:""}.el-tooltip__popper[x-placement^=top]{margin-bottom:12px}.el-tooltip__popper[x-placement^=top] .popper__arrow{bottom:-6px;border-top-color:#303133;border-bottom-width:0}.el-tooltip__popper[x-placement^=top] .popper__arrow::after{bottom:1px;margin-left:-5px;border-top-color:#303133;border-bottom-width:0}.el-tooltip__popper[x-placement^=bottom]{margin-top:12px}.el-tooltip__popper[x-placement^=bottom] .popper__arrow{top:-6px;border-top-width:0;border-bottom-color:#303133}.el-tooltip__popper[x-placement^=bottom] .popper__arrow::after{top:1px;margin-left:-5px;border-top-width:0;border-bottom-color:#303133}.el-tooltip__popper[x-placement^=right]{margin-left:12px}.el-tooltip__popper[x-placement^=right] .popper__arrow{left:-6px;border-right-color:#303133;border-left-width:0}.el-tooltip__popper[x-placement^=right] .popper__arrow::after{bottom:-5px;left:1px;border-right-color:#303133;border-left-width:0}.el-tooltip__popper[x-placement^=left]{margin-right:12px}.el-tooltip__popper[x-placement^=left] .popper__arrow{right:-6px;border-right-width:0;border-left-color:#303133}.el-tooltip__popper[x-placement^=left] .popper__arrow::after{right:1px;bottom:-5px;margin-left:-5px;border-right-width:0;border-left-color:#303133}.el-tooltip__popper.is-dark{background:#303133;color:#FFF}.el-tooltip__popper.is-light{background:#FFF;border:1px solid #303133}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#303133}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow::after{border-top-color:#FFF}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#303133}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow::after{border-bottom-color:#FFF}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#303133}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow::after{border-left-color:#FFF}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#303133}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow::after{border-right-color:#FFF}.el-slider::after,.el-slider::before{display:table}.el-slider__button-wrapper .el-tooltip,.el-slider__button-wrapper::after{vertical-align:middle;display:inline-block}.el-slider::after{clear:both}.el-slider__runway{width:100%;height:6px;margin:16px 0;background-color:#E4E7ED;border-radius:3px;position:relative;cursor:pointer;vertical-align:middle}.el-slider__runway.show-input{margin-right:160px;width:auto}.el-slider__runway.disabled{cursor:default}.el-slider__runway.disabled .el-slider__bar{background-color:#C0C4CC}.el-slider__runway.disabled .el-slider__button{border-color:#C0C4CC}.el-slider__runway.disabled .el-slider__button-wrapper.dragging,.el-slider__runway.disabled .el-slider__button-wrapper.hover,.el-slider__runway.disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.disabled .el-slider__button.dragging,.el-slider__runway.disabled .el-slider__button.hover,.el-slider__runway.disabled .el-slider__button:hover{-webkit-transform:scale(1);transform:scale(1);cursor:not-allowed}.el-slider__button-wrapper,.el-slider__stop{-webkit-transform:translateX(-50%);position:absolute}.el-slider__input{float:right;margin-top:3px;width:130px}.el-slider__input.el-input-number--mini{margin-top:5px}.el-slider__input.el-input-number--medium{margin-top:0}.el-slider__input.el-input-number--large{margin-top:-2px}.el-slider__bar{height:6px;background-color:#409EFF;border-top-left-radius:3px;border-bottom-left-radius:3px;position:absolute}.el-slider__button-wrapper{height:36px;width:36px;z-index:1001;top:-15px;transform:translateX(-50%);background-color:transparent;text-align:center;user-select:none;line-height:normal}.el-slider__button-wrapper::after{height:100%}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{width:16px;height:16px;border:2px solid #409EFF;background-color:#FFF;border-radius:50%;-webkit-transition:.2s;transition:.2s;user-select:none}.el-image-viewer__btn,.el-step__icon-inner{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{height:6px;width:6px;border-radius:100%;background-color:#FFF;transform:translateX(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);font-size:14px;color:#909399;margin-top:15px}.el-slider.is-vertical{position:relative}.el-slider.is-vertical .el-slider__runway{width:6px;height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:6px;height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:-15px;-webkit-transform:translateY(50%);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{-webkit-transform:translateY(50%);transform:translateY(50%)}.el-slider.is-vertical.el-slider--with-input{padding-bottom:58px}.el-slider.is-vertical.el-slider--with-input .el-slider__input{overflow:visible;float:none;position:absolute;bottom:22px;width:36px;margin-top:15px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input__inner{text-align:center;padding-left:5px;padding-right:5px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase{top:32px;margin-top:-1px;border:1px solid #DCDFE6;line-height:20px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color .2s cubic-bezier(.645,.045,.355,1);transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__decrease{width:18px;right:18px;border-bottom-left-radius:4px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase{width:19px;border-bottom-right-radius:4px}.el-slider.is-vertical.el-slider--with-input .el-slider__input .el-input-number__increase~.el-input .el-input__inner{border-bottom-left-radius:0;border-bottom-right-radius:0}.el-slider.is-vertical.el-slider--with-input .el-slider__input:hover .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input:hover .el-input-number__increase{border-color:#C0C4CC}.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__decrease,.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__increase{border-color:#409EFF}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;-webkit-transform:translateY(50%);transform:translateY(50%)}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:rgba(255,255,255,.9);margin:0;top:0;right:0;bottom:0;left:0;-webkit-transition:opacity .3s;transition:opacity .3s}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:-25px}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:50px;width:50px}.el-loading-spinner{top:50%;margin-top:-21px;width:100%;text-align:center;position:absolute}.el-col-pull-0,.el-col-pull-1,.el-col-pull-10,.el-col-pull-11,.el-col-pull-13,.el-col-pull-14,.el-col-pull-15,.el-col-pull-16,.el-col-pull-17,.el-col-pull-18,.el-col-pull-19,.el-col-pull-2,.el-col-pull-20,.el-col-pull-21,.el-col-pull-22,.el-col-pull-23,.el-col-pull-24,.el-col-pull-3,.el-col-pull-4,.el-col-pull-5,.el-col-pull-6,.el-col-pull-7,.el-col-pull-8,.el-col-pull-9,.el-col-push-0,.el-col-push-1,.el-col-push-10,.el-col-push-11,.el-col-push-12,.el-col-push-13,.el-col-push-14,.el-col-push-15,.el-col-push-16,.el-col-push-17,.el-col-push-18,.el-col-push-19,.el-col-push-2,.el-col-push-20,.el-col-push-21,.el-col-push-22,.el-col-push-23,.el-col-push-24,.el-col-push-3,.el-col-push-4,.el-col-push-5,.el-col-push-6,.el-col-push-7,.el-col-push-8,.el-col-push-9,.el-row{position:relative}.el-loading-spinner .el-loading-text{color:#409EFF;margin:3px 0;font-size:14px}.el-loading-spinner .circular{height:42px;width:42px;-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:#409EFF;stroke-linecap:round}.el-loading-spinner i{color:#409EFF}@-webkit-keyframes loading-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-row{-webkit-box-sizing:border-box;box-sizing:border-box}.el-row::after,.el-row::before{display:table}.el-row::after{clear:both}.el-row--flex{display:-webkit-box;display:-ms-flexbox;display:flex}.el-col-0,.el-row--flex:after,.el-row--flex:before{display:none}.el-row--flex.is-justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-row--flex.is-justify-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.el-row--flex.is-justify-space-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.el-row--flex.is-justify-space-around{-ms-flex-pack:distribute;justify-content:space-around}.el-row--flex.is-align-middle{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-row--flex.is-align-bottom{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}[class*=el-col-]{float:left;-webkit-box-sizing:border-box;box-sizing:border-box}.el-upload--picture-card,.el-upload-dragger{-webkit-box-sizing:border-box;cursor:pointer}.el-col-0{width:0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{right:0}.el-col-push-0{left:0}.el-col-1{width:4.16667%}.el-col-offset-1{margin-left:4.16667%}.el-col-pull-1{right:4.16667%}.el-col-push-1{left:4.16667%}.el-col-2{width:8.33333%}.el-col-offset-2{margin-left:8.33333%}.el-col-pull-2{right:8.33333%}.el-col-push-2{left:8.33333%}.el-col-3{width:12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{right:12.5%}.el-col-push-3{left:12.5%}.el-col-4{width:16.66667%}.el-col-offset-4{margin-left:16.66667%}.el-col-pull-4{right:16.66667%}.el-col-push-4{left:16.66667%}.el-col-5{width:20.83333%}.el-col-offset-5{margin-left:20.83333%}.el-col-pull-5{right:20.83333%}.el-col-push-5{left:20.83333%}.el-col-6{width:25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{right:25%}.el-col-push-6{left:25%}.el-col-7{width:29.16667%}.el-col-offset-7{margin-left:29.16667%}.el-col-pull-7{right:29.16667%}.el-col-push-7{left:29.16667%}.el-col-8{width:33.33333%}.el-col-offset-8{margin-left:33.33333%}.el-col-pull-8{right:33.33333%}.el-col-push-8{left:33.33333%}.el-col-9{width:37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{right:37.5%}.el-col-push-9{left:37.5%}.el-col-10{width:41.66667%}.el-col-offset-10{margin-left:41.66667%}.el-col-pull-10{right:41.66667%}.el-col-push-10{left:41.66667%}.el-col-11{width:45.83333%}.el-col-offset-11{margin-left:45.83333%}.el-col-pull-11{right:45.83333%}.el-col-push-11{left:45.83333%}.el-col-12{width:50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%}.el-col-13{width:54.16667%}.el-col-offset-13{margin-left:54.16667%}.el-col-pull-13{right:54.16667%}.el-col-push-13{left:54.16667%}.el-col-14{width:58.33333%}.el-col-offset-14{margin-left:58.33333%}.el-col-pull-14{right:58.33333%}.el-col-push-14{left:58.33333%}.el-col-15{width:62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{right:62.5%}.el-col-push-15{left:62.5%}.el-col-16{width:66.66667%}.el-col-offset-16{margin-left:66.66667%}.el-col-pull-16{right:66.66667%}.el-col-push-16{left:66.66667%}.el-col-17{width:70.83333%}.el-col-offset-17{margin-left:70.83333%}.el-col-pull-17{right:70.83333%}.el-col-push-17{left:70.83333%}.el-col-18{width:75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{right:75%}.el-col-push-18{left:75%}.el-col-19{width:79.16667%}.el-col-offset-19{margin-left:79.16667%}.el-col-pull-19{right:79.16667%}.el-col-push-19{left:79.16667%}.el-col-20{width:83.33333%}.el-col-offset-20{margin-left:83.33333%}.el-col-pull-20{right:83.33333%}.el-col-push-20{left:83.33333%}.el-col-21{width:87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{right:87.5%}.el-col-push-21{left:87.5%}.el-col-22{width:91.66667%}.el-col-offset-22{margin-left:91.66667%}.el-col-pull-22{right:91.66667%}.el-col-push-22{left:91.66667%}.el-col-23{width:95.83333%}.el-col-offset-23{margin-left:95.83333%}.el-col-pull-23{right:95.83333%}.el-col-push-23{left:95.83333%}.el-col-24{width:100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{right:100%}.el-col-push-24{left:100%}@media only screen and (max-width:767px){.el-col-xs-0{display:none;width:0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{width:4.16667%}.el-col-xs-offset-1{margin-left:4.16667%}.el-col-xs-pull-1{position:relative;right:4.16667%}.el-col-xs-push-1{position:relative;left:4.16667%}.el-col-xs-2{width:8.33333%}.el-col-xs-offset-2{margin-left:8.33333%}.el-col-xs-pull-2{position:relative;right:8.33333%}.el-col-xs-push-2{position:relative;left:8.33333%}.el-col-xs-3{width:12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{width:16.66667%}.el-col-xs-offset-4{margin-left:16.66667%}.el-col-xs-pull-4{position:relative;right:16.66667%}.el-col-xs-push-4{position:relative;left:16.66667%}.el-col-xs-5{width:20.83333%}.el-col-xs-offset-5{margin-left:20.83333%}.el-col-xs-pull-5{position:relative;right:20.83333%}.el-col-xs-push-5{position:relative;left:20.83333%}.el-col-xs-6{width:25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{width:29.16667%}.el-col-xs-offset-7{margin-left:29.16667%}.el-col-xs-pull-7{position:relative;right:29.16667%}.el-col-xs-push-7{position:relative;left:29.16667%}.el-col-xs-8{width:33.33333%}.el-col-xs-offset-8{margin-left:33.33333%}.el-col-xs-pull-8{position:relative;right:33.33333%}.el-col-xs-push-8{position:relative;left:33.33333%}.el-col-xs-9{width:37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{width:41.66667%}.el-col-xs-offset-10{margin-left:41.66667%}.el-col-xs-pull-10{position:relative;right:41.66667%}.el-col-xs-push-10{position:relative;left:41.66667%}.el-col-xs-11{width:45.83333%}.el-col-xs-offset-11{margin-left:45.83333%}.el-col-xs-pull-11{position:relative;right:45.83333%}.el-col-xs-push-11{position:relative;left:45.83333%}.el-col-xs-12{width:50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{width:54.16667%}.el-col-xs-offset-13{margin-left:54.16667%}.el-col-xs-pull-13{position:relative;right:54.16667%}.el-col-xs-push-13{position:relative;left:54.16667%}.el-col-xs-14{width:58.33333%}.el-col-xs-offset-14{margin-left:58.33333%}.el-col-xs-pull-14{position:relative;right:58.33333%}.el-col-xs-push-14{position:relative;left:58.33333%}.el-col-xs-15{width:62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{width:66.66667%}.el-col-xs-offset-16{margin-left:66.66667%}.el-col-xs-pull-16{position:relative;right:66.66667%}.el-col-xs-push-16{position:relative;left:66.66667%}.el-col-xs-17{width:70.83333%}.el-col-xs-offset-17{margin-left:70.83333%}.el-col-xs-pull-17{position:relative;right:70.83333%}.el-col-xs-push-17{position:relative;left:70.83333%}.el-col-xs-18{width:75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{width:79.16667%}.el-col-xs-offset-19{margin-left:79.16667%}.el-col-xs-pull-19{position:relative;right:79.16667%}.el-col-xs-push-19{position:relative;left:79.16667%}.el-col-xs-20{width:83.33333%}.el-col-xs-offset-20{margin-left:83.33333%}.el-col-xs-pull-20{position:relative;right:83.33333%}.el-col-xs-push-20{position:relative;left:83.33333%}.el-col-xs-21{width:87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{width:91.66667%}.el-col-xs-offset-22{margin-left:91.66667%}.el-col-xs-pull-22{position:relative;right:91.66667%}.el-col-xs-push-22{position:relative;left:91.66667%}.el-col-xs-23{width:95.83333%}.el-col-xs-offset-23{margin-left:95.83333%}.el-col-xs-pull-23{position:relative;right:95.83333%}.el-col-xs-push-23{position:relative;left:95.83333%}.el-col-xs-24{width:100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;width:0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{width:4.16667%}.el-col-sm-offset-1{margin-left:4.16667%}.el-col-sm-pull-1{position:relative;right:4.16667%}.el-col-sm-push-1{position:relative;left:4.16667%}.el-col-sm-2{width:8.33333%}.el-col-sm-offset-2{margin-left:8.33333%}.el-col-sm-pull-2{position:relative;right:8.33333%}.el-col-sm-push-2{position:relative;left:8.33333%}.el-col-sm-3{width:12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{width:16.66667%}.el-col-sm-offset-4{margin-left:16.66667%}.el-col-sm-pull-4{position:relative;right:16.66667%}.el-col-sm-push-4{position:relative;left:16.66667%}.el-col-sm-5{width:20.83333%}.el-col-sm-offset-5{margin-left:20.83333%}.el-col-sm-pull-5{position:relative;right:20.83333%}.el-col-sm-push-5{position:relative;left:20.83333%}.el-col-sm-6{width:25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{width:29.16667%}.el-col-sm-offset-7{margin-left:29.16667%}.el-col-sm-pull-7{position:relative;right:29.16667%}.el-col-sm-push-7{position:relative;left:29.16667%}.el-col-sm-8{width:33.33333%}.el-col-sm-offset-8{margin-left:33.33333%}.el-col-sm-pull-8{position:relative;right:33.33333%}.el-col-sm-push-8{position:relative;left:33.33333%}.el-col-sm-9{width:37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{width:41.66667%}.el-col-sm-offset-10{margin-left:41.66667%}.el-col-sm-pull-10{position:relative;right:41.66667%}.el-col-sm-push-10{position:relative;left:41.66667%}.el-col-sm-11{width:45.83333%}.el-col-sm-offset-11{margin-left:45.83333%}.el-col-sm-pull-11{position:relative;right:45.83333%}.el-col-sm-push-11{position:relative;left:45.83333%}.el-col-sm-12{width:50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{width:54.16667%}.el-col-sm-offset-13{margin-left:54.16667%}.el-col-sm-pull-13{position:relative;right:54.16667%}.el-col-sm-push-13{position:relative;left:54.16667%}.el-col-sm-14{width:58.33333%}.el-col-sm-offset-14{margin-left:58.33333%}.el-col-sm-pull-14{position:relative;right:58.33333%}.el-col-sm-push-14{position:relative;left:58.33333%}.el-col-sm-15{width:62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{width:66.66667%}.el-col-sm-offset-16{margin-left:66.66667%}.el-col-sm-pull-16{position:relative;right:66.66667%}.el-col-sm-push-16{position:relative;left:66.66667%}.el-col-sm-17{width:70.83333%}.el-col-sm-offset-17{margin-left:70.83333%}.el-col-sm-pull-17{position:relative;right:70.83333%}.el-col-sm-push-17{position:relative;left:70.83333%}.el-col-sm-18{width:75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{width:79.16667%}.el-col-sm-offset-19{margin-left:79.16667%}.el-col-sm-pull-19{position:relative;right:79.16667%}.el-col-sm-push-19{position:relative;left:79.16667%}.el-col-sm-20{width:83.33333%}.el-col-sm-offset-20{margin-left:83.33333%}.el-col-sm-pull-20{position:relative;right:83.33333%}.el-col-sm-push-20{position:relative;left:83.33333%}.el-col-sm-21{width:87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{width:91.66667%}.el-col-sm-offset-22{margin-left:91.66667%}.el-col-sm-pull-22{position:relative;right:91.66667%}.el-col-sm-push-22{position:relative;left:91.66667%}.el-col-sm-23{width:95.83333%}.el-col-sm-offset-23{margin-left:95.83333%}.el-col-sm-pull-23{position:relative;right:95.83333%}.el-col-sm-push-23{position:relative;left:95.83333%}.el-col-sm-24{width:100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0{display:none;width:0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{width:4.16667%}.el-col-md-offset-1{margin-left:4.16667%}.el-col-md-pull-1{position:relative;right:4.16667%}.el-col-md-push-1{position:relative;left:4.16667%}.el-col-md-2{width:8.33333%}.el-col-md-offset-2{margin-left:8.33333%}.el-col-md-pull-2{position:relative;right:8.33333%}.el-col-md-push-2{position:relative;left:8.33333%}.el-col-md-3{width:12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{width:16.66667%}.el-col-md-offset-4{margin-left:16.66667%}.el-col-md-pull-4{position:relative;right:16.66667%}.el-col-md-push-4{position:relative;left:16.66667%}.el-col-md-5{width:20.83333%}.el-col-md-offset-5{margin-left:20.83333%}.el-col-md-pull-5{position:relative;right:20.83333%}.el-col-md-push-5{position:relative;left:20.83333%}.el-col-md-6{width:25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{width:29.16667%}.el-col-md-offset-7{margin-left:29.16667%}.el-col-md-pull-7{position:relative;right:29.16667%}.el-col-md-push-7{position:relative;left:29.16667%}.el-col-md-8{width:33.33333%}.el-col-md-offset-8{margin-left:33.33333%}.el-col-md-pull-8{position:relative;right:33.33333%}.el-col-md-push-8{position:relative;left:33.33333%}.el-col-md-9{width:37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{width:41.66667%}.el-col-md-offset-10{margin-left:41.66667%}.el-col-md-pull-10{position:relative;right:41.66667%}.el-col-md-push-10{position:relative;left:41.66667%}.el-col-md-11{width:45.83333%}.el-col-md-offset-11{margin-left:45.83333%}.el-col-md-pull-11{position:relative;right:45.83333%}.el-col-md-push-11{position:relative;left:45.83333%}.el-col-md-12{width:50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{width:54.16667%}.el-col-md-offset-13{margin-left:54.16667%}.el-col-md-pull-13{position:relative;right:54.16667%}.el-col-md-push-13{position:relative;left:54.16667%}.el-col-md-14{width:58.33333%}.el-col-md-offset-14{margin-left:58.33333%}.el-col-md-pull-14{position:relative;right:58.33333%}.el-col-md-push-14{position:relative;left:58.33333%}.el-col-md-15{width:62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{width:66.66667%}.el-col-md-offset-16{margin-left:66.66667%}.el-col-md-pull-16{position:relative;right:66.66667%}.el-col-md-push-16{position:relative;left:66.66667%}.el-col-md-17{width:70.83333%}.el-col-md-offset-17{margin-left:70.83333%}.el-col-md-pull-17{position:relative;right:70.83333%}.el-col-md-push-17{position:relative;left:70.83333%}.el-col-md-18{width:75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{width:79.16667%}.el-col-md-offset-19{margin-left:79.16667%}.el-col-md-pull-19{position:relative;right:79.16667%}.el-col-md-push-19{position:relative;left:79.16667%}.el-col-md-20{width:83.33333%}.el-col-md-offset-20{margin-left:83.33333%}.el-col-md-pull-20{position:relative;right:83.33333%}.el-col-md-push-20{position:relative;left:83.33333%}.el-col-md-21{width:87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{width:91.66667%}.el-col-md-offset-22{margin-left:91.66667%}.el-col-md-pull-22{position:relative;right:91.66667%}.el-col-md-push-22{position:relative;left:91.66667%}.el-col-md-23{width:95.83333%}.el-col-md-offset-23{margin-left:95.83333%}.el-col-md-pull-23{position:relative;right:95.83333%}.el-col-md-push-23{position:relative;left:95.83333%}.el-col-md-24{width:100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;width:0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{width:4.16667%}.el-col-lg-offset-1{margin-left:4.16667%}.el-col-lg-pull-1{position:relative;right:4.16667%}.el-col-lg-push-1{position:relative;left:4.16667%}.el-col-lg-2{width:8.33333%}.el-col-lg-offset-2{margin-left:8.33333%}.el-col-lg-pull-2{position:relative;right:8.33333%}.el-col-lg-push-2{position:relative;left:8.33333%}.el-col-lg-3{width:12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{width:16.66667%}.el-col-lg-offset-4{margin-left:16.66667%}.el-col-lg-pull-4{position:relative;right:16.66667%}.el-col-lg-push-4{position:relative;left:16.66667%}.el-col-lg-5{width:20.83333%}.el-col-lg-offset-5{margin-left:20.83333%}.el-col-lg-pull-5{position:relative;right:20.83333%}.el-col-lg-push-5{position:relative;left:20.83333%}.el-col-lg-6{width:25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{width:29.16667%}.el-col-lg-offset-7{margin-left:29.16667%}.el-col-lg-pull-7{position:relative;right:29.16667%}.el-col-lg-push-7{position:relative;left:29.16667%}.el-col-lg-8{width:33.33333%}.el-col-lg-offset-8{margin-left:33.33333%}.el-col-lg-pull-8{position:relative;right:33.33333%}.el-col-lg-push-8{position:relative;left:33.33333%}.el-col-lg-9{width:37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{width:41.66667%}.el-col-lg-offset-10{margin-left:41.66667%}.el-col-lg-pull-10{position:relative;right:41.66667%}.el-col-lg-push-10{position:relative;left:41.66667%}.el-col-lg-11{width:45.83333%}.el-col-lg-offset-11{margin-left:45.83333%}.el-col-lg-pull-11{position:relative;right:45.83333%}.el-col-lg-push-11{position:relative;left:45.83333%}.el-col-lg-12{width:50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{width:54.16667%}.el-col-lg-offset-13{margin-left:54.16667%}.el-col-lg-pull-13{position:relative;right:54.16667%}.el-col-lg-push-13{position:relative;left:54.16667%}.el-col-lg-14{width:58.33333%}.el-col-lg-offset-14{margin-left:58.33333%}.el-col-lg-pull-14{position:relative;right:58.33333%}.el-col-lg-push-14{position:relative;left:58.33333%}.el-col-lg-15{width:62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{width:66.66667%}.el-col-lg-offset-16{margin-left:66.66667%}.el-col-lg-pull-16{position:relative;right:66.66667%}.el-col-lg-push-16{position:relative;left:66.66667%}.el-col-lg-17{width:70.83333%}.el-col-lg-offset-17{margin-left:70.83333%}.el-col-lg-pull-17{position:relative;right:70.83333%}.el-col-lg-push-17{position:relative;left:70.83333%}.el-col-lg-18{width:75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{width:79.16667%}.el-col-lg-offset-19{margin-left:79.16667%}.el-col-lg-pull-19{position:relative;right:79.16667%}.el-col-lg-push-19{position:relative;left:79.16667%}.el-col-lg-20{width:83.33333%}.el-col-lg-offset-20{margin-left:83.33333%}.el-col-lg-pull-20{position:relative;right:83.33333%}.el-col-lg-push-20{position:relative;left:83.33333%}.el-col-lg-21{width:87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{width:91.66667%}.el-col-lg-offset-22{margin-left:91.66667%}.el-col-lg-pull-22{position:relative;right:91.66667%}.el-col-lg-push-22{position:relative;left:91.66667%}.el-col-lg-23{width:95.83333%}.el-col-lg-offset-23{margin-left:95.83333%}.el-col-lg-pull-23{position:relative;right:95.83333%}.el-col-lg-push-23{position:relative;left:95.83333%}.el-col-lg-24{width:100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;width:0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{width:4.16667%}.el-col-xl-offset-1{margin-left:4.16667%}.el-col-xl-pull-1{position:relative;right:4.16667%}.el-col-xl-push-1{position:relative;left:4.16667%}.el-col-xl-2{width:8.33333%}.el-col-xl-offset-2{margin-left:8.33333%}.el-col-xl-pull-2{position:relative;right:8.33333%}.el-col-xl-push-2{position:relative;left:8.33333%}.el-col-xl-3{width:12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{width:16.66667%}.el-col-xl-offset-4{margin-left:16.66667%}.el-col-xl-pull-4{position:relative;right:16.66667%}.el-col-xl-push-4{position:relative;left:16.66667%}.el-col-xl-5{width:20.83333%}.el-col-xl-offset-5{margin-left:20.83333%}.el-col-xl-pull-5{position:relative;right:20.83333%}.el-col-xl-push-5{position:relative;left:20.83333%}.el-col-xl-6{width:25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{width:29.16667%}.el-col-xl-offset-7{margin-left:29.16667%}.el-col-xl-pull-7{position:relative;right:29.16667%}.el-col-xl-push-7{position:relative;left:29.16667%}.el-col-xl-8{width:33.33333%}.el-col-xl-offset-8{margin-left:33.33333%}.el-col-xl-pull-8{position:relative;right:33.33333%}.el-col-xl-push-8{position:relative;left:33.33333%}.el-col-xl-9{width:37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{width:41.66667%}.el-col-xl-offset-10{margin-left:41.66667%}.el-col-xl-pull-10{position:relative;right:41.66667%}.el-col-xl-push-10{position:relative;left:41.66667%}.el-col-xl-11{width:45.83333%}.el-col-xl-offset-11{margin-left:45.83333%}.el-col-xl-pull-11{position:relative;right:45.83333%}.el-col-xl-push-11{position:relative;left:45.83333%}.el-col-xl-12{width:50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{width:54.16667%}.el-col-xl-offset-13{margin-left:54.16667%}.el-col-xl-pull-13{position:relative;right:54.16667%}.el-col-xl-push-13{position:relative;left:54.16667%}.el-col-xl-14{width:58.33333%}.el-col-xl-offset-14{margin-left:58.33333%}.el-col-xl-pull-14{position:relative;right:58.33333%}.el-col-xl-push-14{position:relative;left:58.33333%}.el-col-xl-15{width:62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{width:66.66667%}.el-col-xl-offset-16{margin-left:66.66667%}.el-col-xl-pull-16{position:relative;right:66.66667%}.el-col-xl-push-16{position:relative;left:66.66667%}.el-col-xl-17{width:70.83333%}.el-col-xl-offset-17{margin-left:70.83333%}.el-col-xl-pull-17{position:relative;right:70.83333%}.el-col-xl-push-17{position:relative;left:70.83333%}.el-col-xl-18{width:75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{width:79.16667%}.el-col-xl-offset-19{margin-left:79.16667%}.el-col-xl-pull-19{position:relative;right:79.16667%}.el-col-xl-push-19{position:relative;left:79.16667%}.el-col-xl-20{width:83.33333%}.el-col-xl-offset-20{margin-left:83.33333%}.el-col-xl-pull-20{position:relative;right:83.33333%}.el-col-xl-push-20{position:relative;left:83.33333%}.el-col-xl-21{width:87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{width:91.66667%}.el-col-xl-offset-22{margin-left:91.66667%}.el-col-xl-pull-22{position:relative;right:91.66667%}.el-col-xl-push-22{position:relative;left:91.66667%}.el-col-xl-23{width:95.83333%}.el-col-xl-offset-23{margin-left:95.83333%}.el-col-xl-pull-23{position:relative;right:95.83333%}.el-col-xl-push-23{position:relative;left:95.83333%}.el-col-xl-24{width:100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}@-webkit-keyframes progress{0%{background-position:0 0}100%{background-position:32px 0}}.el-upload{display:inline-block;text-align:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:#606266;margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.el-upload--picture-card{background-color:#fbfdff;border:1px dashed #c0ccda;border-radius:6px;box-sizing:border-box;width:148px;height:148px;line-height:146px;vertical-align:top}.el-upload--picture-card i{font-size:28px;color:#8c939d}.el-upload--picture-card:hover,.el-upload:focus{border-color:#409EFF;color:#409EFF}.el-upload:focus .el-upload-dragger{border-color:#409EFF}.el-upload-dragger{background-color:#fff;border:1px dashed #d9d9d9;border-radius:6px;box-sizing:border-box;width:360px;height:180px;text-align:center;position:relative;overflow:hidden}.el-upload-dragger .el-icon-upload{font-size:67px;color:#C0C4CC;margin:40px 0 16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:1px solid #DCDFE6;margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:#606266;font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:#409EFF;font-style:normal}.el-upload-dragger:hover{border-color:#409EFF}.el-upload-dragger.is-dragover{background-color:rgba(32,159,255,.06);border:2px dashed #409EFF}.el-upload-list{margin:0;padding:0;list-style:none}.el-upload-list__item{-webkit-transition:all .5s cubic-bezier(.55,0,.1,1);transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:#606266;line-height:1.8;margin-top:5px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item:first-child{margin-top:10px}.el-upload-list__item .el-icon-upload-success{color:#67C23A}.el-upload-list__item .el-icon-close{display:none;position:absolute;top:5px;right:5px;cursor:pointer;opacity:.75;color:#606266}.el-upload-list__item .el-icon-close:hover{opacity:1}.el-upload-list__item .el-icon-close-tip{display:none;position:absolute;top:5px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:#409EFF}.el-upload-list__item:hover{background-color:#F5F7FA}.el-upload-list__item:hover .el-icon-close{display:inline-block}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:block}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:#409EFF;cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip{display:inline-block}.el-upload-list__item.is-success:active .el-icon-close-tip,.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label,.el-upload-list__item.is-success:not(.focusing):focus .el-icon-close-tip{display:none}.el-upload-list.is-disabled .el-upload-list__item:hover .el-upload-list__item-status-label{display:block}.el-upload-list__item-name{color:#606266;display:block;margin-right:40px;overflow:hidden;padding-left:4px;text-overflow:ellipsis;-webkit-transition:color .3s;transition:color .3s;white-space:nowrap}.el-upload-list__item-name [class^=el-icon]{height:100%;margin-right:7px;color:#909399;line-height:inherit}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:#606266;display:none}.el-upload-list__item-delete:hover{color:#409EFF}.el-upload-list--picture-card{margin:0;display:inline;vertical-align:top}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;width:148px;height:148px;margin:0 8px 8px 0;display:inline-block}.el-upload-list--picture-card .el-upload-list__item .el-icon-check,.el-upload-list--picture-card .el-upload-list__item .el-icon-circle-check{color:#FFF}.el-upload-list--picture-card .el-upload-list__item .el-icon-close,.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:0 0 1pc 1px rgba(0,0,0,.2);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;text-align:center;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .3s;transition:opacity .3s}.el-upload-list--picture-card .el-upload-list__item-actions::after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:15px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-block}.el-upload-list--picture-card .el-progress{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:10px;padding:10px 10px 10px 90px;height:92px}.el-upload-list--picture .el-upload-list__item .el-icon-check,.el-upload-list--picture .el-upload-list__item .el-icon-circle-check{color:#FFF}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{background:0 0;-webkit-box-shadow:none;box-shadow:none;top:-2px;right:-12px}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name{line-height:70px;margin-top:0}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item-thumbnail{vertical-align:middle;display:inline-block;width:70px;height:70px;float:left;position:relative;z-index:1;margin-left:-80px;background-color:#FFF}.el-upload-list--picture .el-upload-list__item-name{display:block;margin-top:20px}.el-upload-list--picture .el-upload-list__item-name i{font-size:70px;line-height:1;position:absolute;left:9px;top:10px}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:#13ce66;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:0 1px 1px #ccc;box-shadow:0 1px 1px #ccc}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover::after{display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{position:absolute;right:-15px;top:-6px;width:40px;height:24px;background:#13ce66;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:0 0 1pc 1px rgba(0,0,0,.2);box-shadow:0 0 1pc 1px rgba(0,0,0,.2)}.el-upload-cover__label i{font-size:12px;margin-top:11px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.72);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#FFF;font-size:14px;cursor:pointer;vertical-align:middle;-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);margin-top:60px}.el-upload-cover__interact .btn span{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{-webkit-transform:translateY(-13px);transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#FFF;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#FFF;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:#303133}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-progress{position:relative;line-height:1}.el-progress__text{font-size:14px;color:#606266;display:inline-block;vertical-align:middle;margin-left:10px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;-webkit-transform:translate(0,-50%);transform:translate(0,-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress-bar,.el-progress-bar__inner::after,.el-progress-bar__innerText,.el-spinner{display:inline-block;vertical-align:middle}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:#67C23A}.el-progress.is-success .el-progress__text{color:#67C23A}.el-progress.is-warning .el-progress-bar__inner{background-color:#E6A23C}.el-progress.is-warning .el-progress__text{color:#E6A23C}.el-progress.is-exception .el-progress-bar__inner{background-color:#F56C6C}.el-progress.is-exception .el-progress__text{color:#F56C6C}.el-progress-bar{padding-right:50px;width:100%;margin-right:-55px;-webkit-box-sizing:border-box;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:#EBEEF5;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:#409EFF;text-align:right;border-radius:100px;line-height:1;white-space:nowrap;-webkit-transition:width .6s ease;transition:width .6s ease}.el-card,.el-message{border-radius:4px;overflow:hidden}.el-progress-bar__inner::after{height:100%}.el-progress-bar__innerText{color:#FFF;font-size:12px;margin:0 5px}@keyframes progress{0%{background-position:0 0}100%{background-position:32px 0}}.el-time-spinner{width:100%;white-space:nowrap}.el-spinner-inner{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:#ececec;stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-message{min-width:380px;-webkit-box-sizing:border-box;box-sizing:border-box;border-width:1px;border-style:solid;border-color:#EBEEF5;position:fixed;left:50%;top:20px;-webkit-transform:translateX(-50%);transform:translateX(-50%);background-color:#edf2fc;-webkit-transition:opacity .3s,top .4s,-webkit-transform .4s;transition:opacity .3s,top .4s,-webkit-transform .4s;transition:opacity .3s,transform .4s,top .4s;transition:opacity .3s,transform .4s,top .4s,-webkit-transform .4s;padding:15px 15px 15px 20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-message.is-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-message.is-closable .el-message__content{padding-right:16px}.el-message p{margin:0}.el-message--info .el-message__content{color:#909399}.el-message--success{background-color:#f0f9eb;border-color:#e1f3d8}.el-message--success .el-message__content{color:#67C23A}.el-message--warning{background-color:#fdf6ec;border-color:#faecd8}.el-message--warning .el-message__content{color:#E6A23C}.el-message--error{background-color:#fef0f0;border-color:#fde2e2}.el-message--error .el-message__content{color:#F56C6C}.el-message__icon{margin-right:10px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__closeBtn{position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;color:#C0C4CC;font-size:16px}.el-message__closeBtn:hover{color:#909399}.el-message .el-icon-success{color:#67C23A}.el-message .el-icon-error{color:#F56C6C}.el-message .el-icon-info{color:#909399}.el-message .el-icon-warning{color:#E6A23C}.el-message-fade-enter,.el-message-fade-leave-active{opacity:0;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.el-badge{position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:#F56C6C;border-radius:10px;color:#FFF;display:inline-block;font-size:12px;height:18px;line-height:18px;padding:0 6px;text-align:center;white-space:nowrap;border:1px solid #FFF}.el-badge__content.is-fixed{position:absolute;top:0;right:10px;-webkit-transform:translateY(-50%) translateX(100%);transform:translateY(-50%) translateX(100%)}.el-rate__icon,.el-rate__item{position:relative;display:inline-block}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:#409EFF}.el-badge__content--success{background-color:#67C23A}.el-badge__content--warning{background-color:#E6A23C}.el-badge__content--info{background-color:#909399}.el-badge__content--danger{background-color:#F56C6C}.el-card{border:1px solid #EBEEF5;background-color:#FFF;color:#303133;-webkit-transition:.3s;transition:.3s}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-card__header{padding:18px 20px;border-bottom:1px solid #EBEEF5;-webkit-box-sizing:border-box;box-sizing:border-box}.el-card__body{padding:20px}.el-rate{height:20px;line-height:1}.el-rate__item{font-size:0;vertical-align:middle}.el-rate__icon{font-size:18px;margin-right:6px;color:#C0C4CC;-webkit-transition:.3s;transition:.3s}.el-rate__decimal,.el-rate__icon .path2{position:absolute;top:0;left:0}.el-rate__icon.hover{-webkit-transform:scale(1.15);transform:scale(1.15)}.el-rate__decimal{display:inline-block;overflow:hidden}.el-step.is-vertical,.el-steps{display:-webkit-box;display:-ms-flexbox}.el-rate__text{font-size:14px;vertical-align:middle}.el-steps{display:flex}.el-steps--simple{padding:13px 8%;border-radius:4px;background:#F5F7FA}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column}.el-step{position:relative;-ms-flex-negative:1;flex-shrink:1}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{-ms-flex-preferred-size:auto!important;flex-basis:auto!important;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{color:#303133;border-color:#303133}.el-step__head.is-wait{color:#C0C4CC;border-color:#C0C4CC}.el-step__head.is-success{color:#67C23A;border-color:#67C23A}.el-step__head.is-error{color:#F56C6C;border-color:#F56C6C}.el-step__head.is-finish{color:#409EFF;border-color:#409EFF}.el-step__icon{position:relative;z-index:1;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#FFF;-webkit-transition:.15s ease-out;transition:.15s ease-out}.el-step__icon.is-text{border-radius:50%;border:2px solid;border-color:inherit}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{display:inline-block;user-select:none;text-align:center;font-weight:700;line-height:1;color:inherit}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{-webkit-transform:translateY(1px);transform:translateY(1px)}.el-step__line{position:absolute;border-color:inherit;background-color:#C0C4CC}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;-webkit-transition:.15s ease-out;transition:.15s ease-out;-webkit-box-sizing:border-box;box-sizing:border-box;width:0;height:0}.el-step__main{white-space:normal;text-align:left}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{font-weight:700;color:#303133}.el-step__title.is-wait{color:#C0C4CC}.el-step__title.is-success{color:#67C23A}.el-step__title.is-error{color:#F56C6C}.el-step__title.is-finish{color:#409EFF}.el-step__description{padding-right:10%;margin-top:-5px;font-size:12px;line-height:20px;font-weight:400}.el-step__description.is-process{color:#303133}.el-step__description.is-wait{color:#C0C4CC}.el-step__description.is-success{color:#67C23A}.el-step__description.is-error{color:#F56C6C}.el-step__description.is-finish{color:#409EFF}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;top:11px;left:0;right:0}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{padding-left:10px;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{width:2px;top:0;bottom:0;left:11px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-step.is-simple .el-step__head{width:auto;font-size:0;padding-right:10px}.el-step.is-simple .el-step__icon{background:0 0;width:16px;height:16px;font-size:12px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{-webkit-transform:scale(.8) translateY(1px);transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;word-break:break-all}.el-step.is-simple .el-step__arrow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-step.is-simple .el-step__arrow::after,.el-step.is-simple .el-step__arrow::before{content:'';display:inline-block;position:absolute;height:15px;width:1px;background:#C0C4CC}.el-step.is-simple .el-step__arrow::before{-webkit-transform:rotate(-45deg) translateY(-4px);transform:rotate(-45deg) translateY(-4px);-webkit-transform-origin:0 0;transform-origin:0 0}.el-step.is-simple .el-step__arrow::after{-webkit-transform:rotate(45deg) translateY(4px);transform:rotate(45deg) translateY(4px);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-carousel{position:relative}.el-carousel--horizontal{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:36px;width:36px;cursor:pointer;-webkit-transition:.3s;transition:.3s;border-radius:50%;background-color:rgba(31,45,61,.11);color:#FFF;position:absolute;top:50%;z-index:10;-webkit-transform:translateY(-50%);transform:translateY(-50%);text-align:center;font-size:12px}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:rgba(31,45,61,.23)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:2}.el-carousel__indicators--horizontal{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:26px;text-align:center;position:static;-webkit-transform:none;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:#C0C4CC;opacity:.24}.el-carousel__indicators--labels{left:0;right:0;-webkit-transform:none;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:12px 4px}.el-carousel__indicator--vertical{padding:4px 12px}.el-carousel__indicator--vertical .el-carousel__button{width:2px;height:15px}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:30px;height:2px;background-color:#FFF;border:none;outline:0;padding:0;margin:0;cursor:pointer;-webkit-transition:.3s;transition:.3s}.el-carousel__item,.el-carousel__mask{height:100%;top:0;left:0;position:absolute}.carousel-arrow-left-enter,.carousel-arrow-left-leave-active{-webkit-transform:translateY(-50%) translateX(-10px);transform:translateY(-50%) translateX(-10px);opacity:0}.carousel-arrow-right-enter,.carousel-arrow-right-leave-active{-webkit-transform:translateY(-50%) translateX(10px);transform:translateY(-50%) translateX(10px);opacity:0}.el-carousel__item{width:100%;display:inline-block;overflow:hidden;z-index:0}.el-carousel__item.is-active{z-index:2}.el-carousel__item.is-animating{-webkit-transition:-webkit-transform .4s ease-in-out;transition:-webkit-transform .4s ease-in-out;transition:transform .4s ease-in-out;transition:transform .4s ease-in-out,-webkit-transform .4s ease-in-out}.el-carousel__item--card{width:50%;-webkit-transition:-webkit-transform .4s ease-in-out;transition:-webkit-transform .4s ease-in-out;transition:transform .4s ease-in-out;transition:transform .4s ease-in-out,-webkit-transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:1}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:2}.el-carousel__mask{width:100%;background-color:#FFF;opacity:.24;-webkit-transition:.2s;transition:.2s}.el-fade-in-enter,.el-fade-in-leave-active,.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active,.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.el-fade-in-enter-active,.el-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45,.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.el-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.el-collapse{border-top:1px solid #EBEEF5;border-bottom:1px solid #EBEEF5}.el-collapse-item.is-disabled .el-collapse-item__header{color:#bbb;cursor:not-allowed}.el-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#FFF;color:#303133;cursor:pointer;border-bottom:1px solid #EBEEF5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.el-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:#409EFF}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:#FFF;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #EBEEF5}.el-cascader__tags,.el-tag{-webkit-box-sizing:border-box}.el-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.769230769230769}.el-collapse-item:last-child{margin-bottom:-1px}.el-popper .popper__arrow,.el-popper .popper__arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;-webkit-filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03));filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03))}.el-popper .popper__arrow::after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#EBEEF5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow::after{bottom:1px;margin-left:-6px;border-top-color:#FFF;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#EBEEF5}.el-popper[x-placement^=bottom] .popper__arrow::after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#FFF}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#EBEEF5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow::after{bottom:-6px;left:1px;border-right-color:#FFF;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#EBEEF5}.el-popper[x-placement^=left] .popper__arrow::after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#FFF}.el-tag{background-color:#ecf5ff;border-color:#d9ecff;display:inline-block;height:32px;padding:0 10px;line-height:30px;font-size:12px;color:#409EFF;border-width:1px;border-style:solid;border-radius:4px;box-sizing:border-box;white-space:nowrap}.el-tag.is-hit{border-color:#409EFF}.el-tag .el-tag__close{color:#409eff}.el-tag .el-tag__close:hover{color:#FFF;background-color:#409eff}.el-tag.el-tag--info{background-color:#f4f4f5;border-color:#e9e9eb;color:#909399}.el-tag.el-tag--info.is-hit{border-color:#909399}.el-tag.el-tag--info .el-tag__close{color:#909399}.el-tag.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#909399}.el-tag.el-tag--success{background-color:#f0f9eb;border-color:#e1f3d8;color:#67c23a}.el-tag.el-tag--success.is-hit{border-color:#67C23A}.el-tag.el-tag--success .el-tag__close{color:#67c23a}.el-tag.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#67c23a}.el-tag.el-tag--warning{background-color:#fdf6ec;border-color:#faecd8;color:#e6a23c}.el-tag.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag.el-tag--warning .el-tag__close{color:#e6a23c}.el-tag.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#e6a23c}.el-tag.el-tag--danger{background-color:#fef0f0;border-color:#fde2e2;color:#f56c6c}.el-tag.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag.el-tag--danger .el-tag__close{color:#f56c6c}.el-tag.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f56c6c}.el-tag .el-icon-close{border-radius:50%;text-align:center;position:relative;cursor:pointer;font-size:12px;height:16px;width:16px;line-height:16px;vertical-align:middle;top:-1px;right:-5px}.el-tag .el-icon-close::before{display:block}.el-tag--dark{background-color:#409eff;border-color:#409eff;color:#fff}.el-tag--dark.is-hit{border-color:#409EFF}.el-tag--dark .el-tag__close{color:#fff}.el-tag--dark .el-tag__close:hover{color:#FFF;background-color:#66b1ff}.el-tag--dark.el-tag--info{background-color:#909399;border-color:#909399;color:#fff}.el-tag--dark.el-tag--info.is-hit{border-color:#909399}.el-tag--dark.el-tag--info .el-tag__close{color:#fff}.el-tag--dark.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#a6a9ad}.el-tag--dark.el-tag--success{background-color:#67c23a;border-color:#67c23a;color:#fff}.el-tag--dark.el-tag--success.is-hit{border-color:#67C23A}.el-tag--dark.el-tag--success .el-tag__close{color:#fff}.el-tag--dark.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#85ce61}.el-tag--dark.el-tag--warning{background-color:#e6a23c;border-color:#e6a23c;color:#fff}.el-tag--dark.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag--dark.el-tag--warning .el-tag__close{color:#fff}.el-tag--dark.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#ebb563}.el-tag--dark.el-tag--danger{background-color:#f56c6c;border-color:#f56c6c;color:#fff}.el-tag--dark.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag--dark.el-tag--danger .el-tag__close{color:#fff}.el-tag--dark.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f78989}.el-tag--plain{background-color:#fff;border-color:#b3d8ff;color:#409eff}.el-tag--plain.is-hit{border-color:#409EFF}.el-tag--plain .el-tag__close{color:#409eff}.el-tag--plain .el-tag__close:hover{color:#FFF;background-color:#409eff}.el-tag--plain.el-tag--info{background-color:#fff;border-color:#d3d4d6;color:#909399}.el-tag--plain.el-tag--info.is-hit{border-color:#909399}.el-tag--plain.el-tag--info .el-tag__close{color:#909399}.el-tag--plain.el-tag--info .el-tag__close:hover{color:#FFF;background-color:#909399}.el-tag--plain.el-tag--success{background-color:#fff;border-color:#c2e7b0;color:#67c23a}.el-tag--plain.el-tag--success.is-hit{border-color:#67C23A}.el-tag--plain.el-tag--success .el-tag__close{color:#67c23a}.el-tag--plain.el-tag--success .el-tag__close:hover{color:#FFF;background-color:#67c23a}.el-tag--plain.el-tag--warning{background-color:#fff;border-color:#f5dab1;color:#e6a23c}.el-tag--plain.el-tag--warning.is-hit{border-color:#E6A23C}.el-tag--plain.el-tag--warning .el-tag__close{color:#e6a23c}.el-tag--plain.el-tag--warning .el-tag__close:hover{color:#FFF;background-color:#e6a23c}.el-tag--plain.el-tag--danger{background-color:#fff;border-color:#fbc4c4;color:#f56c6c}.el-tag--plain.el-tag--danger.is-hit{border-color:#F56C6C}.el-tag--plain.el-tag--danger .el-tag__close{color:#f56c6c}.el-tag--plain.el-tag--danger .el-tag__close:hover{color:#FFF;background-color:#f56c6c}.el-tag--medium{height:28px;line-height:26px}.el-tag--medium .el-icon-close{-webkit-transform:scale(.8);transform:scale(.8)}.el-tag--small{height:24px;padding:0 8px;line-height:22px}.el-tag--small .el-icon-close{-webkit-transform:scale(.8);transform:scale(.8)}.el-tag--mini{height:20px;padding:0 5px;line-height:19px}.el-tag--mini .el-icon-close{margin-left:-3px;-webkit-transform:scale(.7);transform:scale(.7)}.el-cascader{display:inline-block;position:relative;font-size:14px;line-height:40px}.el-cascader:not(.is-disabled):hover .el-input__inner{cursor:pointer;border-color:#C0C4CC}.el-cascader .el-input .el-input__inner:focus,.el-cascader .el-input.is-focus .el-input__inner{border-color:#409EFF}.el-cascader .el-input{cursor:pointer}.el-cascader .el-input .el-input__inner{text-overflow:ellipsis}.el-cascader .el-input .el-icon-arrow-down{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-size:14px}.el-cascader .el-input .el-icon-arrow-down.is-reverse{-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg)}.el-cascader .el-input .el-icon-circle-close:hover{color:#909399}.el-cascader--medium{font-size:14px;line-height:36px}.el-cascader--small{font-size:13px;line-height:32px}.el-cascader--mini{font-size:12px;line-height:28px}.el-cascader.is-disabled .el-cascader__label{z-index:2;color:#C0C4CC}.el-cascader__dropdown{margin:5px 0;font-size:14px;background:#FFF;border:1px solid #E4E7ED;border-radius:4px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-cascader__tags{position:absolute;left:0;right:30px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:normal;text-align:left;box-sizing:border-box}.el-cascader__tags .el-tag{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:#f0f2f5}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag>span{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{-webkit-box-flex:0;-ms-flex:none;flex:none;background-color:#C0C4CC;color:#FFF}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:#909399}.el-cascader__suggestion-panel{border-radius:4px}.el-cascader__suggestion-list{max-height:204px;margin:0;padding:6px 0;font-size:14px;color:#606266;text-align:center}.el-cascader__suggestion-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:34px;padding:0 15px;text-align:left;outline:0;cursor:pointer}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:#F5F7FA}.el-cascader__suggestion-item.is-checked{color:#409EFF;font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{margin:10px 0;color:#C0C4CC}.el-cascader__search-input{-webkit-box-flex:1;-ms-flex:1;flex:1;height:24px;min-width:60px;margin:2px 0 2px 15px;padding:0;color:#606266;border:none;outline:0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-cascader__search-input::-webkit-input-placeholder{color:#C0C4CC}.el-cascader__search-input:-ms-input-placeholder{color:#C0C4CC}.el-cascader__search-input::-ms-input-placeholder{color:#C0C4CC}.el-cascader__search-input::placeholder{color:#C0C4CC}.el-color-predefine{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-wrap:wrap;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{-webkit-box-shadow:0 0 3px 2px #409EFF;box-shadow:0 0 3px 2px #409EFF}.el-color-predefine__color-selector>div{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px}.el-color-hue-slider__bar{position:relative;background:-webkit-gradient(linear,left top,right top,from(red),color-stop(17%,#ff0),color-stop(33%,#0f0),color-stop(50%,#0ff),color-stop(67%,#00f),color-stop(83%,#f0f),to(red));background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid #f0f0f0;-webkit-box-shadow:0 0 2px rgba(0,0,0,.6);box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(17%,#ff0),color-stop(33%,#0f0),color-stop(50%,#0ff),color-stop(67%,#00f),color-stop(83%,#f0f),to(red));background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:-webkit-gradient(linear,left top,right top,from(#fff),to(rgba(255,255,255,0)));background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:-webkit-gradient(linear,left bottom,left top,from(#000),to(rgba(0,0,0,0)));background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;-webkit-box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;-webkit-transform:translate(-2px,-2px);transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:280px;height:12px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-alpha-slider__bar{position:relative;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,0)),to(white));background:linear-gradient(to right,rgba(255,255,255,0) 0,#fff 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid #f0f0f0;-webkit-box-shadow:0 0 2px rgba(0,0,0,.6);box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,0)),to(white));background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper::after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:6px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-dropdown__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-color-dropdown__btn[disabled]{color:#ccc;cursor:not-allowed}.el-color-dropdown__btn:hover{color:#409EFF;border-color:#409EFF}.el-color-dropdown__link-btn{cursor:pointer;color:#409EFF;text-decoration:none;padding:15px;font-size:12px}.el-color-dropdown__link-btn:hover{color:tint(#409EFF,20%)}.el-color-picker{display:inline-block;position:relative;line-height:normal;height:40px}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--medium{height:36px}.el-color-picker--medium .el-color-picker__trigger{height:36px;width:36px}.el-color-picker--medium .el-color-picker__mask{height:34px;width:34px}.el-color-picker--small{height:32px}.el-color-picker--small .el-color-picker__trigger{height:32px;width:32px}.el-color-picker--small .el-color-picker__mask{height:30px;width:30px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{-webkit-transform:translate3d(-50%,-50%,0) scale(.8);transform:translate3d(-50%,-50%,0) scale(.8)}.el-color-picker--mini{height:28px}.el-color-picker--mini .el-color-picker__trigger{height:28px;width:28px}.el-color-picker--mini .el-color-picker__mask{height:26px;width:26px}.el-color-picker--mini .el-color-picker__empty,.el-color-picker--mini .el-color-picker__icon{-webkit-transform:translate3d(-50%,-50%,0) scale(.8);transform:translate3d(-50%,-50%,0) scale(.8)}.el-color-picker__mask{height:38px;width:38px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:rgba(255,255,255,.7)}.el-color-picker__trigger{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;height:40px;width:40px;padding:4px;border:1px solid #e6e6e6;border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #999;border-radius:2px;width:100%;height:100%;text-align:center}.el-color-picker__color.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-picker__color-inner{position:absolute;left:0;top:0;right:0;bottom:0}.el-color-picker__empty,.el-color-picker__icon{top:50%;left:50%;font-size:12px;position:absolute}.el-color-picker__empty{color:#999;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.el-color-picker__icon{display:inline-block;width:100%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);color:#FFF;text-align:center}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;-webkit-box-sizing:content-box;box-sizing:content-box;background-color:#FFF;border:1px solid #EBEEF5;border-radius:4px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:14px}.el-textarea__inner{display:block;resize:vertical;padding:5px 15px;line-height:1.5;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;font-size:inherit;color:#606266;background-color:#FFF;background-image:none;border:1px solid #DCDFE6;border-radius:4px;-webkit-transition:border-color .2s cubic-bezier(.645,.045,.355,1);transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.el-textarea__inner::-webkit-input-placeholder{color:#C0C4CC}.el-textarea__inner:-ms-input-placeholder{color:#C0C4CC}.el-textarea__inner::-ms-input-placeholder{color:#C0C4CC}.el-textarea__inner::placeholder{color:#C0C4CC}.el-textarea__inner:hover{border-color:#C0C4CC}.el-textarea__inner:focus{outline:0;border-color:#409EFF}.el-textarea .el-input__count{color:#909399;background:#FFF;position:absolute;font-size:12px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-webkit-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner::-ms-input-placeholder{color:#C0C4CC}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:#C0C4CC}.el-textarea.is-exceed .el-textarea__inner{border-color:#F56C6C}.el-textarea.is-exceed .el-input__count{color:#F56C6C}.el-input{position:relative;font-size:14px;display:inline-block;width:100%}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:#b4bccc}.el-input::-webkit-scrollbar-corner{background:#fff}.el-input::-webkit-scrollbar-track{background:#fff}.el-input::-webkit-scrollbar-track-piece{background:#fff;width:6px}.el-input .el-input__clear{color:#C0C4CC;font-size:14px;cursor:pointer;-webkit-transition:color .2s cubic-bezier(.645,.045,.355,1);transition:color .2s cubic-bezier(.645,.045,.355,1)}.el-input .el-input__clear:hover{color:#909399}.el-input .el-input__count{height:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#909399;font-size:12px}.el-input .el-input__count .el-input__count-inner{background:#FFF;line-height:initial;display:inline-block;padding:0 5px}.el-input__inner{-webkit-appearance:none;background-color:#FFF;background-image:none;border-radius:4px;border:1px solid #DCDFE6;-webkit-box-sizing:border-box;box-sizing:border-box;color:#606266;display:inline-block;font-size:inherit;height:40px;line-height:40px;outline:0;padding:0 15px;-webkit-transition:border-color .2s cubic-bezier(.645,.045,.355,1);transition:border-color .2s cubic-bezier(.645,.045,.355,1);width:100%}.el-input__prefix,.el-input__suffix{position:absolute;top:0;-webkit-transition:all .3s;height:100%;color:#C0C4CC;text-align:center}.el-input__inner::-webkit-input-placeholder{color:#C0C4CC}.el-input__inner:-ms-input-placeholder{color:#C0C4CC}.el-input__inner::-ms-input-placeholder{color:#C0C4CC}.el-input__inner::placeholder{color:#C0C4CC}.el-input__inner:hover{border-color:#C0C4CC}.el-input.is-active .el-input__inner,.el-input__inner:focus{border-color:#409EFF;outline:0}.el-input__suffix{right:5px;transition:all .3s}.el-input__suffix-inner{pointer-events:all}.el-input__prefix{left:5px;transition:all .3s}.el-input__icon{height:100%;width:25px;text-align:center;-webkit-transition:all .3s;transition:all .3s;line-height:40px}.el-input__icon:after{content:'';height:100%;width:0;display:inline-block;vertical-align:middle}.el-input__validateIcon{pointer-events:none}.el-input.is-disabled .el-input__inner{background-color:#F5F7FA;border-color:#E4E7ED;color:#C0C4CC;cursor:not-allowed}.el-input.is-disabled .el-input__inner::-webkit-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner::-ms-input-placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__inner::placeholder{color:#C0C4CC}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-link,.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-input.is-exceed .el-input__inner{border-color:#F56C6C}.el-input.is-exceed .el-input__suffix .el-input__count{color:#F56C6C}.el-input--suffix .el-input__inner{padding-right:30px}.el-input--prefix .el-input__inner{padding-left:30px}.el-input--medium{font-size:14px}.el-input--medium .el-input__inner{height:36px;line-height:36px}.el-input--medium .el-input__icon{line-height:36px}.el-input--small{font-size:13px}.el-input--small .el-input__inner{height:32px;line-height:32px}.el-input--small .el-input__icon{line-height:32px}.el-input--mini{font-size:12px}.el-input--mini .el-input__inner{height:28px;line-height:28px}.el-input--mini .el-input__icon{line-height:28px}.el-input-group{line-height:normal;display:inline-table;width:100%;border-collapse:separate;border-spacing:0}.el-input-group>.el-input__inner{vertical-align:middle;display:table-cell}.el-input-group__append,.el-input-group__prepend{background-color:#F5F7FA;color:#909399;vertical-align:middle;display:table-cell;position:relative;border:1px solid #DCDFE6;border-radius:4px;padding:0 20px;width:1px;white-space:nowrap}.el-input-group--prepend .el-input__inner,.el-input-group__append{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--append .el-input__inner,.el-input-group__prepend{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:-10px -20px}.el-input-group__append button.el-button,.el-input-group__append div.el-select .el-input__inner,.el-input-group__append div.el-select:hover .el-input__inner,.el-input-group__prepend button.el-button,.el-input-group__prepend div.el-select .el-input__inner,.el-input-group__prepend div.el-select:hover .el-input__inner{border-color:transparent;background-color:transparent;color:inherit;border-top:0;border-bottom:0}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0}.el-input-group__append{border-left:0}.el-input-group--append .el-select .el-input.is-focus .el-input__inner,.el-input-group--prepend .el-select .el-input.is-focus .el-input__inner{border-color:transparent}.el-input__inner::-ms-clear{display:none;width:0;height:0}.el-transfer{font-size:14px}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 30px}.el-transfer__button{display:block;margin:0 auto;padding:10px;border-radius:50%;color:#FFF;background-color:#409EFF;font-size:0}.el-transfer-panel__item+.el-transfer-panel__item,.el-transfer__button [class*=el-icon-]+span{margin-left:0}.el-transfer__button.is-with-texts{border-radius:4px}.el-transfer__button.is-disabled,.el-transfer__button.is-disabled:hover{border:1px solid #DCDFE6;background-color:#F5F7FA;color:#C0C4CC}.el-transfer__button:first-child{margin-bottom:10px}.el-transfer__button:nth-child(2){margin:0}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer-panel{border:1px solid #EBEEF5;border-radius:4px;overflow:hidden;background:#FFF;display:inline-block;vertical-align:middle;width:200px;max-height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.el-transfer-panel__body{height:246px}.el-transfer-panel__body.is-with-footer{padding-bottom:40px}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:246px;overflow:auto;-webkit-box-sizing:border-box;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:194px;padding-top:0}.el-transfer-panel__item{height:30px;line-height:30px;padding-left:15px;display:block!important}.el-transfer-panel__item.el-checkbox{color:#606266}.el-transfer-panel__item:hover{color:#409EFF}.el-transfer-panel__item.el-checkbox .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:24px;line-height:30px}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{text-align:center;margin:15px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;width:auto}.el-transfer-panel__filter .el-input__inner{height:32px;width:100%;font-size:12px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:16px;padding-right:10px;padding-left:30px}.el-transfer-panel__filter .el-input__icon{margin-left:5px}.el-transfer-panel .el-transfer-panel__header{height:40px;line-height:40px;background:#F5F7FA;margin:0;padding-left:15px;border-bottom:1px solid #EBEEF5;-webkit-box-sizing:border-box;box-sizing:border-box;color:#000}.el-transfer-panel .el-transfer-panel__header .el-checkbox{display:block;line-height:40px}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{font-size:16px;color:#303133;font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{position:absolute;right:15px;color:#909399;font-size:12px;font-weight:400}.el-divider__text,.el-link{font-weight:500;font-size:14px}.el-transfer-panel .el-transfer-panel__footer{height:40px;background:#FFF;margin:0;padding:0;border-top:1px solid #EBEEF5;position:absolute;bottom:0;left:0;width:100%;z-index:1}.el-transfer-panel .el-transfer-panel__footer::after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-container,.el-timeline-item__node{display:-webkit-box;display:-ms-flexbox}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:#606266}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:30px;line-height:30px;padding:6px 15px 0;color:#909399;text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{height:14px;width:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner::after{height:6px;width:3px;left:4px}.el-container{display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:0}.el-container.is-vertical,.el-drawer{-webkit-box-orient:vertical;-webkit-box-direction:normal}.el-aside,.el-header{-webkit-box-sizing:border-box}.el-container.is-vertical{-ms-flex-direction:column;flex-direction:column}.el-header{padding:0 20px;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0}.el-aside{overflow:auto;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0}.el-footer,.el-main{-webkit-box-sizing:border-box}.el-main{display:block;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-preferred-size:auto;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:20px}.el-footer{padding:0 20px;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0}.el-timeline{margin:0;font-size:14px;list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid #E4E7ED}.el-timeline-item__icon{color:#FFF;font-size:13px}.el-timeline-item__node{position:absolute;background-color:#E4E7ED;border-radius:50%;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-image__error,.el-timeline-item__dot{display:-webkit-box;display:-ms-flexbox}.el-timeline-item__node--normal{left:-1px;width:12px;height:12px}.el-timeline-item__node--large{left:-2px;width:14px;height:14px}.el-timeline-item__node--primary{background-color:#409EFF}.el-timeline-item__node--success{background-color:#67C23A}.el-timeline-item__node--warning{background-color:#E6A23C}.el-timeline-item__node--danger{background-color:#F56C6C}.el-timeline-item__node--info{background-color:#909399}.el-timeline-item__dot{position:absolute;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-timeline-item__content{color:#303133}.el-timeline-item__timestamp{color:#909399;line-height:1;font-size:13px}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-link{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;padding:0}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid #409EFF}.el-link.el-link--default:after,.el-link.el-link--primary.is-underline:hover:after,.el-link.el-link--primary:after{border-color:#409EFF}.el-link.is-disabled{cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default{color:#606266}.el-link.el-link--default:hover{color:#409EFF}.el-link.el-link--default.is-disabled{color:#C0C4CC}.el-link.el-link--primary{color:#409EFF}.el-link.el-link--primary:hover{color:#66b1ff}.el-link.el-link--primary.is-disabled{color:#a0cfff}.el-link.el-link--danger.is-underline:hover:after,.el-link.el-link--danger:after{border-color:#F56C6C}.el-link.el-link--danger{color:#F56C6C}.el-link.el-link--danger:hover{color:#f78989}.el-link.el-link--danger.is-disabled{color:#fab6b6}.el-link.el-link--success.is-underline:hover:after,.el-link.el-link--success:after{border-color:#67C23A}.el-link.el-link--success{color:#67C23A}.el-link.el-link--success:hover{color:#85ce61}.el-link.el-link--success.is-disabled{color:#b3e19d}.el-link.el-link--warning.is-underline:hover:after,.el-link.el-link--warning:after{border-color:#E6A23C}.el-link.el-link--warning{color:#E6A23C}.el-link.el-link--warning:hover{color:#ebb563}.el-link.el-link--warning.is-disabled{color:#f3d19e}.el-link.el-link--info.is-underline:hover:after,.el-link.el-link--info:after{border-color:#909399}.el-link.el-link--info{color:#909399}.el-link.el-link--info:hover{color:#a6a9ad}.el-link.el-link--info.is-disabled{color:#c8c9cc}.el-divider{background-color:#DCDFE6;position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative}.el-divider__text{position:absolute;background-color:#FFF;padding:0 20px;color:#303133}.el-image__error,.el-image__placeholder{background:#F5F7FA}.el-divider__text.is-left{left:20px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.el-divider__text.is-center{left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.el-image__error,.el-image__inner,.el-image__placeholder{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top}.el-image__inner--center{position:relative;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:block}.el-image__error{display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#C0C4CC;vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;user-select:none}.el-button,.el-checkbox{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:24px;color:#fff;background-color:#606266}.el-image-viewer__canvas{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-image-viewer__actions{left:50%;bottom:30px;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:282px;height:44px;padding:0 23px;background-color:#606266;border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.el-image-viewer__next,.el-image-viewer__prev{top:50%;width:44px;height:44px;font-size:24px;color:#fff;background-color:#606266;border-color:#fff}.el-image-viewer__prev{-webkit-transform:translateY(-50%);transform:translateY(-50%);left:40px}.el-image-viewer__next{-webkit-transform:translateY(-50%);transform:translateY(-50%);right:40px;text-indent:2px}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in .3s;animation:viewer-fade-in .3s}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out .3s;animation:viewer-fade-out .3s}@-webkit-keyframes viewer-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@keyframes viewer-fade-in{0%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}100%{-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0);opacity:0}}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFF;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button:focus,.el-button:hover{color:#409EFF;border-color:#c6e2ff;background-color:#ecf5ff}.el-button:active{color:#3a8ee6;border-color:#3a8ee6;outline:0}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-plain:focus,.el-button.is-plain:hover{background:#FFF;border-color:#409EFF;color:#409EFF}.el-button.is-active,.el-button.is-plain:active{color:#3a8ee6;border-color:#3a8ee6}.el-button.is-plain:active{background:#FFF;outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:focus,.el-button.is-disabled.is-plain:hover{background-color:#FFF;border-color:#EBEEF5;color:#C0C4CC}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:'';position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:rgba(255,255,255,.35)}.el-button.is-round{border-radius:20px;padding:12px 23px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--primary{color:#FFF;background-color:#409EFF;border-color:#409EFF}.el-button--primary:focus,.el-button--primary:hover{background:#66b1ff;border-color:#66b1ff;color:#FFF}.el-button--primary.is-active,.el-button--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF}.el-button--primary:active{outline:0}.el-button--primary.is-disabled,.el-button--primary.is-disabled:active,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:hover{color:#FFF;background-color:#a0cfff;border-color:#a0cfff}.el-button--primary.is-plain{color:#409EFF;background:#ecf5ff;border-color:#b3d8ff}.el-button--primary.is-plain:focus,.el-button--primary.is-plain:hover{background:#409EFF;border-color:#409EFF;color:#FFF}.el-button--primary.is-plain:active{background:#3a8ee6;border-color:#3a8ee6;color:#FFF;outline:0}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover{color:#8cc5ff;background-color:#ecf5ff;border-color:#d9ecff}.el-button--success{color:#FFF;background-color:#67C23A;border-color:#67C23A}.el-button--success:focus,.el-button--success:hover{background:#85ce61;border-color:#85ce61;color:#FFF}.el-button--success.is-active,.el-button--success:active{background:#5daf34;border-color:#5daf34;color:#FFF}.el-button--success:active{outline:0}.el-button--success.is-disabled,.el-button--success.is-disabled:active,.el-button--success.is-disabled:focus,.el-button--success.is-disabled:hover{color:#FFF;background-color:#b3e19d;border-color:#b3e19d}.el-button--success.is-plain{color:#67C23A;background:#f0f9eb;border-color:#c2e7b0}.el-button--success.is-plain:focus,.el-button--success.is-plain:hover{background:#67C23A;border-color:#67C23A;color:#FFF}.el-button--success.is-plain:active{background:#5daf34;border-color:#5daf34;color:#FFF;outline:0}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover{color:#a4da89;background-color:#f0f9eb;border-color:#e1f3d8}.el-button--warning{color:#FFF;background-color:#E6A23C;border-color:#E6A23C}.el-button--warning:focus,.el-button--warning:hover{background:#ebb563;border-color:#ebb563;color:#FFF}.el-button--warning.is-active,.el-button--warning:active{background:#cf9236;border-color:#cf9236;color:#FFF}.el-button--warning:active{outline:0}.el-button--warning.is-disabled,.el-button--warning.is-disabled:active,.el-button--warning.is-disabled:focus,.el-button--warning.is-disabled:hover{color:#FFF;background-color:#f3d19e;border-color:#f3d19e}.el-button--warning.is-plain{color:#E6A23C;background:#fdf6ec;border-color:#f5dab1}.el-button--warning.is-plain:focus,.el-button--warning.is-plain:hover{background:#E6A23C;border-color:#E6A23C;color:#FFF}.el-button--warning.is-plain:active{background:#cf9236;border-color:#cf9236;color:#FFF;outline:0}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover{color:#f0c78a;background-color:#fdf6ec;border-color:#faecd8}.el-button--danger{color:#FFF;background-color:#F56C6C;border-color:#F56C6C}.el-button--danger:focus,.el-button--danger:hover{background:#f78989;border-color:#f78989;color:#FFF}.el-button--danger.is-active,.el-button--danger:active{background:#dd6161;border-color:#dd6161;color:#FFF}.el-button--danger:active{outline:0}.el-button--danger.is-disabled,.el-button--danger.is-disabled:active,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:hover{color:#FFF;background-color:#fab6b6;border-color:#fab6b6}.el-button--danger.is-plain{color:#F56C6C;background:#fef0f0;border-color:#fbc4c4}.el-button--danger.is-plain:focus,.el-button--danger.is-plain:hover{background:#F56C6C;border-color:#F56C6C;color:#FFF}.el-button--danger.is-plain:active{background:#dd6161;border-color:#dd6161;color:#FFF;outline:0}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover{color:#f9a7a7;background-color:#fef0f0;border-color:#fde2e2}.el-button--info{color:#FFF;background-color:#909399;border-color:#909399}.el-button--info:focus,.el-button--info:hover{background:#a6a9ad;border-color:#a6a9ad;color:#FFF}.el-button--info.is-active,.el-button--info:active{background:#82848a;border-color:#82848a;color:#FFF}.el-button--info:active{outline:0}.el-button--info.is-disabled,.el-button--info.is-disabled:active,.el-button--info.is-disabled:focus,.el-button--info.is-disabled:hover{color:#FFF;background-color:#c8c9cc;border-color:#c8c9cc}.el-button--info.is-plain{color:#909399;background:#f4f4f5;border-color:#d3d4d6}.el-button--info.is-plain:focus,.el-button--info.is-plain:hover{background:#909399;border-color:#909399;color:#FFF}.el-button--info.is-plain:active{background:#82848a;border-color:#82848a;color:#FFF;outline:0}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover{color:#bcbec2;background-color:#f4f4f5;border-color:#e9e9eb}.el-button--text,.el-button--text.is-disabled,.el-button--text.is-disabled:focus,.el-button--text.is-disabled:hover,.el-button--text:active{border-color:transparent}.el-button--medium{padding:10px 20px;font-size:14px;border-radius:4px}.el-button--mini,.el-button--small{font-size:12px;border-radius:3px}.el-button--medium.is-round{padding:10px 20px}.el-button--medium.is-circle{padding:10px}.el-button--small,.el-button--small.is-round{padding:9px 15px}.el-button--small.is-circle{padding:9px}.el-button--mini,.el-button--mini.is-round{padding:7px 15px}.el-button--mini.is-circle{padding:7px}.el-button--text{color:#409EFF;background:0 0;padding-left:0;padding-right:0}.el-button--text:focus,.el-button--text:hover{color:#66b1ff;border-color:transparent;background-color:transparent}.el-button--text:active{color:#3a8ee6;background-color:transparent}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group::after,.el-button-group::before{display:table;content:""}.el-button-group::after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button.is-disabled{z-index:1}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-radius:4px}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:20px}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button.is-active,.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--primary:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--primary:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--success:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--success:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--warning:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--warning:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--danger:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--danger:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--info:first-child{border-right-color:rgba(255,255,255,.5)}.el-button-group .el-button--info:last-child{border-left-color:rgba(255,255,255,.5)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:rgba(255,255,255,.5);border-right-color:rgba(255,255,255,.5)}.el-calendar{background-color:#fff}.el-calendar__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:12px 20px;border-bottom:1px solid #EBEEF5}.el-backtop,.el-page-header{display:-webkit-box;display:-ms-flexbox}.el-calendar__title{color:#000;-ms-flex-item-align:center;align-self:center}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{padding:12px 0;color:#606266;font-weight:400}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:#C0C4CC}.el-backtop,.el-calendar-table td.is-today{color:#409EFF}.el-calendar-table td{border-bottom:1px solid #EBEEF5;border-right:1px solid #EBEEF5;vertical-align:top;-webkit-transition:background-color .2s ease;transition:background-color .2s ease}.el-calendar-table td.is-selected{background-color:#F2F8FE}.el-calendar-table tr:first-child td{border-top:1px solid #EBEEF5}.el-calendar-table tr td:first-child{border-left:1px solid #EBEEF5}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px;height:85px}.el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:#F2F8FE}.el-backtop{position:fixed;background-color:#FFF;width:40px;height:40px;border-radius:50%;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:20px;-webkit-box-shadow:0 0 6px rgba(0,0,0,.12);box-shadow:0 0 6px rgba(0,0,0,.12);cursor:pointer;z-index:5}.el-backtop:hover{background-color:#F2F6FC}.el-page-header{display:flex;line-height:24px}.el-page-header__left{display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer;margin-right:40px;position:relative}.el-page-header__left::after{content:"";position:absolute;width:1px;height:16px;right:-20px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background-color:#DCDFE6}.el-checkbox,.el-checkbox__input{display:inline-block;position:relative;white-space:nowrap}.el-page-header__left .el-icon-back{font-size:18px;margin-right:6px;-ms-flex-item-align:center;align-self:center}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:#303133}.el-checkbox{color:#606266;font-weight:500;font-size:14px;cursor:pointer;user-select:none;margin-right:30px}.el-checkbox-button__inner,.el-radio{font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.el-checkbox.is-bordered{padding:9px 20px 9px 10px;border-radius:4px;border:1px solid #DCDFE6;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:normal;height:40px}.el-checkbox.is-bordered.is-checked{border-color:#409EFF}.el-checkbox.is-bordered.is-disabled{border-color:#EBEEF5;cursor:not-allowed}.el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:10px}.el-checkbox.is-bordered.el-checkbox--medium{padding:7px 20px 7px 10px;border-radius:4px;height:36px}.el-checkbox.is-bordered.el-checkbox--medium .el-checkbox__label{line-height:17px;font-size:14px}.el-checkbox.is-bordered.el-checkbox--medium .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:5px 15px 5px 10px;border-radius:3px;height:32px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{line-height:15px;font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner::after{height:6px;width:2px}.el-checkbox.is-bordered.el-checkbox--mini{padding:3px 15px 3px 10px;border-radius:3px;height:28px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__label{line-height:12px;font-size:12px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--mini .el-checkbox__inner::after{height:6px;width:2px}.el-checkbox__input{cursor:pointer;outline:0;line-height:1;vertical-align:middle}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:#edf2fc;border-color:#DCDFE6;cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner::after{cursor:not-allowed;border-color:#C0C4CC}.el-checkbox__input.is-disabled .el-checkbox__inner+.el-checkbox__label{cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:#F2F6FC;border-color:#DCDFE6}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after{border-color:#C0C4CC}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:#F2F6FC;border-color:#DCDFE6}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner::before{background-color:#C0C4CC;border-color:#C0C4CC}.el-checkbox__input.is-checked .el-checkbox__inner,.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#409EFF;border-color:#409EFF}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:#C0C4CC;cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner::after{-webkit-transform:rotate(45deg) scaleY(1);transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:#409EFF}.el-checkbox__input.is-focus .el-checkbox__inner{border-color:#409EFF}.el-checkbox__input.is-indeterminate .el-checkbox__inner::before{content:'';position:absolute;display:block;background-color:#FFF;height:2px;-webkit-transform:scale(.5);transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner::after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:1px solid #DCDFE6;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;background-color:#FFF;z-index:1;-webkit-transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:#409EFF}.el-checkbox__inner::after{-webkit-box-sizing:content-box;box-sizing:content-box;content:"";border:1px solid #FFF;border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;-webkit-transform:rotate(45deg) scaleY(0);transform:rotate(45deg) scaleY(0);width:3px;-webkit-transition:-webkit-transform .15s ease-in .05s;transition:-webkit-transform .15s ease-in .05s;transition:transform .15s ease-in .05s;transition:transform .15s ease-in .05s,-webkit-transform .15s ease-in .05s;-webkit-transform-origin:center;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox-button,.el-checkbox-button__inner{display:inline-block;position:relative}.el-checkbox__label{display:inline-block;padding-left:10px;line-height:19px;font-size:14px}.el-checkbox:last-of-type{margin-right:0}.el-checkbox-button__inner{line-height:1;white-space:nowrap;vertical-align:middle;cursor:pointer;background:#FFF;border:1px solid #DCDFE6;border-left:0;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);transition:all .3s cubic-bezier(.645,.045,.355,1);padding:12px 20px;font-size:14px;border-radius:0}.el-checkbox-button__inner.is-round{padding:12px 20px}.el-checkbox-button__inner:hover{color:#409EFF}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-radio,.el-radio__input{line-height:1;white-space:nowrap;outline:0}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;z-index:-1}.el-radio,.el-radio__inner,.el-radio__input{position:relative;display:inline-block}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:#FFF;background-color:#409EFF;border-color:#409EFF;-webkit-box-shadow:-1px 0 0 0 #8cc5ff;box-shadow:-1px 0 0 0 #8cc5ff}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:#409EFF}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:#C0C4CC;cursor:not-allowed;background-image:none;background-color:#FFF;border-color:#EBEEF5;-webkit-box-shadow:none;box-shadow:none}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:#EBEEF5}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:1px solid #DCDFE6;border-radius:4px 0 0 4px;-webkit-box-shadow:none!important;box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:#409EFF}.el-checkbox-button:last-child .el-checkbox-button__inner{border-radius:0 4px 4px 0}.el-checkbox-button--medium .el-checkbox-button__inner{padding:10px 20px;font-size:14px;border-radius:0}.el-checkbox-button--medium .el-checkbox-button__inner.is-round{padding:10px 20px}.el-checkbox-button--small .el-checkbox-button__inner{padding:9px 15px;font-size:12px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:9px 15px}.el-checkbox-button--mini .el-checkbox-button__inner{padding:7px 15px;font-size:12px;border-radius:0}.el-checkbox-button--mini .el-checkbox-button__inner.is-round{padding:7px 15px}.el-checkbox-group{font-size:0}.el-radio,.el-radio--medium.is-bordered .el-radio__label{font-size:14px}.el-radio{color:#606266;cursor:pointer;margin-right:30px}.el-cascader-node>.el-radio,.el-radio:last-child{margin-right:0}.el-radio.is-bordered{padding:12px 20px 0 10px;border-radius:4px;border:1px solid #DCDFE6;-webkit-box-sizing:border-box;box-sizing:border-box;height:40px}.el-radio.is-bordered.is-checked{border-color:#409EFF}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:#EBEEF5}.el-radio__input.is-disabled .el-radio__inner,.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:#F5F7FA;border-color:#E4E7ED}.el-radio.is-bordered+.el-radio.is-bordered{margin-left:10px}.el-radio--medium.is-bordered{padding:10px 20px 0 10px;border-radius:4px;height:36px}.el-radio--mini.is-bordered .el-radio__label,.el-radio--small.is-bordered .el-radio__label{font-size:12px}.el-radio--medium.is-bordered .el-radio__inner{height:14px;width:14px}.el-radio--small.is-bordered{padding:8px 15px 0 10px;border-radius:3px;height:32px}.el-radio--small.is-bordered .el-radio__inner{height:12px;width:12px}.el-radio--mini.is-bordered{padding:6px 15px 0 10px;border-radius:3px;height:28px}.el-radio--mini.is-bordered .el-radio__inner{height:12px;width:12px}.el-radio__input{cursor:pointer;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner::after{cursor:not-allowed;background-color:#F5F7FA}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner::after{background-color:#C0C4CC}.el-radio__input.is-disabled+span.el-radio__label{color:#C0C4CC;cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:#409EFF;background:#409EFF}.el-radio__input.is-checked .el-radio__inner::after{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:#409EFF}.el-radio__input.is-focus .el-radio__inner{border-color:#409EFF}.el-radio__inner{border:1px solid #DCDFE6;border-radius:100%;width:14px;height:14px;background-color:#FFF;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.el-radio__inner:hover{border-color:#409EFF}.el-radio__inner::after{width:4px;height:4px;border-radius:100%;background-color:#FFF;content:"";position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);-webkit-transition:-webkit-transform .15s ease-in;transition:-webkit-transform .15s ease-in;transition:transform .15s ease-in;transition:transform .15s ease-in,-webkit-transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{-webkit-box-shadow:0 0 2px 2px #409EFF;box-shadow:0 0 2px 2px #409EFF}.el-radio__label{font-size:14px;padding-left:10px}.el-scrollbar{overflow:hidden;position:relative}.el-scrollbar:active>.el-scrollbar__bar,.el-scrollbar:focus>.el-scrollbar__bar,.el-scrollbar:hover>.el-scrollbar__bar{opacity:1;-webkit-transition:opacity 340ms ease-out;transition:opacity 340ms ease-out}.el-scrollbar__wrap{overflow:scroll;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{width:0;height:0}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);-webkit-transition:.3s background-color;transition:.3s background-color}.el-scrollbar__thumb:hover{background-color:rgba(144,147,153,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px;opacity:0;-webkit-transition:opacity 120ms ease-out;transition:opacity 120ms ease-out}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-cascader-panel{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:4px;font-size:14px}.el-cascader-panel.is-bordered{border:1px solid #E4E7ED;border-radius:4px}.el-cascader-menu{min-width:180px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#606266;border-right:solid 1px #E4E7ED}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap{height:204px}.el-cascader-menu__list{position:relative;min-height:100%;margin:0;padding:6px 0;list-style:none;-webkit-box-sizing:border-box;box-sizing:border-box}.el-avatar,.el-drawer{-webkit-box-sizing:border-box;overflow:hidden}.el-cascader-menu__hover-zone{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.el-cascader-menu__empty-text{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center;color:#C0C4CC}.el-cascader-node{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 30px 0 20px;height:34px;line-height:34px;outline:0}.el-cascader-node.is-selectable.in-active-path{color:#606266}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:#409EFF;font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:#F5F7FA}.el-cascader-node.is-disabled{color:#C0C4CC;cursor:not-allowed}.el-cascader-node__prefix{position:absolute;left:10px}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-avatar{display:inline-block;box-sizing:border-box;text-align:center;color:#fff;background:#C0C4CC;width:40px;height:40px;line-height:40px;font-size:14px}.el-avatar>img{display:block;height:100%;vertical-align:middle}.el-drawer,.el-drawer__header{display:-webkit-box;display:-ms-flexbox}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:4px}.el-avatar--icon{font-size:18px}.el-avatar--large{width:40px;height:40px;line-height:40px}.el-avatar--medium{width:36px;height:36px;line-height:36px}.el-avatar--small{width:28px;height:28px;line-height:28px}.el-drawer.btt,.el-drawer.ttb,.el-drawer__container{left:0;right:0;width:100%}.el-drawer.ltr,.el-drawer.rtl,.el-drawer__container{top:0;bottom:0;height:100%}@-webkit-keyframes el-drawer-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes el-drawer-fade-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes rtl-drawer-in{0%{-webkit-transform:translate(100%,0);transform:translate(100%,0)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes rtl-drawer-in{0%{-webkit-transform:translate(100%,0);transform:translate(100%,0)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@-webkit-keyframes rtl-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(100%,0);transform:translate(100%,0)}}@keyframes rtl-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(100%,0);transform:translate(100%,0)}}@-webkit-keyframes ltr-drawer-in{0%{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes ltr-drawer-in{0%{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@-webkit-keyframes ltr-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}}@keyframes ltr-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(-100%,0);transform:translate(-100%,0)}}@-webkit-keyframes ttb-drawer-in{0%{-webkit-transform:translate(0,-100%);transform:translate(0,-100%)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes ttb-drawer-in{0%{-webkit-transform:translate(0,-100%);transform:translate(0,-100%)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@-webkit-keyframes ttb-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(0,-100%);transform:translate(0,-100%)}}@keyframes ttb-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(0,-100%);transform:translate(0,-100%)}}@-webkit-keyframes btt-drawer-in{0%{-webkit-transform:translate(0,100%);transform:translate(0,100%)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes btt-drawer-in{0%{-webkit-transform:translate(0,100%);transform:translate(0,100%)}100%{-webkit-transform:translate(0,0);transform:translate(0,0)}}@-webkit-keyframes btt-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(0,100%);transform:translate(0,100%)}}@keyframes btt-drawer-out{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}100%{-webkit-transform:translate(0,100%);transform:translate(0,100%)}}.el-drawer{position:absolute;box-sizing:border-box;background-color:#FFF;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);outline:0}.el-drawer.rtl{-webkit-animation:rtl-drawer-out .3s;animation:rtl-drawer-out .3s;right:0}.el-drawer__open .el-drawer.rtl{-webkit-animation:rtl-drawer-in .3s 1ms;animation:rtl-drawer-in .3s 1ms}.el-drawer.ltr{-webkit-animation:ltr-drawer-out .3s;animation:ltr-drawer-out .3s;left:0}.el-drawer__open .el-drawer.ltr{-webkit-animation:ltr-drawer-in .3s 1ms;animation:ltr-drawer-in .3s 1ms}.el-drawer.ttb{-webkit-animation:ttb-drawer-out .3s;animation:ttb-drawer-out .3s;top:0}.el-drawer__open .el-drawer.ttb{-webkit-animation:ttb-drawer-in .3s 1ms;animation:ttb-drawer-in .3s 1ms}.el-drawer.btt{-webkit-animation:btt-drawer-out .3s;animation:btt-drawer-out .3s;bottom:0}.el-drawer__open .el-drawer.btt{-webkit-animation:btt-drawer-in .3s 1ms;animation:btt-drawer-in .3s 1ms}.el-drawer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;margin:0}.el-drawer__header{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:20px 20px 0}.el-drawer__header>:first-child{-webkit-box-flex:1;-ms-flex:1;flex:1}.el-drawer__title{margin:0;-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:inherit;font-size:1rem}.el-drawer__close-btn{border:none;cursor:pointer;font-size:20px;color:inherit;background-color:transparent}.el-drawer__body{-webkit-box-flex:1;-ms-flex:1;flex:1}.el-drawer__body>*{-webkit-box-sizing:border-box;box-sizing:border-box}.el-drawer__container{position:relative}.el-drawer-fade-enter-active{-webkit-animation:el-drawer-fade-in .3s;animation:el-drawer-fade-in .3s}.el-drawer-fade-leave-active{animation:el-drawer-fade-in .3s reverse}.el-popconfirm__main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{text-align:right;margin:0}
\ No newline at end of file
diff --git a/xcxjingqingmap/css/fonts/element-icons.ttf b/xcxjingqingmap/css/fonts/element-icons.ttf
deleted file mode 100644
index 91b74de..0000000
--- a/xcxjingqingmap/css/fonts/element-icons.ttf
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/css/fonts/element-icons.woff b/xcxjingqingmap/css/fonts/element-icons.woff
deleted file mode 100644
index 02b9a25..0000000
--- a/xcxjingqingmap/css/fonts/element-icons.woff
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/beizhu.png b/xcxjingqingmap/img/beizhu.png
deleted file mode 100644
index 323a213..0000000
--- a/xcxjingqingmap/img/beizhu.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/dianhua.png b/xcxjingqingmap/img/dianhua.png
deleted file mode 100644
index f5941a6..0000000
--- a/xcxjingqingmap/img/dianhua.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/dingwei.png b/xcxjingqingmap/img/dingwei.png
deleted file mode 100644
index 58a917e..0000000
--- a/xcxjingqingmap/img/dingwei.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/gaunbi.png b/xcxjingqingmap/img/gaunbi.png
deleted file mode 100644
index f3dfa18..0000000
--- a/xcxjingqingmap/img/gaunbi.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/gray.png b/xcxjingqingmap/img/gray.png
deleted file mode 100644
index 3d2024d..0000000
--- a/xcxjingqingmap/img/gray.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/green.png b/xcxjingqingmap/img/green.png
deleted file mode 100644
index f6db902..0000000
--- a/xcxjingqingmap/img/green.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/huifang.png b/xcxjingqingmap/img/huifang.png
deleted file mode 100644
index 0b8d52f..0000000
--- a/xcxjingqingmap/img/huifang.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/leixing.png b/xcxjingqingmap/img/leixing.png
deleted file mode 100644
index ba2bb3c..0000000
--- a/xcxjingqingmap/img/leixing.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/photo.png b/xcxjingqingmap/img/photo.png
deleted file mode 100644
index 74f4513..0000000
--- a/xcxjingqingmap/img/photo.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/red.png b/xcxjingqingmap/img/red.png
deleted file mode 100644
index a4f0271..0000000
--- a/xcxjingqingmap/img/red.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/ren.png b/xcxjingqingmap/img/ren.png
deleted file mode 100644
index f6200a0..0000000
--- a/xcxjingqingmap/img/ren.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/shijian.png b/xcxjingqingmap/img/shijian.png
deleted file mode 100644
index da0a0ff..0000000
--- a/xcxjingqingmap/img/shijian.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/shiping.png b/xcxjingqingmap/img/shiping.png
deleted file mode 100644
index 3e32230..0000000
--- a/xcxjingqingmap/img/shiping.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/shiping11.png b/xcxjingqingmap/img/shiping11.png
deleted file mode 100644
index c94662f..0000000
--- a/xcxjingqingmap/img/shiping11.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/xiangji.png b/xcxjingqingmap/img/xiangji.png
deleted file mode 100644
index 6aa4b02..0000000
--- a/xcxjingqingmap/img/xiangji.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/img/yellow.png b/xcxjingqingmap/img/yellow.png
deleted file mode 100644
index bdedf67..0000000
--- a/xcxjingqingmap/img/yellow.png
+++ /dev/null
Binary files differ
diff --git a/xcxjingqingmap/js/move.js b/xcxjingqingmap/js/move.js
deleted file mode 100644
index 11b5fbe..0000000
--- a/xcxjingqingmap/js/move.js
+++ /dev/null
@@ -1,127 +0,0 @@
-// 使用说明:(需要移动的dom,触摸块dom,跟随改变map dom)
-function myDomMove(dom, div, map) {
- this.m = $(dom);
- this.div = $(div);
- this.mapId = $(map);
- this.__xx = null;//鼠标实时位置
- this.__yy = null;
- this.__sx = null;//鼠标开始位置
- this.__sy = null;
- this.__dx = null;//dom位置
- this.__dy = null;
- this.mapH = null;//地图高度
- this.__wy = null;//屏幕高度
- this.state = "up";//dom状态默认up
-
- this.getMosePosition = (x, y) => {//获取鼠标位置
- this.__sx = x;
- this.__sy = y;
- // console.log(this.__sy, '鼠标开始');
-
- }
- this.getDomPosition = () => {//获取dom位置
- this.__dx = this.m.offset().left;
- this.__dy = this.m.offset().top;
- this.__wy = document.documentElement.clientHeight;
- // console.log(this.__dy, 'dom');
- }
- this.getMapHeight = () => {//获取地图高度
- var that = this;
- this.mapId.css("height", (index, value) => {
- that.mapH = parseFloat(value);
- })
- // console.log(that.mapH, 'map位置');
- }
- this.changeDomPosition = (x, y, dy) => {//改变dom位置
- var that = this;
- // this.mapId.css("height", (index, value) => {//改变地图高度
- // var h = this.mapH + y;
- // console.log(h);
- // return h ;
- // })
- this.m.animate({ top: dy + "px" }, 10);
-
- }
-
-
- //begin
- this.followFinger = (map, state = 14) => {//(地图实例,dom状态判断是向上还是向下)
- // console.log('开始跟随手指');
- var that = this;
- if(state != 14){
- that.state = state;
- // console.log(that.state);
- }
- that.getDomPosition();//获取dom位置
- that.getMapHeight();//获取地图高度
- var once = true;
- that.div.on('touchmove', function (e) {//获取鼠标位置
- e = e || window.event;
- that.__xx = e.touches[0].clientX;
- that.__yy = e.touches[0].clientY;
- if (once) {//获取第一次点击的位置
- once = false;
- that.getMosePosition(that.__xx, that.__yy);
- }
- // console.log(that.__yy, '鼠标');
- var h = that.__yy - that.__sy//鼠标移动距离y
-
- if (that.state == 'down') {//两种模式
- // console.log(that.state);
- if (h >= 0 && h + that.__dy <= that.__wy - 20) {
- that.changeDomPosition(0, h, h + that.__dy);//改变位置
- // console.log(that.state,h + that.__dy,112);
- }
- } else if (that.state == 'up') {
- if (h >= -that.__dy && h <= that.__wy - 20) {
- that.changeDomPosition(0, h, h + that.__wy - 20);//改变位置
- // console.log(that.state,h + that.__wy - 20,112);
- }
- }
-
- });
- that.div.on('touchend', function () {//抬起重置
- once = true;//抬起重置鼠标点击位置
- if (that.state == 'down') {//两种模式
- var chous = Math.abs(that.__yy - that.__sy) < that.__wy / 8;
- } else if (that.state == 'up') {
- var chous = Math.abs(that.__yy - that.__sy) > that.__wy / 8;
- }
- if (chous) {
- that.changeDomPosition(0, 0, (parseFloat(that.__wy / 10) * 2.999));//改变位置
- // that.getDomPosition();//抬起获取dom位置/持续停留使用
- that.state = 'down';
- $('#map').css("height", (index, value) => {//改变地图高度
- return '50%';
- })
- map.invalidateSize(true);//应用地图高度
- } else {
- that.changeDomPosition(0, 0, that.__wy - 50);//改变位置
- // that.getDomPosition();//抬起获取dom位置/持续停留使用
- that.state = 'up';
- $('#map').css("height", (index, value) => {//改变地图高度
- return '100%';
- })
- map.invalidateSize(true);//应用地图高度
- }
- that.getMapHeight();//抬起获取map高度
- });
- }
- this.destruction = () => {//初始化销毁
- this.m = $(dom);
- this.div = $(div);
- this.mapId = $(map);
- this.__xx = null;//鼠标实时位置
- this.__yy = null;
- this.__sx = null;//鼠标开始位置
- this.__sy = null;
- this.__dx = null;//dom位置
- this.__dy = null;
- this.mapH = null;//地图高度
- this.__wy = null;//屏幕高度
- this.state = "up";//dom状态默认up
- this.div.off();
- }
-}
-
-// export default myDomMove;
\ No newline at end of file
diff --git a/xcxjingqingmap/js/vueMain.js b/xcxjingqingmap/js/vueMain.js
deleted file mode 100644
index 7926132..0000000
--- a/xcxjingqingmap/js/vueMain.js
+++ /dev/null
@@ -1,251 +0,0 @@
-var me = new Vue({
- el: '#mapVue',
- data: {
- map: null,//map
- getdata: null,
- marker: null,
- layuiLayer: null,
- nowIndex: null,
-
- activeName: 'first',
-
- move: null,//存放移动实例
-
- seedata: '',
-
- nowPosition: '',
-
- shipingPopupShow: false,
- shipingM3u8Url: '',
- resultFeedbackPopupShow: false,
- popupDisplay: "none",
- },
- methods: {
- getDataList() {
- var that = this;
- // var url = 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/listAll';
- // axios.get(url).then((res) => {
- // that.getdata = res.data.data;
- that.beginCome();
- // })
- },
- beginCome() {
- this.getdata = this.getQueryVariable('data');//url解码
- console.log(this.getdata)
- this.getdata = [{
- jd: 115.91042800000002,
- wd: 28.68094757898212,
- state: 0,
- dtype: 0,
- size: 300,
- title: '第一个'
- }];//url解码
- this.map = this.beginMap(this.map, this.getdata);//创建并接受map
- this.move = new myDomMove('#seedata', '.title', '#map');
- // var dy = document.documentElement.clientHeight - 50;
- // $('#seedata').animate({ top: dy + "px" }, 10);
- // $('#map').css("height", (index, value) => {//改变地图高度
- // return '100%';
- // // })
- this.map.invalidateSize(true);//应用地图高度
- this.move.followFinger(this.map, 'down');
- },
- getQueryVariable(variable) {
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i = 0; i < vars.length; i++) {
- var pair = vars[i].split("=");
- if (pair[0] == variable) { return JSON.parse(decodeURI(pair[1])); }//解码url 和 JSON
- }
- return (false);
- },
- beginMap(map, data) {
- var that = this,
- center = [data[0].wd, data[0].jd],
- url = `/api/blade-jfpts/alarm/alarm/APP-getAlarm?id=${data[0].id}`;
- this.nowPosition = center;
- axios.post(url).then((res) => {
- // console.log(res)
- if (res.data.data.length != 0) {
- var dat = res.data.data[0];
- for (var key in dat) {
- if (dat[key] == null || dat[key] == '') {
- dat[key] = '暂无'
- }
- }
- this.seedata = dat;
-
- } else {
- this.seedata = data[0];
- }
- // console.log(this.seedata, 1524545453)
- })
-
-
- var createMap = () => {
- map = L.map('map', { //初始化地图
- center: center,
- zoom: 12,
- minZoom: 2,
- maxZoom: 17,
- attributionControl: false, //去掉右下角
- zoomControl: false, //去掉缩放
- });
- L.tileLayer( //添加切片图层
- "https://webmap-tile.sf-express.com/MapTileService/rt?x={x}&y={y}&z={z}", {//顺丰地图
- // "https://webmap-tile.sf-express.com/MapTileService/rt?fetchtype=static&x={x}&y={y}&z={z}&project=sfmap&pic_size=256&pic_type=png8&data_name=361100&data_format=merged-dat&data_type=normal", {//顺丰地图
- // "http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}", {
-
- // subdomains: ["1", "2", "3", "4"],
- // attribution: "高德"
- }
- ).addTo(map);
- }
- createMap();
- var markers = L.markerClusterGroup();
-
- var transportIcon = L.Icon.extend({ //图标初始化
- options: {
- iconSize: [30, 30], // 图标尺寸
- // iconAnchor: [30, 30], // 图标偏移量
- // popupAnchor: [-20, -20] // 弹出框偏移量
- }
- });
- var carIcon = new transportIcon({ //引入图标
- iconUrl: './img/gray.png'
- }),
- planeIcon = new transportIcon({
- iconUrl: './img/green.png'
- }),
- busIcon = new transportIcon({
- iconUrl: './img/red.png'
- });
- // console.log(data, 43545343)
- var setData = (a) => {//定义图标
- marker = L.marker([a.wd, a.jd], {
- icon: a.dtype == 0 ? carIcon : a.dtype == 1 ? planeIcon : a.dtype == 2 ? busIcon : '',
- // title: title,
- myData: {//自定义数据
- ...a
- }
- });
- }
- for (var i = 0; i < data.length; i++) {
- var a = data[i];
- // var title = a.title;
- if (a.dtype == 0) {
- setData(a);
- } else if (a.dtype == 1) {
- setData(a);
- } else if (a.dtype == 2) {
- setData(a);
- }
- // marker.bindPopup(title);
- markers.addLayer(marker);
- }
- map.addLayer(markers);
-
- markers.on('click', function (a) {
- // that.drawer = true;
- // that.seedata = a.layer.options.myData;
- $('#seedata').css('top', '');
- $('#map').css("height", (index, value) => {//改变地图高度
- return '50%';
- })
- map.invalidateSize(true);//应用地图高度
- // console.log(a.layer.options.myData);
- that.move.destruction();
- that.move.followFinger(map, 'down');
-
- });
- that.seedata = data[0];
- // map.on('mousemove', (e) => {//实时显示坐标
- // let latlng = e.latlng;
- // console.log(latlng);// {lat: 30.59, lng: 114.32}
- // });
- return map;//抛出map
- },
- handleClick(tab, event) {
- // console.log(tab, event);
- },
-
- locationMap() {
- this.map.setView(this.nowPosition, 12);
- // console.log(wx,12);
- // wx.miniProgram.navigateTo({url: 'pages/workbench/workbench'})
- },
- shipingClick(open) {//打开视频
- if (open) {
- this.openRealVideoBox(this.seedata.serialNumber, this.seedata.channelNumber, this.seedata.deviceNumber, this.seedata.manufacturer);
- } else {
- this.shipingPopupShow = false;
- }
- },
- resultFeedbackClick() {//结果反馈跳转小程序
- this.gotoxcx('policeDetails');
- },
- openRealVideoBox(serialNumber, channelNumber, deviceNumber, manufacturer) {//获取视频地址
- var that = this;
- if (manufacturer == "HK") {
- axios
- .get(
- `/api/blade-jfpts/equipment/equipment/selectEquimentPlayInfo?number=${deviceNumber}&bmp=m3u8&manufacturer=${manufacturer}`
- )
- .then((result) => {
- that.videoSource = result.data.data.address;
- that.shipingM3u8Url = decodeURIComponent(that.videoSource);
- that.shipingPopupShow = true;
- })
- .ce;
- } else {
- var newAxios = axios.create({
- baseURL: "https://web.byisf.com:18000",
- withCredentials: false,
- headers: {
- "Content-type": "application/x-www-form-urlencoded",
- },
- });
- newAxios
- .post(
- "/api_control",
- {},
- {
- params: {
- param: JSON.stringify({ PktType: "GetAccessToken" }),
- },
- }
- )
- .then((res) => {
- newAxios
- .get(
- `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${serialNumber}&chl=${channelNumber}`
- )
- .then((result) => {
- that.videoSource = result.data.data.m3u8;
- that.shipingM3u8Url = decodeURIComponent(that.videoSource);
- that.shipingPopupShow = true;
- });
- });
- }
- },
- upData() {
- console.log('上传信息成功')
- },
- gotoxcx(routs) {
- wx.miniProgram.navigateTo({
- url:`../poput/workbench/policeDetails/${routs}?id=${this.seedata.id}`, //指定跳转至小程序页面的门路
- success: function(){
- console.log('success'); //页面跳转胜利的回调函数
- }
- });
- }
-
- },
- created() {
- },
- mounted() {
- this.getDataList();
- },
- wacth: {
- }
-})
\ No newline at end of file
diff --git a/xcxjingqingmap/lid/MarkerCluster.Default.css b/xcxjingqingmap/lid/MarkerCluster.Default.css
deleted file mode 100644
index bbc8c9f..0000000
--- a/xcxjingqingmap/lid/MarkerCluster.Default.css
+++ /dev/null
@@ -1,60 +0,0 @@
-.marker-cluster-small {
- background-color: rgba(181, 226, 140, 0.6);
- }
-.marker-cluster-small div {
- background-color: rgba(110, 204, 57, 0.6);
- }
-
-.marker-cluster-medium {
- background-color: rgba(241, 211, 87, 0.6);
- }
-.marker-cluster-medium div {
- background-color: rgba(240, 194, 12, 0.6);
- }
-
-.marker-cluster-large {
- background-color: rgba(253, 156, 115, 0.6);
- }
-.marker-cluster-large div {
- background-color: rgba(241, 128, 23, 0.6);
- }
-
- /* IE 6-8 fallback colors */
-.leaflet-oldie .marker-cluster-small {
- background-color: rgb(181, 226, 140);
- }
-.leaflet-oldie .marker-cluster-small div {
- background-color: rgb(110, 204, 57);
- }
-
-.leaflet-oldie .marker-cluster-medium {
- background-color: rgb(241, 211, 87);
- }
-.leaflet-oldie .marker-cluster-medium div {
- background-color: rgb(240, 194, 12);
- }
-
-.leaflet-oldie .marker-cluster-large {
- background-color: rgb(253, 156, 115);
- }
-.leaflet-oldie .marker-cluster-large div {
- background-color: rgb(241, 128, 23);
-}
-
-.marker-cluster {
- background-clip: padding-box;
- border-radius: 20px;
- }
-.marker-cluster div {
- width: 30px;
- height: 30px;
- margin-left: 5px;
- margin-top: 5px;
-
- text-align: center;
- border-radius: 15px;
- font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
- }
-.marker-cluster span {
- line-height: 30px;
- }
\ No newline at end of file
diff --git a/xcxjingqingmap/lid/MarkerCluster.css b/xcxjingqingmap/lid/MarkerCluster.css
deleted file mode 100644
index c60d71b..0000000
--- a/xcxjingqingmap/lid/MarkerCluster.css
+++ /dev/null
@@ -1,14 +0,0 @@
-.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
- -webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
- -moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
- -o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
- transition: transform 0.3s ease-out, opacity 0.3s ease-in;
-}
-
-.leaflet-cluster-spider-leg {
- /* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
- -webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
- -moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
- -o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
- transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
-}
diff --git a/xcxjingqingmap/lid/leaflet.css b/xcxjingqingmap/lid/leaflet.css
deleted file mode 100644
index 017fa0e..0000000
--- a/xcxjingqingmap/lid/leaflet.css
+++ /dev/null
@@ -1,640 +0,0 @@
-/* required styles */
-
-.leaflet-pane,
-.leaflet-tile,
-.leaflet-marker-icon,
-.leaflet-marker-shadow,
-.leaflet-tile-container,
-.leaflet-pane > svg,
-.leaflet-pane > canvas,
-.leaflet-zoom-box,
-.leaflet-image-layer,
-.leaflet-layer {
- position: absolute;
- left: 0;
- top: 0;
- }
-.leaflet-container {
- overflow: hidden;
- }
-.leaflet-tile,
-.leaflet-marker-icon,
-.leaflet-marker-shadow {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none;
- -webkit-user-drag: none;
- }
-/* Prevents IE11 from highlighting tiles in blue */
-.leaflet-tile::selection {
- background: transparent;
-}
-/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
-.leaflet-safari .leaflet-tile {
- image-rendering: -webkit-optimize-contrast;
- }
-/* hack that prevents hw layers "stretching" when loading new tiles */
-.leaflet-safari .leaflet-tile-container {
- width: 1600px;
- height: 1600px;
- -webkit-transform-origin: 0 0;
- }
-.leaflet-marker-icon,
-.leaflet-marker-shadow {
- display: block;
- }
-/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
-/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
-.leaflet-container .leaflet-overlay-pane svg,
-.leaflet-container .leaflet-marker-pane img,
-.leaflet-container .leaflet-shadow-pane img,
-.leaflet-container .leaflet-tile-pane img,
-.leaflet-container img.leaflet-image-layer,
-.leaflet-container .leaflet-tile {
- max-width: none !important;
- max-height: none !important;
- }
-
-.leaflet-container.leaflet-touch-zoom {
- -ms-touch-action: pan-x pan-y;
- touch-action: pan-x pan-y;
- }
-.leaflet-container.leaflet-touch-drag {
- -ms-touch-action: pinch-zoom;
- /* Fallback for FF which doesn't support pinch-zoom */
- touch-action: none;
- touch-action: pinch-zoom;
-}
-.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
- -ms-touch-action: none;
- touch-action: none;
-}
-.leaflet-container {
- -webkit-tap-highlight-color: transparent;
-}
-.leaflet-container a {
- -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
-}
-.leaflet-tile {
- filter: inherit;
- visibility: hidden;
- }
-.leaflet-tile-loaded {
- visibility: inherit;
- }
-.leaflet-zoom-box {
- width: 0;
- height: 0;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- z-index: 800;
- }
-/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
-.leaflet-overlay-pane svg {
- -moz-user-select: none;
- }
-
-.leaflet-pane { z-index: 400; }
-
-.leaflet-tile-pane { z-index: 200; }
-.leaflet-overlay-pane { z-index: 400; }
-.leaflet-shadow-pane { z-index: 500; }
-.leaflet-marker-pane { z-index: 600; }
-.leaflet-tooltip-pane { z-index: 650; }
-.leaflet-popup-pane { z-index: 700; }
-
-.leaflet-map-pane canvas { z-index: 100; }
-.leaflet-map-pane svg { z-index: 200; }
-
-.leaflet-vml-shape {
- width: 1px;
- height: 1px;
- }
-.lvml {
- behavior: url(#default#VML);
- display: inline-block;
- position: absolute;
- }
-
-
-/* control positioning */
-
-.leaflet-control {
- position: relative;
- z-index: 800;
- pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
- pointer-events: auto;
- }
-.leaflet-top,
-.leaflet-bottom {
- position: absolute;
- z-index: 1000;
- pointer-events: none;
- }
-.leaflet-top {
- top: 0;
- }
-.leaflet-right {
- right: 0;
- }
-.leaflet-bottom {
- bottom: 0;
- }
-.leaflet-left {
- left: 0;
- }
-.leaflet-control {
- float: left;
- clear: both;
- }
-.leaflet-right .leaflet-control {
- float: right;
- }
-.leaflet-top .leaflet-control {
- margin-top: 10px;
- }
-.leaflet-bottom .leaflet-control {
- margin-bottom: 10px;
- }
-.leaflet-left .leaflet-control {
- margin-left: 10px;
- }
-.leaflet-right .leaflet-control {
- margin-right: 10px;
- }
-
-
-/* zoom and fade animations */
-
-.leaflet-fade-anim .leaflet-tile {
- will-change: opacity;
- }
-.leaflet-fade-anim .leaflet-popup {
- opacity: 0;
- -webkit-transition: opacity 0.2s linear;
- -moz-transition: opacity 0.2s linear;
- transition: opacity 0.2s linear;
- }
-.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
- opacity: 1;
- }
-.leaflet-zoom-animated {
- -webkit-transform-origin: 0 0;
- -ms-transform-origin: 0 0;
- transform-origin: 0 0;
- }
-.leaflet-zoom-anim .leaflet-zoom-animated {
- will-change: transform;
- }
-.leaflet-zoom-anim .leaflet-zoom-animated {
- -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
- -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
- transition: transform 0.25s cubic-bezier(0,0,0.25,1);
- }
-.leaflet-zoom-anim .leaflet-tile,
-.leaflet-pan-anim .leaflet-tile {
- -webkit-transition: none;
- -moz-transition: none;
- transition: none;
- }
-
-.leaflet-zoom-anim .leaflet-zoom-hide {
- visibility: hidden;
- }
-
-
-/* cursors */
-
-.leaflet-interactive {
- cursor: pointer;
- }
-.leaflet-grab {
- cursor: -webkit-grab;
- cursor: -moz-grab;
- cursor: grab;
- }
-.leaflet-crosshair,
-.leaflet-crosshair .leaflet-interactive {
- cursor: crosshair;
- }
-.leaflet-popup-pane,
-.leaflet-control {
- cursor: auto;
- }
-.leaflet-dragging .leaflet-grab,
-.leaflet-dragging .leaflet-grab .leaflet-interactive,
-.leaflet-dragging .leaflet-marker-draggable {
- cursor: move;
- cursor: -webkit-grabbing;
- cursor: -moz-grabbing;
- cursor: grabbing;
- }
-
-/* marker & overlays interactivity */
-.leaflet-marker-icon,
-.leaflet-marker-shadow,
-.leaflet-image-layer,
-.leaflet-pane > svg path,
-.leaflet-tile-container {
- pointer-events: none;
- }
-
-.leaflet-marker-icon.leaflet-interactive,
-.leaflet-image-layer.leaflet-interactive,
-.leaflet-pane > svg path.leaflet-interactive,
-svg.leaflet-image-layer.leaflet-interactive path {
- pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
- pointer-events: auto;
- }
-
-/* visual tweaks */
-
-.leaflet-container {
- background: #ddd;
- outline: 0;
- }
-.leaflet-container a {
- color: #0078A8;
- }
-.leaflet-container a.leaflet-active {
- outline: 2px solid orange;
- }
-.leaflet-zoom-box {
- border: 2px dotted #38f;
- background: rgba(255,255,255,0.5);
- }
-
-
-/* general typography */
-.leaflet-container {
- font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
- }
-
-
-/* general toolbar styles */
-
-.leaflet-bar {
- box-shadow: 0 1px 5px rgba(0,0,0,0.65);
- border-radius: 4px;
- }
-.leaflet-bar a,
-.leaflet-bar a:hover {
- background-color: #fff;
- border-bottom: 1px solid #ccc;
- width: 26px;
- height: 26px;
- line-height: 26px;
- display: block;
- text-align: center;
- text-decoration: none;
- color: black;
- }
-.leaflet-bar a,
-.leaflet-control-layers-toggle {
- background-position: 50% 50%;
- background-repeat: no-repeat;
- display: block;
- }
-.leaflet-bar a:hover {
- background-color: #f4f4f4;
- }
-.leaflet-bar a:first-child {
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- }
-.leaflet-bar a:last-child {
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- border-bottom: none;
- }
-.leaflet-bar a.leaflet-disabled {
- cursor: default;
- background-color: #f4f4f4;
- color: #bbb;
- }
-
-.leaflet-touch .leaflet-bar a {
- width: 30px;
- height: 30px;
- line-height: 30px;
- }
-.leaflet-touch .leaflet-bar a:first-child {
- border-top-left-radius: 2px;
- border-top-right-radius: 2px;
- }
-.leaflet-touch .leaflet-bar a:last-child {
- border-bottom-left-radius: 2px;
- border-bottom-right-radius: 2px;
- }
-
-/* zoom control */
-
-.leaflet-control-zoom-in,
-.leaflet-control-zoom-out {
- font: bold 18px 'Lucida Console', Monaco, monospace;
- text-indent: 1px;
- }
-
-.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
- font-size: 22px;
- }
-
-
-/* layers control */
-
-.leaflet-control-layers {
- box-shadow: 0 1px 5px rgba(0,0,0,0.4);
- background: #fff;
- border-radius: 5px;
- }
-.leaflet-control-layers-toggle {
- background-image: url(images/layers.png);
- width: 36px;
- height: 36px;
- }
-.leaflet-retina .leaflet-control-layers-toggle {
- background-image: url(images/layers-2x.png);
- background-size: 26px 26px;
- }
-.leaflet-touch .leaflet-control-layers-toggle {
- width: 44px;
- height: 44px;
- }
-.leaflet-control-layers .leaflet-control-layers-list,
-.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
- display: none;
- }
-.leaflet-control-layers-expanded .leaflet-control-layers-list {
- display: block;
- position: relative;
- }
-.leaflet-control-layers-expanded {
- padding: 6px 10px 6px 6px;
- color: #333;
- background: #fff;
- }
-.leaflet-control-layers-scrollbar {
- overflow-y: scroll;
- overflow-x: hidden;
- padding-right: 5px;
- }
-.leaflet-control-layers-selector {
- margin-top: 2px;
- position: relative;
- top: 1px;
- }
-.leaflet-control-layers label {
- display: block;
- }
-.leaflet-control-layers-separator {
- height: 0;
- border-top: 1px solid #ddd;
- margin: 5px -10px 5px -6px;
- }
-
-/* Default icon URLs */
-.leaflet-default-icon-path {
- background-image: url(images/marker-icon.png);
- }
-
-
-/* attribution and scale controls */
-
-.leaflet-container .leaflet-control-attribution {
- background: #fff;
- background: rgba(255, 255, 255, 0.7);
- margin: 0;
- }
-.leaflet-control-attribution,
-.leaflet-control-scale-line {
- padding: 0 5px;
- color: #333;
- }
-.leaflet-control-attribution a {
- text-decoration: none;
- }
-.leaflet-control-attribution a:hover {
- text-decoration: underline;
- }
-.leaflet-container .leaflet-control-attribution,
-.leaflet-container .leaflet-control-scale {
- font-size: 11px;
- }
-.leaflet-left .leaflet-control-scale {
- margin-left: 5px;
- }
-.leaflet-bottom .leaflet-control-scale {
- margin-bottom: 5px;
- }
-.leaflet-control-scale-line {
- border: 2px solid #777;
- border-top: none;
- line-height: 1.1;
- padding: 2px 5px 1px;
- font-size: 11px;
- white-space: nowrap;
- overflow: hidden;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-
- background: #fff;
- background: rgba(255, 255, 255, 0.5);
- }
-.leaflet-control-scale-line:not(:first-child) {
- border-top: 2px solid #777;
- border-bottom: none;
- margin-top: -2px;
- }
-.leaflet-control-scale-line:not(:first-child):not(:last-child) {
- border-bottom: 2px solid #777;
- }
-
-.leaflet-touch .leaflet-control-attribution,
-.leaflet-touch .leaflet-control-layers,
-.leaflet-touch .leaflet-bar {
- box-shadow: none;
- }
-.leaflet-touch .leaflet-control-layers,
-.leaflet-touch .leaflet-bar {
- border: 2px solid rgba(0,0,0,0.2);
- background-clip: padding-box;
- }
-
-
-/* popup */
-
-.leaflet-popup {
- position: absolute;
- text-align: center;
- margin-bottom: 20px;
- }
-.leaflet-popup-content-wrapper {
- padding: 1px;
- text-align: left;
- border-radius: 12px;
- }
-.leaflet-popup-content {
- margin: 13px 19px;
- line-height: 1.4;
- }
-.leaflet-popup-content p {
- margin: 18px 0;
- }
-.leaflet-popup-tip-container {
- width: 40px;
- height: 20px;
- position: absolute;
- left: 50%;
- margin-left: -20px;
- overflow: hidden;
- pointer-events: none;
- }
-.leaflet-popup-tip {
- width: 17px;
- height: 17px;
- padding: 1px;
-
- margin: -10px auto 0;
-
- -webkit-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- transform: rotate(45deg);
- }
-.leaflet-popup-content-wrapper,
-.leaflet-popup-tip {
- background: white;
- color: #333;
- box-shadow: 0 3px 14px rgba(0,0,0,0.4);
- }
-.leaflet-container a.leaflet-popup-close-button {
- position: absolute;
- top: 0;
- right: 0;
- padding: 4px 4px 0 0;
- border: none;
- text-align: center;
- width: 18px;
- height: 14px;
- font: 16px/14px Tahoma, Verdana, sans-serif;
- color: #c3c3c3;
- text-decoration: none;
- font-weight: bold;
- background: transparent;
- }
-.leaflet-container a.leaflet-popup-close-button:hover {
- color: #999;
- }
-.leaflet-popup-scrolled {
- overflow: auto;
- border-bottom: 1px solid #ddd;
- border-top: 1px solid #ddd;
- }
-
-.leaflet-oldie .leaflet-popup-content-wrapper {
- -ms-zoom: 1;
- }
-.leaflet-oldie .leaflet-popup-tip {
- width: 24px;
- margin: 0 auto;
-
- -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
- filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
- }
-.leaflet-oldie .leaflet-popup-tip-container {
- margin-top: -1px;
- }
-
-.leaflet-oldie .leaflet-control-zoom,
-.leaflet-oldie .leaflet-control-layers,
-.leaflet-oldie .leaflet-popup-content-wrapper,
-.leaflet-oldie .leaflet-popup-tip {
- border: 1px solid #999;
- }
-
-
-/* div icon */
-
-.leaflet-div-icon {
- background: #fff;
- border: 1px solid #666;
- }
-
-
-/* Tooltip */
-/* Base styles for the element that has a tooltip */
-.leaflet-tooltip {
- position: absolute;
- padding: 6px;
- background-color: #fff;
- border: 1px solid #fff;
- border-radius: 3px;
- color: #222;
- white-space: nowrap;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- pointer-events: none;
- box-shadow: 0 1px 3px rgba(0,0,0,0.4);
- }
-.leaflet-tooltip.leaflet-clickable {
- cursor: pointer;
- pointer-events: auto;
- }
-.leaflet-tooltip-top:before,
-.leaflet-tooltip-bottom:before,
-.leaflet-tooltip-left:before,
-.leaflet-tooltip-right:before {
- position: absolute;
- pointer-events: none;
- border: 6px solid transparent;
- background: transparent;
- content: "";
- }
-
-/* Directions */
-
-.leaflet-tooltip-bottom {
- margin-top: 6px;
-}
-.leaflet-tooltip-top {
- margin-top: -6px;
-}
-.leaflet-tooltip-bottom:before,
-.leaflet-tooltip-top:before {
- left: 50%;
- margin-left: -6px;
- }
-.leaflet-tooltip-top:before {
- bottom: 0;
- margin-bottom: -12px;
- border-top-color: #fff;
- }
-.leaflet-tooltip-bottom:before {
- top: 0;
- margin-top: -12px;
- margin-left: -6px;
- border-bottom-color: #fff;
- }
-.leaflet-tooltip-left {
- margin-left: -6px;
-}
-.leaflet-tooltip-right {
- margin-left: 6px;
-}
-.leaflet-tooltip-left:before,
-.leaflet-tooltip-right:before {
- top: 50%;
- margin-top: -6px;
- }
-.leaflet-tooltip-left:before {
- right: 0;
- margin-right: -12px;
- border-left-color: #fff;
- }
-.leaflet-tooltip-right:before {
- left: 0;
- margin-left: -12px;
- border-right-color: #fff;
- }
diff --git a/xcxjingqingmap/lid/leaflet.js b/xcxjingqingmap/lid/leaflet.js
deleted file mode 100644
index 39fa241..0000000
--- a/xcxjingqingmap/lid/leaflet.js
+++ /dev/null
@@ -1,5222 +0,0 @@
-/* @preserve
- * Leaflet 1.7.1, a JS library for interactive maps. http://leafletjs.com
- * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
- */
-! function(t, i) {
- "object" == typeof exports && "undefined" != typeof module ? i(exports) : "function" == typeof define && define
- .amd ? define(["exports"], i) : i(t.L = {})
-}(this, function(t) {
- "use strict";
-
- function h(t) {
- for (var i, e, n = 1, o = arguments.length; n < o; n++)
- for (i in e = arguments[n]) t[i] = e[i];
- return t
- }
- var s = Object.create || function(t) {
- return i.prototype = t, new i
- };
-
- function i() {}
-
- function p(t, i) {
- var e = Array.prototype.slice;
- if (t.bind) return t.bind.apply(t, e.call(arguments, 1));
- var n = e.call(arguments, 2);
- return function() {
- return t.apply(i, n.length ? n.concat(e.call(arguments)) : arguments)
- }
- }
- var e = 0;
-
- function m(t) {
- return t._leaflet_id = t._leaflet_id || ++e, t._leaflet_id
- }
-
- function n(t, i, e) {
- var n, o, s = function() {
- n = !1, o && (r.apply(e, o), o = !1)
- },
- r = function() {
- n ? o = arguments : (t.apply(e, arguments), setTimeout(s, i), n = !0)
- };
- return r
- }
-
- function o(t, i, e) {
- var n = i[1],
- o = i[0],
- s = n - o;
- return t === n && e ? t : ((t - o) % s + s) % s + o
- }
-
- function a() {
- return !1
- }
-
- function r(t, i) {
- var e = Math.pow(10, void 0 === i ? 6 : i);
- return Math.round(t * e) / e
- }
-
- function u(t) {
- return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "")
- }
-
- function l(t) {
- return u(t).split(/\s+/)
- }
-
- function c(t, i) {
- for (var e in Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? s(t.options) :
- {}), i) t.options[e] = i[e];
- return t.options
- }
-
- function _(t, i, e) {
- var n = [];
- for (var o in t) n.push(encodeURIComponent(e ? o.toUpperCase() : o) + "=" + encodeURIComponent(t[o]));
- return (i && -1 !== i.indexOf("?") ? "&" : "?") + n.join("&")
- }
- var d = /\{ *([\w_-]+) *\}/g;
-
- function f(t, n) {
- return t.replace(d, function(t, i) {
- var e = n[i];
- if (void 0 === e) throw new Error("No value provided for variable " + t);
- return "function" == typeof e && (e = e(n)), e
- })
- }
- var g = Array.isArray || function(t) {
- return "[object Array]" === Object.prototype.toString.call(t)
- };
-
- function v(t, i) {
- for (var e = 0; e < t.length; e++)
- if (t[e] === i) return e;
- return -1
- }
- var y = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
-
- function x(t) {
- return window["webkit" + t] || window["moz" + t] || window["ms" + t]
- }
- var w = 0;
-
- function P(t) {
- var i = +new Date,
- e = Math.max(0, 16 - (i - w));
- return w = i + e, window.setTimeout(t, e)
- }
- var b = window.requestAnimationFrame || x("RequestAnimationFrame") || P,
- T = window.cancelAnimationFrame || x("CancelAnimationFrame") || x("CancelRequestAnimationFrame") ||
- function(t) {
- window.clearTimeout(t)
- };
-
- function M(t, i, e) {
- if (!e || b !== P) return b.call(window, p(t, i));
- t.call(i)
- }
-
- function z(t) {
- t && T.call(window, t)
- }
- var C = {
- extend: h,
- create: s,
- bind: p,
- lastId: e,
- stamp: m,
- throttle: n,
- wrapNum: o,
- falseFn: a,
- formatNum: r,
- trim: u,
- splitWords: l,
- setOptions: c,
- getParamString: _,
- template: f,
- isArray: g,
- indexOf: v,
- emptyImageUrl: y,
- requestFn: b,
- cancelFn: T,
- requestAnimFrame: M,
- cancelAnimFrame: z
- };
-
- function S() {}
- S.extend = function(t) {
- function i() {
- this.initialize && this.initialize.apply(this, arguments), this.callInitHooks()
- }
- var e = i.__super__ = this.prototype,
- n = s(e);
- for (var o in (n.constructor = i).prototype = n, this) Object.prototype.hasOwnProperty.call(this, o) &&
- "prototype" !== o && "__super__" !== o && (i[o] = this[o]);
- return t.statics && (h(i, t.statics), delete t.statics), t.includes && (function(t) {
- if ("undefined" == typeof L || !L || !L.Mixin) return;
- t = g(t) ? t : [t];
- for (var i = 0; i < t.length; i++) t[i] === L.Mixin.Events && console.warn(
- "Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",
- (new Error).stack)
- }(t.includes), h.apply(null, [n].concat(t.includes)), delete t.includes), n.options && (t.options =
- h(s(n.options), t.options)), h(n, t), n._initHooks = [], n.callInitHooks = function() {
- if (!this._initHooksCalled) {
- e.callInitHooks && e.callInitHooks.call(this), this._initHooksCalled = !0;
- for (var t = 0, i = n._initHooks.length; t < i; t++) n._initHooks[t].call(this)
- }
- }, i
- }, S.include = function(t) {
- return h(this.prototype, t), this
- }, S.mergeOptions = function(t) {
- return h(this.prototype.options, t), this
- }, S.addInitHook = function(t) {
- var i = Array.prototype.slice.call(arguments, 1),
- e = "function" == typeof t ? t : function() {
- this[t].apply(this, i)
- };
- return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(e),
- this
- };
- var Z = {
- on: function(t, i, e) {
- if ("object" == typeof t)
- for (var n in t) this._on(n, t[n], i);
- else
- for (var o = 0, s = (t = l(t)).length; o < s; o++) this._on(t[o], i, e);
- return this
- },
- off: function(t, i, e) {
- if (t)
- if ("object" == typeof t)
- for (var n in t) this._off(n, t[n], i);
- else
- for (var o = 0, s = (t = l(t)).length; o < s; o++) this._off(t[o], i, e);
- else delete this._events;
- return this
- },
- _on: function(t, i, e) {
- this._events = this._events || {};
- var n = this._events[t];
- n || (n = [], this._events[t] = n), e === this && (e = void 0);
- for (var o = {
- fn: i,
- ctx: e
- }, s = n, r = 0, a = s.length; r < a; r++)
- if (s[r].fn === i && s[r].ctx === e) return;
- s.push(o)
- },
- _off: function(t, i, e) {
- var n, o, s;
- if (this._events && (n = this._events[t]))
- if (i) {
- if (e === this && (e = void 0), n)
- for (o = 0, s = n.length; o < s; o++) {
- var r = n[o];
- if (r.ctx === e && r.fn === i) return r.fn = a, this._firingCount && (this
- ._events[t] = n = n.slice()), void n.splice(o, 1)
- }
- } else {
- for (o = 0, s = n.length; o < s; o++) n[o].fn = a;
- delete this._events[t]
- }
- },
- fire: function(t, i, e) {
- if (!this.listens(t, e)) return this;
- var n = h({}, i, {
- type: t,
- target: this,
- sourceTarget: i && i.sourceTarget || this
- });
- if (this._events) {
- var o = this._events[t];
- if (o) {
- this._firingCount = this._firingCount + 1 || 1;
- for (var s = 0, r = o.length; s < r; s++) {
- var a = o[s];
- a.fn.call(a.ctx || this, n)
- }
- this._firingCount--
- }
- }
- return e && this._propagateEvent(n), this
- },
- listens: function(t, i) {
- var e = this._events && this._events[t];
- if (e && e.length) return !0;
- if (i)
- for (var n in this._eventParents)
- if (this._eventParents[n].listens(t, i)) return !0;
- return !1
- },
- once: function(t, i, e) {
- if ("object" == typeof t) {
- for (var n in t) this.once(n, t[n], i);
- return this
- }
- var o = p(function() {
- this.off(t, i, e).off(t, o, e)
- }, this);
- return this.on(t, i, e).on(t, o, e)
- },
- addEventParent: function(t) {
- return this._eventParents = this._eventParents || {}, this._eventParents[m(t)] = t, this
- },
- removeEventParent: function(t) {
- return this._eventParents && delete this._eventParents[m(t)], this
- },
- _propagateEvent: function(t) {
- for (var i in this._eventParents) this._eventParents[i].fire(t.type, h({
- layer: t.target,
- propagatedFrom: t.target
- }, t), !0)
- }
- };
- Z.addEventListener = Z.on, Z.removeEventListener = Z.clearAllEventListeners = Z.off, Z.addOneTimeEventListener =
- Z.once, Z.fireEvent = Z.fire, Z.hasEventListeners = Z.listens;
- var E = S.extend(Z);
-
- function k(t, i, e) {
- this.x = e ? Math.round(t) : t, this.y = e ? Math.round(i) : i
- }
- var B = Math.trunc || function(t) {
- return 0 < t ? Math.floor(t) : Math.ceil(t)
- };
-
- function A(t, i, e) {
- return t instanceof k ? t : g(t) ? new k(t[0], t[1]) : null == t ? t : "object" == typeof t && "x" in t &&
- "y" in t ? new k(t.x, t.y) : new k(t, i, e)
- }
-
- function I(t, i) {
- if (t)
- for (var e = i ? [t, i] : t, n = 0, o = e.length; n < o; n++) this.extend(e[n])
- }
-
- function O(t, i) {
- return !t || t instanceof I ? t : new I(t, i)
- }
-
- function R(t, i) {
- if (t)
- for (var e = i ? [t, i] : t, n = 0, o = e.length; n < o; n++) this.extend(e[n])
- }
-
- function N(t, i) {
- return t instanceof R ? t : new R(t, i)
- }
-
- function D(t, i, e) {
- if (isNaN(t) || isNaN(i)) throw new Error("Invalid LatLng object: (" + t + ", " + i + ")");
- this.lat = +t, this.lng = +i, void 0 !== e && (this.alt = +e)
- }
-
- function j(t, i, e) {
- return t instanceof D ? t : g(t) && "object" != typeof t[0] ? 3 === t.length ? new D(t[0], t[1], t[2]) :
- 2 === t.length ? new D(t[0], t[1]) : null : null == t ? t : "object" == typeof t && "lat" in t ? new D(t
- .lat, "lng" in t ? t.lng : t.lon, t.alt) : void 0 === i ? null : new D(t, i, e)
- }
- k.prototype = {
- clone: function() {
- return new k(this.x, this.y)
- },
- add: function(t) {
- return this.clone()._add(A(t))
- },
- _add: function(t) {
- return this.x += t.x, this.y += t.y, this
- },
- subtract: function(t) {
- return this.clone()._subtract(A(t))
- },
- _subtract: function(t) {
- return this.x -= t.x, this.y -= t.y, this
- },
- divideBy: function(t) {
- return this.clone()._divideBy(t)
- },
- _divideBy: function(t) {
- return this.x /= t, this.y /= t, this
- },
- multiplyBy: function(t) {
- return this.clone()._multiplyBy(t)
- },
- _multiplyBy: function(t) {
- return this.x *= t, this.y *= t, this
- },
- scaleBy: function(t) {
- return new k(this.x * t.x, this.y * t.y)
- },
- unscaleBy: function(t) {
- return new k(this.x / t.x, this.y / t.y)
- },
- round: function() {
- return this.clone()._round()
- },
- _round: function() {
- return this.x = Math.round(this.x), this.y = Math.round(this.y), this
- },
- floor: function() {
- return this.clone()._floor()
- },
- _floor: function() {
- return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this
- },
- ceil: function() {
- return this.clone()._ceil()
- },
- _ceil: function() {
- return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this
- },
- trunc: function() {
- return this.clone()._trunc()
- },
- _trunc: function() {
- return this.x = B(this.x), this.y = B(this.y), this
- },
- distanceTo: function(t) {
- var i = (t = A(t)).x - this.x,
- e = t.y - this.y;
- return Math.sqrt(i * i + e * e)
- },
- equals: function(t) {
- return (t = A(t)).x === this.x && t.y === this.y
- },
- contains: function(t) {
- return t = A(t), Math.abs(t.x) <= Math.abs(this.x) && Math.abs(t.y) <= Math.abs(this.y)
- },
- toString: function() {
- return "Point(" + r(this.x) + ", " + r(this.y) + ")"
- }
- }, I.prototype = {
- extend: function(t) {
- return t = A(t), this.min || this.max ? (this.min.x = Math.min(t.x, this.min.x), this.max.x =
- Math.max(t.x, this.max.x), this.min.y = Math.min(t.y, this.min.y), this.max.y = Math
- .max(t.y, this.max.y)) : (this.min = t.clone(), this.max = t.clone()), this
- },
- getCenter: function(t) {
- return new k((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, t)
- },
- getBottomLeft: function() {
- return new k(this.min.x, this.max.y)
- },
- getTopRight: function() {
- return new k(this.max.x, this.min.y)
- },
- getTopLeft: function() {
- return this.min
- },
- getBottomRight: function() {
- return this.max
- },
- getSize: function() {
- return this.max.subtract(this.min)
- },
- contains: function(t) {
- var i, e;
- return (t = ("number" == typeof t[0] || t instanceof k ? A : O)(t)) instanceof I ? (i = t.min,
- e = t.max) : i = e = t, i.x >= this.min.x && e.x <= this.max.x && i.y >= this.min.y && e
- .y <= this.max.y
- },
- intersects: function(t) {
- t = O(t);
- var i = this.min,
- e = this.max,
- n = t.min,
- o = t.max,
- s = o.x >= i.x && n.x <= e.x,
- r = o.y >= i.y && n.y <= e.y;
- return s && r
- },
- overlaps: function(t) {
- t = O(t);
- var i = this.min,
- e = this.max,
- n = t.min,
- o = t.max,
- s = o.x > i.x && n.x < e.x,
- r = o.y > i.y && n.y < e.y;
- return s && r
- },
- isValid: function() {
- return !(!this.min || !this.max)
- }
- }, R.prototype = {
- extend: function(t) {
- var i, e, n = this._southWest,
- o = this._northEast;
- if (t instanceof D) e = i = t;
- else {
- if (!(t instanceof R)) return t ? this.extend(j(t) || N(t)) : this;
- if (i = t._southWest, e = t._northEast, !i || !e) return this
- }
- return n || o ? (n.lat = Math.min(i.lat, n.lat), n.lng = Math.min(i.lng, n.lng), o.lat = Math
- .max(e.lat, o.lat), o.lng = Math.max(e.lng, o.lng)) : (this._southWest = new D(i.lat, i
- .lng), this._northEast = new D(e.lat, e.lng)), this
- },
- pad: function(t) {
- var i = this._southWest,
- e = this._northEast,
- n = Math.abs(i.lat - e.lat) * t,
- o = Math.abs(i.lng - e.lng) * t;
- return new R(new D(i.lat - n, i.lng - o), new D(e.lat + n, e.lng + o))
- },
- getCenter: function() {
- return new D((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this
- ._northEast.lng) / 2)
- },
- getSouthWest: function() {
- return this._southWest
- },
- getNorthEast: function() {
- return this._northEast
- },
- getNorthWest: function() {
- return new D(this.getNorth(), this.getWest())
- },
- getSouthEast: function() {
- return new D(this.getSouth(), this.getEast())
- },
- getWest: function() {
- return this._southWest.lng
- },
- getSouth: function() {
- return this._southWest.lat
- },
- getEast: function() {
- return this._northEast.lng
- },
- getNorth: function() {
- return this._northEast.lat
- },
- contains: function(t) {
- t = ("number" == typeof t[0] || t instanceof D || "lat" in t ? j : N)(t);
- var i, e, n = this._southWest,
- o = this._northEast;
- return t instanceof R ? (i = t.getSouthWest(), e = t.getNorthEast()) : i = e = t, i.lat >= n
- .lat && e.lat <= o.lat && i.lng >= n.lng && e.lng <= o.lng
- },
- intersects: function(t) {
- t = N(t);
- var i = this._southWest,
- e = this._northEast,
- n = t.getSouthWest(),
- o = t.getNorthEast(),
- s = o.lat >= i.lat && n.lat <= e.lat,
- r = o.lng >= i.lng && n.lng <= e.lng;
- return s && r
- },
- overlaps: function(t) {
- t = N(t);
- var i = this._southWest,
- e = this._northEast,
- n = t.getSouthWest(),
- o = t.getNorthEast(),
- s = o.lat > i.lat && n.lat < e.lat,
- r = o.lng > i.lng && n.lng < e.lng;
- return s && r
- },
- toBBoxString: function() {
- return [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(",")
- },
- equals: function(t, i) {
- return !!t && (t = N(t), this._southWest.equals(t.getSouthWest(), i) && this._northEast.equals(t
- .getNorthEast(), i))
- },
- isValid: function() {
- return !(!this._southWest || !this._northEast)
- }
- };
- var W, H = {
- latLngToPoint: function(t, i) {
- var e = this.projection.project(t),
- n = this.scale(i);
- return this.transformation._transform(e, n)
- },
- pointToLatLng: function(t, i) {
- var e = this.scale(i),
- n = this.transformation.untransform(t, e);
- return this.projection.unproject(n)
- },
- project: function(t) {
- return this.projection.project(t)
- },
- unproject: function(t) {
- return this.projection.unproject(t)
- },
- scale: function(t) {
- return 256 * Math.pow(2, t)
- },
- zoom: function(t) {
- return Math.log(t / 256) / Math.LN2
- },
- getProjectedBounds: function(t) {
- if (this.infinite) return null;
- var i = this.projection.bounds,
- e = this.scale(t);
- return new I(this.transformation.transform(i.min, e), this.transformation.transform(i.max, e))
- },
- infinite: !(D.prototype = {
- equals: function(t, i) {
- return !!t && (t = j(t), Math.max(Math.abs(this.lat - t.lat), Math.abs(this.lng - t
- .lng)) <= (void 0 === i ? 1e-9 : i))
- },
- toString: function(t) {
- return "LatLng(" + r(this.lat, t) + ", " + r(this.lng, t) + ")"
- },
- distanceTo: function(t) {
- return F.distance(this, j(t))
- },
- wrap: function() {
- return F.wrapLatLng(this)
- },
- toBounds: function(t) {
- var i = 180 * t / 40075017,
- e = i / Math.cos(Math.PI / 180 * this.lat);
- return N([this.lat - i, this.lng - e], [this.lat + i, this.lng + e])
- },
- clone: function() {
- return new D(this.lat, this.lng, this.alt)
- }
- }),
- wrapLatLng: function(t) {
- var i = this.wrapLng ? o(t.lng, this.wrapLng, !0) : t.lng;
- return new D(this.wrapLat ? o(t.lat, this.wrapLat, !0) : t.lat, i, t.alt)
- },
- wrapLatLngBounds: function(t) {
- var i = t.getCenter(),
- e = this.wrapLatLng(i),
- n = i.lat - e.lat,
- o = i.lng - e.lng;
- if (0 == n && 0 == o) return t;
- var s = t.getSouthWest(),
- r = t.getNorthEast();
- return new R(new D(s.lat - n, s.lng - o), new D(r.lat - n, r.lng - o))
- }
- },
- F = h({}, H, {
- wrapLng: [-180, 180],
- R: 6371e3,
- distance: function(t, i) {
- var e = Math.PI / 180,
- n = t.lat * e,
- o = i.lat * e,
- s = Math.sin((i.lat - t.lat) * e / 2),
- r = Math.sin((i.lng - t.lng) * e / 2),
- a = s * s + Math.cos(n) * Math.cos(o) * r * r,
- h = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
- return this.R * h
- }
- }),
- U = 6378137,
- V = {
- R: U,
- MAX_LATITUDE: 85.0511287798,
- project: function(t) {
- var i = Math.PI / 180,
- e = this.MAX_LATITUDE,
- n = Math.max(Math.min(e, t.lat), -e),
- o = Math.sin(n * i);
- return new k(this.R * t.lng * i, this.R * Math.log((1 + o) / (1 - o)) / 2)
- },
- unproject: function(t) {
- var i = 180 / Math.PI;
- return new D((2 * Math.atan(Math.exp(t.y / this.R)) - Math.PI / 2) * i, t.x * i / this.R)
- },
- bounds: new I([-(W = U * Math.PI), -W], [W, W])
- };
-
- function q(t, i, e, n) {
- if (g(t)) return this._a = t[0], this._b = t[1], this._c = t[2], void(this._d = t[3]);
- this._a = t, this._b = i, this._c = e, this._d = n
- }
-
- function G(t, i, e, n) {
- return new q(t, i, e, n)
- }
- q.prototype = {
- transform: function(t, i) {
- return this._transform(t.clone(), i)
- },
- _transform: function(t, i) {
- return i = i || 1, t.x = i * (this._a * t.x + this._b), t.y = i * (this._c * t.y + this._d), t
- },
- untransform: function(t, i) {
- return i = i || 1, new k((t.x / i - this._b) / this._a, (t.y / i - this._d) / this._c)
- }
- };
- var K, Y = h({}, F, {
- code: "EPSG:3857",
- projection: V,
- transformation: G(K = .5 / (Math.PI * V.R), .5, -K, .5)
- }),
- X = h({}, Y, {
- code: "EPSG:900913"
- });
-
- function J(t) {
- return document.createElementNS("http://www.w3.org/2000/svg", t)
- }
-
- function $(t, i) {
- for (var e, n, o, s, r = "", a = 0, h = t.length; a < h; a++) {
- for (e = 0, n = (o = t[a]).length; e < n; e++) r += (e ? "L" : "M") + (s = o[e]).x + " " + s.y;
- r += i ? Zt ? "z" : "x" : ""
- }
- return r || "M0 0"
- }
- var Q = document.documentElement.style,
- tt = "ActiveXObject" in window,
- it = tt && !document.addEventListener,
- et = "msLaunchUri" in navigator && !("documentMode" in document),
- nt = kt("webkit"),
- ot = kt("android"),
- st = kt("android 2") || kt("android 3"),
- rt = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10),
- at = ot && kt("Google") && rt < 537 && !("AudioNode" in window),
- ht = !!window.opera,
- ut = !et && kt("chrome"),
- lt = kt("gecko") && !nt && !ht && !tt,
- ct = !ut && kt("safari"),
- _t = kt("phantom"),
- dt = "OTransition" in Q,
- pt = 0 === navigator.platform.indexOf("Win"),
- mt = tt && "transition" in Q,
- ft = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix && !st,
- gt = "MozPerspective" in Q,
- vt = !window.L_DISABLE_3D && (mt || ft || gt) && !dt && !_t,
- yt = "undefined" != typeof orientation || kt("mobile"),
- xt = yt && nt,
- wt = yt && ft,
- Pt = !window.PointerEvent && window.MSPointerEvent,
- Lt = !(!window.PointerEvent && !Pt),
- bt = !window.L_NO_TOUCH && (Lt || "ontouchstart" in window || window.DocumentTouch &&
- document instanceof window.DocumentTouch),
- Tt = yt && ht,
- Mt = yt && lt,
- zt = 1 < (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI),
- Ct = function() {
- var t = !1;
- try {
- var i = Object.defineProperty({}, "passive", {
- get: function() {
- t = !0
- }
- });
- window.addEventListener("testPassiveEventSupport", a, i), window.removeEventListener(
- "testPassiveEventSupport", a, i)
- } catch (t) {}
- return t
- }(),
- St = !!document.createElement("canvas").getContext,
- Zt = !(!document.createElementNS || !J("svg").createSVGRect),
- Et = !Zt && function() {
- try {
- var t = document.createElement("div");
- t.innerHTML = '<v:shape adj="1"/>';
- var i = t.firstChild;
- return i.style.behavior = "url(#default#VML)", i && "object" == typeof i.adj
- } catch (t) {
- return !1
- }
- }();
-
- function kt(t) {
- return 0 <= navigator.userAgent.toLowerCase().indexOf(t)
- }
- var Bt = {
- ie: tt,
- ielt9: it,
- edge: et,
- webkit: nt,
- android: ot,
- android23: st,
- androidStock: at,
- opera: ht,
- chrome: ut,
- gecko: lt,
- safari: ct,
- phantom: _t,
- opera12: dt,
- win: pt,
- ie3d: mt,
- webkit3d: ft,
- gecko3d: gt,
- any3d: vt,
- mobile: yt,
- mobileWebkit: xt,
- mobileWebkit3d: wt,
- msPointer: Pt,
- pointer: Lt,
- touch: bt,
- mobileOpera: Tt,
- mobileGecko: Mt,
- retina: zt,
- passiveEvents: Ct,
- canvas: St,
- svg: Zt,
- vml: Et
- },
- At = Pt ? "MSPointerDown" : "pointerdown",
- It = Pt ? "MSPointerMove" : "pointermove",
- Ot = Pt ? "MSPointerUp" : "pointerup",
- Rt = Pt ? "MSPointerCancel" : "pointercancel",
- Nt = {},
- Dt = !1;
-
- function jt(t, i, e, n) {
- function o(t) {
- Ut(t, r)
- }
- var s, r, a, h, u, l, c, _;
-
- function d(t) {
- t.pointerType === (t.MSPOINTER_TYPE_MOUSE || "mouse") && 0 === t.buttons || Ut(t, h)
- }
- return "touchstart" === i ? (u = t, l = e, c = n, _ = p(function(t) {
- t.MSPOINTER_TYPE_TOUCH && t.pointerType === t.MSPOINTER_TYPE_TOUCH && Ri(t), Ut(t, l)
- }), u["_leaflet_touchstart" + c] = _, u.addEventListener(At, _, !1), Dt || (document
- .addEventListener(At, Wt, !0), document.addEventListener(It, Ht, !0), document.addEventListener(
- Ot, Ft, !0), document.addEventListener(Rt, Ft, !0), Dt = !0)) : "touchmove" === i ? (h = e, (a =
- t)["_leaflet_touchmove" + n] = d, a.addEventListener(It, d, !1)) : "touchend" === i && (r = e, (s =
- t)["_leaflet_touchend" + n] = o, s.addEventListener(Ot, o, !1), s.addEventListener(Rt, o, !1)), this
- }
-
- function Wt(t) {
- Nt[t.pointerId] = t
- }
-
- function Ht(t) {
- Nt[t.pointerId] && (Nt[t.pointerId] = t)
- }
-
- function Ft(t) {
- delete Nt[t.pointerId]
- }
-
- function Ut(t, i) {
- for (var e in t.touches = [], Nt) t.touches.push(Nt[e]);
- t.changedTouches = [t], i(t)
- }
- var Vt = Pt ? "MSPointerDown" : Lt ? "pointerdown" : "touchstart",
- qt = Pt ? "MSPointerUp" : Lt ? "pointerup" : "touchend",
- Gt = "_leaflet_";
- var Kt, Yt, Xt, Jt, $t, Qt, ti = fi(["transform", "webkitTransform", "OTransform", "MozTransform",
- "msTransform"]),
- ii = fi(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]),
- ei = "webkitTransition" === ii || "OTransition" === ii ? ii + "End" : "transitionend";
-
- function ni(t) {
- return "string" == typeof t ? document.getElementById(t) : t
- }
-
- function oi(t, i) {
- var e, n = t.style[i] || t.currentStyle && t.currentStyle[i];
- return n && "auto" !== n || !document.defaultView || (n = (e = document.defaultView.getComputedStyle(t,
- null)) ? e[i] : null), "auto" === n ? null : n
- }
-
- function si(t, i, e) {
- var n = document.createElement(t);
- return n.className = i || "", e && e.appendChild(n), n
- }
-
- function ri(t) {
- var i = t.parentNode;
- i && i.removeChild(t)
- }
-
- function ai(t) {
- for (; t.firstChild;) t.removeChild(t.firstChild)
- }
-
- function hi(t) {
- var i = t.parentNode;
- i && i.lastChild !== t && i.appendChild(t)
- }
-
- function ui(t) {
- var i = t.parentNode;
- i && i.firstChild !== t && i.insertBefore(t, i.firstChild)
- }
-
- function li(t, i) {
- if (void 0 !== t.classList) return t.classList.contains(i);
- var e = pi(t);
- return 0 < e.length && new RegExp("(^|\\s)" + i + "(\\s|$)").test(e)
- }
-
- function ci(t, i) {
- var e;
- if (void 0 !== t.classList)
- for (var n = l(i), o = 0, s = n.length; o < s; o++) t.classList.add(n[o]);
- else li(t, i) || di(t, ((e = pi(t)) ? e + " " : "") + i)
- }
-
- function _i(t, i) {
- void 0 !== t.classList ? t.classList.remove(i) : di(t, u((" " + pi(t) + " ").replace(" " + i + " ", " ")))
- }
-
- function di(t, i) {
- void 0 === t.className.baseVal ? t.className = i : t.className.baseVal = i
- }
-
- function pi(t) {
- return t.correspondingElement && (t = t.correspondingElement), void 0 === t.className.baseVal ? t
- .className : t.className.baseVal
- }
-
- function mi(t, i) {
- "opacity" in t.style ? t.style.opacity = i : "filter" in t.style && function(t, i) {
- var e = !1,
- n = "DXImageTransform.Microsoft.Alpha";
- try {
- e = t.filters.item(n)
- } catch (t) {
- if (1 === i) return
- }
- i = Math.round(100 * i), e ? (e.Enabled = 100 !== i, e.Opacity = i) : t.style.filter += " progid:" +
- n + "(opacity=" + i + ")"
- }(t, i)
- }
-
- function fi(t) {
- for (var i = document.documentElement.style, e = 0; e < t.length; e++)
- if (t[e] in i) return t[e];
- return !1
- }
-
- function gi(t, i, e) {
- var n = i || new k(0, 0);
- t.style[ti] = (mt ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y +
- "px,0)") + (e ? " scale(" + e + ")" : "")
- }
-
- function vi(t, i) {
- t._leaflet_pos = i, vt ? gi(t, i) : (t.style.left = i.x + "px", t.style.top = i.y + "px")
- }
-
- function yi(t) {
- return t._leaflet_pos || new k(0, 0)
- }
-
- function xi() {
- zi(window, "dragstart", Ri)
- }
-
- function wi() {
- Si(window, "dragstart", Ri)
- }
-
- function Pi(t) {
- for (; - 1 === t.tabIndex;) t = t.parentNode;
- t.style && (Li(), Qt = ($t = t).style.outline, t.style.outline = "none", zi(window, "keydown", Li))
- }
-
- function Li() {
- $t && ($t.style.outline = Qt, Qt = $t = void 0, Si(window, "keydown", Li))
- }
-
- function bi(t) {
- for (; !((t = t.parentNode).offsetWidth && t.offsetHeight || t === document.body););
- return t
- }
-
- function Ti(t) {
- var i = t.getBoundingClientRect();
- return {
- x: i.width / t.offsetWidth || 1,
- y: i.height / t.offsetHeight || 1,
- boundingClientRect: i
- }
- }
- Jt = "onselectstart" in document ? (Xt = function() {
- zi(window, "selectstart", Ri)
- }, function() {
- Si(window, "selectstart", Ri)
- }) : (Yt = fi(["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]), Xt =
- function() {
- var t;
- Yt && (t = document.documentElement.style, Kt = t[Yt], t[Yt] = "none")
- },
- function() {
- Yt && (document.documentElement.style[Yt] = Kt, Kt = void 0)
- });
- var Mi = {
- TRANSFORM: ti,
- TRANSITION: ii,
- TRANSITION_END: ei,
- get: ni,
- getStyle: oi,
- create: si,
- remove: ri,
- empty: ai,
- toFront: hi,
- toBack: ui,
- hasClass: li,
- addClass: ci,
- removeClass: _i,
- setClass: di,
- getClass: pi,
- setOpacity: mi,
- testProp: fi,
- setTransform: gi,
- setPosition: vi,
- getPosition: yi,
- disableTextSelection: Xt,
- enableTextSelection: Jt,
- disableImageDrag: xi,
- enableImageDrag: wi,
- preventOutline: Pi,
- restoreOutline: Li,
- getSizedParentNode: bi,
- getScale: Ti
- };
-
- function zi(t, i, e, n) {
- if ("object" == typeof i)
- for (var o in i) ki(t, o, i[o], e);
- else
- for (var s = 0, r = (i = l(i)).length; s < r; s++) ki(t, i[s], e, n);
- return this
- }
- var Ci = "_leaflet_events";
-
- function Si(t, i, e, n) {
- if ("object" == typeof i)
- for (var o in i) Bi(t, o, i[o], e);
- else if (i)
- for (var s = 0, r = (i = l(i)).length; s < r; s++) Bi(t, i[s], e, n);
- else {
- for (var a in t[Ci]) Bi(t, a, t[Ci][a]);
- delete t[Ci]
- }
- return this
- }
-
- function Zi() {
- return Lt && (!et && !ct)
- }
- var Ei = {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- wheel: !("onwheel" in window) && "mousewheel"
- };
-
- function ki(i, t, e, n) {
- var o = t + m(e) + (n ? "_" + m(n) : "");
- if (i[Ci] && i[Ci][o]) return this;
- var s, r, a, h, u, l, c = function(t) {
- return e.call(n || i, t || window.event)
- },
- _ = c;
-
- function d(t) {
- if (Lt) {
- if (!t.isPrimary) return;
- if ("mouse" === t.pointerType) return
- } else if (1 < t.touches.length) return;
- var i = Date.now(),
- e = i - (h || i);
- u = t.touches ? t.touches[0] : t, l = 0 < e && e <= 250, h = i
- }
-
- function p(t) {
- if (l && !u.cancelBubble) {
- if (Lt) {
- if ("mouse" === t.pointerType) return;
- var i, e, n = {};
- for (e in u) i = u[e], n[e] = i && i.bind ? i.bind(u) : i;
- u = n
- }
- u.type = "dblclick", u.button = 0, r(u), h = null
- }
- }
- Lt && 0 === t.indexOf("touch") ? jt(i, t, c, o) : bt && "dblclick" === t && !Zi() ? (r = c, l = !1, (s = i)[
- Gt + Vt + (a = o)] = d, s[Gt + qt + a] = p, s[Gt + "dblclick" + a] = r, s.addEventListener(Vt,
- d, !!Ct && {
- passive: !1
- }), s.addEventListener(qt, p, !!Ct && {
- passive: !1
- }), s.addEventListener("dblclick", r, !1)) : "addEventListener" in i ? "touchstart" === t ||
- "touchmove" === t || "wheel" === t || "mousewheel" === t ? i.addEventListener(Ei[t] || t, c, !!Ct && {
- passive: !1
- }) : "mouseenter" === t || "mouseleave" === t ? (c = function(t) {
- t = t || window.event, Vi(i, t) && _(t)
- }, i.addEventListener(Ei[t], c, !1)) : i.addEventListener(t, _, !1) : "attachEvent" in i && i
- .attachEvent("on" + t, c), i[Ci] = i[Ci] || {}, i[Ci][o] = c
- }
-
- function Bi(t, i, e, n) {
- var o, s, r, a, h, u, l, c, _ = i + m(e) + (n ? "_" + m(n) : ""),
- d = t[Ci] && t[Ci][_];
- if (!d) return this;
- Lt && 0 === i.indexOf("touch") ? (c = (u = t)["_leaflet_" + (l = i) + _], "touchstart" === l ? u
- .removeEventListener(At, c, !1) : "touchmove" === l ? u.removeEventListener(It, c, !1) :
- "touchend" === l && (u.removeEventListener(Ot, c, !1), u.removeEventListener(Rt, c, !1))) : bt &&
- "dblclick" === i && !Zi() ? (r = (o = t)[Gt + Vt + (s = _)], a = o[Gt + qt + s], h = o[Gt + "dblclick" +
- s], o.removeEventListener(Vt, r, !!Ct && {
- passive: !1
- }), o.removeEventListener(qt, a, !!Ct && {
- passive: !1
- }), o.removeEventListener("dblclick", h, !1)) : "removeEventListener" in t ? t.removeEventListener(Ei[
- i] || i, d, !1) : "detachEvent" in t && t.detachEvent("on" + i, d), t[Ci][_] = null
- }
-
- function Ai(t) {
- return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t
- .cancelBubble = !0, Ui(t), this
- }
-
- function Ii(t) {
- return ki(t, "wheel", Ai), this
- }
-
- function Oi(t) {
- return zi(t, "mousedown touchstart dblclick", Ai), ki(t, "click", Fi), this
- }
-
- function Ri(t) {
- return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this
- }
-
- function Ni(t) {
- return Ri(t), Ai(t), this
- }
-
- function Di(t, i) {
- if (!i) return new k(t.clientX, t.clientY);
- var e = Ti(i),
- n = e.boundingClientRect;
- return new k((t.clientX - n.left) / e.x - i.clientLeft, (t.clientY - n.top) / e.y - i.clientTop)
- }
- var ji = pt && ut ? 2 * window.devicePixelRatio : lt ? window.devicePixelRatio : 1;
-
- function Wi(t) {
- return et ? t.wheelDeltaY / 2 : t.deltaY && 0 === t.deltaMode ? -t.deltaY / ji : t.deltaY && 1 === t
- .deltaMode ? 20 * -t.deltaY : t.deltaY && 2 === t.deltaMode ? 60 * -t.deltaY : t.deltaX || t.deltaZ ?
- 0 : t.wheelDelta ? (t.wheelDeltaY || t.wheelDelta) / 2 : t.detail && Math.abs(t.detail) < 32765 ? 20 * -
- t.detail : t.detail ? t.detail / -32765 * 60 : 0
- }
- var Hi = {};
-
- function Fi(t) {
- Hi[t.type] = !0
- }
-
- function Ui(t) {
- var i = Hi[t.type];
- return Hi[t.type] = !1, i
- }
-
- function Vi(t, i) {
- var e = i.relatedTarget;
- if (!e) return !0;
- try {
- for (; e && e !== t;) e = e.parentNode
- } catch (t) {
- return !1
- }
- return e !== t
- }
- var qi = {
- on: zi,
- off: Si,
- stopPropagation: Ai,
- disableScrollPropagation: Ii,
- disableClickPropagation: Oi,
- preventDefault: Ri,
- stop: Ni,
- getMousePosition: Di,
- getWheelDelta: Wi,
- fakeStop: Fi,
- skipped: Ui,
- isExternalTarget: Vi,
- addListener: zi,
- removeListener: Si
- },
- Gi = E.extend({
- run: function(t, i, e, n) {
- this.stop(), this._el = t, this._inProgress = !0, this._duration = e || .25, this
- ._easeOutPower = 1 / Math.max(n || .5, .2), this._startPos = yi(t), this._offset = i
- .subtract(this._startPos), this._startTime = +new Date, this.fire("start"), this
- ._animate()
- },
- stop: function() {
- this._inProgress && (this._step(!0), this._complete())
- },
- _animate: function() {
- this._animId = M(this._animate, this), this._step()
- },
- _step: function(t) {
- var i = new Date - this._startTime,
- e = 1e3 * this._duration;
- i < e ? this._runFrame(this._easeOut(i / e), t) : (this._runFrame(1), this._complete())
- },
- _runFrame: function(t, i) {
- var e = this._startPos.add(this._offset.multiplyBy(t));
- i && e._round(), vi(this._el, e), this.fire("step")
- },
- _complete: function() {
- z(this._animId), this._inProgress = !1, this.fire("end")
- },
- _easeOut: function(t) {
- return 1 - Math.pow(1 - t, this._easeOutPower)
- }
- }),
- Ki = E.extend({
- options: {
- crs: Y,
- center: void 0,
- zoom: void 0,
- minZoom: void 0,
- maxZoom: void 0,
- layers: [],
- maxBounds: void 0,
- renderer: void 0,
- zoomAnimation: !0,
- zoomAnimationThreshold: 4,
- fadeAnimation: !0,
- markerZoomAnimation: !0,
- transform3DLimit: 8388608,
- zoomSnap: 1,
- zoomDelta: 1,
- trackResize: !0
- },
- initialize: function(t, i) {
- i = c(this, i), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this
- ._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = p(this
- ._onResize, this), this._initEvents(), i.maxBounds && this.setMaxBounds(i
- .maxBounds), void 0 !== i.zoom && (this._zoom = this._limitZoom(i.zoom)), i.center &&
- void 0 !== i.zoom && this.setView(j(i.center), i.zoom, {
- reset: !0
- }), this.callInitHooks(), this._zoomAnimated = ii && vt && !Tt && this.options
- .zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), zi(this._proxy, ei, this
- ._catchTransitionEnd, this)), this._addLayers(this.options.layers)
- },
- setView: function(t, i, e) {
- if ((i = void 0 === i ? this._zoom : this._limitZoom(i), t = this._limitCenter(j(t), i, this
- .options.maxBounds), e = e || {}, this._stop(), this._loaded && !e.reset && !
- 0 !== e) && (void 0 !== e.animate && (e.zoom = h({
- animate: e.animate
- }, e.zoom), e.pan = h({
- animate: e.animate,
- duration: e.duration
- }, e.pan)), this._zoom !== i ? this._tryAnimatedZoom && this._tryAnimatedZoom(t, i,
- e.zoom) : this._tryAnimatedPan(t, e.pan))) return clearTimeout(this._sizeTimer),
- this;
- return this._resetView(t, i), this
- },
- setZoom: function(t, i) {
- return this._loaded ? this.setView(this.getCenter(), t, {
- zoom: i
- }) : (this._zoom = t, this)
- },
- zoomIn: function(t, i) {
- return t = t || (vt ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, i)
- },
- zoomOut: function(t, i) {
- return t = t || (vt ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, i)
- },
- setZoomAround: function(t, i, e) {
- var n = this.getZoomScale(i),
- o = this.getSize().divideBy(2),
- s = (t instanceof k ? t : this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1 - 1 /
- n),
- r = this.containerPointToLatLng(o.add(s));
- return this.setView(r, i, {
- zoom: e
- })
- },
- _getBoundsCenterZoom: function(t, i) {
- i = i || {}, t = t.getBounds ? t.getBounds() : N(t);
- var e = A(i.paddingTopLeft || i.padding || [0, 0]),
- n = A(i.paddingBottomRight || i.padding || [0, 0]),
- o = this.getBoundsZoom(t, !1, e.add(n));
- if ((o = "number" == typeof i.maxZoom ? Math.min(i.maxZoom, o) : o) === 1 / 0) return {
- center: t.getCenter(),
- zoom: o
- };
- var s = n.subtract(e).divideBy(2),
- r = this.project(t.getSouthWest(), o),
- a = this.project(t.getNorthEast(), o);
- return {
- center: this.unproject(r.add(a).divideBy(2).add(s), o),
- zoom: o
- }
- },
- fitBounds: function(t, i) {
- if (!(t = N(t)).isValid()) throw new Error("Bounds are not valid.");
- var e = this._getBoundsCenterZoom(t, i);
- return this.setView(e.center, e.zoom, i)
- },
- fitWorld: function(t) {
- return this.fitBounds([
- [-90, -180],
- [90, 180]
- ], t)
- },
- panTo: function(t, i) {
- return this.setView(t, this._zoom, {
- pan: i
- })
- },
- panBy: function(t, i) {
- return i = i || {}, (t = A(t).round()).x || t.y ? (!0 === i.animate || this.getSize()
- .contains(t) ? (this._panAnim || (this._panAnim = new Gi, this._panAnim.on({
- step: this._onPanTransitionStep,
- end: this._onPanTransitionEnd
- }, this)), i.noMoveStart || this.fire("movestart"), !1 !== i.animate ? (ci(this
- ._mapPane, "leaflet-pan-anim"), e = this._getMapPanePos().subtract(t)
- .round(), this._panAnim.run(this._mapPane, e, i.duration || .25, i
- .easeLinearity)) : (this._rawPanBy(t), this.fire("move").fire(
- "moveend"))) : this._resetView(this.unproject(this.project(this.getCenter())
- .add(t)), this.getZoom()), this) : this.fire("moveend");
- var e
- },
- flyTo: function(s, r, t) {
- if (!1 === (t = t || {}).animate || !vt) return this.setView(s, r, t);
- this._stop();
- var a = this.project(this.getCenter()),
- h = this.project(s),
- i = this.getSize(),
- u = this._zoom;
- s = j(s), r = void 0 === r ? u : r;
- var l = Math.max(i.x, i.y),
- n = l * this.getZoomScale(u, r),
- c = h.distanceTo(a) || 1,
- _ = 1.42,
- o = _ * _;
-
- function e(t) {
- var i = (n * n - l * l + (t ? -1 : 1) * o * o * c * c) / (2 * (t ? n : l) * o * c),
- e = Math.sqrt(i * i + 1) - i;
- return e < 1e-9 ? -18 : Math.log(e)
- }
-
- function d(t) {
- return (Math.exp(t) - Math.exp(-t)) / 2
- }
-
- function p(t) {
- return (Math.exp(t) + Math.exp(-t)) / 2
- }
- var m = e(0);
-
- function f(t) {
- return l * (p(m) * (d(i = m + _ * t) / p(i)) - d(m)) / o;
- var i
- }
- var g = Date.now(),
- v = (e(1) - m) / _,
- y = t.duration ? 1e3 * t.duration : 1e3 * v * .8;
- return this._moveStart(!0, t.noMoveStart),
- function t() {
- var i, e, n = (Date.now() - g) / y,
- o = (i = n, (1 - Math.pow(1 - i, 1.5)) * v);
- n <= 1 ? (this._flyToFrame = M(t, this), this._move(this.unproject(a.add(h.subtract(
- a).multiplyBy(f(o) / c)), u), this.getScaleZoom(l / (e = o, l * (p(
- m) / p(m + _ * e))), u), {
- flyTo: !0
- })) : this._move(s, r)._moveEnd(!0)
- }.call(this), this
- },
- flyToBounds: function(t, i) {
- var e = this._getBoundsCenterZoom(t, i);
- return this.flyTo(e.center, e.zoom, i)
- },
- setMaxBounds: function(t) {
- return (t = N(t)).isValid() ? (this.options.maxBounds && this.off("moveend", this
- ._panInsideMaxBounds), this.options.maxBounds = t, this._loaded && this
- ._panInsideMaxBounds(), this.on("moveend", this._panInsideMaxBounds)) : (this
- .options.maxBounds = null, this.off("moveend", this._panInsideMaxBounds))
- },
- setMinZoom: function(t) {
- var i = this.options.minZoom;
- return this.options.minZoom = t, this._loaded && i !== t && (this.fire("zoomlevelschange"),
- this.getZoom() < this.options.minZoom) ? this.setZoom(t) : this
- },
- setMaxZoom: function(t) {
- var i = this.options.maxZoom;
- return this.options.maxZoom = t, this._loaded && i !== t && (this.fire("zoomlevelschange"),
- this.getZoom() > this.options.maxZoom) ? this.setZoom(t) : this
- },
- panInsideBounds: function(t, i) {
- this._enforcingBounds = !0;
- var e = this.getCenter(),
- n = this._limitCenter(e, this._zoom, N(t));
- return e.equals(n) || this.panTo(n, i), this._enforcingBounds = !1, this
- },
- panInside: function(t, i) {
- var e, n, o = A((i = i || {}).paddingTopLeft || i.padding || [0, 0]),
- s = A(i.paddingBottomRight || i.padding || [0, 0]),
- r = this.getCenter(),
- a = this.project(r),
- h = this.project(t),
- u = this.getPixelBounds(),
- l = u.getSize().divideBy(2),
- c = O([u.min.add(o), u.max.subtract(s)]);
- return c.contains(h) || (this._enforcingBounds = !0, e = a.subtract(h), n = A(h.x + e.x, h
- .y + e.y), (h.x < c.min.x || h.x > c.max.x) && (n.x = a.x - e.x, 0 < e.x ? n
- .x += l.x - o.x : n.x -= l.x - s.x), (h.y < c.min.y || h.y > c.max.y) && (n.y =
- a.y - e.y, 0 < e.y ? n.y += l.y - o.y : n.y -= l.y - s.y), this.panTo(this
- .unproject(n), i), this._enforcingBounds = !1), this
- },
- invalidateSize: function(t) {
- if (!this._loaded) return this;
- t = h({
- animate: !1,
- pan: !0
- }, !0 === t ? {
- animate: !0
- } : t);
- var i = this.getSize();
- this._sizeChanged = !0, this._lastCenter = null;
- var e = this.getSize(),
- n = i.divideBy(2).round(),
- o = e.divideBy(2).round(),
- s = n.subtract(o);
- return s.x || s.y ? (t.animate && t.pan ? this.panBy(s) : (t.pan && this._rawPanBy(s), this
- .fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this
- ._sizeTimer = setTimeout(p(this.fire, this, "moveend"), 200)) : this.fire(
- "moveend")), this.fire("resize", {
- oldSize: i,
- newSize: e
- })) : this
- },
- stop: function() {
- return this.setZoom(this._limitZoom(this._zoom)), this.options.zoomSnap || this.fire(
- "viewreset"), this._stop()
- },
- locate: function(t) {
- if (t = this._locateOptions = h({
- timeout: 1e4,
- watch: !1
- }, t), !("geolocation" in navigator)) return this._handleGeolocationError({
- code: 0,
- message: "Geolocation not supported."
- }), this;
- var i = p(this._handleGeolocationResponse, this),
- e = p(this._handleGeolocationError, this);
- return t.watch ? this._locationWatchId = navigator.geolocation.watchPosition(i, e, t) :
- navigator.geolocation.getCurrentPosition(i, e, t), this
- },
- stopLocate: function() {
- return navigator.geolocation && navigator.geolocation.clearWatch && navigator.geolocation
- .clearWatch(this._locationWatchId), this._locateOptions && (this._locateOptions
- .setView = !1), this
- },
- _handleGeolocationError: function(t) {
- var i = t.code,
- e = t.message || (1 === i ? "permission denied" : 2 === i ? "position unavailable" :
- "timeout");
- this._locateOptions.setView && !this._loaded && this.fitWorld(), this.fire(
- "locationerror", {
- code: i,
- message: "Geolocation error: " + e + "."
- })
- },
- _handleGeolocationResponse: function(t) {
- var i, e = new D(t.coords.latitude, t.coords.longitude),
- n = e.toBounds(2 * t.coords.accuracy),
- o = this._locateOptions;
- o.setView && (i = this.getBoundsZoom(n), this.setView(e, o.maxZoom ? Math.min(i, o
- .maxZoom) : i));
- var s = {
- latlng: e,
- bounds: n,
- timestamp: t.timestamp
- };
- for (var r in t.coords) "number" == typeof t.coords[r] && (s[r] = t.coords[r]);
- this.fire("locationfound", s)
- },
- addHandler: function(t, i) {
- if (!i) return this;
- var e = this[t] = new i(this);
- return this._handlers.push(e), this.options[t] && e.enable(), this
- },
- remove: function() {
- if (this._initEvents(!0), this.off("moveend", this._panInsideMaxBounds), this
- ._containerId !== this._container._leaflet_id) throw new Error(
- "Map container is being reused by another instance");
- try {
- delete this._container._leaflet_id, delete this._containerId
- } catch (t) {
- this._container._leaflet_id = void 0, this._containerId = void 0
- }
- var t;
- for (t in void 0 !== this._locationWatchId && this.stopLocate(), this._stop(), ri(this
- ._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest &&
- (z(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this
- ._loaded && this.fire("unload"), this._layers) this._layers[t].remove();
- for (t in this._panes) ri(this._panes[t]);
- return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer,
- this
- },
- createPane: function(t, i) {
- var e = si("div", "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""),
- i || this._mapPane);
- return t && (this._panes[t] = e), e
- },
- getCenter: function() {
- return this._checkIfLoaded(), this._lastCenter && !this._moved() ? this._lastCenter : this
- .layerPointToLatLng(this._getCenterLayerPoint())
- },
- getZoom: function() {
- return this._zoom
- },
- getBounds: function() {
- var t = this.getPixelBounds();
- return new R(this.unproject(t.getBottomLeft()), this.unproject(t.getTopRight()))
- },
- getMinZoom: function() {
- return void 0 === this.options.minZoom ? this._layersMinZoom || 0 : this.options.minZoom
- },
- getMaxZoom: function() {
- return void 0 === this.options.maxZoom ? void 0 === this._layersMaxZoom ? 1 / 0 : this
- ._layersMaxZoom : this.options.maxZoom
- },
- getBoundsZoom: function(t, i, e) {
- t = N(t), e = A(e || [0, 0]);
- var n = this.getZoom() || 0,
- o = this.getMinZoom(),
- s = this.getMaxZoom(),
- r = t.getNorthWest(),
- a = t.getSouthEast(),
- h = this.getSize().subtract(e),
- u = O(this.project(a, n), this.project(r, n)).getSize(),
- l = vt ? this.options.zoomSnap : 1,
- c = h.x / u.x,
- _ = h.y / u.y,
- d = i ? Math.max(c, _) : Math.min(c, _),
- n = this.getScaleZoom(d, n);
- return l && (n = Math.round(n / (l / 100)) * (l / 100), n = i ? Math.ceil(n / l) * l : Math
- .floor(n / l) * l), Math.max(o, Math.min(s, n))
- },
- getSize: function() {
- return this._size && !this._sizeChanged || (this._size = new k(this._container
- .clientWidth || 0, this._container.clientHeight || 0), this._sizeChanged = !1), this
- ._size.clone()
- },
- getPixelBounds: function(t, i) {
- var e = this._getTopLeftPoint(t, i);
- return new I(e, e.add(this.getSize()))
- },
- getPixelOrigin: function() {
- return this._checkIfLoaded(), this._pixelOrigin
- },
- getPixelWorldBounds: function(t) {
- return this.options.crs.getProjectedBounds(void 0 === t ? this.getZoom() : t)
- },
- getPane: function(t) {
- return "string" == typeof t ? this._panes[t] : t
- },
- getPanes: function() {
- return this._panes
- },
- getContainer: function() {
- return this._container
- },
- getZoomScale: function(t, i) {
- var e = this.options.crs;
- return i = void 0 === i ? this._zoom : i, e.scale(t) / e.scale(i)
- },
- getScaleZoom: function(t, i) {
- var e = this.options.crs;
- i = void 0 === i ? this._zoom : i;
- var n = e.zoom(t * e.scale(i));
- return isNaN(n) ? 1 / 0 : n
- },
- project: function(t, i) {
- return i = void 0 === i ? this._zoom : i, this.options.crs.latLngToPoint(j(t), i)
- },
- unproject: function(t, i) {
- return i = void 0 === i ? this._zoom : i, this.options.crs.pointToLatLng(A(t), i)
- },
- layerPointToLatLng: function(t) {
- var i = A(t).add(this.getPixelOrigin());
- return this.unproject(i)
- },
- latLngToLayerPoint: function(t) {
- return this.project(j(t))._round()._subtract(this.getPixelOrigin())
- },
- wrapLatLng: function(t) {
- return this.options.crs.wrapLatLng(j(t))
- },
- wrapLatLngBounds: function(t) {
- return this.options.crs.wrapLatLngBounds(N(t))
- },
- distance: function(t, i) {
- return this.options.crs.distance(j(t), j(i))
- },
- containerPointToLayerPoint: function(t) {
- return A(t).subtract(this._getMapPanePos())
- },
- layerPointToContainerPoint: function(t) {
- return A(t).add(this._getMapPanePos())
- },
- containerPointToLatLng: function(t) {
- var i = this.containerPointToLayerPoint(A(t));
- return this.layerPointToLatLng(i)
- },
- latLngToContainerPoint: function(t) {
- return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))
- },
- mouseEventToContainerPoint: function(t) {
- return Di(t, this._container)
- },
- mouseEventToLayerPoint: function(t) {
- return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))
- },
- mouseEventToLatLng: function(t) {
- return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))
- },
- _initContainer: function(t) {
- var i = this._container = ni(t);
- if (!i) throw new Error("Map container not found.");
- if (i._leaflet_id) throw new Error("Map container is already initialized.");
- zi(i, "scroll", this._onScroll, this), this._containerId = m(i)
- },
- _initLayout: function() {
- var t = this._container;
- this._fadeAnimated = this.options.fadeAnimation && vt, ci(t, "leaflet-container" + (bt ?
- " leaflet-touch" : "") + (zt ? " leaflet-retina" : "") + (it ?
- " leaflet-oldie" : "") + (ct ? " leaflet-safari" : "") + (this._fadeAnimated ?
- " leaflet-fade-anim" : ""));
- var i = oi(t, "position");
- "absolute" !== i && "relative" !== i && "fixed" !== i && (t.style.position = "relative"),
- this._initPanes(), this._initControlPos && this._initControlPos()
- },
- _initPanes: function() {
- var t = this._panes = {};
- this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), vi(
- this._mapPane, new k(0, 0)), this.createPane("tilePane"), this.createPane(
- "shadowPane"), this.createPane("overlayPane"), this.createPane("markerPane"), this
- .createPane("tooltipPane"), this.createPane("popupPane"), this.options
- .markerZoomAnimation || (ci(t.markerPane, "leaflet-zoom-hide"), ci(t.shadowPane,
- "leaflet-zoom-hide"))
- },
- _resetView: function(t, i) {
- vi(this._mapPane, new k(0, 0));
- var e = !this._loaded;
- this._loaded = !0, i = this._limitZoom(i), this.fire("viewprereset");
- var n = this._zoom !== i;
- this._moveStart(n, !1)._move(t, i)._moveEnd(n), this.fire("viewreset"), e && this.fire(
- "load")
- },
- _moveStart: function(t, i) {
- return t && this.fire("zoomstart"), i || this.fire("movestart"), this
- },
- _move: function(t, i, e) {
- void 0 === i && (i = this._zoom);
- var n = this._zoom !== i;
- return this._zoom = i, this._lastCenter = t, this._pixelOrigin = this._getNewPixelOrigin(t),
- (n || e && e.pinch) && this.fire("zoom", e), this.fire("move", e)
- },
- _moveEnd: function(t) {
- return t && this.fire("zoomend"), this.fire("moveend")
- },
- _stop: function() {
- return z(this._flyToFrame), this._panAnim && this._panAnim.stop(), this
- },
- _rawPanBy: function(t) {
- vi(this._mapPane, this._getMapPanePos().subtract(t))
- },
- _getZoomSpan: function() {
- return this.getMaxZoom() - this.getMinZoom()
- },
- _panInsideMaxBounds: function() {
- this._enforcingBounds || this.panInsideBounds(this.options.maxBounds)
- },
- _checkIfLoaded: function() {
- if (!this._loaded) throw new Error("Set map center and zoom first.")
- },
- _initEvents: function(t) {
- this._targets = {};
- var i = t ? Si : zi;
- i((this._targets[m(this._container)] = this)._container,
- "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",
- this._handleDOMEvent, this), this.options.trackResize && i(window, "resize", this
- ._onResize, this), vt && this.options.transform3DLimit && (t ? this.off : this.on)
- .call(this, "moveend", this._onMoveEnd)
- },
- _onResize: function() {
- z(this._resizeRequest), this._resizeRequest = M(function() {
- this.invalidateSize({
- debounceMoveend: !0
- })
- }, this)
- },
- _onScroll: function() {
- this._container.scrollTop = 0, this._container.scrollLeft = 0
- },
- _onMoveEnd: function() {
- var t = this._getMapPanePos();
- Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(
- this.getCenter(), this.getZoom())
- },
- _findEventTargets: function(t, i) {
- for (var e, n = [], o = "mouseout" === i || "mouseover" === i, s = t.target || t.srcElement,
- r = !1; s;) {
- if ((e = this._targets[m(s)]) && ("click" === i || "preclick" === i) && !t._simulated &&
- this._draggableMoved(e)) {
- r = !0;
- break
- }
- if (e && e.listens(i, !0)) {
- if (o && !Vi(s, t)) break;
- if (n.push(e), o) break
- }
- if (s === this._container) break;
- s = s.parentNode
- }
- return n.length || r || o || !Vi(s, t) || (n = [this]), n
- },
- _handleDOMEvent: function(t) {
- var i;
- this._loaded && !Ui(t) && ("mousedown" !== (i = t.type) && "keypress" !== i && "keyup" !==
- i && "keydown" !== i || Pi(t.target || t.srcElement), this._fireDOMEvent(t, i))
- },
- _mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
- _fireDOMEvent: function(t, i, e) {
- var n;
- if ("click" === t.type && ((n = h({}, t)).type = "preclick", this._fireDOMEvent(n, n.type,
- e)), !t._stopped && (e = (e || []).concat(this._findEventTargets(t, i))).length) {
- var o = e[0];
- "contextmenu" === i && o.listens(i, !0) && Ri(t);
- var s, r = {
- originalEvent: t
- };
- "keypress" !== t.type && "keydown" !== t.type && "keyup" !== t.type && (s = o
- .getLatLng && (!o._radius || o._radius <= 10), r.containerPoint = s ? this
- .latLngToContainerPoint(o.getLatLng()) : this.mouseEventToContainerPoint(t), r
- .layerPoint = this.containerPointToLayerPoint(r.containerPoint), r.latlng = s ?
- o.getLatLng() : this.layerPointToLatLng(r.layerPoint));
- for (var a = 0; a < e.length; a++)
- if (e[a].fire(i, r, !0), r.originalEvent._stopped || !1 === e[a].options
- .bubblingMouseEvents && -1 !== v(this._mouseEvents, i)) return
- }
- },
- _draggableMoved: function(t) {
- return (t = t.dragging && t.dragging.enabled() ? t : this).dragging && t.dragging.moved() ||
- this.boxZoom && this.boxZoom.moved()
- },
- _clearHandlers: function() {
- for (var t = 0, i = this._handlers.length; t < i; t++) this._handlers[t].disable()
- },
- whenReady: function(t, i) {
- return this._loaded ? t.call(i || this, {
- target: this
- }) : this.on("load", t, i), this
- },
- _getMapPanePos: function() {
- return yi(this._mapPane) || new k(0, 0)
- },
- _moved: function() {
- var t = this._getMapPanePos();
- return t && !t.equals([0, 0])
- },
- _getTopLeftPoint: function(t, i) {
- return (t && void 0 !== i ? this._getNewPixelOrigin(t, i) : this.getPixelOrigin()).subtract(
- this._getMapPanePos())
- },
- _getNewPixelOrigin: function(t, i) {
- var e = this.getSize()._divideBy(2);
- return this.project(t, i)._subtract(e)._add(this._getMapPanePos())._round()
- },
- _latLngToNewLayerPoint: function(t, i, e) {
- var n = this._getNewPixelOrigin(e, i);
- return this.project(t, i)._subtract(n)
- },
- _latLngBoundsToNewLayerBounds: function(t, i, e) {
- var n = this._getNewPixelOrigin(e, i);
- return O([this.project(t.getSouthWest(), i)._subtract(n), this.project(t.getNorthWest(), i)
- ._subtract(n), this.project(t.getSouthEast(), i)._subtract(n), this.project(t
- .getNorthEast(), i)._subtract(n)
- ])
- },
- _getCenterLayerPoint: function() {
- return this.containerPointToLayerPoint(this.getSize()._divideBy(2))
- },
- _getCenterOffset: function(t) {
- return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())
- },
- _limitCenter: function(t, i, e) {
- if (!e) return t;
- var n = this.project(t, i),
- o = this.getSize().divideBy(2),
- s = new I(n.subtract(o), n.add(o)),
- r = this._getBoundsOffset(s, e, i);
- return r.round().equals([0, 0]) ? t : this.unproject(n.add(r), i)
- },
- _limitOffset: function(t, i) {
- if (!i) return t;
- var e = this.getPixelBounds(),
- n = new I(e.min.add(t), e.max.add(t));
- return t.add(this._getBoundsOffset(n, i))
- },
- _getBoundsOffset: function(t, i, e) {
- var n = O(this.project(i.getNorthEast(), e), this.project(i.getSouthWest(), e)),
- o = n.min.subtract(t.min),
- s = n.max.subtract(t.max);
- return new k(this._rebound(o.x, -s.x), this._rebound(o.y, -s.y))
- },
- _rebound: function(t, i) {
- return 0 < t + i ? Math.round(t - i) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math
- .floor(i))
- },
- _limitZoom: function(t) {
- var i = this.getMinZoom(),
- e = this.getMaxZoom(),
- n = vt ? this.options.zoomSnap : 1;
- return n && (t = Math.round(t / n) * n), Math.max(i, Math.min(e, t))
- },
- _onPanTransitionStep: function() {
- this.fire("move")
- },
- _onPanTransitionEnd: function() {
- _i(this._mapPane, "leaflet-pan-anim"), this.fire("moveend")
- },
- _tryAnimatedPan: function(t, i) {
- var e = this._getCenterOffset(t)._trunc();
- return !(!0 !== (i && i.animate) && !this.getSize().contains(e)) && (this.panBy(e, i), !0)
- },
- _createAnimProxy: function() {
- var t = this._proxy = si("div", "leaflet-proxy leaflet-zoom-animated");
- this._panes.mapPane.appendChild(t), this.on("zoomanim", function(t) {
- var i = ti,
- e = this._proxy.style[i];
- gi(this._proxy, this.project(t.center, t.zoom), this.getZoomScale(t.zoom, 1)),
- e === this._proxy.style[i] && this._animatingZoom && this
- ._onZoomTransitionEnd()
- }, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this
- ._destroyAnimProxy, this)
- },
- _destroyAnimProxy: function() {
- ri(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy
- },
- _animMoveEnd: function() {
- var t = this.getCenter(),
- i = this.getZoom();
- gi(this._proxy, this.project(t, i), this.getZoomScale(i, 1))
- },
- _catchTransitionEnd: function(t) {
- this._animatingZoom && 0 <= t.propertyName.indexOf("transform") && this
- ._onZoomTransitionEnd()
- },
- _nothingToAnimate: function() {
- return !this._container.getElementsByClassName("leaflet-zoom-animated").length
- },
- _tryAnimatedZoom: function(t, i, e) {
- if (this._animatingZoom) return !0;
- if (e = e || {}, !this._zoomAnimated || !1 === e.animate || this._nothingToAnimate() || Math
- .abs(i - this._zoom) > this.options.zoomAnimationThreshold) return !1;
- var n = this.getZoomScale(i),
- o = this._getCenterOffset(t)._divideBy(1 - 1 / n);
- return !(!0 !== e.animate && !this.getSize().contains(o)) && (M(function() {
- this._moveStart(!0, !1)._animateZoom(t, i, !0)
- }, this), !0)
- },
- _animateZoom: function(t, i, e, n) {
- this._mapPane && (e && (this._animatingZoom = !0, this._animateToCenter = t, this
- ._animateToZoom = i, ci(this._mapPane, "leaflet-zoom-anim")), this.fire(
- "zoomanim", {
- center: t,
- zoom: i,
- noUpdate: n
- }), setTimeout(p(this._onZoomTransitionEnd, this), 250))
- },
- _onZoomTransitionEnd: function() {
- this._animatingZoom && (this._mapPane && _i(this._mapPane, "leaflet-zoom-anim"), this
- ._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom), M(
- function() {
- this._moveEnd(!0)
- }, this))
- }
- });
-
- function Yi(t) {
- return new Xi(t)
- }
- var Xi = S.extend({
- options: {
- position: "topright"
- },
- initialize: function(t) {
- c(this, t)
- },
- getPosition: function() {
- return this.options.position
- },
- setPosition: function(t) {
- var i = this._map;
- return i && i.removeControl(this), this.options.position = t, i && i.addControl(this), this
- },
- getContainer: function() {
- return this._container
- },
- addTo: function(t) {
- this.remove(), this._map = t;
- var i = this._container = this.onAdd(t),
- e = this.getPosition(),
- n = t._controlCorners[e];
- return ci(i, "leaflet-control"), -1 !== e.indexOf("bottom") ? n.insertBefore(i, n
- .firstChild) : n.appendChild(i), this._map.on("unload", this.remove, this), this
- },
- remove: function() {
- return this._map && (ri(this._container), this.onRemove && this.onRemove(this._map), this
- ._map.off("unload", this.remove, this), this._map = null), this
- },
- _refocusOnMap: function(t) {
- this._map && t && 0 < t.screenX && 0 < t.screenY && this._map.getContainer().focus()
- }
- });
- Ki.include({
- addControl: function(t) {
- return t.addTo(this), this
- },
- removeControl: function(t) {
- return t.remove(), this
- },
- _initControlPos: function() {
- var n = this._controlCorners = {},
- o = "leaflet-",
- s = this._controlContainer = si("div", o + "control-container", this._container);
-
- function t(t, i) {
- var e = o + t + " " + o + i;
- n[t + i] = si("div", e, s)
- }
- t("top", "left"), t("top", "right"), t("bottom", "left"), t("bottom", "right")
- },
- _clearControlPos: function() {
- for (var t in this._controlCorners) ri(this._controlCorners[t]);
- ri(this._controlContainer), delete this._controlCorners, delete this._controlContainer
- }
- });
- var Ji = Xi.extend({
- options: {
- collapsed: !0,
- position: "topright",
- autoZIndex: !0,
- hideSingleBase: !1,
- sortLayers: !1,
- sortFunction: function(t, i, e, n) {
- return e < n ? -1 : n < e ? 1 : 0
- }
- },
- initialize: function(t, i, e) {
- for (var n in c(this, e), this._layerControlInputs = [], this._layers = [], this
- ._lastZIndex = 0, this._handlingClick = !1, t) this._addLayer(t[n], n);
- for (n in i) this._addLayer(i[n], n, !0)
- },
- onAdd: function(t) {
- this._initLayout(), this._update(), (this._map = t).on("zoomend", this._checkDisabledLayers,
- this);
- for (var i = 0; i < this._layers.length; i++) this._layers[i].layer.on("add remove", this
- ._onLayerChange, this);
- return this._container
- },
- addTo: function(t) {
- return Xi.prototype.addTo.call(this, t), this._expandIfNotCollapsed()
- },
- onRemove: function() {
- this._map.off("zoomend", this._checkDisabledLayers, this);
- for (var t = 0; t < this._layers.length; t++) this._layers[t].layer.off("add remove", this
- ._onLayerChange, this)
- },
- addBaseLayer: function(t, i) {
- return this._addLayer(t, i), this._map ? this._update() : this
- },
- addOverlay: function(t, i) {
- return this._addLayer(t, i, !0), this._map ? this._update() : this
- },
- removeLayer: function(t) {
- t.off("add remove", this._onLayerChange, this);
- var i = this._getLayer(m(t));
- return i && this._layers.splice(this._layers.indexOf(i), 1), this._map ? this._update() :
- this
- },
- expand: function() {
- ci(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
- var t = this._map.getSize().y - (this._container.offsetTop + 50);
- return t < this._section.clientHeight ? (ci(this._section,
- "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : _i(
- this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(),
- this
- },
- collapse: function() {
- return _i(this._container, "leaflet-control-layers-expanded"), this
- },
- _initLayout: function() {
- var t = "leaflet-control-layers",
- i = this._container = si("div", t),
- e = this.options.collapsed;
- i.setAttribute("aria-haspopup", !0), Oi(i), Ii(i);
- var n = this._section = si("section", t + "-list");
- e && (this._map.on("click", this.collapse, this), ot || zi(i, {
- mouseenter: this.expand,
- mouseleave: this.collapse
- }, this));
- var o = this._layersLink = si("a", t + "-toggle", i);
- o.href = "#", o.title = "Layers", bt ? (zi(o, "click", Ni), zi(o, "click", this.expand,
- this)) : zi(o, "focus", this.expand, this), e || this.expand(), this
- ._baseLayersList = si("div", t + "-base", n), this._separator = si("div", t +
- "-separator", n), this._overlaysList = si("div", t + "-overlays", n), i.appendChild(
- n)
- },
- _getLayer: function(t) {
- for (var i = 0; i < this._layers.length; i++)
- if (this._layers[i] && m(this._layers[i].layer) === t) return this._layers[i]
- },
- _addLayer: function(t, i, e) {
- this._map && t.on("add remove", this._onLayerChange, this), this._layers.push({
- layer: t,
- name: i,
- overlay: e
- }), this.options.sortLayers && this._layers.sort(p(function(t, i) {
- return this.options.sortFunction(t.layer, i.layer, t.name, i.name)
- }, this)), this.options.autoZIndex && t.setZIndex && (this._lastZIndex++, t.setZIndex(
- this._lastZIndex)), this._expandIfNotCollapsed()
- },
- _update: function() {
- if (!this._container) return this;
- ai(this._baseLayersList), ai(this._overlaysList), this._layerControlInputs = [];
- for (var t, i, e, n = 0, o = 0; o < this._layers.length; o++) e = this._layers[o], this
- ._addItem(e), i = i || e.overlay, t = t || !e.overlay, n += e.overlay ? 0 : 1;
- return this.options.hideSingleBase && (t = t && 1 < n, this._baseLayersList.style.display =
- t ? "" : "none"), this._separator.style.display = i && t ? "" : "none", this
- },
- _onLayerChange: function(t) {
- this._handlingClick || this._update();
- var i = this._getLayer(m(t.target)),
- e = i.overlay ? "add" === t.type ? "overlayadd" : "overlayremove" : "add" === t.type ?
- "baselayerchange" : null;
- e && this._map.fire(e, i)
- },
- _createRadioElement: function(t, i) {
- var e = '<input type="radio" class="leaflet-control-layers-selector" name="' + t + '"' + (
- i ? ' checked="checked"' : "") + "/>",
- n = document.createElement("div");
- return n.innerHTML = e, n.firstChild
- },
- _addItem: function(t) {
- var i, e = document.createElement("label"),
- n = this._map.hasLayer(t.layer);
- t.overlay ? ((i = document.createElement("input")).type = "checkbox", i.className =
- "leaflet-control-layers-selector", i.defaultChecked = n) : i = this
- ._createRadioElement("leaflet-base-layers_" + m(this), n), this._layerControlInputs
- .push(i), i.layerId = m(t.layer), zi(i, "click", this._onInputClick, this);
- var o = document.createElement("span");
- o.innerHTML = " " + t.name;
- var s = document.createElement("div");
- return e.appendChild(s), s.appendChild(i), s.appendChild(o), (t.overlay ? this
- ._overlaysList : this._baseLayersList).appendChild(e), this._checkDisabledLayers(),
- e
- },
- _onInputClick: function() {
- var t, i, e = this._layerControlInputs,
- n = [],
- o = [];
- this._handlingClick = !0;
- for (var s = e.length - 1; 0 <= s; s--) t = e[s], i = this._getLayer(t.layerId).layer, t
- .checked ? n.push(i) : t.checked || o.push(i);
- for (s = 0; s < o.length; s++) this._map.hasLayer(o[s]) && this._map.removeLayer(o[s]);
- for (s = 0; s < n.length; s++) this._map.hasLayer(n[s]) || this._map.addLayer(n[s]);
- this._handlingClick = !1, this._refocusOnMap()
- },
- _checkDisabledLayers: function() {
- for (var t, i, e = this._layerControlInputs, n = this._map.getZoom(), o = e.length - 1; 0 <=
- o; o--) t = e[o], i = this._getLayer(t.layerId).layer, t.disabled = void 0 !== i.options
- .minZoom && n < i.options.minZoom || void 0 !== i.options.maxZoom && n > i.options
- .maxZoom
- },
- _expandIfNotCollapsed: function() {
- return this._map && !this.options.collapsed && this.expand(), this
- },
- _expand: function() {
- return this.expand()
- },
- _collapse: function() {
- return this.collapse()
- }
- }),
- $i = Xi.extend({
- options: {
- position: "topleft",
- zoomInText: "+",
- zoomInTitle: "Zoom in",
- zoomOutText: "−",
- zoomOutTitle: "Zoom out"
- },
- onAdd: function(t) {
- var i = "leaflet-control-zoom",
- e = si("div", i + " leaflet-bar"),
- n = this.options;
- return this._zoomInButton = this._createButton(n.zoomInText, n.zoomInTitle, i + "-in", e,
- this._zoomIn), this._zoomOutButton = this._createButton(n.zoomOutText, n
- .zoomOutTitle, i + "-out", e, this._zoomOut), this._updateDisabled(), t.on(
- "zoomend zoomlevelschange", this._updateDisabled, this), e
- },
- onRemove: function(t) {
- t.off("zoomend zoomlevelschange", this._updateDisabled, this)
- },
- disable: function() {
- return this._disabled = !0, this._updateDisabled(), this
- },
- enable: function() {
- return this._disabled = !1, this._updateDisabled(), this
- },
- _zoomIn: function(t) {
- !this._disabled && this._map._zoom < this._map.getMaxZoom() && this._map.zoomIn(this._map
- .options.zoomDelta * (t.shiftKey ? 3 : 1))
- },
- _zoomOut: function(t) {
- !this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map
- .options.zoomDelta * (t.shiftKey ? 3 : 1))
- },
- _createButton: function(t, i, e, n, o) {
- var s = si("a", e, n);
- return s.innerHTML = t, s.href = "#", s.title = i, s.setAttribute("role", "button"), s
- .setAttribute("aria-label", i), Oi(s), zi(s, "click", Ni), zi(s, "click", o, this), zi(
- s, "click", this._refocusOnMap, this), s
- },
- _updateDisabled: function() {
- var t = this._map,
- i = "leaflet-disabled";
- _i(this._zoomInButton, i), _i(this._zoomOutButton, i), !this._disabled && t._zoom !== t
- .getMinZoom() || ci(this._zoomOutButton, i), !this._disabled && t._zoom !== t
- .getMaxZoom() || ci(this._zoomInButton, i)
- }
- });
- Ki.mergeOptions({
- zoomControl: !0
- }), Ki.addInitHook(function() {
- this.options.zoomControl && (this.zoomControl = new $i, this.addControl(this.zoomControl))
- });
- var Qi = Xi.extend({
- options: {
- position: "bottomleft",
- maxWidth: 100,
- metric: !0,
- imperial: !0
- },
- onAdd: function(t) {
- var i = "leaflet-control-scale",
- e = si("div", i),
- n = this.options;
- return this._addScales(n, i + "-line", e), t.on(n.updateWhenIdle ? "moveend" : "move", this
- ._update, this), t.whenReady(this._update, this), e
- },
- onRemove: function(t) {
- t.off(this.options.updateWhenIdle ? "moveend" : "move", this._update, this)
- },
- _addScales: function(t, i, e) {
- t.metric && (this._mScale = si("div", i, e)), t.imperial && (this._iScale = si("div", i, e))
- },
- _update: function() {
- var t = this._map,
- i = t.getSize().y / 2,
- e = t.distance(t.containerPointToLatLng([0, i]), t.containerPointToLatLng([this.options
- .maxWidth, i
- ]));
- this._updateScales(e)
- },
- _updateScales: function(t) {
- this.options.metric && t && this._updateMetric(t), this.options.imperial && t && this
- ._updateImperial(t)
- },
- _updateMetric: function(t) {
- var i = this._getRoundNum(t),
- e = i < 1e3 ? i + " m" : i / 1e3 + " km";
- this._updateScale(this._mScale, e, i / t)
- },
- _updateImperial: function(t) {
- var i, e, n, o = 3.2808399 * t;
- 5280 < o ? (i = o / 5280, e = this._getRoundNum(i), this._updateScale(this._iScale, e +
- " mi", e / i)) : (n = this._getRoundNum(o), this._updateScale(this._iScale, n +
- " ft", n / o))
- },
- _updateScale: function(t, i, e) {
- t.style.width = Math.round(this.options.maxWidth * e) + "px", t.innerHTML = i
- },
- _getRoundNum: function(t) {
- var i = Math.pow(10, (Math.floor(t) + "").length - 1),
- e = t / i;
- return i * (e = 10 <= e ? 10 : 5 <= e ? 5 : 3 <= e ? 3 : 2 <= e ? 2 : 1)
- }
- }),
- te = Xi.extend({
- options: {
- position: "bottomright",
- prefix: '<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'
- },
- initialize: function(t) {
- c(this, t), this._attributions = {}
- },
- onAdd: function(t) {
- for (var i in (t.attributionControl = this)._container = si("div",
- "leaflet-control-attribution"), Oi(this._container), t._layers) t._layers[i]
- .getAttribution && this.addAttribution(t._layers[i].getAttribution());
- return this._update(), this._container
- },
- setPrefix: function(t) {
- return this.options.prefix = t, this._update(), this
- },
- addAttribution: function(t) {
- return t && (this._attributions[t] || (this._attributions[t] = 0), this._attributions[t]++,
- this._update()), this
- },
- removeAttribution: function(t) {
- return t && this._attributions[t] && (this._attributions[t]--, this._update()), this
- },
- _update: function() {
- if (this._map) {
- var t = [];
- for (var i in this._attributions) this._attributions[i] && t.push(i);
- var e = [];
- this.options.prefix && e.push(this.options.prefix), t.length && e.push(t.join(", ")),
- this._container.innerHTML = e.join(" | ")
- }
- }
- });
- Ki.mergeOptions({
- attributionControl: !0
- }), Ki.addInitHook(function() {
- this.options.attributionControl && (new te).addTo(this)
- });
- Xi.Layers = Ji, Xi.Zoom = $i, Xi.Scale = Qi, Xi.Attribution = te, Yi.layers = function(t, i, e) {
- return new Ji(t, i, e)
- }, Yi.zoom = function(t) {
- return new $i(t)
- }, Yi.scale = function(t) {
- return new Qi(t)
- }, Yi.attribution = function(t) {
- return new te(t)
- };
- var ie = S.extend({
- initialize: function(t) {
- this._map = t
- },
- enable: function() {
- return this._enabled || (this._enabled = !0, this.addHooks()), this
- },
- disable: function() {
- return this._enabled && (this._enabled = !1, this.removeHooks()), this
- },
- enabled: function() {
- return !!this._enabled
- }
- });
- ie.addTo = function(t, i) {
- return t.addHandler(i, this), this
- };
- var ee, ne = {
- Events: Z
- },
- oe = bt ? "touchstart mousedown" : "mousedown",
- se = {
- mousedown: "mouseup",
- touchstart: "touchend",
- pointerdown: "touchend",
- MSPointerDown: "touchend"
- },
- re = {
- mousedown: "mousemove",
- touchstart: "touchmove",
- pointerdown: "touchmove",
- MSPointerDown: "touchmove"
- },
- ae = E.extend({
- options: {
- clickTolerance: 3
- },
- initialize: function(t, i, e, n) {
- c(this, n), this._element = t, this._dragStartTarget = i || t, this._preventOutline = e
- },
- enable: function() {
- this._enabled || (zi(this._dragStartTarget, oe, this._onDown, this), this._enabled = !0)
- },
- disable: function() {
- this._enabled && (ae._dragging === this && this.finishDrag(), Si(this._dragStartTarget, oe,
- this._onDown, this), this._enabled = !1, this._moved = !1)
- },
- _onDown: function(t) {
- var i, e;
- !t._simulated && this._enabled && (this._moved = !1, li(this._element,
- "leaflet-zoom-anim") || ae._dragging || t.shiftKey || 1 !== t.which && 1 !== t
- .button && !t.touches || ((ae._dragging = this)._preventOutline && Pi(this
- ._element), xi(), Xt(), this._moving || (this.fire("down"), i = t.touches ? t
- .touches[0] : t, e = bi(this._element), this._startPoint = new k(i.clientX,
- i.clientY), this._parentScale = Ti(e), zi(document, re[t.type], this
- ._onMove, this), zi(document, se[t.type], this._onUp, this))))
- },
- _onMove: function(t) {
- var i, e;
- !t._simulated && this._enabled && (t.touches && 1 < t.touches.length ? this._moved = !0 : ((
- e = new k((i = t.touches && 1 === t.touches.length ? t.touches[0] : t)
- .clientX, i.clientY)._subtract(this._startPoint)).x || e.y) && (Math.abs(e
- .x) + Math.abs(e.y) < this.options.clickTolerance || (e.x /= this
- ._parentScale.x, e.y /= this._parentScale.y, Ri(t), this._moved || (this
- .fire("dragstart"), this._moved = !0, this._startPos = yi(this._element)
- .subtract(e), ci(document.body, "leaflet-dragging"), this._lastTarget =
- t.target || t.srcElement, window.SVGElementInstance && this
- ._lastTarget instanceof window.SVGElementInstance && (this._lastTarget =
- this._lastTarget.correspondingUseElement), ci(this._lastTarget,
- "leaflet-drag-target")), this._newPos = this._startPos.add(e), this
- ._moving = !0, z(this._animRequest), this._lastEvent = t, this
- ._animRequest = M(this._updatePosition, this, !0))))
- },
- _updatePosition: function() {
- var t = {
- originalEvent: this._lastEvent
- };
- this.fire("predrag", t), vi(this._element, this._newPos), this.fire("drag", t)
- },
- _onUp: function(t) {
- !t._simulated && this._enabled && this.finishDrag()
- },
- finishDrag: function() {
- for (var t in _i(document.body, "leaflet-dragging"), this._lastTarget && (_i(this
- ._lastTarget, "leaflet-drag-target"), this._lastTarget = null), re) Si(document, re[
- t], this._onMove, this), Si(document, se[t], this._onUp, this);
- wi(), Jt(), this._moved && this._moving && (z(this._animRequest), this.fire("dragend", {
- distance: this._newPos.distanceTo(this._startPos)
- })), this._moving = !1, ae._dragging = !1
- }
- });
-
- function he(t, i) {
- if (!i || !t.length) return t.slice();
- var e = i * i;
- return t = function(t, i) {
- var e = t.length,
- n = new(typeof Uint8Array != void 0 + "" ? Uint8Array : Array)(e);
- n[0] = n[e - 1] = 1,
- function t(i, e, n, o, s) {
- var r, a, h, u = 0;
- for (a = o + 1; a <= s - 1; a++) h = de(i[a], i[o], i[s], !0), u < h && (r = a, u = h);
- n < u && (e[r] = 1, t(i, e, n, o, r), t(i, e, n, r, s))
- }(t, n, i, 0, e - 1);
- var o, s = [];
- for (o = 0; o < e; o++) n[o] && s.push(t[o]);
- return s
- }(t = function(t, i) {
- for (var e = [t[0]], n = 1, o = 0, s = t.length; n < s; n++)(function(t, i) {
- var e = i.x - t.x,
- n = i.y - t.y;
- return e * e + n * n
- })(t[n], t[o]) > i && (e.push(t[n]), o = n);
- o < s - 1 && e.push(t[s - 1]);
- return e
- }(t, e), e)
- }
-
- function ue(t, i, e) {
- return Math.sqrt(de(t, i, e, !0))
- }
-
- function le(t, i, e, n, o) {
- var s, r, a, h = n ? ee : _e(t, e),
- u = _e(i, e);
- for (ee = u;;) {
- if (!(h | u)) return [t, i];
- if (h & u) return !1;
- a = _e(r = ce(t, i, s = h || u, e, o), e), s === h ? (t = r, h = a) : (i = r, u = a)
- }
- }
-
- function ce(t, i, e, n, o) {
- var s, r, a = i.x - t.x,
- h = i.y - t.y,
- u = n.min,
- l = n.max;
- return 8 & e ? (s = t.x + a * (l.y - t.y) / h, r = l.y) : 4 & e ? (s = t.x + a * (u.y - t.y) / h, r = u.y) :
- 2 & e ? (s = l.x, r = t.y + h * (l.x - t.x) / a) : 1 & e && (s = u.x, r = t.y + h * (u.x - t.x) / a),
- new k(s, r, o)
- }
-
- function _e(t, i) {
- var e = 0;
- return t.x < i.min.x ? e |= 1 : t.x > i.max.x && (e |= 2), t.y < i.min.y ? e |= 4 : t.y > i.max.y && (e |=
- 8), e
- }
-
- function de(t, i, e, n) {
- var o, s = i.x,
- r = i.y,
- a = e.x - s,
- h = e.y - r,
- u = a * a + h * h;
- return 0 < u && (1 < (o = ((t.x - s) * a + (t.y - r) * h) / u) ? (s = e.x, r = e.y) : 0 < o && (s += a * o,
- r += h * o)), a = t.x - s, h = t.y - r, n ? a * a + h * h : new k(s, r)
- }
-
- function pe(t) {
- return !g(t[0]) || "object" != typeof t[0][0] && void 0 !== t[0][0]
- }
-
- function me(t) {
- return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), pe(t)
- }
- var fe = {
- simplify: he,
- pointToSegmentDistance: ue,
- closestPointOnSegment: function(t, i, e) {
- return de(t, i, e)
- },
- clipSegment: le,
- _getEdgeIntersection: ce,
- _getBitCode: _e,
- _sqClosestPointOnSegment: de,
- isFlat: pe,
- _flat: me
- };
-
- function ge(t, i, e) {
- for (var n, o, s, r, a, h, u, l = [1, 4, 2, 8], c = 0, _ = t.length; c < _; c++) t[c]._code = _e(t[c], i);
- for (s = 0; s < 4; s++) {
- for (h = l[s], n = [], c = 0, o = (_ = t.length) - 1; c < _; o = c++) r = t[c], a = t[o], r._code & h ?
- a._code & h || ((u = ce(a, r, h, i, e))._code = _e(u, i), n.push(u)) : (a._code & h && ((u = ce(a,
- r, h, i, e))._code = _e(u, i), n.push(u)), n.push(r));
- t = n
- }
- return t
- }
- var ve, ye = {
- clipPolygon: ge
- },
- xe = {
- project: function(t) {
- return new k(t.lng, t.lat)
- },
- unproject: function(t) {
- return new D(t.y, t.x)
- },
- bounds: new I([-180, -90], [180, 90])
- },
- we = {
- R: 6378137,
- R_MINOR: 6356752.314245179,
- bounds: new I([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),
- project: function(t) {
- var i = Math.PI / 180,
- e = this.R,
- n = t.lat * i,
- o = this.R_MINOR / e,
- s = Math.sqrt(1 - o * o),
- r = s * Math.sin(n),
- a = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - r) / (1 + r), s / 2),
- n = -e * Math.log(Math.max(a, 1e-10));
- return new k(t.lng * i * e, n)
- },
- unproject: function(t) {
- for (var i, e = 180 / Math.PI, n = this.R, o = this.R_MINOR / n, s = Math.sqrt(1 - o * o), r =
- Math.exp(-t.y / n), a = Math.PI / 2 - 2 * Math.atan(r), h = 0, u = .1; h < 15 && 1e-7 <
- Math.abs(u); h++) i = s * Math.sin(a), i = Math.pow((1 - i) / (1 + i), s / 2), a += u = Math
- .PI / 2 - 2 * Math.atan(r * i) - a;
- return new D(a * e, t.x * e / n)
- }
- },
- Pe = {
- LonLat: xe,
- Mercator: we,
- SphericalMercator: V
- },
- Le = h({}, F, {
- code: "EPSG:3395",
- projection: we,
- transformation: G(ve = .5 / (Math.PI * we.R), .5, -ve, .5)
- }),
- be = h({}, F, {
- code: "EPSG:4326",
- projection: xe,
- transformation: G(1 / 180, 1, -1 / 180, .5)
- }),
- Te = h({}, H, {
- projection: xe,
- transformation: G(1, 0, -1, 0),
- scale: function(t) {
- return Math.pow(2, t)
- },
- zoom: function(t) {
- return Math.log(t) / Math.LN2
- },
- distance: function(t, i) {
- var e = i.lng - t.lng,
- n = i.lat - t.lat;
- return Math.sqrt(e * e + n * n)
- },
- infinite: !0
- });
- H.Earth = F, H.EPSG3395 = Le, H.EPSG3857 = Y, H.EPSG900913 = X, H.EPSG4326 = be, H.Simple = Te;
- var Me = E.extend({
- options: {
- pane: "overlayPane",
- attribution: null,
- bubblingMouseEvents: !0
- },
- addTo: function(t) {
- return t.addLayer(this), this
- },
- remove: function() {
- return this.removeFrom(this._map || this._mapToAdd)
- },
- removeFrom: function(t) {
- return t && t.removeLayer(this), this
- },
- getPane: function(t) {
- return this._map.getPane(t ? this.options[t] || t : this.options.pane)
- },
- addInteractiveTarget: function(t) {
- return this._map._targets[m(t)] = this
- },
- removeInteractiveTarget: function(t) {
- return delete this._map._targets[m(t)], this
- },
- getAttribution: function() {
- return this.options.attribution
- },
- _layerAdd: function(t) {
- var i, e = t.target;
- e.hasLayer(this) && (this._map = e, this._zoomAnimated = e._zoomAnimated, this.getEvents &&
- (i = this.getEvents(), e.on(i, this), this.once("remove", function() {
- e.off(i, this)
- }, this)), this.onAdd(e), this.getAttribution && e.attributionControl && e
- .attributionControl.addAttribution(this.getAttribution()), this.fire("add"), e.fire(
- "layeradd", {
- layer: this
- }))
- }
- });
- Ki.include({
- addLayer: function(t) {
- if (!t._layerAdd) throw new Error("The provided object is not a Layer.");
- var i = m(t);
- return this._layers[i] || ((this._layers[i] = t)._mapToAdd = this, t.beforeAdd && t
- .beforeAdd(this), this.whenReady(t._layerAdd, t)), this
- },
- removeLayer: function(t) {
- var i = m(t);
- return this._layers[i] && (this._loaded && t.onRemove(this), t.getAttribution && this
- .attributionControl && this.attributionControl.removeAttribution(t
- .getAttribution()), delete this._layers[i], this._loaded && (this.fire("layerremove", {
- layer: t
- }), t.fire("remove")), t._map = t._mapToAdd = null), this
- },
- hasLayer: function(t) {
- return !!t && m(t) in this._layers
- },
- eachLayer: function(t, i) {
- for (var e in this._layers) t.call(i, this._layers[e]);
- return this
- },
- _addLayers: function(t) {
- for (var i = 0, e = (t = t ? g(t) ? t : [t] : []).length; i < e; i++) this.addLayer(t[i])
- },
- _addZoomLimit: function(t) {
- !isNaN(t.options.maxZoom) && isNaN(t.options.minZoom) || (this._zoomBoundLayers[m(t)] = t,
- this._updateZoomLevels())
- },
- _removeZoomLimit: function(t) {
- var i = m(t);
- this._zoomBoundLayers[i] && (delete this._zoomBoundLayers[i], this._updateZoomLevels())
- },
- _updateZoomLevels: function() {
- var t = 1 / 0,
- i = -1 / 0,
- e = this._getZoomSpan();
- for (var n in this._zoomBoundLayers) var o = this._zoomBoundLayers[n].options,
- t = void 0 === o.minZoom ? t : Math.min(t, o.minZoom),
- i = void 0 === o.maxZoom ? i : Math.max(i, o.maxZoom);
- this._layersMaxZoom = i === -1 / 0 ? void 0 : i, this._layersMinZoom = t === 1 / 0 ?
- void 0 : t, e !== this._getZoomSpan() && this.fire("zoomlevelschange"), void 0 === this
- .options.maxZoom && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this
- .setZoom(this._layersMaxZoom), void 0 === this.options.minZoom && this._layersMinZoom &&
- this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom)
- }
- });
- var ze = Me.extend({
- initialize: function(t, i) {
- var e, n;
- if (c(this, i), this._layers = {}, t)
- for (e = 0, n = t.length; e < n; e++) this.addLayer(t[e])
- },
- addLayer: function(t) {
- var i = this.getLayerId(t);
- return this._layers[i] = t, this._map && this._map.addLayer(t), this
- },
- removeLayer: function(t) {
- var i = t in this._layers ? t : this.getLayerId(t);
- return this._map && this._layers[i] && this._map.removeLayer(this._layers[i]), delete this
- ._layers[i], this
- },
- hasLayer: function(t) {
- return !!t && ("number" == typeof t ? t : this.getLayerId(t)) in this._layers
- },
- clearLayers: function() {
- return this.eachLayer(this.removeLayer, this)
- },
- invoke: function(t) {
- var i, e, n = Array.prototype.slice.call(arguments, 1);
- for (i in this._layers)(e = this._layers[i])[t] && e[t].apply(e, n);
- return this
- },
- onAdd: function(t) {
- this.eachLayer(t.addLayer, t)
- },
- onRemove: function(t) {
- this.eachLayer(t.removeLayer, t)
- },
- eachLayer: function(t, i) {
- for (var e in this._layers) t.call(i, this._layers[e]);
- return this
- },
- getLayer: function(t) {
- return this._layers[t]
- },
- getLayers: function() {
- var t = [];
- return this.eachLayer(t.push, t), t
- },
- setZIndex: function(t) {
- return this.invoke("setZIndex", t)
- },
- getLayerId: m
- }),
- Ce = ze.extend({
- addLayer: function(t) {
- return this.hasLayer(t) ? this : (t.addEventParent(this), ze.prototype.addLayer.call(this,
- t), this.fire("layeradd", {
- layer: t
- }))
- },
- removeLayer: function(t) {
- return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(
- this), ze.prototype.removeLayer.call(this, t), this.fire("layerremove", {
- layer: t
- })) : this
- },
- setStyle: function(t) {
- return this.invoke("setStyle", t)
- },
- bringToFront: function() {
- return this.invoke("bringToFront")
- },
- bringToBack: function() {
- return this.invoke("bringToBack")
- },
- getBounds: function() {
- var t = new R;
- for (var i in this._layers) {
- var e = this._layers[i];
- t.extend(e.getBounds ? e.getBounds() : e.getLatLng())
- }
- return t
- }
- }),
- Se = S.extend({
- options: {
- popupAnchor: [0, 0],
- tooltipAnchor: [0, 0]
- },
- initialize: function(t) {
- c(this, t)
- },
- createIcon: function(t) {
- return this._createIcon("icon", t)
- },
- createShadow: function(t) {
- return this._createIcon("shadow", t)
- },
- _createIcon: function(t, i) {
- var e = this._getIconUrl(t);
- if (!e) {
- if ("icon" === t) throw new Error("iconUrl not set in Icon options (see the docs).");
- return null
- }
- var n = this._createImg(e, i && "IMG" === i.tagName ? i : null);
- return this._setIconStyles(n, t), n
- },
- _setIconStyles: function(t, i) {
- var e = this.options,
- n = e[i + "Size"];
- "number" == typeof n && (n = [n, n]);
- var o = A(n),
- s = A("shadow" === i && e.shadowAnchor || e.iconAnchor || o && o.divideBy(2, !0));
- t.className = "leaflet-marker-" + i + " " + (e.className || ""), s && (t.style
- .marginLeft = -s.x + "px", t.style.marginTop = -s.y + "px"), o && (t.style.width = o
- .x + "px", t.style.height = o.y + "px")
- },
- _createImg: function(t, i) {
- return (i = i || document.createElement("img")).src = t, i
- },
- _getIconUrl: function(t) {
- return zt && this.options[t + "RetinaUrl"] || this.options[t + "Url"]
- }
- });
- var Ze = Se.extend({
- options: {
- iconUrl: "marker-icon.png",
- iconRetinaUrl: "marker-icon-2x.png",
- shadowUrl: "marker-shadow.png",
- iconSize: [25, 41],
- iconAnchor: [12, 41],
- popupAnchor: [1, -34],
- tooltipAnchor: [16, -28],
- shadowSize: [41, 41]
- },
- _getIconUrl: function(t) {
- return Ze.imagePath || (Ze.imagePath = this._detectIconPath()), (this.options.imagePath ||
- Ze.imagePath) + Se.prototype._getIconUrl.call(this, t)
- },
- _detectIconPath: function() {
- var t = si("div", "leaflet-default-icon-path", document.body),
- i = oi(t, "background-image") || oi(t, "backgroundImage");
- return document.body.removeChild(t), i = null === i || 0 !== i.indexOf("url") ? "" : i
- .replace(/^url\(["']?/, "").replace(/marker-icon\.png["']?\)$/, "")
- }
- }),
- Ee = ie.extend({
- initialize: function(t) {
- this._marker = t
- },
- addHooks: function() {
- var t = this._marker._icon;
- this._draggable || (this._draggable = new ae(t, t, !0)), this._draggable.on({
- dragstart: this._onDragStart,
- predrag: this._onPreDrag,
- drag: this._onDrag,
- dragend: this._onDragEnd
- }, this).enable(), ci(t, "leaflet-marker-draggable")
- },
- removeHooks: function() {
- this._draggable.off({
- dragstart: this._onDragStart,
- predrag: this._onPreDrag,
- drag: this._onDrag,
- dragend: this._onDragEnd
- }, this).disable(), this._marker._icon && _i(this._marker._icon,
- "leaflet-marker-draggable")
- },
- moved: function() {
- return this._draggable && this._draggable._moved
- },
- _adjustPan: function(t) {
- var i, e = this._marker,
- n = e._map,
- o = this._marker.options.autoPanSpeed,
- s = this._marker.options.autoPanPadding,
- r = yi(e._icon),
- a = n.getPixelBounds(),
- h = n.getPixelOrigin(),
- u = O(a.min._subtract(h).add(s), a.max._subtract(h).subtract(s));
- u.contains(r) || (i = A((Math.max(u.max.x, r.x) - u.max.x) / (a.max.x - u.max.x) - (Math
- .min(u.min.x, r.x) - u.min.x) / (a.min.x - u.min.x), (Math.max(u.max.y, r
- .y) - u.max.y) / (a.max.y - u.max.y) - (Math.min(u.min.y, r.y) - u.min.y) /
- (a.min.y - u.min.y)).multiplyBy(o), n.panBy(i, {
- animate: !1
- }), this._draggable._newPos._add(i), this._draggable._startPos._add(i), vi(e._icon,
- this._draggable._newPos), this._onDrag(t), this._panRequest = M(this._adjustPan
- .bind(this, t)))
- },
- _onDragStart: function() {
- this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker
- .closePopup(), this._marker.fire("movestart").fire("dragstart")
- },
- _onPreDrag: function(t) {
- this._marker.options.autoPan && (z(this._panRequest), this._panRequest = M(this._adjustPan
- .bind(this, t)))
- },
- _onDrag: function(t) {
- var i = this._marker,
- e = i._shadow,
- n = yi(i._icon),
- o = i._map.layerPointToLatLng(n);
- e && vi(e, n), i._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, i.fire("move", t)
- .fire("drag", t)
- },
- _onDragEnd: function(t) {
- z(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t)
- }
- }),
- ke = Me.extend({
- options: {
- icon: new Ze,
- interactive: !0,
- keyboard: !0,
- title: "",
- alt: "",
- zIndexOffset: 0,
- opacity: 1,
- riseOnHover: !1,
- riseOffset: 250,
- pane: "markerPane",
- shadowPane: "shadowPane",
- bubblingMouseEvents: !1,
- draggable: !1,
- autoPan: !1,
- autoPanPadding: [50, 50],
- autoPanSpeed: 10
- },
- initialize: function(t, i) {
- c(this, i), this._latlng = j(t)
- },
- onAdd: function(t) {
- this._zoomAnimated = this._zoomAnimated && t.options.markerZoomAnimation, this
- ._zoomAnimated && t.on("zoomanim", this._animateZoom, this), this._initIcon(), this
- .update()
- },
- onRemove: function(t) {
- this.dragging && this.dragging.enabled() && (this.options.draggable = !0, this.dragging
- .removeHooks()), delete this.dragging, this._zoomAnimated && t.off("zoomanim", this
- ._animateZoom, this), this._removeIcon(), this._removeShadow()
- },
- getEvents: function() {
- return {
- zoom: this.update,
- viewreset: this.update
- }
- },
- getLatLng: function() {
- return this._latlng
- },
- setLatLng: function(t) {
- var i = this._latlng;
- return this._latlng = j(t), this.update(), this.fire("move", {
- oldLatLng: i,
- latlng: this._latlng
- })
- },
- setZIndexOffset: function(t) {
- return this.options.zIndexOffset = t, this.update()
- },
- getIcon: function() {
- return this.options.icon
- },
- setIcon: function(t) {
- return this.options.icon = t, this._map && (this._initIcon(), this.update()), this._popup &&
- this.bindPopup(this._popup, this._popup.options), this
- },
- getElement: function() {
- return this._icon
- },
- update: function() {
- var t;
- return this._icon && this._map && (t = this._map.latLngToLayerPoint(this._latlng).round(),
- this._setPos(t)), this
- },
- _initIcon: function() {
- var t = this.options,
- i = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"),
- e = t.icon.createIcon(this._icon),
- n = !1;
- e !== this._icon && (this._icon && this._removeIcon(), n = !0, t.title && (e.title = t
- .title), "IMG" === e.tagName && (e.alt = t.alt || "")), ci(e, i), t.keyboard && (e
- .tabIndex = "0"), this._icon = e, t.riseOnHover && this.on({
- mouseover: this._bringToFront,
- mouseout: this._resetZIndex
- });
- var o = t.icon.createShadow(this._shadow),
- s = !1;
- o !== this._shadow && (this._removeShadow(), s = !0), o && (ci(o, i), o.alt = ""), this
- ._shadow = o, t.opacity < 1 && this._updateOpacity(), n && this.getPane().appendChild(
- this._icon), this._initInteraction(), o && s && this.getPane(t.shadowPane)
- .appendChild(this._shadow)
- },
- _removeIcon: function() {
- this.options.riseOnHover && this.off({
- mouseover: this._bringToFront,
- mouseout: this._resetZIndex
- }), ri(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null
- },
- _removeShadow: function() {
- this._shadow && ri(this._shadow), this._shadow = null
- },
- _setPos: function(t) {
- this._icon && vi(this._icon, t), this._shadow && vi(this._shadow, t), this._zIndex = t.y +
- this.options.zIndexOffset, this._resetZIndex()
- },
- _updateZIndex: function(t) {
- this._icon && (this._icon.style.zIndex = this._zIndex + t)
- },
- _animateZoom: function(t) {
- var i = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center).round();
- this._setPos(i)
- },
- _initInteraction: function() {
- var t;
- this.options.interactive && (ci(this._icon, "leaflet-interactive"), this
- .addInteractiveTarget(this._icon), Ee && (t = this.options.draggable, this
- .dragging && (t = this.dragging.enabled(), this.dragging.disable()), this
- .dragging = new Ee(this), t && this.dragging.enable()))
- },
- setOpacity: function(t) {
- return this.options.opacity = t, this._map && this._updateOpacity(), this
- },
- _updateOpacity: function() {
- var t = this.options.opacity;
- this._icon && mi(this._icon, t), this._shadow && mi(this._shadow, t)
- },
- _bringToFront: function() {
- this._updateZIndex(this.options.riseOffset)
- },
- _resetZIndex: function() {
- this._updateZIndex(0)
- },
- _getPopupAnchor: function() {
- return this.options.icon.options.popupAnchor
- },
- _getTooltipAnchor: function() {
- return this.options.icon.options.tooltipAnchor
- }
- });
- var Be = Me.extend({
- options: {
- stroke: !0,
- color: "#3388ff",
- weight: 3,
- opacity: 1,
- lineCap: "round",
- lineJoin: "round",
- dashArray: null,
- dashOffset: null,
- fill: !1,
- fillColor: null,
- fillOpacity: .2,
- fillRule: "evenodd",
- interactive: !0,
- bubblingMouseEvents: !0
- },
- beforeAdd: function(t) {
- this._renderer = t.getRenderer(this)
- },
- onAdd: function() {
- this._renderer._initPath(this), this._reset(), this._renderer._addPath(this)
- },
- onRemove: function() {
- this._renderer._removePath(this)
- },
- redraw: function() {
- return this._map && this._renderer._updatePath(this), this
- },
- setStyle: function(t) {
- return c(this, t), this._renderer && (this._renderer._updateStyle(this), this.options
- .stroke && t && Object.prototype.hasOwnProperty.call(t, "weight") && this
- ._updateBounds()), this
- },
- bringToFront: function() {
- return this._renderer && this._renderer._bringToFront(this), this
- },
- bringToBack: function() {
- return this._renderer && this._renderer._bringToBack(this), this
- },
- getElement: function() {
- return this._path
- },
- _reset: function() {
- this._project(), this._update()
- },
- _clickTolerance: function() {
- return (this.options.stroke ? this.options.weight / 2 : 0) + this._renderer.options
- .tolerance
- }
- }),
- Ae = Be.extend({
- options: {
- fill: !0,
- radius: 10
- },
- initialize: function(t, i) {
- c(this, i), this._latlng = j(t), this._radius = this.options.radius
- },
- setLatLng: function(t) {
- var i = this._latlng;
- return this._latlng = j(t), this.redraw(), this.fire("move", {
- oldLatLng: i,
- latlng: this._latlng
- })
- },
- getLatLng: function() {
- return this._latlng
- },
- setRadius: function(t) {
- return this.options.radius = this._radius = t, this.redraw()
- },
- getRadius: function() {
- return this._radius
- },
- setStyle: function(t) {
- var i = t && t.radius || this._radius;
- return Be.prototype.setStyle.call(this, t), this.setRadius(i), this
- },
- _project: function() {
- this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds()
- },
- _updateBounds: function() {
- var t = this._radius,
- i = this._radiusY || t,
- e = this._clickTolerance(),
- n = [t + e, i + e];
- this._pxBounds = new I(this._point.subtract(n), this._point.add(n))
- },
- _update: function() {
- this._map && this._updatePath()
- },
- _updatePath: function() {
- this._renderer._updateCircle(this)
- },
- _empty: function() {
- return this._radius && !this._renderer._bounds.intersects(this._pxBounds)
- },
- _containsPoint: function(t) {
- return t.distanceTo(this._point) <= this._radius + this._clickTolerance()
- }
- });
- var Ie = Ae.extend({
- initialize: function(t, i, e) {
- if ("number" == typeof i && (i = h({}, e, {
- radius: i
- })), c(this, i), this._latlng = j(t), isNaN(this.options.radius)) throw new Error(
- "Circle radius cannot be NaN");
- this._mRadius = this.options.radius
- },
- setRadius: function(t) {
- return this._mRadius = t, this.redraw()
- },
- getRadius: function() {
- return this._mRadius
- },
- getBounds: function() {
- var t = [this._radius, this._radiusY || this._radius];
- return new R(this._map.layerPointToLatLng(this._point.subtract(t)), this._map
- .layerPointToLatLng(this._point.add(t)))
- },
- setStyle: Be.prototype.setStyle,
- _project: function() {
- var t, i, e, n, o, s, r, a, h = this._latlng.lng,
- u = this._latlng.lat,
- l = this._map,
- c = l.options.crs;
- c.distance === F.distance ? (t = Math.PI / 180, i = this._mRadius / F.R / t, e = l.project([
- u + i, h
- ]), n = l.project([u - i, h]), o = e.add(n).divideBy(2), s = l.unproject(o).lat, r =
- Math.acos((Math.cos(i * t) - Math.sin(u * t) * Math.sin(s * t)) / (Math.cos(u * t) *
- Math.cos(s * t))) / t, !isNaN(r) && 0 !== r || (r = i / Math.cos(Math.PI / 180 *
- u)), this._point = o.subtract(l.getPixelOrigin()), this._radius = isNaN(r) ? 0 :
- o.x - l.project([s, h - r]).x, this._radiusY = o.y - e.y) : (a = c.unproject(c
- .project(this._latlng).subtract([this._mRadius, 0])), this._point = l
- .latLngToLayerPoint(this._latlng), this._radius = this._point.x - l
- .latLngToLayerPoint(a).x), this._updateBounds()
- }
- });
- var Oe = Be.extend({
- options: {
- smoothFactor: 1,
- noClip: !1
- },
- initialize: function(t, i) {
- c(this, i), this._setLatLngs(t)
- },
- getLatLngs: function() {
- return this._latlngs
- },
- setLatLngs: function(t) {
- return this._setLatLngs(t), this.redraw()
- },
- isEmpty: function() {
- return !this._latlngs.length
- },
- closestLayerPoint: function(t) {
- for (var i, e, n = 1 / 0, o = null, s = de, r = 0, a = this._parts.length; r < a; r++)
- for (var h = this._parts[r], u = 1, l = h.length; u < l; u++) {
- var c = s(t, i = h[u - 1], e = h[u], !0);
- c < n && (n = c, o = s(t, i, e))
- }
- return o && (o.distance = Math.sqrt(n)), o
- },
- getCenter: function() {
- if (!this._map) throw new Error("Must add layer to map before using getCenter()");
- var t, i, e, n, o, s, r, a = this._rings[0],
- h = a.length;
- if (!h) return null;
- for (i = t = 0; t < h - 1; t++) i += a[t].distanceTo(a[t + 1]) / 2;
- if (0 === i) return this._map.layerPointToLatLng(a[0]);
- for (n = t = 0; t < h - 1; t++)
- if (o = a[t], s = a[t + 1], i < (n += e = o.distanceTo(s))) return r = (n - i) / e, this
- ._map.layerPointToLatLng([s.x - r * (s.x - o.x), s.y - r * (s.y - o.y)])
- },
- getBounds: function() {
- return this._bounds
- },
- addLatLng: function(t, i) {
- return i = i || this._defaultShape(), t = j(t), i.push(t), this._bounds.extend(t), this
- .redraw()
- },
- _setLatLngs: function(t) {
- this._bounds = new R, this._latlngs = this._convertLatLngs(t)
- },
- _defaultShape: function() {
- return pe(this._latlngs) ? this._latlngs : this._latlngs[0]
- },
- _convertLatLngs: function(t) {
- for (var i = [], e = pe(t), n = 0, o = t.length; n < o; n++) e ? (i[n] = j(t[n]), this
- ._bounds.extend(i[n])) : i[n] = this._convertLatLngs(t[n]);
- return i
- },
- _project: function() {
- var t = new I;
- this._rings = [], this._projectLatlngs(this._latlngs, this._rings, t), this._bounds
- .isValid() && t.isValid() && (this._rawPxBounds = t, this._updateBounds())
- },
- _updateBounds: function() {
- var t = this._clickTolerance(),
- i = new k(t, t);
- this._pxBounds = new I([this._rawPxBounds.min.subtract(i), this._rawPxBounds.max.add(i)])
- },
- _projectLatlngs: function(t, i, e) {
- var n, o, s = t[0] instanceof D,
- r = t.length;
- if (s) {
- for (o = [], n = 0; n < r; n++) o[n] = this._map.latLngToLayerPoint(t[n]), e.extend(o[
- n]);
- i.push(o)
- } else
- for (n = 0; n < r; n++) this._projectLatlngs(t[n], i, e)
- },
- _clipPoints: function() {
- var t = this._renderer._bounds;
- if (this._parts = [], this._pxBounds && this._pxBounds.intersects(t))
- if (this.options.noClip) this._parts = this._rings;
- else
- for (var i, e, n, o, s = this._parts, r = 0, a = 0, h = this._rings.length; r <
- h; r++)
- for (i = 0, e = (o = this._rings[r]).length; i < e - 1; i++)(n = le(o[i], o[i +
- 1], t, i, !0)) && (s[a] = s[a] || [], s[a].push(n[0]), n[1] === o[i +
- 1] && i !== e - 2 || (s[a].push(n[1]), a++))
- },
- _simplifyPoints: function() {
- for (var t = this._parts, i = this.options.smoothFactor, e = 0, n = t.length; e < n; e++) t[
- e] = he(t[e], i)
- },
- _update: function() {
- this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath())
- },
- _updatePath: function() {
- this._renderer._updatePoly(this)
- },
- _containsPoint: function(t, i) {
- var e, n, o, s, r, a, h = this._clickTolerance();
- if (!this._pxBounds || !this._pxBounds.contains(t)) return !1;
- for (e = 0, s = this._parts.length; e < s; e++)
- for (n = 0, o = (r = (a = this._parts[e]).length) - 1; n < r; o = n++)
- if ((i || 0 !== n) && ue(t, a[o], a[n]) <= h) return !0;
- return !1
- }
- });
- Oe._flat = me;
- var Re = Oe.extend({
- options: {
- fill: !0
- },
- isEmpty: function() {
- return !this._latlngs.length || !this._latlngs[0].length
- },
- getCenter: function() {
- if (!this._map) throw new Error("Must add layer to map before using getCenter()");
- var t, i, e, n, o, s, r, a, h, u = this._rings[0],
- l = u.length;
- if (!l) return null;
- for (t = s = r = a = 0, i = l - 1; t < l; i = t++) e = u[t], n = u[i], o = e.y * n.x - n.y *
- e.x, r += (e.x + n.x) * o, a += (e.y + n.y) * o, s += 3 * o;
- return h = 0 === s ? u[0] : [r / s, a / s], this._map.layerPointToLatLng(h)
- },
- _convertLatLngs: function(t) {
- var i = Oe.prototype._convertLatLngs.call(this, t),
- e = i.length;
- return 2 <= e && i[0] instanceof D && i[0].equals(i[e - 1]) && i.pop(), i
- },
- _setLatLngs: function(t) {
- Oe.prototype._setLatLngs.call(this, t), pe(this._latlngs) && (this._latlngs = [this
- ._latlngs])
- },
- _defaultShape: function() {
- return pe(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0]
- },
- _clipPoints: function() {
- var t = this._renderer._bounds,
- i = this.options.weight,
- e = new k(i, i),
- t = new I(t.min.subtract(e), t.max.add(e));
- if (this._parts = [], this._pxBounds && this._pxBounds.intersects(t))
- if (this.options.noClip) this._parts = this._rings;
- else
- for (var n, o = 0, s = this._rings.length; o < s; o++)(n = ge(this._rings[o], t, !
- 0)).length && this._parts.push(n)
- },
- _updatePath: function() {
- this._renderer._updatePoly(this, !0)
- },
- _containsPoint: function(t) {
- var i, e, n, o, s, r, a, h, u = !1;
- if (!this._pxBounds || !this._pxBounds.contains(t)) return !1;
- for (o = 0, a = this._parts.length; o < a; o++)
- for (s = 0, r = (h = (i = this._parts[o]).length) - 1; s < h; r = s++) e = i[s], n = i[
- r], e.y > t.y != n.y > t.y && t.x < (n.x - e.x) * (t.y - e.y) / (n.y - e.y) + e
- .x && (u = !u);
- return u || Oe.prototype._containsPoint.call(this, t, !0)
- }
- });
- var Ne = Ce.extend({
- initialize: function(t, i) {
- c(this, i), this._layers = {}, t && this.addData(t)
- },
- addData: function(t) {
- var i, e, n, o = g(t) ? t : t.features;
- if (o) {
- for (i = 0, e = o.length; i < e; i++)((n = o[i]).geometries || n.geometry || n
- .features || n.coordinates) && this.addData(n);
- return this
- }
- var s = this.options;
- if (s.filter && !s.filter(t)) return this;
- var r = De(t, s);
- return r ? (r.feature = qe(t), r.defaultOptions = r.options, this.resetStyle(r), s
- .onEachFeature && s.onEachFeature(t, r), this.addLayer(r)) : this
- },
- resetStyle: function(t) {
- return void 0 === t ? this.eachLayer(this.resetStyle, this) : (t.options = h({}, t
- .defaultOptions), this._setLayerStyle(t, this.options.style), this)
- },
- setStyle: function(i) {
- return this.eachLayer(function(t) {
- this._setLayerStyle(t, i)
- }, this)
- },
- _setLayerStyle: function(t, i) {
- t.setStyle && ("function" == typeof i && (i = i(t.feature)), t.setStyle(i))
- }
- });
-
- function De(t, i) {
- var e, n, o, s, r = "Feature" === t.type ? t.geometry : t,
- a = r ? r.coordinates : null,
- h = [],
- u = i && i.pointToLayer,
- l = i && i.coordsToLatLng || We;
- if (!a && !r) return null;
- switch (r.type) {
- case "Point":
- return je(u, t, e = l(a), i);
- case "MultiPoint":
- for (o = 0, s = a.length; o < s; o++) e = l(a[o]), h.push(je(u, t, e, i));
- return new Ce(h);
- case "LineString":
- case "MultiLineString":
- return n = He(a, "LineString" === r.type ? 0 : 1, l), new Oe(n, i);
- case "Polygon":
- case "MultiPolygon":
- return n = He(a, "Polygon" === r.type ? 1 : 2, l), new Re(n, i);
- case "GeometryCollection":
- for (o = 0, s = r.geometries.length; o < s; o++) {
- var c = De({
- geometry: r.geometries[o],
- type: "Feature",
- properties: t.properties
- }, i);
- c && h.push(c)
- }
- return new Ce(h);
- default:
- throw new Error("Invalid GeoJSON object.")
- }
- }
-
- function je(t, i, e, n) {
- return t ? t(i, e) : new ke(e, n && n.markersInheritOptions && n)
- }
-
- function We(t) {
- return new D(t[1], t[0], t[2])
- }
-
- function He(t, i, e) {
- for (var n, o = [], s = 0, r = t.length; s < r; s++) n = i ? He(t[s], i - 1, e) : (e || We)(t[s]), o.push(
- n);
- return o
- }
-
- function Fe(t, i) {
- return i = "number" == typeof i ? i : 6, void 0 !== t.alt ? [r(t.lng, i), r(t.lat, i), r(t.alt, i)] : [r(t
- .lng, i), r(t.lat, i)]
- }
-
- function Ue(t, i, e, n) {
- for (var o = [], s = 0, r = t.length; s < r; s++) o.push(i ? Ue(t[s], i - 1, e, n) : Fe(t[s], n));
- return !i && e && o.push(o[0]), o
- }
-
- function Ve(t, i) {
- return t.feature ? h({}, t.feature, {
- geometry: i
- }) : qe(i)
- }
-
- function qe(t) {
- return "Feature" === t.type || "FeatureCollection" === t.type ? t : {
- type: "Feature",
- properties: {},
- geometry: t
- }
- }
- var Ge = {
- toGeoJSON: function(t) {
- return Ve(this, {
- type: "Point",
- coordinates: Fe(this.getLatLng(), t)
- })
- }
- };
-
- function Ke(t, i) {
- return new Ne(t, i)
- }
- ke.include(Ge), Ie.include(Ge), Ae.include(Ge), Oe.include({
- toGeoJSON: function(t) {
- var i = !pe(this._latlngs);
- return Ve(this, {
- type: (i ? "Multi" : "") + "LineString",
- coordinates: Ue(this._latlngs, i ? 1 : 0, !1, t)
- })
- }
- }), Re.include({
- toGeoJSON: function(t) {
- var i = !pe(this._latlngs),
- e = i && !pe(this._latlngs[0]),
- n = Ue(this._latlngs, e ? 2 : i ? 1 : 0, !0, t);
- return i || (n = [n]), Ve(this, {
- type: (e ? "Multi" : "") + "Polygon",
- coordinates: n
- })
- }
- }), ze.include({
- toMultiPoint: function(i) {
- var e = [];
- return this.eachLayer(function(t) {
- e.push(t.toGeoJSON(i).geometry.coordinates)
- }), Ve(this, {
- type: "MultiPoint",
- coordinates: e
- })
- },
- toGeoJSON: function(n) {
- var t = this.feature && this.feature.geometry && this.feature.geometry.type;
- if ("MultiPoint" === t) return this.toMultiPoint(n);
- var o = "GeometryCollection" === t,
- s = [];
- return this.eachLayer(function(t) {
- var i, e;
- t.toGeoJSON && (i = t.toGeoJSON(n), o ? s.push(i.geometry) :
- "FeatureCollection" === (e = qe(i)).type ? s.push.apply(s, e.features) :
- s.push(e))
- }), o ? Ve(this, {
- geometries: s,
- type: "GeometryCollection"
- }) : {
- type: "FeatureCollection",
- features: s
- }
- }
- });
- var Ye = Ke,
- Xe = Me.extend({
- options: {
- opacity: 1,
- alt: "",
- interactive: !1,
- crossOrigin: !1,
- errorOverlayUrl: "",
- zIndex: 1,
- className: ""
- },
- initialize: function(t, i, e) {
- this._url = t, this._bounds = N(i), c(this, e)
- },
- onAdd: function() {
- this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this
- .options.interactive && (ci(this._image, "leaflet-interactive"), this
- .addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this
- ._reset()
- },
- onRemove: function() {
- ri(this._image), this.options.interactive && this.removeInteractiveTarget(this._image)
- },
- setOpacity: function(t) {
- return this.options.opacity = t, this._image && this._updateOpacity(), this
- },
- setStyle: function(t) {
- return t.opacity && this.setOpacity(t.opacity), this
- },
- bringToFront: function() {
- return this._map && hi(this._image), this
- },
- bringToBack: function() {
- return this._map && ui(this._image), this
- },
- setUrl: function(t) {
- return this._url = t, this._image && (this._image.src = t), this
- },
- setBounds: function(t) {
- return this._bounds = N(t), this._map && this._reset(), this
- },
- getEvents: function() {
- var t = {
- zoom: this._reset,
- viewreset: this._reset
- };
- return this._zoomAnimated && (t.zoomanim = this._animateZoom), t
- },
- setZIndex: function(t) {
- return this.options.zIndex = t, this._updateZIndex(), this
- },
- getBounds: function() {
- return this._bounds
- },
- getElement: function() {
- return this._image
- },
- _initImage: function() {
- var t = "IMG" === this._url.tagName,
- i = this._image = t ? this._url : si("img");
- ci(i, "leaflet-image-layer"), this._zoomAnimated && ci(i, "leaflet-zoom-animated"), this
- .options.className && ci(i, this.options.className), i.onselectstart = a, i
- .onmousemove = a, i.onload = p(this.fire, this, "load"), i.onerror = p(this
- ._overlayOnError, this, "error"), !this.options.crossOrigin && "" !== this.options
- .crossOrigin || (i.crossOrigin = !0 === this.options.crossOrigin ? "" : this.options
- .crossOrigin), this.options.zIndex && this._updateZIndex(), t ? this._url = i.src :
- (i.src = this._url, i.alt = this.options.alt)
- },
- _animateZoom: function(t) {
- var i = this._map.getZoomScale(t.zoom),
- e = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
- gi(this._image, e, i)
- },
- _reset: function() {
- var t = this._image,
- i = new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map
- .latLngToLayerPoint(this._bounds.getSouthEast())),
- e = i.getSize();
- vi(t, i.min), t.style.width = e.x + "px", t.style.height = e.y + "px"
- },
- _updateOpacity: function() {
- mi(this._image, this.options.opacity)
- },
- _updateZIndex: function() {
- this._image && void 0 !== this.options.zIndex && null !== this.options.zIndex && (this
- ._image.style.zIndex = this.options.zIndex)
- },
- _overlayOnError: function() {
- this.fire("error");
- var t = this.options.errorOverlayUrl;
- t && this._url !== t && (this._url = t, this._image.src = t)
- }
- }),
- Je = Xe.extend({
- options: {
- autoplay: !0,
- loop: !0,
- keepAspectRatio: !0,
- muted: !1
- },
- _initImage: function() {
- var t = "VIDEO" === this._url.tagName,
- i = this._image = t ? this._url : si("video");
- if (ci(i, "leaflet-image-layer"), this._zoomAnimated && ci(i, "leaflet-zoom-animated"), this
- .options.className && ci(i, this.options.className), i.onselectstart = a, i
- .onmousemove = a, i.onloadeddata = p(this.fire, this, "load"), t) {
- for (var e = i.getElementsByTagName("source"), n = [], o = 0; o < e.length; o++) n.push(
- e[o].src);
- this._url = 0 < e.length ? n : [i.src]
- } else {
- g(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object
- .prototype.hasOwnProperty.call(i.style, "objectFit") && (i.style.objectFit =
- "fill"), i.autoplay = !!this.options.autoplay, i.loop = !!this.options.loop, i
- .muted = !!this.options.muted;
- for (var s = 0; s < this._url.length; s++) {
- var r = si("source");
- r.src = this._url[s], i.appendChild(r)
- }
- }
- }
- });
- var $e = Xe.extend({
- _initImage: function() {
- var t = this._image = this._url;
- ci(t, "leaflet-image-layer"), this._zoomAnimated && ci(t, "leaflet-zoom-animated"), this
- .options.className && ci(t, this.options.className), t.onselectstart = a, t
- .onmousemove = a
- }
- });
- var Qe = Me.extend({
- options: {
- offset: [0, 7],
- className: "",
- pane: "popupPane"
- },
- initialize: function(t, i) {
- c(this, t), this._source = i
- },
- onAdd: function(t) {
- this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t
- ._fadeAnimated && mi(this._container, 0), clearTimeout(this._removeTimeout), this
- .getPane().appendChild(this._container), this.update(), t._fadeAnimated && mi(this
- ._container, 1), this.bringToFront()
- },
- onRemove: function(t) {
- t._fadeAnimated ? (mi(this._container, 0), this._removeTimeout = setTimeout(p(ri, void 0,
- this._container), 200)) : ri(this._container)
- },
- getLatLng: function() {
- return this._latlng
- },
- setLatLng: function(t) {
- return this._latlng = j(t), this._map && (this._updatePosition(), this._adjustPan()), this
- },
- getContent: function() {
- return this._content
- },
- setContent: function(t) {
- return this._content = t, this.update(), this
- },
- getElement: function() {
- return this._container
- },
- update: function() {
- this._map && (this._container.style.visibility = "hidden", this._updateContent(), this
- ._updateLayout(), this._updatePosition(), this._container.style.visibility = "",
- this._adjustPan())
- },
- getEvents: function() {
- var t = {
- zoom: this._updatePosition,
- viewreset: this._updatePosition
- };
- return this._zoomAnimated && (t.zoomanim = this._animateZoom), t
- },
- isOpen: function() {
- return !!this._map && this._map.hasLayer(this)
- },
- bringToFront: function() {
- return this._map && hi(this._container), this
- },
- bringToBack: function() {
- return this._map && ui(this._container), this
- },
- _prepareOpen: function(t, i, e) {
- if (i instanceof Me || (e = i, i = t), i instanceof Ce)
- for (var n in t._layers) {
- i = t._layers[n];
- break
- }
- if (!e)
- if (i.getCenter) e = i.getCenter();
- else {
- if (!i.getLatLng) throw new Error("Unable to get source layer LatLng.");
- e = i.getLatLng()
- } return this._source = i, this.update(), e
- },
- _updateContent: function() {
- if (this._content) {
- var t = this._contentNode,
- i = "function" == typeof this._content ? this._content(this._source || this) : this
- ._content;
- if ("string" == typeof i) t.innerHTML = i;
- else {
- for (; t.hasChildNodes();) t.removeChild(t.firstChild);
- t.appendChild(i)
- }
- this.fire("contentupdate")
- }
- },
- _updatePosition: function() {
- var t, i, e, n, o;
- this._map && (t = this._map.latLngToLayerPoint(this._latlng), i = A(this.options.offset),
- e = this._getAnchor(), this._zoomAnimated ? vi(this._container, t.add(e)) : i = i
- .add(t).add(e), n = this._containerBottom = -i.y, o = this._containerLeft = -Math
- .round(this._containerWidth / 2) + i.x, this._container.style.bottom = n + "px",
- this._container.style.left = o + "px")
- },
- _getAnchor: function() {
- return [0, 0]
- }
- }),
- tn = Qe.extend({
- options: {
- maxWidth: 300,
- minWidth: 50,
- maxHeight: null,
- autoPan: !0,
- autoPanPaddingTopLeft: null,
- autoPanPaddingBottomRight: null,
- autoPanPadding: [5, 5],
- keepInView: !1,
- closeButton: !0,
- autoClose: !0,
- closeOnEscapeKey: !0,
- className: ""
- },
- openOn: function(t) {
- return t.openPopup(this), this
- },
- onAdd: function(t) {
- Qe.prototype.onAdd.call(this, t), t.fire("popupopen", {
- popup: this
- }), this._source && (this._source.fire("popupopen", {
- popup: this
- }, !0), this._source instanceof Be || this._source.on("preclick", Ai))
- },
- onRemove: function(t) {
- Qe.prototype.onRemove.call(this, t), t.fire("popupclose", {
- popup: this
- }), this._source && (this._source.fire("popupclose", {
- popup: this
- }, !0), this._source instanceof Be || this._source.off("preclick", Ai))
- },
- getEvents: function() {
- var t = Qe.prototype.getEvents.call(this);
- return (void 0 !== this.options.closeOnClick ? this.options.closeOnClick : this._map.options
- .closePopupOnClick) && (t.preclick = this._close), this.options.keepInView && (t
- .moveend = this._adjustPan), t
- },
- _close: function() {
- this._map && this._map.closePopup(this)
- },
- _initLayout: function() {
- var t, i = "leaflet-popup",
- e = this._container = si("div", i + " " + (this.options.className || "") +
- " leaflet-zoom-animated"),
- n = this._wrapper = si("div", i + "-content-wrapper", e);
- this._contentNode = si("div", i + "-content", n), Oi(e), Ii(this._contentNode), zi(e,
- "contextmenu", Ai), this._tipContainer = si("div", i + "-tip-container", e), this
- ._tip = si("div", i + "-tip", this._tipContainer), this.options.closeButton && ((t =
- this._closeButton = si("a", i + "-close-button", e)).href = "#close", t
- .innerHTML = "×", zi(t, "click", this._onCloseButtonClick, this))
- },
- _updateLayout: function() {
- var t = this._contentNode,
- i = t.style;
- i.width = "", i.whiteSpace = "nowrap";
- var e = t.offsetWidth,
- e = Math.min(e, this.options.maxWidth);
- e = Math.max(e, this.options.minWidth), i.width = e + 1 + "px", i.whiteSpace = "", i
- .height = "";
- var n = t.offsetHeight,
- o = this.options.maxHeight,
- s = "leaflet-popup-scrolled";
- o && o < n ? (i.height = o + "px", ci(t, s)) : _i(t, s), this._containerWidth = this
- ._container.offsetWidth
- },
- _animateZoom: function(t) {
- var i = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center),
- e = this._getAnchor();
- vi(this._container, i.add(e))
- },
- _adjustPan: function() {
- var t, i, e, n, o, s, r, a, h, u, l, c;
- this.options.autoPan && (this._map._panAnim && this._map._panAnim.stop(), t = this._map, i =
- parseInt(oi(this._container, "marginBottom"), 10) || 0, e = this._container
- .offsetHeight + i, n = this._containerWidth, (o = new k(this._containerLeft, -e -
- this._containerBottom))._add(yi(this._container)), s = t
- .layerPointToContainerPoint(o), r = A(this.options.autoPanPadding), a = A(this
- .options.autoPanPaddingTopLeft || r), h = A(this.options
- .autoPanPaddingBottomRight || r), u = t.getSize(), c = l = 0, s.x + n + h.x > u
- .x && (l = s.x + n - u.x + h.x), s.x - l - a.x < 0 && (l = s.x - a.x), s.y + e + h
- .y > u.y && (c = s.y + e - u.y + h.y), s.y - c - a.y < 0 && (c = s.y - a.y), (l ||
- c) && t.fire("autopanstart").panBy([l, c]))
- },
- _onCloseButtonClick: function(t) {
- this._close(), Ni(t)
- },
- _getAnchor: function() {
- return A(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0,
- 0
- ])
- }
- });
- Ki.mergeOptions({
- closePopupOnClick: !0
- }), Ki.include({
- openPopup: function(t, i, e) {
- return t instanceof tn || (t = new tn(e).setContent(t)), i && t.setLatLng(i), this.hasLayer(
- t) ? this : (this._popup && this._popup.options.autoClose && this.closePopup(), this
- ._popup = t, this.addLayer(t))
- },
- closePopup: function(t) {
- return t && t !== this._popup || (t = this._popup, this._popup = null), t && this
- .removeLayer(t), this
- }
- }), Me.include({
- bindPopup: function(t, i) {
- return t instanceof tn ? (c(t, i), (this._popup = t)._source = this) : (this._popup && !i ||
- (this._popup = new tn(i, this)), this._popup.setContent(t)), this
- ._popupHandlersAdded || (this.on({
- click: this._openPopup,
- keypress: this._onKeyPress,
- remove: this.closePopup,
- move: this._movePopup
- }), this._popupHandlersAdded = !0), this
- },
- unbindPopup: function() {
- return this._popup && (this.off({
- click: this._openPopup,
- keypress: this._onKeyPress,
- remove: this.closePopup,
- move: this._movePopup
- }), this._popupHandlersAdded = !1, this._popup = null), this
- },
- openPopup: function(t, i) {
- return this._popup && this._map && (i = this._popup._prepareOpen(this, t, i), this._map
- .openPopup(this._popup, i)), this
- },
- closePopup: function() {
- return this._popup && this._popup._close(), this
- },
- togglePopup: function(t) {
- return this._popup && (this._popup._map ? this.closePopup() : this.openPopup(t)), this
- },
- isPopupOpen: function() {
- return !!this._popup && this._popup.isOpen()
- },
- setPopupContent: function(t) {
- return this._popup && this._popup.setContent(t), this
- },
- getPopup: function() {
- return this._popup
- },
- _openPopup: function(t) {
- var i = t.layer || t.target;
- this._popup && this._map && (Ni(t), i instanceof Be ? this.openPopup(t.layer || t.target, t
- .latlng) : this._map.hasLayer(this._popup) && this._popup._source === i ? this
- .closePopup() : this.openPopup(i, t.latlng))
- },
- _movePopup: function(t) {
- this._popup.setLatLng(t.latlng)
- },
- _onKeyPress: function(t) {
- 13 === t.originalEvent.keyCode && this._openPopup(t)
- }
- });
- var en = Qe.extend({
- options: {
- pane: "tooltipPane",
- offset: [0, 0],
- direction: "auto",
- permanent: !1,
- sticky: !1,
- interactive: !1,
- opacity: .9
- },
- onAdd: function(t) {
- Qe.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire(
- "tooltipopen", {
- tooltip: this
- }), this._source && this._source.fire("tooltipopen", {
- tooltip: this
- }, !0)
- },
- onRemove: function(t) {
- Qe.prototype.onRemove.call(this, t), t.fire("tooltipclose", {
- tooltip: this
- }), this._source && this._source.fire("tooltipclose", {
- tooltip: this
- }, !0)
- },
- getEvents: function() {
- var t = Qe.prototype.getEvents.call(this);
- return bt && !this.options.permanent && (t.preclick = this._close), t
- },
- _close: function() {
- this._map && this._map.closeTooltip(this)
- },
- _initLayout: function() {
- var t = "leaflet-tooltip " + (this.options.className || "") + " leaflet-zoom-" + (this
- ._zoomAnimated ? "animated" : "hide");
- this._contentNode = this._container = si("div", t)
- },
- _updateLayout: function() {},
- _adjustPan: function() {},
- _setPosition: function(t) {
- var i, e = this._map,
- n = this._container,
- o = e.latLngToContainerPoint(e.getCenter()),
- s = e.layerPointToContainerPoint(t),
- r = this.options.direction,
- a = n.offsetWidth,
- h = n.offsetHeight,
- u = A(this.options.offset),
- l = this._getAnchor(),
- c = "top" === r ? (i = a / 2, h) : "bottom" === r ? (i = a / 2, 0) : (i = "center" ===
- r ? a / 2 : "right" === r ? 0 : "left" === r ? a : s.x < o.x ? (r = "right", 0) : (
- r = "left", a + 2 * (u.x + l.x)), h / 2);
- t = t.subtract(A(i, c, !0)).add(u).add(l), _i(n, "leaflet-tooltip-right"), _i(n,
- "leaflet-tooltip-left"), _i(n, "leaflet-tooltip-top"), _i(n,
- "leaflet-tooltip-bottom"), ci(n, "leaflet-tooltip-" + r), vi(n, t)
- },
- _updatePosition: function() {
- var t = this._map.latLngToLayerPoint(this._latlng);
- this._setPosition(t)
- },
- setOpacity: function(t) {
- this.options.opacity = t, this._container && mi(this._container, t)
- },
- _animateZoom: function(t) {
- var i = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
- this._setPosition(i)
- },
- _getAnchor: function() {
- return A(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this
- ._source._getTooltipAnchor() : [0, 0])
- }
- });
- Ki.include({
- openTooltip: function(t, i, e) {
- return t instanceof en || (t = new en(e).setContent(t)), i && t.setLatLng(i), this.hasLayer(
- t) ? this : this.addLayer(t)
- },
- closeTooltip: function(t) {
- return t && this.removeLayer(t), this
- }
- }), Me.include({
- bindTooltip: function(t, i) {
- return t instanceof en ? (c(t, i), (this._tooltip = t)._source = this) : (this._tooltip && !
- i || (this._tooltip = new en(i, this)), this._tooltip.setContent(t)), this
- ._initTooltipInteractions(), this._tooltip.options.permanent && this._map && this._map
- .hasLayer(this) && this.openTooltip(), this
- },
- unbindTooltip: function() {
- return this._tooltip && (this._initTooltipInteractions(!0), this.closeTooltip(), this
- ._tooltip = null), this
- },
- _initTooltipInteractions: function(t) {
- var i, e;
- !t && this._tooltipHandlersAdded || (i = t ? "off" : "on", e = {
- remove: this.closeTooltip,
- move: this._moveTooltip
- }, this._tooltip.options.permanent ? e.add = this._openTooltip : (e.mouseover = this
- ._openTooltip, e.mouseout = this.closeTooltip, this._tooltip.options.sticky && (
- e.mousemove = this._moveTooltip), bt && (e.click = this._openTooltip)),
- this[i](e), this._tooltipHandlersAdded = !t)
- },
- openTooltip: function(t, i) {
- return this._tooltip && this._map && (i = this._tooltip._prepareOpen(this, t, i), this._map
- .openTooltip(this._tooltip, i), this._tooltip.options.interactive && this._tooltip
- ._container && (ci(this._tooltip._container, "leaflet-clickable"), this
- .addInteractiveTarget(this._tooltip._container))), this
- },
- closeTooltip: function() {
- return this._tooltip && (this._tooltip._close(), this._tooltip.options.interactive && this
- ._tooltip._container && (_i(this._tooltip._container, "leaflet-clickable"), this
- .removeInteractiveTarget(this._tooltip._container))), this
- },
- toggleTooltip: function(t) {
- return this._tooltip && (this._tooltip._map ? this.closeTooltip() : this.openTooltip(t)),
- this
- },
- isTooltipOpen: function() {
- return this._tooltip.isOpen()
- },
- setTooltipContent: function(t) {
- return this._tooltip && this._tooltip.setContent(t), this
- },
- getTooltip: function() {
- return this._tooltip
- },
- _openTooltip: function(t) {
- var i = t.layer || t.target;
- this._tooltip && this._map && this.openTooltip(i, this._tooltip.options.sticky ? t.latlng :
- void 0)
- },
- _moveTooltip: function(t) {
- var i, e, n = t.latlng;
- this._tooltip.options.sticky && t.originalEvent && (i = this._map
- .mouseEventToContainerPoint(t.originalEvent), e = this._map
- .containerPointToLayerPoint(i), n = this._map.layerPointToLatLng(e)), this._tooltip
- .setLatLng(n)
- }
- });
- var nn = Se.extend({
- options: {
- iconSize: [12, 12],
- html: !1,
- bgPos: null,
- className: "leaflet-div-icon"
- },
- createIcon: function(t) {
- var i, e = t && "DIV" === t.tagName ? t : document.createElement("div"),
- n = this.options;
- return n.html instanceof Element ? (ai(e), e.appendChild(n.html)) : e.innerHTML = !1 !== n
- .html ? n.html : "", n.bgPos && (i = A(n.bgPos), e.style.backgroundPosition = -i.x +
- "px " + -i.y + "px"), this._setIconStyles(e, "icon"), e
- },
- createShadow: function() {
- return null
- }
- });
- Se.Default = Ze;
- var on = Me.extend({
- options: {
- tileSize: 256,
- opacity: 1,
- updateWhenIdle: yt,
- updateWhenZooming: !0,
- updateInterval: 200,
- zIndex: 1,
- bounds: null,
- minZoom: 0,
- maxZoom: void 0,
- maxNativeZoom: void 0,
- minNativeZoom: void 0,
- noWrap: !1,
- pane: "tilePane",
- className: "",
- keepBuffer: 2
- },
- initialize: function(t) {
- c(this, t)
- },
- onAdd: function() {
- this._initContainer(), this._levels = {}, this._tiles = {}, this._resetView(), this
- ._update()
- },
- beforeAdd: function(t) {
- t._addZoomLimit(this)
- },
- onRemove: function(t) {
- this._removeAllTiles(), ri(this._container), t._removeZoomLimit(this), this._container =
- null, this._tileZoom = void 0
- },
- bringToFront: function() {
- return this._map && (hi(this._container), this._setAutoZIndex(Math.max)), this
- },
- bringToBack: function() {
- return this._map && (ui(this._container), this._setAutoZIndex(Math.min)), this
- },
- getContainer: function() {
- return this._container
- },
- setOpacity: function(t) {
- return this.options.opacity = t, this._updateOpacity(), this
- },
- setZIndex: function(t) {
- return this.options.zIndex = t, this._updateZIndex(), this
- },
- isLoading: function() {
- return this._loading
- },
- redraw: function() {
- return this._map && (this._removeAllTiles(), this._update()), this
- },
- getEvents: function() {
- var t = {
- viewprereset: this._invalidateAll,
- viewreset: this._resetView,
- zoom: this._resetView,
- moveend: this._onMoveEnd
- };
- return this.options.updateWhenIdle || (this._onMove || (this._onMove = n(this._onMoveEnd,
- this.options.updateInterval, this)), t.move = this._onMove), this._zoomAnimated && (
- t.zoomanim = this._animateZoom), t
- },
- createTile: function() {
- return document.createElement("div")
- },
- getTileSize: function() {
- var t = this.options.tileSize;
- return t instanceof k ? t : new k(t, t)
- },
- _updateZIndex: function() {
- this._container && void 0 !== this.options.zIndex && null !== this.options.zIndex && (this
- ._container.style.zIndex = this.options.zIndex)
- },
- _setAutoZIndex: function(t) {
- for (var i, e = this.getPane().children, n = -t(-1 / 0, 1 / 0), o = 0, s = e.length; o <
- s; o++) i = e[o].style.zIndex, e[o] !== this._container && i && (n = t(n, +i));
- isFinite(n) && (this.options.zIndex = n + t(-1, 1), this._updateZIndex())
- },
- _updateOpacity: function() {
- if (this._map && !it) {
- mi(this._container, this.options.opacity);
- var t = +new Date,
- i = !1,
- e = !1;
- for (var n in this._tiles) {
- var o, s = this._tiles[n];
- s.current && s.loaded && (o = Math.min(1, (t - s.loaded) / 200), mi(s.el, o), o <
- 1 ? i = !0 : (s.active ? e = !0 : this._onOpaqueTile(s), s.active = !0))
- }
- e && !this._noPrune && this._pruneTiles(), i && (z(this._fadeFrame), this._fadeFrame =
- M(this._updateOpacity, this))
- }
- },
- _onOpaqueTile: a,
- _initContainer: function() {
- this._container || (this._container = si("div", "leaflet-layer " + (this.options
- .className || "")), this._updateZIndex(), this.options.opacity < 1 && this
- ._updateOpacity(), this.getPane().appendChild(this._container))
- },
- _updateLevels: function() {
- var t = this._tileZoom,
- i = this.options.maxZoom;
- if (void 0 !== t) {
- for (var e in this._levels) e = Number(e), this._levels[e].el.children.length || e ===
- t ? (this._levels[e].el.style.zIndex = i - Math.abs(t - e), this._onUpdateLevel(
- e)) : (ri(this._levels[e].el), this._removeTilesAtZoom(e), this._onRemoveLevel(e),
- delete this._levels[e]);
- var n = this._levels[t],
- o = this._map;
- return n || ((n = this._levels[t] = {}).el = si("div",
- "leaflet-tile-container leaflet-zoom-animated", this._container), n.el.style
- .zIndex = i, n.origin = o.project(o.unproject(o.getPixelOrigin()), t).round(), n
- .zoom = t, this._setZoomTransform(n, o.getCenter(), o.getZoom()), a(n.el
- .offsetWidth), this._onCreateLevel(n)), this._level = n
- }
- },
- _onUpdateLevel: a,
- _onRemoveLevel: a,
- _onCreateLevel: a,
- _pruneTiles: function() {
- if (this._map) {
- var t, i, e, n = this._map.getZoom();
- if (n > this.options.maxZoom || n < this.options.minZoom) this._removeAllTiles();
- else {
- for (t in this._tiles)(e = this._tiles[t]).retain = e.current;
- for (t in this._tiles) {
- (e = this._tiles[t]).current && !e.active && (i = e.coords, this._retainParent(i
- .x, i.y, i.z, i.z - 5) || this._retainChildren(i.x, i.y, i.z, i.z +
- 2))
- }
- for (t in this._tiles) this._tiles[t].retain || this._removeTile(t)
- }
- }
- },
- _removeTilesAtZoom: function(t) {
- for (var i in this._tiles) this._tiles[i].coords.z === t && this._removeTile(i)
- },
- _removeAllTiles: function() {
- for (var t in this._tiles) this._removeTile(t)
- },
- _invalidateAll: function() {
- for (var t in this._levels) ri(this._levels[t].el), this._onRemoveLevel(Number(t)),
- delete this._levels[t];
- this._removeAllTiles(), this._tileZoom = void 0
- },
- _retainParent: function(t, i, e, n) {
- var o = Math.floor(t / 2),
- s = Math.floor(i / 2),
- r = e - 1,
- a = new k(+o, +s);
- a.z = +r;
- var h = this._tileCoordsToKey(a),
- u = this._tiles[h];
- return u && u.active ? u.retain = !0 : (u && u.loaded && (u.retain = !0), n < r && this
- ._retainParent(o, s, r, n))
- },
- _retainChildren: function(t, i, e, n) {
- for (var o = 2 * t; o < 2 * t + 2; o++)
- for (var s = 2 * i; s < 2 * i + 2; s++) {
- var r = new k(o, s);
- r.z = e + 1;
- var a = this._tileCoordsToKey(r),
- h = this._tiles[a];
- h && h.active ? h.retain = !0 : (h && h.loaded && (h.retain = !0), e + 1 < n && this
- ._retainChildren(o, s, e + 1, n))
- }
- },
- _resetView: function(t) {
- var i = t && (t.pinch || t.flyTo);
- this._setView(this._map.getCenter(), this._map.getZoom(), i, i)
- },
- _animateZoom: function(t) {
- this._setView(t.center, t.zoom, !0, t.noUpdate)
- },
- _clampZoom: function(t) {
- var i = this.options;
- return void 0 !== i.minNativeZoom && t < i.minNativeZoom ? i.minNativeZoom : void 0 !== i
- .maxNativeZoom && i.maxNativeZoom < t ? i.maxNativeZoom : t
- },
- _setView: function(t, i, e, n) {
- var o = Math.round(i),
- o = void 0 !== this.options.maxZoom && o > this.options.maxZoom || void 0 !== this
- .options.minZoom && o < this.options.minZoom ? void 0 : this._clampZoom(o),
- s = this.options.updateWhenZooming && o !== this._tileZoom;
- n && !s || (this._tileZoom = o, this._abortLoading && this._abortLoading(), this
- ._updateLevels(), this._resetGrid(), void 0 !== o && this._update(t), e || this
- ._pruneTiles(), this._noPrune = !!e), this._setZoomTransforms(t, i)
- },
- _setZoomTransforms: function(t, i) {
- for (var e in this._levels) this._setZoomTransform(this._levels[e], t, i)
- },
- _setZoomTransform: function(t, i, e) {
- var n = this._map.getZoomScale(e, t.zoom),
- o = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(i, e)).round();
- vt ? gi(t.el, o, n) : vi(t.el, o)
- },
- _resetGrid: function() {
- var t = this._map,
- i = t.options.crs,
- e = this._tileSize = this.getTileSize(),
- n = this._tileZoom,
- o = this._map.getPixelWorldBounds(this._tileZoom);
- o && (this._globalTileRange = this._pxBoundsToTileRange(o)), this._wrapX = i.wrapLng && !
- this.options.noWrap && [Math.floor(t.project([0, i.wrapLng[0]], n).x / e.x), Math.ceil(t
- .project([0, i.wrapLng[1]], n).x / e.y)], this._wrapY = i.wrapLat && !this.options
- .noWrap && [Math.floor(t.project([i.wrapLat[0], 0], n).y / e.x), Math.ceil(t.project([i
- .wrapLat[1], 0
- ], n).y / e.y)]
- },
- _onMoveEnd: function() {
- this._map && !this._map._animatingZoom && this._update()
- },
- _getTiledPixelBounds: function(t) {
- var i = this._map,
- e = i._animatingZoom ? Math.max(i._animateToZoom, i.getZoom()) : i.getZoom(),
- n = i.getZoomScale(e, this._tileZoom),
- o = i.project(t, this._tileZoom).floor(),
- s = i.getSize().divideBy(2 * n);
- return new I(o.subtract(s), o.add(s))
- },
- _update: function(t) {
- var i = this._map;
- if (i) {
- var e = this._clampZoom(i.getZoom());
- if (void 0 === t && (t = i.getCenter()), void 0 !== this._tileZoom) {
- var n = this._getTiledPixelBounds(t),
- o = this._pxBoundsToTileRange(n),
- s = o.getCenter(),
- r = [],
- a = this.options.keepBuffer,
- h = new I(o.getBottomLeft().subtract([a, -a]), o.getTopRight().add([a, -a]));
- if (!(isFinite(o.min.x) && isFinite(o.min.y) && isFinite(o.max.x) && isFinite(o.max
- .y))) throw new Error("Attempted to load an infinite number of tiles");
- for (var u in this._tiles) {
- var l = this._tiles[u].coords;
- l.z === this._tileZoom && h.contains(new k(l.x, l.y)) || (this._tiles[u]
- .current = !1)
- }
- if (1 < Math.abs(e - this._tileZoom)) this._setView(t, e);
- else {
- for (var c = o.min.y; c <= o.max.y; c++)
- for (var _ = o.min.x; _ <= o.max.x; _++) {
- var d, p = new k(_, c);
- p.z = this._tileZoom, this._isValidTile(p) && ((d = this._tiles[this
- ._tileCoordsToKey(p)]) ? d.current = !0 : r.push(p))
- }
- if (r.sort(function(t, i) {
- return t.distanceTo(s) - i.distanceTo(s)
- }), 0 !== r.length) {
- this._loading || (this._loading = !0, this.fire("loading"));
- for (var m = document.createDocumentFragment(), _ = 0; _ < r.length; _++)
- this._addTile(r[_], m);
- this._level.el.appendChild(m)
- }
- }
- }
- }
- },
- _isValidTile: function(t) {
- var i = this._map.options.crs;
- if (!i.infinite) {
- var e = this._globalTileRange;
- if (!i.wrapLng && (t.x < e.min.x || t.x > e.max.x) || !i.wrapLat && (t.y < e.min.y || t
- .y > e.max.y)) return !1
- }
- if (!this.options.bounds) return !0;
- var n = this._tileCoordsToBounds(t);
- return N(this.options.bounds).overlaps(n)
- },
- _keyToBounds: function(t) {
- return this._tileCoordsToBounds(this._keyToTileCoords(t))
- },
- _tileCoordsToNwSe: function(t) {
- var i = this._map,
- e = this.getTileSize(),
- n = t.scaleBy(e),
- o = n.add(e);
- return [i.unproject(n, t.z), i.unproject(o, t.z)]
- },
- _tileCoordsToBounds: function(t) {
- var i = this._tileCoordsToNwSe(t),
- e = new R(i[0], i[1]);
- return this.options.noWrap || (e = this._map.wrapLatLngBounds(e)), e
- },
- _tileCoordsToKey: function(t) {
- return t.x + ":" + t.y + ":" + t.z
- },
- _keyToTileCoords: function(t) {
- var i = t.split(":"),
- e = new k(+i[0], +i[1]);
- return e.z = +i[2], e
- },
- _removeTile: function(t) {
- var i = this._tiles[t];
- i && (ri(i.el), delete this._tiles[t], this.fire("tileunload", {
- tile: i.el,
- coords: this._keyToTileCoords(t)
- }))
- },
- _initTile: function(t) {
- ci(t, "leaflet-tile");
- var i = this.getTileSize();
- t.style.width = i.x + "px", t.style.height = i.y + "px", t.onselectstart = a, t
- .onmousemove = a, it && this.options.opacity < 1 && mi(t, this.options.opacity), ot && !
- st && (t.style.WebkitBackfaceVisibility = "hidden")
- },
- _addTile: function(t, i) {
- var e = this._getTilePos(t),
- n = this._tileCoordsToKey(t),
- o = this.createTile(this._wrapCoords(t), p(this._tileReady, this, t));
- this._initTile(o), this.createTile.length < 2 && M(p(this._tileReady, this, t, null, o)),
- vi(o, e), this._tiles[n] = {
- el: o,
- coords: t,
- current: !0
- }, i.appendChild(o), this.fire("tileloadstart", {
- tile: o,
- coords: t
- })
- },
- _tileReady: function(t, i, e) {
- i && this.fire("tileerror", {
- error: i,
- tile: e,
- coords: t
- });
- var n = this._tileCoordsToKey(t);
- (e = this._tiles[n]) && (e.loaded = +new Date, this._map._fadeAnimated ? (mi(e.el, 0), z(
- this._fadeFrame), this._fadeFrame = M(this._updateOpacity, this)) : (e.active = !0,
- this._pruneTiles()), i || (ci(e.el, "leaflet-tile-loaded"), this.fire("tileload", {
- tile: e.el,
- coords: t
- })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), it || !this._map
- ._fadeAnimated ? M(this._pruneTiles, this) : setTimeout(p(this._pruneTiles, this),
- 250)))
- },
- _getTilePos: function(t) {
- return t.scaleBy(this.getTileSize()).subtract(this._level.origin)
- },
- _wrapCoords: function(t) {
- var i = new k(this._wrapX ? o(t.x, this._wrapX) : t.x, this._wrapY ? o(t.y, this._wrapY) : t
- .y);
- return i.z = t.z, i
- },
- _pxBoundsToTileRange: function(t) {
- var i = this.getTileSize();
- return new I(t.min.unscaleBy(i).floor(), t.max.unscaleBy(i).ceil().subtract([1, 1]))
- },
- _noTilesToLoad: function() {
- for (var t in this._tiles)
- if (!this._tiles[t].loaded) return !1;
- return !0
- }
- });
- var sn = on.extend({
- options: {
- minZoom: 0,
- maxZoom: 18,
- subdomains: "abc",
- errorTileUrl: "",
- zoomOffset: 0,
- tms: !1,
- zoomReverse: !1,
- detectRetina: !1,
- crossOrigin: !1
- },
- initialize: function(t, i) {
- this._url = t, (i = c(this, i)).detectRetina && zt && 0 < i.maxZoom && (i.tileSize = Math
- .floor(i.tileSize / 2), i.zoomReverse ? (i.zoomOffset--, i.minZoom++) : (i
- .zoomOffset++, i.maxZoom--), i.minZoom = Math.max(0, i.minZoom)), "string" ==
- typeof i.subdomains && (i.subdomains = i.subdomains.split("")), ot || this.on(
- "tileunload", this._onTileRemove)
- },
- setUrl: function(t, i) {
- return this._url === t && void 0 === i && (i = !0), this._url = t, i || this.redraw(), this
- },
- createTile: function(t, i) {
- var e = document.createElement("img");
- return zi(e, "load", p(this._tileOnLoad, this, i, e)), zi(e, "error", p(this._tileOnError,
- this, i, e)), !this.options.crossOrigin && "" !== this.options.crossOrigin || (e
- .crossOrigin = !0 === this.options.crossOrigin ? "" : this.options.crossOrigin), e
- .alt = "", e.setAttribute("role", "presentation"), e.src = this.getTileUrl(t), e
- },
- getTileUrl: function(t) {
- var i, e = {
- r: zt ? "@2x" : "",
- s: this._getSubdomain(t),
- x: t.x,
- y: t.y,
- z: this._getZoomForUrl()
- };
- return this._map && !this._map.options.crs.infinite && (i = this._globalTileRange.max.y - t
- .y, this.options.tms && (e.y = i), e["-y"] = i), f(this._url, h(e, this.options))
- },
- _tileOnLoad: function(t, i) {
- it ? setTimeout(p(t, this, null, i), 0) : t(null, i)
- },
- _tileOnError: function(t, i, e) {
- var n = this.options.errorTileUrl;
- n && i.getAttribute("src") !== n && (i.src = n), t(e, i)
- },
- _onTileRemove: function(t) {
- t.tile.onload = null
- },
- _getZoomForUrl: function() {
- var t = this._tileZoom,
- i = this.options.maxZoom;
- return this.options.zoomReverse && (t = i - t), t + this.options.zoomOffset
- },
- _getSubdomain: function(t) {
- var i = Math.abs(t.x + t.y) % this.options.subdomains.length;
- return this.options.subdomains[i]
- },
- _abortLoading: function() {
- var t, i;
- for (t in this._tiles) this._tiles[t].coords.z !== this._tileZoom && ((i = this._tiles[t]
- .el).onload = a, i.onerror = a, i.complete || (i.src = y, ri(i), delete this
- ._tiles[t]))
- },
- _removeTile: function(t) {
- var i = this._tiles[t];
- if (i) return at || i.el.setAttribute("src", y), on.prototype._removeTile.call(this, t)
- },
- _tileReady: function(t, i, e) {
- if (this._map && (!e || e.getAttribute("src") !== y)) return on.prototype._tileReady.call(
- this, t, i, e)
- }
- });
-
- function rn(t, i) {
- return new sn(t, i)
- }
- var an = sn.extend({
- defaultWmsParams: {
- service: "WMS",
- request: "GetMap",
- layers: "",
- styles: "",
- format: "image/jpeg",
- transparent: !1,
- version: "1.1.1"
- },
- options: {
- crs: null,
- uppercase: !1
- },
- initialize: function(t, i) {
- this._url = t;
- var e = h({}, this.defaultWmsParams);
- for (var n in i) n in this.options || (e[n] = i[n]);
- var o = (i = c(this, i)).detectRetina && zt ? 2 : 1,
- s = this.getTileSize();
- e.width = s.x * o, e.height = s.y * o, this.wmsParams = e
- },
- onAdd: function(t) {
- this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams
- .version);
- var i = 1.3 <= this._wmsVersion ? "crs" : "srs";
- this.wmsParams[i] = this._crs.code, sn.prototype.onAdd.call(this, t)
- },
- getTileUrl: function(t) {
- var i = this._tileCoordsToNwSe(t),
- e = this._crs,
- n = O(e.project(i[0]), e.project(i[1])),
- o = n.min,
- s = n.max,
- r = (1.3 <= this._wmsVersion && this._crs === be ? [o.y, o.x, s.y, s.x] : [o.x, o.y, s
- .x, s.y
- ]).join(","),
- a = sn.prototype.getTileUrl.call(this, t);
- return a + _(this.wmsParams, a, this.options.uppercase) + (this.options.uppercase ?
- "&BBOX=" : "&bbox=") + r
- },
- setParams: function(t, i) {
- return h(this.wmsParams, t), i || this.redraw(), this
- }
- });
- sn.WMS = an, rn.wms = function(t, i) {
- return new an(t, i)
- };
- var hn = Me.extend({
- options: {
- padding: .1,
- tolerance: 0
- },
- initialize: function(t) {
- c(this, t), m(this), this._layers = this._layers || {}
- },
- onAdd: function() {
- this._container || (this._initContainer(), this._zoomAnimated && ci(this._container,
- "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this
- ._update(), this.on("update", this._updatePaths, this)
- },
- onRemove: function() {
- this.off("update", this._updatePaths, this), this._destroyContainer()
- },
- getEvents: function() {
- var t = {
- viewreset: this._reset,
- zoom: this._onZoom,
- moveend: this._update,
- zoomend: this._onZoomEnd
- };
- return this._zoomAnimated && (t.zoomanim = this._onAnimZoom), t
- },
- _onAnimZoom: function(t) {
- this._updateTransform(t.center, t.zoom)
- },
- _onZoom: function() {
- this._updateTransform(this._map.getCenter(), this._map.getZoom())
- },
- _updateTransform: function(t, i) {
- var e = this._map.getZoomScale(i, this._zoom),
- n = yi(this._container),
- o = this._map.getSize().multiplyBy(.5 + this.options.padding),
- s = this._map.project(this._center, i),
- r = this._map.project(t, i).subtract(s),
- a = o.multiplyBy(-e).add(n).add(o).subtract(r);
- vt ? gi(this._container, a, e) : vi(this._container, a)
- },
- _reset: function() {
- for (var t in this._update(), this._updateTransform(this._center, this._zoom), this._layers)
- this._layers[t]._reset()
- },
- _onZoomEnd: function() {
- for (var t in this._layers) this._layers[t]._project()
- },
- _updatePaths: function() {
- for (var t in this._layers) this._layers[t]._update()
- },
- _update: function() {
- var t = this.options.padding,
- i = this._map.getSize(),
- e = this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();
- this._bounds = new I(e, e.add(i.multiplyBy(1 + 2 * t)).round()), this._center = this._map
- .getCenter(), this._zoom = this._map.getZoom()
- }
- }),
- un = hn.extend({
- getEvents: function() {
- var t = hn.prototype.getEvents.call(this);
- return t.viewprereset = this._onViewPreReset, t
- },
- _onViewPreReset: function() {
- this._postponeUpdatePaths = !0
- },
- onAdd: function() {
- hn.prototype.onAdd.call(this), this._draw()
- },
- _initContainer: function() {
- var t = this._container = document.createElement("canvas");
- zi(t, "mousemove", this._onMouseMove, this), zi(t,
- "click dblclick mousedown mouseup contextmenu", this._onClick, this), zi(t,
- "mouseout", this._handleMouseOut, this), this._ctx = t.getContext("2d")
- },
- _destroyContainer: function() {
- z(this._redrawRequest), delete this._ctx, ri(this._container), Si(this._container),
- delete this._container
- },
- _updatePaths: function() {
- if (!this._postponeUpdatePaths) {
- for (var t in this._redrawBounds = null, this._layers) this._layers[t]._update();
- this._redraw()
- }
- },
- _update: function() {
- var t, i, e, n;
- this._map._animatingZoom && this._bounds || (hn.prototype._update.call(this), t = this
- ._bounds, i = this._container, e = t.getSize(), n = zt ? 2 : 1, vi(i, t.min), i
- .width = n * e.x, i.height = n * e.y, i.style.width = e.x + "px", i.style.height = e
- .y + "px", zt && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y),
- this.fire("update"))
- },
- _reset: function() {
- hn.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !
- 1, this._updatePaths())
- },
- _initPath: function(t) {
- this._updateDashArray(t);
- var i = (this._layers[m(t)] = t)._order = {
- layer: t,
- prev: this._drawLast,
- next: null
- };
- this._drawLast && (this._drawLast.next = i), this._drawLast = i, this._drawFirst = this
- ._drawFirst || this._drawLast
- },
- _addPath: function(t) {
- this._requestRedraw(t)
- },
- _removePath: function(t) {
- var i = t._order,
- e = i.next,
- n = i.prev;
- e ? e.prev = n : this._drawLast = n, n ? n.next = e : this._drawFirst = e, delete t._order,
- delete this._layers[m(t)], this._requestRedraw(t)
- },
- _updatePath: function(t) {
- this._extendRedrawBounds(t), t._project(), t._update(), this._requestRedraw(t)
- },
- _updateStyle: function(t) {
- this._updateDashArray(t), this._requestRedraw(t)
- },
- _updateDashArray: function(t) {
- if ("string" == typeof t.options.dashArray) {
- for (var i, e = t.options.dashArray.split(/[, ]+/), n = [], o = 0; o < e.length; o++) {
- if (i = Number(e[o]), isNaN(i)) return;
- n.push(i)
- }
- t.options._dashArray = n
- } else t.options._dashArray = t.options.dashArray
- },
- _requestRedraw: function(t) {
- this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || M(
- this._redraw, this))
- },
- _extendRedrawBounds: function(t) {
- var i;
- t._pxBounds && (i = (t.options.weight || 0) + 1, this._redrawBounds = this._redrawBounds ||
- new I, this._redrawBounds.extend(t._pxBounds.min.subtract([i, i])), this
- ._redrawBounds.extend(t._pxBounds.max.add([i, i])))
- },
- _redraw: function() {
- this._redrawRequest = null, this._redrawBounds && (this._redrawBounds.min._floor(), this
- ._redrawBounds.max._ceil()), this._clear(), this._draw(), this._redrawBounds = null
- },
- _clear: function() {
- var t, i = this._redrawBounds;
- i ? (t = i.getSize(), this._ctx.clearRect(i.min.x, i.min.y, t.x, t.y)) : (this._ctx.save(),
- this._ctx.setTransform(1, 0, 0, 1, 0, 0), this._ctx.clearRect(0, 0, this._container
- .width, this._container.height), this._ctx.restore())
- },
- _draw: function() {
- var t, i, e = this._redrawBounds;
- this._ctx.save(), e && (i = e.getSize(), this._ctx.beginPath(), this._ctx.rect(e.min.x, e
- .min.y, i.x, i.y), this._ctx.clip()), this._drawing = !0;
- for (var n = this._drawFirst; n; n = n.next) t = n.layer, (!e || t._pxBounds && t._pxBounds
- .intersects(e)) && t._updatePath();
- this._drawing = !1, this._ctx.restore()
- },
- _updatePoly: function(t, i) {
- if (this._drawing) {
- var e, n, o, s, r = t._parts,
- a = r.length,
- h = this._ctx;
- if (a) {
- for (h.beginPath(), e = 0; e < a; e++) {
- for (n = 0, o = r[e].length; n < o; n++) s = r[e][n], h[n ? "lineTo" : "moveTo"]
- (s.x, s.y);
- i && h.closePath()
- }
- this._fillStroke(h, t)
- }
- }
- },
- _updateCircle: function(t) {
- var i, e, n, o;
- this._drawing && !t._empty() && (i = t._point, e = this._ctx, n = Math.max(Math.round(t
- ._radius), 1), 1 != (o = (Math.max(Math.round(t._radiusY), 1) || n) / n) && (e
- .save(), e.scale(1, o)), e.beginPath(), e.arc(i.x, i.y / o, n, 0, 2 * Math.PI, !
- 1), 1 != o && e.restore(), this._fillStroke(e, t))
- },
- _fillStroke: function(t, i) {
- var e = i.options;
- e.fill && (t.globalAlpha = e.fillOpacity, t.fillStyle = e.fillColor || e.color, t.fill(e
- .fillRule || "evenodd")), e.stroke && 0 !== e.weight && (t.setLineDash && t
- .setLineDash(i.options && i.options._dashArray || []), t.globalAlpha = e.opacity, t
- .lineWidth = e.weight, t.strokeStyle = e.color, t.lineCap = e.lineCap, t.lineJoin =
- e.lineJoin, t.stroke())
- },
- _onClick: function(t) {
- for (var i, e, n = this._map.mouseEventToLayerPoint(t), o = this._drawFirst; o; o = o.next)(
- i = o.layer).options.interactive && i._containsPoint(n) && (("click" === t.type ||
- "preclick" !== t.type) && this._map._draggableMoved(i) || (e = i));
- e && (Fi(t), this._fireEvent([e], t))
- },
- _onMouseMove: function(t) {
- var i;
- !this._map || this._map.dragging.moving() || this._map._animatingZoom || (i = this._map
- .mouseEventToLayerPoint(t), this._handleMouseHover(t, i))
- },
- _handleMouseOut: function(t) {
- var i = this._hoveredLayer;
- i && (_i(this._container, "leaflet-interactive"), this._fireEvent([i], t, "mouseout"), this
- ._hoveredLayer = null, this._mouseHoverThrottled = !1)
- },
- _handleMouseHover: function(t, i) {
- if (!this._mouseHoverThrottled) {
- for (var e, n, o = this._drawFirst; o; o = o.next)(e = o.layer).options.interactive && e
- ._containsPoint(i) && (n = e);
- n !== this._hoveredLayer && (this._handleMouseOut(t), n && (ci(this._container,
- "leaflet-interactive"), this._fireEvent([n], t, "mouseover"), this
- ._hoveredLayer = n)), this._hoveredLayer && this._fireEvent([this
- ._hoveredLayer], t), this._mouseHoverThrottled = !0, setTimeout(p(function() {
- this._mouseHoverThrottled = !1
- }, this), 32)
- }
- },
- _fireEvent: function(t, i, e) {
- this._map._fireDOMEvent(i, e || i.type, t)
- },
- _bringToFront: function(t) {
- var i, e, n = t._order;
- n && (i = n.next, e = n.prev, i && ((i.prev = e) ? e.next = i : i && (this._drawFirst = i),
- n.prev = this._drawLast, (this._drawLast.next = n).next = null, this._drawLast =
- n, this._requestRedraw(t)))
- },
- _bringToBack: function(t) {
- var i, e, n = t._order;
- n && (i = n.next, (e = n.prev) && ((e.next = i) ? i.prev = e : e && (this._drawLast = e), n
- .prev = null, n.next = this._drawFirst, this._drawFirst.prev = n, this
- ._drawFirst = n, this._requestRedraw(t)))
- }
- });
-
- function ln(t) {
- return St ? new un(t) : null
- }
- var cn = function() {
- try {
- return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"),
- function(t) {
- return document.createElement("<lvml:" + t + ' class="lvml">')
- }
- } catch (t) {
- return function(t) {
- return document.createElement("<" + t +
- ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')
- }
- }
- }(),
- _n = {
- _initContainer: function() {
- this._container = si("div", "leaflet-vml-container")
- },
- _update: function() {
- this._map._animatingZoom || (hn.prototype._update.call(this), this.fire("update"))
- },
- _initPath: function(t) {
- var i = t._container = cn("shape");
- ci(i, "leaflet-vml-shape " + (this.options.className || "")), i.coordsize = "1 1", t._path = cn(
- "path"), i.appendChild(t._path), this._updateStyle(t), this._layers[m(t)] = t
- },
- _addPath: function(t) {
- var i = t._container;
- this._container.appendChild(i), t.options.interactive && t.addInteractiveTarget(i)
- },
- _removePath: function(t) {
- var i = t._container;
- ri(i), t.removeInteractiveTarget(i), delete this._layers[m(t)]
- },
- _updateStyle: function(t) {
- var i = t._stroke,
- e = t._fill,
- n = t.options,
- o = t._container;
- o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (i = i || (t._stroke = cn("stroke")), o
- .appendChild(i), i.weight = n.weight + "px", i.color = n.color, i.opacity = n.opacity, n
- .dashArray ? i.dashStyle = g(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(
- /( *, *)/g, " ") : i.dashStyle = "", i.endcap = n.lineCap.replace("butt", "flat"), i
- .joinstyle = n.lineJoin) : i && (o.removeChild(i), t._stroke = null), n.fill ? (e = e ||
- (t._fill = cn("fill")), o.appendChild(e), e.color = n.fillColor || n.color, e.opacity =
- n.fillOpacity) : e && (o.removeChild(e), t._fill = null)
- },
- _updateCircle: function(t) {
- var i = t._point.round(),
- e = Math.round(t._radius),
- n = Math.round(t._radiusY || e);
- this._setPath(t, t._empty() ? "M0 0" : "AL " + i.x + "," + i.y + " " + e + "," + n +
- " 0,23592600")
- },
- _setPath: function(t, i) {
- t._path.v = i
- },
- _bringToFront: function(t) {
- hi(t._container)
- },
- _bringToBack: function(t) {
- ui(t._container)
- }
- },
- dn = Et ? cn : J,
- pn = hn.extend({
- getEvents: function() {
- var t = hn.prototype.getEvents.call(this);
- return t.zoomstart = this._onZoomStart, t
- },
- _initContainer: function() {
- this._container = dn("svg"), this._container.setAttribute("pointer-events", "none"), this
- ._rootGroup = dn("g"), this._container.appendChild(this._rootGroup)
- },
- _destroyContainer: function() {
- ri(this._container), Si(this._container), delete this._container, delete this._rootGroup,
- delete this._svgSize
- },
- _onZoomStart: function() {
- this._update()
- },
- _update: function() {
- var t, i, e;
- this._map._animatingZoom && this._bounds || (hn.prototype._update.call(this), i = (t = this
- ._bounds).getSize(), e = this._container, this._svgSize && this._svgSize.equals(
- i) || (this._svgSize = i, e.setAttribute("width", i.x), e.setAttribute("height",
- i.y)), vi(e, t.min), e.setAttribute("viewBox", [t.min.x, t.min.y, i.x, i.y]
- .join(" ")), this.fire("update"))
- },
- _initPath: function(t) {
- var i = t._path = dn("path");
- t.options.className && ci(i, t.options.className), t.options.interactive && ci(i,
- "leaflet-interactive"), this._updateStyle(t), this._layers[m(t)] = t
- },
- _addPath: function(t) {
- this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t
- .addInteractiveTarget(t._path)
- },
- _removePath: function(t) {
- ri(t._path), t.removeInteractiveTarget(t._path), delete this._layers[m(t)]
- },
- _updatePath: function(t) {
- t._project(), t._update()
- },
- _updateStyle: function(t) {
- var i = t._path,
- e = t.options;
- i && (e.stroke ? (i.setAttribute("stroke", e.color), i.setAttribute("stroke-opacity", e
- .opacity), i.setAttribute("stroke-width", e.weight), i.setAttribute(
- "stroke-linecap", e.lineCap), i.setAttribute("stroke-linejoin", e.lineJoin),
- e.dashArray ? i.setAttribute("stroke-dasharray", e.dashArray) : i
- .removeAttribute("stroke-dasharray"), e.dashOffset ? i.setAttribute(
- "stroke-dashoffset", e.dashOffset) : i.removeAttribute("stroke-dashoffset")
- ) : i.setAttribute("stroke", "none"), e.fill ? (i.setAttribute("fill", e
- .fillColor || e.color), i.setAttribute("fill-opacity", e.fillOpacity), i
- .setAttribute("fill-rule", e.fillRule || "evenodd")) : i.setAttribute("fill",
- "none"))
- },
- _updatePoly: function(t, i) {
- this._setPath(t, $(t._parts, i))
- },
- _updateCircle: function(t) {
- var i = t._point,
- e = Math.max(Math.round(t._radius), 1),
- n = "a" + e + "," + (Math.max(Math.round(t._radiusY), 1) || e) + " 0 1,0 ",
- o = t._empty() ? "M0 0" : "M" + (i.x - e) + "," + i.y + n + 2 * e + ",0 " + n + 2 * -e +
- ",0 ";
- this._setPath(t, o)
- },
- _setPath: function(t, i) {
- t._path.setAttribute("d", i)
- },
- _bringToFront: function(t) {
- hi(t._path)
- },
- _bringToBack: function(t) {
- ui(t._path)
- }
- });
-
- function mn(t) {
- return Zt || Et ? new pn(t) : null
- }
- Et && pn.include(_n), Ki.include({
- getRenderer: function(t) {
- var i = (i = t.options.renderer || this._getPaneRenderer(t.options.pane) || this.options
- .renderer || this._renderer) || (this._renderer = this._createRenderer());
- return this.hasLayer(i) || this.addLayer(i), i
- },
- _getPaneRenderer: function(t) {
- if ("overlayPane" === t || void 0 === t) return !1;
- var i = this._paneRenderers[t];
- return void 0 === i && (i = this._createRenderer({
- pane: t
- }), this._paneRenderers[t] = i), i
- },
- _createRenderer: function(t) {
- return this.options.preferCanvas && ln(t) || mn(t)
- }
- });
- var fn = Re.extend({
- initialize: function(t, i) {
- Re.prototype.initialize.call(this, this._boundsToLatLngs(t), i)
- },
- setBounds: function(t) {
- return this.setLatLngs(this._boundsToLatLngs(t))
- },
- _boundsToLatLngs: function(t) {
- return [(t = N(t)).getSouthWest(), t.getNorthWest(), t.getNorthEast(), t.getSouthEast()]
- }
- });
- pn.create = dn, pn.pointsToPath = $, Ne.geometryToLayer = De, Ne.coordsToLatLng = We, Ne.coordsToLatLngs = He,
- Ne.latLngToCoords = Fe, Ne.latLngsToCoords = Ue, Ne.getFeature = Ve, Ne.asFeature = qe, Ki.mergeOptions({
- boxZoom: !0
- });
- var gn = ie.extend({
- initialize: function(t) {
- this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this
- ._resetStateTimeout = 0, t.on("unload", this._destroy, this)
- },
- addHooks: function() {
- zi(this._container, "mousedown", this._onMouseDown, this)
- },
- removeHooks: function() {
- Si(this._container, "mousedown", this._onMouseDown, this)
- },
- moved: function() {
- return this._moved
- },
- _destroy: function() {
- ri(this._pane), delete this._pane
- },
- _resetState: function() {
- this._resetStateTimeout = 0, this._moved = !1
- },
- _clearDeferredResetState: function() {
- 0 !== this._resetStateTimeout && (clearTimeout(this._resetStateTimeout), this
- ._resetStateTimeout = 0)
- },
- _onMouseDown: function(t) {
- if (!t.shiftKey || 1 !== t.which && 1 !== t.button) return !1;
- this._clearDeferredResetState(), this._resetState(), Xt(), xi(), this._startPoint = this
- ._map.mouseEventToContainerPoint(t), zi(document, {
- contextmenu: Ni,
- mousemove: this._onMouseMove,
- mouseup: this._onMouseUp,
- keydown: this._onKeyDown
- }, this)
- },
- _onMouseMove: function(t) {
- this._moved || (this._moved = !0, this._box = si("div", "leaflet-zoom-box", this
- ._container), ci(this._container, "leaflet-crosshair"), this._map.fire(
- "boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
- var i = new I(this._point, this._startPoint),
- e = i.getSize();
- vi(this._box, i.min), this._box.style.width = e.x + "px", this._box.style.height = e.y +
- "px"
- },
- _finish: function() {
- this._moved && (ri(this._box), _i(this._container, "leaflet-crosshair")), Jt(), wi(), Si(
- document, {
- contextmenu: Ni,
- mousemove: this._onMouseMove,
- mouseup: this._onMouseUp,
- keydown: this._onKeyDown
- }, this)
- },
- _onMouseUp: function(t) {
- var i;
- 1 !== t.which && 1 !== t.button || (this._finish(), this._moved && (this
- ._clearDeferredResetState(), this._resetStateTimeout = setTimeout(p(this
- ._resetState, this), 0), i = new R(this._map.containerPointToLatLng(this
- ._startPoint), this._map.containerPointToLatLng(this._point)), this._map
- .fitBounds(i).fire("boxzoomend", {
- boxZoomBounds: i
- })))
- },
- _onKeyDown: function(t) {
- 27 === t.keyCode && this._finish()
- }
- });
- Ki.addInitHook("addHandler", "boxZoom", gn), Ki.mergeOptions({
- doubleClickZoom: !0
- });
- var vn = ie.extend({
- addHooks: function() {
- this._map.on("dblclick", this._onDoubleClick, this)
- },
- removeHooks: function() {
- this._map.off("dblclick", this._onDoubleClick, this)
- },
- _onDoubleClick: function(t) {
- var i = this._map,
- e = i.getZoom(),
- n = i.options.zoomDelta,
- o = t.originalEvent.shiftKey ? e - n : e + n;
- "center" === i.options.doubleClickZoom ? i.setZoom(o) : i.setZoomAround(t.containerPoint, o)
- }
- });
- Ki.addInitHook("addHandler", "doubleClickZoom", vn), Ki.mergeOptions({
- dragging: !0,
- inertia: !st,
- inertiaDeceleration: 3400,
- inertiaMaxSpeed: 1 / 0,
- easeLinearity: .2,
- worldCopyJump: !1,
- maxBoundsViscosity: 0
- });
- var yn = ie.extend({
- addHooks: function() {
- var t;
- this._draggable || (t = this._map, this._draggable = new ae(t._mapPane, t._container), this
- ._draggable.on({
- dragstart: this._onDragStart,
- drag: this._onDrag,
- dragend: this._onDragEnd
- }, this), this._draggable.on("predrag", this._onPreDragLimit, this), t.options
- .worldCopyJump && (this._draggable.on("predrag", this._onPreDragWrap, this), t.on(
- "zoomend", this._onZoomEnd, this), t.whenReady(this._onZoomEnd, this))), ci(this
- ._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this
- ._positions = [], this._times = []
- },
- removeHooks: function() {
- _i(this._map._container, "leaflet-grab"), _i(this._map._container, "leaflet-touch-drag"),
- this._draggable.disable()
- },
- moved: function() {
- return this._draggable && this._draggable._moved
- },
- moving: function() {
- return this._draggable && this._draggable._moving
- },
- _onDragStart: function() {
- var t, i = this._map;
- i._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity ? (t = N(this
- ._map.options.maxBounds), this._offsetLimit = O(this._map
- .latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1), this._map
- .latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map
- .getSize())), this._viscosity = Math.min(1, Math.max(0, this._map.options
- .maxBoundsViscosity))) : this._offsetLimit = null, i.fire("movestart").fire(
- "dragstart"), i.options.inertia && (this._positions = [], this._times = [])
- },
- _onDrag: function(t) {
- var i, e;
- this._map.options.inertia && (i = this._lastTime = +new Date, e = this._lastPos = this
- ._draggable._absPos || this._draggable._newPos, this._positions.push(e), this._times
- .push(i), this._prunePositions(i)), this._map.fire("move", t).fire("drag", t)
- },
- _prunePositions: function(t) {
- for (; 1 < this._positions.length && 50 < t - this._times[0];) this._positions.shift(), this
- ._times.shift()
- },
- _onZoomEnd: function() {
- var t = this._map.getSize().divideBy(2),
- i = this._map.latLngToLayerPoint([0, 0]);
- this._initialWorldOffset = i.subtract(t).x, this._worldWidth = this._map
- .getPixelWorldBounds().getSize().x
- },
- _viscousLimit: function(t, i) {
- return t - (t - i) * this._viscosity
- },
- _onPreDragLimit: function() {
- var t, i;
- this._viscosity && this._offsetLimit && (t = this._draggable._newPos.subtract(this
- ._draggable._startPos), i = this._offsetLimit, t.x < i.min.x && (t.x = this
- ._viscousLimit(t.x, i.min.x)), t.y < i.min.y && (t.y = this._viscousLimit(t.y, i
- .min.y)), t.x > i.max.x && (t.x = this._viscousLimit(t.x, i.max.x)), t.y > i.max
- .y && (t.y = this._viscousLimit(t.y, i.max.y)), this._draggable._newPos = this
- ._draggable._startPos.add(t))
- },
- _onPreDragWrap: function() {
- var t = this._worldWidth,
- i = Math.round(t / 2),
- e = this._initialWorldOffset,
- n = this._draggable._newPos.x,
- o = (n - i + e) % t + i - e,
- s = (n + i + e) % t - i - e,
- r = Math.abs(o + e) < Math.abs(s + e) ? o : s;
- this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = r
- },
- _onDragEnd: function(t) {
- var i, e, n, o, s, r, a, h, u, l = this._map,
- c = l.options,
- _ = !c.inertia || this._times.length < 2;
- l.fire("dragend", t), _ ? l.fire("moveend") : (this._prunePositions(+new Date), i = this
- ._lastPos.subtract(this._positions[0]), e = (this._lastTime - this._times[0]) / 1e3,
- n = c.easeLinearity, s = (o = i.multiplyBy(n / e)).distanceTo([0, 0]), r = Math.min(
- c.inertiaMaxSpeed, s), a = o.multiplyBy(r / s), h = r / (c.inertiaDeceleration *
- n), (u = a.multiplyBy(-h / 2).round()).x || u.y ? (u = l._limitOffset(u, l
- .options.maxBounds), M(function() {
- l.panBy(u, {
- duration: h,
- easeLinearity: n,
- noMoveStart: !0,
- animate: !0
- })
- })) : l.fire("moveend"))
- }
- });
- Ki.addInitHook("addHandler", "dragging", yn), Ki.mergeOptions({
- keyboard: !0,
- keyboardPanDelta: 80
- });
- var xn = ie.extend({
- keyCodes: {
- left: [37],
- right: [39],
- down: [40],
- up: [38],
- zoomIn: [187, 107, 61, 171],
- zoomOut: [189, 109, 54, 173]
- },
- initialize: function(t) {
- this._map = t, this._setPanDelta(t.options.keyboardPanDelta), this._setZoomDelta(t.options
- .zoomDelta)
- },
- addHooks: function() {
- var t = this._map._container;
- t.tabIndex <= 0 && (t.tabIndex = "0"), zi(t, {
- focus: this._onFocus,
- blur: this._onBlur,
- mousedown: this._onMouseDown
- }, this), this._map.on({
- focus: this._addHooks,
- blur: this._removeHooks
- }, this)
- },
- removeHooks: function() {
- this._removeHooks(), Si(this._map._container, {
- focus: this._onFocus,
- blur: this._onBlur,
- mousedown: this._onMouseDown
- }, this), this._map.off({
- focus: this._addHooks,
- blur: this._removeHooks
- }, this)
- },
- _onMouseDown: function() {
- var t, i, e, n;
- this._focused || (t = document.body, i = document.documentElement, e = t.scrollTop || i
- .scrollTop, n = t.scrollLeft || i.scrollLeft, this._map._container.focus(), window
- .scrollTo(n, e))
- },
- _onFocus: function() {
- this._focused = !0, this._map.fire("focus")
- },
- _onBlur: function() {
- this._focused = !1, this._map.fire("blur")
- },
- _setPanDelta: function(t) {
- for (var i = this._panKeys = {}, e = this.keyCodes, n = 0, o = e.left.length; n < o; n++) i[
- e.left[n]] = [-1 * t, 0];
- for (n = 0, o = e.right.length; n < o; n++) i[e.right[n]] = [t, 0];
- for (n = 0, o = e.down.length; n < o; n++) i[e.down[n]] = [0, t];
- for (n = 0, o = e.up.length; n < o; n++) i[e.up[n]] = [0, -1 * t]
- },
- _setZoomDelta: function(t) {
- for (var i = this._zoomKeys = {}, e = this.keyCodes, n = 0, o = e.zoomIn.length; n < o; n++)
- i[e.zoomIn[n]] = t;
- for (n = 0, o = e.zoomOut.length; n < o; n++) i[e.zoomOut[n]] = -t
- },
- _addHooks: function() {
- zi(document, "keydown", this._onKeyDown, this)
- },
- _removeHooks: function() {
- Si(document, "keydown", this._onKeyDown, this)
- },
- _onKeyDown: function(t) {
- if (!(t.altKey || t.ctrlKey || t.metaKey)) {
- var i, e = t.keyCode,
- n = this._map;
- if (e in this._panKeys) n._panAnim && n._panAnim._inProgress || (i = this._panKeys[e], t
- .shiftKey && (i = A(i).multiplyBy(3)), n.panBy(i), n.options.maxBounds && n
- .panInsideBounds(n.options.maxBounds));
- else if (e in this._zoomKeys) n.setZoom(n.getZoom() + (t.shiftKey ? 3 : 1) * this
- ._zoomKeys[e]);
- else {
- if (27 !== e || !n._popup || !n._popup.options.closeOnEscapeKey) return;
- n.closePopup()
- }
- Ni(t)
- }
- }
- });
- Ki.addInitHook("addHandler", "keyboard", xn), Ki.mergeOptions({
- scrollWheelZoom: !0,
- wheelDebounceTime: 40,
- wheelPxPerZoomLevel: 60
- });
- var wn = ie.extend({
- addHooks: function() {
- zi(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0
- },
- removeHooks: function() {
- Si(this._map._container, "wheel", this._onWheelScroll, this)
- },
- _onWheelScroll: function(t) {
- var i = Wi(t),
- e = this._map.options.wheelDebounceTime;
- this._delta += i, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this
- ._startTime || (this._startTime = +new Date);
- var n = Math.max(e - (new Date - this._startTime), 0);
- clearTimeout(this._timer), this._timer = setTimeout(p(this._performZoom, this), n), Ni(t)
- },
- _performZoom: function() {
- var t = this._map,
- i = t.getZoom(),
- e = this._map.options.zoomSnap || 0;
- t._stop();
- var n = this._delta / (4 * this._map.options.wheelPxPerZoomLevel),
- o = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2,
- s = e ? Math.ceil(o / e) * e : o,
- r = t._limitZoom(i + (0 < this._delta ? s : -s)) - i;
- this._delta = 0, this._startTime = null, r && ("center" === t.options.scrollWheelZoom ? t
- .setZoom(i + r) : t.setZoomAround(this._lastMousePos, i + r))
- }
- });
- Ki.addInitHook("addHandler", "scrollWheelZoom", wn), Ki.mergeOptions({
- tap: !0,
- tapTolerance: 15
- });
- var Pn = ie.extend({
- addHooks: function() {
- zi(this._map._container, "touchstart", this._onDown, this)
- },
- removeHooks: function() {
- Si(this._map._container, "touchstart", this._onDown, this)
- },
- _onDown: function(t) {
- if (t.touches) {
- if (Ri(t), this._fireClick = !0, 1 < t.touches.length) return this._fireClick = !1,
- void clearTimeout(this._holdTimeout);
- var i = t.touches[0],
- e = i.target;
- this._startPos = this._newPos = new k(i.clientX, i.clientY), e.tagName && "a" === e
- .tagName.toLowerCase() && ci(e, "leaflet-active"), this._holdTimeout = setTimeout(p(
- function() {
- this._isTapValid() && (this._fireClick = !1, this._onUp(), this
- ._simulateEvent("contextmenu", i))
- }, this), 1e3), this._simulateEvent("mousedown", i), zi(document, {
- touchmove: this._onMove,
- touchend: this._onUp
- }, this)
- }
- },
- _onUp: function(t) {
- var i, e;
- clearTimeout(this._holdTimeout), Si(document, {
- touchmove: this._onMove,
- touchend: this._onUp
- }, this), this._fireClick && t && t.changedTouches && ((e = (i = t.changedTouches[0])
- .target) && e.tagName && "a" === e.tagName.toLowerCase() && _i(e,
- "leaflet-active"), this._simulateEvent("mouseup", i), this._isTapValid() && this
- ._simulateEvent("click", i))
- },
- _isTapValid: function() {
- return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance
- },
- _onMove: function(t) {
- var i = t.touches[0];
- this._newPos = new k(i.clientX, i.clientY), this._simulateEvent("mousemove", i)
- },
- _simulateEvent: function(t, i) {
- var e = document.createEvent("MouseEvents");
- e._simulated = !0, i.target._simulatedClick = !0, e.initMouseEvent(t, !0, !0, window, 1, i
- .screenX, i.screenY, i.clientX, i.clientY, !1, !1, !1, !1, 0, null), i.target
- .dispatchEvent(e)
- }
- });
- !bt || Lt && !ct || Ki.addInitHook("addHandler", "tap", Pn), Ki.mergeOptions({
- touchZoom: bt && !st,
- bounceAtZoomLimits: !0
- });
- var Ln = ie.extend({
- addHooks: function() {
- ci(this._map._container, "leaflet-touch-zoom"), zi(this._map._container, "touchstart", this
- ._onTouchStart, this)
- },
- removeHooks: function() {
- _i(this._map._container, "leaflet-touch-zoom"), Si(this._map._container, "touchstart", this
- ._onTouchStart, this)
- },
- _onTouchStart: function(t) {
- var i, e, n = this._map;
- !t.touches || 2 !== t.touches.length || n._animatingZoom || this._zooming || (i = n
- .mouseEventToContainerPoint(t.touches[0]), e = n.mouseEventToContainerPoint(t
- .touches[1]), this._centerPoint = n.getSize()._divideBy(2), this._startLatLng =
- n.containerPointToLatLng(this._centerPoint), "center" !== n.options.touchZoom && (
- this._pinchStartLatLng = n.containerPointToLatLng(i.add(e)._divideBy(2))), this
- ._startDist = i.distanceTo(e), this._startZoom = n.getZoom(), this._moved = !1, this
- ._zooming = !0, n._stop(), zi(document, "touchmove", this._onTouchMove, this), zi(
- document, "touchend", this._onTouchEnd, this), Ri(t))
- },
- _onTouchMove: function(t) {
- if (t.touches && 2 === t.touches.length && this._zooming) {
- var i = this._map,
- e = i.mouseEventToContainerPoint(t.touches[0]),
- n = i.mouseEventToContainerPoint(t.touches[1]),
- o = e.distanceTo(n) / this._startDist;
- if (this._zoom = i.getScaleZoom(o, this._startZoom), !i.options.bounceAtZoomLimits && (
- this._zoom < i.getMinZoom() && o < 1 || this._zoom > i.getMaxZoom() && 1 < o) &&
- (this._zoom = i._limitZoom(this._zoom)), "center" === i.options.touchZoom) {
- if (this._center = this._startLatLng, 1 == o) return
- } else {
- var s = e._add(n)._divideBy(2)._subtract(this._centerPoint);
- if (1 == o && 0 === s.x && 0 === s.y) return;
- this._center = i.unproject(i.project(this._pinchStartLatLng, this._zoom).subtract(
- s), this._zoom)
- }
- this._moved || (i._moveStart(!0, !1), this._moved = !0), z(this._animRequest);
- var r = p(i._move, i, this._center, this._zoom, {
- pinch: !0,
- round: !1
- });
- this._animRequest = M(r, this, !0), Ri(t)
- }
- },
- _onTouchEnd: function() {
- this._moved && this._zooming ? (this._zooming = !1, z(this._animRequest), Si(document,
- "touchmove", this._onTouchMove, this), Si(document, "touchend", this
- ._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(
- this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap
- ) : this._map._resetView(this._center, this._map._limitZoom(this._zoom))) : this
- ._zooming = !1
- }
- });
- Ki.addInitHook("addHandler", "touchZoom", Ln), Ki.BoxZoom = gn, Ki.DoubleClickZoom = vn, Ki.Drag = yn, Ki
- .Keyboard = xn, Ki.ScrollWheelZoom = wn, Ki.Tap = Pn, Ki.TouchZoom = Ln, t.version = "1.7.1", t.Control =
- Xi, t.control = Yi, t.Browser = Bt, t.Evented = E, t.Mixin = ne, t.Util = C, t.Class = S, t.Handler = ie, t
- .extend = h, t.bind = p, t.stamp = m, t.setOptions = c, t.DomEvent = qi, t.DomUtil = Mi, t.PosAnimation =
- Gi, t.Draggable = ae, t.LineUtil = fe, t.PolyUtil = ye, t.Point = k, t.point = A, t.Bounds = I, t.bounds =
- O, t.Transformation = q, t.transformation = G, t.Projection = Pe, t.LatLng = D, t.latLng = j, t
- .LatLngBounds = R, t.latLngBounds = N, t.CRS = H, t.GeoJSON = Ne, t.geoJSON = Ke, t.geoJson = Ye, t.Layer =
- Me, t.LayerGroup = ze, t.layerGroup = function(t, i) {
- return new ze(t, i)
- }, t.FeatureGroup = Ce, t.featureGroup = function(t, i) {
- return new Ce(t, i)
- }, t.ImageOverlay = Xe, t.imageOverlay = function(t, i, e) {
- return new Xe(t, i, e)
- }, t.VideoOverlay = Je, t.videoOverlay = function(t, i, e) {
- return new Je(t, i, e)
- }, t.SVGOverlay = $e, t.svgOverlay = function(t, i, e) {
- return new $e(t, i, e)
- }, t.DivOverlay = Qe, t.Popup = tn, t.popup = function(t, i) {
- return new tn(t, i)
- }, t.Tooltip = en, t.tooltip = function(t, i) {
- return new en(t, i)
- }, t.Icon = Se, t.icon = function(t) {
- return new Se(t)
- }, t.DivIcon = nn, t.divIcon = function(t) {
- return new nn(t)
- }, t.Marker = ke, t.marker = function(t, i) {
- return new ke(t, i)
- }, t.TileLayer = sn, t.tileLayer = rn, t.GridLayer = on, t.gridLayer = function(t) {
- return new on(t)
- }, t.SVG = pn, t.svg = mn, t.Renderer = hn, t.Canvas = un, t.canvas = ln, t.Path = Be, t.CircleMarker = Ae,
- t.circleMarker = function(t, i) {
- return new Ae(t, i)
- }, t.Circle = Ie, t.circle = function(t, i, e) {
- return new Ie(t, i, e)
- }, t.Polyline = Oe, t.polyline = function(t, i) {
- return new Oe(t, i)
- }, t.Polygon = Re, t.polygon = function(t, i) {
- return new Re(t, i)
- }, t.Rectangle = fn, t.rectangle = function(t, i) {
- return new fn(t, i)
- }, t.Map = Ki, t.map = function(t, i) {
- return new Ki(t, i)
- };
- var bn = window.L;
- t.noConflict = function() {
- return window.L = bn, this
-
- }, window.L = t
-});
-//# sourceMappingURL=leaflet.js.map
diff --git a/xcxjingqingmap/lid/leaflet.markercluster-src.js b/xcxjingqingmap/lid/leaflet.markercluster-src.js
deleted file mode 100644
index 67baa89..0000000
--- a/xcxjingqingmap/lid/leaflet.markercluster-src.js
+++ /dev/null
@@ -1,2707 +0,0 @@
-/*
- * Leaflet.markercluster 1.5.0+master.499f71c,
- * Provides Beautiful Animated Marker Clustering functionality for Leaflet, a JS library for interactive maps.
- * https://github.com/Leaflet/Leaflet.markercluster
- * (c) 2012-2017, Dave Leaver, smartrak
- */
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
- (global = global || self, factory((global.Leaflet = global.Leaflet || {}, global.Leaflet.markercluster = {})));
-}(this, function (exports) { 'use strict';
-
- /*
- * L.MarkerClusterGroup extends L.FeatureGroup by clustering the markers contained within
- */
-
- var MarkerClusterGroup = L.MarkerClusterGroup = L.FeatureGroup.extend({
-
- options: {
- maxClusterRadius: 80, //A cluster will cover at most this many pixels from its center
- iconCreateFunction: null,
- clusterPane: L.Marker.prototype.options.pane,
-
- spiderfyOnMaxZoom: true,
- showCoverageOnHover: true,
- zoomToBoundsOnClick: true,
- singleMarkerMode: false,
-
- disableClusteringAtZoom: null,
-
- // Setting this to false prevents the removal of any clusters outside of the viewpoint, which
- // is the default behaviour for performance reasons.
- removeOutsideVisibleBounds: true,
-
- // Set to false to disable all animations (zoom and spiderfy).
- // If false, option animateAddingMarkers below has no effect.
- // If L.DomUtil.TRANSITION is falsy, this option has no effect.
- animate: true,
-
- //Whether to animate adding markers after adding the MarkerClusterGroup to the map
- // If you are adding individual markers set to true, if adding bulk markers leave false for massive performance gains.
- animateAddingMarkers: false,
-
- // Make it possible to provide custom function to calculate spiderfy shape positions
- spiderfyShapePositions: null,
-
- //Increase to increase the distance away that spiderfied markers appear from the center
- spiderfyDistanceMultiplier: 1,
-
- // Make it possible to specify a polyline options on a spider leg
- spiderLegPolylineOptions: { weight: 1.5, color: '#222', opacity: 0.5 },
-
- // When bulk adding layers, adds markers in chunks. Means addLayers may not add all the layers in the call, others will be loaded during setTimeouts
- chunkedLoading: false,
- chunkInterval: 200, // process markers for a maximum of ~ n milliseconds (then trigger the chunkProgress callback)
- chunkDelay: 50, // at the end of each interval, give n milliseconds back to system/browser
- chunkProgress: null, // progress callback: function(processed, total, elapsed) (e.g. for a progress indicator)
-
- //Options to pass to the L.Polygon constructor
- polygonOptions: {}
- },
-
- initialize: function (options) {
- L.Util.setOptions(this, options);
- if (!this.options.iconCreateFunction) {
- this.options.iconCreateFunction = this._defaultIconCreateFunction;
- }
-
- this._featureGroup = L.featureGroup();
- this._featureGroup.addEventParent(this);
-
- this._nonPointGroup = L.featureGroup();
- this._nonPointGroup.addEventParent(this);
-
- this._inZoomAnimation = 0;
- this._needsClustering = [];
- this._needsRemoving = []; //Markers removed while we aren't on the map need to be kept track of
- //The bounds of the currently shown area (from _getExpandedVisibleBounds) Updated on zoom/move
- this._currentShownBounds = null;
-
- this._queue = [];
-
- this._childMarkerEventHandlers = {
- 'dragstart': this._childMarkerDragStart,
- 'move': this._childMarkerMoved,
- 'dragend': this._childMarkerDragEnd,
- };
-
- // Hook the appropriate animation methods.
- var animate = L.DomUtil.TRANSITION && this.options.animate;
- L.extend(this, animate ? this._withAnimation : this._noAnimation);
- // Remember which MarkerCluster class to instantiate (animated or not).
- this._markerCluster = animate ? L.MarkerCluster : L.MarkerClusterNonAnimated;
- },
-
- addLayer: function (layer) {
-
- if (layer instanceof L.LayerGroup) {
- return this.addLayers([layer]);
- }
-
- //Don't cluster non point data
- if (!layer.getLatLng) {
- this._nonPointGroup.addLayer(layer);
- this.fire('layeradd', { layer: layer });
- return this;
- }
-
- if (!this._map) {
- this._needsClustering.push(layer);
- this.fire('layeradd', { layer: layer });
- return this;
- }
-
- if (this.hasLayer(layer)) {
- return this;
- }
-
-
- //If we have already clustered we'll need to add this one to a cluster
-
- if (this._unspiderfy) {
- this._unspiderfy();
- }
-
- this._addLayer(layer, this._maxZoom);
- this.fire('layeradd', { layer: layer });
-
- // Refresh bounds and weighted positions.
- this._topClusterLevel._recalculateBounds();
-
- this._refreshClustersIcons();
-
- //Work out what is visible
- var visibleLayer = layer,
- currentZoom = this._zoom;
- if (layer.__parent) {
- while (visibleLayer.__parent._zoom >= currentZoom) {
- visibleLayer = visibleLayer.__parent;
- }
- }
-
- if (this._currentShownBounds.contains(visibleLayer.getLatLng())) {
- if (this.options.animateAddingMarkers) {
- this._animationAddLayer(layer, visibleLayer);
- } else {
- this._animationAddLayerNonAnimated(layer, visibleLayer);
- }
- }
- return this;
- },
-
- removeLayer: function (layer) {
-
- if (layer instanceof L.LayerGroup) {
- return this.removeLayers([layer]);
- }
-
- //Non point layers
- if (!layer.getLatLng) {
- this._nonPointGroup.removeLayer(layer);
- this.fire('layerremove', { layer: layer });
- return this;
- }
-
- if (!this._map) {
- if (!this._arraySplice(this._needsClustering, layer) && this.hasLayer(layer)) {
- this._needsRemoving.push({ layer: layer, latlng: layer._latlng });
- }
- this.fire('layerremove', { layer: layer });
- return this;
- }
-
- if (!layer.__parent) {
- return this;
- }
-
- if (this._unspiderfy) {
- this._unspiderfy();
- this._unspiderfyLayer(layer);
- }
-
- //Remove the marker from clusters
- this._removeLayer(layer, true);
- this.fire('layerremove', { layer: layer });
-
- // Refresh bounds and weighted positions.
- this._topClusterLevel._recalculateBounds();
-
- this._refreshClustersIcons();
-
- layer.off(this._childMarkerEventHandlers, this);
-
- if (this._featureGroup.hasLayer(layer)) {
- this._featureGroup.removeLayer(layer);
- if (layer.clusterShow) {
- layer.clusterShow();
- }
- }
-
- return this;
- },
-
- //Takes an array of markers and adds them in bulk
- addLayers: function (layersArray, skipLayerAddEvent) {
- if (!L.Util.isArray(layersArray)) {
- return this.addLayer(layersArray);
- }
-
- var fg = this._featureGroup,
- npg = this._nonPointGroup,
- chunked = this.options.chunkedLoading,
- chunkInterval = this.options.chunkInterval,
- chunkProgress = this.options.chunkProgress,
- l = layersArray.length,
- offset = 0,
- originalArray = true,
- m;
-
- if (this._map) {
- var started = (new Date()).getTime();
- var process = L.bind(function () {
- var start = (new Date()).getTime();
-
- // Make sure to unspiderfy before starting to add some layers
- if (this._map && this._unspiderfy) {
- this._unspiderfy();
- }
-
- for (; offset < l; offset++) {
- if (chunked && offset % 200 === 0) {
- // every couple hundred markers, instrument the time elapsed since processing started:
- var elapsed = (new Date()).getTime() - start;
- if (elapsed > chunkInterval) {
- break; // been working too hard, time to take a break :-)
- }
- }
-
- m = layersArray[offset];
-
- // Group of layers, append children to layersArray and skip.
- // Side effects:
- // - Total increases, so chunkProgress ratio jumps backward.
- // - Groups are not included in this group, only their non-group child layers (hasLayer).
- // Changing array length while looping does not affect performance in current browsers:
- // http://jsperf.com/for-loop-changing-length/6
- if (m instanceof L.LayerGroup) {
- if (originalArray) {
- layersArray = layersArray.slice();
- originalArray = false;
- }
- this._extractNonGroupLayers(m, layersArray);
- l = layersArray.length;
- continue;
- }
-
- //Not point data, can't be clustered
- if (!m.getLatLng) {
- npg.addLayer(m);
- if (!skipLayerAddEvent) {
- this.fire('layeradd', { layer: m });
- }
- continue;
- }
-
- if (this.hasLayer(m)) {
- continue;
- }
-
- this._addLayer(m, this._maxZoom);
- if (!skipLayerAddEvent) {
- this.fire('layeradd', { layer: m });
- }
-
- //If we just made a cluster of size 2 then we need to remove the other marker from the map (if it is) or we never will
- if (m.__parent) {
- if (m.__parent.getChildCount() === 2) {
- var markers = m.__parent.getAllChildMarkers(),
- otherMarker = markers[0] === m ? markers[1] : markers[0];
- fg.removeLayer(otherMarker);
- }
- }
- }
-
- if (chunkProgress) {
- // report progress and time elapsed:
- chunkProgress(offset, l, (new Date()).getTime() - started);
- }
-
- // Completed processing all markers.
- if (offset === l) {
-
- // Refresh bounds and weighted positions.
- this._topClusterLevel._recalculateBounds();
-
- this._refreshClustersIcons();
-
- this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds);
- } else {
- setTimeout(process, this.options.chunkDelay);
- }
- }, this);
-
- process();
- } else {
- var needsClustering = this._needsClustering;
-
- for (; offset < l; offset++) {
- m = layersArray[offset];
-
- // Group of layers, append children to layersArray and skip.
- if (m instanceof L.LayerGroup) {
- if (originalArray) {
- layersArray = layersArray.slice();
- originalArray = false;
- }
- this._extractNonGroupLayers(m, layersArray);
- l = layersArray.length;
- continue;
- }
-
- //Not point data, can't be clustered
- if (!m.getLatLng) {
- npg.addLayer(m);
- continue;
- }
-
- if (this.hasLayer(m)) {
- continue;
- }
-
- needsClustering.push(m);
- }
- }
- return this;
- },
-
- //Takes an array of markers and removes them in bulk
- removeLayers: function (layersArray) {
- var i, m,
- l = layersArray.length,
- fg = this._featureGroup,
- npg = this._nonPointGroup,
- originalArray = true;
-
- if (!this._map) {
- for (i = 0; i < l; i++) {
- m = layersArray[i];
-
- // Group of layers, append children to layersArray and skip.
- if (m instanceof L.LayerGroup) {
- if (originalArray) {
- layersArray = layersArray.slice();
- originalArray = false;
- }
- this._extractNonGroupLayers(m, layersArray);
- l = layersArray.length;
- continue;
- }
-
- this._arraySplice(this._needsClustering, m);
- npg.removeLayer(m);
- if (this.hasLayer(m)) {
- this._needsRemoving.push({ layer: m, latlng: m._latlng });
- }
- this.fire('layerremove', { layer: m });
- }
- return this;
- }
-
- if (this._unspiderfy) {
- this._unspiderfy();
-
- // Work on a copy of the array, so that next loop is not affected.
- var layersArray2 = layersArray.slice(),
- l2 = l;
- for (i = 0; i < l2; i++) {
- m = layersArray2[i];
-
- // Group of layers, append children to layersArray and skip.
- if (m instanceof L.LayerGroup) {
- this._extractNonGroupLayers(m, layersArray2);
- l2 = layersArray2.length;
- continue;
- }
-
- this._unspiderfyLayer(m);
- }
- }
-
- for (i = 0; i < l; i++) {
- m = layersArray[i];
-
- // Group of layers, append children to layersArray and skip.
- if (m instanceof L.LayerGroup) {
- if (originalArray) {
- layersArray = layersArray.slice();
- originalArray = false;
- }
- this._extractNonGroupLayers(m, layersArray);
- l = layersArray.length;
- continue;
- }
-
- if (!m.__parent) {
- npg.removeLayer(m);
- this.fire('layerremove', { layer: m });
- continue;
- }
-
- this._removeLayer(m, true, true);
- this.fire('layerremove', { layer: m });
-
- if (fg.hasLayer(m)) {
- fg.removeLayer(m);
- if (m.clusterShow) {
- m.clusterShow();
- }
- }
- }
-
- // Refresh bounds and weighted positions.
- this._topClusterLevel._recalculateBounds();
-
- this._refreshClustersIcons();
-
- //Fix up the clusters and markers on the map
- this._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds);
-
- return this;
- },
-
- //Removes all layers from the MarkerClusterGroup
- clearLayers: function () {
- //Need our own special implementation as the LayerGroup one doesn't work for us
-
- //If we aren't on the map (yet), blow away the markers we know of
- if (!this._map) {
- this._needsClustering = [];
- this._needsRemoving = [];
- delete this._gridClusters;
- delete this._gridUnclustered;
- }
-
- if (this._noanimationUnspiderfy) {
- this._noanimationUnspiderfy();
- }
-
- //Remove all the visible layers
- this._featureGroup.clearLayers();
- this._nonPointGroup.clearLayers();
-
- this.eachLayer(function (marker) {
- marker.off(this._childMarkerEventHandlers, this);
- delete marker.__parent;
- }, this);
-
- if (this._map) {
- //Reset _topClusterLevel and the DistanceGrids
- this._generateInitialClusters();
- }
-
- return this;
- },
-
- //Override FeatureGroup.getBounds as it doesn't work
- getBounds: function () {
- var bounds = new L.LatLngBounds();
-
- if (this._topClusterLevel) {
- bounds.extend(this._topClusterLevel._bounds);
- }
-
- for (var i = this._needsClustering.length - 1; i >= 0; i--) {
- bounds.extend(this._needsClustering[i].getLatLng());
- }
-
- bounds.extend(this._nonPointGroup.getBounds());
-
- return bounds;
- },
-
- //Overrides LayerGroup.eachLayer
- eachLayer: function (method, context) {
- var markers = this._needsClustering.slice(),
- needsRemoving = this._needsRemoving,
- thisNeedsRemoving, i, j;
-
- if (this._topClusterLevel) {
- this._topClusterLevel.getAllChildMarkers(markers);
- }
-
- for (i = markers.length - 1; i >= 0; i--) {
- thisNeedsRemoving = true;
-
- for (j = needsRemoving.length - 1; j >= 0; j--) {
- if (needsRemoving[j].layer === markers[i]) {
- thisNeedsRemoving = false;
- break;
- }
- }
-
- if (thisNeedsRemoving) {
- method.call(context, markers[i]);
- }
- }
-
- this._nonPointGroup.eachLayer(method, context);
- },
-
- //Overrides LayerGroup.getLayers
- getLayers: function () {
- var layers = [];
- this.eachLayer(function (l) {
- layers.push(l);
- });
- return layers;
- },
-
- //Overrides LayerGroup.getLayer, WARNING: Really bad performance
- getLayer: function (id) {
- var result = null;
-
- id = parseInt(id, 10);
-
- this.eachLayer(function (l) {
- if (L.stamp(l) === id) {
- result = l;
- }
- });
-
- return result;
- },
-
- //Returns true if the given layer is in this MarkerClusterGroup
- hasLayer: function (layer) {
- if (!layer) {
- return false;
- }
-
- var i, anArray = this._needsClustering;
-
- for (i = anArray.length - 1; i >= 0; i--) {
- if (anArray[i] === layer) {
- return true;
- }
- }
-
- anArray = this._needsRemoving;
- for (i = anArray.length - 1; i >= 0; i--) {
- if (anArray[i].layer === layer) {
- return false;
- }
- }
-
- return !!(layer.__parent && layer.__parent._group === this) || this._nonPointGroup.hasLayer(layer);
- },
-
- //Zoom down to show the given layer (spiderfying if necessary) then calls the callback
- zoomToShowLayer: function (layer, callback) {
-
- var map = this._map;
-
- if (typeof callback !== 'function') {
- callback = function () {};
- }
-
- var showMarker = function () {
- // Assumes that map.hasLayer checks for direct appearance on map, not recursively calling
- // hasLayer on Layer Groups that are on map (typically not calling this MarkerClusterGroup.hasLayer, which would always return true)
- if ((map.hasLayer(layer) || map.hasLayer(layer.__parent)) && !this._inZoomAnimation) {
- this._map.off('moveend', showMarker, this);
- this.off('animationend', showMarker, this);
-
- if (map.hasLayer(layer)) {
- callback();
- } else if (layer.__parent._icon) {
- this.once('spiderfied', callback, this);
- layer.__parent.spiderfy();
- }
- }
- };
-
- if (layer._icon && this._map.getBounds().contains(layer.getLatLng())) {
- //Layer is visible ond on screen, immediate return
- callback();
- } else if (layer.__parent._zoom < Math.round(this._map._zoom)) {
- //Layer should be visible at this zoom level. It must not be on screen so just pan over to it
- this._map.on('moveend', showMarker, this);
- this._map.panTo(layer.getLatLng());
- } else {
- this._map.on('moveend', showMarker, this);
- this.on('animationend', showMarker, this);
- layer.__parent.zoomToBounds();
- }
- },
-
- //Overrides FeatureGroup.onAdd
- onAdd: function (map) {
- this._map = map;
- var i, l, layer;
-
- if (!isFinite(this._map.getMaxZoom())) {
- throw "Map has no maxZoom specified";
- }
-
- this._featureGroup.addTo(map);
- this._nonPointGroup.addTo(map);
-
- if (!this._gridClusters) {
- this._generateInitialClusters();
- }
-
- this._maxLat = map.options.crs.projection.MAX_LATITUDE;
-
- //Restore all the positions as they are in the MCG before removing them
- for (i = 0, l = this._needsRemoving.length; i < l; i++) {
- layer = this._needsRemoving[i];
- layer.newlatlng = layer.layer._latlng;
- layer.layer._latlng = layer.latlng;
- }
- //Remove them, then restore their new positions
- for (i = 0, l = this._needsRemoving.length; i < l; i++) {
- layer = this._needsRemoving[i];
- this._removeLayer(layer.layer, true);
- layer.layer._latlng = layer.newlatlng;
- }
- this._needsRemoving = [];
-
- //Remember the current zoom level and bounds
- this._zoom = Math.round(this._map._zoom);
- this._currentShownBounds = this._getExpandedVisibleBounds();
-
- this._map.on('zoomend', this._zoomEnd, this);
- this._map.on('moveend', this._moveEnd, this);
-
- if (this._spiderfierOnAdd) { //TODO FIXME: Not sure how to have spiderfier add something on here nicely
- this._spiderfierOnAdd();
- }
-
- this._bindEvents();
-
- //Actually add our markers to the map:
- l = this._needsClustering;
- this._needsClustering = [];
- this.addLayers(l, true);
- },
-
- //Overrides FeatureGroup.onRemove
- onRemove: function (map) {
- map.off('zoomend', this._zoomEnd, this);
- map.off('moveend', this._moveEnd, this);
-
- this._unbindEvents();
-
- //In case we are in a cluster animation
- this._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');
-
- if (this._spiderfierOnRemove) { //TODO FIXME: Not sure how to have spiderfier add something on here nicely
- this._spiderfierOnRemove();
- }
-
- delete this._maxLat;
-
- //Clean up all the layers we added to the map
- this._hideCoverage();
- this._featureGroup.remove();
- this._nonPointGroup.remove();
-
- this._featureGroup.clearLayers();
-
- this._map = null;
- },
-
- getVisibleParent: function (marker) {
- var vMarker = marker;
- while (vMarker && !vMarker._icon) {
- vMarker = vMarker.__parent;
- }
- return vMarker || null;
- },
-
- //Remove the given object from the given array
- _arraySplice: function (anArray, obj) {
- for (var i = anArray.length - 1; i >= 0; i--) {
- if (anArray[i] === obj) {
- anArray.splice(i, 1);
- return true;
- }
- }
- },
-
- /**
- * Removes a marker from all _gridUnclustered zoom levels, starting at the supplied zoom.
- * @param marker to be removed from _gridUnclustered.
- * @param z integer bottom start zoom level (included)
- * @private
- */
- _removeFromGridUnclustered: function (marker, z) {
- var map = this._map,
- gridUnclustered = this._gridUnclustered,
- minZoom = Math.floor(this._map.getMinZoom());
-
- for (; z >= minZoom; z--) {
- if (!gridUnclustered[z].removeObject(marker, map.project(marker.getLatLng(), z))) {
- break;
- }
- }
- },
-
- _childMarkerDragStart: function (e) {
- e.target.__dragStart = e.target._latlng;
- },
-
- _childMarkerMoved: function (e) {
- if (!this._ignoreMove && !e.target.__dragStart) {
- var isPopupOpen = e.target._popup && e.target._popup.isOpen();
-
- this._moveChild(e.target, e.oldLatLng, e.latlng);
-
- if (isPopupOpen) {
- e.target.openPopup();
- }
- }
- },
-
- _moveChild: function (layer, from, to) {
- layer._latlng = from;
- this.removeLayer(layer);
-
- layer._latlng = to;
- this.addLayer(layer);
- },
-
- _childMarkerDragEnd: function (e) {
- var dragStart = e.target.__dragStart;
- delete e.target.__dragStart;
- if (dragStart) {
- this._moveChild(e.target, dragStart, e.target._latlng);
- }
- },
-
-
- //Internal function for removing a marker from everything.
- //dontUpdateMap: set to true if you will handle updating the map manually (for bulk functions)
- _removeLayer: function (marker, removeFromDistanceGrid, dontUpdateMap) {
- var gridClusters = this._gridClusters,
- gridUnclustered = this._gridUnclustered,
- fg = this._featureGroup,
- map = this._map,
- minZoom = Math.floor(this._map.getMinZoom());
-
- //Remove the marker from distance clusters it might be in
- if (removeFromDistanceGrid) {
- this._removeFromGridUnclustered(marker, this._maxZoom);
- }
-
- //Work our way up the clusters removing them as we go if required
- var cluster = marker.__parent,
- markers = cluster._markers,
- otherMarker;
-
- //Remove the marker from the immediate parents marker list
- this._arraySplice(markers, marker);
-
- while (cluster) {
- cluster._childCount--;
- cluster._boundsNeedUpdate = true;
-
- if (cluster._zoom < minZoom) {
- //Top level, do nothing
- break;
- } else if (removeFromDistanceGrid && cluster._childCount <= 1) { //Cluster no longer required
- //We need to push the other marker up to the parent
- otherMarker = cluster._markers[0] === marker ? cluster._markers[1] : cluster._markers[0];
-
- //Update distance grid
- gridClusters[cluster._zoom].removeObject(cluster, map.project(cluster._cLatLng, cluster._zoom));
- gridUnclustered[cluster._zoom].addObject(otherMarker, map.project(otherMarker.getLatLng(), cluster._zoom));
-
- //Move otherMarker up to parent
- this._arraySplice(cluster.__parent._childClusters, cluster);
- cluster.__parent._markers.push(otherMarker);
- otherMarker.__parent = cluster.__parent;
-
- if (cluster._icon) {
- //Cluster is currently on the map, need to put the marker on the map instead
- fg.removeLayer(cluster);
- if (!dontUpdateMap) {
- fg.addLayer(otherMarker);
- }
- }
- } else {
- cluster._iconNeedsUpdate = true;
- }
-
- cluster = cluster.__parent;
- }
-
- delete marker.__parent;
- },
-
- _isOrIsParent: function (el, oel) {
- while (oel) {
- if (el === oel) {
- return true;
- }
- oel = oel.parentNode;
- }
- return false;
- },
-
- //Override L.Evented.fire
- fire: function (type, data, propagate) {
- if (data && data.layer instanceof L.MarkerCluster) {
- //Prevent multiple clustermouseover/off events if the icon is made up of stacked divs (Doesn't work in ie <= 8, no relatedTarget)
- if (data.originalEvent && this._isOrIsParent(data.layer._icon, data.originalEvent.relatedTarget)) {
- return;
- }
- type = 'cluster' + type;
- }
-
- L.FeatureGroup.prototype.fire.call(this, type, data, propagate);
- },
-
- //Override L.Evented.listens
- listens: function (type, propagate) {
- return L.FeatureGroup.prototype.listens.call(this, type, propagate) || L.FeatureGroup.prototype.listens.call(this, 'cluster' + type, propagate);
- },
-
- //Default functionality
- _defaultIconCreateFunction: function (cluster) {
- var childCount = cluster.getChildCount();
-
- var c = ' marker-cluster-';
- if (childCount < 10) {
- c += 'small';
- } else if (childCount < 100) {
- c += 'medium';
- } else {
- c += 'large';
- }
-
- return new L.DivIcon({ html: '<div><span>' + childCount + '</span></div>', className: 'marker-cluster' + c, iconSize: new L.Point(40, 40) });
- },
-
- _bindEvents: function () {
- var map = this._map,
- spiderfyOnMaxZoom = this.options.spiderfyOnMaxZoom,
- showCoverageOnHover = this.options.showCoverageOnHover,
- zoomToBoundsOnClick = this.options.zoomToBoundsOnClick;
-
- //Zoom on cluster click or spiderfy if we are at the lowest level
- if (spiderfyOnMaxZoom || zoomToBoundsOnClick) {
- this.on('clusterclick', this._zoomOrSpiderfy, this);
- }
-
- //Show convex hull (boundary) polygon on mouse over
- if (showCoverageOnHover) {
- this.on('clustermouseover', this._showCoverage, this);
- this.on('clustermouseout', this._hideCoverage, this);
- map.on('zoomend', this._hideCoverage, this);
- }
- },
-
- _zoomOrSpiderfy: function (e) {
- var cluster = e.layer,
- bottomCluster = cluster;
-
- while (bottomCluster._childClusters.length === 1) {
- bottomCluster = bottomCluster._childClusters[0];
- }
-
- if (bottomCluster._zoom === this._maxZoom &&
- bottomCluster._childCount === cluster._childCount &&
- this.options.spiderfyOnMaxZoom) {
-
- // All child markers are contained in a single cluster from this._maxZoom to this cluster.
- cluster.spiderfy();
- } else if (this.options.zoomToBoundsOnClick) {
- cluster.zoomToBounds();
- }
-
- // Focus the map again for keyboard users.
- if (e.originalEvent && e.originalEvent.keyCode === 13) {
- this._map._container.focus();
- }
- },
-
- _showCoverage: function (e) {
- var map = this._map;
- if (this._inZoomAnimation) {
- return;
- }
- if (this._shownPolygon) {
- map.removeLayer(this._shownPolygon);
- }
- if (e.layer.getChildCount() > 2 && e.layer !== this._spiderfied) {
- this._shownPolygon = new L.Polygon(e.layer.getConvexHull(), this.options.polygonOptions);
- map.addLayer(this._shownPolygon);
- }
- },
-
- _hideCoverage: function () {
- if (this._shownPolygon) {
- this._map.removeLayer(this._shownPolygon);
- this._shownPolygon = null;
- }
- },
-
- _unbindEvents: function () {
- var spiderfyOnMaxZoom = this.options.spiderfyOnMaxZoom,
- showCoverageOnHover = this.options.showCoverageOnHover,
- zoomToBoundsOnClick = this.options.zoomToBoundsOnClick,
- map = this._map;
-
- if (spiderfyOnMaxZoom || zoomToBoundsOnClick) {
- this.off('clusterclick', this._zoomOrSpiderfy, this);
- }
- if (showCoverageOnHover) {
- this.off('clustermouseover', this._showCoverage, this);
- this.off('clustermouseout', this._hideCoverage, this);
- map.off('zoomend', this._hideCoverage, this);
- }
- },
-
- _zoomEnd: function () {
- if (!this._map) { //May have been removed from the map by a zoomEnd handler
- return;
- }
- this._mergeSplitClusters();
-
- this._zoom = Math.round(this._map._zoom);
- this._currentShownBounds = this._getExpandedVisibleBounds();
- },
-
- _moveEnd: function () {
- if (this._inZoomAnimation) {
- return;
- }
-
- var newBounds = this._getExpandedVisibleBounds();
-
- this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), this._zoom, newBounds);
- this._topClusterLevel._recursivelyAddChildrenToMap(null, Math.round(this._map._zoom), newBounds);
-
- this._currentShownBounds = newBounds;
- return;
- },
-
- _generateInitialClusters: function () {
- var maxZoom = Math.ceil(this._map.getMaxZoom()),
- minZoom = Math.floor(this._map.getMinZoom()),
- radius = this.options.maxClusterRadius,
- radiusFn = radius;
-
- //If we just set maxClusterRadius to a single number, we need to create
- //a simple function to return that number. Otherwise, we just have to
- //use the function we've passed in.
- if (typeof radius !== "function") {
- radiusFn = function () { return radius; };
- }
-
- if (this.options.disableClusteringAtZoom !== null) {
- maxZoom = this.options.disableClusteringAtZoom - 1;
- }
- this._maxZoom = maxZoom;
- this._gridClusters = {};
- this._gridUnclustered = {};
-
- //Set up DistanceGrids for each zoom
- for (var zoom = maxZoom; zoom >= minZoom; zoom--) {
- this._gridClusters[zoom] = new L.DistanceGrid(radiusFn(zoom));
- this._gridUnclustered[zoom] = new L.DistanceGrid(radiusFn(zoom));
- }
-
- // Instantiate the appropriate L.MarkerCluster class (animated or not).
- this._topClusterLevel = new this._markerCluster(this, minZoom - 1);
- },
-
- //Zoom: Zoom to start adding at (Pass this._maxZoom to start at the bottom)
- _addLayer: function (layer, zoom) {
- var gridClusters = this._gridClusters,
- gridUnclustered = this._gridUnclustered,
- minZoom = Math.floor(this._map.getMinZoom()),
- markerPoint, z;
-
- if (this.options.singleMarkerMode) {
- this._overrideMarkerIcon(layer);
- }
-
- layer.on(this._childMarkerEventHandlers, this);
-
- //Find the lowest zoom level to slot this one in
- for (; zoom >= minZoom; zoom--) {
- markerPoint = this._map.project(layer.getLatLng(), zoom); // calculate pixel position
-
- //Try find a cluster close by
- var closest = gridClusters[zoom].getNearObject(markerPoint);
- if (closest) {
- closest._addChild(layer);
- layer.__parent = closest;
- return;
- }
-
- //Try find a marker close by to form a new cluster with
- closest = gridUnclustered[zoom].getNearObject(markerPoint);
- if (closest) {
- var parent = closest.__parent;
- if (parent) {
- this._removeLayer(closest, false);
- }
-
- //Create new cluster with these 2 in it
-
- var newCluster = new this._markerCluster(this, zoom, closest, layer);
- gridClusters[zoom].addObject(newCluster, this._map.project(newCluster._cLatLng, zoom));
- closest.__parent = newCluster;
- layer.__parent = newCluster;
-
- //First create any new intermediate parent clusters that don't exist
- var lastParent = newCluster;
- for (z = zoom - 1; z > parent._zoom; z--) {
- lastParent = new this._markerCluster(this, z, lastParent);
- gridClusters[z].addObject(lastParent, this._map.project(closest.getLatLng(), z));
- }
- parent._addChild(lastParent);
-
- //Remove closest from this zoom level and any above that it is in, replace with newCluster
- this._removeFromGridUnclustered(closest, zoom);
-
- return;
- }
-
- //Didn't manage to cluster in at this zoom, record us as a marker here and continue upwards
- gridUnclustered[zoom].addObject(layer, markerPoint);
- }
-
- //Didn't get in anything, add us to the top
- this._topClusterLevel._addChild(layer);
- layer.__parent = this._topClusterLevel;
- return;
- },
-
- /**
- * Refreshes the icon of all "dirty" visible clusters.
- * Non-visible "dirty" clusters will be updated when they are added to the map.
- * @private
- */
- _refreshClustersIcons: function () {
- this._featureGroup.eachLayer(function (c) {
- if (c instanceof L.MarkerCluster && c._iconNeedsUpdate) {
- c._updateIcon();
- }
- });
- },
-
- //Enqueue code to fire after the marker expand/contract has happened
- _enqueue: function (fn) {
- this._queue.push(fn);
- if (!this._queueTimeout) {
- this._queueTimeout = setTimeout(L.bind(this._processQueue, this), 300);
- }
- },
- _processQueue: function () {
- for (var i = 0; i < this._queue.length; i++) {
- this._queue[i].call(this);
- }
- this._queue.length = 0;
- clearTimeout(this._queueTimeout);
- this._queueTimeout = null;
- },
-
- //Merge and split any existing clusters that are too big or small
- _mergeSplitClusters: function () {
- var mapZoom = Math.round(this._map._zoom);
-
- //In case we are starting to split before the animation finished
- this._processQueue();
-
- if (this._zoom < mapZoom && this._currentShownBounds.intersects(this._getExpandedVisibleBounds())) { //Zoom in, split
- this._animationStart();
- //Remove clusters now off screen
- this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), this._zoom, this._getExpandedVisibleBounds());
-
- this._animationZoomIn(this._zoom, mapZoom);
-
- } else if (this._zoom > mapZoom) { //Zoom out, merge
- this._animationStart();
-
- this._animationZoomOut(this._zoom, mapZoom);
- } else {
- this._moveEnd();
- }
- },
-
- //Gets the maps visible bounds expanded in each direction by the size of the screen (so the user cannot see an area we do not cover in one pan)
- _getExpandedVisibleBounds: function () {
- if (!this.options.removeOutsideVisibleBounds) {
- return this._mapBoundsInfinite;
- } else if (L.Browser.mobile) {
- return this._checkBoundsMaxLat(this._map.getBounds());
- }
-
- return this._checkBoundsMaxLat(this._map.getBounds().pad(1)); // Padding expands the bounds by its own dimensions but scaled with the given factor.
- },
-
- /**
- * Expands the latitude to Infinity (or -Infinity) if the input bounds reach the map projection maximum defined latitude
- * (in the case of Web/Spherical Mercator, it is 85.0511287798 / see https://en.wikipedia.org/wiki/Web_Mercator#Formulas).
- * Otherwise, the removeOutsideVisibleBounds option will remove markers beyond that limit, whereas the same markers without
- * this option (or outside MCG) will have their position floored (ceiled) by the projection and rendered at that limit,
- * making the user think that MCG "eats" them and never displays them again.
- * @param bounds L.LatLngBounds
- * @returns {L.LatLngBounds}
- * @private
- */
- _checkBoundsMaxLat: function (bounds) {
- var maxLat = this._maxLat;
-
- if (maxLat !== undefined) {
- if (bounds.getNorth() >= maxLat) {
- bounds._northEast.lat = Infinity;
- }
- if (bounds.getSouth() <= -maxLat) {
- bounds._southWest.lat = -Infinity;
- }
- }
-
- return bounds;
- },
-
- //Shared animation code
- _animationAddLayerNonAnimated: function (layer, newCluster) {
- if (newCluster === layer) {
- this._featureGroup.addLayer(layer);
- } else if (newCluster._childCount === 2) {
- newCluster._addToMap();
-
- var markers = newCluster.getAllChildMarkers();
- this._featureGroup.removeLayer(markers[0]);
- this._featureGroup.removeLayer(markers[1]);
- } else {
- newCluster._updateIcon();
- }
- },
-
- /**
- * Extracts individual (i.e. non-group) layers from a Layer Group.
- * @param group to extract layers from.
- * @param output {Array} in which to store the extracted layers.
- * @returns {*|Array}
- * @private
- */
- _extractNonGroupLayers: function (group, output) {
- var layers = group.getLayers(),
- i = 0,
- layer;
-
- output = output || [];
-
- for (; i < layers.length; i++) {
- layer = layers[i];
-
- if (layer instanceof L.LayerGroup) {
- this._extractNonGroupLayers(layer, output);
- continue;
- }
-
- output.push(layer);
- }
-
- return output;
- },
-
- /**
- * Implements the singleMarkerMode option.
- * @param layer Marker to re-style using the Clusters iconCreateFunction.
- * @returns {L.Icon} The newly created icon.
- * @private
- */
- _overrideMarkerIcon: function (layer) {
- var icon = layer.options.icon = this.options.iconCreateFunction({
- getChildCount: function () {
- return 1;
- },
- getAllChildMarkers: function () {
- return [layer];
- }
- });
-
- return icon;
- }
- });
-
- // Constant bounds used in case option "removeOutsideVisibleBounds" is set to false.
- L.MarkerClusterGroup.include({
- _mapBoundsInfinite: new L.LatLngBounds(new L.LatLng(-Infinity, -Infinity), new L.LatLng(Infinity, Infinity))
- });
-
- L.MarkerClusterGroup.include({
- _noAnimation: {
- //Non Animated versions of everything
- _animationStart: function () {
- //Do nothing...
- },
- _animationZoomIn: function (previousZoomLevel, newZoomLevel) {
- this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel);
- this._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());
-
- //We didn't actually animate, but we use this event to mean "clustering animations have finished"
- this.fire('animationend');
- },
- _animationZoomOut: function (previousZoomLevel, newZoomLevel) {
- this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel);
- this._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());
-
- //We didn't actually animate, but we use this event to mean "clustering animations have finished"
- this.fire('animationend');
- },
- _animationAddLayer: function (layer, newCluster) {
- this._animationAddLayerNonAnimated(layer, newCluster);
- }
- },
-
- _withAnimation: {
- //Animated versions here
- _animationStart: function () {
- this._map._mapPane.className += ' leaflet-cluster-anim';
- this._inZoomAnimation++;
- },
-
- _animationZoomIn: function (previousZoomLevel, newZoomLevel) {
- var bounds = this._getExpandedVisibleBounds(),
- fg = this._featureGroup,
- minZoom = Math.floor(this._map.getMinZoom()),
- i;
-
- this._ignoreMove = true;
-
- //Add all children of current clusters to map and remove those clusters from map
- this._topClusterLevel._recursively(bounds, previousZoomLevel, minZoom, function (c) {
- var startPos = c._latlng,
- markers = c._markers,
- m;
-
- if (!bounds.contains(startPos)) {
- startPos = null;
- }
-
- if (c._isSingleParent() && previousZoomLevel + 1 === newZoomLevel) { //Immediately add the new child and remove us
- fg.removeLayer(c);
- c._recursivelyAddChildrenToMap(null, newZoomLevel, bounds);
- } else {
- //Fade out old cluster
- c.clusterHide();
- c._recursivelyAddChildrenToMap(startPos, newZoomLevel, bounds);
- }
-
- //Remove all markers that aren't visible any more
- //TODO: Do we actually need to do this on the higher levels too?
- for (i = markers.length - 1; i >= 0; i--) {
- m = markers[i];
- if (!bounds.contains(m._latlng)) {
- fg.removeLayer(m);
- }
- }
-
- });
-
- this._forceLayout();
-
- //Update opacities
- this._topClusterLevel._recursivelyBecomeVisible(bounds, newZoomLevel);
- //TODO Maybe? Update markers in _recursivelyBecomeVisible
- fg.eachLayer(function (n) {
- if (!(n instanceof L.MarkerCluster) && n._icon) {
- n.clusterShow();
- }
- });
-
- //update the positions of the just added clusters/markers
- this._topClusterLevel._recursively(bounds, previousZoomLevel, newZoomLevel, function (c) {
- c._recursivelyRestoreChildPositions(newZoomLevel);
- });
-
- this._ignoreMove = false;
-
- //Remove the old clusters and close the zoom animation
- this._enqueue(function () {
- //update the positions of the just added clusters/markers
- this._topClusterLevel._recursively(bounds, previousZoomLevel, minZoom, function (c) {
- fg.removeLayer(c);
- c.clusterShow();
- });
-
- this._animationEnd();
- });
- },
-
- _animationZoomOut: function (previousZoomLevel, newZoomLevel) {
- this._animationZoomOutSingle(this._topClusterLevel, previousZoomLevel - 1, newZoomLevel);
-
- //Need to add markers for those that weren't on the map before but are now
- this._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());
- //Remove markers that were on the map before but won't be now
- this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel, this._getExpandedVisibleBounds());
- },
-
- _animationAddLayer: function (layer, newCluster) {
- var me = this,
- fg = this._featureGroup;
-
- fg.addLayer(layer);
- if (newCluster !== layer) {
- if (newCluster._childCount > 2) { //Was already a cluster
-
- newCluster._updateIcon();
- this._forceLayout();
- this._animationStart();
-
- layer._setPos(this._map.latLngToLayerPoint(newCluster.getLatLng()));
- layer.clusterHide();
-
- this._enqueue(function () {
- fg.removeLayer(layer);
- layer.clusterShow();
-
- me._animationEnd();
- });
-
- } else { //Just became a cluster
- this._forceLayout();
-
- me._animationStart();
- me._animationZoomOutSingle(newCluster, this._map.getMaxZoom(), this._zoom);
- }
- }
- }
- },
-
- // Private methods for animated versions.
- _animationZoomOutSingle: function (cluster, previousZoomLevel, newZoomLevel) {
- var bounds = this._getExpandedVisibleBounds(),
- minZoom = Math.floor(this._map.getMinZoom());
-
- //Animate all of the markers in the clusters to move to their cluster center point
- cluster._recursivelyAnimateChildrenInAndAddSelfToMap(bounds, minZoom, previousZoomLevel + 1, newZoomLevel);
-
- var me = this;
-
- //Update the opacity (If we immediately set it they won't animate)
- this._forceLayout();
- cluster._recursivelyBecomeVisible(bounds, newZoomLevel);
-
- //TODO: Maybe use the transition timing stuff to make this more reliable
- //When the animations are done, tidy up
- this._enqueue(function () {
-
- //This cluster stopped being a cluster before the timeout fired
- if (cluster._childCount === 1) {
- var m = cluster._markers[0];
- //If we were in a cluster animation at the time then the opacity and position of our child could be wrong now, so fix it
- this._ignoreMove = true;
- m.setLatLng(m.getLatLng());
- this._ignoreMove = false;
- if (m.clusterShow) {
- m.clusterShow();
- }
- } else {
- cluster._recursively(bounds, newZoomLevel, minZoom, function (c) {
- c._recursivelyRemoveChildrenFromMap(bounds, minZoom, previousZoomLevel + 1);
- });
- }
- me._animationEnd();
- });
- },
-
- _animationEnd: function () {
- if (this._map) {
- this._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');
- }
- this._inZoomAnimation--;
- this.fire('animationend');
- },
-
- //Force a browser layout of stuff in the map
- // Should apply the current opacity and location to all elements so we can update them again for an animation
- _forceLayout: function () {
- //In my testing this works, infact offsetWidth of any element seems to work.
- //Could loop all this._layers and do this for each _icon if it stops working
-
- L.Util.falseFn(document.body.offsetWidth);
- }
- });
-
- L.markerClusterGroup = function (options) {
- return new L.MarkerClusterGroup(options);
- };
-
- var MarkerCluster = L.MarkerCluster = L.Marker.extend({
- options: L.Icon.prototype.options,
-
- initialize: function (group, zoom, a, b) {
-
- L.Marker.prototype.initialize.call(this, a ? (a._cLatLng || a.getLatLng()) : new L.LatLng(0, 0),
- { icon: this, pane: group.options.clusterPane });
-
- this._group = group;
- this._zoom = zoom;
-
- this._markers = [];
- this._childClusters = [];
- this._childCount = 0;
- this._iconNeedsUpdate = true;
- this._boundsNeedUpdate = true;
-
- this._bounds = new L.LatLngBounds();
-
- if (a) {
- this._addChild(a);
- }
- if (b) {
- this._addChild(b);
- }
- },
-
- //Recursively retrieve all child markers of this cluster
- getAllChildMarkers: function (storageArray, ignoreDraggedMarker) {
- storageArray = storageArray || [];
-
- for (var i = this._childClusters.length - 1; i >= 0; i--) {
- this._childClusters[i].getAllChildMarkers(storageArray);
- }
-
- for (var j = this._markers.length - 1; j >= 0; j--) {
- if (ignoreDraggedMarker && this._markers[j].__dragStart) {
- continue;
- }
- storageArray.push(this._markers[j]);
- }
-
- return storageArray;
- },
-
- //Returns the count of how many child markers we have
- getChildCount: function () {
- return this._childCount;
- },
-
- //Zoom to the minimum of showing all of the child markers, or the extents of this cluster
- zoomToBounds: function (fitBoundsOptions) {
- var childClusters = this._childClusters.slice(),
- map = this._group._map,
- boundsZoom = map.getBoundsZoom(this._bounds),
- zoom = this._zoom + 1,
- mapZoom = map.getZoom(),
- i;
-
- //calculate how far we need to zoom down to see all of the markers
- while (childClusters.length > 0 && boundsZoom > zoom) {
- zoom++;
- var newClusters = [];
- for (i = 0; i < childClusters.length; i++) {
- newClusters = newClusters.concat(childClusters[i]._childClusters);
- }
- childClusters = newClusters;
- }
-
- if (boundsZoom > zoom) {
- this._group._map.setView(this._latlng, zoom);
- } else if (boundsZoom <= mapZoom) { //If fitBounds wouldn't zoom us down, zoom us down instead
- this._group._map.setView(this._latlng, mapZoom + 1);
- } else {
- this._group._map.fitBounds(this._bounds, fitBoundsOptions);
- }
- },
-
- getBounds: function () {
- var bounds = new L.LatLngBounds();
- bounds.extend(this._bounds);
- return bounds;
- },
-
- _updateIcon: function () {
- this._iconNeedsUpdate = true;
- if (this._icon) {
- this.setIcon(this);
- }
- },
-
- //Cludge for Icon, we pretend to be an icon for performance
- createIcon: function () {
- if (this._iconNeedsUpdate) {
- this._iconObj = this._group.options.iconCreateFunction(this);
- this._iconNeedsUpdate = false;
- }
- return this._iconObj.createIcon();
- },
- createShadow: function () {
- return this._iconObj.createShadow();
- },
-
-
- _addChild: function (new1, isNotificationFromChild) {
-
- this._iconNeedsUpdate = true;
-
- this._boundsNeedUpdate = true;
- this._setClusterCenter(new1);
-
- if (new1 instanceof L.MarkerCluster) {
- if (!isNotificationFromChild) {
- this._childClusters.push(new1);
- new1.__parent = this;
- }
- this._childCount += new1._childCount;
- } else {
- if (!isNotificationFromChild) {
- this._markers.push(new1);
- }
- this._childCount++;
- }
-
- if (this.__parent) {
- this.__parent._addChild(new1, true);
- }
- },
-
- /**
- * Makes sure the cluster center is set. If not, uses the child center if it is a cluster, or the marker position.
- * @param child L.MarkerCluster|L.Marker that will be used as cluster center if not defined yet.
- * @private
- */
- _setClusterCenter: function (child) {
- if (!this._cLatLng) {
- // when clustering, take position of the first point as the cluster center
- this._cLatLng = child._cLatLng || child._latlng;
- }
- },
-
- /**
- * Assigns impossible bounding values so that the next extend entirely determines the new bounds.
- * This method avoids having to trash the previous L.LatLngBounds object and to create a new one, which is much slower for this class.
- * As long as the bounds are not extended, most other methods would probably fail, as they would with bounds initialized but not extended.
- * @private
- */
- _resetBounds: function () {
- var bounds = this._bounds;
-
- if (bounds._southWest) {
- bounds._southWest.lat = Infinity;
- bounds._southWest.lng = Infinity;
- }
- if (bounds._northEast) {
- bounds._northEast.lat = -Infinity;
- bounds._northEast.lng = -Infinity;
- }
- },
-
- _recalculateBounds: function () {
- var markers = this._markers,
- childClusters = this._childClusters,
- latSum = 0,
- lngSum = 0,
- totalCount = this._childCount,
- i, child, childLatLng, childCount;
-
- // Case where all markers are removed from the map and we are left with just an empty _topClusterLevel.
- if (totalCount === 0) {
- return;
- }
-
- // Reset rather than creating a new object, for performance.
- this._resetBounds();
-
- // Child markers.
- for (i = 0; i < markers.length; i++) {
- childLatLng = markers[i]._latlng;
-
- this._bounds.extend(childLatLng);
-
- latSum += childLatLng.lat;
- lngSum += childLatLng.lng;
- }
-
- // Child clusters.
- for (i = 0; i < childClusters.length; i++) {
- child = childClusters[i];
-
- // Re-compute child bounds and weighted position first if necessary.
- if (child._boundsNeedUpdate) {
- child._recalculateBounds();
- }
-
- this._bounds.extend(child._bounds);
-
- childLatLng = child._wLatLng;
- childCount = child._childCount;
-
- latSum += childLatLng.lat * childCount;
- lngSum += childLatLng.lng * childCount;
- }
-
- this._latlng = this._wLatLng = new L.LatLng(latSum / totalCount, lngSum / totalCount);
-
- // Reset dirty flag.
- this._boundsNeedUpdate = false;
- },
-
- //Set our markers position as given and add it to the map
- _addToMap: function (startPos) {
- if (startPos) {
- this._backupLatlng = this._latlng;
- this.setLatLng(startPos);
- }
- this._group._featureGroup.addLayer(this);
- },
-
- _recursivelyAnimateChildrenIn: function (bounds, center, maxZoom) {
- this._recursively(bounds, this._group._map.getMinZoom(), maxZoom - 1,
- function (c) {
- var markers = c._markers,
- i, m;
- for (i = markers.length - 1; i >= 0; i--) {
- m = markers[i];
-
- //Only do it if the icon is still on the map
- if (m._icon) {
- m._setPos(center);
- m.clusterHide();
- }
- }
- },
- function (c) {
- var childClusters = c._childClusters,
- j, cm;
- for (j = childClusters.length - 1; j >= 0; j--) {
- cm = childClusters[j];
- if (cm._icon) {
- cm._setPos(center);
- cm.clusterHide();
- }
- }
- }
- );
- },
-
- _recursivelyAnimateChildrenInAndAddSelfToMap: function (bounds, mapMinZoom, previousZoomLevel, newZoomLevel) {
- this._recursively(bounds, newZoomLevel, mapMinZoom,
- function (c) {
- c._recursivelyAnimateChildrenIn(bounds, c._group._map.latLngToLayerPoint(c.getLatLng()).round(), previousZoomLevel);
-
- //TODO: depthToAnimateIn affects _isSingleParent, if there is a multizoom we may/may not be.
- //As a hack we only do a animation free zoom on a single level zoom, if someone does multiple levels then we always animate
- if (c._isSingleParent() && previousZoomLevel - 1 === newZoomLevel) {
- c.clusterShow();
- c._recursivelyRemoveChildrenFromMap(bounds, mapMinZoom, previousZoomLevel); //Immediately remove our children as we are replacing them. TODO previousBounds not bounds
- } else {
- c.clusterHide();
- }
-
- c._addToMap();
- }
- );
- },
-
- _recursivelyBecomeVisible: function (bounds, zoomLevel) {
- this._recursively(bounds, this._group._map.getMinZoom(), zoomLevel, null, function (c) {
- c.clusterShow();
- });
- },
-
- _recursivelyAddChildrenToMap: function (startPos, zoomLevel, bounds) {
- this._recursively(bounds, this._group._map.getMinZoom() - 1, zoomLevel,
- function (c) {
- if (zoomLevel === c._zoom) {
- return;
- }
-
- //Add our child markers at startPos (so they can be animated out)
- for (var i = c._markers.length - 1; i >= 0; i--) {
- var nm = c._markers[i];
-
- if (!bounds.contains(nm._latlng)) {
- continue;
- }
-
- if (startPos) {
- nm._backupLatlng = nm.getLatLng();
-
- nm.setLatLng(startPos);
- if (nm.clusterHide) {
- nm.clusterHide();
- }
- }
-
- c._group._featureGroup.addLayer(nm);
- }
- },
- function (c) {
- c._addToMap(startPos);
- }
- );
- },
-
- _recursivelyRestoreChildPositions: function (zoomLevel) {
- //Fix positions of child markers
- for (var i = this._markers.length - 1; i >= 0; i--) {
- var nm = this._markers[i];
- if (nm._backupLatlng) {
- nm.setLatLng(nm._backupLatlng);
- delete nm._backupLatlng;
- }
- }
-
- if (zoomLevel - 1 === this._zoom) {
- //Reposition child clusters
- for (var j = this._childClusters.length - 1; j >= 0; j--) {
- this._childClusters[j]._restorePosition();
- }
- } else {
- for (var k = this._childClusters.length - 1; k >= 0; k--) {
- this._childClusters[k]._recursivelyRestoreChildPositions(zoomLevel);
- }
- }
- },
-
- _restorePosition: function () {
- if (this._backupLatlng) {
- this.setLatLng(this._backupLatlng);
- delete this._backupLatlng;
- }
- },
-
- //exceptBounds: If set, don't remove any markers/clusters in it
- _recursivelyRemoveChildrenFromMap: function (previousBounds, mapMinZoom, zoomLevel, exceptBounds) {
- var m, i;
- this._recursively(previousBounds, mapMinZoom - 1, zoomLevel - 1,
- function (c) {
- //Remove markers at every level
- for (i = c._markers.length - 1; i >= 0; i--) {
- m = c._markers[i];
- if (!exceptBounds || !exceptBounds.contains(m._latlng)) {
- c._group._featureGroup.removeLayer(m);
- if (m.clusterShow) {
- m.clusterShow();
- }
- }
- }
- },
- function (c) {
- //Remove child clusters at just the bottom level
- for (i = c._childClusters.length - 1; i >= 0; i--) {
- m = c._childClusters[i];
- if (!exceptBounds || !exceptBounds.contains(m._latlng)) {
- c._group._featureGroup.removeLayer(m);
- if (m.clusterShow) {
- m.clusterShow();
- }
- }
- }
- }
- );
- },
-
- //Run the given functions recursively to this and child clusters
- // boundsToApplyTo: a L.LatLngBounds representing the bounds of what clusters to recurse in to
- // zoomLevelToStart: zoom level to start running functions (inclusive)
- // zoomLevelToStop: zoom level to stop running functions (inclusive)
- // runAtEveryLevel: function that takes an L.MarkerCluster as an argument that should be applied on every level
- // runAtBottomLevel: function that takes an L.MarkerCluster as an argument that should be applied at only the bottom level
- _recursively: function (boundsToApplyTo, zoomLevelToStart, zoomLevelToStop, runAtEveryLevel, runAtBottomLevel) {
- var childClusters = this._childClusters,
- zoom = this._zoom,
- i, c;
-
- if (zoomLevelToStart <= zoom) {
- if (runAtEveryLevel) {
- runAtEveryLevel(this);
- }
- if (runAtBottomLevel && zoom === zoomLevelToStop) {
- runAtBottomLevel(this);
- }
- }
-
- if (zoom < zoomLevelToStart || zoom < zoomLevelToStop) {
- for (i = childClusters.length - 1; i >= 0; i--) {
- c = childClusters[i];
- if (c._boundsNeedUpdate) {
- c._recalculateBounds();
- }
- if (boundsToApplyTo.intersects(c._bounds)) {
- c._recursively(boundsToApplyTo, zoomLevelToStart, zoomLevelToStop, runAtEveryLevel, runAtBottomLevel);
- }
- }
- }
- },
-
- //Returns true if we are the parent of only one cluster and that cluster is the same as us
- _isSingleParent: function () {
- //Don't need to check this._markers as the rest won't work if there are any
- return this._childClusters.length > 0 && this._childClusters[0]._childCount === this._childCount;
- }
- });
-
- /*
- * Extends L.Marker to include two extra methods: clusterHide and clusterShow.
- *
- * They work as setOpacity(0) and setOpacity(1) respectively, but
- * don't overwrite the options.opacity
- *
- */
-
- L.Marker.include({
- clusterHide: function () {
- var backup = this.options.opacity;
- this.setOpacity(0);
- this.options.opacity = backup;
- return this;
- },
-
- clusterShow: function () {
- return this.setOpacity(this.options.opacity);
- }
- });
-
- L.DistanceGrid = function (cellSize) {
- this._cellSize = cellSize;
- this._sqCellSize = cellSize * cellSize;
- this._grid = {};
- this._objectPoint = { };
- };
-
- L.DistanceGrid.prototype = {
-
- addObject: function (obj, point) {
- var x = this._getCoord(point.x),
- y = this._getCoord(point.y),
- grid = this._grid,
- row = grid[y] = grid[y] || {},
- cell = row[x] = row[x] || [],
- stamp = L.Util.stamp(obj);
-
- this._objectPoint[stamp] = point;
-
- cell.push(obj);
- },
-
- updateObject: function (obj, point) {
- this.removeObject(obj);
- this.addObject(obj, point);
- },
-
- //Returns true if the object was found
- removeObject: function (obj, point) {
- var x = this._getCoord(point.x),
- y = this._getCoord(point.y),
- grid = this._grid,
- row = grid[y] = grid[y] || {},
- cell = row[x] = row[x] || [],
- i, len;
-
- delete this._objectPoint[L.Util.stamp(obj)];
-
- for (i = 0, len = cell.length; i < len; i++) {
- if (cell[i] === obj) {
-
- cell.splice(i, 1);
-
- if (len === 1) {
- delete row[x];
- }
-
- return true;
- }
- }
-
- },
-
- eachObject: function (fn, context) {
- var i, j, k, len, row, cell, removed,
- grid = this._grid;
-
- for (i in grid) {
- row = grid[i];
-
- for (j in row) {
- cell = row[j];
-
- for (k = 0, len = cell.length; k < len; k++) {
- removed = fn.call(context, cell[k]);
- if (removed) {
- k--;
- len--;
- }
- }
- }
- }
- },
-
- getNearObject: function (point) {
- var x = this._getCoord(point.x),
- y = this._getCoord(point.y),
- i, j, k, row, cell, len, obj, dist,
- objectPoint = this._objectPoint,
- closestDistSq = this._sqCellSize,
- closest = null;
-
- for (i = y - 1; i <= y + 1; i++) {
- row = this._grid[i];
- if (row) {
-
- for (j = x - 1; j <= x + 1; j++) {
- cell = row[j];
- if (cell) {
-
- for (k = 0, len = cell.length; k < len; k++) {
- obj = cell[k];
- dist = this._sqDist(objectPoint[L.Util.stamp(obj)], point);
- if (dist < closestDistSq ||
- dist <= closestDistSq && closest === null) {
- closestDistSq = dist;
- closest = obj;
- }
- }
- }
- }
- }
- }
- return closest;
- },
-
- _getCoord: function (x) {
- var coord = Math.floor(x / this._cellSize);
- return isFinite(coord) ? coord : x;
- },
-
- _sqDist: function (p, p2) {
- var dx = p2.x - p.x,
- dy = p2.y - p.y;
- return dx * dx + dy * dy;
- }
- };
-
- /* Copyright (c) 2012 the authors listed at the following URL, and/or
- the authors of referenced articles or incorporated external code:
- http://en.literateprograms.org/Quickhull_(Javascript)?action=history&offset=20120410175256
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the
- "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to
- permit persons to whom the Software is furnished to do so, subject to
- the following conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
- Retrieved from: http://en.literateprograms.org/Quickhull_(Javascript)?oldid=18434
- */
-
- (function () {
- L.QuickHull = {
-
- /*
- * @param {Object} cpt a point to be measured from the baseline
- * @param {Array} bl the baseline, as represented by a two-element
- * array of latlng objects.
- * @returns {Number} an approximate distance measure
- */
- getDistant: function (cpt, bl) {
- var vY = bl[1].lat - bl[0].lat,
- vX = bl[0].lng - bl[1].lng;
- return (vX * (cpt.lat - bl[0].lat) + vY * (cpt.lng - bl[0].lng));
- },
-
- /*
- * @param {Array} baseLine a two-element array of latlng objects
- * representing the baseline to project from
- * @param {Array} latLngs an array of latlng objects
- * @returns {Object} the maximum point and all new points to stay
- * in consideration for the hull.
- */
- findMostDistantPointFromBaseLine: function (baseLine, latLngs) {
- var maxD = 0,
- maxPt = null,
- newPoints = [],
- i, pt, d;
-
- for (i = latLngs.length - 1; i >= 0; i--) {
- pt = latLngs[i];
- d = this.getDistant(pt, baseLine);
-
- if (d > 0) {
- newPoints.push(pt);
- } else {
- continue;
- }
-
- if (d > maxD) {
- maxD = d;
- maxPt = pt;
- }
- }
-
- return { maxPoint: maxPt, newPoints: newPoints };
- },
-
-
- /*
- * Given a baseline, compute the convex hull of latLngs as an array
- * of latLngs.
- *
- * @param {Array} latLngs
- * @returns {Array}
- */
- buildConvexHull: function (baseLine, latLngs) {
- var convexHullBaseLines = [],
- t = this.findMostDistantPointFromBaseLine(baseLine, latLngs);
-
- if (t.maxPoint) { // if there is still a point "outside" the base line
- convexHullBaseLines =
- convexHullBaseLines.concat(
- this.buildConvexHull([baseLine[0], t.maxPoint], t.newPoints)
- );
- convexHullBaseLines =
- convexHullBaseLines.concat(
- this.buildConvexHull([t.maxPoint, baseLine[1]], t.newPoints)
- );
- return convexHullBaseLines;
- } else { // if there is no more point "outside" the base line, the current base line is part of the convex hull
- return [baseLine[0]];
- }
- },
-
- /*
- * Given an array of latlngs, compute a convex hull as an array
- * of latlngs
- *
- * @param {Array} latLngs
- * @returns {Array}
- */
- getConvexHull: function (latLngs) {
- // find first baseline
- var maxLat = false, minLat = false,
- maxLng = false, minLng = false,
- maxLatPt = null, minLatPt = null,
- maxLngPt = null, minLngPt = null,
- maxPt = null, minPt = null,
- i;
-
- for (i = latLngs.length - 1; i >= 0; i--) {
- var pt = latLngs[i];
- if (maxLat === false || pt.lat > maxLat) {
- maxLatPt = pt;
- maxLat = pt.lat;
- }
- if (minLat === false || pt.lat < minLat) {
- minLatPt = pt;
- minLat = pt.lat;
- }
- if (maxLng === false || pt.lng > maxLng) {
- maxLngPt = pt;
- maxLng = pt.lng;
- }
- if (minLng === false || pt.lng < minLng) {
- minLngPt = pt;
- minLng = pt.lng;
- }
- }
-
- if (minLat !== maxLat) {
- minPt = minLatPt;
- maxPt = maxLatPt;
- } else {
- minPt = minLngPt;
- maxPt = maxLngPt;
- }
-
- var ch = [].concat(this.buildConvexHull([minPt, maxPt], latLngs),
- this.buildConvexHull([maxPt, minPt], latLngs));
- return ch;
- }
- };
- }());
-
- L.MarkerCluster.include({
- getConvexHull: function () {
- var childMarkers = this.getAllChildMarkers(),
- points = [],
- p, i;
-
- for (i = childMarkers.length - 1; i >= 0; i--) {
- p = childMarkers[i].getLatLng();
- points.push(p);
- }
-
- return L.QuickHull.getConvexHull(points);
- }
- });
-
- //This code is 100% based on https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet
- //Huge thanks to jawj for implementing it first to make my job easy :-)
-
- L.MarkerCluster.include({
-
- _2PI: Math.PI * 2,
- _circleFootSeparation: 25, //related to circumference of circle
- _circleStartAngle: 0,
-
- _spiralFootSeparation: 28, //related to size of spiral (experiment!)
- _spiralLengthStart: 11,
- _spiralLengthFactor: 5,
-
- _circleSpiralSwitchover: 9, //show spiral instead of circle from this marker count upwards.
- // 0 -> always spiral; Infinity -> always circle
-
- spiderfy: function () {
- if (this._group._spiderfied === this || this._group._inZoomAnimation) {
- return;
- }
-
- var childMarkers = this.getAllChildMarkers(null, true),
- group = this._group,
- map = group._map,
- center = map.latLngToLayerPoint(this._latlng),
- positions;
-
- this._group._unspiderfy();
- this._group._spiderfied = this;
-
- //TODO Maybe: childMarkers order by distance to center
-
- if (this._group.options.spiderfyShapePositions) {
- positions = this._group.options.spiderfyShapePositions(childMarkers.length, center);
- } else if (childMarkers.length >= this._circleSpiralSwitchover) {
- positions = this._generatePointsSpiral(childMarkers.length, center);
- } else {
- center.y += 10; // Otherwise circles look wrong => hack for standard blue icon, renders differently for other icons.
- positions = this._generatePointsCircle(childMarkers.length, center);
- }
-
- this._animationSpiderfy(childMarkers, positions);
- },
-
- unspiderfy: function (zoomDetails) {
- /// <param Name="zoomDetails">Argument from zoomanim if being called in a zoom animation or null otherwise</param>
- if (this._group._inZoomAnimation) {
- return;
- }
- this._animationUnspiderfy(zoomDetails);
-
- this._group._spiderfied = null;
- },
-
- _generatePointsCircle: function (count, centerPt) {
- var circumference = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + count),
- legLength = circumference / this._2PI, //radius from circumference
- angleStep = this._2PI / count,
- res = [],
- i, angle;
-
- legLength = Math.max(legLength, 35); // Minimum distance to get outside the cluster icon.
-
- res.length = count;
-
- for (i = 0; i < count; i++) { // Clockwise, like spiral.
- angle = this._circleStartAngle + i * angleStep;
- res[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();
- }
-
- return res;
- },
-
- _generatePointsSpiral: function (count, centerPt) {
- var spiderfyDistanceMultiplier = this._group.options.spiderfyDistanceMultiplier,
- legLength = spiderfyDistanceMultiplier * this._spiralLengthStart,
- separation = spiderfyDistanceMultiplier * this._spiralFootSeparation,
- lengthFactor = spiderfyDistanceMultiplier * this._spiralLengthFactor * this._2PI,
- angle = 0,
- res = [],
- i;
-
- res.length = count;
-
- // Higher index, closer position to cluster center.
- for (i = count; i >= 0; i--) {
- // Skip the first position, so that we are already farther from center and we avoid
- // being under the default cluster icon (especially important for Circle Markers).
- if (i < count) {
- res[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();
- }
- angle += separation / legLength + i * 0.0005;
- legLength += lengthFactor / angle;
- }
- return res;
- },
-
- _noanimationUnspiderfy: function () {
- var group = this._group,
- map = group._map,
- fg = group._featureGroup,
- childMarkers = this.getAllChildMarkers(null, true),
- m, i;
-
- group._ignoreMove = true;
-
- this.setOpacity(1);
- for (i = childMarkers.length - 1; i >= 0; i--) {
- m = childMarkers[i];
-
- fg.removeLayer(m);
-
- if (m._preSpiderfyLatlng) {
- m.setLatLng(m._preSpiderfyLatlng);
- delete m._preSpiderfyLatlng;
- }
- if (m.setZIndexOffset) {
- m.setZIndexOffset(0);
- }
-
- if (m._spiderLeg) {
- map.removeLayer(m._spiderLeg);
- delete m._spiderLeg;
- }
- }
-
- group.fire('unspiderfied', {
- cluster: this,
- markers: childMarkers
- });
- group._ignoreMove = false;
- group._spiderfied = null;
- }
- });
-
- //Non Animated versions of everything
- L.MarkerClusterNonAnimated = L.MarkerCluster.extend({
- _animationSpiderfy: function (childMarkers, positions) {
- var group = this._group,
- map = group._map,
- fg = group._featureGroup,
- legOptions = this._group.options.spiderLegPolylineOptions,
- i, m, leg, newPos;
-
- group._ignoreMove = true;
-
- // Traverse in ascending order to make sure that inner circleMarkers are on top of further legs. Normal markers are re-ordered by newPosition.
- // The reverse order trick no longer improves performance on modern browsers.
- for (i = 0; i < childMarkers.length; i++) {
- newPos = map.layerPointToLatLng(positions[i]);
- m = childMarkers[i];
-
- // Add the leg before the marker, so that in case the latter is a circleMarker, the leg is behind it.
- leg = new L.Polyline([this._latlng, newPos], legOptions);
- map.addLayer(leg);
- m._spiderLeg = leg;
-
- // Now add the marker.
- m._preSpiderfyLatlng = m._latlng;
- m.setLatLng(newPos);
- if (m.setZIndexOffset) {
- m.setZIndexOffset(1000000); //Make these appear on top of EVERYTHING
- }
-
- fg.addLayer(m);
- }
- this.setOpacity(0.3);
-
- group._ignoreMove = false;
- group.fire('spiderfied', {
- cluster: this,
- markers: childMarkers
- });
- },
-
- _animationUnspiderfy: function () {
- this._noanimationUnspiderfy();
- }
- });
-
- //Animated versions here
- L.MarkerCluster.include({
-
- _animationSpiderfy: function (childMarkers, positions) {
- var me = this,
- group = this._group,
- map = group._map,
- fg = group._featureGroup,
- thisLayerLatLng = this._latlng,
- thisLayerPos = map.latLngToLayerPoint(thisLayerLatLng),
- svg = L.Path.SVG,
- legOptions = L.extend({}, this._group.options.spiderLegPolylineOptions), // Copy the options so that we can modify them for animation.
- finalLegOpacity = legOptions.opacity,
- i, m, leg, legPath, legLength, newPos;
-
- if (finalLegOpacity === undefined) {
- finalLegOpacity = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity;
- }
-
- if (svg) {
- // If the initial opacity of the spider leg is not 0 then it appears before the animation starts.
- legOptions.opacity = 0;
-
- // Add the class for CSS transitions.
- legOptions.className = (legOptions.className || '') + ' leaflet-cluster-spider-leg';
- } else {
- // Make sure we have a defined opacity.
- legOptions.opacity = finalLegOpacity;
- }
-
- group._ignoreMove = true;
-
- // Add markers and spider legs to map, hidden at our center point.
- // Traverse in ascending order to make sure that inner circleMarkers are on top of further legs. Normal markers are re-ordered by newPosition.
- // The reverse order trick no longer improves performance on modern browsers.
- for (i = 0; i < childMarkers.length; i++) {
- m = childMarkers[i];
-
- newPos = map.layerPointToLatLng(positions[i]);
-
- // Add the leg before the marker, so that in case the latter is a circleMarker, the leg is behind it.
- leg = new L.Polyline([thisLayerLatLng, newPos], legOptions);
- map.addLayer(leg);
- m._spiderLeg = leg;
-
- // Explanations: https://jakearchibald.com/2013/animated-line-drawing-svg/
- // In our case the transition property is declared in the CSS file.
- if (svg) {
- legPath = leg._path;
- legLength = legPath.getTotalLength() + 0.1; // Need a small extra length to avoid remaining dot in Firefox.
- legPath.style.strokeDasharray = legLength; // Just 1 length is enough, it will be duplicated.
- legPath.style.strokeDashoffset = legLength;
- }
-
- // If it is a marker, add it now and we'll animate it out
- if (m.setZIndexOffset) {
- m.setZIndexOffset(1000000); // Make normal markers appear on top of EVERYTHING
- }
- if (m.clusterHide) {
- m.clusterHide();
- }
-
- // Vectors just get immediately added
- fg.addLayer(m);
-
- if (m._setPos) {
- m._setPos(thisLayerPos);
- }
- }
-
- group._forceLayout();
- group._animationStart();
-
- // Reveal markers and spider legs.
- for (i = childMarkers.length - 1; i >= 0; i--) {
- newPos = map.layerPointToLatLng(positions[i]);
- m = childMarkers[i];
-
- //Move marker to new position
- m._preSpiderfyLatlng = m._latlng;
- m.setLatLng(newPos);
-
- if (m.clusterShow) {
- m.clusterShow();
- }
-
- // Animate leg (animation is actually delegated to CSS transition).
- if (svg) {
- leg = m._spiderLeg;
- legPath = leg._path;
- legPath.style.strokeDashoffset = 0;
- //legPath.style.strokeOpacity = finalLegOpacity;
- leg.setStyle({opacity: finalLegOpacity});
- }
- }
- this.setOpacity(0.3);
-
- group._ignoreMove = false;
-
- setTimeout(function () {
- group._animationEnd();
- group.fire('spiderfied', {
- cluster: me,
- markers: childMarkers
- });
- }, 200);
- },
-
- _animationUnspiderfy: function (zoomDetails) {
- var me = this,
- group = this._group,
- map = group._map,
- fg = group._featureGroup,
- thisLayerPos = zoomDetails ? map._latLngToNewLayerPoint(this._latlng, zoomDetails.zoom, zoomDetails.center) : map.latLngToLayerPoint(this._latlng),
- childMarkers = this.getAllChildMarkers(null, true),
- svg = L.Path.SVG,
- m, i, leg, legPath, legLength, nonAnimatable;
-
- group._ignoreMove = true;
- group._animationStart();
-
- //Make us visible and bring the child markers back in
- this.setOpacity(1);
- for (i = childMarkers.length - 1; i >= 0; i--) {
- m = childMarkers[i];
-
- //Marker was added to us after we were spiderfied
- if (!m._preSpiderfyLatlng) {
- continue;
- }
-
- //Close any popup on the marker first, otherwise setting the location of the marker will make the map scroll
- m.closePopup();
-
- //Fix up the location to the real one
- m.setLatLng(m._preSpiderfyLatlng);
- delete m._preSpiderfyLatlng;
-
- //Hack override the location to be our center
- nonAnimatable = true;
- if (m._setPos) {
- m._setPos(thisLayerPos);
- nonAnimatable = false;
- }
- if (m.clusterHide) {
- m.clusterHide();
- nonAnimatable = false;
- }
- if (nonAnimatable) {
- fg.removeLayer(m);
- }
-
- // Animate the spider leg back in (animation is actually delegated to CSS transition).
- if (svg) {
- leg = m._spiderLeg;
- legPath = leg._path;
- legLength = legPath.getTotalLength() + 0.1;
- legPath.style.strokeDashoffset = legLength;
- leg.setStyle({opacity: 0});
- }
- }
-
- group._ignoreMove = false;
-
- setTimeout(function () {
- //If we have only <= one child left then that marker will be shown on the map so don't remove it!
- var stillThereChildCount = 0;
- for (i = childMarkers.length - 1; i >= 0; i--) {
- m = childMarkers[i];
- if (m._spiderLeg) {
- stillThereChildCount++;
- }
- }
-
-
- for (i = childMarkers.length - 1; i >= 0; i--) {
- m = childMarkers[i];
-
- if (!m._spiderLeg) { //Has already been unspiderfied
- continue;
- }
-
- if (m.clusterShow) {
- m.clusterShow();
- }
- if (m.setZIndexOffset) {
- m.setZIndexOffset(0);
- }
-
- if (stillThereChildCount > 1) {
- fg.removeLayer(m);
- }
-
- map.removeLayer(m._spiderLeg);
- delete m._spiderLeg;
- }
- group._animationEnd();
- group.fire('unspiderfied', {
- cluster: me,
- markers: childMarkers
- });
- }, 200);
- }
- });
-
-
- L.MarkerClusterGroup.include({
- //The MarkerCluster currently spiderfied (if any)
- _spiderfied: null,
-
- unspiderfy: function () {
- this._unspiderfy.apply(this, arguments);
- },
-
- _spiderfierOnAdd: function () {
- this._map.on('click', this._unspiderfyWrapper, this);
-
- if (this._map.options.zoomAnimation) {
- this._map.on('zoomstart', this._unspiderfyZoomStart, this);
- }
- //Browsers without zoomAnimation or a big zoom don't fire zoomstart
- this._map.on('zoomend', this._noanimationUnspiderfy, this);
-
- if (!L.Browser.touch) {
- this._map.getRenderer(this);
- //Needs to happen in the pageload, not after, or animations don't work in webkit
- // http://stackoverflow.com/questions/8455200/svg-animate-with-dynamically-added-elements
- //Disable on touch browsers as the animation messes up on a touch zoom and isn't very noticable
- }
- },
-
- _spiderfierOnRemove: function () {
- this._map.off('click', this._unspiderfyWrapper, this);
- this._map.off('zoomstart', this._unspiderfyZoomStart, this);
- this._map.off('zoomanim', this._unspiderfyZoomAnim, this);
- this._map.off('zoomend', this._noanimationUnspiderfy, this);
-
- //Ensure that markers are back where they should be
- // Use no animation to avoid a sticky leaflet-cluster-anim class on mapPane
- this._noanimationUnspiderfy();
- },
-
- //On zoom start we add a zoomanim handler so that we are guaranteed to be last (after markers are animated)
- //This means we can define the animation they do rather than Markers doing an animation to their actual location
- _unspiderfyZoomStart: function () {
- if (!this._map) { //May have been removed from the map by a zoomEnd handler
- return;
- }
-
- this._map.on('zoomanim', this._unspiderfyZoomAnim, this);
- },
-
- _unspiderfyZoomAnim: function (zoomDetails) {
- //Wait until the first zoomanim after the user has finished touch-zooming before running the animation
- if (L.DomUtil.hasClass(this._map._mapPane, 'leaflet-touching')) {
- return;
- }
-
- this._map.off('zoomanim', this._unspiderfyZoomAnim, this);
- this._unspiderfy(zoomDetails);
- },
-
- _unspiderfyWrapper: function () {
- /// <summary>_unspiderfy but passes no arguments</summary>
- this._unspiderfy();
- },
-
- _unspiderfy: function (zoomDetails) {
- if (this._spiderfied) {
- this._spiderfied.unspiderfy(zoomDetails);
- }
- },
-
- _noanimationUnspiderfy: function () {
- if (this._spiderfied) {
- this._spiderfied._noanimationUnspiderfy();
- }
- },
-
- //If the given layer is currently being spiderfied then we unspiderfy it so it isn't on the map anymore etc
- _unspiderfyLayer: function (layer) {
- if (layer._spiderLeg) {
- this._featureGroup.removeLayer(layer);
-
- if (layer.clusterShow) {
- layer.clusterShow();
- }
- //Position will be fixed up immediately in _animationUnspiderfy
- if (layer.setZIndexOffset) {
- layer.setZIndexOffset(0);
- }
-
- this._map.removeLayer(layer._spiderLeg);
- delete layer._spiderLeg;
- }
- }
- });
-
- /**
- * Adds 1 public method to MCG and 1 to L.Marker to facilitate changing
- * markers' icon options and refreshing their icon and their parent clusters
- * accordingly (case where their iconCreateFunction uses data of childMarkers
- * to make up the cluster icon).
- */
-
-
- L.MarkerClusterGroup.include({
- /**
- * Updates the icon of all clusters which are parents of the given marker(s).
- * In singleMarkerMode, also updates the given marker(s) icon.
- * @param layers L.MarkerClusterGroup|L.LayerGroup|Array(L.Marker)|Map(L.Marker)|
- * L.MarkerCluster|L.Marker (optional) list of markers (or single marker) whose parent
- * clusters need to be updated. If not provided, retrieves all child markers of this.
- * @returns {L.MarkerClusterGroup}
- */
- refreshClusters: function (layers) {
- if (!layers) {
- layers = this._topClusterLevel.getAllChildMarkers();
- } else if (layers instanceof L.MarkerClusterGroup) {
- layers = layers._topClusterLevel.getAllChildMarkers();
- } else if (layers instanceof L.LayerGroup) {
- layers = layers._layers;
- } else if (layers instanceof L.MarkerCluster) {
- layers = layers.getAllChildMarkers();
- } else if (layers instanceof L.Marker) {
- layers = [layers];
- } // else: must be an Array(L.Marker)|Map(L.Marker)
- this._flagParentsIconsNeedUpdate(layers);
- this._refreshClustersIcons();
-
- // In case of singleMarkerMode, also re-draw the markers.
- if (this.options.singleMarkerMode) {
- this._refreshSingleMarkerModeMarkers(layers);
- }
-
- return this;
- },
-
- /**
- * Simply flags all parent clusters of the given markers as having a "dirty" icon.
- * @param layers Array(L.Marker)|Map(L.Marker) list of markers.
- * @private
- */
- _flagParentsIconsNeedUpdate: function (layers) {
- var id, parent;
-
- // Assumes layers is an Array or an Object whose prototype is non-enumerable.
- for (id in layers) {
- // Flag parent clusters' icon as "dirty", all the way up.
- // Dumb process that flags multiple times upper parents, but still
- // much more efficient than trying to be smart and make short lists,
- // at least in the case of a hierarchy following a power law:
- // http://jsperf.com/flag-nodes-in-power-hierarchy/2
- parent = layers[id].__parent;
- while (parent) {
- parent._iconNeedsUpdate = true;
- parent = parent.__parent;
- }
- }
- },
-
- /**
- * Re-draws the icon of the supplied markers.
- * To be used in singleMarkerMode only.
- * @param layers Array(L.Marker)|Map(L.Marker) list of markers.
- * @private
- */
- _refreshSingleMarkerModeMarkers: function (layers) {
- var id, layer;
-
- for (id in layers) {
- layer = layers[id];
-
- // Make sure we do not override markers that do not belong to THIS group.
- if (this.hasLayer(layer)) {
- // Need to re-create the icon first, then re-draw the marker.
- layer.setIcon(this._overrideMarkerIcon(layer));
- }
- }
- }
- });
-
- L.Marker.include({
- /**
- * Updates the given options in the marker's icon and refreshes the marker.
- * @param options map object of icon options.
- * @param directlyRefreshClusters boolean (optional) true to trigger
- * MCG.refreshClustersOf() right away with this single marker.
- * @returns {L.Marker}
- */
- refreshIconOptions: function (options, directlyRefreshClusters) {
- var icon = this.options.icon;
-
- L.setOptions(icon, options);
-
- this.setIcon(icon);
-
- // Shortcut to refresh the associated MCG clusters right away.
- // To be used when refreshing a single marker.
- // Otherwise, better use MCG.refreshClusters() once at the end with
- // the list of modified markers.
- if (directlyRefreshClusters && this.__parent) {
- this.__parent._group.refreshClusters(this);
- }
-
- return this;
- }
- });
-
- exports.MarkerClusterGroup = MarkerClusterGroup;
- exports.MarkerCluster = MarkerCluster;
-
- Object.defineProperty(exports, '__esModule', { value: true });
-
-}));
-//# sourceMappingURL=leaflet.markercluster-src.js.map
diff --git a/xcxjingqingmap/lid/proj4.js b/xcxjingqingmap/lid/proj4.js
deleted file mode 100644
index 0fdb880..0000000
--- a/xcxjingqingmap/lid/proj4.js
+++ /dev/null
@@ -1,5485 +0,0 @@
-!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.proj4=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
-var mgrs = _dereq_('mgrs');
-
-function Point(x, y, z) {
- if (!(this instanceof Point)) {
- return new Point(x, y, z);
- }
- if (Array.isArray(x)) {
- this.x = x[0];
- this.y = x[1];
- this.z = x[2] || 0.0;
- } else if(typeof x === 'object') {
- this.x = x.x;
- this.y = x.y;
- this.z = x.z || 0.0;
- } else if (typeof x === 'string' && typeof y === 'undefined') {
- var coords = x.split(',');
- this.x = parseFloat(coords[0], 10);
- this.y = parseFloat(coords[1], 10);
- this.z = parseFloat(coords[2], 10) || 0.0;
- } else {
- this.x = x;
- this.y = y;
- this.z = z || 0.0;
- }
- console.warn('proj4.Point will be removed in version 3, use proj4.toPoint');
-}
-
-Point.fromMGRS = function(mgrsStr) {
- return new Point(mgrs.toPoint(mgrsStr));
-};
-Point.prototype.toMGRS = function(accuracy) {
- return mgrs.forward([this.x, this.y], accuracy);
-};
-module.exports = Point;
-
-},{"mgrs":67}],2:[function(_dereq_,module,exports){
-var parseCode = _dereq_("./parseCode");
-var extend = _dereq_('./extend');
-var projections = _dereq_('./projections');
-var deriveConstants = _dereq_('./deriveConstants');
-
-function Projection(srsCode,callback) {
- if (!(this instanceof Projection)) {
- return new Projection(srsCode);
- }
- callback = callback || function(error){
- if(error){
- throw error;
- }
- };
- var json = parseCode(srsCode);
- if(typeof json !== 'object'){
- callback(srsCode);
- return;
- }
- var modifiedJSON = deriveConstants(json);
- var ourProj = Projection.projections.get(modifiedJSON.projName);
- if(ourProj){
- extend(this, modifiedJSON);
- extend(this, ourProj);
- this.init();
- callback(null, this);
- }else{
- callback(srsCode);
- }
-}
-Projection.projections = projections;
-Projection.projections.start();
-module.exports = Projection;
-
-},{"./deriveConstants":33,"./extend":34,"./parseCode":37,"./projections":39}],3:[function(_dereq_,module,exports){
-module.exports = function(crs, denorm, point) {
- var xin = point.x,
- yin = point.y,
- zin = point.z || 0.0;
- var v, t, i;
- for (i = 0; i < 3; i++) {
- if (denorm && i === 2 && point.z === undefined) {
- continue;
- }
- if (i === 0) {
- v = xin;
- t = 'x';
- }
- else if (i === 1) {
- v = yin;
- t = 'y';
- }
- else {
- v = zin;
- t = 'z';
- }
- switch (crs.axis[i]) {
- case 'e':
- point[t] = v;
- break;
- case 'w':
- point[t] = -v;
- break;
- case 'n':
- point[t] = v;
- break;
- case 's':
- point[t] = -v;
- break;
- case 'u':
- if (point[t] !== undefined) {
- point.z = v;
- }
- break;
- case 'd':
- if (point[t] !== undefined) {
- point.z = -v;
- }
- break;
- default:
- //console.log("ERROR: unknow axis ("+crs.axis[i]+") - check definition of "+crs.projName);
- return null;
- }
- }
- return point;
-};
-
-},{}],4:[function(_dereq_,module,exports){
-var HALF_PI = Math.PI/2;
-var sign = _dereq_('./sign');
-
-module.exports = function(x) {
- return (Math.abs(x) < HALF_PI) ? x : (x - (sign(x) * Math.PI));
-};
-},{"./sign":21}],5:[function(_dereq_,module,exports){
-var TWO_PI = Math.PI * 2;
-// SPI is slightly greater than Math.PI, so values that exceed the -180..180
-// degree range by a tiny amount don't get wrapped. This prevents points that
-// have drifted from their original location along the 180th meridian (due to
-// floating point error) from changing their sign.
-var SPI = 3.14159265359;
-var sign = _dereq_('./sign');
-
-module.exports = function(x) {
- return (Math.abs(x) <= SPI) ? x : (x - (sign(x) * TWO_PI));
-};
-},{"./sign":21}],6:[function(_dereq_,module,exports){
-module.exports = function(x) {
- if (Math.abs(x) > 1) {
- x = (x > 1) ? 1 : -1;
- }
- return Math.asin(x);
-};
-},{}],7:[function(_dereq_,module,exports){
-module.exports = function(x) {
- return (1 - 0.25 * x * (1 + x / 16 * (3 + 1.25 * x)));
-};
-},{}],8:[function(_dereq_,module,exports){
-module.exports = function(x) {
- return (0.375 * x * (1 + 0.25 * x * (1 + 0.46875 * x)));
-};
-},{}],9:[function(_dereq_,module,exports){
-module.exports = function(x) {
- return (0.05859375 * x * x * (1 + 0.75 * x));
-};
-},{}],10:[function(_dereq_,module,exports){
-module.exports = function(x) {
- return (x * x * x * (35 / 3072));
-};
-},{}],11:[function(_dereq_,module,exports){
-module.exports = function(a, e, sinphi) {
- var temp = e * sinphi;
- return a / Math.sqrt(1 - temp * temp);
-};
-},{}],12:[function(_dereq_,module,exports){
-module.exports = function(ml, e0, e1, e2, e3) {
- var phi;
- var dphi;
-
- phi = ml / e0;
- for (var i = 0; i < 15; i++) {
- dphi = (ml - (e0 * phi - e1 * Math.sin(2 * phi) + e2 * Math.sin(4 * phi) - e3 * Math.sin(6 * phi))) / (e0 - 2 * e1 * Math.cos(2 * phi) + 4 * e2 * Math.cos(4 * phi) - 6 * e3 * Math.cos(6 * phi));
- phi += dphi;
- if (Math.abs(dphi) <= 0.0000000001) {
- return phi;
- }
- }
-
- //..reportError("IMLFN-CONV:Latitude failed to converge after 15 iterations");
- return NaN;
-};
-},{}],13:[function(_dereq_,module,exports){
-var HALF_PI = Math.PI/2;
-
-module.exports = function(eccent, q) {
- var temp = 1 - (1 - eccent * eccent) / (2 * eccent) * Math.log((1 - eccent) / (1 + eccent));
- if (Math.abs(Math.abs(q) - temp) < 1.0E-6) {
- if (q < 0) {
- return (-1 * HALF_PI);
- }
- else {
- return HALF_PI;
- }
- }
- //var phi = 0.5* q/(1-eccent*eccent);
- var phi = Math.asin(0.5 * q);
- var dphi;
- var sin_phi;
- var cos_phi;
- var con;
- for (var i = 0; i < 30; i++) {
- sin_phi = Math.sin(phi);
- cos_phi = Math.cos(phi);
- con = eccent * sin_phi;
- dphi = Math.pow(1 - con * con, 2) / (2 * cos_phi) * (q / (1 - eccent * eccent) - sin_phi / (1 - con * con) + 0.5 / eccent * Math.log((1 - con) / (1 + con)));
- phi += dphi;
- if (Math.abs(dphi) <= 0.0000000001) {
- return phi;
- }
- }
-
- //console.log("IQSFN-CONV:Latitude failed to converge after 30 iterations");
- return NaN;
-};
-},{}],14:[function(_dereq_,module,exports){
-module.exports = function(e0, e1, e2, e3, phi) {
- return (e0 * phi - e1 * Math.sin(2 * phi) + e2 * Math.sin(4 * phi) - e3 * Math.sin(6 * phi));
-};
-},{}],15:[function(_dereq_,module,exports){
-module.exports = function(eccent, sinphi, cosphi) {
- var con = eccent * sinphi;
- return cosphi / (Math.sqrt(1 - con * con));
-};
-},{}],16:[function(_dereq_,module,exports){
-var HALF_PI = Math.PI/2;
-module.exports = function(eccent, ts) {
- var eccnth = 0.5 * eccent;
- var con, dphi;
- var phi = HALF_PI - 2 * Math.atan(ts);
- for (var i = 0; i <= 15; i++) {
- con = eccent * Math.sin(phi);
- dphi = HALF_PI - 2 * Math.atan(ts * (Math.pow(((1 - con) / (1 + con)), eccnth))) - phi;
- phi += dphi;
- if (Math.abs(dphi) <= 0.0000000001) {
- return phi;
- }
- }
- //console.log("phi2z has NoConvergence");
- return -9999;
-};
-},{}],17:[function(_dereq_,module,exports){
-var C00 = 1;
-var C02 = 0.25;
-var C04 = 0.046875;
-var C06 = 0.01953125;
-var C08 = 0.01068115234375;
-var C22 = 0.75;
-var C44 = 0.46875;
-var C46 = 0.01302083333333333333;
-var C48 = 0.00712076822916666666;
-var C66 = 0.36458333333333333333;
-var C68 = 0.00569661458333333333;
-var C88 = 0.3076171875;
-
-module.exports = function(es) {
- var en = [];
- en[0] = C00 - es * (C02 + es * (C04 + es * (C06 + es * C08)));
- en[1] = es * (C22 - es * (C04 + es * (C06 + es * C08)));
- var t = es * es;
- en[2] = t * (C44 - es * (C46 + es * C48));
- t *= es;
- en[3] = t * (C66 - es * C68);
- en[4] = t * es * C88;
- return en;
-};
-},{}],18:[function(_dereq_,module,exports){
-var pj_mlfn = _dereq_("./pj_mlfn");
-var EPSLN = 1.0e-10;
-var MAX_ITER = 20;
-module.exports = function(arg, es, en) {
- var k = 1 / (1 - es);
- var phi = arg;
- for (var i = MAX_ITER; i; --i) { /* rarely goes over 2 iterations */
- var s = Math.sin(phi);
- var t = 1 - es * s * s;
- //t = this.pj_mlfn(phi, s, Math.cos(phi), en) - arg;
- //phi -= t * (t * Math.sqrt(t)) * k;
- t = (pj_mlfn(phi, s, Math.cos(phi), en) - arg) * (t * Math.sqrt(t)) * k;
- phi -= t;
- if (Math.abs(t) < EPSLN) {
- return phi;
- }
- }
- //..reportError("cass:pj_inv_mlfn: Convergence error");
- return phi;
-};
-},{"./pj_mlfn":19}],19:[function(_dereq_,module,exports){
-module.exports = function(phi, sphi, cphi, en) {
- cphi *= sphi;
- sphi *= sphi;
- return (en[0] * phi - cphi * (en[1] + sphi * (en[2] + sphi * (en[3] + sphi * en[4]))));
-};
-},{}],20:[function(_dereq_,module,exports){
-module.exports = function(eccent, sinphi) {
- var con;
- if (eccent > 1.0e-7) {
- con = eccent * sinphi;
- return ((1 - eccent * eccent) * (sinphi / (1 - con * con) - (0.5 / eccent) * Math.log((1 - con) / (1 + con))));
- }
- else {
- return (2 * sinphi);
- }
-};
-},{}],21:[function(_dereq_,module,exports){
-module.exports = function(x) {
- return x<0 ? -1 : 1;
-};
-},{}],22:[function(_dereq_,module,exports){
-module.exports = function(esinp, exp) {
- return (Math.pow((1 - esinp) / (1 + esinp), exp));
-};
-},{}],23:[function(_dereq_,module,exports){
-module.exports = function (array){
- var out = {
- x: array[0],
- y: array[1]
- };
- if (array.length>2) {
- out.z = array[2];
- }
- if (array.length>3) {
- out.m = array[3];
- }
- return out;
-};
-},{}],24:[function(_dereq_,module,exports){
-var HALF_PI = Math.PI/2;
-
-module.exports = function(eccent, phi, sinphi) {
- var con = eccent * sinphi;
- var com = 0.5 * eccent;
- con = Math.pow(((1 - con) / (1 + con)), com);
- return (Math.tan(0.5 * (HALF_PI - phi)) / con);
-};
-},{}],25:[function(_dereq_,module,exports){
-exports.wgs84 = {
- towgs84: "0,0,0",
- ellipse: "WGS84",
- datumName: "WGS84"
-};
-exports.ch1903 = {
- towgs84: "674.374,15.056,405.346",
- ellipse: "bessel",
- datumName: "swiss"
-};
-exports.ggrs87 = {
- towgs84: "-199.87,74.79,246.62",
- ellipse: "GRS80",
- datumName: "Greek_Geodetic_Reference_System_1987"
-};
-exports.nad83 = {
- towgs84: "0,0,0",
- ellipse: "GRS80",
- datumName: "North_American_Datum_1983"
-};
-exports.nad27 = {
- nadgrids: "@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",
- ellipse: "clrk66",
- datumName: "North_American_Datum_1927"
-};
-exports.potsdam = {
- towgs84: "606.0,23.0,413.0",
- ellipse: "bessel",
- datumName: "Potsdam Rauenberg 1950 DHDN"
-};
-exports.carthage = {
- towgs84: "-263.0,6.0,431.0",
- ellipse: "clark80",
- datumName: "Carthage 1934 Tunisia"
-};
-exports.hermannskogel = {
- towgs84: "653.0,-212.0,449.0",
- ellipse: "bessel",
- datumName: "Hermannskogel"
-};
-exports.ire65 = {
- towgs84: "482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",
- ellipse: "mod_airy",
- datumName: "Ireland 1965"
-};
-exports.rassadiran = {
- towgs84: "-133.63,-157.5,-158.62",
- ellipse: "intl",
- datumName: "Rassadiran"
-};
-exports.nzgd49 = {
- towgs84: "59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",
- ellipse: "intl",
- datumName: "New Zealand Geodetic Datum 1949"
-};
-exports.osgb36 = {
- towgs84: "446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",
- ellipse: "airy",
- datumName: "Airy 1830"
-};
-exports.s_jtsk = {
- towgs84: "589,76,480",
- ellipse: 'bessel',
- datumName: 'S-JTSK (Ferro)'
-};
-exports.beduaram = {
- towgs84: '-106,-87,188',
- ellipse: 'clrk80',
- datumName: 'Beduaram'
-};
-exports.gunung_segara = {
- towgs84: '-403,684,41',
- ellipse: 'bessel',
- datumName: 'Gunung Segara Jakarta'
-};
-exports.rnb72 = {
- towgs84: "106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",
- ellipse: "intl",
- datumName: "Reseau National Belge 1972"
-};
-},{}],26:[function(_dereq_,module,exports){
-exports.MERIT = {
- a: 6378137.0,
- rf: 298.257,
- ellipseName: "MERIT 1983"
-};
-exports.SGS85 = {
- a: 6378136.0,
- rf: 298.257,
- ellipseName: "Soviet Geodetic System 85"
-};
-exports.GRS80 = {
- a: 6378137.0,
- rf: 298.257222101,
- ellipseName: "GRS 1980(IUGG, 1980)"
-};
-exports.IAU76 = {
- a: 6378140.0,
- rf: 298.257,
- ellipseName: "IAU 1976"
-};
-exports.airy = {
- a: 6377563.396,
- b: 6356256.910,
- ellipseName: "Airy 1830"
-};
-exports.APL4 = {
- a: 6378137,
- rf: 298.25,
- ellipseName: "Appl. Physics. 1965"
-};
-exports.NWL9D = {
- a: 6378145.0,
- rf: 298.25,
- ellipseName: "Naval Weapons Lab., 1965"
-};
-exports.mod_airy = {
- a: 6377340.189,
- b: 6356034.446,
- ellipseName: "Modified Airy"
-};
-exports.andrae = {
- a: 6377104.43,
- rf: 300.0,
- ellipseName: "Andrae 1876 (Den., Iclnd.)"
-};
-exports.aust_SA = {
- a: 6378160.0,
- rf: 298.25,
- ellipseName: "Australian Natl & S. Amer. 1969"
-};
-exports.GRS67 = {
- a: 6378160.0,
- rf: 298.2471674270,
- ellipseName: "GRS 67(IUGG 1967)"
-};
-exports.bessel = {
- a: 6377397.155,
- rf: 299.1528128,
- ellipseName: "Bessel 1841"
-};
-exports.bess_nam = {
- a: 6377483.865,
- rf: 299.1528128,
- ellipseName: "Bessel 1841 (Namibia)"
-};
-exports.clrk66 = {
- a: 6378206.4,
- b: 6356583.8,
- ellipseName: "Clarke 1866"
-};
-exports.clrk80 = {
- a: 6378249.145,
- rf: 293.4663,
- ellipseName: "Clarke 1880 mod."
-};
-exports.clrk58 = {
- a: 6378293.645208759,
- rf: 294.2606763692654,
- ellipseName: "Clarke 1858"
-};
-exports.CPM = {
- a: 6375738.7,
- rf: 334.29,
- ellipseName: "Comm. des Poids et Mesures 1799"
-};
-exports.delmbr = {
- a: 6376428.0,
- rf: 311.5,
- ellipseName: "Delambre 1810 (Belgium)"
-};
-exports.engelis = {
- a: 6378136.05,
- rf: 298.2566,
- ellipseName: "Engelis 1985"
-};
-exports.evrst30 = {
- a: 6377276.345,
- rf: 300.8017,
- ellipseName: "Everest 1830"
-};
-exports.evrst48 = {
- a: 6377304.063,
- rf: 300.8017,
- ellipseName: "Everest 1948"
-};
-exports.evrst56 = {
- a: 6377301.243,
- rf: 300.8017,
- ellipseName: "Everest 1956"
-};
-exports.evrst69 = {
- a: 6377295.664,
- rf: 300.8017,
- ellipseName: "Everest 1969"
-};
-exports.evrstSS = {
- a: 6377298.556,
- rf: 300.8017,
- ellipseName: "Everest (Sabah & Sarawak)"
-};
-exports.fschr60 = {
- a: 6378166.0,
- rf: 298.3,
- ellipseName: "Fischer (Mercury Datum) 1960"
-};
-exports.fschr60m = {
- a: 6378155.0,
- rf: 298.3,
- ellipseName: "Fischer 1960"
-};
-exports.fschr68 = {
- a: 6378150.0,
- rf: 298.3,
- ellipseName: "Fischer 1968"
-};
-exports.helmert = {
- a: 6378200.0,
- rf: 298.3,
- ellipseName: "Helmert 1906"
-};
-exports.hough = {
- a: 6378270.0,
- rf: 297.0,
- ellipseName: "Hough"
-};
-exports.intl = {
- a: 6378388.0,
- rf: 297.0,
- ellipseName: "International 1909 (Hayford)"
-};
-exports.kaula = {
- a: 6378163.0,
- rf: 298.24,
- ellipseName: "Kaula 1961"
-};
-exports.lerch = {
- a: 6378139.0,
- rf: 298.257,
- ellipseName: "Lerch 1979"
-};
-exports.mprts = {
- a: 6397300.0,
- rf: 191.0,
- ellipseName: "Maupertius 1738"
-};
-exports.new_intl = {
- a: 6378157.5,
- b: 6356772.2,
- ellipseName: "New International 1967"
-};
-exports.plessis = {
- a: 6376523.0,
- rf: 6355863.0,
- ellipseName: "Plessis 1817 (France)"
-};
-exports.krass = {
- a: 6378245.0,
- rf: 298.3,
- ellipseName: "Krassovsky, 1942"
-};
-exports.SEasia = {
- a: 6378155.0,
- b: 6356773.3205,
- ellipseName: "Southeast Asia"
-};
-exports.walbeck = {
- a: 6376896.0,
- b: 6355834.8467,
- ellipseName: "Walbeck"
-};
-exports.WGS60 = {
- a: 6378165.0,
- rf: 298.3,
- ellipseName: "WGS 60"
-};
-exports.WGS66 = {
- a: 6378145.0,
- rf: 298.25,
- ellipseName: "WGS 66"
-};
-exports.WGS7 = {
- a: 6378135.0,
- rf: 298.26,
- ellipseName: "WGS 72"
-};
-exports.WGS84 = {
- a: 6378137.0,
- rf: 298.257223563,
- ellipseName: "WGS 84"
-};
-exports.sphere = {
- a: 6370997.0,
- b: 6370997.0,
- ellipseName: "Normal Sphere (r=6370997)"
-};
-},{}],27:[function(_dereq_,module,exports){
-exports.greenwich = 0.0; //"0dE",
-exports.lisbon = -9.131906111111; //"9d07'54.862\"W",
-exports.paris = 2.337229166667; //"2d20'14.025\"E",
-exports.bogota = -74.080916666667; //"74d04'51.3\"W",
-exports.madrid = -3.687938888889; //"3d41'16.58\"W",
-exports.rome = 12.452333333333; //"12d27'8.4\"E",
-exports.bern = 7.439583333333; //"7d26'22.5\"E",
-exports.jakarta = 106.807719444444; //"106d48'27.79\"E",
-exports.ferro = -17.666666666667; //"17d40'W",
-exports.brussels = 4.367975; //"4d22'4.71\"E",
-exports.stockholm = 18.058277777778; //"18d3'29.8\"E",
-exports.athens = 23.7163375; //"23d42'58.815\"E",
-exports.oslo = 10.722916666667; //"10d43'22.5\"E"
-},{}],28:[function(_dereq_,module,exports){
-exports.ft = {to_meter: 0.3048};
-exports['us-ft'] = {to_meter: 1200 / 3937};
-
-},{}],29:[function(_dereq_,module,exports){
-var proj = _dereq_('./Proj');
-var transform = _dereq_('./transform');
-var wgs84 = proj('WGS84');
-
-function transformer(from, to, coords) {
- var transformedArray;
- if (Array.isArray(coords)) {
- transformedArray = transform(from, to, coords);
- if (coords.length === 3) {
- return [transformedArray.x, transformedArray.y, transformedArray.z];
- }
- else {
- return [transformedArray.x, transformedArray.y];
- }
- }
- else {
- return transform(from, to, coords);
- }
-}
-
-function checkProj(item) {
- if (item instanceof proj) {
- return item;
- }
- if (item.oProj) {
- return item.oProj;
- }
- return proj(item);
-}
-function proj4(fromProj, toProj, coord) {
- fromProj = checkProj(fromProj);
- var single = false;
- var obj;
- if (typeof toProj === 'undefined') {
- toProj = fromProj;
- fromProj = wgs84;
- single = true;
- }
- else if (typeof toProj.x !== 'undefined' || Array.isArray(toProj)) {
- coord = toProj;
- toProj = fromProj;
- fromProj = wgs84;
- single = true;
- }
- toProj = checkProj(toProj);
- if (coord) {
- return transformer(fromProj, toProj, coord);
- }
- else {
- obj = {
- forward: function(coords) {
- return transformer(fromProj, toProj, coords);
- },
- inverse: function(coords) {
- return transformer(toProj, fromProj, coords);
- }
- };
- if (single) {
- obj.oProj = toProj;
- }
- return obj;
- }
-}
-module.exports = proj4;
-},{"./Proj":2,"./transform":65}],30:[function(_dereq_,module,exports){
-var HALF_PI = Math.PI/2;
-var PJD_3PARAM = 1;
-var PJD_7PARAM = 2;
-var PJD_GRIDSHIFT = 3;
-var PJD_WGS84 = 4; // WGS84 or equivalent
-var PJD_NODATUM = 5; // WGS84 or equivalent
-var SEC_TO_RAD = 4.84813681109535993589914102357e-6;
-var AD_C = 1.0026000;
-var COS_67P5 = 0.38268343236508977;
-var datum = function(proj) {
- if (!(this instanceof datum)) {
- return new datum(proj);
- }
- this.datum_type = PJD_WGS84; //default setting
- if (!proj) {
- return;
- }
- if (proj.datumCode && proj.datumCode === 'none') {
- this.datum_type = PJD_NODATUM;
- }
-
- if (proj.datum_params) {
- this.datum_params = proj.datum_params.map(parseFloat);
- if (this.datum_params[0] !== 0 || this.datum_params[1] !== 0 || this.datum_params[2] !== 0) {
- this.datum_type = PJD_3PARAM;
- }
- if (this.datum_params.length > 3) {
- if (this.datum_params[3] !== 0 || this.datum_params[4] !== 0 || this.datum_params[5] !== 0 || this.datum_params[6] !== 0) {
- this.datum_type = PJD_7PARAM;
- this.datum_params[3] *= SEC_TO_RAD;
- this.datum_params[4] *= SEC_TO_RAD;
- this.datum_params[5] *= SEC_TO_RAD;
- this.datum_params[6] = (this.datum_params[6] / 1000000.0) + 1.0;
- }
- }
- }
-
- // DGR 2011-03-21 : nadgrids support
- this.datum_type = proj.grids ? PJD_GRIDSHIFT : this.datum_type;
-
- this.a = proj.a; //datum object also uses these values
- this.b = proj.b;
- this.es = proj.es;
- this.ep2 = proj.ep2;
- if (this.datum_type === PJD_GRIDSHIFT) {
- this.grids = proj.grids;
- }
-};
-datum.prototype = {
-
-
- /****************************************************************/
- // cs_compare_datums()
- // Returns TRUE if the two datums match, otherwise FALSE.
- compare_datums: function(dest) {
- if (this.datum_type !== dest.datum_type) {
- return false; // false, datums are not equal
- }
- else if (this.a !== dest.a || Math.abs(this.es - dest.es) > 0.000000000050) {
- // the tolerence for es is to ensure that GRS80 and WGS84
- // are considered identical
- return false;
- }
- else if (this.datum_type === PJD_3PARAM) {
- return (this.datum_params[0] === dest.datum_params[0] && this.datum_params[1] === dest.datum_params[1] && this.datum_params[2] === dest.datum_params[2]);
- }
- else if (this.datum_type === PJD_7PARAM) {
- return (this.datum_params[0] === dest.datum_params[0] && this.datum_params[1] === dest.datum_params[1] && this.datum_params[2] === dest.datum_params[2] && this.datum_params[3] === dest.datum_params[3] && this.datum_params[4] === dest.datum_params[4] && this.datum_params[5] === dest.datum_params[5] && this.datum_params[6] === dest.datum_params[6]);
- }
- else if (this.datum_type === PJD_GRIDSHIFT || dest.datum_type === PJD_GRIDSHIFT) {
- //alert("ERROR: Grid shift transformations are not implemented.");
- //return false
- //DGR 2012-07-29 lazy ...
- return this.nadgrids === dest.nadgrids;
- }
- else {
- return true; // datums are equal
- }
- }, // cs_compare_datums()
-
- /*
- * The function Convert_Geodetic_To_Geocentric converts geodetic coordinates
- * (latitude, longitude, and height) to geocentric coordinates (X, Y, Z),
- * according to the current ellipsoid parameters.
- *
- * Latitude : Geodetic latitude in radians (input)
- * Longitude : Geodetic longitude in radians (input)
- * Height : Geodetic height, in meters (input)
- * X : Calculated Geocentric X coordinate, in meters (output)
- * Y : Calculated Geocentric Y coordinate, in meters (output)
- * Z : Calculated Geocentric Z coordinate, in meters (output)
- *
- */
- geodetic_to_geocentric: function(p) {
- var Longitude = p.x;
- var Latitude = p.y;
- var Height = p.z ? p.z : 0; //Z value not always supplied
- var X; // output
- var Y;
- var Z;
-
- var Error_Code = 0; // GEOCENT_NO_ERROR;
- var Rn; /* Earth radius at location */
- var Sin_Lat; /* Math.sin(Latitude) */
- var Sin2_Lat; /* Square of Math.sin(Latitude) */
- var Cos_Lat; /* Math.cos(Latitude) */
-
- /*
- ** Don't blow up if Latitude is just a little out of the value
- ** range as it may just be a rounding issue. Also removed longitude
- ** test, it should be wrapped by Math.cos() and Math.sin(). NFW for PROJ.4, Sep/2001.
- */
- if (Latitude < -HALF_PI && Latitude > -1.001 * HALF_PI) {
- Latitude = -HALF_PI;
- }
- else if (Latitude > HALF_PI && Latitude < 1.001 * HALF_PI) {
- Latitude = HALF_PI;
- }
- else if ((Latitude < -HALF_PI) || (Latitude > HALF_PI)) {
- /* Latitude out of range */
- //..reportError('geocent:lat out of range:' + Latitude);
- return null;
- }
-
- if (Longitude > Math.PI) {
- Longitude -= (2 * Math.PI);
- }
- Sin_Lat = Math.sin(Latitude);
- Cos_Lat = Math.cos(Latitude);
- Sin2_Lat = Sin_Lat * Sin_Lat;
- Rn = this.a / (Math.sqrt(1.0e0 - this.es * Sin2_Lat));
- X = (Rn + Height) * Cos_Lat * Math.cos(Longitude);
- Y = (Rn + Height) * Cos_Lat * Math.sin(Longitude);
- Z = ((Rn * (1 - this.es)) + Height) * Sin_Lat;
-
- p.x = X;
- p.y = Y;
- p.z = Z;
- return Error_Code;
- }, // cs_geodetic_to_geocentric()
-
-
- geocentric_to_geodetic: function(p) {
- /* local defintions and variables */
- /* end-criterium of loop, accuracy of sin(Latitude) */
- var genau = 1e-12;
- var genau2 = (genau * genau);
- var maxiter = 30;
-
- var P; /* distance between semi-minor axis and location */
- var RR; /* distance between center and location */
- var CT; /* sin of geocentric latitude */
- var ST; /* cos of geocentric latitude */
- var RX;
- var RK;
- var RN; /* Earth radius at location */
- var CPHI0; /* cos of start or old geodetic latitude in iterations */
- var SPHI0; /* sin of start or old geodetic latitude in iterations */
- var CPHI; /* cos of searched geodetic latitude */
- var SPHI; /* sin of searched geodetic latitude */
- var SDPHI; /* end-criterium: addition-theorem of sin(Latitude(iter)-Latitude(iter-1)) */
- var At_Pole; /* indicates location is in polar region */
- var iter; /* # of continous iteration, max. 30 is always enough (s.a.) */
-
- var X = p.x;
- var Y = p.y;
- var Z = p.z ? p.z : 0.0; //Z value not always supplied
- var Longitude;
- var Latitude;
- var Height;
-
- At_Pole = false;
- P = Math.sqrt(X * X + Y * Y);
- RR = Math.sqrt(X * X + Y * Y + Z * Z);
-
- /* special cases for latitude and longitude */
- if (P / this.a < genau) {
-
- /* special case, if P=0. (X=0., Y=0.) */
- At_Pole = true;
- Longitude = 0.0;
-
- /* if (X,Y,Z)=(0.,0.,0.) then Height becomes semi-minor axis
- * of ellipsoid (=center of mass), Latitude becomes PI/2 */
- if (RR / this.a < genau) {
- Latitude = HALF_PI;
- Height = -this.b;
- return;
- }
- }
- else {
- /* ellipsoidal (geodetic) longitude
- * interval: -PI < Longitude <= +PI */
- Longitude = Math.atan2(Y, X);
- }
-
- /* --------------------------------------------------------------
- * Following iterative algorithm was developped by
- * "Institut for Erdmessung", University of Hannover, July 1988.
- * Internet: www.ife.uni-hannover.de
- * Iterative computation of CPHI,SPHI and Height.
- * Iteration of CPHI and SPHI to 10**-12 radian resp.
- * 2*10**-7 arcsec.
- * --------------------------------------------------------------
- */
- CT = Z / RR;
- ST = P / RR;
- RX = 1.0 / Math.sqrt(1.0 - this.es * (2.0 - this.es) * ST * ST);
- CPHI0 = ST * (1.0 - this.es) * RX;
- SPHI0 = CT * RX;
- iter = 0;
-
- /* loop to find sin(Latitude) resp. Latitude
- * until |sin(Latitude(iter)-Latitude(iter-1))| < genau */
- do {
- iter++;
- RN = this.a / Math.sqrt(1.0 - this.es * SPHI0 * SPHI0);
-
- /* ellipsoidal (geodetic) height */
- Height = P * CPHI0 + Z * SPHI0 - RN * (1.0 - this.es * SPHI0 * SPHI0);
-
- RK = this.es * RN / (RN + Height);
- RX = 1.0 / Math.sqrt(1.0 - RK * (2.0 - RK) * ST * ST);
- CPHI = ST * (1.0 - RK) * RX;
- SPHI = CT * RX;
- SDPHI = SPHI * CPHI0 - CPHI * SPHI0;
- CPHI0 = CPHI;
- SPHI0 = SPHI;
- }
- while (SDPHI * SDPHI > genau2 && iter < maxiter);
-
- /* ellipsoidal (geodetic) latitude */
- Latitude = Math.atan(SPHI / Math.abs(CPHI));
-
- p.x = Longitude;
- p.y = Latitude;
- p.z = Height;
- return p;
- }, // cs_geocentric_to_geodetic()
-
- /** Convert_Geocentric_To_Geodetic
- * The method used here is derived from 'An Improved Algorithm for
- * Geocentric to Geodetic Coordinate Conversion', by Ralph Toms, Feb 1996
- */
- geocentric_to_geodetic_noniter: function(p) {
- var X = p.x;
- var Y = p.y;
- var Z = p.z ? p.z : 0; //Z value not always supplied
- var Longitude;
- var Latitude;
- var Height;
-
- var W; /* distance from Z axis */
- var W2; /* square of distance from Z axis */
- var T0; /* initial estimate of vertical component */
- var T1; /* corrected estimate of vertical component */
- var S0; /* initial estimate of horizontal component */
- var S1; /* corrected estimate of horizontal component */
- var Sin_B0; /* Math.sin(B0), B0 is estimate of Bowring aux variable */
- var Sin3_B0; /* cube of Math.sin(B0) */
- var Cos_B0; /* Math.cos(B0) */
- var Sin_p1; /* Math.sin(phi1), phi1 is estimated latitude */
- var Cos_p1; /* Math.cos(phi1) */
- var Rn; /* Earth radius at location */
- var Sum; /* numerator of Math.cos(phi1) */
- var At_Pole; /* indicates location is in polar region */
-
- X = parseFloat(X); // cast from string to float
- Y = parseFloat(Y);
- Z = parseFloat(Z);
-
- At_Pole = false;
- if (X !== 0.0) {
- Longitude = Math.atan2(Y, X);
- }
- else {
- if (Y > 0) {
- Longitude = HALF_PI;
- }
- else if (Y < 0) {
- Longitude = -HALF_PI;
- }
- else {
- At_Pole = true;
- Longitude = 0.0;
- if (Z > 0.0) { /* north pole */
- Latitude = HALF_PI;
- }
- else if (Z < 0.0) { /* south pole */
- Latitude = -HALF_PI;
- }
- else { /* center of earth */
- Latitude = HALF_PI;
- Height = -this.b;
- return;
- }
- }
- }
- W2 = X * X + Y * Y;
- W = Math.sqrt(W2);
- T0 = Z * AD_C;
- S0 = Math.sqrt(T0 * T0 + W2);
- Sin_B0 = T0 / S0;
- Cos_B0 = W / S0;
- Sin3_B0 = Sin_B0 * Sin_B0 * Sin_B0;
- T1 = Z + this.b * this.ep2 * Sin3_B0;
- Sum = W - this.a * this.es * Cos_B0 * Cos_B0 * Cos_B0;
- S1 = Math.sqrt(T1 * T1 + Sum * Sum);
- Sin_p1 = T1 / S1;
- Cos_p1 = Sum / S1;
- Rn = this.a / Math.sqrt(1.0 - this.es * Sin_p1 * Sin_p1);
- if (Cos_p1 >= COS_67P5) {
- Height = W / Cos_p1 - Rn;
- }
- else if (Cos_p1 <= -COS_67P5) {
- Height = W / -Cos_p1 - Rn;
- }
- else {
- Height = Z / Sin_p1 + Rn * (this.es - 1.0);
- }
- if (At_Pole === false) {
- Latitude = Math.atan(Sin_p1 / Cos_p1);
- }
-
- p.x = Longitude;
- p.y = Latitude;
- p.z = Height;
- return p;
- }, // geocentric_to_geodetic_noniter()
-
- /****************************************************************/
- // pj_geocentic_to_wgs84( p )
- // p = point to transform in geocentric coordinates (x,y,z)
- geocentric_to_wgs84: function(p) {
-
- if (this.datum_type === PJD_3PARAM) {
- // if( x[io] === HUGE_VAL )
- // continue;
- p.x += this.datum_params[0];
- p.y += this.datum_params[1];
- p.z += this.datum_params[2];
-
- }
- else if (this.datum_type === PJD_7PARAM) {
- var Dx_BF = this.datum_params[0];
- var Dy_BF = this.datum_params[1];
- var Dz_BF = this.datum_params[2];
- var Rx_BF = this.datum_params[3];
- var Ry_BF = this.datum_params[4];
- var Rz_BF = this.datum_params[5];
- var M_BF = this.datum_params[6];
- // if( x[io] === HUGE_VAL )
- // continue;
- var x_out = M_BF * (p.x - Rz_BF * p.y + Ry_BF * p.z) + Dx_BF;
- var y_out = M_BF * (Rz_BF * p.x + p.y - Rx_BF * p.z) + Dy_BF;
- var z_out = M_BF * (-Ry_BF * p.x + Rx_BF * p.y + p.z) + Dz_BF;
- p.x = x_out;
- p.y = y_out;
- p.z = z_out;
- }
- }, // cs_geocentric_to_wgs84
-
- /****************************************************************/
- // pj_geocentic_from_wgs84()
- // coordinate system definition,
- // point to transform in geocentric coordinates (x,y,z)
- geocentric_from_wgs84: function(p) {
-
- if (this.datum_type === PJD_3PARAM) {
- //if( x[io] === HUGE_VAL )
- // continue;
- p.x -= this.datum_params[0];
- p.y -= this.datum_params[1];
- p.z -= this.datum_params[2];
-
- }
- else if (this.datum_type === PJD_7PARAM) {
- var Dx_BF = this.datum_params[0];
- var Dy_BF = this.datum_params[1];
- var Dz_BF = this.datum_params[2];
- var Rx_BF = this.datum_params[3];
- var Ry_BF = this.datum_params[4];
- var Rz_BF = this.datum_params[5];
- var M_BF = this.datum_params[6];
- var x_tmp = (p.x - Dx_BF) / M_BF;
- var y_tmp = (p.y - Dy_BF) / M_BF;
- var z_tmp = (p.z - Dz_BF) / M_BF;
- //if( x[io] === HUGE_VAL )
- // continue;
-
- p.x = x_tmp + Rz_BF * y_tmp - Ry_BF * z_tmp;
- p.y = -Rz_BF * x_tmp + y_tmp + Rx_BF * z_tmp;
- p.z = Ry_BF * x_tmp - Rx_BF * y_tmp + z_tmp;
- } //cs_geocentric_from_wgs84()
- }
-};
-
-/** point object, nothing fancy, just allows values to be
- passed back and forth by reference rather than by value.
- Other point classes may be used as long as they have
- x and y properties, which will get modified in the transform method.
-*/
-module.exports = datum;
-
-},{}],31:[function(_dereq_,module,exports){
-var PJD_3PARAM = 1;
-var PJD_7PARAM = 2;
-var PJD_GRIDSHIFT = 3;
-var PJD_NODATUM = 5; // WGS84 or equivalent
-var SRS_WGS84_SEMIMAJOR = 6378137; // only used in grid shift transforms
-var SRS_WGS84_ESQUARED = 0.006694379990141316; //DGR: 2012-07-29
-module.exports = function(source, dest, point) {
- var wp, i, l;
-
- function checkParams(fallback) {
- return (fallback === PJD_3PARAM || fallback === PJD_7PARAM);
- }
- // Short cut if the datums are identical.
- if (source.compare_datums(dest)) {
- return point; // in this case, zero is sucess,
- // whereas cs_compare_datums returns 1 to indicate TRUE
- // confusing, should fix this
- }
-
- // Explicitly skip datum transform by setting 'datum=none' as parameter for either source or dest
- if (source.datum_type === PJD_NODATUM || dest.datum_type === PJD_NODATUM) {
- return point;
- }
-
- //DGR: 2012-07-29 : add nadgrids support (begin)
- var src_a = source.a;
- var src_es = source.es;
-
- var dst_a = dest.a;
- var dst_es = dest.es;
-
- var fallback = source.datum_type;
- // If this datum requires grid shifts, then apply it to geodetic coordinates.
- if (fallback === PJD_GRIDSHIFT) {
- if (this.apply_gridshift(source, 0, point) === 0) {
- source.a = SRS_WGS84_SEMIMAJOR;
- source.es = SRS_WGS84_ESQUARED;
- }
- else {
- // try 3 or 7 params transformation or nothing ?
- if (!source.datum_params) {
- source.a = src_a;
- source.es = source.es;
- return point;
- }
- wp = 1;
- for (i = 0, l = source.datum_params.length; i < l; i++) {
- wp *= source.datum_params[i];
- }
- if (wp === 0) {
- source.a = src_a;
- source.es = source.es;
- return point;
- }
- if (source.datum_params.length > 3) {
- fallback = PJD_7PARAM;
- }
- else {
- fallback = PJD_3PARAM;
- }
- }
- }
- if (dest.datum_type === PJD_GRIDSHIFT) {
- dest.a = SRS_WGS84_SEMIMAJOR;
- dest.es = SRS_WGS84_ESQUARED;
- }
- // Do we need to go through geocentric coordinates?
- if (source.es !== dest.es || source.a !== dest.a || checkParams(fallback) || checkParams(dest.datum_type)) {
- //DGR: 2012-07-29 : add nadgrids support (end)
- // Convert to geocentric coordinates.
- source.geodetic_to_geocentric(point);
- // CHECK_RETURN;
- // Convert between datums
- if (checkParams(source.datum_type)) {
- source.geocentric_to_wgs84(point);
- // CHECK_RETURN;
- }
- if (checkParams(dest.datum_type)) {
- dest.geocentric_from_wgs84(point);
- // CHECK_RETURN;
- }
- // Convert back to geodetic coordinates
- dest.geocentric_to_geodetic(point);
- // CHECK_RETURN;
- }
- // Apply grid shift to destination if required
- if (dest.datum_type === PJD_GRIDSHIFT) {
- this.apply_gridshift(dest, 1, point);
- // CHECK_RETURN;
- }
-
- source.a = src_a;
- source.es = src_es;
- dest.a = dst_a;
- dest.es = dst_es;
-
- return point;
-};
-
-
-},{}],32:[function(_dereq_,module,exports){
-var globals = _dereq_('./global');
-var parseProj = _dereq_('./projString');
-var wkt = _dereq_('./wkt');
-
-function defs(name) {
- /*global console*/
- var that = this;
- if (arguments.length === 2) {
- var def = arguments[1];
- if (typeof def === 'string') {
- if (def.charAt(0) === '+') {
- defs[name] = parseProj(arguments[1]);
- }
- else {
- defs[name] = wkt(arguments[1]);
- }
- } else {
- defs[name] = def;
- }
- }
- else if (arguments.length === 1) {
- if (Array.isArray(name)) {
- return name.map(function(v) {
- if (Array.isArray(v)) {
- defs.apply(that, v);
- }
- else {
- defs(v);
- }
- });
- }
- else if (typeof name === 'string') {
- if (name in defs) {
- return defs[name];
- }
- }
- else if ('EPSG' in name) {
- defs['EPSG:' + name.EPSG] = name;
- }
- else if ('ESRI' in name) {
- defs['ESRI:' + name.ESRI] = name;
- }
- else if ('IAU2000' in name) {
- defs['IAU2000:' + name.IAU2000] = name;
- }
- else {
- console.log(name);
- }
- return;
- }
-
-
-}
-globals(defs);
-module.exports = defs;
-
-},{"./global":35,"./projString":38,"./wkt":66}],33:[function(_dereq_,module,exports){
-var Datum = _dereq_('./constants/Datum');
-var Ellipsoid = _dereq_('./constants/Ellipsoid');
-var extend = _dereq_('./extend');
-var datum = _dereq_('./datum');
-var EPSLN = 1.0e-10;
-// ellipoid pj_set_ell.c
-var SIXTH = 0.1666666666666666667;
-/* 1/6 */
-var RA4 = 0.04722222222222222222;
-/* 17/360 */
-var RA6 = 0.02215608465608465608;
-module.exports = function(json) {
- // DGR 2011-03-20 : nagrids -> nadgrids
- if (json.datumCode && json.datumCode !== 'none') {
- var datumDef = Datum[json.datumCode];
- if (datumDef) {
- json.datum_params = datumDef.towgs84 ? datumDef.towgs84.split(',') : null;
- json.ellps = datumDef.ellipse;
- json.datumName = datumDef.datumName ? datumDef.datumName : json.datumCode;
- }
- }
- if (!json.a) { // do we have an ellipsoid?
- var ellipse = Ellipsoid[json.ellps] ? Ellipsoid[json.ellps] : Ellipsoid.WGS84;
- extend(json, ellipse);
- }
- if (json.rf && !json.b) {
- json.b = (1.0 - 1.0 / json.rf) * json.a;
- }
- if (json.rf === 0 || Math.abs(json.a - json.b) < EPSLN) {
- json.sphere = true;
- json.b = json.a;
- }
- json.a2 = json.a * json.a; // used in geocentric
- json.b2 = json.b * json.b; // used in geocentric
- json.es = (json.a2 - json.b2) / json.a2; // e ^ 2
- json.e = Math.sqrt(json.es); // eccentricity
- if (json.R_A) {
- json.a *= 1 - json.es * (SIXTH + json.es * (RA4 + json.es * RA6));
- json.a2 = json.a * json.a;
- json.b2 = json.b * json.b;
- json.es = 0;
- }
- json.ep2 = (json.a2 - json.b2) / json.b2; // used in geocentric
- if (!json.k0) {
- json.k0 = 1.0; //default value
- }
- //DGR 2010-11-12: axis
- if (!json.axis) {
- json.axis = "enu";
- }
-
- if (!json.datum) {
- json.datum = datum(json);
- }
- return json;
-};
-
-},{"./constants/Datum":25,"./constants/Ellipsoid":26,"./datum":30,"./extend":34}],34:[function(_dereq_,module,exports){
-module.exports = function(destination, source) {
- destination = destination || {};
- var value, property;
- if (!source) {
- return destination;
- }
- for (property in source) {
- value = source[property];
- if (value !== undefined) {
- destination[property] = value;
- }
- }
- return destination;
-};
-
-},{}],35:[function(_dereq_,module,exports){
-module.exports = function(defs) {
- defs('EPSG:4326', "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees");
- defs('EPSG:4269', "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees");
- defs('EPSG:3857', "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");
-
- defs.WGS84 = defs['EPSG:4326'];
- defs['EPSG:3785'] = defs['EPSG:3857']; // maintain backward compat, official code is 3857
- defs.GOOGLE = defs['EPSG:3857'];
- defs['EPSG:900913'] = defs['EPSG:3857'];
- defs['EPSG:102113'] = defs['EPSG:3857'];
-};
-
-},{}],36:[function(_dereq_,module,exports){
-var proj4 = _dereq_('./core');
-proj4.defaultDatum = 'WGS84'; //default datum
-proj4.Proj = _dereq_('./Proj');
-proj4.WGS84 = new proj4.Proj('WGS84');
-proj4.Point = _dereq_('./Point');
-proj4.toPoint = _dereq_("./common/toPoint");
-proj4.defs = _dereq_('./defs');
-proj4.transform = _dereq_('./transform');
-proj4.mgrs = _dereq_('mgrs');
-proj4.version = _dereq_('../package.json').version;
-_dereq_('./includedProjections')(proj4);
-module.exports = proj4;
-},{"../package.json":68,"./Point":1,"./Proj":2,"./common/toPoint":23,"./core":29,"./defs":32,"./includedProjections":"hTEDpn","./transform":65,"mgrs":67}],37:[function(_dereq_,module,exports){
-var defs = _dereq_('./defs');
-var wkt = _dereq_('./wkt');
-var projStr = _dereq_('./projString');
-function testObj(code){
- return typeof code === 'string';
-}
-function testDef(code){
- return code in defs;
-}
-function testWKT(code){
- var codeWords = ['GEOGCS','GEOCCS','PROJCS','LOCAL_CS'];
- return codeWords.reduce(function(a,b){
- return a+1+code.indexOf(b);
- },0);
-}
-function testProj(code){
- return code[0] === '+';
-}
-function parse(code){
- if (testObj(code)) {
- //check to see if this is a WKT string
- if (testDef(code)) {
- return defs[code];
- }
- else if (testWKT(code)) {
- return wkt(code);
- }
- else if (testProj(code)) {
- return projStr(code);
- }
- }else{
- return code;
- }
-}
-
-module.exports = parse;
-},{"./defs":32,"./projString":38,"./wkt":66}],38:[function(_dereq_,module,exports){
-var D2R = 0.01745329251994329577;
-var PrimeMeridian = _dereq_('./constants/PrimeMeridian');
-var units = _dereq_('./constants/units');
-
-module.exports = function(defData) {
- var self = {};
- var paramObj = {};
- defData.split("+").map(function(v) {
- return v.trim();
- }).filter(function(a) {
- return a;
- }).forEach(function(a) {
- var split = a.split("=");
- split.push(true);
- paramObj[split[0].toLowerCase()] = split[1];
- });
- var paramName, paramVal, paramOutname;
- var params = {
- proj: 'projName',
- datum: 'datumCode',
- rf: function(v) {
- self.rf = parseFloat(v);
- },
- lat_0: function(v) {
- self.lat0 = v * D2R;
- },
- lat_1: function(v) {
- self.lat1 = v * D2R;
- },
- lat_2: function(v) {
- self.lat2 = v * D2R;
- },
- lat_ts: function(v) {
- self.lat_ts = v * D2R;
- },
- lon_0: function(v) {
- self.long0 = v * D2R;
- },
- lon_1: function(v) {
- self.long1 = v * D2R;
- },
- lon_2: function(v) {
- self.long2 = v * D2R;
- },
- alpha: function(v) {
- self.alpha = parseFloat(v) * D2R;
- },
- lonc: function(v) {
- self.longc = v * D2R;
- },
- x_0: function(v) {
- self.x0 = parseFloat(v);
- },
- y_0: function(v) {
- self.y0 = parseFloat(v);
- },
- k_0: function(v) {
- self.k0 = parseFloat(v);
- },
- k: function(v) {
- self.k0 = parseFloat(v);
- },
- a: function(v) {
- self.a = parseFloat(v);
- },
- b: function(v) {
- self.b = parseFloat(v);
- },
- r_a: function() {
- self.R_A = true;
- },
- zone: function(v) {
- self.zone = parseInt(v, 10);
- },
- south: function() {
- self.utmSouth = true;
- },
- towgs84: function(v) {
- self.datum_params = v.split(",").map(function(a) {
- return parseFloat(a);
- });
- },
- to_meter: function(v) {
- self.to_meter = parseFloat(v);
- },
- units: function(v) {
- self.units = v;
- if (units[v]) {
- self.to_meter = units[v].to_meter;
- }
- },
- from_greenwich: function(v) {
- self.from_greenwich = v * D2R;
- },
- pm: function(v) {
- self.from_greenwich = (PrimeMeridian[v] ? PrimeMeridian[v] : parseFloat(v)) * D2R;
- },
- nadgrids: function(v) {
- if (v === '@null') {
- self.datumCode = 'none';
- }
- else {
- self.nadgrids = v;
- }
- },
- axis: function(v) {
- var legalAxis = "ewnsud";
- if (v.length === 3 && legalAxis.indexOf(v.substr(0, 1)) !== -1 && legalAxis.indexOf(v.substr(1, 1)) !== -1 && legalAxis.indexOf(v.substr(2, 1)) !== -1) {
- self.axis = v;
- }
- }
- };
- for (paramName in paramObj) {
- paramVal = paramObj[paramName];
- if (paramName in params) {
- paramOutname = params[paramName];
- if (typeof paramOutname === 'function') {
- paramOutname(paramVal);
- }
- else {
- self[paramOutname] = paramVal;
- }
- }
- else {
- self[paramName] = paramVal;
- }
- }
- if(typeof self.datumCode === 'string' && self.datumCode !== "WGS84"){
- self.datumCode = self.datumCode.toLowerCase();
- }
- return self;
-};
-
-},{"./constants/PrimeMeridian":27,"./constants/units":28}],39:[function(_dereq_,module,exports){
-var projs = [
- _dereq_('./projections/merc'),
- _dereq_('./projections/longlat')
-];
-var names = {};
-var projStore = [];
-
-function add(proj, i) {
- var len = projStore.length;
- if (!proj.names) {
- console.log(i);
- return true;
- }
- projStore[len] = proj;
- proj.names.forEach(function(n) {
- names[n.toLowerCase()] = len;
- });
- return this;
-}
-
-exports.add = add;
-
-exports.get = function(name) {
- if (!name) {
- return false;
- }
- var n = name.toLowerCase();
- if (typeof names[n] !== 'undefined' && projStore[names[n]]) {
- return projStore[names[n]];
- }
-};
-exports.start = function() {
- projs.forEach(add);
-};
-
-},{"./projections/longlat":51,"./projections/merc":52}],40:[function(_dereq_,module,exports){
-var EPSLN = 1.0e-10;
-var msfnz = _dereq_('../common/msfnz');
-var qsfnz = _dereq_('../common/qsfnz');
-var adjust_lon = _dereq_('../common/adjust_lon');
-var asinz = _dereq_('../common/asinz');
-exports.init = function() {
-
- if (Math.abs(this.lat1 + this.lat2) < EPSLN) {
- return;
- }
- this.temp = this.b / this.a;
- this.es = 1 - Math.pow(this.temp, 2);
- this.e3 = Math.sqrt(this.es);
-
- this.sin_po = Math.sin(this.lat1);
- this.cos_po = Math.cos(this.lat1);
- this.t1 = this.sin_po;
- this.con = this.sin_po;
- this.ms1 = msfnz(this.e3, this.sin_po, this.cos_po);
- this.qs1 = qsfnz(this.e3, this.sin_po, this.cos_po);
-
- this.sin_po = Math.sin(this.lat2);
- this.cos_po = Math.cos(this.lat2);
- this.t2 = this.sin_po;
- this.ms2 = msfnz(this.e3, this.sin_po, this.cos_po);
- this.qs2 = qsfnz(this.e3, this.sin_po, this.cos_po);
-
- this.sin_po = Math.sin(this.lat0);
- this.cos_po = Math.cos(this.lat0);
- this.t3 = this.sin_po;
- this.qs0 = qsfnz(this.e3, this.sin_po, this.cos_po);
-
- if (Math.abs(this.lat1 - this.lat2) > EPSLN) {
- this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1);
- }
- else {
- this.ns0 = this.con;
- }
- this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1;
- this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0;
-};
-
-/* Albers Conical Equal Area forward equations--mapping lat,long to x,y
- -------------------------------------------------------------------*/
-exports.forward = function(p) {
-
- var lon = p.x;
- var lat = p.y;
-
- this.sin_phi = Math.sin(lat);
- this.cos_phi = Math.cos(lat);
-
- var qs = qsfnz(this.e3, this.sin_phi, this.cos_phi);
- var rh1 = this.a * Math.sqrt(this.c - this.ns0 * qs) / this.ns0;
- var theta = this.ns0 * adjust_lon(lon - this.long0);
- var x = rh1 * Math.sin(theta) + this.x0;
- var y = this.rh - rh1 * Math.cos(theta) + this.y0;
-
- p.x = x;
- p.y = y;
- return p;
-};
-
-
-exports.inverse = function(p) {
- var rh1, qs, con, theta, lon, lat;
-
- p.x -= this.x0;
- p.y = this.rh - p.y + this.y0;
- if (this.ns0 >= 0) {
- rh1 = Math.sqrt(p.x * p.x + p.y * p.y);
- con = 1;
- }
- else {
- rh1 = -Math.sqrt(p.x * p.x + p.y * p.y);
- con = -1;
- }
- theta = 0;
- if (rh1 !== 0) {
- theta = Math.atan2(con * p.x, con * p.y);
- }
- con = rh1 * this.ns0 / this.a;
- if (this.sphere) {
- lat = Math.asin((this.c - con * con) / (2 * this.ns0));
- }
- else {
- qs = (this.c - con * con) / this.ns0;
- lat = this.phi1z(this.e3, qs);
- }
-
- lon = adjust_lon(theta / this.ns0 + this.long0);
- p.x = lon;
- p.y = lat;
- return p;
-};
-
-/* Function to compute phi1, the latitude for the inverse of the
- Albers Conical Equal-Area projection.
--------------------------------------------*/
-exports.phi1z = function(eccent, qs) {
- var sinphi, cosphi, con, com, dphi;
- var phi = asinz(0.5 * qs);
- if (eccent < EPSLN) {
- return phi;
- }
-
- var eccnts = eccent * eccent;
- for (var i = 1; i <= 25; i++) {
- sinphi = Math.sin(phi);
- cosphi = Math.cos(phi);
- con = eccent * sinphi;
- com = 1 - con * con;
- dphi = 0.5 * com * com / cosphi * (qs / (1 - eccnts) - sinphi / com + 0.5 / eccent * Math.log((1 - con) / (1 + con)));
- phi = phi + dphi;
- if (Math.abs(dphi) <= 1e-7) {
- return phi;
- }
- }
- return null;
-};
-exports.names = ["Albers_Conic_Equal_Area", "Albers", "aea"];
-
-},{"../common/adjust_lon":5,"../common/asinz":6,"../common/msfnz":15,"../common/qsfnz":20}],41:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-var HALF_PI = Math.PI/2;
-var EPSLN = 1.0e-10;
-var mlfn = _dereq_('../common/mlfn');
-var e0fn = _dereq_('../common/e0fn');
-var e1fn = _dereq_('../common/e1fn');
-var e2fn = _dereq_('../common/e2fn');
-var e3fn = _dereq_('../common/e3fn');
-var gN = _dereq_('../common/gN');
-var asinz = _dereq_('../common/asinz');
-var imlfn = _dereq_('../common/imlfn');
-exports.init = function() {
- this.sin_p12 = Math.sin(this.lat0);
- this.cos_p12 = Math.cos(this.lat0);
-};
-
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
- var sinphi = Math.sin(p.y);
- var cosphi = Math.cos(p.y);
- var dlon = adjust_lon(lon - this.long0);
- var e0, e1, e2, e3, Mlp, Ml, tanphi, Nl1, Nl, psi, Az, G, H, GH, Hs, c, kp, cos_c, s, s2, s3, s4, s5;
- if (this.sphere) {
- if (Math.abs(this.sin_p12 - 1) <= EPSLN) {
- //North Pole case
- p.x = this.x0 + this.a * (HALF_PI - lat) * Math.sin(dlon);
- p.y = this.y0 - this.a * (HALF_PI - lat) * Math.cos(dlon);
- return p;
- }
- else if (Math.abs(this.sin_p12 + 1) <= EPSLN) {
- //South Pole case
- p.x = this.x0 + this.a * (HALF_PI + lat) * Math.sin(dlon);
- p.y = this.y0 + this.a * (HALF_PI + lat) * Math.cos(dlon);
- return p;
- }
- else {
- //default case
- cos_c = this.sin_p12 * sinphi + this.cos_p12 * cosphi * Math.cos(dlon);
- c = Math.acos(cos_c);
- kp = c / Math.sin(c);
- p.x = this.x0 + this.a * kp * cosphi * Math.sin(dlon);
- p.y = this.y0 + this.a * kp * (this.cos_p12 * sinphi - this.sin_p12 * cosphi * Math.cos(dlon));
- return p;
- }
- }
- else {
- e0 = e0fn(this.es);
- e1 = e1fn(this.es);
- e2 = e2fn(this.es);
- e3 = e3fn(this.es);
- if (Math.abs(this.sin_p12 - 1) <= EPSLN) {
- //North Pole case
- Mlp = this.a * mlfn(e0, e1, e2, e3, HALF_PI);
- Ml = this.a * mlfn(e0, e1, e2, e3, lat);
- p.x = this.x0 + (Mlp - Ml) * Math.sin(dlon);
- p.y = this.y0 - (Mlp - Ml) * Math.cos(dlon);
- return p;
- }
- else if (Math.abs(this.sin_p12 + 1) <= EPSLN) {
- //South Pole case
- Mlp = this.a * mlfn(e0, e1, e2, e3, HALF_PI);
- Ml = this.a * mlfn(e0, e1, e2, e3, lat);
- p.x = this.x0 + (Mlp + Ml) * Math.sin(dlon);
- p.y = this.y0 + (Mlp + Ml) * Math.cos(dlon);
- return p;
- }
- else {
- //Default case
- tanphi = sinphi / cosphi;
- Nl1 = gN(this.a, this.e, this.sin_p12);
- Nl = gN(this.a, this.e, sinphi);
- psi = Math.atan((1 - this.es) * tanphi + this.es * Nl1 * this.sin_p12 / (Nl * cosphi));
- Az = Math.atan2(Math.sin(dlon), this.cos_p12 * Math.tan(psi) - this.sin_p12 * Math.cos(dlon));
- if (Az === 0) {
- s = Math.asin(this.cos_p12 * Math.sin(psi) - this.sin_p12 * Math.cos(psi));
- }
- else if (Math.abs(Math.abs(Az) - Math.PI) <= EPSLN) {
- s = -Math.asin(this.cos_p12 * Math.sin(psi) - this.sin_p12 * Math.cos(psi));
- }
- else {
- s = Math.asin(Math.sin(dlon) * Math.cos(psi) / Math.sin(Az));
- }
- G = this.e * this.sin_p12 / Math.sqrt(1 - this.es);
- H = this.e * this.cos_p12 * Math.cos(Az) / Math.sqrt(1 - this.es);
- GH = G * H;
- Hs = H * H;
- s2 = s * s;
- s3 = s2 * s;
- s4 = s3 * s;
- s5 = s4 * s;
- c = Nl1 * s * (1 - s2 * Hs * (1 - Hs) / 6 + s3 / 8 * GH * (1 - 2 * Hs) + s4 / 120 * (Hs * (4 - 7 * Hs) - 3 * G * G * (1 - 7 * Hs)) - s5 / 48 * GH);
- p.x = this.x0 + c * Math.sin(Az);
- p.y = this.y0 + c * Math.cos(Az);
- return p;
- }
- }
-
-
-};
-
-exports.inverse = function(p) {
- p.x -= this.x0;
- p.y -= this.y0;
- var rh, z, sinz, cosz, lon, lat, con, e0, e1, e2, e3, Mlp, M, N1, psi, Az, cosAz, tmp, A, B, D, Ee, F;
- if (this.sphere) {
- rh = Math.sqrt(p.x * p.x + p.y * p.y);
- if (rh > (2 * HALF_PI * this.a)) {
- return;
- }
- z = rh / this.a;
-
- sinz = Math.sin(z);
- cosz = Math.cos(z);
-
- lon = this.long0;
- if (Math.abs(rh) <= EPSLN) {
- lat = this.lat0;
- }
- else {
- lat = asinz(cosz * this.sin_p12 + (p.y * sinz * this.cos_p12) / rh);
- con = Math.abs(this.lat0) - HALF_PI;
- if (Math.abs(con) <= EPSLN) {
- if (this.lat0 >= 0) {
- lon = adjust_lon(this.long0 + Math.atan2(p.x, - p.y));
- }
- else {
- lon = adjust_lon(this.long0 - Math.atan2(-p.x, p.y));
- }
- }
- else {
- /*con = cosz - this.sin_p12 * Math.sin(lat);
- if ((Math.abs(con) < EPSLN) && (Math.abs(p.x) < EPSLN)) {
- //no-op, just keep the lon value as is
- } else {
- var temp = Math.atan2((p.x * sinz * this.cos_p12), (con * rh));
- lon = adjust_lon(this.long0 + Math.atan2((p.x * sinz * this.cos_p12), (con * rh)));
- }*/
- lon = adjust_lon(this.long0 + Math.atan2(p.x * sinz, rh * this.cos_p12 * cosz - p.y * this.sin_p12 * sinz));
- }
- }
-
- p.x = lon;
- p.y = lat;
- return p;
- }
- else {
- e0 = e0fn(this.es);
- e1 = e1fn(this.es);
- e2 = e2fn(this.es);
- e3 = e3fn(this.es);
- if (Math.abs(this.sin_p12 - 1) <= EPSLN) {
- //North pole case
- Mlp = this.a * mlfn(e0, e1, e2, e3, HALF_PI);
- rh = Math.sqrt(p.x * p.x + p.y * p.y);
- M = Mlp - rh;
- lat = imlfn(M / this.a, e0, e1, e2, e3);
- lon = adjust_lon(this.long0 + Math.atan2(p.x, - 1 * p.y));
- p.x = lon;
- p.y = lat;
- return p;
- }
- else if (Math.abs(this.sin_p12 + 1) <= EPSLN) {
- //South pole case
- Mlp = this.a * mlfn(e0, e1, e2, e3, HALF_PI);
- rh = Math.sqrt(p.x * p.x + p.y * p.y);
- M = rh - Mlp;
-
- lat = imlfn(M / this.a, e0, e1, e2, e3);
- lon = adjust_lon(this.long0 + Math.atan2(p.x, p.y));
- p.x = lon;
- p.y = lat;
- return p;
- }
- else {
- //default case
- rh = Math.sqrt(p.x * p.x + p.y * p.y);
- Az = Math.atan2(p.x, p.y);
- N1 = gN(this.a, this.e, this.sin_p12);
- cosAz = Math.cos(Az);
- tmp = this.e * this.cos_p12 * cosAz;
- A = -tmp * tmp / (1 - this.es);
- B = 3 * this.es * (1 - A) * this.sin_p12 * this.cos_p12 * cosAz / (1 - this.es);
- D = rh / N1;
- Ee = D - A * (1 + A) * Math.pow(D, 3) / 6 - B * (1 + 3 * A) * Math.pow(D, 4) / 24;
- F = 1 - A * Ee * Ee / 2 - D * Ee * Ee * Ee / 6;
- psi = Math.asin(this.sin_p12 * Math.cos(Ee) + this.cos_p12 * Math.sin(Ee) * cosAz);
- lon = adjust_lon(this.long0 + Math.asin(Math.sin(Az) * Math.sin(Ee) / Math.cos(psi)));
- lat = Math.atan((1 - this.es * F * this.sin_p12 / Math.sin(psi)) * Math.tan(psi) / (1 - this.es));
- p.x = lon;
- p.y = lat;
- return p;
- }
- }
-
-};
-exports.names = ["Azimuthal_Equidistant", "aeqd"];
-
-},{"../common/adjust_lon":5,"../common/asinz":6,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/imlfn":12,"../common/mlfn":14}],42:[function(_dereq_,module,exports){
-var mlfn = _dereq_('../common/mlfn');
-var e0fn = _dereq_('../common/e0fn');
-var e1fn = _dereq_('../common/e1fn');
-var e2fn = _dereq_('../common/e2fn');
-var e3fn = _dereq_('../common/e3fn');
-var gN = _dereq_('../common/gN');
-var adjust_lon = _dereq_('../common/adjust_lon');
-var adjust_lat = _dereq_('../common/adjust_lat');
-var imlfn = _dereq_('../common/imlfn');
-var HALF_PI = Math.PI/2;
-var EPSLN = 1.0e-10;
-exports.init = function() {
- if (!this.sphere) {
- this.e0 = e0fn(this.es);
- this.e1 = e1fn(this.es);
- this.e2 = e2fn(this.es);
- this.e3 = e3fn(this.es);
- this.ml0 = this.a * mlfn(this.e0, this.e1, this.e2, this.e3, this.lat0);
- }
-};
-
-
-
-/* Cassini forward equations--mapping lat,long to x,y
- -----------------------------------------------------------------------*/
-exports.forward = function(p) {
-
- /* Forward equations
- -----------------*/
- var x, y;
- var lam = p.x;
- var phi = p.y;
- lam = adjust_lon(lam - this.long0);
-
- if (this.sphere) {
- x = this.a * Math.asin(Math.cos(phi) * Math.sin(lam));
- y = this.a * (Math.atan2(Math.tan(phi), Math.cos(lam)) - this.lat0);
- }
- else {
- //ellipsoid
- var sinphi = Math.sin(phi);
- var cosphi = Math.cos(phi);
- var nl = gN(this.a, this.e, sinphi);
- var tl = Math.tan(phi) * Math.tan(phi);
- var al = lam * Math.cos(phi);
- var asq = al * al;
- var cl = this.es * cosphi * cosphi / (1 - this.es);
- var ml = this.a * mlfn(this.e0, this.e1, this.e2, this.e3, phi);
-
- x = nl * al * (1 - asq * tl * (1 / 6 - (8 - tl + 8 * cl) * asq / 120));
- y = ml - this.ml0 + nl * sinphi / cosphi * asq * (0.5 + (5 - tl + 6 * cl) * asq / 24);
-
-
- }
-
- p.x = x + this.x0;
- p.y = y + this.y0;
- return p;
-};
-
-/* Inverse equations
- -----------------*/
-exports.inverse = function(p) {
- p.x -= this.x0;
- p.y -= this.y0;
- var x = p.x / this.a;
- var y = p.y / this.a;
- var phi, lam;
-
- if (this.sphere) {
- var dd = y + this.lat0;
- phi = Math.asin(Math.sin(dd) * Math.cos(x));
- lam = Math.atan2(Math.tan(x), Math.cos(dd));
- }
- else {
- /* ellipsoid */
- var ml1 = this.ml0 / this.a + y;
- var phi1 = imlfn(ml1, this.e0, this.e1, this.e2, this.e3);
- if (Math.abs(Math.abs(phi1) - HALF_PI) <= EPSLN) {
- p.x = this.long0;
- p.y = HALF_PI;
- if (y < 0) {
- p.y *= -1;
- }
- return p;
- }
- var nl1 = gN(this.a, this.e, Math.sin(phi1));
-
- var rl1 = nl1 * nl1 * nl1 / this.a / this.a * (1 - this.es);
- var tl1 = Math.pow(Math.tan(phi1), 2);
- var dl = x * this.a / nl1;
- var dsq = dl * dl;
- phi = phi1 - nl1 * Math.tan(phi1) / rl1 * dl * dl * (0.5 - (1 + 3 * tl1) * dl * dl / 24);
- lam = dl * (1 - dsq * (tl1 / 3 + (1 + 3 * tl1) * tl1 * dsq / 15)) / Math.cos(phi1);
-
- }
-
- p.x = adjust_lon(lam + this.long0);
- p.y = adjust_lat(phi);
- return p;
-
-};
-exports.names = ["Cassini", "Cassini_Soldner", "cass"];
-},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/imlfn":12,"../common/mlfn":14}],43:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-var qsfnz = _dereq_('../common/qsfnz');
-var msfnz = _dereq_('../common/msfnz');
-var iqsfnz = _dereq_('../common/iqsfnz');
-/*
- reference:
- "Cartographic Projection Procedures for the UNIX Environment-
- A User's Manual" by Gerald I. Evenden,
- USGS Open File Report 90-284and Release 4 Interim Reports (2003)
-*/
-exports.init = function() {
- //no-op
- if (!this.sphere) {
- this.k0 = msfnz(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts));
- }
-};
-
-
-/* Cylindrical Equal Area forward equations--mapping lat,long to x,y
- ------------------------------------------------------------*/
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
- var x, y;
- /* Forward equations
- -----------------*/
- var dlon = adjust_lon(lon - this.long0);
- if (this.sphere) {
- x = this.x0 + this.a * dlon * Math.cos(this.lat_ts);
- y = this.y0 + this.a * Math.sin(lat) / Math.cos(this.lat_ts);
- }
- else {
- var qs = qsfnz(this.e, Math.sin(lat));
- x = this.x0 + this.a * this.k0 * dlon;
- y = this.y0 + this.a * qs * 0.5 / this.k0;
- }
-
- p.x = x;
- p.y = y;
- return p;
-};
-
-/* Cylindrical Equal Area inverse equations--mapping x,y to lat/long
- ------------------------------------------------------------*/
-exports.inverse = function(p) {
- p.x -= this.x0;
- p.y -= this.y0;
- var lon, lat;
-
- if (this.sphere) {
- lon = adjust_lon(this.long0 + (p.x / this.a) / Math.cos(this.lat_ts));
- lat = Math.asin((p.y / this.a) * Math.cos(this.lat_ts));
- }
- else {
- lat = iqsfnz(this.e, 2 * p.y * this.k0 / this.a);
- lon = adjust_lon(this.long0 + p.x / (this.a * this.k0));
- }
-
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["cea"];
-
-},{"../common/adjust_lon":5,"../common/iqsfnz":13,"../common/msfnz":15,"../common/qsfnz":20}],44:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-var adjust_lat = _dereq_('../common/adjust_lat');
-exports.init = function() {
-
- this.x0 = this.x0 || 0;
- this.y0 = this.y0 || 0;
- this.lat0 = this.lat0 || 0;
- this.long0 = this.long0 || 0;
- this.lat_ts = this.lat_ts || 0;
- this.title = this.title || "Equidistant Cylindrical (Plate Carre)";
-
- this.rc = Math.cos(this.lat_ts);
-};
-
-
-// forward equations--mapping lat,long to x,y
-// -----------------------------------------------------------------
-exports.forward = function(p) {
-
- var lon = p.x;
- var lat = p.y;
-
- var dlon = adjust_lon(lon - this.long0);
- var dlat = adjust_lat(lat - this.lat0);
- p.x = this.x0 + (this.a * dlon * this.rc);
- p.y = this.y0 + (this.a * dlat);
- return p;
-};
-
-// inverse equations--mapping x,y to lat/long
-// -----------------------------------------------------------------
-exports.inverse = function(p) {
-
- var x = p.x;
- var y = p.y;
-
- p.x = adjust_lon(this.long0 + ((x - this.x0) / (this.a * this.rc)));
- p.y = adjust_lat(this.lat0 + ((y - this.y0) / (this.a)));
- return p;
-};
-exports.names = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
-
-},{"../common/adjust_lat":4,"../common/adjust_lon":5}],45:[function(_dereq_,module,exports){
-var e0fn = _dereq_('../common/e0fn');
-var e1fn = _dereq_('../common/e1fn');
-var e2fn = _dereq_('../common/e2fn');
-var e3fn = _dereq_('../common/e3fn');
-var msfnz = _dereq_('../common/msfnz');
-var mlfn = _dereq_('../common/mlfn');
-var adjust_lon = _dereq_('../common/adjust_lon');
-var adjust_lat = _dereq_('../common/adjust_lat');
-var imlfn = _dereq_('../common/imlfn');
-var EPSLN = 1.0e-10;
-exports.init = function() {
-
- /* Place parameters in static storage for common use
- -------------------------------------------------*/
- // Standard Parallels cannot be equal and on opposite sides of the equator
- if (Math.abs(this.lat1 + this.lat2) < EPSLN) {
- return;
- }
- this.lat2 = this.lat2 || this.lat1;
- this.temp = this.b / this.a;
- this.es = 1 - Math.pow(this.temp, 2);
- this.e = Math.sqrt(this.es);
- this.e0 = e0fn(this.es);
- this.e1 = e1fn(this.es);
- this.e2 = e2fn(this.es);
- this.e3 = e3fn(this.es);
-
- this.sinphi = Math.sin(this.lat1);
- this.cosphi = Math.cos(this.lat1);
-
- this.ms1 = msfnz(this.e, this.sinphi, this.cosphi);
- this.ml1 = mlfn(this.e0, this.e1, this.e2, this.e3, this.lat1);
-
- if (Math.abs(this.lat1 - this.lat2) < EPSLN) {
- this.ns = this.sinphi;
- }
- else {
- this.sinphi = Math.sin(this.lat2);
- this.cosphi = Math.cos(this.lat2);
- this.ms2 = msfnz(this.e, this.sinphi, this.cosphi);
- this.ml2 = mlfn(this.e0, this.e1, this.e2, this.e3, this.lat2);
- this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1);
- }
- this.g = this.ml1 + this.ms1 / this.ns;
- this.ml0 = mlfn(this.e0, this.e1, this.e2, this.e3, this.lat0);
- this.rh = this.a * (this.g - this.ml0);
-};
-
-
-/* Equidistant Conic forward equations--mapping lat,long to x,y
- -----------------------------------------------------------*/
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
- var rh1;
-
- /* Forward equations
- -----------------*/
- if (this.sphere) {
- rh1 = this.a * (this.g - lat);
- }
- else {
- var ml = mlfn(this.e0, this.e1, this.e2, this.e3, lat);
- rh1 = this.a * (this.g - ml);
- }
- var theta = this.ns * adjust_lon(lon - this.long0);
- var x = this.x0 + rh1 * Math.sin(theta);
- var y = this.y0 + this.rh - rh1 * Math.cos(theta);
- p.x = x;
- p.y = y;
- return p;
-};
-
-/* Inverse equations
- -----------------*/
-exports.inverse = function(p) {
- p.x -= this.x0;
- p.y = this.rh - p.y + this.y0;
- var con, rh1, lat, lon;
- if (this.ns >= 0) {
- rh1 = Math.sqrt(p.x * p.x + p.y * p.y);
- con = 1;
- }
- else {
- rh1 = -Math.sqrt(p.x * p.x + p.y * p.y);
- con = -1;
- }
- var theta = 0;
- if (rh1 !== 0) {
- theta = Math.atan2(con * p.x, con * p.y);
- }
-
- if (this.sphere) {
- lon = adjust_lon(this.long0 + theta / this.ns);
- lat = adjust_lat(this.g - rh1 / this.a);
- p.x = lon;
- p.y = lat;
- return p;
- }
- else {
- var ml = this.g - rh1 / this.a;
- lat = imlfn(ml, this.e0, this.e1, this.e2, this.e3);
- lon = adjust_lon(this.long0 + theta / this.ns);
- p.x = lon;
- p.y = lat;
- return p;
- }
-
-};
-exports.names = ["Equidistant_Conic", "eqdc"];
-
-},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/imlfn":12,"../common/mlfn":14,"../common/msfnz":15}],46:[function(_dereq_,module,exports){
-var FORTPI = Math.PI/4;
-var srat = _dereq_('../common/srat');
-var HALF_PI = Math.PI/2;
-var MAX_ITER = 20;
-exports.init = function() {
- var sphi = Math.sin(this.lat0);
- var cphi = Math.cos(this.lat0);
- cphi *= cphi;
- this.rc = Math.sqrt(1 - this.es) / (1 - this.es * sphi * sphi);
- this.C = Math.sqrt(1 + this.es * cphi * cphi / (1 - this.es));
- this.phic0 = Math.asin(sphi / this.C);
- this.ratexp = 0.5 * this.C * this.e;
- this.K = Math.tan(0.5 * this.phic0 + FORTPI) / (Math.pow(Math.tan(0.5 * this.lat0 + FORTPI), this.C) * srat(this.e * sphi, this.ratexp));
-};
-
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
-
- p.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * lat + FORTPI), this.C) * srat(this.e * Math.sin(lat), this.ratexp)) - HALF_PI;
- p.x = this.C * lon;
- return p;
-};
-
-exports.inverse = function(p) {
- var DEL_TOL = 1e-14;
- var lon = p.x / this.C;
- var lat = p.y;
- var num = Math.pow(Math.tan(0.5 * lat + FORTPI) / this.K, 1 / this.C);
- for (var i = MAX_ITER; i > 0; --i) {
- lat = 2 * Math.atan(num * srat(this.e * Math.sin(p.y), - 0.5 * this.e)) - HALF_PI;
- if (Math.abs(lat - p.y) < DEL_TOL) {
- break;
- }
- p.y = lat;
- }
- /* convergence failed */
- if (!i) {
- return null;
- }
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["gauss"];
-
-},{"../common/srat":22}],47:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-var EPSLN = 1.0e-10;
-var asinz = _dereq_('../common/asinz');
-
-/*
- reference:
- Wolfram Mathworld "Gnomonic Projection"
- http://mathworld.wolfram.com/GnomonicProjection.html
- Accessed: 12th November 2009
- */
-exports.init = function() {
-
- /* Place parameters in static storage for common use
- -------------------------------------------------*/
- this.sin_p14 = Math.sin(this.lat0);
- this.cos_p14 = Math.cos(this.lat0);
- // Approximation for projecting points to the horizon (infinity)
- this.infinity_dist = 1000 * this.a;
- this.rc = 1;
-};
-
-
-/* Gnomonic forward equations--mapping lat,long to x,y
- ---------------------------------------------------*/
-exports.forward = function(p) {
- var sinphi, cosphi; /* sin and cos value */
- var dlon; /* delta longitude value */
- var coslon; /* cos of longitude */
- var ksp; /* scale factor */
- var g;
- var x, y;
- var lon = p.x;
- var lat = p.y;
- /* Forward equations
- -----------------*/
- dlon = adjust_lon(lon - this.long0);
-
- sinphi = Math.sin(lat);
- cosphi = Math.cos(lat);
-
- coslon = Math.cos(dlon);
- g = this.sin_p14 * sinphi + this.cos_p14 * cosphi * coslon;
- ksp = 1;
- if ((g > 0) || (Math.abs(g) <= EPSLN)) {
- x = this.x0 + this.a * ksp * cosphi * Math.sin(dlon) / g;
- y = this.y0 + this.a * ksp * (this.cos_p14 * sinphi - this.sin_p14 * cosphi * coslon) / g;
- }
- else {
-
- // Point is in the opposing hemisphere and is unprojectable
- // We still need to return a reasonable point, so we project
- // to infinity, on a bearing
- // equivalent to the northern hemisphere equivalent
- // This is a reasonable approximation for short shapes and lines that
- // straddle the horizon.
-
- x = this.x0 + this.infinity_dist * cosphi * Math.sin(dlon);
- y = this.y0 + this.infinity_dist * (this.cos_p14 * sinphi - this.sin_p14 * cosphi * coslon);
-
- }
- p.x = x;
- p.y = y;
- return p;
-};
-
-
-exports.inverse = function(p) {
- var rh; /* Rho */
- var sinc, cosc;
- var c;
- var lon, lat;
-
- /* Inverse equations
- -----------------*/
- p.x = (p.x - this.x0) / this.a;
- p.y = (p.y - this.y0) / this.a;
-
- p.x /= this.k0;
- p.y /= this.k0;
-
- if ((rh = Math.sqrt(p.x * p.x + p.y * p.y))) {
- c = Math.atan2(rh, this.rc);
- sinc = Math.sin(c);
- cosc = Math.cos(c);
-
- lat = asinz(cosc * this.sin_p14 + (p.y * sinc * this.cos_p14) / rh);
- lon = Math.atan2(p.x * sinc, rh * this.cos_p14 * cosc - p.y * this.sin_p14 * sinc);
- lon = adjust_lon(this.long0 + lon);
- }
- else {
- lat = this.phic0;
- lon = 0;
- }
-
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["gnom"];
-
-},{"../common/adjust_lon":5,"../common/asinz":6}],48:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-exports.init = function() {
- this.a = 6377397.155;
- this.es = 0.006674372230614;
- this.e = Math.sqrt(this.es);
- if (!this.lat0) {
- this.lat0 = 0.863937979737193;
- }
- if (!this.long0) {
- this.long0 = 0.7417649320975901 - 0.308341501185665;
- }
- /* if scale not set default to 0.9999 */
- if (!this.k0) {
- this.k0 = 0.9999;
- }
- this.s45 = 0.785398163397448; /* 45 */
- this.s90 = 2 * this.s45;
- this.fi0 = this.lat0;
- this.e2 = this.es;
- this.e = Math.sqrt(this.e2);
- this.alfa = Math.sqrt(1 + (this.e2 * Math.pow(Math.cos(this.fi0), 4)) / (1 - this.e2));
- this.uq = 1.04216856380474;
- this.u0 = Math.asin(Math.sin(this.fi0) / this.alfa);
- this.g = Math.pow((1 + this.e * Math.sin(this.fi0)) / (1 - this.e * Math.sin(this.fi0)), this.alfa * this.e / 2);
- this.k = Math.tan(this.u0 / 2 + this.s45) / Math.pow(Math.tan(this.fi0 / 2 + this.s45), this.alfa) * this.g;
- this.k1 = this.k0;
- this.n0 = this.a * Math.sqrt(1 - this.e2) / (1 - this.e2 * Math.pow(Math.sin(this.fi0), 2));
- this.s0 = 1.37008346281555;
- this.n = Math.sin(this.s0);
- this.ro0 = this.k1 * this.n0 / Math.tan(this.s0);
- this.ad = this.s90 - this.uq;
-};
-
-/* ellipsoid */
-/* calculate xy from lat/lon */
-/* Constants, identical to inverse transform function */
-exports.forward = function(p) {
- var gfi, u, deltav, s, d, eps, ro;
- var lon = p.x;
- var lat = p.y;
- var delta_lon = adjust_lon(lon - this.long0);
- /* Transformation */
- gfi = Math.pow(((1 + this.e * Math.sin(lat)) / (1 - this.e * Math.sin(lat))), (this.alfa * this.e / 2));
- u = 2 * (Math.atan(this.k * Math.pow(Math.tan(lat / 2 + this.s45), this.alfa) / gfi) - this.s45);
- deltav = -delta_lon * this.alfa;
- s = Math.asin(Math.cos(this.ad) * Math.sin(u) + Math.sin(this.ad) * Math.cos(u) * Math.cos(deltav));
- d = Math.asin(Math.cos(u) * Math.sin(deltav) / Math.cos(s));
- eps = this.n * d;
- ro = this.ro0 * Math.pow(Math.tan(this.s0 / 2 + this.s45), this.n) / Math.pow(Math.tan(s / 2 + this.s45), this.n);
- p.y = ro * Math.cos(eps) / 1;
- p.x = ro * Math.sin(eps) / 1;
-
- if (!this.czech) {
- p.y *= -1;
- p.x *= -1;
- }
- return (p);
-};
-
-/* calculate lat/lon from xy */
-exports.inverse = function(p) {
- var u, deltav, s, d, eps, ro, fi1;
- var ok;
-
- /* Transformation */
- /* revert y, x*/
- var tmp = p.x;
- p.x = p.y;
- p.y = tmp;
- if (!this.czech) {
- p.y *= -1;
- p.x *= -1;
- }
- ro = Math.sqrt(p.x * p.x + p.y * p.y);
- eps = Math.atan2(p.y, p.x);
- d = eps / Math.sin(this.s0);
- s = 2 * (Math.atan(Math.pow(this.ro0 / ro, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45);
- u = Math.asin(Math.cos(this.ad) * Math.sin(s) - Math.sin(this.ad) * Math.cos(s) * Math.cos(d));
- deltav = Math.asin(Math.cos(s) * Math.sin(d) / Math.cos(u));
- p.x = this.long0 - deltav / this.alfa;
- fi1 = u;
- ok = 0;
- var iter = 0;
- do {
- p.y = 2 * (Math.atan(Math.pow(this.k, - 1 / this.alfa) * Math.pow(Math.tan(u / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(fi1)) / (1 - this.e * Math.sin(fi1)), this.e / 2)) - this.s45);
- if (Math.abs(fi1 - p.y) < 0.0000000001) {
- ok = 1;
- }
- fi1 = p.y;
- iter += 1;
- } while (ok === 0 && iter < 15);
- if (iter >= 15) {
- return null;
- }
-
- return (p);
-};
-exports.names = ["Krovak", "krovak"];
-
-},{"../common/adjust_lon":5}],49:[function(_dereq_,module,exports){
-var HALF_PI = Math.PI/2;
-var FORTPI = Math.PI/4;
-var EPSLN = 1.0e-10;
-var qsfnz = _dereq_('../common/qsfnz');
-var adjust_lon = _dereq_('../common/adjust_lon');
-/*
- reference
- "New Equal-Area Map Projections for Noncircular Regions", John P. Snyder,
- The American Cartographer, Vol 15, No. 4, October 1988, pp. 341-355.
- */
-
-exports.S_POLE = 1;
-exports.N_POLE = 2;
-exports.EQUIT = 3;
-exports.OBLIQ = 4;
-
-
-/* Initialize the Lambert Azimuthal Equal Area projection
- ------------------------------------------------------*/
-exports.init = function() {
- var t = Math.abs(this.lat0);
- if (Math.abs(t - HALF_PI) < EPSLN) {
- this.mode = this.lat0 < 0 ? this.S_POLE : this.N_POLE;
- }
- else if (Math.abs(t) < EPSLN) {
- this.mode = this.EQUIT;
- }
- else {
- this.mode = this.OBLIQ;
- }
- if (this.es > 0) {
- var sinphi;
-
- this.qp = qsfnz(this.e, 1);
- this.mmf = 0.5 / (1 - this.es);
- this.apa = this.authset(this.es);
- switch (this.mode) {
- case this.N_POLE:
- this.dd = 1;
- break;
- case this.S_POLE:
- this.dd = 1;
- break;
- case this.EQUIT:
- this.rq = Math.sqrt(0.5 * this.qp);
- this.dd = 1 / this.rq;
- this.xmf = 1;
- this.ymf = 0.5 * this.qp;
- break;
- case this.OBLIQ:
- this.rq = Math.sqrt(0.5 * this.qp);
- sinphi = Math.sin(this.lat0);
- this.sinb1 = qsfnz(this.e, sinphi) / this.qp;
- this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1);
- this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * sinphi * sinphi) * this.rq * this.cosb1);
- this.ymf = (this.xmf = this.rq) / this.dd;
- this.xmf *= this.dd;
- break;
- }
- }
- else {
- if (this.mode === this.OBLIQ) {
- this.sinph0 = Math.sin(this.lat0);
- this.cosph0 = Math.cos(this.lat0);
- }
- }
-};
-
-/* Lambert Azimuthal Equal Area forward equations--mapping lat,long to x,y
- -----------------------------------------------------------------------*/
-exports.forward = function(p) {
-
- /* Forward equations
- -----------------*/
- var x, y, coslam, sinlam, sinphi, q, sinb, cosb, b, cosphi;
- var lam = p.x;
- var phi = p.y;
-
- lam = adjust_lon(lam - this.long0);
-
- if (this.sphere) {
- sinphi = Math.sin(phi);
- cosphi = Math.cos(phi);
- coslam = Math.cos(lam);
- if (this.mode === this.OBLIQ || this.mode === this.EQUIT) {
- y = (this.mode === this.EQUIT) ? 1 + cosphi * coslam : 1 + this.sinph0 * sinphi + this.cosph0 * cosphi * coslam;
- if (y <= EPSLN) {
- return null;
- }
- y = Math.sqrt(2 / y);
- x = y * cosphi * Math.sin(lam);
- y *= (this.mode === this.EQUIT) ? sinphi : this.cosph0 * sinphi - this.sinph0 * cosphi * coslam;
- }
- else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
- if (this.mode === this.N_POLE) {
- coslam = -coslam;
- }
- if (Math.abs(phi + this.phi0) < EPSLN) {
- return null;
- }
- y = FORTPI - phi * 0.5;
- y = 2 * ((this.mode === this.S_POLE) ? Math.cos(y) : Math.sin(y));
- x = y * Math.sin(lam);
- y *= coslam;
- }
- }
- else {
- sinb = 0;
- cosb = 0;
- b = 0;
- coslam = Math.cos(lam);
- sinlam = Math.sin(lam);
- sinphi = Math.sin(phi);
- q = qsfnz(this.e, sinphi);
- if (this.mode === this.OBLIQ || this.mode === this.EQUIT) {
- sinb = q / this.qp;
- cosb = Math.sqrt(1 - sinb * sinb);
- }
- switch (this.mode) {
- case this.OBLIQ:
- b = 1 + this.sinb1 * sinb + this.cosb1 * cosb * coslam;
- break;
- case this.EQUIT:
- b = 1 + cosb * coslam;
- break;
- case this.N_POLE:
- b = HALF_PI + phi;
- q = this.qp - q;
- break;
- case this.S_POLE:
- b = phi - HALF_PI;
- q = this.qp + q;
- break;
- }
- if (Math.abs(b) < EPSLN) {
- return null;
- }
- switch (this.mode) {
- case this.OBLIQ:
- case this.EQUIT:
- b = Math.sqrt(2 / b);
- if (this.mode === this.OBLIQ) {
- y = this.ymf * b * (this.cosb1 * sinb - this.sinb1 * cosb * coslam);
- }
- else {
- y = (b = Math.sqrt(2 / (1 + cosb * coslam))) * sinb * this.ymf;
- }
- x = this.xmf * b * cosb * sinlam;
- break;
- case this.N_POLE:
- case this.S_POLE:
- if (q >= 0) {
- x = (b = Math.sqrt(q)) * sinlam;
- y = coslam * ((this.mode === this.S_POLE) ? b : -b);
- }
- else {
- x = y = 0;
- }
- break;
- }
- }
-
- p.x = this.a * x + this.x0;
- p.y = this.a * y + this.y0;
- return p;
-};
-
-/* Inverse equations
- -----------------*/
-exports.inverse = function(p) {
- p.x -= this.x0;
- p.y -= this.y0;
- var x = p.x / this.a;
- var y = p.y / this.a;
- var lam, phi, cCe, sCe, q, rho, ab;
-
- if (this.sphere) {
- var cosz = 0,
- rh, sinz = 0;
-
- rh = Math.sqrt(x * x + y * y);
- phi = rh * 0.5;
- if (phi > 1) {
- return null;
- }
- phi = 2 * Math.asin(phi);
- if (this.mode === this.OBLIQ || this.mode === this.EQUIT) {
- sinz = Math.sin(phi);
- cosz = Math.cos(phi);
- }
- switch (this.mode) {
- case this.EQUIT:
- phi = (Math.abs(rh) <= EPSLN) ? 0 : Math.asin(y * sinz / rh);
- x *= sinz;
- y = cosz * rh;
- break;
- case this.OBLIQ:
- phi = (Math.abs(rh) <= EPSLN) ? this.phi0 : Math.asin(cosz * this.sinph0 + y * sinz * this.cosph0 / rh);
- x *= sinz * this.cosph0;
- y = (cosz - Math.sin(phi) * this.sinph0) * rh;
- break;
- case this.N_POLE:
- y = -y;
- phi = HALF_PI - phi;
- break;
- case this.S_POLE:
- phi -= HALF_PI;
- break;
- }
- lam = (y === 0 && (this.mode === this.EQUIT || this.mode === this.OBLIQ)) ? 0 : Math.atan2(x, y);
- }
- else {
- ab = 0;
- if (this.mode === this.OBLIQ || this.mode === this.EQUIT) {
- x /= this.dd;
- y *= this.dd;
- rho = Math.sqrt(x * x + y * y);
- if (rho < EPSLN) {
- p.x = 0;
- p.y = this.phi0;
- return p;
- }
- sCe = 2 * Math.asin(0.5 * rho / this.rq);
- cCe = Math.cos(sCe);
- x *= (sCe = Math.sin(sCe));
- if (this.mode === this.OBLIQ) {
- ab = cCe * this.sinb1 + y * sCe * this.cosb1 / rho;
- q = this.qp * ab;
- y = rho * this.cosb1 * cCe - y * this.sinb1 * sCe;
- }
- else {
- ab = y * sCe / rho;
- q = this.qp * ab;
- y = rho * cCe;
- }
- }
- else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
- if (this.mode === this.N_POLE) {
- y = -y;
- }
- q = (x * x + y * y);
- if (!q) {
- p.x = 0;
- p.y = this.phi0;
- return p;
- }
- ab = 1 - q / this.qp;
- if (this.mode === this.S_POLE) {
- ab = -ab;
- }
- }
- lam = Math.atan2(x, y);
- phi = this.authlat(Math.asin(ab), this.apa);
- }
-
-
- p.x = adjust_lon(this.long0 + lam);
- p.y = phi;
- return p;
-};
-
-/* determine latitude from authalic latitude */
-exports.P00 = 0.33333333333333333333;
-exports.P01 = 0.17222222222222222222;
-exports.P02 = 0.10257936507936507936;
-exports.P10 = 0.06388888888888888888;
-exports.P11 = 0.06640211640211640211;
-exports.P20 = 0.01641501294219154443;
-
-exports.authset = function(es) {
- var t;
- var APA = [];
- APA[0] = es * this.P00;
- t = es * es;
- APA[0] += t * this.P01;
- APA[1] = t * this.P10;
- t *= es;
- APA[0] += t * this.P02;
- APA[1] += t * this.P11;
- APA[2] = t * this.P20;
- return APA;
-};
-
-exports.authlat = function(beta, APA) {
- var t = beta + beta;
- return (beta + APA[0] * Math.sin(t) + APA[1] * Math.sin(t + t) + APA[2] * Math.sin(t + t + t));
-};
-exports.names = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"];
-
-},{"../common/adjust_lon":5,"../common/qsfnz":20}],50:[function(_dereq_,module,exports){
-var EPSLN = 1.0e-10;
-var msfnz = _dereq_('../common/msfnz');
-var tsfnz = _dereq_('../common/tsfnz');
-var HALF_PI = Math.PI/2;
-var sign = _dereq_('../common/sign');
-var adjust_lon = _dereq_('../common/adjust_lon');
-var phi2z = _dereq_('../common/phi2z');
-exports.init = function() {
-
- // array of: r_maj,r_min,lat1,lat2,c_lon,c_lat,false_east,false_north
- //double c_lat; /* center latitude */
- //double c_lon; /* center longitude */
- //double lat1; /* first standard parallel */
- //double lat2; /* second standard parallel */
- //double r_maj; /* major axis */
- //double r_min; /* minor axis */
- //double false_east; /* x offset in meters */
- //double false_north; /* y offset in meters */
-
- if (!this.lat2) {
- this.lat2 = this.lat1;
- } //if lat2 is not defined
- if (!this.k0) {
- this.k0 = 1;
- }
- this.x0 = this.x0 || 0;
- this.y0 = this.y0 || 0;
- // Standard Parallels cannot be equal and on opposite sides of the equator
- if (Math.abs(this.lat1 + this.lat2) < EPSLN) {
- return;
- }
-
- var temp = this.b / this.a;
- this.e = Math.sqrt(1 - temp * temp);
-
- var sin1 = Math.sin(this.lat1);
- var cos1 = Math.cos(this.lat1);
- var ms1 = msfnz(this.e, sin1, cos1);
- var ts1 = tsfnz(this.e, this.lat1, sin1);
-
- var sin2 = Math.sin(this.lat2);
- var cos2 = Math.cos(this.lat2);
- var ms2 = msfnz(this.e, sin2, cos2);
- var ts2 = tsfnz(this.e, this.lat2, sin2);
-
- var ts0 = tsfnz(this.e, this.lat0, Math.sin(this.lat0));
-
- if (Math.abs(this.lat1 - this.lat2) > EPSLN) {
- this.ns = Math.log(ms1 / ms2) / Math.log(ts1 / ts2);
- }
- else {
- this.ns = sin1;
- }
- if (isNaN(this.ns)) {
- this.ns = sin1;
- }
- this.f0 = ms1 / (this.ns * Math.pow(ts1, this.ns));
- this.rh = this.a * this.f0 * Math.pow(ts0, this.ns);
- if (!this.title) {
- this.title = "Lambert Conformal Conic";
- }
-};
-
-
-// Lambert Conformal conic forward equations--mapping lat,long to x,y
-// -----------------------------------------------------------------
-exports.forward = function(p) {
-
- var lon = p.x;
- var lat = p.y;
-
- // singular cases :
- if (Math.abs(2 * Math.abs(lat) - Math.PI) <= EPSLN) {
- lat = sign(lat) * (HALF_PI - 2 * EPSLN);
- }
-
- var con = Math.abs(Math.abs(lat) - HALF_PI);
- var ts, rh1;
- if (con > EPSLN) {
- ts = tsfnz(this.e, lat, Math.sin(lat));
- rh1 = this.a * this.f0 * Math.pow(ts, this.ns);
- }
- else {
- con = lat * this.ns;
- if (con <= 0) {
- return null;
- }
- rh1 = 0;
- }
- var theta = this.ns * adjust_lon(lon - this.long0);
- p.x = this.k0 * (rh1 * Math.sin(theta)) + this.x0;
- p.y = this.k0 * (this.rh - rh1 * Math.cos(theta)) + this.y0;
-
- return p;
-};
-
-// Lambert Conformal Conic inverse equations--mapping x,y to lat/long
-// -----------------------------------------------------------------
-exports.inverse = function(p) {
-
- var rh1, con, ts;
- var lat, lon;
- var x = (p.x - this.x0) / this.k0;
- var y = (this.rh - (p.y - this.y0) / this.k0);
- if (this.ns > 0) {
- rh1 = Math.sqrt(x * x + y * y);
- con = 1;
- }
- else {
- rh1 = -Math.sqrt(x * x + y * y);
- con = -1;
- }
- var theta = 0;
- if (rh1 !== 0) {
- theta = Math.atan2((con * x), (con * y));
- }
- if ((rh1 !== 0) || (this.ns > 0)) {
- con = 1 / this.ns;
- ts = Math.pow((rh1 / (this.a * this.f0)), con);
- lat = phi2z(this.e, ts);
- if (lat === -9999) {
- return null;
- }
- }
- else {
- lat = -HALF_PI;
- }
- lon = adjust_lon(theta / this.ns + this.long0);
-
- p.x = lon;
- p.y = lat;
- return p;
-};
-
-exports.names = ["Lambert Tangential Conformal Conic Projection", "Lambert_Conformal_Conic", "Lambert_Conformal_Conic_2SP", "lcc"];
-
-},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/sign":21,"../common/tsfnz":24}],51:[function(_dereq_,module,exports){
-exports.init = function() {
- //no-op for longlat
-};
-
-function identity(pt) {
- return pt;
-}
-exports.forward = identity;
-exports.inverse = identity;
-exports.names = ["longlat", "identity"];
-
-},{}],52:[function(_dereq_,module,exports){
-var msfnz = _dereq_('../common/msfnz');
-var HALF_PI = Math.PI/2;
-var EPSLN = 1.0e-10;
-var R2D = 57.29577951308232088;
-var adjust_lon = _dereq_('../common/adjust_lon');
-var FORTPI = Math.PI/4;
-var tsfnz = _dereq_('../common/tsfnz');
-var phi2z = _dereq_('../common/phi2z');
-exports.init = function() {
- var con = this.b / this.a;
- this.es = 1 - con * con;
- if(!('x0' in this)){
- this.x0 = 0;
- }
- if(!('y0' in this)){
- this.y0 = 0;
- }
- this.e = Math.sqrt(this.es);
- if (this.lat_ts) {
- if (this.sphere) {
- this.k0 = Math.cos(this.lat_ts);
- }
- else {
- this.k0 = msfnz(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts));
- }
- }
- else {
- if (!this.k0) {
- if (this.k) {
- this.k0 = this.k;
- }
- else {
- this.k0 = 1;
- }
- }
- }
-};
-
-/* Mercator forward equations--mapping lat,long to x,y
- --------------------------------------------------*/
-
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
- // convert to radians
- if (lat * R2D > 90 && lat * R2D < -90 && lon * R2D > 180 && lon * R2D < -180) {
- return null;
- }
-
- var x, y;
- if (Math.abs(Math.abs(lat) - HALF_PI) <= EPSLN) {
- return null;
- }
- else {
- if (this.sphere) {
- x = this.x0 + this.a * this.k0 * adjust_lon(lon - this.long0);
- y = this.y0 + this.a * this.k0 * Math.log(Math.tan(FORTPI + 0.5 * lat));
- }
- else {
- var sinphi = Math.sin(lat);
- var ts = tsfnz(this.e, lat, sinphi);
- x = this.x0 + this.a * this.k0 * adjust_lon(lon - this.long0);
- y = this.y0 - this.a * this.k0 * Math.log(ts);
- }
- p.x = x;
- p.y = y;
- return p;
- }
-};
-
-
-/* Mercator inverse equations--mapping x,y to lat/long
- --------------------------------------------------*/
-exports.inverse = function(p) {
-
- var x = p.x - this.x0;
- var y = p.y - this.y0;
- var lon, lat;
-
- if (this.sphere) {
- lat = HALF_PI - 2 * Math.atan(Math.exp(-y / (this.a * this.k0)));
- }
- else {
- var ts = Math.exp(-y / (this.a * this.k0));
- lat = phi2z(this.e, ts);
- if (lat === -9999) {
- return null;
- }
- }
- lon = adjust_lon(this.long0 + x / (this.a * this.k0));
-
- p.x = lon;
- p.y = lat;
- return p;
-};
-
-exports.names = ["Mercator", "Popular Visualisation Pseudo Mercator", "Mercator_1SP", "Mercator_Auxiliary_Sphere", "merc"];
-
-},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/tsfnz":24}],53:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-/*
- reference
- "New Equal-Area Map Projections for Noncircular Regions", John P. Snyder,
- The American Cartographer, Vol 15, No. 4, October 1988, pp. 341-355.
- */
-
-
-/* Initialize the Miller Cylindrical projection
- -------------------------------------------*/
-exports.init = function() {
- //no-op
-};
-
-
-/* Miller Cylindrical forward equations--mapping lat,long to x,y
- ------------------------------------------------------------*/
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
- /* Forward equations
- -----------------*/
- var dlon = adjust_lon(lon - this.long0);
- var x = this.x0 + this.a * dlon;
- var y = this.y0 + this.a * Math.log(Math.tan((Math.PI / 4) + (lat / 2.5))) * 1.25;
-
- p.x = x;
- p.y = y;
- return p;
-};
-
-/* Miller Cylindrical inverse equations--mapping x,y to lat/long
- ------------------------------------------------------------*/
-exports.inverse = function(p) {
- p.x -= this.x0;
- p.y -= this.y0;
-
- var lon = adjust_lon(this.long0 + p.x / this.a);
- var lat = 2.5 * (Math.atan(Math.exp(0.8 * p.y / this.a)) - Math.PI / 4);
-
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["Miller_Cylindrical", "mill"];
-
-},{"../common/adjust_lon":5}],54:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-var EPSLN = 1.0e-10;
-exports.init = function() {};
-
-/* Mollweide forward equations--mapping lat,long to x,y
- ----------------------------------------------------*/
-exports.forward = function(p) {
-
- /* Forward equations
- -----------------*/
- var lon = p.x;
- var lat = p.y;
-
- var delta_lon = adjust_lon(lon - this.long0);
- var theta = lat;
- var con = Math.PI * Math.sin(lat);
-
- /* Iterate using the Newton-Raphson method to find theta
- -----------------------------------------------------*/
- for (var i = 0; true; i++) {
- var delta_theta = -(theta + Math.sin(theta) - con) / (1 + Math.cos(theta));
- theta += delta_theta;
- if (Math.abs(delta_theta) < EPSLN) {
- break;
- }
- }
- theta /= 2;
-
- /* If the latitude is 90 deg, force the x coordinate to be "0 + false easting"
- this is done here because of precision problems with "cos(theta)"
- --------------------------------------------------------------------------*/
- if (Math.PI / 2 - Math.abs(lat) < EPSLN) {
- delta_lon = 0;
- }
- var x = 0.900316316158 * this.a * delta_lon * Math.cos(theta) + this.x0;
- var y = 1.4142135623731 * this.a * Math.sin(theta) + this.y0;
-
- p.x = x;
- p.y = y;
- return p;
-};
-
-exports.inverse = function(p) {
- var theta;
- var arg;
-
- /* Inverse equations
- -----------------*/
- p.x -= this.x0;
- p.y -= this.y0;
- arg = p.y / (1.4142135623731 * this.a);
-
- /* Because of division by zero problems, 'arg' can not be 1. Therefore
- a number very close to one is used instead.
- -------------------------------------------------------------------*/
- if (Math.abs(arg) > 0.999999999999) {
- arg = 0.999999999999;
- }
- theta = Math.asin(arg);
- var lon = adjust_lon(this.long0 + (p.x / (0.900316316158 * this.a * Math.cos(theta))));
- if (lon < (-Math.PI)) {
- lon = -Math.PI;
- }
- if (lon > Math.PI) {
- lon = Math.PI;
- }
- arg = (2 * theta + Math.sin(2 * theta)) / Math.PI;
- if (Math.abs(arg) > 1) {
- arg = 1;
- }
- var lat = Math.asin(arg);
-
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["Mollweide", "moll"];
-
-},{"../common/adjust_lon":5}],55:[function(_dereq_,module,exports){
-var SEC_TO_RAD = 4.84813681109535993589914102357e-6;
-/*
- reference
- Department of Land and Survey Technical Circular 1973/32
- http://www.linz.govt.nz/docs/miscellaneous/nz-map-definition.pdf
- OSG Technical Report 4.1
- http://www.linz.govt.nz/docs/miscellaneous/nzmg.pdf
- */
-
-/**
- * iterations: Number of iterations to refine inverse transform.
- * 0 -> km accuracy
- * 1 -> m accuracy -- suitable for most mapping applications
- * 2 -> mm accuracy
- */
-exports.iterations = 1;
-
-exports.init = function() {
- this.A = [];
- this.A[1] = 0.6399175073;
- this.A[2] = -0.1358797613;
- this.A[3] = 0.063294409;
- this.A[4] = -0.02526853;
- this.A[5] = 0.0117879;
- this.A[6] = -0.0055161;
- this.A[7] = 0.0026906;
- this.A[8] = -0.001333;
- this.A[9] = 0.00067;
- this.A[10] = -0.00034;
-
- this.B_re = [];
- this.B_im = [];
- this.B_re[1] = 0.7557853228;
- this.B_im[1] = 0;
- this.B_re[2] = 0.249204646;
- this.B_im[2] = 0.003371507;
- this.B_re[3] = -0.001541739;
- this.B_im[3] = 0.041058560;
- this.B_re[4] = -0.10162907;
- this.B_im[4] = 0.01727609;
- this.B_re[5] = -0.26623489;
- this.B_im[5] = -0.36249218;
- this.B_re[6] = -0.6870983;
- this.B_im[6] = -1.1651967;
-
- this.C_re = [];
- this.C_im = [];
- this.C_re[1] = 1.3231270439;
- this.C_im[1] = 0;
- this.C_re[2] = -0.577245789;
- this.C_im[2] = -0.007809598;
- this.C_re[3] = 0.508307513;
- this.C_im[3] = -0.112208952;
- this.C_re[4] = -0.15094762;
- this.C_im[4] = 0.18200602;
- this.C_re[5] = 1.01418179;
- this.C_im[5] = 1.64497696;
- this.C_re[6] = 1.9660549;
- this.C_im[6] = 2.5127645;
-
- this.D = [];
- this.D[1] = 1.5627014243;
- this.D[2] = 0.5185406398;
- this.D[3] = -0.03333098;
- this.D[4] = -0.1052906;
- this.D[5] = -0.0368594;
- this.D[6] = 0.007317;
- this.D[7] = 0.01220;
- this.D[8] = 0.00394;
- this.D[9] = -0.0013;
-};
-
-/**
- New Zealand Map Grid Forward - long/lat to x/y
- long/lat in radians
- */
-exports.forward = function(p) {
- var n;
- var lon = p.x;
- var lat = p.y;
-
- var delta_lat = lat - this.lat0;
- var delta_lon = lon - this.long0;
-
- // 1. Calculate d_phi and d_psi ... // and d_lambda
- // For this algorithm, delta_latitude is in seconds of arc x 10-5, so we need to scale to those units. Longitude is radians.
- var d_phi = delta_lat / SEC_TO_RAD * 1E-5;
- var d_lambda = delta_lon;
- var d_phi_n = 1; // d_phi^0
-
- var d_psi = 0;
- for (n = 1; n <= 10; n++) {
- d_phi_n = d_phi_n * d_phi;
- d_psi = d_psi + this.A[n] * d_phi_n;
- }
-
- // 2. Calculate theta
- var th_re = d_psi;
- var th_im = d_lambda;
-
- // 3. Calculate z
- var th_n_re = 1;
- var th_n_im = 0; // theta^0
- var th_n_re1;
- var th_n_im1;
-
- var z_re = 0;
- var z_im = 0;
- for (n = 1; n <= 6; n++) {
- th_n_re1 = th_n_re * th_re - th_n_im * th_im;
- th_n_im1 = th_n_im * th_re + th_n_re * th_im;
- th_n_re = th_n_re1;
- th_n_im = th_n_im1;
- z_re = z_re + this.B_re[n] * th_n_re - this.B_im[n] * th_n_im;
- z_im = z_im + this.B_im[n] * th_n_re + this.B_re[n] * th_n_im;
- }
-
- // 4. Calculate easting and northing
- p.x = (z_im * this.a) + this.x0;
- p.y = (z_re * this.a) + this.y0;
-
- return p;
-};
-
-
-/**
- New Zealand Map Grid Inverse - x/y to long/lat
- */
-exports.inverse = function(p) {
- var n;
- var x = p.x;
- var y = p.y;
-
- var delta_x = x - this.x0;
- var delta_y = y - this.y0;
-
- // 1. Calculate z
- var z_re = delta_y / this.a;
- var z_im = delta_x / this.a;
-
- // 2a. Calculate theta - first approximation gives km accuracy
- var z_n_re = 1;
- var z_n_im = 0; // z^0
- var z_n_re1;
- var z_n_im1;
-
- var th_re = 0;
- var th_im = 0;
- for (n = 1; n <= 6; n++) {
- z_n_re1 = z_n_re * z_re - z_n_im * z_im;
- z_n_im1 = z_n_im * z_re + z_n_re * z_im;
- z_n_re = z_n_re1;
- z_n_im = z_n_im1;
- th_re = th_re + this.C_re[n] * z_n_re - this.C_im[n] * z_n_im;
- th_im = th_im + this.C_im[n] * z_n_re + this.C_re[n] * z_n_im;
- }
-
- // 2b. Iterate to refine the accuracy of the calculation
- // 0 iterations gives km accuracy
- // 1 iteration gives m accuracy -- good enough for most mapping applications
- // 2 iterations bives mm accuracy
- for (var i = 0; i < this.iterations; i++) {
- var th_n_re = th_re;
- var th_n_im = th_im;
- var th_n_re1;
- var th_n_im1;
-
- var num_re = z_re;
- var num_im = z_im;
- for (n = 2; n <= 6; n++) {
- th_n_re1 = th_n_re * th_re - th_n_im * th_im;
- th_n_im1 = th_n_im * th_re + th_n_re * th_im;
- th_n_re = th_n_re1;
- th_n_im = th_n_im1;
- num_re = num_re + (n - 1) * (this.B_re[n] * th_n_re - this.B_im[n] * th_n_im);
- num_im = num_im + (n - 1) * (this.B_im[n] * th_n_re + this.B_re[n] * th_n_im);
- }
-
- th_n_re = 1;
- th_n_im = 0;
- var den_re = this.B_re[1];
- var den_im = this.B_im[1];
- for (n = 2; n <= 6; n++) {
- th_n_re1 = th_n_re * th_re - th_n_im * th_im;
- th_n_im1 = th_n_im * th_re + th_n_re * th_im;
- th_n_re = th_n_re1;
- th_n_im = th_n_im1;
- den_re = den_re + n * (this.B_re[n] * th_n_re - this.B_im[n] * th_n_im);
- den_im = den_im + n * (this.B_im[n] * th_n_re + this.B_re[n] * th_n_im);
- }
-
- // Complex division
- var den2 = den_re * den_re + den_im * den_im;
- th_re = (num_re * den_re + num_im * den_im) / den2;
- th_im = (num_im * den_re - num_re * den_im) / den2;
- }
-
- // 3. Calculate d_phi ... // and d_lambda
- var d_psi = th_re;
- var d_lambda = th_im;
- var d_psi_n = 1; // d_psi^0
-
- var d_phi = 0;
- for (n = 1; n <= 9; n++) {
- d_psi_n = d_psi_n * d_psi;
- d_phi = d_phi + this.D[n] * d_psi_n;
- }
-
- // 4. Calculate latitude and longitude
- // d_phi is calcuated in second of arc * 10^-5, so we need to scale back to radians. d_lambda is in radians.
- var lat = this.lat0 + (d_phi * SEC_TO_RAD * 1E5);
- var lon = this.long0 + d_lambda;
-
- p.x = lon;
- p.y = lat;
-
- return p;
-};
-exports.names = ["New_Zealand_Map_Grid", "nzmg"];
-},{}],56:[function(_dereq_,module,exports){
-var tsfnz = _dereq_('../common/tsfnz');
-var adjust_lon = _dereq_('../common/adjust_lon');
-var phi2z = _dereq_('../common/phi2z');
-var HALF_PI = Math.PI/2;
-var FORTPI = Math.PI/4;
-var EPSLN = 1.0e-10;
-
-/* Initialize the Oblique Mercator projection
- ------------------------------------------*/
-exports.init = function() {
- this.no_off = this.no_off || false;
- this.no_rot = this.no_rot || false;
-
- if (isNaN(this.k0)) {
- this.k0 = 1;
- }
- var sinlat = Math.sin(this.lat0);
- var coslat = Math.cos(this.lat0);
- var con = this.e * sinlat;
-
- this.bl = Math.sqrt(1 + this.es / (1 - this.es) * Math.pow(coslat, 4));
- this.al = this.a * this.bl * this.k0 * Math.sqrt(1 - this.es) / (1 - con * con);
- var t0 = tsfnz(this.e, this.lat0, sinlat);
- var dl = this.bl / coslat * Math.sqrt((1 - this.es) / (1 - con * con));
- if (dl * dl < 1) {
- dl = 1;
- }
- var fl;
- var gl;
- if (!isNaN(this.longc)) {
- //Central point and azimuth method
-
- if (this.lat0 >= 0) {
- fl = dl + Math.sqrt(dl * dl - 1);
- }
- else {
- fl = dl - Math.sqrt(dl * dl - 1);
- }
- this.el = fl * Math.pow(t0, this.bl);
- gl = 0.5 * (fl - 1 / fl);
- this.gamma0 = Math.asin(Math.sin(this.alpha) / dl);
- this.long0 = this.longc - Math.asin(gl * Math.tan(this.gamma0)) / this.bl;
-
- }
- else {
- //2 points method
- var t1 = tsfnz(this.e, this.lat1, Math.sin(this.lat1));
- var t2 = tsfnz(this.e, this.lat2, Math.sin(this.lat2));
- if (this.lat0 >= 0) {
- this.el = (dl + Math.sqrt(dl * dl - 1)) * Math.pow(t0, this.bl);
- }
- else {
- this.el = (dl - Math.sqrt(dl * dl - 1)) * Math.pow(t0, this.bl);
- }
- var hl = Math.pow(t1, this.bl);
- var ll = Math.pow(t2, this.bl);
- fl = this.el / hl;
- gl = 0.5 * (fl - 1 / fl);
- var jl = (this.el * this.el - ll * hl) / (this.el * this.el + ll * hl);
- var pl = (ll - hl) / (ll + hl);
- var dlon12 = adjust_lon(this.long1 - this.long2);
- this.long0 = 0.5 * (this.long1 + this.long2) - Math.atan(jl * Math.tan(0.5 * this.bl * (dlon12)) / pl) / this.bl;
- this.long0 = adjust_lon(this.long0);
- var dlon10 = adjust_lon(this.long1 - this.long0);
- this.gamma0 = Math.atan(Math.sin(this.bl * (dlon10)) / gl);
- this.alpha = Math.asin(dl * Math.sin(this.gamma0));
- }
-
- if (this.no_off) {
- this.uc = 0;
- }
- else {
- if (this.lat0 >= 0) {
- this.uc = this.al / this.bl * Math.atan2(Math.sqrt(dl * dl - 1), Math.cos(this.alpha));
- }
- else {
- this.uc = -1 * this.al / this.bl * Math.atan2(Math.sqrt(dl * dl - 1), Math.cos(this.alpha));
- }
- }
-
-};
-
-
-/* Oblique Mercator forward equations--mapping lat,long to x,y
- ----------------------------------------------------------*/
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
- var dlon = adjust_lon(lon - this.long0);
- var us, vs;
- var con;
- if (Math.abs(Math.abs(lat) - HALF_PI) <= EPSLN) {
- if (lat > 0) {
- con = -1;
- }
- else {
- con = 1;
- }
- vs = this.al / this.bl * Math.log(Math.tan(FORTPI + con * this.gamma0 * 0.5));
- us = -1 * con * HALF_PI * this.al / this.bl;
- }
- else {
- var t = tsfnz(this.e, lat, Math.sin(lat));
- var ql = this.el / Math.pow(t, this.bl);
- var sl = 0.5 * (ql - 1 / ql);
- var tl = 0.5 * (ql + 1 / ql);
- var vl = Math.sin(this.bl * (dlon));
- var ul = (sl * Math.sin(this.gamma0) - vl * Math.cos(this.gamma0)) / tl;
- if (Math.abs(Math.abs(ul) - 1) <= EPSLN) {
- vs = Number.POSITIVE_INFINITY;
- }
- else {
- vs = 0.5 * this.al * Math.log((1 - ul) / (1 + ul)) / this.bl;
- }
- if (Math.abs(Math.cos(this.bl * (dlon))) <= EPSLN) {
- us = this.al * this.bl * (dlon);
- }
- else {
- us = this.al * Math.atan2(sl * Math.cos(this.gamma0) + vl * Math.sin(this.gamma0), Math.cos(this.bl * dlon)) / this.bl;
- }
- }
-
- if (this.no_rot) {
- p.x = this.x0 + us;
- p.y = this.y0 + vs;
- }
- else {
-
- us -= this.uc;
- p.x = this.x0 + vs * Math.cos(this.alpha) + us * Math.sin(this.alpha);
- p.y = this.y0 + us * Math.cos(this.alpha) - vs * Math.sin(this.alpha);
- }
- return p;
-};
-
-exports.inverse = function(p) {
- var us, vs;
- if (this.no_rot) {
- vs = p.y - this.y0;
- us = p.x - this.x0;
- }
- else {
- vs = (p.x - this.x0) * Math.cos(this.alpha) - (p.y - this.y0) * Math.sin(this.alpha);
- us = (p.y - this.y0) * Math.cos(this.alpha) + (p.x - this.x0) * Math.sin(this.alpha);
- us += this.uc;
- }
- var qp = Math.exp(-1 * this.bl * vs / this.al);
- var sp = 0.5 * (qp - 1 / qp);
- var tp = 0.5 * (qp + 1 / qp);
- var vp = Math.sin(this.bl * us / this.al);
- var up = (vp * Math.cos(this.gamma0) + sp * Math.sin(this.gamma0)) / tp;
- var ts = Math.pow(this.el / Math.sqrt((1 + up) / (1 - up)), 1 / this.bl);
- if (Math.abs(up - 1) < EPSLN) {
- p.x = this.long0;
- p.y = HALF_PI;
- }
- else if (Math.abs(up + 1) < EPSLN) {
- p.x = this.long0;
- p.y = -1 * HALF_PI;
- }
- else {
- p.y = phi2z(this.e, ts);
- p.x = adjust_lon(this.long0 - Math.atan2(sp * Math.cos(this.gamma0) - vp * Math.sin(this.gamma0), Math.cos(this.bl * us / this.al)) / this.bl);
- }
- return p;
-};
-
-exports.names = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "omerc"];
-},{"../common/adjust_lon":5,"../common/phi2z":16,"../common/tsfnz":24}],57:[function(_dereq_,module,exports){
-var e0fn = _dereq_('../common/e0fn');
-var e1fn = _dereq_('../common/e1fn');
-var e2fn = _dereq_('../common/e2fn');
-var e3fn = _dereq_('../common/e3fn');
-var adjust_lon = _dereq_('../common/adjust_lon');
-var adjust_lat = _dereq_('../common/adjust_lat');
-var mlfn = _dereq_('../common/mlfn');
-var EPSLN = 1.0e-10;
-var gN = _dereq_('../common/gN');
-var MAX_ITER = 20;
-exports.init = function() {
- /* Place parameters in static storage for common use
- -------------------------------------------------*/
- this.temp = this.b / this.a;
- this.es = 1 - Math.pow(this.temp, 2); // devait etre dans tmerc.js mais n y est pas donc je commente sinon retour de valeurs nulles
- this.e = Math.sqrt(this.es);
- this.e0 = e0fn(this.es);
- this.e1 = e1fn(this.es);
- this.e2 = e2fn(this.es);
- this.e3 = e3fn(this.es);
- this.ml0 = this.a * mlfn(this.e0, this.e1, this.e2, this.e3, this.lat0); //si que des zeros le calcul ne se fait pas
-};
-
-
-/* Polyconic forward equations--mapping lat,long to x,y
- ---------------------------------------------------*/
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
- var x, y, el;
- var dlon = adjust_lon(lon - this.long0);
- el = dlon * Math.sin(lat);
- if (this.sphere) {
- if (Math.abs(lat) <= EPSLN) {
- x = this.a * dlon;
- y = -1 * this.a * this.lat0;
- }
- else {
- x = this.a * Math.sin(el) / Math.tan(lat);
- y = this.a * (adjust_lat(lat - this.lat0) + (1 - Math.cos(el)) / Math.tan(lat));
- }
- }
- else {
- if (Math.abs(lat) <= EPSLN) {
- x = this.a * dlon;
- y = -1 * this.ml0;
- }
- else {
- var nl = gN(this.a, this.e, Math.sin(lat)) / Math.tan(lat);
- x = nl * Math.sin(el);
- y = this.a * mlfn(this.e0, this.e1, this.e2, this.e3, lat) - this.ml0 + nl * (1 - Math.cos(el));
- }
-
- }
- p.x = x + this.x0;
- p.y = y + this.y0;
- return p;
-};
-
-
-/* Inverse equations
- -----------------*/
-exports.inverse = function(p) {
- var lon, lat, x, y, i;
- var al, bl;
- var phi, dphi;
- x = p.x - this.x0;
- y = p.y - this.y0;
-
- if (this.sphere) {
- if (Math.abs(y + this.a * this.lat0) <= EPSLN) {
- lon = adjust_lon(x / this.a + this.long0);
- lat = 0;
- }
- else {
- al = this.lat0 + y / this.a;
- bl = x * x / this.a / this.a + al * al;
- phi = al;
- var tanphi;
- for (i = MAX_ITER; i; --i) {
- tanphi = Math.tan(phi);
- dphi = -1 * (al * (phi * tanphi + 1) - phi - 0.5 * (phi * phi + bl) * tanphi) / ((phi - al) / tanphi - 1);
- phi += dphi;
- if (Math.abs(dphi) <= EPSLN) {
- lat = phi;
- break;
- }
- }
- lon = adjust_lon(this.long0 + (Math.asin(x * Math.tan(phi) / this.a)) / Math.sin(lat));
- }
- }
- else {
- if (Math.abs(y + this.ml0) <= EPSLN) {
- lat = 0;
- lon = adjust_lon(this.long0 + x / this.a);
- }
- else {
-
- al = (this.ml0 + y) / this.a;
- bl = x * x / this.a / this.a + al * al;
- phi = al;
- var cl, mln, mlnp, ma;
- var con;
- for (i = MAX_ITER; i; --i) {
- con = this.e * Math.sin(phi);
- cl = Math.sqrt(1 - con * con) * Math.tan(phi);
- mln = this.a * mlfn(this.e0, this.e1, this.e2, this.e3, phi);
- mlnp = this.e0 - 2 * this.e1 * Math.cos(2 * phi) + 4 * this.e2 * Math.cos(4 * phi) - 6 * this.e3 * Math.cos(6 * phi);
- ma = mln / this.a;
- dphi = (al * (cl * ma + 1) - ma - 0.5 * cl * (ma * ma + bl)) / (this.es * Math.sin(2 * phi) * (ma * ma + bl - 2 * al * ma) / (4 * cl) + (al - ma) * (cl * mlnp - 2 / Math.sin(2 * phi)) - mlnp);
- phi -= dphi;
- if (Math.abs(dphi) <= EPSLN) {
- lat = phi;
- break;
- }
- }
-
- //lat=phi4z(this.e,this.e0,this.e1,this.e2,this.e3,al,bl,0,0);
- cl = Math.sqrt(1 - this.es * Math.pow(Math.sin(lat), 2)) * Math.tan(lat);
- lon = adjust_lon(this.long0 + Math.asin(x * cl / this.a) / Math.sin(lat));
- }
- }
-
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["Polyconic", "poly"];
-},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/gN":11,"../common/mlfn":14}],58:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-var adjust_lat = _dereq_('../common/adjust_lat');
-var pj_enfn = _dereq_('../common/pj_enfn');
-var MAX_ITER = 20;
-var pj_mlfn = _dereq_('../common/pj_mlfn');
-var pj_inv_mlfn = _dereq_('../common/pj_inv_mlfn');
-var HALF_PI = Math.PI/2;
-var EPSLN = 1.0e-10;
-var asinz = _dereq_('../common/asinz');
-exports.init = function() {
- /* Place parameters in static storage for common use
- -------------------------------------------------*/
-
-
- if (!this.sphere) {
- this.en = pj_enfn(this.es);
- }
- else {
- this.n = 1;
- this.m = 0;
- this.es = 0;
- this.C_y = Math.sqrt((this.m + 1) / this.n);
- this.C_x = this.C_y / (this.m + 1);
- }
-
-};
-
-/* Sinusoidal forward equations--mapping lat,long to x,y
- -----------------------------------------------------*/
-exports.forward = function(p) {
- var x, y;
- var lon = p.x;
- var lat = p.y;
- /* Forward equations
- -----------------*/
- lon = adjust_lon(lon - this.long0);
-
- if (this.sphere) {
- if (!this.m) {
- lat = this.n !== 1 ? Math.asin(this.n * Math.sin(lat)) : lat;
- }
- else {
- var k = this.n * Math.sin(lat);
- for (var i = MAX_ITER; i; --i) {
- var V = (this.m * lat + Math.sin(lat) - k) / (this.m + Math.cos(lat));
- lat -= V;
- if (Math.abs(V) < EPSLN) {
- break;
- }
- }
- }
- x = this.a * this.C_x * lon * (this.m + Math.cos(lat));
- y = this.a * this.C_y * lat;
-
- }
- else {
-
- var s = Math.sin(lat);
- var c = Math.cos(lat);
- y = this.a * pj_mlfn(lat, s, c, this.en);
- x = this.a * lon * c / Math.sqrt(1 - this.es * s * s);
- }
-
- p.x = x;
- p.y = y;
- return p;
-};
-
-exports.inverse = function(p) {
- var lat, temp, lon, s;
-
- p.x -= this.x0;
- lon = p.x / this.a;
- p.y -= this.y0;
- lat = p.y / this.a;
-
- if (this.sphere) {
- lat /= this.C_y;
- lon = lon / (this.C_x * (this.m + Math.cos(lat)));
- if (this.m) {
- lat = asinz((this.m * lat + Math.sin(lat)) / this.n);
- }
- else if (this.n !== 1) {
- lat = asinz(Math.sin(lat) / this.n);
- }
- lon = adjust_lon(lon + this.long0);
- lat = adjust_lat(lat);
- }
- else {
- lat = pj_inv_mlfn(p.y / this.a, this.es, this.en);
- s = Math.abs(lat);
- if (s < HALF_PI) {
- s = Math.sin(lat);
- temp = this.long0 + p.x * Math.sqrt(1 - this.es * s * s) / (this.a * Math.cos(lat));
- //temp = this.long0 + p.x / (this.a * Math.cos(lat));
- lon = adjust_lon(temp);
- }
- else if ((s - EPSLN) < HALF_PI) {
- lon = this.long0;
- }
- }
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["Sinusoidal", "sinu"];
-},{"../common/adjust_lat":4,"../common/adjust_lon":5,"../common/asinz":6,"../common/pj_enfn":17,"../common/pj_inv_mlfn":18,"../common/pj_mlfn":19}],59:[function(_dereq_,module,exports){
-/*
- references:
- Formules et constantes pour le Calcul pour la
- projection cylindrique conforme à axe oblique et pour la transformation entre
- des systèmes de référence.
- http://www.swisstopo.admin.ch/internet/swisstopo/fr/home/topics/survey/sys/refsys/switzerland.parsysrelated1.31216.downloadList.77004.DownloadFile.tmp/swissprojectionfr.pdf
- */
-exports.init = function() {
- var phy0 = this.lat0;
- this.lambda0 = this.long0;
- var sinPhy0 = Math.sin(phy0);
- var semiMajorAxis = this.a;
- var invF = this.rf;
- var flattening = 1 / invF;
- var e2 = 2 * flattening - Math.pow(flattening, 2);
- var e = this.e = Math.sqrt(e2);
- this.R = this.k0 * semiMajorAxis * Math.sqrt(1 - e2) / (1 - e2 * Math.pow(sinPhy0, 2));
- this.alpha = Math.sqrt(1 + e2 / (1 - e2) * Math.pow(Math.cos(phy0), 4));
- this.b0 = Math.asin(sinPhy0 / this.alpha);
- var k1 = Math.log(Math.tan(Math.PI / 4 + this.b0 / 2));
- var k2 = Math.log(Math.tan(Math.PI / 4 + phy0 / 2));
- var k3 = Math.log((1 + e * sinPhy0) / (1 - e * sinPhy0));
- this.K = k1 - this.alpha * k2 + this.alpha * e / 2 * k3;
-};
-
-
-exports.forward = function(p) {
- var Sa1 = Math.log(Math.tan(Math.PI / 4 - p.y / 2));
- var Sa2 = this.e / 2 * Math.log((1 + this.e * Math.sin(p.y)) / (1 - this.e * Math.sin(p.y)));
- var S = -this.alpha * (Sa1 + Sa2) + this.K;
-
- // spheric latitude
- var b = 2 * (Math.atan(Math.exp(S)) - Math.PI / 4);
-
- // spheric longitude
- var I = this.alpha * (p.x - this.lambda0);
-
- // psoeudo equatorial rotation
- var rotI = Math.atan(Math.sin(I) / (Math.sin(this.b0) * Math.tan(b) + Math.cos(this.b0) * Math.cos(I)));
-
- var rotB = Math.asin(Math.cos(this.b0) * Math.sin(b) - Math.sin(this.b0) * Math.cos(b) * Math.cos(I));
-
- p.y = this.R / 2 * Math.log((1 + Math.sin(rotB)) / (1 - Math.sin(rotB))) + this.y0;
- p.x = this.R * rotI + this.x0;
- return p;
-};
-
-exports.inverse = function(p) {
- var Y = p.x - this.x0;
- var X = p.y - this.y0;
-
- var rotI = Y / this.R;
- var rotB = 2 * (Math.atan(Math.exp(X / this.R)) - Math.PI / 4);
-
- var b = Math.asin(Math.cos(this.b0) * Math.sin(rotB) + Math.sin(this.b0) * Math.cos(rotB) * Math.cos(rotI));
- var I = Math.atan(Math.sin(rotI) / (Math.cos(this.b0) * Math.cos(rotI) - Math.sin(this.b0) * Math.tan(rotB)));
-
- var lambda = this.lambda0 + I / this.alpha;
-
- var S = 0;
- var phy = b;
- var prevPhy = -1000;
- var iteration = 0;
- while (Math.abs(phy - prevPhy) > 0.0000001) {
- if (++iteration > 20) {
- //...reportError("omercFwdInfinity");
- return;
- }
- //S = Math.log(Math.tan(Math.PI / 4 + phy / 2));
- S = 1 / this.alpha * (Math.log(Math.tan(Math.PI / 4 + b / 2)) - this.K) + this.e * Math.log(Math.tan(Math.PI / 4 + Math.asin(this.e * Math.sin(phy)) / 2));
- prevPhy = phy;
- phy = 2 * Math.atan(Math.exp(S)) - Math.PI / 2;
- }
-
- p.x = lambda;
- p.y = phy;
- return p;
-};
-
-exports.names = ["somerc"];
-
-},{}],60:[function(_dereq_,module,exports){
-var HALF_PI = Math.PI/2;
-var EPSLN = 1.0e-10;
-var sign = _dereq_('../common/sign');
-var msfnz = _dereq_('../common/msfnz');
-var tsfnz = _dereq_('../common/tsfnz');
-var phi2z = _dereq_('../common/phi2z');
-var adjust_lon = _dereq_('../common/adjust_lon');
-exports.ssfn_ = function(phit, sinphi, eccen) {
- sinphi *= eccen;
- return (Math.tan(0.5 * (HALF_PI + phit)) * Math.pow((1 - sinphi) / (1 + sinphi), 0.5 * eccen));
-};
-
-exports.init = function() {
- this.coslat0 = Math.cos(this.lat0);
- this.sinlat0 = Math.sin(this.lat0);
- if (this.sphere) {
- if (this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= EPSLN) {
- this.k0 = 0.5 * (1 + sign(this.lat0) * Math.sin(this.lat_ts));
- }
- }
- else {
- if (Math.abs(this.coslat0) <= EPSLN) {
- if (this.lat0 > 0) {
- //North pole
- //trace('stere:north pole');
- this.con = 1;
- }
- else {
- //South pole
- //trace('stere:south pole');
- this.con = -1;
- }
- }
- this.cons = Math.sqrt(Math.pow(1 + this.e, 1 + this.e) * Math.pow(1 - this.e, 1 - this.e));
- if (this.k0 === 1 && !isNaN(this.lat_ts) && Math.abs(this.coslat0) <= EPSLN) {
- this.k0 = 0.5 * this.cons * msfnz(this.e, Math.sin(this.lat_ts), Math.cos(this.lat_ts)) / tsfnz(this.e, this.con * this.lat_ts, this.con * Math.sin(this.lat_ts));
- }
- this.ms1 = msfnz(this.e, this.sinlat0, this.coslat0);
- this.X0 = 2 * Math.atan(this.ssfn_(this.lat0, this.sinlat0, this.e)) - HALF_PI;
- this.cosX0 = Math.cos(this.X0);
- this.sinX0 = Math.sin(this.X0);
- }
-};
-
-// Stereographic forward equations--mapping lat,long to x,y
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
- var sinlat = Math.sin(lat);
- var coslat = Math.cos(lat);
- var A, X, sinX, cosX, ts, rh;
- var dlon = adjust_lon(lon - this.long0);
-
- if (Math.abs(Math.abs(lon - this.long0) - Math.PI) <= EPSLN && Math.abs(lat + this.lat0) <= EPSLN) {
- //case of the origine point
- //trace('stere:this is the origin point');
- p.x = NaN;
- p.y = NaN;
- return p;
- }
- if (this.sphere) {
- //trace('stere:sphere case');
- A = 2 * this.k0 / (1 + this.sinlat0 * sinlat + this.coslat0 * coslat * Math.cos(dlon));
- p.x = this.a * A * coslat * Math.sin(dlon) + this.x0;
- p.y = this.a * A * (this.coslat0 * sinlat - this.sinlat0 * coslat * Math.cos(dlon)) + this.y0;
- return p;
- }
- else {
- X = 2 * Math.atan(this.ssfn_(lat, sinlat, this.e)) - HALF_PI;
- cosX = Math.cos(X);
- sinX = Math.sin(X);
- if (Math.abs(this.coslat0) <= EPSLN) {
- ts = tsfnz(this.e, lat * this.con, this.con * sinlat);
- rh = 2 * this.a * this.k0 * ts / this.cons;
- p.x = this.x0 + rh * Math.sin(lon - this.long0);
- p.y = this.y0 - this.con * rh * Math.cos(lon - this.long0);
- //trace(p.toString());
- return p;
- }
- else if (Math.abs(this.sinlat0) < EPSLN) {
- //Eq
- //trace('stere:equateur');
- A = 2 * this.a * this.k0 / (1 + cosX * Math.cos(dlon));
- p.y = A * sinX;
- }
- else {
- //other case
- //trace('stere:normal case');
- A = 2 * this.a * this.k0 * this.ms1 / (this.cosX0 * (1 + this.sinX0 * sinX + this.cosX0 * cosX * Math.cos(dlon)));
- p.y = A * (this.cosX0 * sinX - this.sinX0 * cosX * Math.cos(dlon)) + this.y0;
- }
- p.x = A * cosX * Math.sin(dlon) + this.x0;
- }
- //trace(p.toString());
- return p;
-};
-
-
-//* Stereographic inverse equations--mapping x,y to lat/long
-exports.inverse = function(p) {
- p.x -= this.x0;
- p.y -= this.y0;
- var lon, lat, ts, ce, Chi;
- var rh = Math.sqrt(p.x * p.x + p.y * p.y);
- if (this.sphere) {
- var c = 2 * Math.atan(rh / (0.5 * this.a * this.k0));
- lon = this.long0;
- lat = this.lat0;
- if (rh <= EPSLN) {
- p.x = lon;
- p.y = lat;
- return p;
- }
- lat = Math.asin(Math.cos(c) * this.sinlat0 + p.y * Math.sin(c) * this.coslat0 / rh);
- if (Math.abs(this.coslat0) < EPSLN) {
- if (this.lat0 > 0) {
- lon = adjust_lon(this.long0 + Math.atan2(p.x, - 1 * p.y));
- }
- else {
- lon = adjust_lon(this.long0 + Math.atan2(p.x, p.y));
- }
- }
- else {
- lon = adjust_lon(this.long0 + Math.atan2(p.x * Math.sin(c), rh * this.coslat0 * Math.cos(c) - p.y * this.sinlat0 * Math.sin(c)));
- }
- p.x = lon;
- p.y = lat;
- return p;
- }
- else {
- if (Math.abs(this.coslat0) <= EPSLN) {
- if (rh <= EPSLN) {
- lat = this.lat0;
- lon = this.long0;
- p.x = lon;
- p.y = lat;
- //trace(p.toString());
- return p;
- }
- p.x *= this.con;
- p.y *= this.con;
- ts = rh * this.cons / (2 * this.a * this.k0);
- lat = this.con * phi2z(this.e, ts);
- lon = this.con * adjust_lon(this.con * this.long0 + Math.atan2(p.x, - 1 * p.y));
- }
- else {
- ce = 2 * Math.atan(rh * this.cosX0 / (2 * this.a * this.k0 * this.ms1));
- lon = this.long0;
- if (rh <= EPSLN) {
- Chi = this.X0;
- }
- else {
- Chi = Math.asin(Math.cos(ce) * this.sinX0 + p.y * Math.sin(ce) * this.cosX0 / rh);
- lon = adjust_lon(this.long0 + Math.atan2(p.x * Math.sin(ce), rh * this.cosX0 * Math.cos(ce) - p.y * this.sinX0 * Math.sin(ce)));
- }
- lat = -1 * phi2z(this.e, Math.tan(0.5 * (HALF_PI + Chi)));
- }
- }
- p.x = lon;
- p.y = lat;
-
- //trace(p.toString());
- return p;
-
-};
-exports.names = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)"];
-
-},{"../common/adjust_lon":5,"../common/msfnz":15,"../common/phi2z":16,"../common/sign":21,"../common/tsfnz":24}],61:[function(_dereq_,module,exports){
-var gauss = _dereq_('./gauss');
-var adjust_lon = _dereq_('../common/adjust_lon');
-exports.init = function() {
- gauss.init.apply(this);
- if (!this.rc) {
- return;
- }
- this.sinc0 = Math.sin(this.phic0);
- this.cosc0 = Math.cos(this.phic0);
- this.R2 = 2 * this.rc;
- if (!this.title) {
- this.title = "Oblique Stereographic Alternative";
- }
-};
-
-exports.forward = function(p) {
- var sinc, cosc, cosl, k;
- p.x = adjust_lon(p.x - this.long0);
- gauss.forward.apply(this, [p]);
- sinc = Math.sin(p.y);
- cosc = Math.cos(p.y);
- cosl = Math.cos(p.x);
- k = this.k0 * this.R2 / (1 + this.sinc0 * sinc + this.cosc0 * cosc * cosl);
- p.x = k * cosc * Math.sin(p.x);
- p.y = k * (this.cosc0 * sinc - this.sinc0 * cosc * cosl);
- p.x = this.a * p.x + this.x0;
- p.y = this.a * p.y + this.y0;
- return p;
-};
-
-exports.inverse = function(p) {
- var sinc, cosc, lon, lat, rho;
- p.x = (p.x - this.x0) / this.a;
- p.y = (p.y - this.y0) / this.a;
-
- p.x /= this.k0;
- p.y /= this.k0;
- if ((rho = Math.sqrt(p.x * p.x + p.y * p.y))) {
- var c = 2 * Math.atan2(rho, this.R2);
- sinc = Math.sin(c);
- cosc = Math.cos(c);
- lat = Math.asin(cosc * this.sinc0 + p.y * sinc * this.cosc0 / rho);
- lon = Math.atan2(p.x * sinc, rho * this.cosc0 * cosc - p.y * this.sinc0 * sinc);
- }
- else {
- lat = this.phic0;
- lon = 0;
- }
-
- p.x = lon;
- p.y = lat;
- gauss.inverse.apply(this, [p]);
- p.x = adjust_lon(p.x + this.long0);
- return p;
-};
-
-exports.names = ["Stereographic_North_Pole", "Oblique_Stereographic", "Polar_Stereographic", "sterea","Oblique Stereographic Alternative"];
-
-},{"../common/adjust_lon":5,"./gauss":46}],62:[function(_dereq_,module,exports){
-var e0fn = _dereq_('../common/e0fn');
-var e1fn = _dereq_('../common/e1fn');
-var e2fn = _dereq_('../common/e2fn');
-var e3fn = _dereq_('../common/e3fn');
-var mlfn = _dereq_('../common/mlfn');
-var adjust_lon = _dereq_('../common/adjust_lon');
-var HALF_PI = Math.PI/2;
-var EPSLN = 1.0e-10;
-var sign = _dereq_('../common/sign');
-var asinz = _dereq_('../common/asinz');
-
-exports.init = function() {
- this.e0 = e0fn(this.es);
- this.e1 = e1fn(this.es);
- this.e2 = e2fn(this.es);
- this.e3 = e3fn(this.es);
- this.ml0 = this.a * mlfn(this.e0, this.e1, this.e2, this.e3, this.lat0);
-};
-
-/**
- Transverse Mercator Forward - long/lat to x/y
- long/lat in radians
- */
-exports.forward = function(p) {
- var lon = p.x;
- var lat = p.y;
-
- var delta_lon = adjust_lon(lon - this.long0);
- var con;
- var x, y;
- var sin_phi = Math.sin(lat);
- var cos_phi = Math.cos(lat);
-
- if (this.sphere) {
- var b = cos_phi * Math.sin(delta_lon);
- if ((Math.abs(Math.abs(b) - 1)) < 0.0000000001) {
- return (93);
- }
- else {
- x = 0.5 * this.a * this.k0 * Math.log((1 + b) / (1 - b));
- con = Math.acos(cos_phi * Math.cos(delta_lon) / Math.sqrt(1 - b * b));
- if (lat < 0) {
- con = -con;
- }
- y = this.a * this.k0 * (con - this.lat0);
- }
- }
- else {
- var al = cos_phi * delta_lon;
- var als = Math.pow(al, 2);
- var c = this.ep2 * Math.pow(cos_phi, 2);
- var tq = Math.tan(lat);
- var t = Math.pow(tq, 2);
- con = 1 - this.es * Math.pow(sin_phi, 2);
- var n = this.a / Math.sqrt(con);
- var ml = this.a * mlfn(this.e0, this.e1, this.e2, this.e3, lat);
-
- x = this.k0 * n * al * (1 + als / 6 * (1 - t + c + als / 20 * (5 - 18 * t + Math.pow(t, 2) + 72 * c - 58 * this.ep2))) + this.x0;
- y = this.k0 * (ml - this.ml0 + n * tq * (als * (0.5 + als / 24 * (5 - t + 9 * c + 4 * Math.pow(c, 2) + als / 30 * (61 - 58 * t + Math.pow(t, 2) + 600 * c - 330 * this.ep2))))) + this.y0;
-
- }
- p.x = x;
- p.y = y;
- return p;
-};
-
-/**
- Transverse Mercator Inverse - x/y to long/lat
- */
-exports.inverse = function(p) {
- var con, phi;
- var delta_phi;
- var i;
- var max_iter = 6;
- var lat, lon;
-
- if (this.sphere) {
- var f = Math.exp(p.x / (this.a * this.k0));
- var g = 0.5 * (f - 1 / f);
- var temp = this.lat0 + p.y / (this.a * this.k0);
- var h = Math.cos(temp);
- con = Math.sqrt((1 - h * h) / (1 + g * g));
- lat = asinz(con);
- if (temp < 0) {
- lat = -lat;
- }
- if ((g === 0) && (h === 0)) {
- lon = this.long0;
- }
- else {
- lon = adjust_lon(Math.atan2(g, h) + this.long0);
- }
- }
- else { // ellipsoidal form
- var x = p.x - this.x0;
- var y = p.y - this.y0;
-
- con = (this.ml0 + y / this.k0) / this.a;
- phi = con;
- for (i = 0; true; i++) {
- delta_phi = ((con + this.e1 * Math.sin(2 * phi) - this.e2 * Math.sin(4 * phi) + this.e3 * Math.sin(6 * phi)) / this.e0) - phi;
- phi += delta_phi;
- if (Math.abs(delta_phi) <= EPSLN) {
- break;
- }
- if (i >= max_iter) {
- return (95);
- }
- } // for()
- if (Math.abs(phi) < HALF_PI) {
- var sin_phi = Math.sin(phi);
- var cos_phi = Math.cos(phi);
- var tan_phi = Math.tan(phi);
- var c = this.ep2 * Math.pow(cos_phi, 2);
- var cs = Math.pow(c, 2);
- var t = Math.pow(tan_phi, 2);
- var ts = Math.pow(t, 2);
- con = 1 - this.es * Math.pow(sin_phi, 2);
- var n = this.a / Math.sqrt(con);
- var r = n * (1 - this.es) / con;
- var d = x / (n * this.k0);
- var ds = Math.pow(d, 2);
- lat = phi - (n * tan_phi * ds / r) * (0.5 - ds / 24 * (5 + 3 * t + 10 * c - 4 * cs - 9 * this.ep2 - ds / 30 * (61 + 90 * t + 298 * c + 45 * ts - 252 * this.ep2 - 3 * cs)));
- lon = adjust_lon(this.long0 + (d * (1 - ds / 6 * (1 + 2 * t + c - ds / 20 * (5 - 2 * c + 28 * t - 3 * cs + 8 * this.ep2 + 24 * ts))) / cos_phi));
- }
- else {
- lat = HALF_PI * sign(y);
- lon = this.long0;
- }
- }
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["Transverse_Mercator", "Transverse Mercator", "tmerc"];
-
-},{"../common/adjust_lon":5,"../common/asinz":6,"../common/e0fn":7,"../common/e1fn":8,"../common/e2fn":9,"../common/e3fn":10,"../common/mlfn":14,"../common/sign":21}],63:[function(_dereq_,module,exports){
-var D2R = 0.01745329251994329577;
-var tmerc = _dereq_('./tmerc');
-exports.dependsOn = 'tmerc';
-exports.init = function() {
- if (!this.zone) {
- return;
- }
- this.lat0 = 0;
- this.long0 = ((6 * Math.abs(this.zone)) - 183) * D2R;
- this.x0 = 500000;
- this.y0 = this.utmSouth ? 10000000 : 0;
- this.k0 = 0.9996;
-
- tmerc.init.apply(this);
- this.forward = tmerc.forward;
- this.inverse = tmerc.inverse;
-};
-exports.names = ["Universal Transverse Mercator System", "utm"];
-
-},{"./tmerc":62}],64:[function(_dereq_,module,exports){
-var adjust_lon = _dereq_('../common/adjust_lon');
-var HALF_PI = Math.PI/2;
-var EPSLN = 1.0e-10;
-var asinz = _dereq_('../common/asinz');
-/* Initialize the Van Der Grinten projection
- ----------------------------------------*/
-exports.init = function() {
- //this.R = 6370997; //Radius of earth
- this.R = this.a;
-};
-
-exports.forward = function(p) {
-
- var lon = p.x;
- var lat = p.y;
-
- /* Forward equations
- -----------------*/
- var dlon = adjust_lon(lon - this.long0);
- var x, y;
-
- if (Math.abs(lat) <= EPSLN) {
- x = this.x0 + this.R * dlon;
- y = this.y0;
- }
- var theta = asinz(2 * Math.abs(lat / Math.PI));
- if ((Math.abs(dlon) <= EPSLN) || (Math.abs(Math.abs(lat) - HALF_PI) <= EPSLN)) {
- x = this.x0;
- if (lat >= 0) {
- y = this.y0 + Math.PI * this.R * Math.tan(0.5 * theta);
- }
- else {
- y = this.y0 + Math.PI * this.R * -Math.tan(0.5 * theta);
- }
- // return(OK);
- }
- var al = 0.5 * Math.abs((Math.PI / dlon) - (dlon / Math.PI));
- var asq = al * al;
- var sinth = Math.sin(theta);
- var costh = Math.cos(theta);
-
- var g = costh / (sinth + costh - 1);
- var gsq = g * g;
- var m = g * (2 / sinth - 1);
- var msq = m * m;
- var con = Math.PI * this.R * (al * (g - msq) + Math.sqrt(asq * (g - msq) * (g - msq) - (msq + asq) * (gsq - msq))) / (msq + asq);
- if (dlon < 0) {
- con = -con;
- }
- x = this.x0 + con;
- //con = Math.abs(con / (Math.PI * this.R));
- var q = asq + g;
- con = Math.PI * this.R * (m * q - al * Math.sqrt((msq + asq) * (asq + 1) - q * q)) / (msq + asq);
- if (lat >= 0) {
- //y = this.y0 + Math.PI * this.R * Math.sqrt(1 - con * con - 2 * al * con);
- y = this.y0 + con;
- }
- else {
- //y = this.y0 - Math.PI * this.R * Math.sqrt(1 - con * con - 2 * al * con);
- y = this.y0 - con;
- }
- p.x = x;
- p.y = y;
- return p;
-};
-
-/* Van Der Grinten inverse equations--mapping x,y to lat/long
- ---------------------------------------------------------*/
-exports.inverse = function(p) {
- var lon, lat;
- var xx, yy, xys, c1, c2, c3;
- var a1;
- var m1;
- var con;
- var th1;
- var d;
-
- /* inverse equations
- -----------------*/
- p.x -= this.x0;
- p.y -= this.y0;
- con = Math.PI * this.R;
- xx = p.x / con;
- yy = p.y / con;
- xys = xx * xx + yy * yy;
- c1 = -Math.abs(yy) * (1 + xys);
- c2 = c1 - 2 * yy * yy + xx * xx;
- c3 = -2 * c1 + 1 + 2 * yy * yy + xys * xys;
- d = yy * yy / c3 + (2 * c2 * c2 * c2 / c3 / c3 / c3 - 9 * c1 * c2 / c3 / c3) / 27;
- a1 = (c1 - c2 * c2 / 3 / c3) / c3;
- m1 = 2 * Math.sqrt(-a1 / 3);
- con = ((3 * d) / a1) / m1;
- if (Math.abs(con) > 1) {
- if (con >= 0) {
- con = 1;
- }
- else {
- con = -1;
- }
- }
- th1 = Math.acos(con) / 3;
- if (p.y >= 0) {
- lat = (-m1 * Math.cos(th1 + Math.PI / 3) - c2 / 3 / c3) * Math.PI;
- }
- else {
- lat = -(-m1 * Math.cos(th1 + Math.PI / 3) - c2 / 3 / c3) * Math.PI;
- }
-
- if (Math.abs(xx) < EPSLN) {
- lon = this.long0;
- }
- else {
- lon = adjust_lon(this.long0 + Math.PI * (xys - 1 + Math.sqrt(1 + 2 * (xx * xx - yy * yy) + xys * xys)) / 2 / xx);
- }
-
- p.x = lon;
- p.y = lat;
- return p;
-};
-exports.names = ["Van_der_Grinten_I", "VanDerGrinten", "vandg"];
-},{"../common/adjust_lon":5,"../common/asinz":6}],65:[function(_dereq_,module,exports){
-var D2R = 0.01745329251994329577;
-var R2D = 57.29577951308232088;
-var PJD_3PARAM = 1;
-var PJD_7PARAM = 2;
-var datum_transform = _dereq_('./datum_transform');
-var adjust_axis = _dereq_('./adjust_axis');
-var proj = _dereq_('./Proj');
-var toPoint = _dereq_('./common/toPoint');
-module.exports = function transform(source, dest, point) {
- var wgs84;
- if (Array.isArray(point)) {
- point = toPoint(point);
- }
- function checkNotWGS(source, dest) {
- return ((source.datum.datum_type === PJD_3PARAM || source.datum.datum_type === PJD_7PARAM) && dest.datumCode !== "WGS84");
- }
-
- // Workaround for datum shifts towgs84, if either source or destination projection is not wgs84
- if (source.datum && dest.datum && (checkNotWGS(source, dest) || checkNotWGS(dest, source))) {
- wgs84 = new proj('WGS84');
- transform(source, wgs84, point);
- source = wgs84;
- }
- // DGR, 2010/11/12
- if (source.axis !== "enu") {
- adjust_axis(source, false, point);
- }
- // Transform source points to long/lat, if they aren't already.
- if (source.projName === "longlat") {
- point.x *= D2R; // convert degrees to radians
- point.y *= D2R;
- }
- else {
- if (source.to_meter) {
- point.x *= source.to_meter;
- point.y *= source.to_meter;
- }
- source.inverse(point); // Convert Cartesian to longlat
- }
- // Adjust for the prime meridian if necessary
- if (source.from_greenwich) {
- point.x += source.from_greenwich;
- }
-
- // Convert datums if needed, and if possible.
- point = datum_transform(source.datum, dest.datum, point);
-
- // Adjust for the prime meridian if necessary
- if (dest.from_greenwich) {
- point.x -= dest.from_greenwich;
- }
-
- if (dest.projName === "longlat") {
- // convert radians to decimal degrees
- point.x *= R2D;
- point.y *= R2D;
- }
- else { // else project
- dest.forward(point);
- if (dest.to_meter) {
- point.x /= dest.to_meter;
- point.y /= dest.to_meter;
- }
- }
-
- // DGR, 2010/11/12
- if (dest.axis !== "enu") {
- adjust_axis(dest, true, point);
- }
-
- return point;
-};
-},{"./Proj":2,"./adjust_axis":3,"./common/toPoint":23,"./datum_transform":31}],66:[function(_dereq_,module,exports){
-var D2R = 0.01745329251994329577;
-var extend = _dereq_('./extend');
-
-function mapit(obj, key, v) {
- obj[key] = v.map(function(aa) {
- var o = {};
- sExpr(aa, o);
- return o;
- }).reduce(function(a, b) {
- return extend(a, b);
- }, {});
-}
-
-function sExpr(v, obj) {
- var key;
- if (!Array.isArray(v)) {
- obj[v] = true;
- return;
- }
- else {
- key = v.shift();
- if (key === 'PARAMETER') {
- key = v.shift();
- }
- if (v.length === 1) {
- if (Array.isArray(v[0])) {
- obj[key] = {};
- sExpr(v[0], obj[key]);
- }
- else {
- obj[key] = v[0];
- }
- }
- else if (!v.length) {
- obj[key] = true;
- }
- else if (key === 'TOWGS84') {
- obj[key] = v;
- }
- else {
- obj[key] = {};
- if (['UNIT', 'PRIMEM', 'VERT_DATUM'].indexOf(key) > -1) {
- obj[key] = {
- name: v[0].toLowerCase(),
- convert: v[1]
- };
- if (v.length === 3) {
- obj[key].auth = v[2];
- }
- }
- else if (key === 'SPHEROID') {
- obj[key] = {
- name: v[0],
- a: v[1],
- rf: v[2]
- };
- if (v.length === 4) {
- obj[key].auth = v[3];
- }
- }
- else if (['GEOGCS', 'GEOCCS', 'DATUM', 'VERT_CS', 'COMPD_CS', 'LOCAL_CS', 'FITTED_CS', 'LOCAL_DATUM'].indexOf(key) > -1) {
- v[0] = ['name', v[0]];
- mapit(obj, key, v);
- }
- else if (v.every(function(aa) {
- return Array.isArray(aa);
- })) {
- mapit(obj, key, v);
- }
- else {
- sExpr(v, obj[key]);
- }
- }
- }
-}
-
-function rename(obj, params) {
- var outName = params[0];
- var inName = params[1];
- if (!(outName in obj) && (inName in obj)) {
- obj[outName] = obj[inName];
- if (params.length === 3) {
- obj[outName] = params[2](obj[outName]);
- }
- }
-}
-
-function d2r(input) {
- return input * D2R;
-}
-
-function cleanWKT(wkt) {
- if (wkt.type === 'GEOGCS') {
- wkt.projName = 'longlat';
- }
- else if (wkt.type === 'LOCAL_CS') {
- wkt.projName = 'identity';
- wkt.local = true;
- }
- else {
- if (typeof wkt.PROJECTION === "object") {
- wkt.projName = Object.keys(wkt.PROJECTION)[0];
- }
- else {
- wkt.projName = wkt.PROJECTION;
- }
- }
- if (wkt.UNIT) {
- wkt.units = wkt.UNIT.name.toLowerCase();
- if (wkt.units === 'metre') {
- wkt.units = 'meter';
- }
- if (wkt.UNIT.convert) {
- if (wkt.type === 'GEOGCS') {
- if (wkt.DATUM && wkt.DATUM.SPHEROID) {
- wkt.to_meter = parseFloat(wkt.UNIT.convert, 10)*wkt.DATUM.SPHEROID.a;
- }
- } else {
- wkt.to_meter = parseFloat(wkt.UNIT.convert, 10);
- }
- }
- }
-
- if (wkt.GEOGCS) {
- //if(wkt.GEOGCS.PRIMEM&&wkt.GEOGCS.PRIMEM.convert){
- // wkt.from_greenwich=wkt.GEOGCS.PRIMEM.convert*D2R;
- //}
- if (wkt.GEOGCS.DATUM) {
- wkt.datumCode = wkt.GEOGCS.DATUM.name.toLowerCase();
- }
- else {
- wkt.datumCode = wkt.GEOGCS.name.toLowerCase();
- }
- if (wkt.datumCode.slice(0, 2) === 'd_') {
- wkt.datumCode = wkt.datumCode.slice(2);
- }
- if (wkt.datumCode === 'new_zealand_geodetic_datum_1949' || wkt.datumCode === 'new_zealand_1949') {
- wkt.datumCode = 'nzgd49';
- }
- if (wkt.datumCode === "wgs_1984") {
- if (wkt.PROJECTION === 'Mercator_Auxiliary_Sphere') {
- wkt.sphere = true;
- }
- wkt.datumCode = 'wgs84';
- }
- if (wkt.datumCode.slice(-6) === '_ferro') {
- wkt.datumCode = wkt.datumCode.slice(0, - 6);
- }
- if (wkt.datumCode.slice(-8) === '_jakarta') {
- wkt.datumCode = wkt.datumCode.slice(0, - 8);
- }
- if (~wkt.datumCode.indexOf('belge')) {
- wkt.datumCode = "rnb72";
- }
- if (wkt.GEOGCS.DATUM && wkt.GEOGCS.DATUM.SPHEROID) {
- wkt.ellps = wkt.GEOGCS.DATUM.SPHEROID.name.replace('_19', '').replace(/[Cc]larke\_18/, 'clrk');
- if (wkt.ellps.toLowerCase().slice(0, 13) === "international") {
- wkt.ellps = 'intl';
- }
-
- wkt.a = wkt.GEOGCS.DATUM.SPHEROID.a;
- wkt.rf = parseFloat(wkt.GEOGCS.DATUM.SPHEROID.rf, 10);
- }
- if (~wkt.datumCode.indexOf('osgb_1936')) {
- wkt.datumCode = "osgb36";
- }
- }
- if (wkt.b && !isFinite(wkt.b)) {
- wkt.b = wkt.a;
- }
-
- function toMeter(input) {
- var ratio = wkt.to_meter || 1;
- return parseFloat(input, 10) * ratio;
- }
- var renamer = function(a) {
- return rename(wkt, a);
- };
- var list = [
- ['standard_parallel_1', 'Standard_Parallel_1'],
- ['standard_parallel_2', 'Standard_Parallel_2'],
- ['false_easting', 'False_Easting'],
- ['false_northing', 'False_Northing'],
- ['central_meridian', 'Central_Meridian'],
- ['latitude_of_origin', 'Latitude_Of_Origin'],
- ['latitude_of_origin', 'Central_Parallel'],
- ['scale_factor', 'Scale_Factor'],
- ['k0', 'scale_factor'],
- ['latitude_of_center', 'Latitude_of_center'],
- ['lat0', 'latitude_of_center', d2r],
- ['longitude_of_center', 'Longitude_Of_Center'],
- ['longc', 'longitude_of_center', d2r],
- ['x0', 'false_easting', toMeter],
- ['y0', 'false_northing', toMeter],
- ['long0', 'central_meridian', d2r],
- ['lat0', 'latitude_of_origin', d2r],
- ['lat0', 'standard_parallel_1', d2r],
- ['lat1', 'standard_parallel_1', d2r],
- ['lat2', 'standard_parallel_2', d2r],
- ['alpha', 'azimuth', d2r],
- ['srsCode', 'name']
- ];
- list.forEach(renamer);
- if (!wkt.long0 && wkt.longc && (wkt.projName === 'Albers_Conic_Equal_Area' || wkt.projName === "Lambert_Azimuthal_Equal_Area")) {
- wkt.long0 = wkt.longc;
- }
- if (!wkt.lat_ts && wkt.lat1 && (wkt.projName === 'Stereographic_South_Pole' || wkt.projName === 'Polar Stereographic (variant B)')) {
- wkt.lat0 = d2r(wkt.lat1 > 0 ? 90 : -90);
- wkt.lat_ts = wkt.lat1;
- }
-}
-module.exports = function(wkt, self) {
- var lisp = JSON.parse(("," + wkt).replace(/\s*\,\s*([A-Z_0-9]+?)(\[)/g, ',["$1",').slice(1).replace(/\s*\,\s*([A-Z_0-9]+?)\]/g, ',"$1"]').replace(/,\["VERTCS".+/,''));
- var type = lisp.shift();
- var name = lisp.shift();
- lisp.unshift(['name', name]);
- lisp.unshift(['type', type]);
- lisp.unshift('output');
- var obj = {};
- sExpr(lisp, obj);
- cleanWKT(obj.output);
- return extend(self, obj.output);
-};
-
-},{"./extend":34}],67:[function(_dereq_,module,exports){
-
-
-
-/**
- * UTM zones are grouped, and assigned to one of a group of 6
- * sets.
- *
- * {int} @private
- */
-var NUM_100K_SETS = 6;
-
-/**
- * The column letters (for easting) of the lower left value, per
- * set.
- *
- * {string} @private
- */
-var SET_ORIGIN_COLUMN_LETTERS = 'AJSAJS';
-
-/**
- * The row letters (for northing) of the lower left value, per
- * set.
- *
- * {string} @private
- */
-var SET_ORIGIN_ROW_LETTERS = 'AFAFAF';
-
-var A = 65; // A
-var I = 73; // I
-var O = 79; // O
-var V = 86; // V
-var Z = 90; // Z
-
-/**
- * Conversion of lat/lon to MGRS.
- *
- * @param {object} ll Object literal with lat and lon properties on a
- * WGS84 ellipsoid.
- * @param {int} accuracy Accuracy in digits (5 for 1 m, 4 for 10 m, 3 for
- * 100 m, 2 for 1000 m or 1 for 10000 m). Optional, default is 5.
- * @return {string} the MGRS string for the given location and accuracy.
- */
-exports.forward = function(ll, accuracy) {
- accuracy = accuracy || 5; // default accuracy 1m
- return encode(LLtoUTM({
- lat: ll[1],
- lon: ll[0]
- }), accuracy);
-};
-
-/**
- * Conversion of MGRS to lat/lon.
- *
- * @param {string} mgrs MGRS string.
- * @return {array} An array with left (longitude), bottom (latitude), right
- * (longitude) and top (latitude) values in WGS84, representing the
- * bounding box for the provided MGRS reference.
- */
-exports.inverse = function(mgrs) {
- var bbox = UTMtoLL(decode(mgrs.toUpperCase()));
- if (bbox.lat && bbox.lon) {
- return [bbox.lon, bbox.lat, bbox.lon, bbox.lat];
- }
- return [bbox.left, bbox.bottom, bbox.right, bbox.top];
-};
-
-exports.toPoint = function(mgrs) {
- var bbox = UTMtoLL(decode(mgrs.toUpperCase()));
- if (bbox.lat && bbox.lon) {
- return [bbox.lon, bbox.lat];
- }
- return [(bbox.left + bbox.right) / 2, (bbox.top + bbox.bottom) / 2];
-};
-/**
- * Conversion from degrees to radians.
- *
- * @private
- * @param {number} deg the angle in degrees.
- * @return {number} the angle in radians.
- */
-function degToRad(deg) {
- return (deg * (Math.PI / 180.0));
-}
-
-/**
- * Conversion from radians to degrees.
- *
- * @private
- * @param {number} rad the angle in radians.
- * @return {number} the angle in degrees.
- */
-function radToDeg(rad) {
- return (180.0 * (rad / Math.PI));
-}
-
-/**
- * Converts a set of Longitude and Latitude co-ordinates to UTM
- * using the WGS84 ellipsoid.
- *
- * @private
- * @param {object} ll Object literal with lat and lon properties
- * representing the WGS84 coordinate to be converted.
- * @return {object} Object literal containing the UTM value with easting,
- * northing, zoneNumber and zoneLetter properties, and an optional
- * accuracy property in digits. Returns null if the conversion failed.
- */
-function LLtoUTM(ll) {
- var Lat = ll.lat;
- var Long = ll.lon;
- var a = 6378137.0; //ellip.radius;
- var eccSquared = 0.00669438; //ellip.eccsq;
- var k0 = 0.9996;
- var LongOrigin;
- var eccPrimeSquared;
- var N, T, C, A, M;
- var LatRad = degToRad(Lat);
- var LongRad = degToRad(Long);
- var LongOriginRad;
- var ZoneNumber;
- // (int)
- ZoneNumber = Math.floor((Long + 180) / 6) + 1;
-
- //Make sure the longitude 180.00 is in Zone 60
- if (Long === 180) {
- ZoneNumber = 60;
- }
-
- // Special zone for Norway
- if (Lat >= 56.0 && Lat < 64.0 && Long >= 3.0 && Long < 12.0) {
- ZoneNumber = 32;
- }
-
- // Special zones for Svalbard
- if (Lat >= 72.0 && Lat < 84.0) {
- if (Long >= 0.0 && Long < 9.0) {
- ZoneNumber = 31;
- }
- else if (Long >= 9.0 && Long < 21.0) {
- ZoneNumber = 33;
- }
- else if (Long >= 21.0 && Long < 33.0) {
- ZoneNumber = 35;
- }
- else if (Long >= 33.0 && Long < 42.0) {
- ZoneNumber = 37;
- }
- }
-
- LongOrigin = (ZoneNumber - 1) * 6 - 180 + 3; //+3 puts origin
- // in middle of
- // zone
- LongOriginRad = degToRad(LongOrigin);
-
- eccPrimeSquared = (eccSquared) / (1 - eccSquared);
-
- N = a / Math.sqrt(1 - eccSquared * Math.sin(LatRad) * Math.sin(LatRad));
- T = Math.tan(LatRad) * Math.tan(LatRad);
- C = eccPrimeSquared * Math.cos(LatRad) * Math.cos(LatRad);
- A = Math.cos(LatRad) * (LongRad - LongOriginRad);
-
- M = a * ((1 - eccSquared / 4 - 3 * eccSquared * eccSquared / 64 - 5 * eccSquared * eccSquared * eccSquared / 256) * LatRad - (3 * eccSquared / 8 + 3 * eccSquared * eccSquared / 32 + 45 * eccSquared * eccSquared * eccSquared / 1024) * Math.sin(2 * LatRad) + (15 * eccSquared * eccSquared / 256 + 45 * eccSquared * eccSquared * eccSquared / 1024) * Math.sin(4 * LatRad) - (35 * eccSquared * eccSquared * eccSquared / 3072) * Math.sin(6 * LatRad));
-
- var UTMEasting = (k0 * N * (A + (1 - T + C) * A * A * A / 6.0 + (5 - 18 * T + T * T + 72 * C - 58 * eccPrimeSquared) * A * A * A * A * A / 120.0) + 500000.0);
-
- var UTMNorthing = (k0 * (M + N * Math.tan(LatRad) * (A * A / 2 + (5 - T + 9 * C + 4 * C * C) * A * A * A * A / 24.0 + (61 - 58 * T + T * T + 600 * C - 330 * eccPrimeSquared) * A * A * A * A * A * A / 720.0)));
- if (Lat < 0.0) {
- UTMNorthing += 10000000.0; //10000000 meter offset for
- // southern hemisphere
- }
-
- return {
- northing: Math.round(UTMNorthing),
- easting: Math.round(UTMEasting),
- zoneNumber: ZoneNumber,
- zoneLetter: getLetterDesignator(Lat)
- };
-}
-
-/**
- * Converts UTM coords to lat/long, using the WGS84 ellipsoid. This is a convenience
- * class where the Zone can be specified as a single string eg."60N" which
- * is then broken down into the ZoneNumber and ZoneLetter.
- *
- * @private
- * @param {object} utm An object literal with northing, easting, zoneNumber
- * and zoneLetter properties. If an optional accuracy property is
- * provided (in meters), a bounding box will be returned instead of
- * latitude and longitude.
- * @return {object} An object literal containing either lat and lon values
- * (if no accuracy was provided), or top, right, bottom and left values
- * for the bounding box calculated according to the provided accuracy.
- * Returns null if the conversion failed.
- */
-function UTMtoLL(utm) {
-
- var UTMNorthing = utm.northing;
- var UTMEasting = utm.easting;
- var zoneLetter = utm.zoneLetter;
- var zoneNumber = utm.zoneNumber;
- // check the ZoneNummber is valid
- if (zoneNumber < 0 || zoneNumber > 60) {
- return null;
- }
-
- var k0 = 0.9996;
- var a = 6378137.0; //ellip.radius;
- var eccSquared = 0.00669438; //ellip.eccsq;
- var eccPrimeSquared;
- var e1 = (1 - Math.sqrt(1 - eccSquared)) / (1 + Math.sqrt(1 - eccSquared));
- var N1, T1, C1, R1, D, M;
- var LongOrigin;
- var mu, phi1Rad;
-
- // remove 500,000 meter offset for longitude
- var x = UTMEasting - 500000.0;
- var y = UTMNorthing;
-
- // We must know somehow if we are in the Northern or Southern
- // hemisphere, this is the only time we use the letter So even
- // if the Zone letter isn't exactly correct it should indicate
- // the hemisphere correctly
- if (zoneLetter < 'N') {
- y -= 10000000.0; // remove 10,000,000 meter offset used
- // for southern hemisphere
- }
-
- // There are 60 zones with zone 1 being at West -180 to -174
- LongOrigin = (zoneNumber - 1) * 6 - 180 + 3; // +3 puts origin
- // in middle of
- // zone
-
- eccPrimeSquared = (eccSquared) / (1 - eccSquared);
-
- M = y / k0;
- mu = M / (a * (1 - eccSquared / 4 - 3 * eccSquared * eccSquared / 64 - 5 * eccSquared * eccSquared * eccSquared / 256));
-
- phi1Rad = mu + (3 * e1 / 2 - 27 * e1 * e1 * e1 / 32) * Math.sin(2 * mu) + (21 * e1 * e1 / 16 - 55 * e1 * e1 * e1 * e1 / 32) * Math.sin(4 * mu) + (151 * e1 * e1 * e1 / 96) * Math.sin(6 * mu);
- // double phi1 = ProjMath.radToDeg(phi1Rad);
-
- N1 = a / Math.sqrt(1 - eccSquared * Math.sin(phi1Rad) * Math.sin(phi1Rad));
- T1 = Math.tan(phi1Rad) * Math.tan(phi1Rad);
- C1 = eccPrimeSquared * Math.cos(phi1Rad) * Math.cos(phi1Rad);
- R1 = a * (1 - eccSquared) / Math.pow(1 - eccSquared * Math.sin(phi1Rad) * Math.sin(phi1Rad), 1.5);
- D = x / (N1 * k0);
-
- var lat = phi1Rad - (N1 * Math.tan(phi1Rad) / R1) * (D * D / 2 - (5 + 3 * T1 + 10 * C1 - 4 * C1 * C1 - 9 * eccPrimeSquared) * D * D * D * D / 24 + (61 + 90 * T1 + 298 * C1 + 45 * T1 * T1 - 252 * eccPrimeSquared - 3 * C1 * C1) * D * D * D * D * D * D / 720);
- lat = radToDeg(lat);
-
- var lon = (D - (1 + 2 * T1 + C1) * D * D * D / 6 + (5 - 2 * C1 + 28 * T1 - 3 * C1 * C1 + 8 * eccPrimeSquared + 24 * T1 * T1) * D * D * D * D * D / 120) / Math.cos(phi1Rad);
- lon = LongOrigin + radToDeg(lon);
-
- var result;
- if (utm.accuracy) {
- var topRight = UTMtoLL({
- northing: utm.northing + utm.accuracy,
- easting: utm.easting + utm.accuracy,
- zoneLetter: utm.zoneLetter,
- zoneNumber: utm.zoneNumber
- });
- result = {
- top: topRight.lat,
- right: topRight.lon,
- bottom: lat,
- left: lon
- };
- }
- else {
- result = {
- lat: lat,
- lon: lon
- };
- }
- return result;
-}
-
-/**
- * Calculates the MGRS letter designator for the given latitude.
- *
- * @private
- * @param {number} lat The latitude in WGS84 to get the letter designator
- * for.
- * @return {char} The letter designator.
- */
-function getLetterDesignator(lat) {
- //This is here as an error flag to show that the Latitude is
- //outside MGRS limits
- var LetterDesignator = 'Z';
-
- if ((84 >= lat) && (lat >= 72)) {
- LetterDesignator = 'X';
- }
- else if ((72 > lat) && (lat >= 64)) {
- LetterDesignator = 'W';
- }
- else if ((64 > lat) && (lat >= 56)) {
- LetterDesignator = 'V';
- }
- else if ((56 > lat) && (lat >= 48)) {
- LetterDesignator = 'U';
- }
- else if ((48 > lat) && (lat >= 40)) {
- LetterDesignator = 'T';
- }
- else if ((40 > lat) && (lat >= 32)) {
- LetterDesignator = 'S';
- }
- else if ((32 > lat) && (lat >= 24)) {
- LetterDesignator = 'R';
- }
- else if ((24 > lat) && (lat >= 16)) {
- LetterDesignator = 'Q';
- }
- else if ((16 > lat) && (lat >= 8)) {
- LetterDesignator = 'P';
- }
- else if ((8 > lat) && (lat >= 0)) {
- LetterDesignator = 'N';
- }
- else if ((0 > lat) && (lat >= -8)) {
- LetterDesignator = 'M';
- }
- else if ((-8 > lat) && (lat >= -16)) {
- LetterDesignator = 'L';
- }
- else if ((-16 > lat) && (lat >= -24)) {
- LetterDesignator = 'K';
- }
- else if ((-24 > lat) && (lat >= -32)) {
- LetterDesignator = 'J';
- }
- else if ((-32 > lat) && (lat >= -40)) {
- LetterDesignator = 'H';
- }
- else if ((-40 > lat) && (lat >= -48)) {
- LetterDesignator = 'G';
- }
- else if ((-48 > lat) && (lat >= -56)) {
- LetterDesignator = 'F';
- }
- else if ((-56 > lat) && (lat >= -64)) {
- LetterDesignator = 'E';
- }
- else if ((-64 > lat) && (lat >= -72)) {
- LetterDesignator = 'D';
- }
- else if ((-72 > lat) && (lat >= -80)) {
- LetterDesignator = 'C';
- }
- return LetterDesignator;
-}
-
-/**
- * Encodes a UTM location as MGRS string.
- *
- * @private
- * @param {object} utm An object literal with easting, northing,
- * zoneLetter, zoneNumber
- * @param {number} accuracy Accuracy in digits (1-5).
- * @return {string} MGRS string for the given UTM location.
- */
-function encode(utm, accuracy) {
- // prepend with leading zeroes
- var seasting = "00000" + utm.easting,
- snorthing = "00000" + utm.northing;
-
- return utm.zoneNumber + utm.zoneLetter + get100kID(utm.easting, utm.northing, utm.zoneNumber) + seasting.substr(seasting.length - 5, accuracy) + snorthing.substr(snorthing.length - 5, accuracy);
-}
-
-/**
- * Get the two letter 100k designator for a given UTM easting,
- * northing and zone number value.
- *
- * @private
- * @param {number} easting
- * @param {number} northing
- * @param {number} zoneNumber
- * @return the two letter 100k designator for the given UTM location.
- */
-function get100kID(easting, northing, zoneNumber) {
- var setParm = get100kSetForZone(zoneNumber);
- var setColumn = Math.floor(easting / 100000);
- var setRow = Math.floor(northing / 100000) % 20;
- return getLetter100kID(setColumn, setRow, setParm);
-}
-
-/**
- * Given a UTM zone number, figure out the MGRS 100K set it is in.
- *
- * @private
- * @param {number} i An UTM zone number.
- * @return {number} the 100k set the UTM zone is in.
- */
-function get100kSetForZone(i) {
- var setParm = i % NUM_100K_SETS;
- if (setParm === 0) {
- setParm = NUM_100K_SETS;
- }
-
- return setParm;
-}
-
-/**
- * Get the two-letter MGRS 100k designator given information
- * translated from the UTM northing, easting and zone number.
- *
- * @private
- * @param {number} column the column index as it relates to the MGRS
- * 100k set spreadsheet, created from the UTM easting.
- * Values are 1-8.
- * @param {number} row the row index as it relates to the MGRS 100k set
- * spreadsheet, created from the UTM northing value. Values
- * are from 0-19.
- * @param {number} parm the set block, as it relates to the MGRS 100k set
- * spreadsheet, created from the UTM zone. Values are from
- * 1-60.
- * @return two letter MGRS 100k code.
- */
-function getLetter100kID(column, row, parm) {
- // colOrigin and rowOrigin are the letters at the origin of the set
- var index = parm - 1;
- var colOrigin = SET_ORIGIN_COLUMN_LETTERS.charCodeAt(index);
- var rowOrigin = SET_ORIGIN_ROW_LETTERS.charCodeAt(index);
-
- // colInt and rowInt are the letters to build to return
- var colInt = colOrigin + column - 1;
- var rowInt = rowOrigin + row;
- var rollover = false;
-
- if (colInt > Z) {
- colInt = colInt - Z + A - 1;
- rollover = true;
- }
-
- if (colInt === I || (colOrigin < I && colInt > I) || ((colInt > I || colOrigin < I) && rollover)) {
- colInt++;
- }
-
- if (colInt === O || (colOrigin < O && colInt > O) || ((colInt > O || colOrigin < O) && rollover)) {
- colInt++;
-
- if (colInt === I) {
- colInt++;
- }
- }
-
- if (colInt > Z) {
- colInt = colInt - Z + A - 1;
- }
-
- if (rowInt > V) {
- rowInt = rowInt - V + A - 1;
- rollover = true;
- }
- else {
- rollover = false;
- }
-
- if (((rowInt === I) || ((rowOrigin < I) && (rowInt > I))) || (((rowInt > I) || (rowOrigin < I)) && rollover)) {
- rowInt++;
- }
-
- if (((rowInt === O) || ((rowOrigin < O) && (rowInt > O))) || (((rowInt > O) || (rowOrigin < O)) && rollover)) {
- rowInt++;
-
- if (rowInt === I) {
- rowInt++;
- }
- }
-
- if (rowInt > V) {
- rowInt = rowInt - V + A - 1;
- }
-
- var twoLetter = String.fromCharCode(colInt) + String.fromCharCode(rowInt);
- return twoLetter;
-}
-
-/**
- * Decode the UTM parameters from a MGRS string.
- *
- * @private
- * @param {string} mgrsString an UPPERCASE coordinate string is expected.
- * @return {object} An object literal with easting, northing, zoneLetter,
- * zoneNumber and accuracy (in meters) properties.
- */
-function decode(mgrsString) {
-
- if (mgrsString && mgrsString.length === 0) {
- throw ("MGRSPoint coverting from nothing");
- }
-
- var length = mgrsString.length;
-
- var hunK = null;
- var sb = "";
- var testChar;
- var i = 0;
-
- // get Zone number
- while (!(/[A-Z]/).test(testChar = mgrsString.charAt(i))) {
- if (i >= 2) {
- throw ("MGRSPoint bad conversion from: " + mgrsString);
- }
- sb += testChar;
- i++;
- }
-
- var zoneNumber = parseInt(sb, 10);
-
- if (i === 0 || i + 3 > length) {
- // A good MGRS string has to be 4-5 digits long,
- // ##AAA/#AAA at least.
- throw ("MGRSPoint bad conversion from: " + mgrsString);
- }
-
- var zoneLetter = mgrsString.charAt(i++);
-
- // Should we check the zone letter here? Why not.
- if (zoneLetter <= 'A' || zoneLetter === 'B' || zoneLetter === 'Y' || zoneLetter >= 'Z' || zoneLetter === 'I' || zoneLetter === 'O') {
- throw ("MGRSPoint zone letter " + zoneLetter + " not handled: " + mgrsString);
- }
-
- hunK = mgrsString.substring(i, i += 2);
-
- var set = get100kSetForZone(zoneNumber);
-
- var east100k = getEastingFromChar(hunK.charAt(0), set);
- var north100k = getNorthingFromChar(hunK.charAt(1), set);
-
- // We have a bug where the northing may be 2000000 too low.
- // How
- // do we know when to roll over?
-
- while (north100k < getMinNorthing(zoneLetter)) {
- north100k += 2000000;
- }
-
- // calculate the char index for easting/northing separator
- var remainder = length - i;
-
- if (remainder % 2 !== 0) {
- throw ("MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters" + mgrsString);
- }
-
- var sep = remainder / 2;
-
- var sepEasting = 0.0;
- var sepNorthing = 0.0;
- var accuracyBonus, sepEastingString, sepNorthingString, easting, northing;
- if (sep > 0) {
- accuracyBonus = 100000.0 / Math.pow(10, sep);
- sepEastingString = mgrsString.substring(i, i + sep);
- sepEasting = parseFloat(sepEastingString) * accuracyBonus;
- sepNorthingString = mgrsString.substring(i + sep);
- sepNorthing = parseFloat(sepNorthingString) * accuracyBonus;
- }
-
- easting = sepEasting + east100k;
- northing = sepNorthing + north100k;
-
- return {
- easting: easting,
- northing: northing,
- zoneLetter: zoneLetter,
- zoneNumber: zoneNumber,
- accuracy: accuracyBonus
- };
-}
-
-/**
- * Given the first letter from a two-letter MGRS 100k zone, and given the
- * MGRS table set for the zone number, figure out the easting value that
- * should be added to the other, secondary easting value.
- *
- * @private
- * @param {char} e The first letter from a two-letter MGRS 100´k zone.
- * @param {number} set The MGRS table set for the zone number.
- * @return {number} The easting value for the given letter and set.
- */
-function getEastingFromChar(e, set) {
- // colOrigin is the letter at the origin of the set for the
- // column
- var curCol = SET_ORIGIN_COLUMN_LETTERS.charCodeAt(set - 1);
- var eastingValue = 100000.0;
- var rewindMarker = false;
-
- while (curCol !== e.charCodeAt(0)) {
- curCol++;
- if (curCol === I) {
- curCol++;
- }
- if (curCol === O) {
- curCol++;
- }
- if (curCol > Z) {
- if (rewindMarker) {
- throw ("Bad character: " + e);
- }
- curCol = A;
- rewindMarker = true;
- }
- eastingValue += 100000.0;
- }
-
- return eastingValue;
-}
-
-/**
- * Given the second letter from a two-letter MGRS 100k zone, and given the
- * MGRS table set for the zone number, figure out the northing value that
- * should be added to the other, secondary northing value. You have to
- * remember that Northings are determined from the equator, and the vertical
- * cycle of letters mean a 2000000 additional northing meters. This happens
- * approx. every 18 degrees of latitude. This method does *NOT* count any
- * additional northings. You have to figure out how many 2000000 meters need
- * to be added for the zone letter of the MGRS coordinate.
- *
- * @private
- * @param {char} n Second letter of the MGRS 100k zone
- * @param {number} set The MGRS table set number, which is dependent on the
- * UTM zone number.
- * @return {number} The northing value for the given letter and set.
- */
-function getNorthingFromChar(n, set) {
-
- if (n > 'V') {
- throw ("MGRSPoint given invalid Northing " + n);
- }
-
- // rowOrigin is the letter at the origin of the set for the
- // column
- var curRow = SET_ORIGIN_ROW_LETTERS.charCodeAt(set - 1);
- var northingValue = 0.0;
- var rewindMarker = false;
-
- while (curRow !== n.charCodeAt(0)) {
- curRow++;
- if (curRow === I) {
- curRow++;
- }
- if (curRow === O) {
- curRow++;
- }
- // fixing a bug making whole application hang in this loop
- // when 'n' is a wrong character
- if (curRow > V) {
- if (rewindMarker) { // making sure that this loop ends
- throw ("Bad character: " + n);
- }
- curRow = A;
- rewindMarker = true;
- }
- northingValue += 100000.0;
- }
-
- return northingValue;
-}
-
-/**
- * The function getMinNorthing returns the minimum northing value of a MGRS
- * zone.
- *
- * Ported from Geotrans' c Lattitude_Band_Value structure table.
- *
- * @private
- * @param {char} zoneLetter The MGRS zone to get the min northing for.
- * @return {number}
- */
-function getMinNorthing(zoneLetter) {
- var northing;
- switch (zoneLetter) {
- case 'C':
- northing = 1100000.0;
- break;
- case 'D':
- northing = 2000000.0;
- break;
- case 'E':
- northing = 2800000.0;
- break;
- case 'F':
- northing = 3700000.0;
- break;
- case 'G':
- northing = 4600000.0;
- break;
- case 'H':
- northing = 5500000.0;
- break;
- case 'J':
- northing = 6400000.0;
- break;
- case 'K':
- northing = 7300000.0;
- break;
- case 'L':
- northing = 8200000.0;
- break;
- case 'M':
- northing = 9100000.0;
- break;
- case 'N':
- northing = 0.0;
- break;
- case 'P':
- northing = 800000.0;
- break;
- case 'Q':
- northing = 1700000.0;
- break;
- case 'R':
- northing = 2600000.0;
- break;
- case 'S':
- northing = 3500000.0;
- break;
- case 'T':
- northing = 4400000.0;
- break;
- case 'U':
- northing = 5300000.0;
- break;
- case 'V':
- northing = 6200000.0;
- break;
- case 'W':
- northing = 7000000.0;
- break;
- case 'X':
- northing = 7900000.0;
- break;
- default:
- northing = -1.0;
- }
- if (northing >= 0.0) {
- return northing;
- }
- else {
- throw ("Invalid zone letter: " + zoneLetter);
- }
-
-}
-
-},{}],68:[function(_dereq_,module,exports){
-module.exports={
- "name": "proj4",
- "version": "2.3.14",
- "description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",
- "main": "lib/index.js",
- "directories": {
- "test": "test",
- "doc": "docs"
- },
- "scripts": {
- "test": "./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/proj4js/proj4js.git"
- },
- "author": "",
- "license": "MIT",
- "jam": {
- "main": "dist/proj4.js",
- "include": [
- "dist/proj4.js",
- "README.md",
- "AUTHORS",
- "LICENSE.md"
- ]
- },
- "devDependencies": {
- "grunt-cli": "~0.1.13",
- "grunt": "~0.4.2",
- "grunt-contrib-connect": "~0.6.0",
- "grunt-contrib-jshint": "~0.8.0",
- "chai": "~1.8.1",
- "mocha": "~1.17.1",
- "grunt-mocha-phantomjs": "~0.4.0",
- "browserify": "~12.0.1",
- "grunt-browserify": "~4.0.1",
- "grunt-contrib-uglify": "~0.11.1",
- "curl": "git://github.com/cujojs/curl.git",
- "istanbul": "~0.2.4",
- "tin": "~0.4.0"
- },
- "dependencies": {
- "mgrs": "~0.0.2"
- }
-}
-},{}],"./includedProjections":[function(_dereq_,module,exports){
-module.exports=_dereq_('hTEDpn');
-},{}],"hTEDpn":[function(_dereq_,module,exports){
-var projs = [
- _dereq_('./lib/projections/tmerc'),
- _dereq_('./lib/projections/utm'),
- _dereq_('./lib/projections/sterea'),
- _dereq_('./lib/projections/stere'),
- _dereq_('./lib/projections/somerc'),
- _dereq_('./lib/projections/omerc'),
- _dereq_('./lib/projections/lcc'),
- _dereq_('./lib/projections/krovak'),
- _dereq_('./lib/projections/cass'),
- _dereq_('./lib/projections/laea'),
- _dereq_('./lib/projections/aea'),
- _dereq_('./lib/projections/gnom'),
- _dereq_('./lib/projections/cea'),
- _dereq_('./lib/projections/eqc'),
- _dereq_('./lib/projections/poly'),
- _dereq_('./lib/projections/nzmg'),
- _dereq_('./lib/projections/mill'),
- _dereq_('./lib/projections/sinu'),
- _dereq_('./lib/projections/moll'),
- _dereq_('./lib/projections/eqdc'),
- _dereq_('./lib/projections/vandg'),
- _dereq_('./lib/projections/aeqd')
-];
-module.exports = function(proj4){
- projs.forEach(function(proj){
- proj4.Proj.projections.add(proj);
- });
-}
-},{"./lib/projections/aea":40,"./lib/projections/aeqd":41,"./lib/projections/cass":42,"./lib/projections/cea":43,"./lib/projections/eqc":44,"./lib/projections/eqdc":45,"./lib/projections/gnom":47,"./lib/projections/krovak":48,"./lib/projections/laea":49,"./lib/projections/lcc":50,"./lib/projections/mill":53,"./lib/projections/moll":54,"./lib/projections/nzmg":55,"./lib/projections/omerc":56,"./lib/projections/poly":57,"./lib/projections/sinu":58,"./lib/projections/somerc":59,"./lib/projections/stere":60,"./lib/projections/sterea":61,"./lib/projections/tmerc":62,"./lib/projections/utm":63,"./lib/projections/vandg":64}]},{},[36])
-(36)
-});
\ No newline at end of file
diff --git a/xcxjingqingmap/lid/proj4leaflet.js b/xcxjingqingmap/lid/proj4leaflet.js
deleted file mode 100644
index cb42921..0000000
--- a/xcxjingqingmap/lid/proj4leaflet.js
+++ /dev/null
@@ -1,263 +0,0 @@
-(function (factory) {
- var L, proj4;
- if (typeof define === 'function' && define.amd) {
- // AMD
- define(['leaflet', 'proj4'], factory);
- } else if (typeof module === 'object' && typeof module.exports === "object") {
- // Node/CommonJS
- L = require('leaflet');
- proj4 = require('proj4');
- module.exports = factory(L, proj4);
- } else {
- // Browser globals
- if (typeof window.L === 'undefined' || typeof window.proj4 === 'undefined')
- throw 'Leaflet and proj4 must be loaded first';
- factory(window.L, window.proj4);
- }
-}(function (L, proj4) {
-
- L.Proj = {};
-
- L.Proj._isProj4Obj = function(a) {
- return (typeof a.inverse !== 'undefined' &&
- typeof a.forward !== 'undefined');
- };
-
- L.Proj.Projection = L.Class.extend({
- initialize: function(code, def, bounds) {
- var isP4 = L.Proj._isProj4Obj(code);
- this._proj = isP4 ? code : this._projFromCodeDef(code, def);
- this.bounds = isP4 ? def : bounds;
- },
-
- project: function (latlng) {
- var point = this._proj.forward([latlng.lng, latlng.lat]);
- return new L.Point(point[0], point[1]);
- },
-
- unproject: function (point, unbounded) {
- var point2 = this._proj.inverse([point.x, point.y]);
- return new L.LatLng(point2[1], point2[0], unbounded);
- },
-
- _projFromCodeDef: function(code, def) {
- if (def) {
- proj4.defs(code, def);
- } else if (proj4.defs[code] === undefined) {
- var urn = code.split(':');
- if (urn.length > 3) {
- code = urn[urn.length - 3] + ':' + urn[urn.length - 1];
- }
- if (proj4.defs[code] === undefined) {
- throw 'No projection definition for code ' + code;
- }
- }
-
- return proj4(code);
- }
- });
-
- L.Proj.CRS = L.Class.extend({
- includes: L.CRS,
-
- options: {
- transformation: new L.Transformation(1, 0, -1, 0)
- },
-
- initialize: function(a, b, c) {
- var code,
- proj,
- def,
- options;
-
- if (L.Proj._isProj4Obj(a)) {
- proj = a;
- code = proj.srsCode;
- options = b || {};
-
- this.projection = new L.Proj.Projection(proj, options.bounds);
- } else {
- code = a;
- def = b;
- options = c || {};
- this.projection = new L.Proj.Projection(code, def, options.bounds);
- }
-
- L.Util.setOptions(this, options);
- this.code = code;
- this.transformation = this.options.transformation;
-
- if (this.options.origin) {
- this.transformation =
- new L.Transformation(1, -this.options.origin[0],
- -1, this.options.origin[1]);
- }
-
- if (this.options.scales) {
- this._scales = this.options.scales;
- } else if (this.options.resolutions) {
- this._scales = [];
- for (var i = this.options.resolutions.length - 1; i >= 0; i--) {
- if (this.options.resolutions[i]) {
- this._scales[i] = 1 / this.options.resolutions[i];
- }
- }
- }
-
- this.infinite = !this.options.bounds;
-
- },
-
- scale: function(zoom) {
- var iZoom = Math.floor(zoom),
- baseScale,
- nextScale,
- scaleDiff,
- zDiff;
- if (zoom === iZoom) {
- return this._scales[zoom];
- } else {
- // Non-integer zoom, interpolate
- baseScale = this._scales[iZoom];
- nextScale = this._scales[iZoom + 1];
- scaleDiff = nextScale - baseScale;
- zDiff = (zoom - iZoom);
- return baseScale + scaleDiff * zDiff;
- }
- },
-
- zoom: function(scale) {
- // Find closest number in this._scales, down
- var downScale = this._closestElement(this._scales, scale),
- downZoom = this._scales.indexOf(downScale),
- nextScale,
- nextZoom,
- scaleDiff;
- // Check if scale is downScale => return array index
- if (scale === downScale) {
- return downZoom;
- }
- // Interpolate
- nextZoom = downZoom + 1;
- nextScale = this._scales[nextZoom];
- if (nextScale === undefined) {
- return Infinity;
- }
- scaleDiff = nextScale - downScale;
- return (scale - downScale) / scaleDiff + downZoom;
- },
-
- distance: L.CRS.Earth.distance,
-
- R: L.CRS.Earth.R,
-
- /* Get the closest lowest element in an array */
- _closestElement: function(array, element) {
- var low;
- for (var i = array.length; i--;) {
- if (array[i] <= element && (low === undefined || low < array[i])) {
- low = array[i];
- }
- }
- return low;
- }
- });
-
- L.Proj.GeoJSON = L.GeoJSON.extend({
- initialize: function(geojson, options) {
- this._callLevel = 0;
- L.GeoJSON.prototype.initialize.call(this, geojson, options);
- },
-
- addData: function(geojson) {
- var crs;
-
- if (geojson) {
- if (geojson.crs && geojson.crs.type === 'name') {
- crs = new L.Proj.CRS(geojson.crs.properties.name);
- } else if (geojson.crs && geojson.crs.type) {
- crs = new L.Proj.CRS(geojson.crs.type + ':' + geojson.crs.properties.code);
- }
-
- if (crs !== undefined) {
- this.options.coordsToLatLng = function(coords) {
- var point = L.point(coords[0], coords[1]);
- return crs.projection.unproject(point);
- };
- }
- }
-
- // Base class' addData might call us recursively, but
- // CRS shouldn't be cleared in that case, since CRS applies
- // to the whole GeoJSON, inluding sub-features.
- this._callLevel++;
- try {
- L.GeoJSON.prototype.addData.call(this, geojson);
- } finally {
- this._callLevel--;
- if (this._callLevel === 0) {
- delete this.options.coordsToLatLng;
- }
- }
- }
- });
-
- L.Proj.geoJson = function(geojson, options) {
- return new L.Proj.GeoJSON(geojson, options);
- };
-
- L.Proj.ImageOverlay = L.ImageOverlay.extend({
- initialize: function (url, bounds, options) {
- L.ImageOverlay.prototype.initialize.call(this, url, null, options);
- this._projectedBounds = bounds;
- },
-
- // Danger ahead: Overriding internal methods in Leaflet.
- // Decided to do this rather than making a copy of L.ImageOverlay
- // and doing very tiny modifications to it.
- // Future will tell if this was wise or not.
- _animateZoom: function (event) {
- var scale = this._map.getZoomScale(event.zoom);
- var northWest = L.point(this._projectedBounds.min.x, this._projectedBounds.max.y);
- var offset = this._projectedToNewLayerPoint(northWest, event.zoom, event.center);
-
- L.DomUtil.setTransform(this._image, offset, scale);
- },
-
- _reset: function () {
- var zoom = this._map.getZoom();
- var pixelOrigin = this._map.getPixelOrigin();
- var bounds = L.bounds(
- this._transform(this._projectedBounds.min, zoom)._subtract(pixelOrigin),
- this._transform(this._projectedBounds.max, zoom)._subtract(pixelOrigin)
- );
- var size = bounds.getSize();
-
- L.DomUtil.setPosition(this._image, bounds.min);
- this._image.style.width = size.x + 'px';
- this._image.style.height = size.y + 'px';
- },
-
- _projectedToNewLayerPoint: function (point, zoom, center) {
- var viewHalf = this._map.getSize()._divideBy(2);
- var newTopLeft = this._map.project(center, zoom)._subtract(viewHalf)._round();
- var topLeft = newTopLeft.add(this._map._getMapPanePos());
-
- return this._transform(point, zoom)._subtract(topLeft);
- },
-
- _transform: function (point, zoom) {
- var crs = this._map.options.crs;
- var transformation = crs.transformation;
- var scale = crs.scale(zoom);
-
- return transformation.transform(point, scale);
- }
- });
-
- L.Proj.imageOverlay = function (url, bounds, options) {
- return new L.Proj.ImageOverlay(url, bounds, options);
- };
-
- return L.Proj;
-}));
diff --git a/xcxjingqingmap/popup/user.html b/xcxjingqingmap/popup/user.html
deleted file mode 100644
index 5e131bc..0000000
--- a/xcxjingqingmap/popup/user.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <meta charset="utf-8" />
- <title>popup</title>
- <!-- Vue -->
- <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
-</head>
-
-<body>
- <div id="popup">
- <!-- 从layui传值给iframe 的占位input -->
- <input type="text" id="user" ref="user" style="display:none">
- 46476978--
- -{{ourData.title}}
- </div>
- <script>
- var me = new Vue({
- el: '#popup',
- data: {
- ourData: '',
- oldtime: '',
- },
- mounted() {
- this.oldtime = setTimeout(() => {//需要同步数据处理,input中value在mounted中没有直接传值
- clearTimeout(this.oldtime);
- this.ourData = JSON.parse(this.$refs.user.value);//json对象转js对象
- console.log(this.ourData,2)
- }, 100);
- }
- })
-
- </script>
-</body>
-
-</html>
\ No newline at end of file
diff --git a/xcxjingqingmap/xcxmap.html b/xcxjingqingmap/xcxmap.html
deleted file mode 100644
index 6e5be3f..0000000
--- a/xcxjingqingmap/xcxmap.html
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
- <title>map</title>
- <!-- vue -->
- <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
-
- <!-- leaflet支持 -->
- <script src="./lid/leaflet.js"></script>
- <link rel="stylesheet" href="./lid/leaflet.css" />
-
- <!-- leaflet聚合支持 -->
- <link rel="stylesheet" href="./lid/MarkerCluster.css" />
- <link rel="stylesheet" href="./lid/MarkerCluster.Default.css" />
- <script src="./lid/leaflet.markercluster-src.js"></script>
-
- <!-- layui支持 -->
- <!-- <link rel="stylesheet" href="../map/lib/layui/css/layui.css" media="all"> -->
- <!-- <script src="../map/lib/layui/layui.js" charset="utf-8"></script> -->
-
- <!-- axios支持 -->
- <script src="../map/lib/axios.js"></script>
-
- <!-- elementui -->
- <script src="../map/lib/elementUi.js"></script>
- <!-- <link rel="stylesheet" href="../map/lib/elementUi.css"> -->
- <link rel="stylesheet" href="./css/elementUI.css">
- <!-- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> -->
-
- <!-- jqurey -->
- <script src="../map/lib/jquery.js" charset="utf-8"></script>
-
- <!-- 微信支持 -->
- <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
- <!-- <script src="./js/wx.js"></script> -->
-
- <!-- omyself支持 -->
- <link rel="stylesheet" href="./css/body.css" />
-
- <!-- myDomMove -->
- <script src="./js/move.js"></script>
- <!-- sha1加密 -->
- <!-- <script src="./js/sha1.js"></script> -->
-
-</head>
-
-<body>
- <div id="mapVue">
- <div class="dingwei" @click="locationMap">
- <img style="width: 80%;height: 80%;" src="./img/dingwei.png" alt="">
- </div>
- <div id="map"></div>
- <div id="seedata">
- <div class="title">
- {{seedata.place}}
- <!-- {{getdata[0].place}} -->
- <div class="title-span"> </div>
- <div class="title-span"> </div>
- </div>
- <div class="main">
- <div class="f-m-once">
- <div class="f-m-o-title">
- <!-- <img class="f-m-o-t-img" src="./img/ren.png" alt=""> -->
- 路线名称:
- </div>
- <div class="f-m-o-center">{{seedata.deptName}}</div>
- </div>
-
- <el-divider></el-divider>
- <div class="f-m-once">
- <div class="f-m-o-title">
- <!-- <img class="f-m-o-t-img" src="./img/beizhu.png" alt=""> -->
- 路线备注:
- </div>
- <div class="f-m-o-center">{{seedata.bz}}</div>
- </div>
- <div class="f-m-once">
- <div class="f-m-o-title">
- 照片上传:
- <img class="f-m-o-t-img" src="./img/photo.png" alt="">
- </div>
- <div class="f-m-o-center">{{seedata.bz}}</div>
- </div>
- </div>
- </div>
- </div>
- <!-- vue渲染 -->
- <script src="./js/vueMain.js"></script>
-</body>
-
-</html>
\ No newline at end of file
--
Gitblit v1.9.3