UNPKG

leaflet.freedraw

Version:

Zoopla inspired freehand polygon creation using Leaflet.js.

2 lines 267 kB
!function(t){function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,n,e){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=471)}([function(t,n,e){var i=e(2),r=e(25),o=e(12),s=e(13),u=e(26),a="prototype",l=function(t,n,e){var c,f,h,p,d=t&l.F,y=t&l.G,v=t&l.S,_=t&l.P,m=t&l.B,P=y?i:v?i[n]||(i[n]={}):(i[n]||{})[a],g=y?r:r[n]||(r[n]={}),x=g[a]||(g[a]={});y&&(e=n);for(c in e)f=!d&&P&&void 0!==P[c],h=(f?P:e)[c],p=m&&f?u(h,i):_&&"function"==typeof h?u(Function.call,h):h,P&&s(P,c,h,t&l.U),g[c]!=h&&o(g,c,p),_&&x[c]!=h&&(x[c]=h)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,n,e){var i=e(4);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var i=e(72)("wks"),r=e(42),o=e(2).Symbol,s="function"==typeof o,u=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};u.store=i},function(t,n,e){t.exports=!e(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var i=e(1),r=e(132),o=e(24),s=Object.defineProperty;n.f=e(6)?Object.defineProperty:function(t,n,e){if(i(t),n=o(n,!0),i(e),r)try{return s(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var i=e(32),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,n,e){var i=e(19);t.exports=function(t){return Object(i(t))}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var i=e(7),r=e(31);t.exports=e(6)?function(t,n,e){return i.f(t,n,r(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var i=e(2),r=e(12),o=e(10),s=e(42)("src"),u="toString",a=Function[u],l=(""+a).split(u);e(25).inspectSource=function(t){return a.call(t)},(t.exports=function(t,n,e,u){var a="function"==typeof e;a&&(o(e,"name")||r(e,"name",n)),t[n]!==e&&(a&&(o(e,s)||r(e,s,t[n]?""+t[n]:l.join(String(n)))),t===i?t[n]=e:u?t[n]?t[n]=e:r(t,n,e):(delete t[n],r(t,n,e)))})(Function.prototype,u,function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,n,e){var i=e(0),r=e(3),o=e(19),s=/"/g,u=function(t,n,e,i){var r=String(o(t)),u="<"+n;return""!==e&&(u+=" "+e+'="'+String(i).replace(s,"&quot;")+'"'),u+">"+r+"</"+n+">"};t.exports=function(t,n){var e={};e[t]=n(u),i(i.P+i.F*r(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",e)}},function(t,n,e){var i=e(54),r=e(19);t.exports=function(t){return i(r(t))}},function(t,n,e){var i=e(55),r=e(31),o=e(15),s=e(24),u=e(10),a=e(132),l=Object.getOwnPropertyDescriptor;n.f=e(6)?l:function(t,n){if(t=o(t),n=s(n,!0),a)try{return l(t,n)}catch(t){}if(u(t,n))return r(!i.f.call(t,n),t[n])}},function(t,n,e){var i=e(10),r=e(9),o=e(94)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var i=e(3);t.exports=function(t,n){return!!t&&i(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,e){"use strict";function i(t,n){this._groups=t,this._parents=n}function r(){return new i([[document.documentElement]],X)}var o=e(392),s=e(393),u=e(381),a=e(375),l=e(153),c=e(380),f=e(385),h=e(388),p=e(395),d=e(373),y=e(387),v=e(386),_=e(394),m=e(379),P=e(378),g=e(372),x=e(396),E=e(389),b=e(374),C=e(397),I=e(382),T=e(390),S=e(384),w=e(371),O=e(383),L=e(391),A=e(376),N=e(109),M=e(377);e.d(n,"b",function(){return X}),n.a=i;var X=[null];i.prototype=r.prototype={constructor:i,select:o.a,selectAll:s.a,filter:u.a,data:a.a,enter:l.b,exit:c.a,merge:f.a,order:h.a,sort:p.a,call:d.a,nodes:y.a,node:v.a,size:_.a,empty:m.a,each:P.a,attr:g.a,style:x.a,property:E.a,classed:b.a,text:C.a,html:I.a,raise:T.a,lower:S.a,append:w.a,insert:O.a,remove:L.a,datum:A.a,on:N.b,dispatch:M.a},n.c=r},function(t,n,e){var i=e(26),r=e(54),o=e(9),s=e(8),u=e(184);t.exports=function(t,n){var e=1==t,a=2==t,l=3==t,c=4==t,f=6==t,h=5==t||f,p=n||u;return function(n,u,d){for(var y,v,_=o(n),m=r(_),P=i(u,d,3),g=s(m.length),x=0,E=e?p(n,g):a?p(n,0):void 0;g>x;x++)if((h||x in m)&&(y=m[x],v=P(y,x,_),t))if(e)E[x]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return x;case 2:E.push(y)}else if(c)return!1;return f?-1:l||c?c:E}}},function(t,n,e){var i=e(0),r=e(25),o=e(3);t.exports=function(t,n){var e=(r.Object||{})[t]||Object[t],s={};s[t]=n(e),i(i.S+i.F*o(function(){e(1)}),"Object",s)}},function(t,n,e){var i=e(4);t.exports=function(t,n){if(!i(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!i(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!i(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!i(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var i=e(11);t.exports=function(t,n,e){if(i(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,i){return t.call(n,e,i)};case 3:return function(e,i,r){return t.call(n,e,i,r)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var i=e(148),r=e(0),o=e(72)("metadata"),s=o.store||(o.store=new(e(151))),u=function(t,n,e){var r=s.get(t);if(!r){if(!e)return;s.set(t,r=new i)}var o=r.get(n);if(!o){if(!e)return;r.set(n,o=new i)}return o},a=function(t,n,e){var i=u(n,e,!1);return void 0!==i&&i.has(t)},l=function(t,n,e){var i=u(n,e,!1);return void 0===i?void 0:i.get(t)},c=function(t,n,e,i){u(e,i,!0).set(t,n)},f=function(t,n){var e=u(t,n,!1),i=[];return e&&e.forEach(function(t,n){i.push(n)}),i},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},p=function(t){r(r.S,"Reflect",t)};t.exports={store:s,map:u,has:a,get:l,set:c,keys:f,key:h,exp:p}},function(t,n,e){"use strict";if(e(6)){var i=e(35),r=e(2),o=e(3),s=e(0),u=e(73),a=e(101),l=e(26),c=e(34),f=e(31),h=e(12),p=e(39),d=e(32),y=e(8),v=e(41),_=e(24),m=e(10),P=e(145),g=e(53),x=e(4),E=e(9),b=e(86),C=e(36),I=e(17),T=e(37).f,S=e(103),w=e(42),O=e(5),L=e(22),A=e(63),N=e(95),M=e(104),X=e(48),Y=e(69),D=e(40),F=e(79),B=e(125),R=e(7),j=e(16),k=R.f,W=j.f,q=r.RangeError,U=r.TypeError,z=r.Uint8Array,G="ArrayBuffer",H="Shared"+G,J="BYTES_PER_ELEMENT",V="prototype",Z=Array[V],K=a.ArrayBuffer,$=a.DataView,Q=L(0),tt=L(2),nt=L(3),et=L(4),it=L(5),rt=L(6),ot=A(!0),st=A(!1),ut=M.values,at=M.keys,lt=M.entries,ct=Z.lastIndexOf,ft=Z.reduce,ht=Z.reduceRight,pt=Z.join,dt=Z.sort,yt=Z.slice,vt=Z.toString,_t=Z.toLocaleString,mt=O("iterator"),Pt=O("toStringTag"),gt=w("typed_constructor"),xt=w("def_constructor"),Et=u.CONSTR,bt=u.TYPED,Ct=u.VIEW,It="Wrong length!",Tt=L(1,function(t,n){return Nt(N(t,t[xt]),n)}),St=o(function(){return 1===new z(new Uint16Array([1]).buffer)[0]}),wt=!!z&&!!z[V].set&&o(function(){new z(1).set({})}),Ot=function(t,n){if(void 0===t)throw U(It);var e=+t,i=y(t);if(n&&!P(e,i))throw q(It);return i},Lt=function(t,n){var e=d(t);if(e<0||e%n)throw q("Wrong offset!");return e},At=function(t){if(x(t)&&bt in t)return t;throw U(t+" is not a typed array!")},Nt=function(t,n){if(!(x(t)&&gt in t))throw U("It is not a typed array constructor!");return new t(n)},Mt=function(t,n){return Xt(N(t,t[xt]),n)},Xt=function(t,n){for(var e=0,i=n.length,r=Nt(t,i);i>e;)r[e]=n[e++];return r},Yt=function(t,n,e){k(t,n,{get:function(){return this._d[e]}})},Dt=function(t){var n,e,i,r,o,s,u=E(t),a=arguments.length,c=a>1?arguments[1]:void 0,f=void 0!==c,h=S(u);if(void 0!=h&&!b(h)){for(s=h.call(u),i=[],n=0;!(o=s.next()).done;n++)i.push(o.value);u=i}for(f&&a>2&&(c=l(c,arguments[2],2)),n=0,e=y(u.length),r=Nt(this,e);e>n;n++)r[n]=f?c(u[n],n):u[n];return r},Ft=function(){for(var t=0,n=arguments.length,e=Nt(this,n);n>t;)e[t]=arguments[t++];return e},Bt=!!z&&o(function(){_t.call(new z(1))}),Rt=function(){return _t.apply(Bt?yt.call(At(this)):At(this),arguments)},jt={copyWithin:function(t,n){return B.call(At(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return et(At(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(At(this),arguments)},filter:function(t){return Mt(this,tt(At(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(At(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(At(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(At(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(At(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(At(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(At(this),arguments)},lastIndexOf:function(t){return ct.apply(At(this),arguments)},map:function(t){return Tt(At(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ft.apply(At(this),arguments)},reduceRight:function(t){return ht.apply(At(this),arguments)},reverse:function(){for(var t,n=this,e=At(n).length,i=Math.floor(e/2),r=0;r<i;)t=n[r],n[r++]=n[--e],n[e]=t;return n},some:function(t){return nt(At(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return dt.call(At(this),t)},subarray:function(t,n){var e=At(this),i=e.length,r=v(t,i);return new(N(e,e[xt]))(e.buffer,e.byteOffset+r*e.BYTES_PER_ELEMENT,y((void 0===n?i:v(n,i))-r))}},kt=function(t,n){return Mt(this,yt.call(At(this),t,n))},Wt=function(t){At(this);var n=Lt(arguments[1],1),e=this.length,i=E(t),r=y(i.length),o=0;if(r+n>e)throw q(It);for(;o<r;)this[n+o]=i[o++]},qt={entries:function(){return lt.call(At(this))},keys:function(){return at.call(At(this))},values:function(){return ut.call(At(this))}},Ut=function(t,n){return x(t)&&t[bt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},zt=function(t,n){return Ut(t,n=_(n,!0))?f(2,t[n]):W(t,n)},Gt=function(t,n,e){return!(Ut(t,n=_(n,!0))&&x(e)&&m(e,"value"))||m(e,"get")||m(e,"set")||e.configurable||m(e,"writable")&&!e.writable||m(e,"enumerable")&&!e.enumerable?k(t,n,e):(t[n]=e.value,t)};Et||(j.f=zt,R.f=Gt),s(s.S+s.F*!Et,"Object",{getOwnPropertyDescriptor:zt,defineProperty:Gt}),o(function(){vt.call({})})&&(vt=_t=function(){return pt.call(this)});var Ht=p({},jt);p(Ht,qt),h(Ht,mt,qt.values),p(Ht,{slice:kt,set:Wt,constructor:function(){},toString:vt,toLocaleString:Rt}),Yt(Ht,"buffer","b"),Yt(Ht,"byteOffset","o"),Yt(Ht,"byteLength","l"),Yt(Ht,"length","e"),k(Ht,Pt,{get:function(){return this[bt]}}),t.exports=function(t,n,e,a){a=!!a;var l=t+(a?"Clamped":"")+"Array",f="Uint8Array"!=l,p="get"+t,d="set"+t,v=r[l],_=v||{},m=v&&I(v),P=!v||!u.ABV,E={},b=v&&v[V],S=function(t,e){var i=t._d;return i.v[p](e*n+i.o,St)},w=function(t,e,i){var r=t._d;a&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[d](e*n+r.o,i,St)},O=function(t,n){k(t,n,{get:function(){return S(this,n)},set:function(t){return w(this,n,t)},enumerable:!0})};P?(v=e(function(t,e,i,r){c(t,v,l,"_d");var o,s,u,a,f=0,p=0;if(x(e)){if(!(e instanceof K||(a=g(e))==G||a==H))return bt in e?Xt(v,e):Dt.call(v,e);o=e,p=Lt(i,n);var d=e.byteLength;if(void 0===r){if(d%n)throw q(It);if(s=d-p,s<0)throw q(It)}else if(s=y(r)*n,s+p>d)throw q(It);u=s/n}else u=Ot(e,!0),s=u*n,o=new K(s);for(h(t,"_d",{b:o,o:p,l:s,e:u,v:new $(o)});f<u;)O(t,f++)}),b=v[V]=C(Ht),h(b,"constructor",v)):Y(function(t){new v(null),new v(t)},!0)||(v=e(function(t,e,i,r){c(t,v,l);var o;return x(e)?e instanceof K||(o=g(e))==G||o==H?void 0!==r?new _(e,Lt(i,n),r):void 0!==i?new _(e,Lt(i,n)):new _(e):bt in e?Xt(v,e):Dt.call(v,e):new _(Ot(e,f))}),Q(m!==Function.prototype?T(_).concat(T(m)):T(_),function(t){t in v||h(v,t,_[t])}),v[V]=b,i||(b.constructor=v));var L=b[mt],A=!!L&&("values"==L.name||void 0==L.name),N=qt.values;h(v,gt,!0),h(b,bt,l),h(b,Ct,!0),h(b,xt,v),(a?new v(1)[Pt]==l:Pt in b)||k(b,Pt,{get:function(){return l}}),E[l]=v,s(s.G+s.W+s.F*(v!=_),E),s(s.S,l,{BYTES_PER_ELEMENT:n,from:Dt,of:Ft}),J in b||h(b,J,n),s(s.P,l,jt),D(l),s(s.P+s.F*wt,l,{set:Wt}),s(s.P+s.F*!A,l,qt),s(s.P+s.F*(b.toString!=vt),l,{toString:vt}),s(s.P+s.F*o(function(){new v(1).slice()}),l,{slice:kt}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()})||!o(function(){b.toLocaleString.call([1,2])})),l,{toLocaleString:Rt}),X[l]=A?L:N,i||A||h(b,mt,N)}}else t.exports=function(){}},function(t,n){"use strict";t.exports=function(t){if(null==t)throw new TypeError("Cannot use null or undefined");return t}},function(t,n,e){var i=e(42)("meta"),r=e(4),o=e(10),s=e(7).f,u=0,a=Object.isExtensible||function(){return!0},l=!e(3)(function(){return a(Object.preventExtensions({}))}),c=function(t){s(t,i,{value:{i:"O"+ ++u,w:{}}})},f=function(t,n){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!a(t))return"F";if(!n)return"E";c(t)}return t[i].i},h=function(t,n){if(!o(t,i)){if(!a(t))return!0;if(!n)return!1;c(t)}return t[i].w},p=function(t){return l&&d.NEED&&a(t)&&!o(t,i)&&c(t),t},d=t.exports={KEY:i,NEED:!1,fastKey:f,getWeak:h,onFreeze:p}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:e)(t)}},function(t,n,e){"use strict";var i,r=e(117),o=e(441),s=e(436),u=e(118);i=t.exports=function(t,n){var e,i,s,a,l;return arguments.length<2||"string"!=typeof t?(a=n,n=t,t=null):a=arguments[2],null==t?(e=s=!0,i=!1):(e=u.call(t,"c"),i=u.call(t,"e"),s=u.call(t,"w")),l={value:n,configurable:e,enumerable:i,writable:s},a?r(o(a),l):l},i.gs=function(t,n,e){var i,a,l,c;return"string"!=typeof t?(l=e,e=n,n=t,t=null):l=arguments[3],null==n?n=void 0:s(n)?null==e?e=void 0:s(e)||(l=e,e=void 0):(l=n,n=e=void 0),null==t?(i=!0,a=!1):(i=u.call(t,"c"),a=u.call(t,"e")),c={get:n,set:e,configurable:i,enumerable:a},l?r(o(l),c):c}},function(t,n){t.exports=function(t,n,e,i){if(!(t instanceof n)||void 0!==i&&i in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n){t.exports=!1},function(t,n,e){var i=e(1),r=e(138),o=e(82),s=e(94)("IE_PROTO"),u=function(){},a="prototype",l=function(){var t,n=e(81)("iframe"),i=o.length,r="<",s=">";for(n.style.display="none",e(84).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),l=t.F;i--;)delete l[a][o[i]];return l()};t.exports=Object.create||function(t,n){var e;return null!==t?(u[a]=i(t),e=new u,u[a]=null,e[s]=t):e=l(),void 0===n?e:r(e,n)}},function(t,n,e){var i=e(140),r=e(82).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,n,e){var i=e(140),r=e(82);t.exports=Object.keys||function(t){return i(t,r)}},function(t,n,e){var i=e(13);t.exports=function(t,n,e){for(var r in n)i(t,r,n[r],e);return t}},function(t,n,e){"use strict";var i=e(2),r=e(7),o=e(6),s=e(5)("species");t.exports=function(t){var n=i[t];o&&n&&!n[s]&&r.f(n,s,{configurable:!0,get:function(){return this}})}},function(t,n,e){var i=e(32),r=Math.max,o=Math.min;t.exports=function(t,n){return t=i(t),t<0?r(t+n,0):o(t,n)}},function(t,n){var e=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+i).toString(36))}},function(t,n){"use strict";t.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}},function(t,n,e){"use strict";t.exports=e(454)()?Symbol:e(456)},function(t,n){t.exports=L},function(t,n,e){var i=e(5)("unscopables"),r=Array.prototype;void 0==r[i]&&e(12)(r,i,{}),t.exports=function(t){r[i][t]=!0}},function(t,n,e){var i=e(26),r=e(134),o=e(86),s=e(1),u=e(8),a=e(103),l={},c={},n=t.exports=function(t,n,e,f,h){var p,d,y,v,_=h?function(){return t}:a(t),m=i(e,f,n?2:1),P=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(o(_)){for(p=u(t.length);p>P;P++)if(v=n?m(s(d=t[P])[0],d[1]):m(t[P]),v===l||v===c)return v}else for(y=_.call(t);!(d=y.next()).done;)if(v=r(y,m,d.value,n),v===l||v===c)return v};n.BREAK=l,n.RETURN=c},function(t,n){t.exports={}},function(t,n,e){var i=e(7).f,r=e(10),o=e(5)("toStringTag");t.exports=function(t,n,e){t&&!r(t=e?t:t.prototype,o)&&i(t,o,{configurable:!0,value:n})}},function(t,n,e){var i=e(0),r=e(19),o=e(3),s=e(99),u="["+s+"]",a="​…",l=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),f=function(t,n,e){var r={},u=o(function(){return!!s[t]()||a[t]()!=a}),l=r[t]=u?n(h):s[t];e&&(r[e]=l),i(i.P+i.F*u,"String",r)},h=f.trim=function(t,n){return t=String(r(t)),1&n&&(t=t.replace(l,"")),2&n&&(t=t.replace(c,"")),t};t.exports=f},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function s(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0}),n.ALL=n.NONE=n.EDIT_APPEND=n.APPEND=n.DELETE=n.EDIT=n.CREATE=n.freeDraw=n.edgesKey=n.notifyDeferredKey=n.modesKey=n.instanceKey=n.defaultOptions=n.polygons=void 0;var u=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a=function(){function t(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(n,e,i){return e&&t(n.prototype,e),i&&t(n,i),n}}(),l=e(60);Object.defineProperty(n,"CREATE",{enumerable:!0,get:function(){return l.CREATE}}),Object.defineProperty(n,"EDIT",{enumerable:!0,get:function(){return l.EDIT}}),Object.defineProperty(n,"DELETE",{enumerable:!0,get:function(){return l.DELETE}}),Object.defineProperty(n,"APPEND",{enumerable:!0,get:function(){return l.APPEND}}),Object.defineProperty(n,"EDIT_APPEND",{enumerable:!0,get:function(){return l.EDIT_APPEND}}),Object.defineProperty(n,"NONE",{enumerable:!0,get:function(){return l.NONE}}),Object.defineProperty(n,"ALL",{enumerable:!0,get:function(){return l.ALL}});var c=e(45),f=e(365),h=e(400),p=e(449),d=i(p),y=e(458),v=i(y),_=e(44),m=i(_),P=e(61),g=e(62),x=e(122),E=i(x),b=n.polygons=new v.default,C=n.defaultOptions={mode:l.ALL,smoothFactor:.3,elbowDistance:10,simplifyFactor:1.1,mergePolygons:!0,concavePolygon:!0,maximumPolygons:1/0,recreateAfterEdit:!1,notifyAfterEditExit:!1,leaveModeAfterCreate:!1},I=n.instanceKey=(0,m.default)("freedraw/instance"),T=n.modesKey=(0,m.default)("freedraw/modes"),S=n.notifyDeferredKey=(0,m.default)("freedraw/notify-deferred"),w=(n.edgesKey=(0,m.default)("freedraw/edges"),(0,m.default)("freedraw/cancel")),O=function(t){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;r(this,n);var e=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.options=u({},C,t),e}return s(n,t),a(n,[{key:"onAdd",value:function(t){this.map=t,t[w]=function(){},t[I]=this,t[S]=function(){},t.simplifyPolygon=E.default,b.set(t,new d.default),(0,l.modeFor)(t,this.options.mode,this.options);var n=this.svg=(0,f.select)(t._container).append("svg").classed("free-draw",!0).attr("width","100%").attr("height","100%").style("pointer-events","none").style("z-index","1001").style("position","relative");this.listenForEvents(t,n,this.options)}},{key:"onRemove",value:function(t){b.delete(t),this.svg.remove(),delete t[w],delete t[I],delete t.simplifyPolygon}},{key:"create",value:function(t){return(0,g.createFor)(this.map,t,this.options)}},{key:"remove",value:function(t){(0,g.removeFor)(this.map,t)}},{key:"clear",value:function(){(0,g.clearFor)(this.map),(0,P.updateFor)(this.map)}},{key:"mode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"number"==typeof t&&(0,l.modeFor)(this.map,t,this.options),this.map[T]}},{key:"size",value:function(){return b.get(this.map).size}},{key:"all",value:function(){return Array.from(b.get(this.map))}},{key:"cancel",value:function(){this.map[w]()}},{key:"listenForEvents",value:function(t,n,e){t.on("mousedown touchstart",function i(r){var o=this;if(!(t[T]&l.CREATE))return void t.off("mousedown",i);var s=new d.default,u=this.createPath(t,n,t.latLngToContainerPoint(r.latlng));u.next();var a=function(n){var e=t.mouseEventToContainerPoint(n.originalEvent);s.add(t.containerPointToLatLng(e)),u.next(new c.Point(e.x,e.y))};t.on("mousemove touchmove",a);var f=function r(c){var f=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t[w]=function(){},t.off("mouseup",r),t.off("mousedown",i),t.off("mousemove",a),"body"in document&&document.body.removeEventListener("mouseleave",r),n.selectAll("*").remove(),u.return(),f&&(s.size&&(0,g.createFor)(t,Array.from(s),e),(0,P.updateFor)(t),e.leaveModeAfterCreate&&o.mode(o.mode()^l.CREATE))};t.on("mouseup touchend",f),"body"in document&&document.body.addEventListener("mouseleave",f),t[w]=function(){return f({},!1)}}.bind(this))}},{key:"createPath",value:regeneratorRuntime.mark(function t(n,e,i){var r,o,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=(0,h.line)().curve(h.curveMonotoneX).x(function(t){return t.x}).y(function(t){return t.y}),t.next=3,i;case 3:return o=t.sent,s=[i,o],e.append("path").classed("leaflet-line",!0).attr("d",r(s)).attr("fill","none").attr("stroke","black").attr("stroke-width",2),t.delegateYield(this.createPath(n,e,o),"t0",7);case 7:case"end":return t.stop()}},t,this)})}]),n}(c.FeatureGroup);n.default=O;n.freeDraw=function(t){return new O(t)};"undefined"!=typeof window&&(window.FreeDraw=O,O.CREATE=l.CREATE,O.EDIT=l.EDIT,O.DELETE=l.DELETE,O.APPEND=l.APPEND,O.EDIT_APPEND=l.EDIT_APPEND,O.NONE=l.NONE,O.ALL=l.ALL)},function(t,n,e){var i=e(18),r=e(5)("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=s(n=Object(t),r))?e:o?i(n):"Object"==(u=i(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var i=e(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){"use strict";e.d(n,"b",function(){return i}),e.d(n,"d",function(){return r}),e.d(n,"a",function(){return o}),e.d(n,"c",function(){return s});var i=1e-12,r=Math.PI,o=r/2,s=2*r},function(t,n,e){"use strict";n.a=function(t,n){if((i=t.length)>1)for(var e,i,r=1,o=t[n[0]],s=o.length;r<i;++r){e=o,o=t[n[r]];for(var u=0;u<s;++u)o[u][1]+=o[u][0]=isNaN(e[u][1])?e[u][0]:e[u][1]}}},function(t,n,e){"use strict";n.a=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}},function(t,n,e){"use strict";t.exports=e(171)()?Object.setPrototypeOf:e(172)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.modeFor=n.ALL=n.EDIT_APPEND=n.APPEND=n.DELETE=n.EDIT=n.CREATE=n.NONE=void 0;var i=e(45),r=e(52),o=e(61),s=(n.NONE=0,n.CREATE=1),u=n.EDIT=2,a=n.DELETE=4,l=n.APPEND=8;n.EDIT_APPEND=u|l,n.ALL=s|u|a|l,n.modeFor=function(t,n,e){return t[r.modesKey]=n,t[r.instanceKey].fire("mode",{mode:n}),n&s?t.dragging.disable():t.dragging.enable(),Array.from(r.polygons.get(t)).forEach(function(t){t[r.edgesKey].forEach(function(t){n&u?i.DomUtil.removeClass(t._icon,"disabled"):i.DomUtil.addClass(t._icon,"disabled")})}),(0,o.classesFor)(t,n),e.notifyAfterEditExit&&t[r.notifyDeferredKey](),t[r.notifyDeferredKey]=function(){},n}},function(t,n,e){"use strict";function i(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function r(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.classesFor=n.updateFor=void 0;var o=e(45),s=e(52),u=e(60);n.updateFor=function(t){var n=Array.from(s.polygons.get(t)).map(function(t){var n=t.getLatLngs();return[].concat(r(n[0]),[n[0][0]])});t[s.instanceKey].fire("markers",{latLngs:n})},n.classesFor=function(t,n){var e,r=(e={},i(e,u.NONE,"mode-none"),i(e,u.CREATE,"mode-create"),i(e,u.EDIT,"mode-edit"),i(e,u.DELETE,"mode-delete"),i(e,u.APPEND,"mode-append"),e);Object.keys(r).forEach(function(e){var i=r[e],s=n&e;o.DomUtil.removeClass(t._container,i),s&&o.DomUtil.addClass(t._container,i)})}},function(t,n,e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.clearFor=n.removeFor=n.createFor=void 0;var o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},s=e(45),u=e(52),a=e(61),l=e(180),c=i(l),f=e(60),h=e(62),p=i(h),d=e(179),y=i(d),v=e(121),_=i(v),m=function(t,n,e,i){var o=i.parts,s=i.newPoint,a=i.startPoint,l=i.endPoint,f=o.reduce(function(n,e,i){var u=o[i+1]||o[0];return e===a&&u===l?[].concat(r(n),[t.containerPointToLatLng(e),t.containerPointToLatLng(s)]):[].concat(r(n),[t.containerPointToLatLng(e)])},[]);n.setLatLngs(f),n[u.edgesKey].map(function(n){return t.removeLayer(n)}),n[u.edgesKey]=(0,c.default)(t,n,e)},P=(n.createFor=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.defaultOptions,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=u.polygons.get(t).size===e.maximumPolygons,a=!i&&e.concavePolygon?(0,y.default)(t,n):n,l=r?[]:t.simplifyPolygon(t,a,e).map(function(n){var i=new s.Polygon(n,o({},u.defaultOptions,e,{className:"leaflet-polygon"})).addTo(t);return i[u.edgesKey]=(0,c.default)(t,i,e),s.DomEvent.disableClickPropagation(i),i.on("click",(0,p.default)(t,i,e)),i});if(l.forEach(function(n){return u.polygons.get(t).add(n)}),!r&&!i&&u.polygons.get(t).size>1&&e.mergePolygons){var f=(0,_.default)(t,Array.from(u.polygons.get(t)),e);return u.polygons.get(t).clear(),f.forEach(function(n){return u.polygons.get(t).add(n)}),f}return l},n.removeFor=function(t,n){t.removeLayer(n),u.edgesKey in n&&n[u.edgesKey].map(function(n){return t.removeLayer(n)}),u.polygons.get(t).delete(n)});n.clearFor=function(t){Array.from(u.polygons.get(t).values()).forEach(function(n){return P(t,n)})};n.default=function(t,n,e){return function(i){var r=t.mouseEventToContainerPoint("originalEvent"in i?i.originalEvent:i),o=n.getLatLngs()[0].map(function(n){return t.latLngToContainerPoint(n)}),l=o.reduce(function(t,n,e){var i=n,u=o[e+1]||o[0],a=s.LineUtil.pointToSegmentDistance(r,i,u);return a<t.lowestDistance?{lowestDistance:a,startPoint:i,endPoint:u}:t},{lowestDistance:1/0,startPoint:new s.Point,endPoint:(0,s.Point)()}),c=l.startPoint,h=l.endPoint,p=l.lowestDistance,d=t[u.modesKey],y=Boolean(d&f.DELETE),v=Boolean(d&f.APPEND),_=Boolean(d&f.DELETE&&d&f.APPEND),g=function(){return P(t,n)},x=function(){return m(t,n,e,{parts:o,newPoint:r,startPoint:c,endPoint:h})};switch(!0){case _:p>e.elbowDistance?g():x();break;case y:g();break;case v:x()}(y||v)&&(0,a.updateFor)(t)}}},function(t,n,e){var i=e(15),r=e(8),o=e(41);t.exports=function(t){return function(n,e,s){var u,a=i(n),l=r(a.length),c=o(s,l);if(t&&e!=e){for(;l>c;)if(u=a[c++],u!=u)return!0}else for(;l>c;c++)if((t||c in a)&&a[c]===e)return t||c||0;return!t&&-1}}},function(t,n,e){"use strict";var i=e(2),r=e(0),o=e(13),s=e(39),u=e(30),a=e(47),l=e(34),c=e(4),f=e(3),h=e(69),p=e(49),d=e(85);t.exports=function(t,n,e,y,v,_){var m=i[t],P=m,g=v?"set":"add",x=P&&P.prototype,E={},b=function(t){var n=x[t];o(x,t,"delete"==t?function(t){return!(_&&!c(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(_&&!c(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return _&&!c(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof P&&(_||x.forEach&&!f(function(){(new P).entries().next()}))){var C=new P,I=C[g](_?{}:-0,1)!=C,T=f(function(){C.has(1)}),S=h(function(t){new P(t)}),w=!_&&f(function(){for(var t=new P,n=5;n--;)t[g](n,n);return!t.has(-0)});S||(P=n(function(n,e){l(n,P,t);var i=d(new m,n,P);return void 0!=e&&a(e,v,i[g],i),i}),P.prototype=x,x.constructor=P),(T||w)&&(b("delete"),b("has"),v&&b("get")),(w||I)&&b(g),_&&x.clear&&delete x.clear}else P=y.getConstructor(n,t,v,g),s(P.prototype,e),u.NEED=!0;return p(P,t),E[t]=P,r(r.G+r.W+r.F*(P!=m),E),_||y.setStrong(P,t,v),P}},function(t,n,e){"use strict";var i=e(12),r=e(13),o=e(3),s=e(19),u=e(5);t.exports=function(t,n,e){var a=u(t),l=e(s,a,""[t]),c=l[0],f=l[1];o(function(){var n={};return n[a]=function(){return 7},7!=""[t](n)})&&(r(String.prototype,t,c),i(RegExp.prototype,a,2==n?function(t,n){return f.call(t,this,n)}:function(t){return f.call(t,this)}))}},function(t,n,e){"use strict";var i=e(1);t.exports=function(){var t=i(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n){t.exports=function(t,n,e){var i=void 0===e;switch(n.length){case 0:return i?t():t.call(e);case 1:return i?t(n[0]):t.call(e,n[0]);case 2:return i?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return i?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return i?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var i=e(4),r=e(18),o=e(5)("match");t.exports=function(t){var n;return i(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==r(t))}},function(t,n,e){var i=e(5)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!r)return!1;var e=!1;try{var o=[7],s=o[i]();s.next=function(){return{done:e=!0}},o[i]=function(){return s},t(o)}catch(t){}return e}},function(t,n,e){t.exports=e(35)||!e(3)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete e(2)[t]})},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var i=e(2),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){for(var i,r=e(2),o=e(12),s=e(42),u=s("typed_array"),a=s("view"),l=!(!r.ArrayBuffer||!r.DataView),c=l,f=0,h=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<h;)(i=r[p[f++]])?(o(i.prototype,u,!0),o(i.prototype,a,!0)):c=!1;t.exports={ABV:l,CONSTR:c,TYPED:u,VIEW:a}},function(t,n,e){"use strict";var i=e(364);e.d(n,"a",function(){return i.a})},function(t,n,e){"use strict";function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}n.a=i,n.c=r,r.prototype={areaStart:function(){this._line=0},areaEnd:function(){ this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},n.b=function(t){return new r(t)}},function(t,n,e){"use strict";function i(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function r(t,n){this._context=t,this._k=(1-n)/6}n.a=i,n.c=r,r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:i(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:i(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.b=function t(n){function e(t){return new r(t,n)}return e.tension=function(n){return t(+n)},e}(0)},function(t,n,e){"use strict";function i(t){this._context=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},n.a=function(t){return new i(t)}},function(t,n,e){"use strict";n.a=function(){}},function(t,n,e){"use strict";var i=e(9),r=e(41),o=e(8);t.exports=function(t){for(var n=i(this),e=o(n.length),s=arguments.length,u=r(s>1?arguments[1]:void 0,e),a=s>2?arguments[2]:void 0,l=void 0===a?e:r(a,e);l>u;)n[u++]=t;return n}},function(t,n,e){"use strict";var i=e(7),r=e(31);t.exports=function(t,n,e){n in t?i.f(t,n,r(0,e)):t[n]=e}},function(t,n,e){var i=e(4),r=e(2).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var i=e(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[i]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){t.exports=e(2).document&&document.documentElement},function(t,n,e){var i=e(4),r=e(93).set;t.exports=function(t,n,e){var o,s=n.constructor;return s!==e&&"function"==typeof s&&(o=s.prototype)!==e.prototype&&i(o)&&r&&r(t,o),t}},function(t,n,e){var i=e(48),r=e(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,n,e){var i=e(18);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,n,e){"use strict";var i=e(36),r=e(31),o=e(49),s={};e(12)(s,e(5)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=i(s,{next:r(1,e)}),o(t,n+" Iterator")}},function(t,n,e){"use strict";var i=e(35),r=e(0),o=e(13),s=e(12),u=e(10),a=e(48),l=e(88),c=e(49),f=e(17),h=e(5)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",y="keys",v="values",_=function(){return this};t.exports=function(t,n,e,m,P,g,x){l(e,n,m);var E,b,C,I=function(t){if(!p&&t in O)return O[t];switch(t){case y:return function(){return new e(this,t)};case v:return function(){return new e(this,t)}}return function(){return new e(this,t)}},T=n+" Iterator",S=P==v,w=!1,O=t.prototype,L=O[h]||O[d]||P&&O[P],A=L||I(P),N=P?S?I("entries"):A:void 0,M="Array"==n?O.entries||L:L;if(M&&(C=f(M.call(new t)),C!==Object.prototype&&(c(C,T,!0),i||u(C,h)||s(C,h,_))),S&&L&&L.name!==v&&(w=!0,A=function(){return L.call(this)}),i&&!x||!p&&!w&&O[h]||s(O,h,A),a[n]=A,a[T]=_,P)if(E={values:S?A:I(v),keys:g?A:I(y),entries:N},x)for(b in E)b in O||o(O,b,E[b]);else r(r.P+r.F*(p||w),n,E);return E}},function(t,n){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||e(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n,e){var i=e(2),r=e(100).set,o=i.MutationObserver||i.WebKitMutationObserver,s=i.process,u=i.Promise,a="process"==e(18)(s);t.exports=function(){var t,n,e,l=function(){var i,r;for(a&&(i=s.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?e():n=void 0,i}}n=void 0,i&&i.enter()};if(a)e=function(){s.nextTick(l)};else if(o){var c=!0,f=document.createTextNode("");new o(l).observe(f,{characterData:!0}),e=function(){f.data=c=!c}}else if(u&&u.resolve){var h=u.resolve();e=function(){h.then(l)}}else e=function(){r.call(i,l)};return function(i){var r={fn:i,next:void 0};n&&(n.next=r),t||(t=r,e()),n=r}}},function(t,n,e){var i=e(4),r=e(1),o=function(t,n){if(r(t),!i(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{i=e(26)(Function.call,e(16).f(Object.prototype,"__proto__").set,2),i(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){var i=e(72)("keys"),r=e(42);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,n,e){var i=e(1),r=e(11),o=e(5)("species");t.exports=function(t,n){var e,s=i(t).constructor;return void 0===s||void 0==(e=i(s)[o])?n:r(e)}},function(t,n,e){var i=e(32),r=e(19);t.exports=function(t){return function(n,e){var o,s,u=String(r(n)),a=i(e),l=u.length;return a<0||a>=l?t?"":void 0:(o=u.charCodeAt(a),o<55296||o>56319||a+1===l||(s=u.charCodeAt(a+1))<56320||s>57343?t?u.charAt(a):o:t?u.slice(a,a+2):(o-55296<<10)+(s-56320)+65536)}}},function(t,n,e){var i=e(68),r=e(19);t.exports=function(t,n,e){if(i(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(r(t))}},function(t,n,e){"use strict";var i=e(32),r=e(19);t.exports=function(t){var n=String(r(this)),e="",o=i(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(e+=n);return e}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,e){var i,r,o,s=e(26),u=e(67),a=e(84),l=e(81),c=e(2),f=c.process,h=c.setImmediate,p=c.clearImmediate,d=c.MessageChannel,y=0,v={},_="onreadystatechange",m=function(){var t=+this;if(v.hasOwnProperty(t)){var n=v[t];delete v[t],n()}},P=function(t){m.call(t.data)};h&&p||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return v[++y]=function(){u("function"==typeof t?t:Function(t),n)},i(y),y},p=function(t){delete v[t]},"process"==e(18)(f)?i=function(t){f.nextTick(s(m,t,1))}:d?(r=new d,o=r.port2,r.port1.onmessage=P,i=s(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",P,!1)):i=_ in l("script")?function(t){a.appendChild(l("script"))[_]=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(s(m,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,e){"use strict";var i=e(2),r=e(6),o=e(35),s=e(73),u=e(12),a=e(39),l=e(3),c=e(34),f=e(32),h=e(8),p=e(37).f,d=e(7).f,y=e(79),v=e(49),_="ArrayBuffer",m="DataView",P="prototype",g="Wrong length!",x="Wrong index!",E=i[_],b=i[m],C=i.Math,I=i.RangeError,T=i.Infinity,S=E,w=C.abs,O=C.pow,L=C.floor,A=C.log,N=C.LN2,M="buffer",X="byteLength",Y="byteOffset",D=r?"_b":M,F=r?"_l":X,B=r?"_o":Y,R=function(t,n,e){var i,r,o,s=Array(e),u=8*e-n-1,a=(1<<u)-1,l=a>>1,c=23===n?O(2,-24)-O(2,-77):0,f=0,h=t<0||0===t&&1/t<0?1:0;for(t=w(t),t!=t||t===T?(r=t!=t?1:0,i=a):(i=L(A(t)/N),t*(o=O(2,-i))<1&&(i--,o*=2),t+=i+l>=1?c/o:c*O(2,1-l),t*o>=2&&(i++,o/=2),i+l>=a?(r=0,i=a):i+l>=1?(r=(t*o-1)*O(2,n),i+=l):(r=t*O(2,l-1)*O(2,n),i=0));n>=8;s[f++]=255&r,r/=256,n-=8);for(i=i<<n|r,u+=n;u>0;s[f++]=255&i,i/=256,u-=8);return s[--f]|=128*h,s},j=function(t,n,e){var i,r=8*e-n-1,o=(1<<r)-1,s=o>>1,u=r-7,a=e-1,l=t[a--],c=127&l;for(l>>=7;u>0;c=256*c+t[a],a--,u-=8);for(i=c&(1<<-u)-1,c>>=-u,u+=n;u>0;i=256*i+t[a],a--,u-=8);if(0===c)c=1-s;else{if(c===o)return i?NaN:l?-T:T;i+=O(2,n),c-=s}return(l?-1:1)*i*O(2,c-n)},k=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},W=function(t){return[255&t]},q=function(t){return[255&t,t>>8&255]},U=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},z=function(t){return R(t,52,8)},G=function(t){return R(t,23,4)},H=function(t,n,e){d(t[P],n,{get:function(){return this[e]}})},J=function(t,n,e,i){var r=+e,o=f(r);if(r!=o||o<0||o+n>t[F])throw I(x);var s=t[D]._b,u=o+t[B],a=s.slice(u,u+n);return i?a:a.reverse()},V=function(t,n,e,i,r,o){var s=+e,u=f(s);if(s!=u||u<0||u+n>t[F])throw I(x);for(var a=t[D]._b,l=u+t[B],c=i(+r),h=0;h<n;h++)a[l+h]=c[o?h:n-h-1]},Z=function(t,n){c(t,E,_);var e=+n,i=h(e);if(e!=i)throw I(g);return i};if(s.ABV){if(!l(function(){new E})||!l(function(){new E(.5)})){E=function(t){return new S(Z(this,t))};for(var K,$=E[P]=S[P],Q=p(S),tt=0;Q.length>tt;)(K=Q[tt++])in E||u(E,K,S[K]);o||($.constructor=E)}var nt=new b(new E(2)),et=b[P].setInt8;nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||a(b[P],{setInt8:function(t,n){et.call(this,t,n<<24>>24)},setUint8:function(t,n){et.call(this,t,n<<24>>24)}},!0)}else E=function(t){var n=Z(this,t);this._b=y.call(Array(n),0),this[F]=n},b=function(t,n,e){c(this,b,m),c(t,E,m);var i=t[F],r=f(n);if(r<0||r>i)throw I("Wrong offset!");if(e=void 0===e?i-r:h(e),r+e>i)throw I(g);this[D]=t,this[B]=r,this[F]=e},r&&(H(E,X,"_l"),H(b,M,"_b"),H(b,X,"_l"),H(b,Y,"_o")),a(b[P],{getInt8:function(t){return J(this,1,t)[0]<<24>>24},getUint8:function(t){return J(this,1,t)[0]},getInt16:function(t){var n=J(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=J(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return k(J(this,4,t,arguments[1]))},getUint32:function(t){return k(J(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return j(J(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return j(J(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){V(this,1,t,W,n)},setUint8:function(t,n){V(this,1,t,W,n)},setInt16:function(t,n){V(this,2,t,q,n,arguments[2])},setUint16:function(t,n){V(this,2,t,q,n,arguments[2])},setInt32:function(t,n){V(this,4,t,U,n,arguments[2])},setUint32:function(t,n){V(this,4,t,U,n,arguments[2])},setFloat32:function(t,n){V(this,4,t,G,n,arguments[2])},setFloat64:function(t,n){V(this,8,t,z,n,arguments[2])}});v(E,_),v(b,m),u(b[P],s.VIEW,!0),n[_]=E,n[m]=b},function(t,n,e){var i=e(2),r=e(25),o=e(35),s=e(147),u=e(7).f;t.exports=function(t){var n=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in n||u(n,t,{value:s.f(t)})}},function(t,n,e){var i=e(53),r=e(5)("iterator"),o=e(48);t.exports=e(25).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,n,e){"use strict";var i=e(46),r=e(135),o=e(48),s=e(15);t.exports=e(89)(Array,"Array",function(t,n){this._t=s(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,r(1)):"keys"==n?r(0,e):"values"==n?r(0,t[e]):r(0,[e,t[e]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,n,e){"use strict";function i(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===s.b&&n.documentElement.namespaceURI===s.b?n.createElement(t):n.createElementNS(e,t)}}function r(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var o=e(106),s=e(107);n.a=function(t){var n=e.i(o.a)(t);return(n.local?r:i)(n)}},function(t,n,e){"use strict";var i=e(107);n.a=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),i.a.hasOwnProperty(n)?{space:i.a[n],local:t}:t}},function(t,n,e){"use strict";e.d(n,"b",function(){return i});var i="http://www.w3.org/1999/xhtml";n.a={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,n,e){"use strict";n.a=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var r=t.getBoundingClientRect();return[n.clientX-r.left-t.clientLeft,n.clientY-r.top-t.clientTop]}},function(t,n,e){"use strict";function i(t,n,e){return t=r(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function r(t,n,e){return function(i){var r=c;c=i;try{t.call(this,this.__data__,n,e)}finally{c=r}}}function o(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function s(t){return function(){var n=this.__on;if(n){for(var e,i=0,r=-1,o=n.length;i<o;++i)e=n[i],t.type&&e.type!==t.type||e.name!==t.name?n[++r]=e:this.removeEventListener(e.type,e.listener,e.capture);++r?n.length=r:delete this.__on}}}function u(t,n,e){var o=l.hasOwnProperty(t.type)?i:r;return function(i,r,s){var u,a=this.__on,l=o(n,r,s);if(a)for(var c=0,f=a.length;c<f;++c)if((u=a[c]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=e),void(u.value=n);this.addEventListener(t.type,l,e),u={type:t.type,name:t.name,value:n,listener:l,capture:e},a?a.push(u):this.__on=[u]}}function a(t,n,e,i){var r=c;t.sourceEvent=c,c=t;try{return n.apply(e,i)}finally{c=r}}e.d(n,"a",function(){return c}),n.c=a;var l={},c=null;if("undefined"!=typeof document){var f=document.documentElement;"onmouseenter"in f||(l={mouseenter:"mouseover",mouseleave:"mouseout"})}n.b=function(t,n,e){var i,r,a=o(t+""),l=a.length;{if(!(arguments.length<2)){for(c=n?u:s,null==e&&(e=!1),i=0;i<l;++i)this.each(c(a[i],n,e));return this}var c=this.node().__on;if(c)for(var f,h=0,p=c.length;h<p;++h)for(i=0,f=c[h];i<l;++i)if((r=a[i]).type===f.type&&r.name===f.name)return f.value}}},function(t,n,e){"use strict";function i(){}n.a=function(t){return null==t?i:function(){return this.querySelector(t)}}},function(t,n,e){"use strict";var i=e(109);n.a=function(){for(var t,n=i.a;t=n.sourceEvent;)n=t;return n}},function(t,n,e){"use strict";n.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,n,e){"use strict";function i(t,n,e){var i=t._x1,r=t._y1,s=t._x2,u=t._y2;if(t._l01_a>o.b){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>o.b){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-n*t._l12_2a)/f,u=(u*c+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(i,r,s,u,t._x2,t._y2)}function r(t,n){this._context=t,this._alpha=n}var o=e(56),s=e(76);n.a=i,r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:i(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.b=function t(n){function e(t){return n?new r(t,n):new s.c(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";var i=e(74),r=e(51),o=e(77),s=e(160);n.a=function(){function t(t){var r,o,s,h=t.length,p=!1;for(null==l&&(f=c(s=e.i(i.a)())),r=0;r<=h;++r)!(r<h&&a(o=t[r],r,t))===p&&((p=!p)?f.lineStart():f.lineEnd()),p&&f.point(+n(o,r,t),+u(o,r,t));if(s)return f=null,s+""||null}var n=s.a,u=s.b,a=e.i(r.a)(!0),l=null,c=o.a,f=null;return t.x=function(i){return arguments.length?(n="function"==typeof i?i:e.i(r.a)(+i),t):n},t.y=function(n){return arguments.length?(u="function"==typeof n?n:e.i(r.a)(+n),t):u},t.defined=function(n){return arguments.length?(a="function"==typeof n?n:e.i(r.a)(!!n),t):a},t.curve=function(n){return arguments.length?(c=n,null!=l&&(f=c(l)),t):c},t.context=function(n){return arguments.length?(null==n?l=f=null:f=c(l=n),t):l},t}},function(t,n,e){"use strict";function i(t){for(var n,e=0,i=-1,r=t.length;++i<r;)(n=+t[i][1])&&(e+=n);return e}var r=e(58);n.b=i,n.a=function(t){var n=t.map(i);return e.i(r.a)(t).sort(function(t,e){return n[t]-n[e]})}},function(t,n){"use strict";var e=Object.prototype.toString,i=e.call(function(){return arguments}());t.exports=function(t){return e.call(t)===i}},function(t,n,e){"use strict";t.exports=e(431)()?Object.assign:e(432)},function(t,n,e){"use strict";t.exports=e(443)()?String.prototype.contains:e(444)},function(t,n){"use strict";var e=Object.pr