UNPKG

yunkong2.admin

Version:

The adapter opens a webserver for the yunkong2 admin UI.

1 lines 639 kB
!function(){"use strict";var e=0;function Ct(t){return t.ol_uid||(t.ol_uid=++e)}var n=function(i){function t(t){var e="Assertion failed. See https://openlayers.org/en/"+"5.2.0".split("-")[0]+"/doc/errors/#"+t+" for details.";i.call(this,e),this.code=t,this.name="AssertionError",this.message=e}return i&&(t.__proto__=i),(t.prototype=Object.create(i&&i.prototype)).constructor=t}(Error),h="add",l="remove",a="propertychange",E="function"==typeof Object.assign?Object.assign:function(t,e){var i=arguments;if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1,o=arguments.length;n<o;++n){var s=i[n];if(null!=s)for(var a in s)s.hasOwnProperty(a)&&(r[a]=s[a])}return r};function _(t){for(var e in t)delete t[e]}function s(t){var e=[];for(var i in t)e.push(t[i]);return e}function Tt(t){var e;for(e in t)return!1;return!e}function u(t,e,i,r){for(var n,o=0,s=t.length;o<s;++o)if((n=t[o]).listener===e&&n.bindTo===i)return r&&(n.deleteIndex=o),n}function c(t,e){var i=t.ol_lm;return i?i[e]:void 0}function p(t){var e=t.ol_lm;return e||(e=t.ol_lm={}),e}function r(t,e){var i=c(t,e);if(i){for(var r=0,n=i.length;r<n;++r)t.removeEventListener(e,i[r].boundListener),_(i[r]);i.length=0;var o=t.ol_lm;o&&(delete o[e],0===Object.keys(o).length&&delete t.ol_lm)}}function C(t,e,i,r,n){var o=p(t),s=o[e];s||(s=o[e]=[]);var a,h,l=u(s,i,r,!1);return l?n||(l.callOnce=!1):(l={bindTo:r,callOnce:!!n,listener:i,target:t,type:e},t.addEventListener(e,(h=function(t){var e=a.listener,i=a.bindTo||a.target;return a.callOnce&&g(a),e.call(i,t)},(a=l).boundListener=h)),s.push(l)),l}function o(t,e,i,r){return C(t,e,i,r,!0)}function d(t,e,i,r){var n=c(t,e);if(n){var o=u(n,i,r,!0);o&&g(o)}}function g(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var e=c(t.target,t.type);if(e){var i="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==i&&e.splice(i,1),0===e.length&&r(t.target,t.type)}_(t)}}function f(t){var e=p(t);for(var i in e)r(t,i)}var t=function(){this.disposed_=!1};function y(){return!0}function v(){return!1}function L(){}t.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){};var m=function(t){this.propagationStopped,this.type=t,this.target=null};function x(t){t.stopPropagation()}m.prototype.preventDefault=function(){this.propagationStopped=!0},m.prototype.stopPropagation=function(){this.propagationStopped=!0};var i=function(t){function e(){t.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.addEventListener=function(t,e){var i=this.listeners_[t];i||(i=this.listeners_[t]=[]),-1===i.indexOf(e)&&i.push(e)},e.prototype.dispatchEvent=function(t){var e,i="string"==typeof t?new m(t):t,r=i.type,n=(i.target=this).listeners_[r];if(n){r in this.dispatching_||(this.dispatching_[r]=0,this.pendingRemovals_[r]=0),++this.dispatching_[r];for(var o=0,s=n.length;o<s;++o)if(!1===n[o].call(this,i)||i.propagationStopped){e=!1;break}if(--this.dispatching_[r],0===this.dispatching_[r]){var a=this.pendingRemovals_[r];for(delete this.pendingRemovals_[r];a--;)this.removeEventListener(r,L);delete this.dispatching_[r]}return e}},e.prototype.disposeInternal=function(){f(this)},e.prototype.getListeners=function(t){return this.listeners_[t]},e.prototype.hasListener=function(t){return t?t in this.listeners_:0<Object.keys(this.listeners_).length},e.prototype.removeEventListener=function(t,e){var i=this.listeners_[t];if(i){var r=i.indexOf(e);t in this.pendingRemovals_?(i[r]=L,++this.pendingRemovals_[t]):(i.splice(r,1),0===i.length&&delete this.listeners_[t])}},e}(t),w={CHANGE:"change",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"},S=function(t){function e(){t.call(this),this.revision_=0}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.changed=function(){++this.revision_,this.dispatchEvent(w.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var i=t.length,r=new Array(i),n=0;n<i;++n)r[n]=C(this,t[n],e);return r}return C(this,t,e)},e.prototype.once=function(t,e){if(Array.isArray(t)){for(var i=t.length,r=new Array(i),n=0;n<i;++n)r[n]=o(this,t[n],e);return r}return o(this,t,e)},e.prototype.un=function(t,e){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)d(this,t[i],e);else d(this,t,e)},e}(i);var T=function(r){function t(t,e,i){r.call(this,t),this.key=e,this.oldValue=i}return r&&(t.__proto__=r),(t.prototype=Object.create(r&&r.prototype)).constructor=t}(m),R=function(e){function t(t){e.call(this),Ct(this),this.values_={},void 0!==t&&this.setProperties(t)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},t.prototype.getKeys=function(){return Object.keys(this.values_)},t.prototype.getProperties=function(){return E({},this.values_)},t.prototype.notify=function(t,e){var i;i=b(t),this.dispatchEvent(new T(i,t,e)),i=a,this.dispatchEvent(new T(i,t,e))},t.prototype.set=function(t,e,i){if(i)this.values_[t]=e;else{var r=this.values_[t];r!==(this.values_[t]=e)&&this.notify(t,r)}},t.prototype.setProperties=function(t,e){for(var i in t)this.set(i,t[i],e)},t.prototype.unset=function(t,e){if(t in this.values_){var i=this.values_[t];delete this.values_[t],e||this.notify(t,i)}},t}(S),I={};function b(t){return I.hasOwnProperty(t)?I[t]:I[t]="change:"+t}var F="length",P=function(i){function t(t,e){i.call(this,t),this.element=e}return i&&(t.__proto__=i),(t.prototype=Object.create(i&&i.prototype)).constructor=t}(m),M=function(o){function t(t,e){o.call(this);var i=e||{};if(this.unique_=!!i.unique,this.array_=t||[],this.unique_)for(var r=0,n=this.array_.length;r<n;++r)this.assertUnique_(this.array_[r],r);this.updateLength_()}return o&&(t.__proto__=o),((t.prototype=Object.create(o&&o.prototype)).constructor=t).prototype.clear=function(){for(;0<this.getLength();)this.pop()},t.prototype.extend=function(t){for(var e=0,i=t.length;e<i;++e)this.push(t[e]);return this},t.prototype.forEach=function(t){for(var e=this.array_,i=0,r=e.length;i<r;++i)t(e[i],i,e)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(t){return this.array_[t]},t.prototype.getLength=function(){return this.get(F)},t.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new P(h,e))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},t.prototype.remove=function(t){for(var e=this.array_,i=0,r=e.length;i<r;++i)if(e[i]===t)return this.removeAt(i)},t.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new P(l,e)),e},t.prototype.setAt=function(t,e){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(e,t);var r=this.array_[t];this.array_[t]=e,this.dispatchEvent(new P(l,r)),this.dispatchEvent(new P(h,e))}else{for(var n=i;n<t;++n)this.insertAt(n,void 0);this.insertAt(t,e)}},t.prototype.updateLength_=function(){this.set(F,this.array_.length)},t.prototype.assertUnique_=function(t,e){for(var i=0,r=this.array_.length;i<r;++i)if(this.array_[i]===t&&i!==e)throw new n(58)},t}(R);function Z(t,e){if(!t)throw new n(e)}var O={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},N={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function A(t){for(var e=B(),i=0,r=t.length;i<r;++i)q(e,t[i]);return e}function G(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function k(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function D(t,e,i){var r,n;return(r=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*r+(n=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0)*n}function j(t,e){return U(t,e[0],e[1])}function Q(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function U(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function Y(t,e){var i=t[0],r=t[1],n=t[2],o=t[3],s=e[0],a=e[1],h=N.UNKNOWN;return s<i?h|=N.LEFT:n<s&&(h|=N.RIGHT),a<r?h|=N.BELOW:o<a&&(h|=N.ABOVE),h===N.UNKNOWN&&(h=N.INTERSECTING),h}function B(){return[1/0,1/0,-1/0,-1/0]}function X(t,e,i,r,n){return n?(n[0]=t,n[1]=e,n[2]=i,n[3]=r,n):[t,e,i,r]}function z(t){return X(1/0,1/0,-1/0,-1/0,t)}function V(t,e){var i=t[0],r=t[1];return X(i,r,i,r,e)}function W(t,e){return function(t,e){for(var i=0,r=e.length;i<r;++i)q(t,e[i]);return t}(z(e),t)}function K(t,e,i,r,n){return J(z(n),t,e,i,r)}function $(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function H(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function q(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function J(t,e,i,r,n){for(;i<r;i+=n)tt(t,e[i],e[i+1]);return t}function tt(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function et(t,e,i){var r;return(r=e.call(i,rt(t)))?r:(r=e.call(i,nt(t)))?r:(r=e.call(i,ut(t)))?r:(r=e.call(i,lt(t)))||!1}function it(t){var e=0;return pt(t)||(e=ct(t)*at(t)),e}function rt(t){return[t[0],t[1]]}function nt(t){return[t[2],t[1]]}function ot(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function st(t,e,i,r,n){var o=e*r[0]/2,s=e*r[1]/2,a=Math.cos(i),h=Math.sin(i),l=o*a,u=o*h,c=s*a,p=s*h,d=t[0],f=t[1],_=d-l+p,g=d-l-p,y=d+l-p,v=d+l+p,m=f-u-c,x=f-u+c,S=f+u+c,E=f+u-c;return X(Math.min(_,g,y,v),Math.min(m,x,S,E),Math.max(_,g,y,v),Math.max(m,x,S,E),n)}function at(t){return t[3]-t[1]}function ht(t,e,i){var r=i||[1/0,1/0,-1/0,-1/0];return wt(t,e)?(t[0]>e[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]<e[2]?r[2]=t[2]:r[2]=e[2],t[3]<e[3]?r[3]=t[3]:r[3]=e[3]):z(r),r}function lt(t){return[t[0],t[3]]}function ut(t){return[t[2],t[3]]}function ct(t){return t[2]-t[0]}function wt(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function pt(t){return t[2]<t[0]||t[3]<t[1]}function dt(t,e){var i=(t[2]-t[0])/2*(e-1),r=(t[3]-t[1])/2*(e-1);t[0]-=i,t[2]+=i,t[1]-=r,t[3]+=r}function ft(t,e,i){var r,n,o,s=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(s,s,2),r=[s[0],s[2],s[4],s[6]],n=[s[1],s[3],s[5],s[7]],o=i,X(Math.min.apply(null,r),Math.min.apply(null,n),Math.max.apply(null,r),Math.max.apply(null,n),o)}function Rt(t,e,i,r,n,o){for(var s=o||[],a=0,h=e;h<i;h+=r){var l=t[h],u=t[h+1];s[a++]=n[0]*l+n[2]*u+n[4],s[a++]=n[1]*l+n[3]*u+n[5]}return o&&s.length!=a&&(s.length=a),s}function _t(t,e,i,r,n,o,s){for(var a=s||[],h=0,l=e;l<i;l+=r){a[h++]=t[l]+n,a[h++]=t[l+1]+o;for(var u=l+2;u<l+r;++u)a[h++]=t[u]}return s&&a.length!=h&&(a.length=h),a}function gt(t,e,i){return Math.min(Math.max(t,e),i)}var yt="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function vt(t,e,i,r,n,o){var s=n-i,a=o-r;if(0!==s||0!==a){var h=((t-i)*s+(e-r)*a)/(s*s+a*a);1<h?(i=n,r=o):0<h&&(i+=s*h,r+=a*h)}return mt(t,e,i,r)}function mt(t,e,i,r){var n=i-t,o=r-e;return n*n+o*o}function xt(t){return 180*t/Math.PI}function St(t){return t*Math.PI/180}function Et(t,e){var i=t%e;return i*e<0?i+e:i}function It(t,e,i){return t+i*(e-t)}var Lt={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"},bt=6371008.8;function Ft(t,e,i){var r=i||bt,n=St(t[1]),o=St(e[1]),s=(o-n)/2,a=St(e[0]-t[0])/2,h=Math.sin(s)*Math.sin(s)+Math.sin(a)*Math.sin(a)*Math.cos(n)*Math.cos(o);return 2*r*Math.atan2(Math.sqrt(h),Math.sqrt(1-h))}function Pt(t,e){for(var i=0,r=0,n=t.length;r<n-1;++r)i+=Ft(t[r],t[r+1],e);return i}function Mt(t,e){for(var i=0,r=t.length,n=t[r-1][0],o=t[r-1][1],s=0;s<r;s++){var a=t[s][0],h=t[s][1];i+=St(a-n)*(2+Math.sin(St(o))+Math.sin(St(h))),n=a,o=h}return i*e*e/2}var Ot={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},Nt={};Nt[Ot.DEGREES]=2*Math.PI*6370997/360,Nt[Ot.FEET]=.3048,Nt[Ot.METERS]=1,Nt[Ot.USFEET]=1200/3937;var At=function(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit};At.prototype.canWrapX=function(){return this.canWrapX_},At.prototype.getCode=function(){return this.code_},At.prototype.getExtent=function(){return this.extent_},At.prototype.getUnits=function(){return this.units_},At.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||Nt[this.units_]},At.prototype.getWorldExtent=function(){return this.worldExtent_},At.prototype.getAxisOrientation=function(){return this.axisOrientation_},At.prototype.isGlobal=function(){return this.global_},At.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},At.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},At.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},At.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},At.prototype.setWorldExtent=function(t){this.worldExtent_=t},At.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},At.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};var Gt=6378137,kt=Math.PI*Gt,Dt=[-kt,-kt,kt,kt],jt=[-180,-85,180,85],Ut=function(e){function t(t){e.call(this,{code:t,units:Ot.METERS,extent:Dt,global:!0,worldExtent:jt,getPointResolution:function(t,e){return t/yt(e[1]/Gt)}})}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(At),Yt=[new Ut("EPSG:3857"),new Ut("EPSG:102100"),new Ut("EPSG:102113"),new Ut("EPSG:900913"),new Ut("urn:ogc:def:crs:EPSG:6.18:3:3857"),new Ut("urn:ogc:def:crs:EPSG::3857"),new Ut("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Bt(t,e,i){var r=t.length,n=1<i?i:2,o=e;void 0===o&&(o=2<n?t.slice():new Array(r));for(var s=kt,a=0;a<r;a+=n){o[a]=s*t[a]/180;var h=Gt*Math.log(Math.tan(Math.PI*(t[a+1]+90)/360));s<h?h=s:h<-s&&(h=-s),o[a+1]=h}return o}function Xt(t,e,i){var r=t.length,n=1<i?i:2,o=e;void 0===o&&(o=2<n?t.slice():new Array(r));for(var s=0;s<r;s+=n)o[s]=180*t[s]/kt,o[s+1]=360*Math.atan(Math.exp(t[s+1]/Gt))/Math.PI-90;return o}var zt=[-180,-90,180,90],Vt=6378137*Math.PI/180,Wt=function(i){function t(t,e){i.call(this,{code:t,units:Ot.DEGREES,extent:zt,axisOrientation:e,global:!0,metersPerUnit:Vt,worldExtent:zt})}return i&&(t.__proto__=i),(t.prototype=Object.create(i&&i.prototype)).constructor=t}(At),Kt=[new Wt("CRS:84"),new Wt("EPSG:4326","neu"),new Wt("urn:ogc:def:crs:EPSG::4326","neu"),new Wt("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Wt("urn:ogc:def:crs:OGC:1.3:CRS84"),new Wt("urn:ogc:def:crs:OGC:2:84"),new Wt("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Wt("urn:x-ogc:def:crs:EPSG:4326","neu")],Ht={};var Zt,qt,Jt,Qt={};function $t(t,e,i){var r=t.getCode(),n=e.getCode();r in Qt||(Qt[r]={}),Qt[r][n]=i}function te(t,e){var i;return t in Qt&&e in Qt[t]&&(i=Qt[t][e]),i}function ee(t,e,i){var r;if(void 0!==e){for(var n=0,o=t.length;n<o;++n)e[n]=t[n];r=e}else r=t.slice();return r}function ie(t,e,i){if(void 0!==e&&t!==e){for(var r=0,n=t.length;r<n;++r)e[r]=t[r];t=e}return t}function re(t){var e,i;e=t.getCode(),i=t,Ht[e]=i,$t(t,t,ee)}function ne(t){var e=null;if(t instanceof At)e=t;else if("string"==typeof t){e=Ht[t]||null}return e}function oe(t,e,i,r){var n,o=(t=ne(t)).getPointResolutionFunc();if(o)n=o(e,i);else if(t.getUnits()==Ot.DEGREES&&!r||r==Ot.DEGREES)n=e;else{var s=ce(t,ne("EPSG:4326")),a=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];n=(Ft((a=s(a,a,2)).slice(0,2),a.slice(2,4))+Ft(a.slice(4,6),a.slice(6,8)))/2;var h=r?Nt[r]:t.getMetersPerUnit();void 0!==h&&(n/=h)}return n}function se(t){t.forEach(re),t.forEach(function(e){t.forEach(function(t){e!==t&&$t(e,t,ee)})})}function ae(t,e){return t?"string"==typeof t?ne(t):t:ne(e)}function he(l){return function(t,e,i){for(var r=t.length,n=void 0!==i?i:2,o=void 0!==e?e:new Array(r),s=0;s<r;s+=n){var a=l([t[s],t[s+1]]);o[s]=a[0],o[s+1]=a[1];for(var h=n-1;2<=h;--h)o[s+h]=t[s+h]}return o}}function le(t,e,i,r){var n=ne(t),o=ne(e);$t(n,o,he(i)),$t(o,n,he(r))}function ue(t,e){if(t===e)return!0;var i=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?i:ce(t,e)===ee&&i}function ce(t,e){var i=te(t.getCode(),e.getCode());return i||(i=ie),i}function pe(t,e){return ce(ne(t),ne(e))}function de(t,e,i){return pe(e,i)(t,void 0,t.length)}function fe(t,e,i){return ft(t,pe(e,i))}se(Yt),se(Kt),Zt=Yt,qt=Bt,Jt=Xt,Kt.forEach(function(e){Zt.forEach(function(t){$t(e,t,qt),$t(t,e,Jt)})});var _e=new Array(6);function ge(t){return ve(t,1,0,0,1,0,0)}function ye(t,e){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],h=e[0],l=e[1],u=e[2],c=e[3],p=e[4],d=e[5];return t[0]=i*h+n*l,t[1]=r*h+o*l,t[2]=i*u+n*c,t[3]=r*u+o*c,t[4]=i*p+n*d+s,t[5]=r*p+o*d+a,t}function ve(t,e,i,r,n,o,s){return t[0]=e,t[1]=i,t[2]=r,t[3]=n,t[4]=o,t[5]=s,t}function me(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function xe(t,e){var i=e[0],r=e[1];return e[0]=t[0]*i+t[2]*r+t[4],e[1]=t[1]*i+t[3]*r+t[5],e}function Se(t,e){var i=Math.cos(e),r=Math.sin(e);return ye(t,ve(_e,i,r,-r,i,0,0))}function Ee(t,e,i){return ye(t,ve(_e,e,0,0,i,0,0))}function Ce(t,e,i){return ye(t,ve(_e,1,0,0,1,e,i))}function Te(t,e,i,r,n,o,s,a){var h=Math.sin(o),l=Math.cos(o);return t[0]=r*l,t[1]=n*h,t[2]=-r*h,t[3]=n*l,t[4]=s*r*l-a*r*h+e,t[5]=s*n*h+a*n*l+i,t}function we(t){var e,i=(e=t)[0]*e[3]-e[1]*e[2];Z(0!==i,32);var r=t[0],n=t[1],o=t[2],s=t[3],a=t[4],h=t[5];return t[0]=s/i,t[1]=-n/i,t[2]=-o/i,t[3]=r/i,t[4]=(o*h-s*a)/i,t[5]=-(r*h-n*a)/i,t}var Re=[1,0,0,1,0,0],Ie=function(t){function e(){t.call(this),this.extent_=[1/0,1/0,-1/0,-1/0],this.extentRevision_=-1,this.simplifiedGeometryCache={},this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.clone=function(){},e.prototype.closestPointXY=function(t,e,i,r){},e.prototype.getClosestPoint=function(t,e){var i=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],i,1/0),i},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){},e.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),e=this.extent_,(i=t)?(i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i):e;var e,i},e.prototype.rotate=function(t,e){},e.prototype.scale=function(t,e,i){},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){},e.prototype.getType=function(){},e.prototype.applyTransform=function(t){},e.prototype.intersectsExtent=function(t){},e.prototype.translate=function(t,e){},e.prototype.transform=function(s,a){var t=(s=ne(s)).getUnits()==Ot.TILE_PIXELS?function(t,e,i){var r=s.getExtent(),n=s.getWorldExtent(),o=at(n)/at(r);return Te(Re,n[0],n[3],o,-o,0,0,0),Rt(t,0,t.length,i,Re,e),pe(s,a)(t,e,i)}:pe(s,a);return this.applyTransform(t),this},e}(R);Ie.prototype.containsXY=v;var Le=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,be=/^([a-z]*)$/i;function Fe(t){return"string"==typeof t?t:Ge(t)}var Pe,Me,Oe=(Pe={},Me=0,function(t){var e;if(Pe.hasOwnProperty(t))e=Pe[t];else{if(1024<=Me){var i=0;for(var r in Pe)0==(3&i++)&&(delete Pe[r],--Me)}e=function(t){var e,i,r,n,o;if(be.exec(t)&&(t=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var i=getComputedStyle(e).color;return document.body.removeChild(e),i}return""}(t)),Le.exec(t)){var s,a=t.length-1;s=a<=4?1:2;var h=4===a||8===a;e=parseInt(t.substr(1+0*s,s),16),i=parseInt(t.substr(1+1*s,s),16),r=parseInt(t.substr(1+2*s,s),16),n=h?parseInt(t.substr(1+3*s,s),16):255,1==s&&(e=(e<<4)+e,i=(i<<4)+i,r=(r<<4)+r,h&&(n=(n<<4)+n)),o=[e,i,r,n/255]}else 0==t.indexOf("rgba(")?Ae(o=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((o=t.slice(4,-1).split(",").map(Number)).push(1),Ae(o)):Z(!1,14);return o}(t),Pe[t]=e,++Me}return e});function Ne(t){return Array.isArray(t)?t:Oe(t)}function Ae(t){return t[0]=gt(t[0]+.5|0,0,255),t[1]=gt(t[1]+.5|0,0,255),t[2]=gt(t[2]+.5|0,0,255),t[3]=gt(t[3],0,1),t}function Ge(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var i=t[1];i!=(0|i)&&(i=i+.5|0);var r=t[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+e+","+i+","+r+","+(void 0===t[3]?1:t[3])+")"}function ke(t){return"string"==typeof(e=t)||e instanceof CanvasPattern||e instanceof CanvasGradient?t:Ge(t);var e}function De(t,e){var i=document.createElement("canvas");return t&&(i.width=t),e&&(i.height=e),i.getContext("2d")}function je(t,e){var i=e.parentNode;i&&i.replaceChild(t,e)}function Ue(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function Ye(t){for(;t.lastChild;)t.removeChild(t.lastChild)}var Be,Xe,ze=34962,Ve=5126,We=10242,Ke=10243,He=3553,Ze=33071,qe=36160,Je=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Qe(t,e){for(var i=Je.length,r=0;r<i;++r)try{var n=t.getContext(Je[r],e);if(n)return n}catch(t){}return null}if("undefined"!=typeof window&&"WebGLRenderingContext"in window)try{var $e=Qe(document.createElement("canvas"),{failIfMajorPerformanceCaveat:!0});$e&&(Be=$e.getParameter($e.MAX_TEXTURE_SIZE),Xe=$e.getSupportedExtensions())}catch(t){}var ti,ei,ii="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",ri=-1!==ii.indexOf("firefox"),ni=-1!==ii.indexOf("safari")&&-1==ii.indexOf("chrom"),oi=-1!==ii.indexOf("webkit")&&-1==ii.indexOf("edge"),si=-1!==ii.indexOf("macintosh"),ai=window.devicePixelRatio||1,hi=function(){var t=!1;try{t=!!document.createElement("canvas").getContext("2d").setLineDash}catch(t){}return t}(),li="geolocation"in navigator,ui="ontouchstart"in window,ci="PointerEvent"in window,pi=!!navigator.msPointerEnabled,di={IDLE:0,LOADING:1,LOADED:2,ERROR:3},fi="ol-hidden",_i="ol-unselectable",gi="ol-control",yi="ol-collapsed",vi=(ei={},function(t){if(ti||(ti=document.createElement("div").style),!(t in ei)){ti.font=t;var e=ti.fontFamily;if(ti.font="",!e)return null;ei[t]=e.split(/,\s?/)}return ei[t]}),mi=function(e){function t(t){e.call(this),this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(w.CLEAR)},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t,e){for(var i=this.oldest_;i;)t.call(e,i.value_,i.key_,this),i=i.newer},t.prototype.get=function(t){var e=this.entries_[t];return Z(void 0!==e,15),e===this.newest_?e.value_:(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,(this.newest_=e).value_)},t.prototype.remove=function(t){var e=this.entries_[t];return Z(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){Z(!(t in this.entries_),16);var i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},t}(i),xi="10px sans-serif",Si=[0,0,0,1],Ei="round",Ci=[],Ti="round",wi=[0,0,0,1],Ri="center",Ii=[0,0,0,0],Li=new mi,bi={},Fi=null,Pi={},Mi=function(){var o,h,s=60,a=bi,l="32px ",u=["monospace","serif"],c=u.length,p="wmytzilWMYTZIL@#/&?$%10";function d(t){for(var e=Oi(),i=100;i<=700;i+=300){for(var r=i+" ",n=!0,o=0;o<c;++o){var s=u[o];if(e.font=r+l+s,h=e.measureText(p).width,t!=s){e.font=r+l+t+","+s;var a=e.measureText(p).width;n=n&&a!=h}}if(n)return!0}return!1}function f(){var t=!0;for(var e in a)a[e]<s&&(d(e)?(a[e]=s,_(Pi),Fi=null,Li.clear()):(++a[e],t=!1));t&&(clearInterval(o),o=void 0)}return function(t){var e=vi(t);if(e)for(var i=0,r=e.length;i<r;++i){var n=e[i];n in a||(a[n]=s,d(n)||void(a[n]=0)===o&&(o=setInterval(f,32)))}}}();function Oi(){return Fi||(Fi=De(1,1)),Fi}var Ni,Ai,Gi=(Ai=Pi,function(t){var e=Ai[t];return null==e&&(Ni||((Ni=document.createElement("span")).textContent="M",Ni.style.margin=Ni.style.padding="0 !important",Ni.style.position="absolute !important",Ni.style.left="-99999px !important"),Ni.style.font=t,document.body.appendChild(Ni),e=Ai[t]=Ni.offsetHeight,document.body.removeChild(Ni)),e});function ki(t,e){var i=Oi();return t!=i.font&&(i.font=t),i.measureText(e).width}function Di(t,e,i,r){0!==e&&(t.translate(i,r),t.rotate(e),t.translate(-i,-r))}var ji=[1,0,0,1,0,0];function Ui(t,e,i,r,n,o,s,a,h,l,u){var c;1!=i&&(c=t.globalAlpha,t.globalAlpha=c*i),e&&t.setTransform.apply(t,e),t.drawImage(r,n,o,s,a,h,l,s*u,a*u),c&&(t.globalAlpha=c),e&&t.setTransform.apply(t,ji)}var Yi=function(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale};Yi.prototype.getOpacity=function(){return this.opacity_},Yi.prototype.getRotateWithView=function(){return this.rotateWithView_},Yi.prototype.getRotation=function(){return this.rotation_},Yi.prototype.getScale=function(){return this.scale_},Yi.prototype.getSnapToPixel=function(){return!1},Yi.prototype.getAnchor=function(){},Yi.prototype.getImage=function(t){},Yi.prototype.getHitDetectionImage=function(t){},Yi.prototype.getImageState=function(){},Yi.prototype.getImageSize=function(){},Yi.prototype.getHitDetectionImageSize=function(){},Yi.prototype.getOrigin=function(){},Yi.prototype.getSize=function(){},Yi.prototype.setOpacity=function(t){this.opacity_=t},Yi.prototype.setRotateWithView=function(t){this.rotateWithView_=t},Yi.prototype.setRotation=function(t){this.rotation_=t},Yi.prototype.setScale=function(t){this.scale_=t},Yi.prototype.setSnapToPixel=function(t){},Yi.prototype.listenImageChange=function(t,e){},Yi.prototype.load=function(){},Yi.prototype.unlistenImageChange=function(t,e){};var Bi=function(i){function e(t){var e=void 0!==t.rotateWithView&&t.rotateWithView;i.call(this,{opacity:1,rotateWithView:e,rotation:void 0!==t.rotation?t.rotation:0,scale:1}),this.checksums_=null,this.canvas_=null,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.anchor_=null,this.size_=null,this.imageSize_=null,this.hitDetectionImageSize_=null,this.atlasManager_=t.atlasManager,this.render_(this.atlasManager_)}return i&&(e.__proto__=i),((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return di.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t,e){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t,e){},e.prototype.render_=function(t){var e,i,r="",n="",o=0,s=null,a=0,h=0;this.stroke_&&(null===(i=this.stroke_.getColor())&&(i=wi),i=ke(i),void 0===(h=this.stroke_.getWidth())&&(h=1),s=this.stroke_.getLineDash(),a=this.stroke_.getLineDashOffset(),hi||(s=null,a=0),void 0===(n=this.stroke_.getLineJoin())&&(n=Ti),void 0===(r=this.stroke_.getLineCap())&&(r=Ei),void 0===(o=this.stroke_.getMiterLimit())&&(o=10));var l=2*(this.radius_+h)+1,u={strokeStyle:i,strokeWidth:h,size:l,lineCap:r,lineDash:s,lineDashOffset:a,lineJoin:n,miterLimit:o};if(void 0===t){var c=De(l,l);this.canvas_=c.canvas,e=l=this.canvas_.width,this.draw_(u,c,0,0),this.createHitDetectionCanvas_(u)}else{l=Math.round(l);var p,d=!this.fill_;d&&(p=this.drawHitDetectionCanvas_.bind(this,u));var f=this.getChecksum(),_=t.add(f,l,l,this.draw_.bind(this,u),p);this.canvas_=_.image,this.origin_=[_.offsetX,_.offsetY],e=_.image.width,d?(this.hitDetectionCanvas_=_.hitImage,this.hitDetectionImageSize_=[_.hitImage.width,_.hitImage.height]):(this.hitDetectionCanvas_=this.canvas_,this.hitDetectionImageSize_=[e,e])}this.anchor_=[l/2,l/2],this.size_=[l,l],this.imageSize_=[e,e]},e.prototype.draw_=function(t,e,i,r){var n,o,s;e.setTransform(1,0,0,1,0,0),e.translate(i,r),e.beginPath();var a=this.points_;if(a===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var h=void 0!==this.radius2_?this.radius2_:this.radius_;for(h!==this.radius_&&(a*=2),n=0;n<=a;n++)o=2*n*Math.PI/a-Math.PI/2+this.angle_,s=n%2==0?this.radius_:h,e.lineTo(t.size/2+s*Math.cos(o),t.size/2+s*Math.sin(o))}if(this.fill_){var l=this.fill_.getColor();null===l&&(l=Si),e.fillStyle=ke(l),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.fill_)this.hitDetectionCanvas_=this.canvas_;else{var e=De(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e,0,0)}},e.prototype.drawHitDetectionCanvas_=function(t,e,i,r){e.setTransform(1,0,0,1,0,0),e.translate(i,r),e.beginPath();var n=this.points_;if(n===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o,s,a,h=void 0!==this.radius2_?this.radius2_:this.radius_;for(h!==this.radius_&&(n*=2),o=0;o<=n;o++)a=2*o*Math.PI/n-Math.PI/2+this.angle_,s=o%2==0?this.radius_:h,e.lineTo(t.size/2+s*Math.cos(a),t.size/2+s*Math.sin(a))}e.fillStyle=Si,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e.prototype.getChecksum=function(){var t=this.stroke_?this.stroke_.getChecksum():"-",e=this.fill_?this.fill_.getChecksum():"-";if(!this.checksums_||t!=this.checksums_[1]||e!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.radius2_!=this.checksums_[4]||this.angle_!=this.checksums_[5]||this.points_!=this.checksums_[6]){var i="r"+t+e+(void 0!==this.radius_?this.radius_.toString():"-")+(void 0!==this.radius2_?this.radius2_.toString():"-")+(void 0!==this.angle_?this.angle_.toString():"-")+(void 0!==this.points_?this.points_.toString():"-");this.checksums_=[i,t,e,this.radius_,this.radius2_,this.angle_,this.points_]}return this.checksums_[0]},e}(Yi),Xi=function(i){function e(t){var e=t||{};i.call(this,{points:1/0,fill:e.fill,radius:e.radius,stroke:e.stroke,atlasManager:e.atlasManager})}return i&&(e.__proto__=i),((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render_(this.atlasManager_)},e}(Bi),zi=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.checksum_=void 0};zi.prototype.clone=function(){var t=this.getColor();return new zi({color:t&&t.slice?t.slice():t||void 0})},zi.prototype.getColor=function(){return this.color_},zi.prototype.setColor=function(t){this.color_=t,this.checksum_=void 0},zi.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.color_ instanceof CanvasPattern||this.color_ instanceof CanvasGradient?this.checksum_=Ct(this.color_).toString():this.checksum_="f"+(this.color_?Fe(this.color_):"-")),this.checksum_};var Vi=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width,this.checksum_=void 0};Vi.prototype.clone=function(){var t=this.getColor();return new Vi({color:t&&t.slice?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},Vi.prototype.getColor=function(){return this.color_},Vi.prototype.getLineCap=function(){return this.lineCap_},Vi.prototype.getLineDash=function(){return this.lineDash_},Vi.prototype.getLineDashOffset=function(){return this.lineDashOffset_},Vi.prototype.getLineJoin=function(){return this.lineJoin_},Vi.prototype.getMiterLimit=function(){return this.miterLimit_},Vi.prototype.getWidth=function(){return this.width_},Vi.prototype.setColor=function(t){this.color_=t,this.checksum_=void 0},Vi.prototype.setLineCap=function(t){this.lineCap_=t,this.checksum_=void 0},Vi.prototype.setLineDash=function(t){this.lineDash_=t,this.checksum_=void 0},Vi.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t,this.checksum_=void 0},Vi.prototype.setLineJoin=function(t){this.lineJoin_=t,this.checksum_=void 0},Vi.prototype.setMiterLimit=function(t){this.miterLimit_=t,this.checksum_=void 0},Vi.prototype.setWidth=function(t){this.width_=t,this.checksum_=void 0},Vi.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.checksum_="s",this.color_?"string"==typeof this.color_?this.checksum_+=this.color_:this.checksum_+=Ct(this.color_).toString():this.checksum_+="-",this.checksum_+=","+(void 0!==this.lineCap_?this.lineCap_.toString():"-")+","+(this.lineDash_?this.lineDash_.toString():"-")+","+(void 0!==this.lineDashOffset_?this.lineDashOffset_:"-")+","+(void 0!==this.lineJoin_?this.lineJoin_:"-")+","+(void 0!==this.miterLimit_?this.miterLimit_.toString():"-")+","+(void 0!==this.width_?this.width_.toString():"-")),this.checksum_};var Wi=function(t){var e=t||{};this.geometry_=null,this.geometryFunction_=qi,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex};Wi.prototype.clone=function(){var t=this.getGeometry();return t&&t.clone&&(t=t.clone()),new Wi({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},Wi.prototype.getRenderer=function(){return this.renderer_},Wi.prototype.setRenderer=function(t){this.renderer_=t},Wi.prototype.getGeometry=function(){return this.geometry_},Wi.prototype.getGeometryFunction=function(){return this.geometryFunction_},Wi.prototype.getFill=function(){return this.fill_},Wi.prototype.setFill=function(t){this.fill_=t},Wi.prototype.getImage=function(){return this.image_},Wi.prototype.setImage=function(t){this.image_=t},Wi.prototype.getStroke=function(){return this.stroke_},Wi.prototype.setStroke=function(t){this.stroke_=t},Wi.prototype.getText=function(){return this.text_},Wi.prototype.setText=function(t){this.text_=t},Wi.prototype.getZIndex=function(){return this.zIndex_},Wi.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=qi,this.geometry_=e},Wi.prototype.setZIndex=function(t){this.zIndex_=t};var Ki=null;function Hi(t,e){if(!Ki){var i=new zi({color:"rgba(255,255,255,0.4)"}),r=new Vi({color:"#3399CC",width:1.25});Ki=[new Wi({image:new Xi({fill:i,stroke:r,radius:5}),fill:i,stroke:r})]}return Ki}function Zi(){var t={},e=[255,255,255,1],i=[0,153,255,1];return t[Lt.POLYGON]=[new Wi({fill:new zi({color:[255,255,255,.5]})})],t[Lt.MULTI_POLYGON]=t[Lt.POLYGON],t[Lt.LINE_STRING]=[new Wi({stroke:new Vi({color:e,width:5})}),new Wi({stroke:new Vi({color:i,width:3})})],t[Lt.MULTI_LINE_STRING]=t[Lt.LINE_STRING],t[Lt.CIRCLE]=t[Lt.POLYGON].concat(t[Lt.LINE_STRING]),t[Lt.POINT]=[new Wi({image:new Xi({radius:6,fill:new zi({color:i}),stroke:new Vi({color:e,width:1.5})}),zIndex:1/0})],t[Lt.MULTI_POINT]=t[Lt.POINT],t[Lt.GEOMETRY_COLLECTION]=t[Lt.POLYGON].concat(t[Lt.LINE_STRING],t[Lt.POINT]),t}function qi(t){return t.getGeometry()}var Ji=function(r){function n(t){if(r.call(this),this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,C(this,b(this.geometryName_),this.handleGeometryChanged_,this),void 0!==t)if(t instanceof Ie||!t){var e=t;this.setGeometry(e)}else{var i=t;this.setProperties(i)}}return r&&(n.__proto__=r),((n.prototype=Object.create(r&&r.prototype)).constructor=n).prototype.clone=function(){var t=new n(this.getProperties());t.setGeometryName(this.getGeometryName());var e=this.getGeometry();e&&t.setGeometry(e.clone());var i=this.getStyle();return i&&t.setStyle(i),t},n.prototype.getGeometry=function(){return this.get(this.geometryName_)},n.prototype.getId=function(){return this.id_},n.prototype.getGeometryName=function(){return this.geometryName_},n.prototype.getStyle=function(){return this.style_},n.prototype.getStyleFunction=function(){return this.styleFunction_},n.prototype.handleGeometryChange_=function(){this.changed()},n.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(g(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=C(t,w.CHANGE,this.handleGeometryChange_,this)),this.changed()},n.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},n.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){{return"function"==typeof t?t:(Array.isArray(t)?e=t:(Z(t instanceof Wi,41),e=[t]),function(){return e});var e}}(t):void 0,this.changed()},n.prototype.setId=function(t){this.id_=t,this.changed()},n.prototype.setGeometryName=function(t){d(this,b(this.geometryName_),this.handleGeometryChanged_,this),this.geometryName_=t,C(this,b(this.geometryName_),this.handleGeometryChanged_,this),this.handleGeometryChanged_()},n}(R);var Qi="accuracy",$i="accuracyGeometry",tr="altitude",er="altitudeAccuracy",ir="heading",rr="position",nr="projection",or="speed",sr="tracking",ar="trackingOptions";function hr(t,e){return e<t?1:t<e?-1:0}function lr(t,e){return 0<=t.indexOf(e)}function ur(t,e,i){var r,n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;if(0<i){for(r=1;r<n;++r)if(t[r]<e)return r-1}else if(i<0){for(r=1;r<n;++r)if(t[r]<=e)return r}else for(r=1;r<n;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return n-1}function cr(t,e,i){for(;e<i;){var r=t[e];t[e]=t[i],t[i]=r,++e,--i}}function pr(t,e){for(var i=Array.isArray(e)?e:[e],r=i.length,n=0;n<r;n++)t[t.length]=i[n]}function dr(t,e){for(var i,r=t.length>>>0,n=0;n<r;n++)if(e(i=t[n],n,t))return i;return null}function fr(t,e){var i=t.length;if(i!==e.length)return!1;for(var r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}function _r(t,i){var e,r=t.length,n=Array(t.length);for(e=0;e<r;e++)n[e]={index:e,value:t[e]};for(n.sort(function(t,e){return i(t.value,e.value)||t.index-e.index}),e=0;e<t.length;e++)t[e]=n[e].value}function gr(i,r){var n;return!i.every(function(t,e){return!r(t,n=e,i)})?n:-1}var yr={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"},vr=function(t){function e(){t.call(this),this.layout=yr.XY,this.stride=2,this.flatCoordinates=null}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.computeExtent=function(t){return K(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(_(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var i=this.getSimplifiedGeometryInternal(t);return i.getFlatCoordinates().length<this.flatCoordinates.length?this.simplifiedGeometryCache[e]=i:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=mr(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){},e.prototype.setLayout=function(t,e,i){var r;if(t)r=mr(t);else{for(var n=0;n<i;++n){if(0===e.length)return this.layout=yr.XY,void(this.stride=2);e=e[0]}t=function(t){var e;2==t?e=yr.XY:3==t?e=yr.XYZ:4==t&&(e=yr.XYZM);return e}(r=e.length)}this.layout=t,this.stride=r},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var i=this.getFlatCoordinates();if(i){var r=this.getStride();!function(t,e,i,r,n,o,s){for(var a=s||[],h=Math.cos(n),l=Math.sin(n),u=o[0],c=o[1],p=0,d=e;d<i;d+=r){var f=t[d]-u,_=t[d+1]-c;a[p++]=u+f*h-_*l,a[p++]=c+f*l+_*h;for(var g=d+2;g<d+r;++g)a[p++]=t[g]}s&&a.length!=p&&(a.length=p)}(i,0,i.length,r,t,e,i),this.changed()}},e.prototype.scale=function(t,e,i){var r=e;void 0===r&&(r=t);var n=i;n||(n=ot(this.getExtent()));var o=this.getFlatCoordinates();if(o){var s=this.getStride();!function(t,e,i,r,n,o,s,a){for(var h=a||[],l=s[0],u=s[1],c=0,p=e;p<i;p+=r){var d=t[p]-l,f=t[p+1]-u;h[c++]=l+n*d,h[c++]=u+o*f;for(var _=p+2;_<p+r;++_)h[c++]=t[_]}a&&h.length!=c&&(h.length=c)}(o,0,o.length,s,t,r,n,o),this.changed()}},e.prototype.translate=function(t,e){var i=this.getFlatCoordinates();if(i){var r=this.getStride();_t(i,0,i.length,r,t,e,i),this.changed()}},e}(Ie);function mr(t){var e;return t==yr.XY?e=2:t==yr.XYZ||t==yr.XYM?e=3:t==yr.XYZM&&(e=4),e}function xr(t,e,i,r){for(var n=0,o=t[i-r],s=t[i-r+1];e<i;e+=r){var a=t[e],h=t[e+1];n+=s*a-o*h,o=a,s=h}return n/2}function Sr(t,e,i,r){for(var n=0,o=0,s=i.length;o<s;++o){var a=i[o];n+=xr(t,e,a,r),e=a}return n}function Er(t,e,i,r,n,o,s){var a,h=t[e],l=t[e+1],u=t[i]-h,c=t[i+1]-l;if(0===u&&0===c)a=e;else{var p=((n-h)*u+(o-l)*c)/(u*u+c*c);if(1<p)a=i;else{if(0<p){for(var d=0;d<r;++d)s[d]=It(t[e+d],t[i+d],p);return void(s.length=r)}a=e}}for(var f=0;f<r;++f)s[f]=t[a+f];s.length=r}function Cr(t,e,i,r,n){var o=t[e],s=t[e+1];for(e+=r;e<i;e+=r){var a=t[e],h=t[e+1],l=mt(o,s,a,h);n<l&&(n=l),o=a,s=h}return n}function Tr(t,e,i,r,n){for(var o=0,s=i.length;o<s;++o){var a=i[o];n=Cr(t,e,a,r,n),e=a}return n}function wr(t,e,i,r,n,o,s,a,h,l,u){if(e==i)return l;var c,p;if(0===n){if((p=mt(s,a,t[e],t[e+1]))<l){for(c=0;c<r;++c)h[c]=t[e+c];return h.length=r,p}return l}for(var d=u||[NaN,NaN],f=e+r;f<i;)if(Er(t,f-r,f,r,s,a,d),(p=mt(s,a,d[0],d[1]))<l){for(l=p,c=0;c<r;++c)h[c]=d[c];f+=h.length=r}else f+=r*Math.max((Math.sqrt(p)-Math.sqrt(l))/n|0,1);if(o&&(Er(t,i-r,e,r,s,a,d),(p=mt(s,a,d[0],d[1]))<l)){for(l=p,c=0;c<r;++c)h[c]=d[c];h.length=r}return l}function Rr(t,e,i,r,n,o,s,a,h,l,u){for(var c=u||[NaN,NaN],p=0,d=i.length;p<d;++p){var f=i[p];l=wr(t,e,f,r,n,o,s,a,h,l,c),e=f}return l}function Ir(t,e,i,r){for(var n=0,o=i.length;n<o;++n)t[e++]=i[n];return e}function Lr(t,e,i,r){for(var n=0,o=i.length;n<o;++n)for(var s=i[n],a=0;a<r;++a)t[e++]=s[a];return e}function br(t,e,i,r,n){for(var o=n||[],s=0,a=0,h=i.length;a<h;++a){var l=Lr(t,e,i[a],r);e=o[s++]=l}return o.length=s,o}function Fr(t,e,i,r,n){for(var o=void 0!==n?n:[],s=0,a=e;a<i;a+=r)o[s++]=t.slice(a,a+r);return o.length=s,o}function Pr(t,e,i,r,n){for(var o=void 0!==n?n:[],s=0,a=0,h=i.length;a<h;++a){var l=i[a];o[s++]=Fr(t,e,l,r,o[s]),e=l}return o.length=s,o}function Mr(t,e,i,r,n){for(var o=void 0!==n?n:[],s=0,a=0,h=i.length;a<h;++a){var l=i[a];o[s++]=Pr(t,e,l,r,o[s]),e=l[l.length-1]}return o.length=s,o}function Or(t,e,i,r,n,o,s){var a=(i-e)/r;if(a<3){for(;e<i;e+=r)o[s++]=t[e],o[s++]=t[e+1];return s}var h=new Array(a);h[0]=1,h[a-1]=1;for(var l=[e,i-r],u=0;0<l.length;){for(var c=l.pop(),p=l.pop(),d=0,f=t[p],_=t[p+1],g=t[c],y=t[c+1],v=p+r;v<c;v+=r){var m=vt(t[v],t[v+1],f,_,g,y);d<m&&(u=v,d=m)}n<d&&(h[(u-e)/r]=1,p+r<u&&l.push(p,u),u+r<c&&l.push(u,c))}for(var x=0;x<a;++x)h[x]&&(o[s++]=t[e+x*r],o[s++]=t[e+x*r+1]);return s}function Nr(t,e){return e*Math.round(t/e)}function Ar(t,e,i,r,n,o,s){if(e==i)return s;var a,h,l=Nr(t[e],n),u=Nr(t[e+1],n);e+=r,o[s++]=l,o[s++]=u;do{if(a=Nr(t[e],n),h=Nr(t[e+1],n),(e+=r)==i)return o[s++]=a,o[s++]=h,s}while(a==l&&h==u);for(;e<i;){var c=Nr(t[e],n),p=Nr(t[e+1],n);if(e+=r,c!=a||p!=h){var d=a-l,f=h-u,_=c-l,g=p-u;d*g==f*_&&(d<0&&_<d||d==_||0<d&&d<_)&&(f<0&&g<f||f==g||0<f&&f<g)||(l=o[s++]=a,u=o[s++]=h),a=c,h=p}}return o[s++]=a,o[s++]=h,s}function Gr(t,e,i,r,n,o,s,a){for(var h=0,l=i.length;h<l;++h){var u=i[h];s=Ar(t,e,u,r,n,o,s),a.push(s),e=u}return s}vr.prototype.containsXY=v;var kr=function(i){function r(t,e){i.call(this),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}return i&&(r.__proto__=i),((r.prototype=Object.create(i&&i.prototype)).constructor=r).prototype.clone=function(){return new r(this.flatCoordinates.slice(),this.layout)},r.prototype.closestPointXY=function(t,e,i,r){return r<D(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Cr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),wr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,r))},r.prototype.getArea=function(){return xr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},r.prototype.getCoordinates=function(){return Fr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},r.prototype.getSimplifiedGeometryInternal=function(t){var e=[];return e.length=Or(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new r(e,yr.XY)},r.prototype.getType=function(){return Lt.LINEAR_RING},r.prototype.intersectsExtent=function(t){},r.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Lr(this.flatCoordinates,0,t,this.stride),this.changed()},r}(vr),Dr=function(i){function t(t,e){i.call(this),this.setCoordinates(t,e)}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(t,e,i,r){var n=this.flatCoordinates,o=mt(t,e,n[0],n[1]);if(o<r){for(var s=this.str