UNPKG

@ignf-geoportal/sdk-3d

Version:

French Geoportal SDK based on OpenLayers (2D) and iTowns (3D) libraries

103 lines 4.57 MB
/*! * @brief French Geoportal SDK based on OpenLayers (2D) and iTowns (3D) libraries * * This software is released under the licence CeCILL-B (Free BSD compatible) * @see http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt * @see http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt * @see http://www.cecill.info/ * * @copyright copyright (c) IGN * @license CeCILL-B * @author IGN * @version 3.5.6 * @date 12/06/2025 * @build * date : 6/12/2025, 9:14:46 AM * branch : tags/3.5.6 * commit : 8e7596e * dirty : true */ /*! * geoportal-extensions-openlayers. See https://github.com/IGNF/geoportal-extensions * @license https://github.com/IGNF/geoportal-extensions/blob/master/LICENCE.md * @version 3.4.6 */ /*! * geoportal-extensions-itowns. See https://github.com/IGNF/geoportal-extensions * @license https://github.com/IGNF/geoportal-extensions/blob/master/LICENCE.md * @version 2.5.1 */ /*! * iTowns. See http://www.itowns-project.org/ * @license https://github.com/iTowns/itowns/blob/master/LICENCE.md * @version 2.38.2 */ /*! * @overview ol-mapbox-style - Use Mapbox Style objects with OpenLayers * @copyright Copyright (c) 2016 openlayers * @license BSD 2-Clause "Simplified" License * See https://raw.githubusercontent.com/openlayers/ol-mapbox-style/master/LICENSE * @version 6.7.0 */ /*! * @overview OpenLayers. See http://openlayers.org/ * @copyright Copyright 2005-present, OpenLayers Contributors All rights reserved. * @license BSD 2-Clause "Simplified" License * See https://raw.githubusercontent.com/openlayers/openlayers/master/LICENCE.md * @version 6.9.0 */ /*! * Sortable -- JavaScript library for reorderable drag-and-drop lists on modern * browsers and touch devices. No jQuery required. Supports Meteor, AngularJS, * React, Polymer, Vue, Knockout and any CSS library, e.g. Bootstrap. * * Released under MIT LICENSE * * Copyright Lebedev Konstantin <ibnRubaXa@gmail.com> * https://github.com/SortableJS/Sortable * * 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. * * @version v1.8.4 */ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.4 */ /*! * @overview Proj4js - Javascript reprojection library. * * @authors * - Mike Adair madairATdmsolutions.ca * - Richard Greenwood richATgreenwoodmap.com * - Didier Richard didier.richardATign.fr * - Stephen Irons stephen.ironsATclear.net.nz * - Olivier Terral oterralATgmail.com * - Calvin Metcalf cmetcalfATappgeo.com * * @copyright Copyright (c) 2014, Mike Adair, Richard Greenwood, Didier Richard, Stephen Irons, Olivier Terral and Calvin Metcalf * @license Licensed under MIT license * See https://raw.githubusercontent.com/proj4js/proj4js/master/LICENSE.md * @version 2.7.5 */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("node-fetch")):"function"==typeof define&&define.amd?define("Gp",["require"],t):"object"==typeof exports?exports.Gp=t(require("node-fetch")):e.Gp=t(e[void 0])}(window,(function(e){return function(e){function t(t){for(var r,i,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&c.push(n[i][0]),n[i]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(l&&l(t);c.length;)c.shift()()}var r={},n={1:0};function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((function(t,i){r=n[e]=[t,i]}));t.push(r[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+"chunk-"+e+".js"}(e);var l=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(c);var r=n[e];if(0!==r){if(r){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,r[1](l)}n[e]=void 0}};var c=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpGp=window.webpackJsonpGp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=a;return i(i.s=421)}([function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return a})),r.d(t,"e",(function(){return s})),r.d(t,"i",(function(){return l})),r.d(t,"f",(function(){return c})),r.d(t,"t",(function(){return u})),r.d(t,"j",(function(){return h})),r.d(t,"k",(function(){return d})),r.d(t,"p",(function(){return p})),r.d(t,"n",(function(){return f})),r.d(t,"o",(function(){return m})),r.d(t,"m",(function(){return g})),r.d(t,"l",(function(){return y})),r.d(t,"r",(function(){return v})),r.d(t,"a",(function(){return b})),r.d(t,"q",(function(){return _})),r.d(t,"s",(function(){return A})),r.d(t,"u",(function(){return w})),r.d(t,"v",(function(){return x})),r.d(t,"z",(function(){return E})),r.d(t,"w",(function(){return C})),r.d(t,"y",(function(){return M})),r.d(t,"h",(function(){return T})),r.d(t,"x",(function(){return I})),r.d(t,"g",(function(){return P}));var n=r(6),i="http://www.w3.org/2001/XMLSchema-instance";function o(e,t){return P().createElementNS(e,t)}function a(e,t){return s(e,t,[]).join("")}function s(e,t,r){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)t?r.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):r.push(e.nodeValue);else{var n=void 0;for(n=e.firstChild;n;n=n.nextSibling)s(n,t,r)}return r}function l(e){return"documentElement"in e}function c(e,t,r){return e.getAttributeNS(t,r)||""}function u(e){return(new DOMParser).parseFromString(e,"application/xml")}function h(e,t){return function(r,i){var o=e.call(void 0!==t?t:this,r,i);if(void 0!==o){var a=i[i.length-1];Object(n.c)(a,o)}}}function d(e,t){return function(r,n){var i=e.call(void 0!==t?t:this,r,n);void 0!==i&&n[n.length-1].push(i)}}function p(e,t){return function(r,n){var i=e.call(void 0!==t?t:this,r,n);void 0!==i&&(n[n.length-1]=i)}}function f(e,t,r){return function(n,i){var o=e.call(void 0!==r?r:this,n,i);if(void 0!==o){var a=i[i.length-1],s=void 0!==t?t:n.localName,l=void 0;s in a?l=a[s]:(l=[],a[s]=l),l.push(o)}}}function m(e,t,r){return function(n,i){var o=e.call(void 0!==r?r:this,n,i);void 0!==o&&(i[i.length-1][void 0!==t?t:n.localName]=o)}}function g(e,t){return function(r,n,i){e.call(void 0!==t?t:this,r,n,i),i[i.length-1].node.appendChild(r)}}function y(e,t){var r,n;return function(t,i,o){if(void 0===r){r={};var a={};a[t.localName]=e,r[t.namespaceURI]=a,n=v(t.localName)}E(r,n,i,o)}}function v(e,t){var r=e;return function(e,n,i){var a=n[n.length-1].node,s=r;return void 0===s&&(s=i),o(void 0!==t?t:a.namespaceURI,s)}}var b=v();function _(e,t){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=e[t[i]];return n}function A(e,t,r){var n,i,o=void 0!==r?r:{};for(n=0,i=e.length;n<i;++n)o[e[n]]=t;return o}function w(e,t,r,n){var i;for(i=t.firstElementChild;i;i=i.nextElementSibling){var o=e[i.namespaceURI];if(void 0!==o){var a=o[i.localName];void 0!==a&&a.call(n,i,r)}}}function x(e,t,r,n,i){return n.push(e),w(t,r,n,i),n.pop()}function E(e,t,r,n,i,o){for(var a,s,l=(void 0!==i?i:r).length,c=0;c<l;++c)void 0!==(a=r[c])&&void 0!==(s=t.call(void 0!==o?o:this,a,n,void 0!==i?i[c]:void 0))&&e[s.namespaceURI][s.localName].call(o,s,a,n)}function C(e,t,r,n,i,o,a){return i.push(e),E(t,r,n,i,o,a),i.pop()}var S=void 0;function M(e){S=e}function T(){return void 0===S&&"undefined"!=typeof XMLSerializer&&(S=new XMLSerializer),S}var O=void 0;function I(e){O=e}function P(){return void 0===O&&"undefined"!=typeof document&&(O=document.implementation.createDocument("","",null)),O}},function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"h",(function(){return h})),r.d(t,"i",(function(){return d})),r.d(t,"j",(function(){return p})),r.d(t,"k",(function(){return f})),r.d(t,"l",(function(){return m})),r.d(t,"m",(function(){return g})),r.d(t,"n",(function(){return y})),r.d(t,"o",(function(){return v})),r.d(t,"p",(function(){return b})),r.d(t,"q",(function(){return _})),r.d(t,"r",(function(){return A})),r.d(t,"b",(function(){return w})),r.d(t,"s",(function(){return x})),r.d(t,"t",(function(){return E})),r.d(t,"u",(function(){return C})),r.d(t,"v",(function(){return S})),r.d(t,"w",(function(){return M})),r.d(t,"x",(function(){return T})),r.d(t,"y",(function(){return O})),r.d(t,"z",(function(){return I})),r.d(t,"A",(function(){return P})),r.d(t,"B",(function(){return R})),r.d(t,"C",(function(){return L})),r.d(t,"D",(function(){return k})),r.d(t,"E",(function(){return j})),r.d(t,"F",(function(){return D})),r.d(t,"G",(function(){return N})),r.d(t,"I",(function(){return G})),r.d(t,"H",(function(){return F})),r.d(t,"J",(function(){return U})),r.d(t,"K",(function(){return B})),r.d(t,"L",(function(){return z})),r.d(t,"M",(function(){return V})),r.d(t,"N",(function(){return W})),r.d(t,"O",(function(){return H})),r.d(t,"Q",(function(){return q})),r.d(t,"R",(function(){return Z})),r.d(t,"S",(function(){return X})),r.d(t,"P",(function(){return Y})),r.d(t,"a",(function(){return J})),r.d(t,"T",(function(){return K}));var n=r(218),i=r(103),o=r(16);function a(e){for(var t=f(),r=0,n=e.length;r<n;++r)E(t,e[r]);return t}function s(e,t,r){return r?(r[0]=e[0]-t,r[1]=e[1]-t,r[2]=e[2]+t,r[3]=e[3]+t,r):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function l(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function c(e,t,r){var n,i;return(n=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0)*n+(i=r<e[1]?e[1]-r:e[3]<r?r-e[3]:0)*i}function u(e,t){return d(e,t[0],t[1])}function h(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function d(e,t,r){return e[0]<=t&&t<=e[2]&&e[1]<=r&&r<=e[3]}function p(e,t){var r=e[0],n=e[1],o=e[2],a=e[3],s=t[0],l=t[1],c=i.a.UNKNOWN;return s<r?c|=i.a.LEFT:s>o&&(c|=i.a.RIGHT),l<n?c|=i.a.BELOW:l>a&&(c|=i.a.ABOVE),c===i.a.UNKNOWN&&(c=i.a.INTERSECTING),c}function f(){return[1/0,1/0,-1/0,-1/0]}function m(e,t,r,n,i){return i?(i[0]=e,i[1]=t,i[2]=r,i[3]=n,i):[e,t,r,n]}function g(e){return m(1/0,1/0,-1/0,-1/0,e)}function y(e,t){var r=e[0],n=e[1];return m(r,n,r,n,t)}function v(e,t){return C(g(t),e)}function b(e,t,r,n,i){return S(g(i),e,t,r,n)}function _(e,t){return M(g(t),e)}function A(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function w(e,t,r){return Math.abs(e[0]-t[0])<r&&Math.abs(e[2]-t[2])<r&&Math.abs(e[1]-t[1])<r&&Math.abs(e[3]-t[3])<r}function x(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function E(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function C(e,t){for(var r=0,n=t.length;r<n;++r)E(e,t[r]);return e}function S(e,t,r,n,i){for(;r<n;r+=i)T(e,t[r],t[r+1]);return e}function M(e,t){for(var r=0,n=t.length;r<n;++r)C(e,t[r]);return e}function T(e,t,r){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],r)}function O(e,t){var r;return(r=t(P(e)))||(r=t(R(e)))||(r=t(V(e)))?r:(r=t(z(e)))||!1}function I(e){var t=0;return q(e)||(t=W(e)*N(e)),t}function P(e){return[e[0],e[1]]}function R(e){return[e[2],e[1]]}function L(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function k(e,t){var r;return t===n.a.BOTTOM_LEFT?r=P(e):t===n.a.BOTTOM_RIGHT?r=R(e):t===n.a.TOP_LEFT?r=z(e):t===n.a.TOP_RIGHT?r=V(e):Object(o.a)(!1,13),r}function j(e,t){var r=Math.min(e[0],t[0]),n=Math.min(e[1],t[1]);return(Math.max(e[2],t[2])-r)*(Math.max(e[3],t[3])-n)}function D(e,t,r,n,i){var o=t*n[0]/2,a=t*n[1]/2,s=Math.cos(r),l=Math.sin(r),c=o*s,u=o*l,h=a*s,d=a*l,p=e[0],f=e[1],g=p-c+d,y=p-c-d,v=p+c-d,b=p+c+d,_=f-u-h,A=f-u+h,w=f+u+h,x=f+u-h;return m(Math.min(g,y,v,b),Math.min(_,A,w,x),Math.max(g,y,v,b),Math.max(_,A,w,x),i)}function N(e){return e[3]-e[1]}function G(e,t){return I(F(e,t))}function F(e,t,r){var n=r||[1/0,1/0,-1/0,-1/0];return H(e,t)?(e[0]>t[0]?n[0]=e[0]:n[0]=t[0],e[1]>t[1]?n[1]=e[1]:n[1]=t[1],e[2]<t[2]?n[2]=e[2]:n[2]=t[2],e[3]<t[3]?n[3]=e[3]:n[3]=t[3]):g(n),n}function U(e){return W(e)+N(e)}function B(e){return[e[2]-e[0],e[3]-e[1]]}function z(e){return[e[0],e[3]]}function V(e){return[e[2],e[3]]}function W(e){return e[2]-e[0]}function H(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function q(e){return e[2]<e[0]||e[3]<e[1]}function Z(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function X(e,t){var r=(e[2]-e[0])/2*(t-1),n=(e[3]-e[1])/2*(t-1);e[0]-=r,e[2]+=r,e[1]-=n,e[3]+=n}function Y(e,t,r){var n=!1,o=p(e,t),a=p(e,r);if(o===i.a.INTERSECTING||a===i.a.INTERSECTING)n=!0;else{var s=e[0],l=e[1],c=e[2],u=e[3],h=t[0],d=t[1],f=r[0],m=r[1],g=(m-d)/(f-h),y=void 0,v=void 0;a&i.a.ABOVE&&!(o&i.a.ABOVE)&&(n=(y=f-(m-u)/g)>=s&&y<=c),n||!(a&i.a.RIGHT)||o&i.a.RIGHT||(n=(v=m-(f-c)*g)>=l&&v<=u),n||!(a&i.a.BELOW)||o&i.a.BELOW||(n=(y=f-(m-l)/g)>=s&&y<=c),n||!(a&i.a.LEFT)||o&i.a.LEFT||(n=(v=m-(f-s)*g)>=l&&v<=u)}return n}function J(e,t,r,n){var i=[];if(n>1)for(var o=e[2]-e[0],a=e[3]-e[1],s=0;s<n;++s)i.push(e[0]+o*s/n,e[1],e[2],e[1]+a*s/n,e[2]-o*s/n,e[3],e[0],e[3]-a*s/n);else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);for(var l=[],c=[],u=(s=0,i.length);s<u;s+=2)l.push(i[s]),c.push(i[s+1]);return function(e,t,r){return m(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),r)}(l,c,r)}function K(e,t){var r=t.getExtent(),n=L(e);if(t.canWrapX()&&(n[0]<r[0]||n[0]>=r[2])){var i=W(r),o=Math.floor((n[0]-r[0])/i)*i;e[0]-=o,e[2]-=o}return e}},function(e,t,r){"use strict";r.d(t,"k",(function(){return p})),r.d(t,"y",(function(){return f})),r.d(t,"g",(function(){return m})),r.d(t,"h",(function(){return g})),r.d(t,"t",(function(){return y})),r.d(t,"u",(function(){return v})),r.d(t,"e",(function(){return b})),r.d(t,"f",(function(){return _})),r.d(t,"i",(function(){return A})),r.d(t,"l",(function(){return w})),r.d(t,"n",(function(){return x})),r.d(t,"d",(function(){return E})),r.d(t,"p",(function(){return C})),r.d(t,"A",(function(){return S})),r.d(t,"o",(function(){return M})),r.d(t,"w",(function(){return T})),r.d(t,"v",(function(){return O})),r.d(t,"E",(function(){return I})),r.d(t,"F",(function(){return P})),r.d(t,"G",(function(){return R})),r.d(t,"z",(function(){return k})),r.d(t,"j",(function(){return j})),r.d(t,"x",(function(){return D})),r.d(t,"H",(function(){return N})),r.d(t,"B",(function(){return G})),r.d(t,"q",(function(){return F})),r.d(t,"C",(function(){return U})),r.d(t,"r",(function(){return B})),r.d(t,"D",(function(){return z})),r.d(t,"s",(function(){return V})),r.d(t,"m",(function(){return W})),r.d(t,"c",(function(){return H}));var n=r(128);r.d(t,"b",(function(){return n.a}));var i=r(52);r.d(t,"a",(function(){return i.a}));var o=r(92),a=r(148),s=r(167),l=r(93),c=r(1),u=r(8),h=r(67),d=r(18);function p(e,t,r){var n;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];n=t}else n=e.slice();return n}function f(e,t,r){if(void 0!==t&&e!==t){for(var n=0,i=e.length;n<i;++n)t[n]=e[n];e=t}return e}function m(e){Object(s.a)(e.getCode(),e),Object(l.a)(e,e,p)}function g(e){e.forEach(m)}function y(e){return"string"==typeof e?Object(s.c)(e):e||null}function v(e,t,r,n){var o,a=(e=y(e)).getPointResolutionFunc();if(a){if(o=a(t,r),n&&n!==e.getUnits())(l=e.getMetersPerUnit())&&(o=o*l/i.a[n])}else{var s=e.getUnits();if(s==i.b.DEGREES&&!n||n==i.b.DEGREES)o=t;else{var l,c=T(e,y("EPSG:4326"));if(c===f&&s!==i.b.DEGREES)o=t*e.getMetersPerUnit();else{var u=[r[0]-t/2,r[1],r[0]+t/2,r[1],r[0],r[1]-t/2,r[0],r[1]+t/2];u=c(u,u,2),o=(Object(h.c)(u.slice(0,2),u.slice(2,4))+Object(h.c)(u.slice(4,6),u.slice(6,8)))/2}void 0!==(l=n?i.a[n]:e.getMetersPerUnit())&&(o/=l)}}return o}function b(e){g(e),e.forEach((function(t){e.forEach((function(e){t!==e&&Object(l.a)(t,e,p)}))}))}function _(e,t,r,n){e.forEach((function(e){t.forEach((function(t){Object(l.a)(e,t,r),Object(l.a)(t,e,n)}))}))}function A(){Object(s.b)(),Object(l.b)()}function w(e,t){return e?"string"==typeof e?y(e):e:y(t)}function x(e){return function(t,r,n){for(var i=t.length,o=void 0!==n?n:2,a=void 0!==r?r:new Array(i),s=0;s<i;s+=o){var l=e([t[s],t[s+1]]);a[s]=l[0],a[s+1]=l[1];for(var c=o-1;c>=2;--c)a[s+c]=t[s+c]}return a}}function E(e,t,r,n){var i=y(e),o=y(t);Object(l.a)(i,o,x(r)),Object(l.a)(o,i,x(n))}function C(e,t){return I(e,"EPSG:4326",void 0!==t?t:"EPSG:3857")}function S(e,t){var r=I(e,void 0!==t?t:"EPSG:3857","EPSG:4326"),n=r[0];return(n<-180||n>180)&&(r[0]=Object(u.e)(n+180,360)-180),r}function M(e,t){if(e===t)return!0;var r=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||T(e,t)===p)&&r}function T(e,t){var r=e.getCode(),n=t.getCode(),i=Object(l.c)(r,n);return i||(i=f),i}function O(e,t){return T(y(e),y(t))}function I(e,t,r){return O(t,r)(e,void 0,e.length)}function P(e,t,r,n){var i=O(t,r);return Object(c.a)(e,i,void 0,n)}function R(e,t,r){return T(t,r)(e)}var L=null;function k(e){L=y(e)}function j(){L=null}function D(){return L}function N(){k("EPSG:4326")}function G(e,t){return L?I(e,t,L):e}function F(e,t){return L?I(e,L,t):e}function U(e,t){return L?P(e,t,L):e}function B(e,t){return L?P(e,L,t):e}function z(e,t){if(!L)return e;var r=y(t).getUnits(),n=L.getUnits();return r&&n?e*i.a[r]/i.a[n]:e}function V(e,t){if(!L)return e;var r=y(t).getUnits(),n=L.getUnits();return r&&n?e*i.a[n]/i.a[r]:e}function W(e,t,r){return function(n){var i,o,a=n[0],s=n[1];if(e.canWrapX()){var l=e.getExtent(),h=Object(c.N)(l);(o=Object(d.i)(n,e,h))&&(a-=o*h),a=Object(u.a)(a,l[0],l[2]),s=Object(u.a)(s,l[1],l[3]),i=r([a,s])}else i=r(n);return o&&t.canWrapX()&&(i[0]+=o*Object(c.N)(t.getExtent())),i}}function H(){b(o.d),b(a.c),_(a.c,o.d,o.g,o.h)}H()},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"f",(function(){return h})),r.d(t,"h",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"j",(function(){return f})),r.d(t,"k",(function(){return m})),r.d(t,"l",(function(){return g})),r.d(t,"m",(function(){return y})),r.d(t,"n",(function(){return v}));var n=r(0),i=r(114);function o(e){return a(Object(n.d)(e,!1))}function a(e){var t=/^\s*(true|1)|(false|0)\s*$/.exec(e);return t?void 0!==t[1]||!1:void 0}function s(e){var t=Object(n.d)(e,!1),r=Date.parse(t);return isNaN(r)?void 0:r/1e3}function l(e){return c(Object(n.d)(e,!1))}function c(e){var t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);return t?parseFloat(t[1]):void 0}function u(e){return h(Object(n.d)(e,!1))}function h(e){var t=/^\s*(\d+)\s*$/.exec(e);return t?parseInt(t[1],10):void 0}function d(e){return Object(n.d)(e,!1).trim()}function p(e,t){v(e,t?"1":"0")}function f(e,t){e.appendChild(Object(n.g)().createCDATASection(t))}function m(e,t){var r=new Date(1e3*t),o=r.getUTCFullYear()+"-"+Object(i.b)(r.getUTCMonth()+1,2)+"-"+Object(i.b)(r.getUTCDate(),2)+"T"+Object(i.b)(r.getUTCHours(),2)+":"+Object(i.b)(r.getUTCMinutes(),2)+":"+Object(i.b)(r.getUTCSeconds(),2)+"Z";e.appendChild(Object(n.g)().createTextNode(o))}function g(e,t){var r=t.toPrecision();e.appendChild(Object(n.g)().createTextNode(r))}function y(e,t){var r=t.toString();e.appendChild(Object(n.g)().createTextNode(r))}function v(e,t){e.appendChild(Object(n.g)().createTextNode(t))}},function(e,t,r){"use strict";t.a={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},function(e,t,r){"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return a}));var i=0;function o(e){return e.ol_uid||(e.ol_uid=String(++i))}var a="6.9.0"},function(e,t,r){"use strict";function n(e,t,r){for(var n,o,a=r||i,s=0,l=e.length,c=!1;s<l;)(o=+a(e[n=s+(l-s>>1)],t))<0?s=n+1:(l=n,c=!o);return c?s:~s}function i(e,t){return e>t?1:e<t?-1:0}function o(e,t){return e.indexOf(t)>=0}function a(e,t,r){var n=e.length;if(e[0]<=t)return 0;if(t<=e[n-1])return n-1;var i=void 0;if(r>0){for(i=1;i<n;++i)if(e[i]<t)return i-1}else if(r<0){for(i=1;i<n;++i)if(e[i]<=t)return i}else for(i=1;i<n;++i){if(e[i]==t)return i;if(e[i]<t)return"function"==typeof r?r(t,e[i-1],e[i])>0?i-1:i:e[i-1]-t<t-e[i]?i-1:i}return n-1}function s(e,t,r){for(;t<r;){var n=e[t];e[t]=e[r],e[r]=n,++t,--r}}function l(e,t){for(var r=Array.isArray(t)?t:[t],n=r.length,i=0;i<n;i++)e[e.length]=r[i]}function c(e,t){var r=e.indexOf(t),n=r>-1;return n&&e.splice(r,1),n}function u(e,t){for(var r,n=e.length>>>0,i=0;i<n;i++)if(t(r=e[i],i,e))return r;return null}function h(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function d(e,t){var r,n=e.length,i=Array(e.length);for(r=0;r<n;r++)i[r]={index:r,value:e[r]};for(i.sort((function(e,r){return t(e.value,r.value)||e.index-r.index})),r=0;r<e.length;r++)e[r]=i[r].value}function p(e,t){var r;return!e.every((function(n,i){return r=i,!t(n,i,e)}))?r:-1}function f(e,t,r){var n=t||i;return e.every((function(t,i){if(0===i)return!0;var o=n(e[i-1],t);return!(o>0||r&&0===o)}))}r.d(t,"a",(function(){return n})),r.d(t,"i",(function(){return i})),r.d(t,"f",(function(){return o})),r.d(t,"h",(function(){return a})),r.d(t,"k",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"j",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"b",(function(){return h})),r.d(t,"l",(function(){return d})),r.d(t,"e",(function(){return p})),r.d(t,"g",(function(){return f}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return a}));var n="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),n=1,i=arguments.length;n<i;++n){var o=arguments[n];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])}return r};function i(e){for(var t in e)delete e[t]}var o="function"==typeof Object.values?Object.values:function(e){var t=[];for(var r in e)t.push(e[r]);return t};function a(e){var t;for(t in e)return!1;return!t}},function(e,t,r){"use strict";function n(e,t,r){return Math.min(Math.max(e,t),r)}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"h",(function(){return a})),r.d(t,"g",(function(){return s})),r.d(t,"f",(function(){return l})),r.d(t,"i",(function(){return c})),r.d(t,"j",(function(){return u})),r.d(t,"e",(function(){return h})),r.d(t,"c",(function(){return d}));var i="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},o="log2"in Math?Math.log2:function(e){return Math.log(e)*Math.LOG2E};function a(e,t,r,n,i,o){var a=i-r,l=o-n;if(0!==a||0!==l){var c=((e-r)*a+(t-n)*l)/(a*a+l*l);c>1?(r=i,n=o):c>0&&(r+=a*c,n+=l*c)}return s(e,t,r,n)}function s(e,t,r,n){var i=r-e,o=n-t;return i*i+o*o}function l(e){for(var t=e.length,r=0;r<t;r++){for(var n=r,i=Math.abs(e[r][r]),o=r+1;o<t;o++){var a=Math.abs(e[o][r]);a>i&&(i=a,n=o)}if(0===i)return null;var s=e[n];e[n]=e[r],e[r]=s;for(var l=r+1;l<t;l++)for(var c=-e[l][r]/e[r][r],u=r;u<t+1;u++)r==u?e[l][u]=0:e[l][u]+=c*e[r][u]}for(var h=new Array(t),d=t-1;d>=0;d--){h[d]=e[d][t]/e[d][d];for(var p=d-1;p>=0;p--)e[p][t]-=e[p][d]*h[d]}return h}function c(e){return 180*e/Math.PI}function u(e){return e*Math.PI/180}function h(e,t){var r=e%t;return r*t<0?r+t:r}function d(e,t,r){return e+r*(t-e)}},function(e,t,r){"use strict";r.d(t,"d",(function(){return s})),r.d(t,"j",(function(){return l})),r.d(t,"i",(function(){return c})),r.d(t,"m",(function(){return u})),r.d(t,"n",(function(){return h})),r.d(t,"a",(function(){return d})),r.d(t,"k",(function(){return p})),r.d(t,"l",(function(){return f})),r.d(t,"h",(function(){return m})),r.d(t,"p",(function(){return g})),r.d(t,"b",(function(){return y})),r.d(t,"c",(function(){return v})),r.d(t,"f",(function(){return b})),r.d(t,"g",(function(){return _})),r.d(t,"e",(function(){return A})),r.d(t,"o",(function(){return w}));var n,i=r(51),o=r(16),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(e){return u(e,1,0,0,1,0,0)}function c(e,t){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=t[0],c=t[1],u=t[2],h=t[3],d=t[4],p=t[5];return e[0]=r*l+i*c,e[1]=n*l+o*c,e[2]=r*u+i*h,e[3]=n*u+o*h,e[4]=r*d+i*p+a,e[5]=n*d+o*p+s,e}function u(e,t,r,n,i,o,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=o,e[5]=a,e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function d(e,t){var r=t[0],n=t[1];return t[0]=e[0]*r+e[2]*n+e[4],t[1]=e[1]*r+e[3]*n+e[5],t}function p(e,t){var r=Math.cos(t),n=Math.sin(t);return c(e,u(a,r,n,-n,r,0,0))}function f(e,t,r){return c(e,u(a,t,0,0,r,0,0))}function m(e,t,r){return u(e,t,0,0,r,0,0)}function g(e,t,r){return c(e,u(a,1,0,0,1,t,r))}function y(e,t,r,n,i,o,a,s){var l=Math.sin(o),c=Math.cos(o);return e[0]=n*c,e[1]=i*l,e[2]=-n*l,e[3]=i*c,e[4]=a*n*c-s*n*l+t,e[5]=a*i*l+s*i*c+r,e}function v(e,t,r,n,i,o,a){return w(y([1,0,0,1,0,0],e,t,r,n,i,o,a))}function b(e){return _(e,e)}function _(e,t){var r=A(t);Object(o.a)(0!==r,32);var n=t[0],i=t[1],a=t[2],s=t[3],l=t[4],c=t[5];return e[0]=s/r,e[1]=-i/r,e[2]=-a/r,e[3]=n/r,e[4]=(a*c-s*l)/r,e[5]=-(n*c-i*l)/r,e}function A(e){return e[0]*e[3]-e[1]*e[2]}function w(e){var t="matrix("+e.join(", ")+")";if(i.h)return t;var r=n||(n=document.createElement("div"));return r.style.transform=t,r.style.transform}},function(e,t,r){"use strict";t.a={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},function(e,t,r){"use strict";r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return h})),r.d(t,"e",(function(){return d})),r.d(t,"f",(function(){return p})),r.d(t,"g",(function(){return f})),r.d(t,"i",(function(){return m})),r.d(t,"k",(function(){return g})),r.d(t,"l",(function(){return y})),r.d(t,"m",(function(){return v})),r.d(t,"j",(function(){return b})),r.d(t,"h",(function(){return _})),r.d(t,"a",(function(){return A})),r.d(t,"o",(function(){return w})),r.d(t,"v",(function(){return S})),r.d(t,"t",(function(){return M})),r.d(t,"q",(function(){return T})),r.d(t,"r",(function(){return I})),r.d(t,"p",(function(){return P})),r.d(t,"s",(function(){return R})),r.d(t,"u",(function(){return L})),r.d(t,"n",(function(){return k}));var n=r(66),i=r(119),o=r(51),a=r(7),s=r(25),l=r(29),c="10px sans-serif",u="#000",h="round",d=[],p=0,f="round",m=10,g="#000",y="center",v="middle",b=[0,0,0,0],_=1,A=new n.b,w=new i.a;w.setSize=function(){console.warn("labelCache is deprecated.")};var x,E,C=null,S={},M=function(){var e,t,r=["monospace","serif"],n=r.length,i="wmytzilWMYTZIL@#/&?$%10";function o(e,o,a){for(var s=!0,l=0;l<n;++l){var c=r[l];if(t=I(e+" "+o+" 32px "+c,i),a!=c){var u=I(e+" "+o+" 32px "+a+","+c,i);s=s&&u!=t}}return!!s}function s(){for(var t=!0,r=A.getKeys(),n=0,i=r.length;n<i;++n){var s=r[n];A.get(s)<100&&(o.apply(this,s.split("\n"))?(Object(a.b)(S),C=null,x=void 0,A.set(s,100)):(A.set(s,A.get(s)+1,!0),t=!1))}t&&(clearInterval(e),e=void 0)}return function(t){var r=Object(l.h)(t);if(r)for(var n=r.families,i=0,a=n.length;i<a;++i){var c=n[i],u=r.style+"\n"+r.weight+"\n"+c;void 0===A.get(u)&&(A.set(u,100,!0),o(r.style,r.weight,c)||(A.set(u,0,!0),void 0===e&&(e=setInterval(s,32))))}}}(),T=function(e){var t=S[e];if(null==t){if(o.h){var r=Object(l.h)(e),n=O(e,"Žg");t=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else E||((E=document.createElement("div")).innerHTML="M",E.style.minHeight="0",E.style.maxHeight="none",E.style.height="auto",E.style.padding="0",E.style.border="none",E.style.position="absolute",E.style.display="block",E.style.left="-99999px"),E.style.font=e,document.body.appendChild(E),t=E.offsetHeight,document.body.removeChild(E);S[e]=t}return t};function O(e,t){return C||(C=Object(s.a)(1,1)),e!=x&&(C.font=e,x=C.font),C.measureText(t)}function I(e,t){return O(e,t).width}function P(e,t,r){if(t in r)return r[t];var n=I(e,t);return r[t]=n,n}function R(e,t,r){for(var n=t.length,i=0,o=0;o<n;++o){var a=I(e,t[o]);i=Math.max(i,a),r.push(a)}return i}function L(e,t,r,n){0!==t&&(e.translate(r,n),e.rotate(t),e.translate(-r,-n))}function k(e,t,r,n,i,o,a,s,l,c,u){e.save(),1!==r&&(e.globalAlpha*=r),t&&e.setTransform.apply(e,t),n.contextInstructions?(e.translate(l,c),e.scale(u[0],u[1]),function(e,t){for(var r=e.contextInstructions,n=0,i=r.length;n<i;n+=2)Array.isArray(r[n+1])?t[r[n]].apply(t,r[n+1]):t[r[n]]=r[n+1]}(n,e)):u[0]<0||u[1]<0?(e.translate(l,c),e.scale(u[0],u[1]),e.drawImage(n,i,o,a,s,0,0,a,s)):e.drawImage(n,i,o,a,s,l,c,a*u[0],s*u[1]),e.restore()}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return a}));var n=r(7);function i(e,t,r,n,i){if(n&&n!==e&&(r=r.bind(n)),i){var o=r;r=function(){e.removeEventListener(t,r),o.apply(this,arguments)}}var a={target:e,type:t,listener:r};return e.addEventListener(t,r),a}function o(e,t,r,n){return i(e,t,r,n,!0)}function a(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),Object(n.b)(e))}},function(e,t,r){"use strict";t.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";t.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(241);function i(e,t){if(!e)throw new n.a(t)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"h",(function(){return h})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return p})),r.d(t,"i",(function(){return f})),r.d(t,"k",(function(){return m})),r.d(t,"o",(function(){return g})),r.d(t,"r",(function(){return y})),r.d(t,"f",(function(){return v})),r.d(t,"l",(function(){return b})),r.d(t,"n",(function(){return _})),r.d(t,"q",(function(){return A})),r.d(t,"s",(function(){return w})),r.d(t,"j",(function(){return x})),r.d(t,"t",(function(){return E})),r.d(t,"m",(function(){return C})),r.d(t,"p",(function(){return S}));var n=r(42),i=r(35),o=r(51),a=r(16);function s(e){var t=arguments;return function(e){for(var r=!0,n=0,i=t.length;n<i&&(r=r&&t[n](e));++n);return r}}var l=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},c=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},u=function(e){return e.target.getTargetElement().contains(document.activeElement)},h=function(e){return!e.map.getTargetElement().hasAttribute("tabindex")||u(e)},d=i.b,p=function(e){return e.type==n.a.CLICK},f=function(e){var t=e.originalEvent;return 0==t.button&&!(o.g&&o.d&&t.ctrlKey)},m=i.a,g=function(e){return"pointermove"==e.type},y=function(e){return e.type==n.a.SINGLECLICK},v=function(e){return e.type==n.a.DBLCLICK},b=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},_=function(e){var t=e.originalEvent;return!t.altKey&&(o.d?t.metaKey:t.ctrlKey)&&!t.shiftKey},A=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},w=function(e){var t=e.originalEvent.target.tagName;return"INPUT"!==t&&"SELECT"!==t&&"TEXTAREA"!==t},x=function(e){var t=e.originalEvent;return Object(a.a)(void 0!==t,56),"mouse"==t.pointerType},E=function(e){var t=e.originalEvent;return Object(a.a)(void 0!==t,56),"touch"===t.pointerType},C=function(e){var t=e.originalEvent;return Object(a.a)(void 0!==t,56),"pen"===t.pointerType},S=function(e){var t=e.originalEvent;return Object(a.a)(void 0!==t,56),t.isPrimary&&0===t.button}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"h",(function(){return h})),r.d(t,"g",(function(){return d})),r.d(t,"j",(function(){return p})),r.d(t,"k",(function(){return f})),r.d(t,"l",(function(){return m})),r.d(t,"f",(function(){return g})),r.d(t,"m",(function(){return y})),r.d(t,"n",(function(){return v})),r.d(t,"o",(function(){return b})),r.d(t,"p",(function(){return _})),r.d(t,"i",(function(){return A}));var n=r(1),i=r(8),o=r(114);function a(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function s(e,t){var r=t.getRadius(),n=t.getCenter(),i=n[0],o=n[1],a=e[0]-i,s=e[1]-o;0===a&&0===s&&(a=1);var l=Math.sqrt(a*a+s*s);return[i+r*a/l,o+r*s/l]}function l(e,t){var r,n,i=e[0],o=e[1],a=t[0],s=t[1],l=a[0],c=a[1],u=s[0],h=s[1],d=u-l,p=h-c,f=0===d&&0===p?0:(d*(i-l)+p*(o-c))/(d*d+p*p||0);return f<=0?(r=l,n=c):f>=1?(r=u,n=h):(r=l+f*d,n=c+f*p),[r,n]}function c(e){return function(t){return b(t,e)}}function u(e,t,r){var n=Object(i.e)(t+180,360)-180,a=Math.abs(3600*n),s=r||0,l=Math.pow(10,s),c=Math.floor(a/3600),u=Math.floor((a-3600*c)/60),h=a-3600*c-60*u;return(h=Math.ceil(h*l)/l)>=60&&(h=0,u+=1),u>=60&&(u=0,c+=1),c+"° "+Object(o.b)(u,2)+"′ "+Object(o.b)(h,2,s)+"″"+(0==n?"":" "+e.charAt(n<0?1:0))}function h(e,t,r){return e?t.replace("{x}",e[0].toFixed(r)).replace("{y}",e[1].toFixed(r)):""}function d(e,t){for(var r=!0,n=e.length-1;n>=0;--n)if(e[n]!=t[n]){r=!1;break}return r}function p(e,t){var r=Math.cos(t),n=Math.sin(t),i=e[0]*r-e[1]*n,o=e[1]*r+e[0]*n;return e[0]=i,e[1]=o,e}function f(e,t){return e[0]*=t,e[1]*=t,e}function m(e,t){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function g(e,t){return Math.sqrt(m(e,t))}function y(e,t){return m(e,l(e,t))}function v(e,t){return e?u("NS",e[1],t)+" "+u("EW",e[0],t):""}function b(e,t){return h(e,"{x}, {y}",t)}function _(e,t){if(t.canWrapX()){var r=Object(n.N)(t.getExtent()),i=A(e,t,r);i&&(e[0]-=i*r)}return e}function A(e,t,r){var i=t.getExtent(),o=0;if(t.canWrapX()&&(e[0]<i[0]||e[0]>i[2])){var a=r||Object(n.N)(i);o=Math.floor((e[0]-i[0])/a)}return o}},function(e,t,r){"use strict";r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));var n={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},i=[n.FILL],o=[n.STROKE],a=[n.BEGIN_PATH],s=[n.CLOSE_PATH];t.c=n},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r.r(t),r.d(t,"ACESFilmicToneMapping",(function(){return re})),r.d(t,"AddEquation",(function(){return C})),r.d(t,"AddOperation",(function(){return K})),r.d(t,"AdditiveAnimationBlendMode",(function(){return Ot})),r.d(t,"AdditiveBlending",(function(){return A})),r.d(t,"AlphaFormat",(function(){return je})),r.d(t,"AlwaysDepth",(function(){return z})),r.d(t,"AlwaysStencilFunc",(function(){return er})),r.d(t,"AmbientLight",(function(){return Dh})),r.d(t,"AmbientLightProbe",(function(){return $h})),r.d(t,"AnimationClip",(function(){return sh})),r.d(t,"AnimationLoader",(function(){return mh})),r.d(t,"AnimationMixer",(function(){return Id})),r.d(t,"AnimationObjectGroup",(function(){return Td})),r.d(t,"AnimationUtils",(function(){return Xu})),r.d(t,"ArcCurve",(function(){return Tc})),r.d(t,"ArrayCamera",(function(){return Ks})),r.d(t,"ArrowHelper",(function(){return vp})),r.d(t,"Audio",(function(){return hd})),r.d(t,"AudioAnalyser",(function(){return yd})),r.d(t,"AudioContext",(function(){return Jh})),r.d(t,"AudioListener",(function(){return ud})),r.d(t,"AudioLoader",(function(){return Kh})),r.d(t,"AxesHelper",(function(){return bp})),r.d(t,"AxisHelper",(function(){return Xp})),r.d(t,"BackSide",(function(){return m})),r.d(t,"BasicDepthPacking",(function(){return jt})),r.d(t,"BasicShadowMap",(function(){return u})),r.d(t,"BinaryTextureLoader",(function(){return $p})),r.d(t,"Bone",(function(){return Nl})),r.d(t,"BooleanKeyframeTrack",(function(){return eh})),r.d(t,"BoundingBoxHelper",(function(){return Yp})),r.d(t,"Box2",(function(){return Ud})),r.d(t,"Box3",(function(){return Qr})),r.d(t,"Box3Helper",(function(){return pp})),r.d(t,"BoxBufferGeometry",(function(){return $i})),r.d(t,"BoxGeometry",(function(){return $i})),r.d(t,"BoxHelper",(function(){return dp})),r.d(t,"BufferAttribute",(function(){return mi})),r.d(t,"BufferGeometry",(function(){return Li})),r.d(t,"BufferGeometryLoader",(function(){return Vh})),r.d(t,"ByteType",(function(){return Ce})),r.d(t,"Cache",(function(){return ch})),r.d(t,"Camera",(function(){return io})),r.d(t,"CameraHelper",(function(){return cp})),r.d(t,"CanvasRenderer",(function(){return tf})),r.d(t,"CanvasTexture",(function(){return mc})),r.d(t,"CatmullRomCurve3",(function(){return kc})),r.d(t,"CineonToneMapping",(function(){return te})),r.d(t,"CircleBufferGeometry",(function(){return gc})),r.d(t,"CircleGeometry",(function(){return gc})),r.d(t,"ClampToEdgeWrapping",(function(){return de})),r.d(t,"Clock",(function(){return id})),r.d(t,"Color",(function(){return Gr})),r.d(t,"ColorKeyframeTrack",(function(){return th})),r.d(t,"CompressedTexture",(function(){return fc})),r.d(t,"CompressedTextureLoader",(function(){return gh})),r.d(t,"ConeBufferGeometry",(function(){return vc})),r.d(t,"ConeGeometry",(function(){return vc})),r.d(t,"CubeCamera",(function(){return ao})),r.d(t,"CubeReflectionMapping",(function(){return oe})),r.d(t,"CubeRefractionMapping",(function(){return ae})),r.d(t,"CubeTexture",(function(){return so})),r.d(t,"CubeTextureLoader",(function(){return vh})),r.d(t,"CubeUVReflectionMapping",(function(){return ce})),r.d(t,"CubeUVRefractionMapping",(function(){return ue})),r.d(t,"CubicBezierCurve",(function(){return Gc})),r.d(t,"CubicBezierCurve3",(function(){return Fc})),r.d(t,"CubicInterpolant",(function(){return Ju})),r.d(t,"CullFaceBack",(function(){return s})),r.d(t,"CullFaceFront",(function(){return l})),r.d(t,"CullFaceFrontBack",(function(){return c})),r.d(t,"CullFaceNone",(function(){return a})),r.d(t,"Curve",(function(){return Sc})),r.d(t,"CurvePath",(function(){return qc})),r.d(t,"CustomBlending",(function(){return E})),r.d(t,"CustomToneMapping",(function(){return ne})),r.d(t,"CylinderBufferGeometry",(function(){return yc})),r.d(t,"CylinderGeometry",(function(){return yc})),r.d(t,"Cylindrical",(function(){return Gd})),r.d(t,"DataTexture",(function(){return Gl})),r.d(t,"DataTexture2DArray",(function(){return ta})),r.d(t,"DataTexture3D",(function(){return sa})),r.d(t,"DataTextureLoader",(function(){return bh})),r.d(t,"DataUtils",(function(){return xp})),r.d(t,"DecrementStencilOp",(function(){return Vt})),r.d(t,"DecrementWrapStencilOp",(function(){return Ht})),r.d(t,"DefaultLoadingManager",(function(){return hh})),r.d(t,"DepthFormat",(function(){return Ue})),r.d(t,"DepthStencilFormat",(function(){return Be})),r.d(t,"DepthTexture",(function(){return tl})),r.d(t,"DirectionalLight",(function(){return jh})),r.d(t,"DirectionalLightHelper",(function(){return ap})),r.d(t,"DiscreteInterpolant",(function(){return Qu})),r.d(t,"DodecahedronBufferGeometry",(function(){return _c})),r.d(t,"DodecahedronGeometry",(function(){return _c})),r.d(t,"DoubleSide",(function(){return g})),r.d(t,"DstAlphaFactor",(function(){return D})),r.d(t,"DstColorFactor",(function(){return G})),r.d(t,"DynamicBufferAttribute",(function(){return Gp})),r.d(t,"DynamicCopyUsage",(function(){return lr})),r.d(t,"DynamicDrawUsage",(function(){return rr})),r.d(t,"DynamicReadUsage",(function(){return or})),r.d(t,"EdgesGeometry",(function(){return Cc})),r.d(t,"EdgesHelper",(function(){return Jp})),r.d(t,"EllipseCurve",(function(){return Mc})),r.d(t,"EqualDepth",(function(){return H})),r.d(t,"EqualStencilFunc",(function(){return Yt})),r.d(t,"EquirectangularReflectionMapping",(function(){return se})),r.d(t,"EquirectangularRefractionMapping",(function(){return le})),r.d(t,"Euler",(function(){return Nn})),r.d(t,"EventDispatcher",(function(){return pr})),r.d(t,"ExtrudeBufferGeometry",(function(){return xu})),r.d(t,"ExtrudeGeometry",(function(){return xu})),r.d(t,"FaceColors",(function(){return Mp})),r.d(t,"FileLoader",(function(){return fh})),r.d(t,"FlatShading",(function(){return y})),r.d(t,"Float16BufferAttribute",(function(){return xi})),r.d(t,"Float32Attribute",(function(){return qp})),r.d(t,"Float32BufferAttribute",(function(){return Ei})),r.d(t,"Float64Attribute",(function(){return Zp})),r.d(t,"Float64BufferAttribute",(function(){return Ci})),r.d(t,"FloatType",(function(){return Ie})),r.d(t,"Fog",(function(){return sl})),r.d(t,"FogExp2",(function(){return al})),r.d(t,"Font",(function(){return cf})),r.d(t,"FontLoader",(function(){return lf})),r.d(t,"FramebufferTexture",(function(){return pc})),r.d(t,"FrontSide",(function(){return f})),r.d(t,"Frustum",(function(){return go})),r.d(t,"GLBufferAttribute",(function(){return Ld})),r.d(t,"GLSL1",(function(){return ur})),r.d(t,"GLSL3",(function(){return hr})),r.d(t,"GreaterDepth",(function(){return Z})),r.d(t,"GreaterEqualDepth",(function(){return q})),r.d(t,"GreaterEqualStencilFunc",(function(){return $t})),r.d(t,"GreaterStencilFunc",(function(){return Kt})),r.d(t,"GridHelper",(function(){return tp})),r.d(t,"Group",(function(){return Qs})),r.d(t,"HalfFloatType",(function(){return Pe})),r.d(t,"HemisphereLight",(function(){return wh})),r.d(t,"HemisphereLightHelper",(function(){return ep})),r.d(t,"HemisphereLightProbe",(function(){return Qh})),r.d(t,"IcosahedronBufferGeometry",(function(){return Cu})),r.d(t,"IcosahedronGeometry",(function(){return Cu})),r.d(t,"ImageBitmapLoader",(function(){return Xh})),r.d(t,"ImageLoader",(function(){return yh})),r.d(t,"ImageUtils",(function(){return Ur})),r.d(t,"ImmediateRenderObject",(function(){return uf})),r.d(t,"IncrementStencilOp",(function(){return zt})),r.d(t,"IncrementWrapStencilOp",(function(){return Wt})),r.d(t,"InstancedBufferAttribute",(function(){return zl})),r.d(t,"InstancedBufferGeometry",(function(){return zh})),r.d(t,"InstancedInterleavedBuffer",(function(){return Rd})),r.d(t,"InstancedMesh",(function(){return Zl})),r.d(t,"Int16Attribute",(function(){return zp})),r.d(t,"Int16BufferAttribute",(function(){return bi})),r.d(t,"Int32Attribute",(function(){return Wp})),r.d(t,"Int32BufferAttribute",(function(){return Ai})),r.d(t,"Int8Attribute",(function(){return Fp})),r.d(t,"Int8BufferAttribute",(function(){return gi})),r.d(t,"IntType",(function(){return Te})),r.d(t,"InterleavedBuffer",(function(){return cl})),r.d(t,"InterleavedBufferAttribute",(function(){return hl})),r.d(t,"Interpolant",(function(){return Yu})),r.d(t,"InterpolateDiscrete",(function(){return wt})),r.d(t,"InterpolateLinear",(function(){return xt})),r.d(t,"InterpolateSmooth",(function(){return Et})),r.d(t,"InvertStencilOp",(function(){return qt})),r.d(t,"JSONLoader",(function(){return rf})),r.d(t,"KeepStencilOp",(function(){return Ut})),r.d(t,"KeyframeTrack",(function(){return $u})),r.d(t,"LOD",(function(){return Il})),r.d(t,"LatheBufferGeometry",(function(){return Su})),r.d(t,"LatheGeometry",(function(){return Su})),r.d(t,"Layers",(function(){return Gn})),r.d(t,"LensFlare",(function(){return of})),r.d(t,"LessDepth",(function(){return V})),r.d(t,"LessEqualDepth",(function(){return W})),r.d(t,"LessEqualStencilFunc",(function(){return Jt})),r.d(t,"LessStencilFunc",(function(){return Xt})),r.d(t,"Light",(function(){return Ah})),r.d(t,"LightProbe",(function(){return Fh})),r.d(t,"Line",(function(){return ec})),r.d(t,"Line3",(function(){return Vd})),r.d(t,"LineBasicMaterial",(function(){return Xl})),r.d(t,"LineCurve",(function(){return Uc})),r.d(t,"LineCurve3",(function(){return Bc})),r.d(t,"LineDashedMaterial",(function(){return qu})),r.d(t,"LineLoop",(function(){return ic})),r.d(t,"LinePieces",(function(){return Cp})),r.d(t,"LineSegments",(function(){return nc})),r.d(t,"LineStrip",(function(){return Ep})),r.d(t,"LinearEncoding",(function(){return Lt})),r.d(t,"LinearFilter",(function(){return be})),r.d(t,"LinearInterpolant",(function(){return Ku})),r.d(t,"LinearMipMapLinearFilter",(function(){return xe})),r.d(t,"LinearMipMapNearestFilter",(function(){return Ae})),r.d(t,"LinearMipmapLinearFilter",(function(){return we})),r.d(t,"LinearMipmapNearestFilter",(function(){return _e})),r.d(t,"LinearToneMapping",(function(){return $})),r.d(t,"Loader",(function(){return dh})),r.d(t,"LoaderUtils",(function(){return Bh})),r.d(t,"LoadingManager",(function(){return uh})),r.d(t,"LoopOnce",(function(){return bt})),r.d(t,"LoopPingPong",(function(){return At})),r.d(t,"LoopRepeat",(function(){return _t})),r.d(t,"LuminanceAlphaFormat",(function(){return Fe})),r.d(t,"LuminanceFormat",(function(){return Ge})),r.d(t,"MOUSE",(function(){return i})),r.d(t,"Material",(function(){return hi})),r.d(t,"MaterialLoader",(function(){return Uh})),r.d(t,"Math",(function(){return Cr})),r.d(t,"MathUtils",(function(){return Cr})),r.d(t,"Matrix3",(function(){return Mr})),r.d(t,"Matrix4",(function(){return Mn})),r.d(t,"MaxEquation",(function(){return O})),r.d(t,"Mesh",(function(){return Ki})),r.d(t,"MeshBasicMaterial",(function(){return di})),r.d(t,"MeshDepthMaterial",(function(){return Hs})),r.d(t,"MeshDistanceMaterial",(function(){return qs})),r.d(t,"MeshFaceMaterial",(function(){return Op})),r.d(t,"MeshLambertMaterial",(function(){return Wu})),r.d(t,"MeshMatcapMaterial",(function(){return Hu})),r.d(t,"MeshNormalMaterial",(function(){return Vu})),r.d(t,"MeshPhongMaterial",(function(){return Bu})),r.d(t,"MeshPhysicalMaterial",(function(){return Uu})),r.d(t,"MeshStandardMaterial",(function(){return Fu})),r.d(t,"MeshToonMaterial",(function(){return zu})),r.d(t,"MinEquation",(function(){return T})),r.d(t,"MirroredRepeatWrapping",(function(){return pe})),r.d(t,"MixOperation",(function(){return J})),r.d(t,"MultiMaterial",(function(){return Ip})),r.d(t,"MultiplyBlending",(function(){return x})),r.d(t,"MultiplyOperation",(function(){return Y})),r.d(t,"NearestFilter",(function(){return fe})),r.d(t,"NearestMipMapLinearFilter",(function(){return ve})),r.d(t,"NearestMipMapNearestFilter",(function(){return ge})),r.d(t,"NearestMipmapLinearFilter",(function(){return ye})),r.d(t,"NearestMipmapNearestFilter",(function(){return me})),r.d(t,"NeverDepth",(function(){return B})),r.d(t,"NeverStencilFunc",(function(){return Zt})),r.d(t,"NoBlending",(function(){return b})),r.d(t,"NoColors",(function(){return Sp})),r.d(t,"NoToneMapping",(function(){return Q})),r.d(t,"NormalAnimationBlendMode",(function(){return Tt})),r.d(t,"NormalBlending",(function(){return _})),r.d(t,"NotEqualDepth",(function(){return X})),r.d(t,"NotEqualStencilFunc",(function(){return Qt})),r.d(t,"NumberKeyframeTrack",(function(){return rh})),r.d(t,"Object3D",(function(){return Qn})),r.d(t,"ObjectLoader",(function(){return Wh})),r.d(t,"ObjectSpaceNormalMap",(function(){return Gt})),r.d(t,"OctahedronBufferGeometry",(function(){return Mu})),r.d(t,"OctahedronGeometry",(function(){return Mu})),r.d(t,"OneFactor",(function(){return P})),r.d(t,"OneMinusDstAlphaFactor",(function(){return N})),r.d(t,"OneMinusDstColorFactor",(function(){return F})),r.d(t,"OneMinusSrcAlphaFactor",(function(){return j})),r.d(t,"OneMinusSrcColorFactor",(function(){return L})),r.d(t,"OrthographicCamera",(function(){return Oo})),r.d(t,"PCFShadowMap