(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa0760ee"],{"0d3b":function(t,e,i){var r=i("d039"),n=i("b622"),o=i("c430"),s=n("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),i+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},"25a5":function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){"use strict";function t(t,r,n,o,s){!function t(i,r,n,o,s){for(;o>n;){if(o-n>600){var a=o-n+1,h=r-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(h-a/2<0?-1:1),f=Math.max(n,Math.floor(r-h*c/a+u)),d=Math.min(o,Math.floor(r+(a-h)*c/a+u));t(i,r,f,d,s)}var p=i[r],g=n,_=o;for(e(i,n,r),s(i[o],p)>0&&e(i,n,o);g<_;){for(e(i,g,_),g++,_--;s(i[g],p)<0;)g++;for(;s(i[_],p)>0;)_--}0===s(i[n],p)?e(i,n,_):e(i,++_,o),_<=r&&(n=_+1),r<=_&&(o=_-1)}}(t,r,n||0,o||t.length-1,s||i)}function e(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function i(t,e){return te?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function n(t,e,i){if(!i)return e.indexOf(t);for(var r=0;r=t.minX&&e.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,i,r,n,o){for(var s=[i,r];s.length;)if(!((r=s.pop())-(i=s.pop())<=n)){var a=i+Math.ceil((r-i)/n/2)*n;t(e,a,i,r,o),s.push(i,a,a,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,i=[];if(!d(t,e))return i;for(var r=this.toBBox,n=[];e;){for(var o=0;o=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(r,n,e)},r.prototype._split=function(t,e){var i=t[e],r=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,r);var s=this._chooseSplitIndex(i,n,r),a=p(i.children.splice(s,i.children.length-s));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},r.prototype._splitRoot=function(t,e){this.data=p([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,e,i){for(var r,n,o,a,h,l,u,f=1/0,d=1/0,p=e;p<=i-e;p++){var g=s(t,0,p,this.toBBox),_=s(t,p,i,this.toBBox),y=(n=g,o=_,a=void 0,h=void 0,l=void 0,u=void 0,a=Math.max(n.minX,o.minX),h=Math.max(n.minY,o.minY),l=Math.min(n.maxX,o.maxX),u=Math.min(n.maxY,o.maxY),Math.max(0,l-a)*Math.max(0,u-h)),v=c(g)+c(_);y=e;d--){var p=t.children[d];a(h,t.leaf?n(p):p),l+=u(h)}return l},r.prototype._adjustParentBBoxes=function(t,e,i){for(var r=i;r>=0;r--)a(e[r],t)},r.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},r}))},"2b3d":function(t,e,i){"use strict";i("3ca3");var r,n=i("23e7"),o=i("83ab"),s=i("0d3b"),a=i("da84"),h=i("0366"),l=i("e330"),c=i("37e8"),u=i("6eeb"),f=i("19aa"),d=i("1a2d"),p=i("60da"),g=i("4df4"),_=i("4dae"),y=i("6547").codeAt,v=i("5fb2"),m=i("577e"),x=i("d44e"),O=i("9861"),b=i("69f3"),S=b.set,C=b.getterFor("URL"),w=O.URLSearchParams,E=O.getState,T=a.URL,I=a.TypeError,R=a.parseInt,L=Math.floor,F=Math.pow,k=l("".charAt),P=l(/./.exec),j=l([].join),D=l(1..toString),A=l([].pop),M=l([].push),G=l("".replace),N=l([].shift),B=l("".split),Y=l("".slice),U=l("".toLowerCase),W=l([].unshift),X="Invalid authority",V="Invalid scheme",H="Invalid host",q="Invalid port",J=/[a-z]/i,z=/[\d+-.a-z]/i,K=/\d/,Z=/^0x/i,Q=/^[0-7]+$/,$=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,nt=/[\t\n\r]/g,ot=function(t){var e,i,r,n,o,s,a,h=B(t,".");if(h.length&&""==h[h.length-1]&&h.length--,e=h.length,e>4)return t;for(i=[],r=0;r1&&"0"==k(n,0)&&(o=P(Z,n)?16:8,n=Y(n,8==o?1:2)),""===n)s=0;else{if(!P(10==o?$:8==o?Q:tt,n))return t;s=R(n,o)}M(i,s)}for(r=0;r=F(256,5-e))return null}else if(s>255)return null;for(a=A(i),r=0;r6)return;r=0;while(f()){if(n=null,r>0){if(!("."==f()&&r<4))return;u++}if(!P(K,f()))return;while(P(K,f())){if(o=R(f(),10),null===n)n=o;else{if(0==n)return;n=10*n+o}if(n>255)return;u++}h[l]=256*h[l]+n,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;h[l++]=e}else{if(null!==c)return;u++,l++,c=l}}if(null!==c){s=l-c,l=7;while(0!=l&&s>0)a=h[l],h[l--]=h[c+s-1],h[c+--s]=a}else if(8!=l)return;return h},at=function(t){for(var e=null,i=1,r=null,n=0,o=0;o<8;o++)0!==t[o]?(n>i&&(e=r,i=n),r=null,n=0):(null===r&&(r=o),++n);return n>i&&(e=r,i=n),e},ht=function(t){var e,i,r,n;if("number"==typeof t){for(e=[],i=0;i<4;i++)W(e,t%256),t=L(t/256);return j(e,".")}if("object"==typeof t){for(e="",r=at(t),i=0;i<8;i++)n&&0===t[i]||(n&&(n=!1),r===i?(e+=i?":":"::",n=!0):(e+=D(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},lt={},ct=p({},lt,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=p({},ct,{"#":1,"?":1,"{":1,"}":1}),ft=p({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dt=function(t,e){var i=y(t,0);return i>32&&i<127&&!d(e,t)?t:encodeURIComponent(t)},pt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},gt=function(t,e){var i;return 2==t.length&&P(J,k(t,0))&&(":"==(i=k(t,1))||!e&&"|"==i)},_t=function(t){var e;return t.length>1&>(Y(t,0,2))&&(2==t.length||"/"===(e=k(t,2))||"\\"===e||"?"===e||"#"===e)},yt=function(t){return"."===t||"%2e"===U(t)},vt=function(t){return t=U(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},mt={},xt={},Ot={},bt={},St={},Ct={},wt={},Et={},Tt={},It={},Rt={},Lt={},Ft={},kt={},Pt={},jt={},Dt={},At={},Mt={},Gt={},Nt={},Bt=function(t,e,i){var r,n,o,s=m(t);if(e){if(n=this.parse(s),n)throw I(n);this.searchParams=null}else{if(void 0!==i&&(r=new Bt(i,!0)),n=this.parse(s,null,r),n)throw I(n);o=E(new w),o.bindURL(this),this.searchParams=o}};Bt.prototype={type:"URL",parse:function(t,e,i){var n,o,s,a,h=this,l=e||mt,c=0,u="",f=!1,p=!1,y=!1;t=m(t),e||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,t=G(t,rt,"")),t=G(t,nt,""),n=g(t);while(c<=n.length){switch(o=n[c],l){case mt:if(!o||!P(J,o)){if(e)return V;l=Ot;continue}u+=U(o),l=xt;break;case xt:if(o&&(P(z,o)||"+"==o||"-"==o||"."==o))u+=U(o);else{if(":"!=o){if(e)return V;u="",l=Ot,c=0;continue}if(e&&(h.isSpecial()!=d(pt,u)||"file"==u&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=u,e)return void(h.isSpecial()&&pt[h.scheme]==h.port&&(h.port=null));u="","file"==h.scheme?l=kt:h.isSpecial()&&i&&i.scheme==h.scheme?l=bt:h.isSpecial()?l=Et:"/"==n[c+1]?(l=St,c++):(h.cannotBeABaseURL=!0,M(h.path,""),l=Mt)}break;case Ot:if(!i||i.cannotBeABaseURL&&"#"!=o)return V;if(i.cannotBeABaseURL&&"#"==o){h.scheme=i.scheme,h.path=_(i.path),h.query=i.query,h.fragment="",h.cannotBeABaseURL=!0,l=Nt;break}l="file"==i.scheme?kt:Ct;continue;case bt:if("/"!=o||"/"!=n[c+1]){l=Ct;continue}l=Tt,c++;break;case St:if("/"==o){l=It;break}l=At;continue;case Ct:if(h.scheme=i.scheme,o==r)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=_(i.path),h.query=i.query;else if("/"==o||"\\"==o&&h.isSpecial())l=wt;else if("?"==o)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=_(i.path),h.query="",l=Gt;else{if("#"!=o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=_(i.path),h.path.length--,l=At;continue}h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=_(i.path),h.query=i.query,h.fragment="",l=Nt}break;case wt:if(!h.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,l=At;continue}l=It}else l=Tt;break;case Et:if(l=Tt,"/"!=o||"/"!=k(u,c+1))continue;c++;break;case Tt:if("/"!=o&&"\\"!=o){l=It;continue}break;case It:if("@"==o){f&&(u="%40"+u),f=!0,s=g(u);for(var v=0;v65535)return q;h.port=h.isSpecial()&&b===pt[h.scheme]?null:b,u=""}if(e)return;l=Dt;continue}return q}u+=o;break;case kt:if(h.scheme="file","/"==o||"\\"==o)l=Pt;else{if(!i||"file"!=i.scheme){l=At;continue}if(o==r)h.host=i.host,h.path=_(i.path),h.query=i.query;else if("?"==o)h.host=i.host,h.path=_(i.path),h.query="",l=Gt;else{if("#"!=o){_t(j(_(n,c),""))||(h.host=i.host,h.path=_(i.path),h.shortenPath()),l=At;continue}h.host=i.host,h.path=_(i.path),h.query=i.query,h.fragment="",l=Nt}}break;case Pt:if("/"==o||"\\"==o){l=jt;break}i&&"file"==i.scheme&&!_t(j(_(n,c),""))&&(gt(i.path[0],!0)?M(h.path,i.path[0]):h.host=i.host),l=At;continue;case jt:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&>(u))l=At;else if(""==u){if(h.host="",e)return;l=Dt}else{if(a=h.parseHost(u),a)return a;if("localhost"==h.host&&(h.host=""),e)return;u="",l=Dt}continue}u+=o;break;case Dt:if(h.isSpecial()){if(l=At,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=r&&(l=At,"/"!=o))continue}else h.fragment="",l=Nt;else h.query="",l=Gt;break;case At:if(o==r||"/"==o||"\\"==o&&h.isSpecial()||!e&&("?"==o||"#"==o)){if(vt(u)?(h.shortenPath(),"/"==o||"\\"==o&&h.isSpecial()||M(h.path,"")):yt(u)?"/"==o||"\\"==o&&h.isSpecial()||M(h.path,""):("file"==h.scheme&&!h.path.length&>(u)&&(h.host&&(h.host=""),u=k(u,0)+":"),M(h.path,u)),u="","file"==h.scheme&&(o==r||"?"==o||"#"==o))while(h.path.length>1&&""===h.path[0])N(h.path);"?"==o?(h.query="",l=Gt):"#"==o&&(h.fragment="",l=Nt)}else u+=dt(o,ut);break;case Mt:"?"==o?(h.query="",l=Gt):"#"==o?(h.fragment="",l=Nt):o!=r&&(h.path[0]+=dt(o,lt));break;case Gt:e||"#"!=o?o!=r&&("'"==o&&h.isSpecial()?h.query+="%27":h.query+="#"==o?"%23":dt(o,lt)):(h.fragment="",l=Nt);break;case Nt:o!=r&&(h.fragment+=dt(o,ct));break}c++}},parseHost:function(t){var e,i,r;if("["==k(t,0)){if("]"!=k(t,t.length-1))return H;if(e=st(Y(t,1,-1)),!e)return H;this.host=e}else if(this.isSpecial()){if(t=v(t),P(et,t))return H;if(e=ot(t),null===e)return H;this.host=e}else{if(P(it,t))return H;for(e="",i=g(t),r=0;r1?arguments[1]:void 0,r=S(e,new Bt(t,!1,i));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Ut=Yt.prototype,Wt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&c(Ut,{href:Wt("serialize","setHref"),origin:Wt("getOrigin"),protocol:Wt("getProtocol","setProtocol"),username:Wt("getUsername","setUsername"),password:Wt("getPassword","setPassword"),host:Wt("getHost","setHost"),hostname:Wt("getHostname","setHostname"),port:Wt("getPort","setPort"),pathname:Wt("getPathname","setPathname"),search:Wt("getSearch","setSearch"),searchParams:Wt("getSearchParams"),hash:Wt("getHash","setHash")}),u(Ut,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),u(Ut,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),T){var Xt=T.createObjectURL,Vt=T.revokeObjectURL;Xt&&u(Yt,"createObjectURL",h(Xt,T)),Vt&&u(Yt,"revokeObjectURL",h(Vt,T))}x(Yt,"URL"),n({global:!0,forced:!s,sham:!o},{URL:Yt})},"2ce2":function(t,e,i){"use strict";var r=i("e300"),n=i("183a"),o=i("cef7"),s=i("f623"),a=i("4334"),h=i("57cb"),l=i("38f3"),c=i("6c77"),u=i("9f5e"),f=i("1300"),d=i("06f8"),p=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),g={SELECT:"select"},_=function(t){function e(e,i,r,n){var o=t.call(this,e)||this;return o.selected=i,o.deselected=r,o.mapBrowserEvent=n,o}return p(e,t),e}(o["a"]),y={},v=function(t){function e(e){var i=t.call(this)||this;i.on,i.once,i.un;var n,o=e||{};if(i.boundAddFeature_=i.addFeature_.bind(i),i.boundRemoveFeature_=i.removeFeature_.bind(i),i.condition_=o.condition?o.condition:d["m"],i.addCondition_=o.addCondition?o.addCondition:d["i"],i.removeCondition_=o.removeCondition?o.removeCondition:d["i"],i.toggleCondition_=o.toggleCondition?o.toggleCondition:d["l"],i.multi_=!!o.multi&&o.multi,i.filter_=o.filter?o.filter:h["b"],i.hitTolerance_=o.hitTolerance?o.hitTolerance:0,i.style_=void 0!==o.style?o.style:m(),i.features_=o.features||new r["a"],o.layers)if("function"===typeof o.layers)n=o.layers;else{var s=o.layers;n=function(t){return Object(u["f"])(s,t)}}else n=h["b"];return i.layerFilter_=n,i.featureLayerAssociation_={},i}return p(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(f["c"])(t)]=e},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[Object(f["c"])(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var i=this.getMap();i&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(n["a"].ADD,this.boundAddFeature_),this.features_.addEventListener(n["a"].REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(n["a"].ADD,this.boundAddFeature_),this.features_.removeEventListener(n["a"].REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;this.style_&&this.applySelectedStyle_(e)},e.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.restorePreviousStyle_(e)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var e=Object(f["c"])(t);e in y||(y[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var i=this.getMap().getInteractions().getArray(),r=i.length-1;r>=0;--r){var n=i[r];if(n!==this&&n instanceof e&&n.getStyle()&&-1!==n.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(n.getStyle())}var o=Object(f["c"])(t);t.setStyle(y[o]),delete y[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(f["c"])(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),i=this.removeCondition_(t),r=this.toggleCondition_(t),n=!e&&!i&&!r,o=t.map,s=this.getFeatures(),a=[],h=[];if(n){Object(l["b"])(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return h.push(t),this.addFeatureLayerAssociation_(t,e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=s.getLength()-1;c>=0;--c){var f=s.item(c),d=h.indexOf(f);d>-1?h.splice(d,1):(s.remove(f),a.push(f))}0!==h.length&&s.extend(h)}else{o.forEachFeatureAtPixel(t.pixel,function(t,n){if(this.filter_(t,n))return!e&&!r||Object(u["f"])(s.getArray(),t)?(i||r)&&Object(u["f"])(s.getArray(),t)&&(a.push(t),this.removeFeatureLayerAssociation_(t)):(h.push(t),this.addFeatureLayerAssociation_(t,n)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=a.length-1;p>=0;--p)s.remove(a[p]);s.extend(h)}return(h.length>0||a.length>0)&&this.dispatchEvent(new _(g.SELECT,h,a,t)),!0},e}(a["a"]);function m(){var t=Object(c["b"])();return Object(u["c"])(t[s["a"].POLYGON],t[s["a"].LINE_STRING]),Object(u["c"])(t[s["a"].GEOMETRY_COLLECTION],t[s["a"].LINE_STRING]),function(e){return e.getGeometry()?t[e.getGeometry().getType()]:null}}e["a"]=v},"3e6b":function(t,e,i){"use strict";var r=i("1af9"),n=i("25a5"),o=i.n(n),s=i("38f3"),a=i("6c77"),h=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l={RENDER_ORDER:"renderOrder"},c=function(t){function e(e){var i=this,r=e||{},n=Object(s["a"])({},r);return delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,i=t.call(this,n)||this,i.declutter_=void 0!==r.declutter&&r.declutter,i.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,i.style_=null,i.styleFunction_=void 0,i.setStyle(r.style),i.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,i.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,i}return h(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(l.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o.a(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(l.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:a["a"],this.styleFunction_=null===t?void 0:Object(a["d"])(this.style_),this.changed()},e}(r["a"]),u=c,f={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},d=[f.FILL],p=[f.STROKE],g=[f.BEGIN_PATH],_=[f.CLOSE_PATH],y=f,v=i("f623"),m=i("045d"),x=function(){function t(){}return t.prototype.drawCustom=function(t,e,i,r){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}(),O=x,b=i("e98d"),S=i("0af5"),C=i("ddea"),w=i("9f5e"),E=i("bb6c"),T=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),I=function(t){function e(e,i,r,n){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=i,o.pixelRatio=n,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return T(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var i=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,n=this.coordinates,o=n.length,s=0,a=t.length;su&&(this.instructions.push([y.CUSTOM,u,o,t,i,E["a"]]),this.hitDetectionInstructions.push([y.CUSTOM,u,o,t,r||i,E["a"]]));break;case v["a"].POINT:n=t.getFlatCoordinates(),this.coordinates.push(n[0],n[1]),o=this.coordinates.length,this.instructions.push([y.CUSTOM,u,o,t,i]),this.hitDetectionInstructions.push([y.CUSTOM,u,o,t,r||i]);break;default:}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[y.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[y.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var i,r,n=e.length,o=-1;for(t=0;tthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,i=[y.SET_FILL_STYLE,e];return"string"!==typeof e&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[y.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var i=t.fillStyle;"string"===typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,r=t.lineCap,n=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=r||n!=t.currentLineDash&&!Object(w["b"])(t.currentLineDash,n)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=r,t.currentLineDash=n,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=h)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[y.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(S["d"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(S["c"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(O),R=I,L=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),F=function(t){function e(e,i,r,n){var o=t.call(this,e,i,r,n)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return L(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),r=t.getStride(),n=this.coordinates.length,o=this.appendFlatPointCoordinates(i,r);this.instructions.push([y.DRAW_IMAGE,n,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([y.DRAW_IMAGE,n,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),r=t.getStride(),n=this.coordinates.length,o=this.appendFlatPointCoordinates(i,r);this.instructions.push([y.DRAW_IMAGE,n,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([y.DRAW_IMAGE,n,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var i=t.getAnchor(),r=t.getSize(),n=t.getHitDetectionImage(),o=t.getImage(this.pixelRatio),s=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=n,this.image_=o,this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=s[0]*this.imagePixelRatio_,this.originY_=s[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=r[0],this.declutterImageWithText_=e},e}(R),k=F,P=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),j=function(t){function e(e,i,r,n){return t.call(this,e,i,r,n)||this}return P(e,t),e.prototype.drawFlatCoordinates_=function(t,e,i,r){var n=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,r,!1,!1),s=[y.MOVE_TO_LINE_TO,n,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),i},e.prototype.drawLineString=function(t,e){var i=this.state,r=i.strokeStyle,n=i.lineWidth;if(void 0!==r&&void 0!==n){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([y.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,C["e"],C["f"]],g);var o=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(o,0,o.length,s),this.hitDetectionInstructions.push(p),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var i=this.state,r=i.strokeStyle,n=i.lineWidth;if(void 0!==r&&void 0!==n){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([y.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],g);for(var o=t.getEnds(),s=t.getFlatCoordinates(),a=t.getStride(),h=0,l=0,c=o.length;lt&&(v>y&&(y=v,g=m,_=s),v=0,m=s-n)),a=h,u=d,f=p),l=x,c=O}return v+=h,v>y?[m,s]:[g,_]}var W=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),X={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},V=function(t){function e(e,i,r,n){var o=t.call(this,e,i,r,n)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return W(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var i=this.textFillState_,r=this.textStrokeState_,n=this.textState_;if(""!==this.text_&&n&&(i||r)){var o=this.coordinates,s=o.length,a=t.getType(),h=null,l=t.getStride();if(n.placement!==B.LINE||a!=v["a"].LINE_STRING&&a!=v["a"].MULTI_LINE_STRING&&a!=v["a"].POLYGON&&a!=v["a"].MULTI_POLYGON){var c=n.overflow?null:[];switch(a){case v["a"].POINT:case v["a"].MULTI_POINT:h=t.getFlatCoordinates();break;case v["a"].LINE_STRING:h=t.getFlatMidpoint();break;case v["a"].CIRCLE:h=t.getCenter();break;case v["a"].MULTI_LINE_STRING:h=t.getFlatMidpoints(),l=2;break;case v["a"].POLYGON:h=t.getFlatInteriorPoint(),n.overflow||c.push(h[2]/this.resolution),l=3;break;case v["a"].MULTI_POLYGON:var u=t.getFlatInteriorPoints();h=[];for(E=0,T=u.length;EI[2]}else w=x>E;var R,L=Math.PI,F=[],k=b+r===e;if(e=b,_=0,y=S,f=t[e],d=t[e+1],k){v(),R=Math.atan2(d-g,f-p),w&&(R+=R>0?-L:L);var P=(E+x)/2,j=(T+O)/2;return F[0]=[P,j,(C-o)/2,R,n],F}for(var D=0,A=n.length;D0?-L:L),void 0!==R){var G=M-R;if(G+=G>L?-2*L:G<-L?2*L:0,Math.abs(G)>s)return null}R=M;for(var N=D,B=0;Dt?t-h:n,x=o+l>e?e-l:o,O=d[3]+m*u[0]+d[1],b=d[0]+x*u[1]+d[2],C=y-d[3],w=v-d[0];return(p||0!==c)&&(ot[0]=C,ht[0]=C,ot[1]=w,st[1]=w,st[0]=C+O,at[0]=st[0],at[1]=w+b,ht[1]=at[1]),0!==c?(_=Object($["b"])(Object($["c"])(),i,r,1,1,c,-i,-r),Object($["a"])(_,ot),Object($["a"])(_,st),Object($["a"])(_,at),Object($["a"])(_,ht),Object(S["k"])(Math.min(ot[0],st[0],at[0],ht[0]),Math.min(ot[1],st[1],at[1],ht[1]),Math.max(ot[0],st[0],at[0],ht[0]),Math.max(ot[1],st[1],at[1],ht[1]),nt)):Object(S["k"])(Math.min(C,C+O),Math.min(w,w+b),Math.max(C,C+O),Math.max(w,w+b),nt),f&&(y=Math.round(y),v=Math.round(v)),{drawImageX:y,drawImageY:v,drawImageW:m,drawImageH:x,originX:h,originY:l,declutterBox:{minX:nt[0],minY:nt[1],maxX:nt[2],maxY:nt[3],value:g},canvasTransform:_,scale:u}},t.prototype.replayImageOrLabel_=function(t,e,i,r,n,o,s){var a=!(!o&&!s),h=r.declutterBox,l=t.canvas,c=s?s[2]*r.scale[0]/2:0,u=h.minX-c<=l.width/e&&h.maxX+c>=0&&h.minY-c<=l.height/e&&h.maxY+c>=0;return u&&(a&&this.replayTextBackground_(t,ot,st,at,ht,o,s),Object(C["n"])(t,r.canvasTransform,n,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object($["a"])(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,i,r){var n=this.textStates[e],o=this.createLabel(t,e,r,i),s=this.strokeStates[i],a=this.pixelRatio,h=ut(t,n.textAlign||C["l"]),l=X[n.textBaseline||C["m"]],c=s&&s.lineWidth?s.lineWidth:0,u=o.width/a-2*n.scale[0],f=h*u+2*(.5-h)*c,d=l*o.height/a+2*(.5-l)*c;return{label:o,anchorX:f,anchorY:d}},t.prototype.execute_=function(t,e,i,r,n,o,s,a){var h;this.pixelCoordinates_&&Object(w["b"])(i,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Object(et["c"])(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Object($["f"])(this.renderedTransform_,i));var l,c,u,f,d,p,g,_,v,m,x,O,b,E,T,I,R=0,L=r.length,F=0,k=0,P=0,j=null,D=null,A=this.coordinateCache_,M=this.viewRotation_,G=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,N={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:M},B=this.instructions!=r||this.overlaps?0:200;while(RB&&(this.fill_(t),k=0),P>B&&(t.stroke(),P=0),k||P||(t.beginPath(),f=NaN,d=NaN),++R;break;case y.CIRCLE:F=Y[1];var W=h[F],V=h[F+1],H=h[F+2],q=h[F+3],J=H-W,z=q-V,K=Math.sqrt(J*J+z*z);t.moveTo(W+K,V),t.arc(W,V,K,0,2*Math.PI,!0),++R;break;case y.CLOSE_PATH:t.closePath(),++R;break;case y.CUSTOM:F=Y[1],l=Y[2];var Z=Y[3],Q=Y[4],tt=6==Y.length?Y[5]:void 0;N.geometry=Z,N.feature=b,R in A||(A[R]=[]);var nt=A[R];tt?tt(h,F,l,2,nt):(nt[0]=h[F],nt[1]=h[F+1],nt.length=2),Q(nt,N),++R;break;case y.DRAW_IMAGE:F=Y[1],l=Y[2],_=Y[3],c=Y[4],u=Y[5];var ot=Y[6],st=Y[7],at=Y[8],ht=Y[9],ct=Y[10],ut=Y[11],ft=Y[12],dt=Y[13],pt=Y[14];if(!_&&Y.length>=19){v=Y[18],m=Y[19],x=Y[20],O=Y[21];var gt=this.drawLabelWithPointPlacement_(v,m,x,O);_=gt.label,Y[3]=_;var _t=Y[22];c=(gt.anchorX-_t)*this.pixelRatio,Y[4]=c;var yt=Y[23];u=(gt.anchorY-yt)*this.pixelRatio,Y[5]=u,ot=_.height,Y[6]=ot,dt=_.width,Y[13]=dt}var vt=void 0;Y.length>24&&(vt=Y[24]);var mt=void 0,xt=void 0,Ot=void 0;Y.length>16?(mt=Y[15],xt=Y[16],Ot=Y[17]):(mt=C["j"],xt=!1,Ot=!1),ct&&G?ut+=M:ct||G||(ut-=M);for(var bt=0;F0){if(!o||u!==Z.IMAGE&&u!==Z.TEXT||-1!==o.indexOf(t)){var l=(f[a]-3)/4,d=r-l%s,p=r-(l/s|0),g=n(t,e,d*d+p*p);if(g)return g}c.clearRect(0,0,s,s);break}}var p,g,_,y,v,m=Object.keys(this.executorsByZIndex_).map(Number);for(m.sort(w["i"]),p=m.length-1;p>=0;--p){var x=m[p].toString();for(_=this.executorsByZIndex_[x],g=gt.length-1;g>=0;--g)if(u=gt[g],y=_[u],void 0!==y&&(v=y.executeHitDetection(c,a,i,d,l),v))return v}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var i=e[0],r=e[1],n=e[2],o=e[3],s=[i,r,i,o,n,o,n,r];return Object(et["c"])(s,0,8,2,t,s),s},t.prototype.isEmpty=function(){return Object(s["d"])(this.executorsByZIndex_)},t.prototype.execute=function(t,e,i,r,n,o,s){var a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(w["i"]),this.maxExtent_&&(t.save(),this.clip(t,i));var h,l,c,u,f,d,p=o||gt;for(s&&a.reverse(),h=0,l=a.length;hi)break;var a=r[s];a||(a=[],r[s]=a),a.push(4*((t+n)*e+(t+o))+3),n>0&&a.push(4*((t-n)*e+(t+o))+3),o>0&&(a.push(4*((t+n)*e+(t-o))+3),n>0&&a.push(4*((t-n)*e+(t-o))+3))}for(var h=[],l=(n=0,r.length);nd[2])++_,y=g*_,l.push(this.getRenderTransform(r,n,o,Tt,c,u,y).slice()),p-=g}this.hitDetectionImageData_=It(i,l,this.renderedFeatures_,h.getStyleFunction(),a,n,o)}e(Rt(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,r,n){var o=this;if(this.replayGroup_){var s,a=e.viewState.resolution,h=e.viewState.rotation,l=this.getLayer(),c={},u=function(t,e,i){var o=Object(Y["c"])(t),s=c[o];if(s){if(!0!==s&&im[0]&&b[2]>m[2]&&v.push([b[0]-x,b[1],b[2]-x,b[3]])}if(!this.dirty_&&this.renderedResolution_==c&&this.renderedRevision_==f&&this.renderedRenderOrder_==p&&Object(S["g"])(this.wrappedRenderedExtent_,_))return Object(w["b"])(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var C,E=new z(At(c,u),_,c,u);this.getLayer().getDeclutter()&&(C=new z(At(c,u),_,c,u));var T,I=Object(Jt["k"])();if(I){for(var R=0,L=v.length;R1?arguments[1]:void 0,_=void 0!==g;_&&(g=n(g,r>2?arguments[2]:void 0));var y,v,m,x,O,b,S=d(e),C=0;if(!S||this==p&&h(S))for(y=c(e),v=i?new this(y):p(y);y>C;C++)b=_?g(e[C],C):e[C],u(v,C,b);else for(x=f(e,S),O=x.next,v=i?new this:[];!(m=o(O,x)).done;C++)b=_?a(x,g,[m.value,C],!0):m.value,u(v,C,b);return v.length=C,v}},5178:function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"draw_container"},[i("ul",[i("li",{staticClass:"modify",on:{click:t.controlModify}},[i("p",{staticClass:"bg",class:{active:t.modifyActive},attrs:{title:"编辑"}})]),t.markList[0].class==t.param.type?i("li",{staticClass:"Point",on:{click:function(e){return t.markEvent(t.markList[0])}}},[i("p",{staticClass:"bg",class:{active:t.markList[0].active},attrs:{title:"点"}})]):t._e(),t.markList[1].class==t.param.type?i("li",{staticClass:"LineString",on:{click:function(e){return t.markEvent(t.markList[1])}}},[i("p",{staticClass:"bg",class:{active:t.markList[1].active},attrs:{title:"线"}})]):t._e(),t.markList[2].class==t.param.type?i("li",{staticClass:"Polygon",on:{click:function(e){return t.markEvent(t.markList[2])}}},[i("p",{staticClass:"bg",class:{active:t.markList[2].active},attrs:{title:"面"}})]):t._e(),i("li",{staticClass:"clear",on:{click:t.deleteFeature}},[i("p",{staticClass:"bg",attrs:{title:"清空"}})])])])},n=[],o=(i("d81d"),i("d3b7"),i("159b"),i("e9c4"),i("3ca3"),i("ddb0"),i("2b3d"),i("9861"),i("5831")),s=i("3e6b"),a=i("f403"),h=i("7a09"),l=i("5bc3"),c=i("4cdf"),u=i("6c77"),f=i("6cbf"),d=i("8682"),p=i("83a6"),g=i("c807"),_=i("ac29"),y=i("b2fc"),v=i("2ce2"),m=i("06f8"),x=i("52f6"),O=i.n(x),b=i("42e5"),S=i.n(b),C={props:{param:{type:Object,default:null}},data:function(){return{markList:[{name:"点",class:"Point",active:!1,show:!0},{name:"线",class:"LineString",active:!1,show:!0},{name:"面",class:"Polygon",active:!1,show:!0}],snap:null,draw:null,selectClick:null,selected:[],modifyActive:!1}},created:function(){window.showCoordinates=this.show,window.clear=this.beforeClose,window.getCoordinates=this.getCoordinate},mounted:function(){var t=this;this.style={Point:[new u["c"]({image:new f["a"]({scale:1,anchor:[.5,1],crossOrigin:"anonymous",src:O.a})})],LineString:[new u["c"]({stroke:new d["a"]({color:[255,255,255,1],width:5})}),new u["c"]({stroke:new d["a"]({color:"#ffcc33",width:3})})],Polygon:[new u["c"]({stroke:new d["a"]({color:[255,255,255,1],width:5})}),new u["c"]({stroke:new d["a"]({color:"#ffcc33",width:3})}),new u["c"]({fill:new p["a"]({color:"rgba(255, 255, 255, 0.2)"})})]},this.selected_style={Point:[new u["c"]({image:new f["a"]({scale:1,anchor:[.5,1],crossOrigin:"anonymous",src:S.a})})],LineString:[new u["c"]({stroke:new d["a"]({color:[255,255,255,1],width:5})}),new u["c"]({stroke:new d["a"]({color:[0,153,255,1],width:3})})],Polygon:[new u["c"]({stroke:new d["a"]({color:[255,255,255,1],width:5})}),new u["c"]({stroke:new d["a"]({color:[0,153,255,1],width:3})}),new u["c"]({fill:new p["a"]({color:[255,255,255,.5]})})]},this.source=new o["a"]({projection:"EPSG:4326"}),this.layer=new s["a"]({source:this.source,style:function(e){var i=e.getGeometry().getType();return t.style[i]}}),window.tedt=setInterval((function(){void 0!=globalVariable.map&&(globalVariable.map.addLayer(t.layer),clearInterval(tedt))}),1e3)},methods:{markEvent:function(t){t.active=!t.active,this.markList=this.markList.map((function(e){return t.class!=e.class&&(e.active=!1),e})),this.modifyActive=!1,this.cancelDraw(),this.cancelSnap(),this.cancelModify(),this.cancelSelect(),t.active?(this.bindDraw(t.class),this.bindSnap()):this.openSelect()},controlModify:function(){this.modifyActive=!this.modifyActive,this.modifyActive?(this.cancelDraw(),this.markList=this.markList.map((function(t){return t.active=!1,t})),this.cancelSnap(),this.cancelSelect(),this.bindModify()):(this.cancelModify(),this.openSelect())},bindModify:function(){this.modify=new g["a"]({source:this.source}),globalVariable.map.addInteraction(this.modify)},cancelModify:function(){this.modify&&globalVariable.map.removeInteraction(this.modify)},bindDraw:function(t){var e=this;this.draw=new _["a"]({source:this.source,type:t}),this.draw.on("drawend",(function(t){"1"==e.param.type&&e.clearAllFeature()})),globalVariable.map.addInteraction(this.draw)},cancelDraw:function(){this.draw&&globalVariable.map.removeInteraction(this.draw)},bindSnap:function(){this.snap=new y["a"]({source:this.source}),globalVariable.map.addInteraction(this.snap)},cancelSnap:function(){this.snap&&globalVariable.map.removeInteraction(this.snap)},bindSelect:function(){var t=this;this.selectClick=new v["a"]({condition:m["e"],style:function(e){var i=e.getGeometry().getType();return t.selected_style[i]}}),this.selectClick.on("select",(function(e){t.selected=e.target.getFeatures().getArray()}))},openSelect:function(){globalVariable.map.addInteraction(this.selectClick)},cancelSelect:function(){this.selectClick&&globalVariable.map.removeInteraction(this.selectClick)},deleteFeature:function(){if(this.selected.length>0){for(var t=0;t=200&&a.status<300){var r=e.getType(),h=void 0;r==x.JSON||r==x.TEXT?h=a.responseText:r==x.XML?(h=a.responseXML,h||(h=(new DOMParser).parseFromString(a.responseText,"application/xml"))):r==x.ARRAY_BUFFER&&(h=a.response),h?o(e.readFeatures(h,{extent:i,featureProjection:n}),e.readProjection(h)):s()}else s()},a.onerror=s,a.send()}function S(t,e){return function(i,r,n,o,s){var a=this;b(t,e,i,r,n,(function(t,e){a.addFeatures(t),void 0!==o&&o(t)}),s||f["c"])}}var C=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n.feature=i,n.features=r,n}return C(e,t),e}(o["a"]),E=function(t){function e(e){var i=this,n=e||{};i=t.call(this,{attributions:n.attributions,projection:void 0,state:c["a"].READY,wrapX:void 0===n.wrapX||n.wrapX})||this,i.on,i.once,i.un,i.loader_=f["c"],i.format_=n.format,i.overlaps_=void 0===n.overlaps||n.overlaps,i.url_=n.url,void 0!==n.loader?i.loader_=n.loader:void 0!==i.url_&&(Object(p["a"])(i.format_,7),i.loader_=S(i.url_,i.format_)),i.strategy_=void 0!==n.strategy?n.strategy:d;var o,s,a=void 0===n.useSpatialIndex||n.useSpatialIndex;return i.featuresRtree_=a?new h["a"]:null,i.loadedExtentsRtree_=new h["a"],i.loadingExtentsCount_=0,i.nullGeometryFeatures_={},i.idIndex_={},i.uidIndex_={},i.featureChangeKeys_={},i.featuresCollection_=null,Array.isArray(n.features)?s=n.features:n.features&&(o=n.features,s=o.getArray()),a||void 0!==o||(o=new r["a"](s)),void 0!==s&&i.addFeaturesInternal(s),void 0!==o&&i.bindFeaturesCollection_(o),i}return C(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(y["c"])(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var i=t.getGeometry();if(i){var r=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new w(u["a"].ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(m["a"])(e,s["a"].CHANGE,this.handleFeatureChange_,this),Object(m["a"])(e,a["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var i=!0,r=e.getId();return void 0!==r&&(r.toString()in this.idIndex_?i=!1:this.idIndex_[r.toString()]=e),i&&(Object(p["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],i=[],r=[],n=0,o=t.length;n0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,i=this.loadedExtentsRtree_;i.forEachInExtent(t,(function(i){if(Object(g["o"])(i.extent,t))return e=i,!0})),e&&i.remove(e)},e.prototype.removeFeature=function(t){var e=Object(y["c"])(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},e.prototype.removeFeatureInternal=function(t){var e=Object(y["c"])(t);this.featureChangeKeys_[e].forEach(m["c"]),delete this.featureChangeKeys_[e];var i=t.getId();void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new w(u["a"].REMOVEFEATURE,t))},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(p["a"])(this.format_,7),this.url_=t,this.setLoader(S(t,this.format_))},e}(l["a"]);e["a"]=E},5938:function(t,e,i){"use strict";function r(t,e,i,r){for(var n=t[e],o=t[e+1],s=0,a=e+r;a=55296&&n<=56319&&i>1,t+=x(t/e);while(t>y*h>>1)t=x(t/y),r+=s;return x(r+(y+1)*t/(t+l))},F=function(t){var e=[];t=I(t);var i,r,n=t.length,l=f,c=0,p=u;for(i=0;i=l&&rx((o-c)/b))throw v(_);for(c+=(m-l)*b,l=m,i=0;io)throw v(_);if(r==l){var w=c,E=s;while(1){var T=E<=p?a:E>=p+h?h:E-p;if(w0,6);var _=void 0!==r.src?s["a"].IDLE:s["a"].LOADED;return i.color_=void 0!==r.color?Object(h["a"])(r.color):null,i.iconImage_=y(d,g,p,i.crossOrigin_,_,i.color_),i.offset_=void 0!==r.offset?r.offset:[0,0],i.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:o.TOP_LEFT,i.origin_=null,i.size_=void 0!==r.size?r.size:null,i}return m(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==n["a"].FRACTION||this.anchorYUnits_==n["a"].FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==n["a"].FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==n["a"].FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=o.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=o.TOP_RIGHT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o.BOTTOM_LEFT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}var i=this.getDisplacement();return t[0]-=i[0],t[1]+=i[1],this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=o.TOP_LEFT){var e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),this.offsetOrigin_!=o.TOP_RIGHT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[0]=i[0]-e[0]-t[0]),this.offsetOrigin_!=o.BOTTOM_LEFT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(r["a"].CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(r["a"].CHANGE,t)},e}(a["a"]);e["a"]=x},7574:function(t,e,i){},"7a09":function(t,e,i){"use strict";var r=i("521b"),n=i("f623"),o=i("9abc"),s=i("9769"),a=i("0af5"),h=i("abb7"),l=i("1c48"),c=i("9f5e"),u=i("fd4d"),f=i("bb6c"),d=i("b1a2"),p=i("c560"),g=i("5938"),_=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),y=function(t){function e(e,i){var r=t.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?r.setCoordinates(e,i):r.setFlatCoordinates(i,e),r}return _(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(c["c"])(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,r){return r0?arguments[0]:void 0;F(this,new ht(t))},ct=lt.prototype;if(c(ct,{append:function(t,e){st(arguments.length,2);var i=k(this);V(i.entries,{key:O(t),value:O(e)}),i.updateURL()},delete:function(t){st(arguments.length,1);var e=k(this),i=e.entries,r=O(t),n=0;while(ne.key?1:-1})),t.updateURL()},forEach:function(t){var e,i=k(this).entries,r=y(t,arguments.length>1?arguments[1]:void 0),n=0;while(n1?dt(arguments[1]):{})}}),g(D)){var pt=function(t){return p(this,M),new D(t,arguments.length>1?dt(arguments[1]):{})};M.constructor=pt,pt.prototype=M,r({global:!0,forced:!0},{Request:pt})}}t.exports={URLSearchParams:lt,getState:k}},"9bdd":function(t,e,i){var r=i("825a"),n=i("2a62");t.exports=function(t,e,i,o){try{return o?e(r(i)[0],i[1]):e(i)}catch(s){n(t,"throw",s)}}},a43f:function(t,e,i){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},ab35:function(t,e,i){"use strict";var r=i("1300"),n=i("345d"),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(n["c"])(t.scale),this.displacement_=t.displacement}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getAnchor=function(){return Object(r["b"])()},t.prototype.getImage=function(t){return Object(r["b"])()},t.prototype.getHitDetectionImage=function(){return Object(r["b"])()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(r["b"])()},t.prototype.getImageSize=function(){return Object(r["b"])()},t.prototype.getOrigin=function(){return Object(r["b"])()},t.prototype.getSize=function(){return Object(r["b"])()},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(n["c"])(t)},t.prototype.listenImageChange=function(t){Object(r["b"])()},t.prototype.load=function(){Object(r["b"])()},t.prototype.unlistenImageChange=function(t){Object(r["b"])()},t}();e["a"]=o},ac29:function(t,e,i){"use strict";var r=i("f623"),n=i("9abc"),o=i("0af5"),s=i("abb7"),a=i("bef8"),h=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(t){function e(e,i,r){var n=t.call(this)||this;if(void 0!==r&&void 0===i)n.setFlatCoordinates(r,e);else{var o=i||0;n.setCenterAndRadius(e,o,r)}return n}return h(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,i,r){var n=this.flatCoordinates,o=t-n[0],s=e-n[1],a=o*o+s*s;if(a=i[0]||(t[1]<=i[1]&&t[3]>=i[1]||Object(o["s"])(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],r=t.slice();r[e]=r[0]+i;for(var n=1;n=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,i=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===y["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),r=!1):this.freehand_&&e.type===y["a"].POINTERDOWN?r=!1:i&&this.getPointerCount()<2?(r=e.type===y["a"].POINTERMOVE,r&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===y["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===y["a"].DBLCLICK&&(r=!1),t.prototype.handleEvent.call(this,e)&&r},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new _["a"](y["a"].POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(t.coordinate),!i&&this.freehand_?this.finishDrawing():this.freehand_||i&&this.mode_!==Z.POINT||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,i=t.pixel,r=e[0]-i[0],n=e[1]-i[1],o=r*r+n*n;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var i=!1,r=[this.finishCoordinate_],n=this.mode_;if(n===Z.POINT)e=!0;else if(n===Z.CIRCLE)e=2===this.sketchCoords_.length;else if(n===Z.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(n===Z.POLYGON){var o=this.sketchCoords_;i=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(i)for(var s=this.getMap(),a=0,h=r.length;a=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(t.slice()),this.geometryFunction_(i,r,n)):o===Z.POLYGON&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(t.slice()),e&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,r,n)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),n=this.mode_;if(n===Z.LINE_STRING||n===Z.CIRCLE){if(t=this.sketchCoords_,t.splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var o=this.finishCoordinate_.slice();t[t.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(t,e,i),e.getType()===r["a"].POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(n===Z.POLYGON){t=this.sketchCoords_[0],t.splice(-2,1);var s=this.sketchLine_.getGeometry();if(t.length>=2){o=t[t.length-2].slice();t[t.length-1]=o,this.createOrUpdateSketchPoint_(o)}s.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,i)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,i=t.getGeometry(),n=this.getMap().getView().getProjection();this.mode_===Z.LINE_STRING?(e.pop(),this.geometryFunction_(e,i,n)):this.mode_===Z.POLYGON&&(e[0].pop(),this.geometryFunction_(e,i,n),e=i.getCoordinates()),this.type_===r["a"].MULTI_POINT?t.setGeometry(new k([e])):this.type_===r["a"].MULTI_LINE_STRING?t.setGeometry(new T([e])):this.type_===r["a"].MULTI_POLYGON&&t.setGeometry(new Y([e])),this.dispatchEvent(new $(Q.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new $(Q.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var e,i=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(t[0]),i===Z.LINE_STRING||i===Z.CIRCLE)e=this.sketchCoords_;else{if(i!==Z.POLYGON)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&e.shift(),e.pop();for(var n=0;n0)t[r]=t[--r];r!==o++&&(t[r]=i)}return t},a=function(t,e,i,r){var n=e.length,o=i.length,s=0,a=0;while(s1?h:2,b=a||new Array(O);for(_=0;_>1;o=0;--a)o.remove(s[a])}i&&(Object(_["c"])(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])},e.prototype.setMap=function(e){var i=this.getMap(),n=this.featuresListenerKeys_,o=this.getFeatures_();i&&(n.forEach(_["c"]),n.length=0,o.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?n.push(Object(_["a"])(this.features_,r["a"].ADD,this.handleFeatureAdd_,this),Object(_["a"])(this.features_,r["a"].REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(Object(_["a"])(this.source_,h["a"].ADDFEATURE,this.handleFeatureAdd_,this),Object(_["a"])(this.source_,h["a"].REMOVEFEATURE,this.handleFeatureRemove_,this)),o.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,i){var r=i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),n=i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),s=Object(c["b"])([r,n]),a=this.rBush_.getInExtent(s);this.vertex_&&!this.edge_&&(a=a.filter((function(t){return t.feature.getGeometry().getType()!==o["a"].CIRCLE})));var h=!1,l=null,f=null;if(0===a.length)return{snapped:h,vertex:l,vertexPixel:f};for(var p,g=i.getView().getProjection(),_=Object(d["d"])(e,g),y=1/0,v=0;vE?b[1]:b[0],f=i.getPixelFromCoordinate(l))}else if(this.edge_){var I=p.feature.getGeometry().getType()===o["a"].CIRCLE;if(I){var R=p.feature.getGeometry(),L=Object(d["k"])();L&&(R=R.clone().transform(L,g)),l=Object(d["l"])(Object(u["b"])(_,R),g)}else m[0]=Object(d["d"])(b[0],g),m[1]=Object(d["d"])(b[1],g),l=Object(d["l"])(Object(u["c"])(_,m),g);if(f=i.getPixelFromCoordinate(l),Object(u["d"])(t,f)<=this.pixelTolerance_&&(h=!0,this.vertex_&&!I)){S=i.getPixelFromCoordinate(b[0]),C=i.getPixelFromCoordinate(b[1]),w=Object(u["i"])(f,S),E=Object(u["i"])(f,C),T=Math.sqrt(Math.min(w,E));T<=this.pixelTolerance_&&(l=w>E?b[1]:b[0],f=i.getPixelFromCoordinate(l))}}return h&&(f=[Math.round(f[0]),Math.round(f[1])]),{snapped:h,vertex:l,vertexPixel:f}},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.writeCircleGeometry_=function(t,e){var i=this.getMap().getView().getProjection(),r=e,n=Object(d["k"])();n&&(r=r.clone().transform(n,i));var o=Object(f["b"])(r);n&&o.transform(i,n);for(var s=o.getCoordinates()[0],a=0,h=s.length-1;a=0;--r){for(var n=i[r],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===n&&this.dragSegments_.splice(o,1);e.remove(n)}},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.overlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var i=e.getCoordinates(),r={feature:t,geometry:e,segment:[i,i]};this.rBush_.insert(e.getExtent(),r)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r=0;--m)this.insertVertex_(n[m],o)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var i=this.dragSegments_[e][0],r=i.geometry;if(r.getType()===h["a"].CIRCLE){var n=r.getCenter(),o=i.featureSegments[0],s=i.featureSegments[1];o.segment[0]=n,o.segment[1]=n,s.segment[0]=n,s.segment[1]=n,this.rBush_.update(Object(y["m"])(n),o);var a=r,l=Object(b["k"])();if(l){var c=t.map.getView().getProjection();a=a.clone().transform(l,c),a=Object(O["b"])(a).transform(c,l)}this.rBush_.update(a.getExtent(),s)}else this.rBush_.update(Object(y["b"])(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new L(R.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,e,i){var r,n,o=this,s=i||e.getCoordinateFromPixel(t),a=e.getView().getProjection(),l=function(t,e){return P(s,t,a)-P(s,e,a)};if(this.hitDetection_){var c="object"===typeof this.hitDetection_?function(t){return t===o.hitDetection_}:void 0;e.forEachFeatureAtPixel(t,(function(t,e,i){if(i=i||t.getGeometry(),i.getType()===h["a"].POINT&&Object(x["f"])(o.features_.getArray(),t)){n=i;var s=i.getFlatCoordinates().slice(0,2);r=[{feature:t,geometry:i,segment:[s,s]}]}return!0}),{layerFilter:c})}if(!r){var u=Object(b["e"])(Object(y["m"])(s,T),a),f=e.getView().getResolution()*this.pixelTolerance_,d=Object(b["m"])(Object(y["c"])(u,f,T),a);r=this.rBush_.getInExtent(d)}if(r&&r.length>0){var p=r.sort(l)[0],g=p.segment,_=j(s,p,a),m=e.getPixelFromCoordinate(_),O=Object(v["d"])(t,m);if(n||O<=this.pixelTolerance_){var C={};if(C[Object(S["c"])(g)]=!0,this.snapToPointer_||(this.delta_[0]=_[0]-s[0],this.delta_[1]=_[1]-s[1]),p.geometry.getType()===h["a"].CIRCLE&&p.index===E)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(_,[p.feature],[p.geometry]);else{var w=e.getPixelFromCoordinate(g[0]),I=e.getPixelFromCoordinate(g[1]),R=Object(v["i"])(m,w),L=Object(v["i"])(m,I);O=Math.sqrt(Math.min(R,L)),this.snappedToVertex_=O<=this.pixelTolerance_,this.snappedToVertex_&&(_=R>L?g[1]:g[0]),this.createOrUpdateVertexFeature_(_,[p.feature],[p.geometry]);var F={};F[Object(S["c"])(p.geometry)]=!0;for(var k=1,D=r.length;k=0;--n)i=f[n],c=i[0],u=Object(S["c"])(c.feature),c.depth&&(u+="-"+c.depth.join("-")),u in d||(d[u]={}),0===i[1]?(d[u].right=c,d[u].index=c.index):1==i[1]&&(d[u].left=c,d[u].index=c.index+1);for(u in d){switch(l=d[u].right,s=d[u].left,o=d[u].index,a=o-1,c=void 0!==s?s:l,a<0&&(a=0),r=c.geometry,e=r.getCoordinates(),t=e,p=!1,r.getType()){case h["a"].MULTI_LINE_STRING:e[c.depth[0]].length>2&&(e[c.depth[0]].splice(o,1),p=!0);break;case h["a"].LINE_STRING:e.length>2&&(e.splice(o,1),p=!0);break;case h["a"].MULTI_POLYGON:t=t[c.depth[1]];case h["a"].POLYGON:t=t[c.depth[0]],t.length>4&&(o==t.length-1&&(o=0),t.splice(o,1),p=!0,0===o&&(t.pop(),t.push(t[0]),a=t.length-1));break;default:}if(p){this.setGeometryCoordinates_(r,e);var g=[];if(void 0!==s&&(this.rBush_.remove(s),g.push(s.segment[0])),void 0!==l&&(this.rBush_.remove(l),g.push(l.segment[1])),void 0!==s&&void 0!==l){var _={depth:c.depth,feature:c.feature,geometry:c.geometry,index:a,segment:g};this.rBush_.insert(Object(y["b"])(_.segment),_)}this.updateSegmentIndices_(r,o,c.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),f.length=0}}return p},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,i,r){this.rBush_.forEachInExtent(t.getExtent(),(function(n){n.geometry===t&&(void 0===i||void 0===n.depth||Object(x["b"])(n.depth,i))&&n.index>e&&(n.index+=r)}))},e}(u["b"]);function k(t,e){return t.index-e.index}function P(t,e,i){var r=e.geometry;if(r.getType()===h["a"].CIRCLE){var n=r;if(e.index===E){var o=Object(b["k"])();o&&(n=n.clone().transform(o,i));var s=Object(v["i"])(n.getCenter(),Object(b["d"])(t,i)),a=Math.sqrt(s)-n.getRadius();return a*a}}var l=Object(b["d"])(t,i);return I[0]=Object(b["d"])(e.segment[0],i),I[1]=Object(b["d"])(e.segment[1],i),Object(v["j"])(l,I)}function j(t,e,i){var r=e.geometry;if(r.getType()===h["a"].CIRCLE&&e.index===E){var n=r,o=Object(b["k"])();return o&&(n=n.clone().transform(o,i)),Object(b["l"])(n.getClosestPoint(Object(b["d"])(t,i)),i)}var s=Object(b["d"])(t,i);return I[0]=Object(b["d"])(e.segment[0],i),I[1]=Object(b["d"])(e.segment[1],i),Object(b["l"])(Object(v["c"])(s,I),i)}function D(){var t=Object(m["b"])();return function(e,i){return t[h["a"].POINT]}}e["a"]=F},e901:function(t,e,i){"use strict";i("7574")},e98d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var r=i("5c38");function n(t){return Array.isArray(t)?Object(r["c"])(t):t}},e9c4:function(t,e,i){var r=i("23e7"),n=i("da84"),o=i("d066"),s=i("2ba4"),a=i("e330"),h=i("d039"),l=n.Array,c=o("JSON","stringify"),u=a(/./.exec),f=a("".charAt),d=a("".charCodeAt),p=a("".replace),g=a(1..toString),_=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,m=function(t,e,i){var r=f(i,e-1),n=f(i,e+1);return u(y,t)&&!u(v,n)||u(v,t)&&!u(y,r)?"\\u"+g(d(t,0),16):t},x=h((function(){return'"\\udf06\\ud834"'!==c("\udf06\ud834")||'"\\udead"'!==c("\udead")}));c&&r({target:"JSON",stat:!0,forced:x},{stringify:function(t,e,i){for(var r=0,n=arguments.length,o=l(n);r