leaflet-freedraw
Version:
Zoopla inspired freehand polygon creation using Leaflet.js.
3 lines • 497 kB
JavaScript
var LeafletFreeDraw=function(t){"use strict";function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function n(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function a(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}}).apply(null,arguments)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function d(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function m(t,n){if(t){if("string"==typeof t)return e(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}var y="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),g={}.hasOwnProperty,_=function(t,e){return g.call(t,e)},P=function(t){try{return!!t()}catch(t){return!0}},x=!P(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),b={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,E={f:w&&!b.call({1:2},1)?function(t){var e=w(this,t);return!!e&&e.enumerable}:b},T=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S={}.toString,I=function(t){return S.call(t).slice(8,-1)},C="".split,O=P(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==I(t)?C.call(t,""):Object(t)}:Object,A=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},M=function(t){return O(A(t))},N=function(t){return"object"==typeof t?null!==t:"function"==typeof t},R=function(t,e){if(!N(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!N(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!N(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!N(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},k=y.document,B=N(k)&&N(k.createElement),D=function(t){return B?k.createElement(t):{}},j=!x&&!P(function(){return 7!=Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a}),z=Object.getOwnPropertyDescriptor,Y={f:x?z:function(t,e){if(t=M(t),e=R(e,!0),j)try{return z(t,e)}catch(t){}if(_(t,e))return T(!E.f.call(t,e),t[e])}},X=function(t){if(!N(t))throw TypeError(String(t)+" is not an object");return t},F=Object.defineProperty,W={f:x?F:function(t,e,n){if(X(t),e=R(e,!0),X(n),j)try{return F(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Z=x?function(t,e,n){return W.f(t,e,T(1,n))}:function(t,e,n){return t[e]=n,t},U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function q(t,e){return t(e={exports:{}},e.exports),e.exports}var G,H,V,J=function(t,e){try{Z(y,t,e)}catch(n){y[t]=e}return e},K=q(function(t){var e=y["__core-js_shared__"]||J("__core-js_shared__",{});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.0.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),$=K("native-function-to-string",Function.toString),Q=y.WeakMap,tt="function"==typeof Q&&/native code/.test($.call(Q)),et=0,nt=Math.random(),it=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++et+nt).toString(36))},rt=K("keys"),ot=function(t){return rt[t]||(rt[t]=it(t))},st={},at=y.WeakMap;if(tt){var ut=new at,lt=ut.get,ht=ut.has,ct=ut.set;G=function(t,e){return ct.call(ut,t,e),e},H=function(t){return lt.call(ut,t)||{}},V=function(t){return ht.call(ut,t)}}else{var ft=ot("state");st[ft]=!0,G=function(t,e){return Z(t,ft,e),e},H=function(t){return _(t,ft)?t[ft]:{}},V=function(t){return _(t,ft)}}var pt={set:G,get:H,has:V,enforce:function(t){return V(t)?H(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!N(e)||(n=H(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},dt=q(function(t){var e=pt.get,n=pt.enforce,i=String($).split("toString");K("inspectSource",function(t){return $.call(t)}),(t.exports=function(t,e,r,o){var s=!!o&&!!o.unsafe,a=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||_(r,"name")||Z(r,"name",e),n(r).source=i.join("string"==typeof e?e:"")),t!==y?(s?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:Z(t,e,r)):a?t[e]=r:J(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||$.call(this)})}),vt=Math.ceil,mt=Math.floor,yt=function(t){return isNaN(t=+t)?0:(t>0?mt:vt)(t)},gt=Math.min,_t=function(t){return t>0?gt(yt(t),9007199254740991):0},Pt=Math.max,xt=Math.min,bt=function(t,e){var n=yt(t);return n<0?Pt(n+e,0):xt(n,e)},wt=function(t){return function(e,n,i){var r,o=M(e),s=_t(o.length),a=bt(i,s);if(t&&n!=n){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Et=wt(!1),Lt=function(t,e){var n,i=M(t),r=0,o=[];for(n in i)!_(st,n)&&_(i,n)&&o.push(n);for(;e.length>r;)_(i,n=e[r++])&&(~Et(o,n)||o.push(n));return o},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],St=Tt.concat("length","prototype"),It={f:Object.getOwnPropertyNames||function(t){return Lt(t,St)}},Ct={f:Object.getOwnPropertySymbols},Ot=y.Reflect,At=Ot&&Ot.ownKeys||function(t){var e=It.f(X(t)),n=Ct.f;return n?e.concat(n(t)):e},Mt=function(t,e){for(var n=At(e),i=W.f,r=Y.f,o=0;o<n.length;o++){var s=n[o];_(t,s)||i(t,s,r(e,s))}},Nt=/#|\.prototype\./,Rt=function(t,e){var n=Bt[kt(t)];return n==jt||n!=Dt&&("function"==typeof e?P(e):!!e)},kt=Rt.normalize=function(t){return String(t).replace(Nt,".").toLowerCase()},Bt=Rt.data={},Dt=Rt.NATIVE="N",jt=Rt.POLYFILL="P",zt=Rt,Yt=Y.f,Xt=function(t,e){var n,i,r,o,s,a=t.target,u=t.global,l=t.stat;if(n=u?y:l?y[a]||J(a,{}):(y[a]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(s=Yt(n,i))&&s.value:n[i],!zt(u?i:a+(l?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Mt(o,r)}(t.sham||r&&r.sham)&&Z(o,"sham",!0),dt(n,i,o,t)}},Ft=!P(function(){return!String(Symbol())}),Wt=K("wks"),Zt=y.Symbol,Ut=function(t){return Wt[t]||(Wt[t]=Ft&&Zt[t]||(Ft?Zt:it)("Symbol."+t))},qt=W.f,Gt=Ut("toStringTag"),Ht=function(t,e,n){t&&!_(t=n?t:t.prototype,Gt)&&qt(t,Gt,{configurable:!0,value:e})},Vt={f:Ut},Jt=y,Kt=W.f,$t=function(t){var e=Jt.Symbol||(Jt.Symbol={});_(e,t)||Kt(e,t,{value:Vt.f(t)})},Qt=Object.keys||function(t){return Lt(t,Tt)},te=Array.isArray||function(t){return"Array"==I(t)},ee=x?Object.defineProperties:function(t,e){X(t);for(var n,i=Qt(e),r=i.length,o=0;r>o;)W.f(t,n=i[o++],e[n]);return t},ne=y.document,ie=ne&&ne.documentElement,re=ot("IE_PROTO"),oe=function(){},se=function(){var t,e=D("iframe"),n=Tt.length;for(e.style.display="none",ie.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),se=t.F;n--;)delete se.prototype[Tt[n]];return se()},ae=Object.create||function(t,e){var n;return null!==t?(oe.prototype=X(t),n=new oe,oe.prototype=null,n[re]=t):n=se(),void 0===e?n:ee(n,e)};st[re]=!0;var ue=It.f,le={}.toString,he="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ce={f:function(t){return he&&"[object Window]"==le.call(t)?function(t){try{return ue(t)}catch(t){return he.slice()}}(t):ue(M(t))}},fe=ot("hidden"),pe=pt.set,de=pt.getterFor("Symbol"),ve=Y.f,me=W.f,ye=ce.f,ge=y.Symbol,_e=y.JSON,Pe=_e&&_e.stringify,xe=Ut("toPrimitive"),be=E.f,we=K("symbol-registry"),Ee=K("symbols"),Le=K("op-symbols"),Te=K("wks"),Se=Object.prototype,Ie=y.QObject,Ce=!Ie||!Ie.prototype||!Ie.prototype.findChild,Oe=x&&P(function(){return 7!=ae(me({},"a",{get:function(){return me(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=ve(Se,e);i&&delete Se[e],me(t,e,n),i&&t!==Se&&me(Se,e,i)}:me,Ae=function(t,e){var n=Ee[t]=ae(ge.prototype);return pe(n,{type:"Symbol",tag:t,description:e}),x||(n.description=e),n},Me=Ft&&"symbol"==typeof ge.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ge},Ne=function(t,e,n){return t===Se&&Ne(Le,e,n),X(t),e=R(e,!0),X(n),_(Ee,e)?(n.enumerable?(_(t,fe)&&t[fe][e]&&(t[fe][e]=!1),n=ae(n,{enumerable:T(0,!1)})):(_(t,fe)||me(t,fe,T(1,{})),t[fe][e]=!0),Oe(t,e,n)):me(t,e,n)},Re=function(t,e){X(t);for(var n,i=function(t){var e=Qt(t),n=Ct.f;if(n)for(var i,r=n(t),o=E.f,s=0;r.length>s;)o.call(t,i=r[s++])&&e.push(i);return e}(e=M(e)),r=0,o=i.length;o>r;)Ne(t,n=i[r++],e[n]);return t},ke=function(t){var e=be.call(this,t=R(t,!0));return!(this===Se&&_(Ee,t)&&!_(Le,t))&&(!(e||!_(this,t)||!_(Ee,t)||_(this,fe)&&this[fe][t])||e)},Be=function(t,e){if(t=M(t),e=R(e,!0),t!==Se||!_(Ee,e)||_(Le,e)){var n=ve(t,e);return!n||!_(Ee,e)||_(t,fe)&&t[fe][e]||(n.enumerable=!0),n}},De=function(t){for(var e,n=ye(M(t)),i=[],r=0;n.length>r;)_(Ee,e=n[r++])||_(st,e)||i.push(e);return i},je=function(t){for(var e,n=t===Se,i=ye(n?Le:M(t)),r=[],o=0;i.length>o;)!_(Ee,e=i[o++])||n&&!_(Se,e)||r.push(Ee[e]);return r};Ft||(dt((ge=function(){if(this instanceof ge)throw TypeError("Symbol is not a constructor");var t=void 0===arguments[0]?void 0:String(arguments[0]),e=it(t),n=function(t){this===Se&&n.call(Le,t),_(this,fe)&&_(this[fe],e)&&(this[fe][e]=!1),Oe(this,e,T(1,t))};return x&&Ce&&Oe(Se,e,{configurable:!0,set:n}),Ae(e,t)}).prototype,"toString",function(){return de(this).tag}),E.f=ke,W.f=Ne,Y.f=Be,It.f=ce.f=De,Ct.f=je,x&&(me(ge.prototype,"description",{configurable:!0,get:function(){return de(this).description}}),dt(Se,"propertyIsEnumerable",ke,{unsafe:!0})),Vt.f=function(t){return Ae(Ut(t),t)}),Xt({global:!0,wrap:!0,forced:!Ft,sham:!Ft},{Symbol:ge});for(var ze=Qt(Te),Ye=0;ze.length>Ye;)$t(ze[Ye++]);Xt({target:"Symbol",stat:!0,forced:!Ft},{for:function(t){return _(we,t+="")?we[t]:we[t]=ge(t)},keyFor:function(t){if(!Me(t))throw TypeError(t+" is not a symbol");for(var e in we)if(we[e]===t)return e},useSetter:function(){Ce=!0},useSimple:function(){Ce=!1}}),Xt({target:"Object",stat:!0,forced:!Ft,sham:!x},{create:function(t,e){return void 0===e?ae(t):Re(ae(t),e)},defineProperty:Ne,defineProperties:Re,getOwnPropertyDescriptor:Be}),Xt({target:"Object",stat:!0,forced:!Ft},{getOwnPropertyNames:De,getOwnPropertySymbols:je}),_e&&Xt({target:"JSON",stat:!0,forced:!Ft||P(function(){var t=ge();return"[null]"!=Pe([t])||"{}"!=Pe({a:t})||"{}"!=Pe(Object(t))})},{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(N(e)||void 0!==t)&&!Me(t))return te(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Me(e))return e}),i[1]=e,Pe.apply(_e,i)}}),ge.prototype[xe]||Z(ge.prototype,xe,ge.prototype.valueOf),Ht(ge,"Symbol"),st[fe]=!0,$t("asyncIterator");var Xe=W.f,Fe=y.Symbol;if(x&&"function"==typeof Fe&&(!("description"in Fe.prototype)||void 0!==Fe().description)){var We={},Ze=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ze?new Fe(t):void 0===t?Fe():Fe(t);return""===t&&(We[e]=!0),e};Mt(Ze,Fe);var Ue=Ze.prototype=Fe.prototype;Ue.constructor=Ze;var qe=Ue.toString,Ge="Symbol(test)"==String(Fe("test")),He=/^Symbol\((.*)\)[^)]+$/;Xe(Ue,"description",{configurable:!0,get:function(){var t=N(this)?this.valueOf():this,e=qe.call(t);if(_(We,t))return"";var n=Ge?e.slice(7,-1):e.replace(He,"$1");return""===n?void 0:n}}),Xt({global:!0,forced:!0},{Symbol:Ze})}$t("hasInstance"),$t("isConcatSpreadable"),$t("iterator"),$t("match"),$t("replace"),$t("search"),$t("species"),$t("split"),$t("toPrimitive"),$t("toStringTag"),$t("unscopables");var Ve=function(t){return Object(A(t))},Je=Object.assign,Ke=!Je||P(function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=Je({},t)[n]||"abcdefghijklmnopqrst"!=Qt(Je({},e)).join("")})?function(t,e){for(var n=Ve(t),i=arguments.length,r=1,o=Ct.f,s=E.f;i>r;)for(var a,u=O(arguments[r++]),l=o?Qt(u).concat(o(u)):Qt(u),h=l.length,c=0;h>c;)s.call(u,a=l[c++])&&(n[a]=u[a]);return n}:Je;Xt({target:"Object",stat:!0,forced:Object.assign!==Ke},{assign:Ke}),Xt({target:"Object",stat:!0,sham:!x},{create:ae}),Xt({target:"Object",stat:!0,forced:!x,sham:!x},{defineProperty:W.f}),Xt({target:"Object",stat:!0,forced:!x,sham:!x},{defineProperties:ee});var $e=E.f,Qe=function(t,e){for(var n,i=M(t),r=Qt(i),o=r.length,s=0,a=[];o>s;)$e.call(i,n=r[s++])&&a.push(e?[n,i[n]]:i[n]);return a};Xt({target:"Object",stat:!0},{entries:function(t){return Qe(t,!0)}});var tn=!P(function(){return Object.isExtensible(Object.preventExtensions({}))}),en=q(function(t){var e=it("meta"),n=W.f,i=0,r=Object.isExtensible||function(){return!0},o=function(t){n(t,e,{value:{objectID:"O"+ ++i,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,n){if(!N(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!_(t,e)){if(!r(t))return"F";if(!n)return"E";o(t)}return t[e].objectID},getWeakData:function(t,n){if(!_(t,e)){if(!r(t))return!0;if(!n)return!1;o(t)}return t[e].weakData},onFreeze:function(t){return tn&&s.REQUIRED&&r(t)&&!_(t,e)&&o(t),t}};st[e]=!0}),nn=(en.REQUIRED,en.fastKey,en.getWeakData,en.onFreeze,en.onFreeze),rn=Object.freeze,on=P(function(){rn(1)});Xt({target:"Object",stat:!0,forced:on,sham:!tn},{freeze:function(t){return rn&&N(t)?rn(nn(t)):t}});var sn={},an=Ut("iterator"),un=Array.prototype,ln=function(t){return void 0!==t&&(sn.Array===t||un[an]===t)},hn=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},cn=function(t,e,n){if(hn(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},fn=Ut("toStringTag"),pn="Arguments"==I(function(){return arguments}()),dn=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),fn))?n:pn?I(e):"Object"==(i=I(e))&&"function"==typeof e.callee?"Arguments":i},vn=Ut("iterator"),mn=function(t){if(null!=t)return t[vn]||t["@@iterator"]||sn[dn(t)]},yn=function(t,e,n,i){try{return i?e(X(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&X(r.call(t)),e}},gn=q(function(t){var e={};(t.exports=function(t,n,i,r,o){var s,a,u,l,h,c=cn(n,i,r?2:1);if(o)s=t;else{if("function"!=typeof(a=mn(t)))throw TypeError("Target is not iterable");if(ln(a)){for(u=0,l=_t(t.length);l>u;u++)if((r?c(X(h=t[u])[0],h[1]):c(t[u]))===e)return e;return}s=a.call(t)}for(;!(h=s.next()).done;)if(yn(s,c,h.value,r)===e)return e}).BREAK=e}),_n=function(t,e,n){var i=R(e);i in t?W.f(t,i,T(0,n)):t[i]=n};Xt({target:"Object",stat:!0},{fromEntries:function(t){var e={};return gn(t,function(t,n){_n(e,t,n)},void 0,!0),e}});var Pn=Y.f,xn=P(function(){Pn(1)});Xt({target:"Object",stat:!0,forced:!x||xn,sham:!x},{getOwnPropertyDescriptor:function(t,e){return Pn(M(t),e)}}),Xt({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(t){for(var e,n,i=M(t),r=Y.f,o=At(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&_n(s,e,n);return s}});var bn=ce.f,wn=P(function(){Object.getOwnPropertyNames(1)});Xt({target:"Object",stat:!0,forced:wn},{getOwnPropertyNames:bn});var En=!P(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Ln=ot("IE_PROTO"),Tn=Object.prototype,Sn=En?Object.getPrototypeOf:function(t){return t=Ve(t),_(t,Ln)?t[Ln]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Tn:null},In=P(function(){Sn(1)});Xt({target:"Object",stat:!0,forced:In,sham:!En},{getPrototypeOf:function(t){return Sn(Ve(t))}});var Cn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Xt({target:"Object",stat:!0},{is:Cn});var On=Object.isExtensible,An=P(function(){On(1)});Xt({target:"Object",stat:!0,forced:An},{isExtensible:function(t){return!!N(t)&&(!On||On(t))}});var Mn=Object.isFrozen,Nn=P(function(){Mn(1)});Xt({target:"Object",stat:!0,forced:Nn},{isFrozen:function(t){return!N(t)||!!Mn&&Mn(t)}});var Rn=Object.isSealed,kn=P(function(){Rn(1)});Xt({target:"Object",stat:!0,forced:kn},{isSealed:function(t){return!N(t)||!!Rn&&Rn(t)}});var Bn=P(function(){Qt(1)});Xt({target:"Object",stat:!0,forced:Bn},{keys:function(t){return Qt(Ve(t))}});var Dn=en.onFreeze,jn=Object.preventExtensions,zn=P(function(){jn(1)});Xt({target:"Object",stat:!0,forced:zn,sham:!tn},{preventExtensions:function(t){return jn&&N(t)?jn(Dn(t)):t}});var Yn=en.onFreeze,Xn=Object.seal,Fn=P(function(){Xn(1)});Xt({target:"Object",stat:!0,forced:Fn,sham:!tn},{seal:function(t){return Xn&&N(t)?Xn(Yn(t)):t}});var Wn=function(t,e){if(X(t),!N(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")},Zn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return Wn(n,i),e?t.call(n,i):n.__proto__=i,n}}():void 0);Xt({target:"Object",stat:!0},{setPrototypeOf:Zn}),Xt({target:"Object",stat:!0},{values:function(t){return Qe(t)}});var Un={};Un[Ut("toStringTag")]="z";var qn="[object z]"!==String(Un)?function(){return"[object "+dn(this)+"]"}:Un.toString,Gn=Object.prototype;qn!==Gn.toString&&dt(Gn,"toString",qn,{unsafe:!0});var Hn=!P(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete y[t]});x&&Xt({target:"Object",proto:!0,forced:Hn},{__defineGetter__:function(t,e){W.f(Ve(this),t,{get:hn(e),enumerable:!0,configurable:!0})}}),x&&Xt({target:"Object",proto:!0,forced:Hn},{__defineSetter__:function(t,e){W.f(Ve(this),t,{set:hn(e),enumerable:!0,configurable:!0})}});var Vn=Y.f;x&&Xt({target:"Object",proto:!0,forced:Hn},{__lookupGetter__:function(t){var e,n=Ve(this),i=R(t,!0);do{if(e=Vn(n,i))return e.get}while(n=Sn(n))}});var Jn=Y.f;x&&Xt({target:"Object",proto:!0,forced:Hn},{__lookupSetter__:function(t){var e,n=Ve(this),i=R(t,!0);do{if(e=Jn(n,i))return e.set}while(n=Sn(n))}});var Kn=[].slice,$n={},Qn=Function.bind||function(t){var e=hn(this),n=Kn.call(arguments,1),i=function(){var r=n.concat(Kn.call(arguments));return this instanceof i?function(t,e,n){if(!(e in $n)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";$n[e]=Function("C,a","return new C("+i.join(",")+")")}return $n[e](t,n)}(e,r.length,r):e.apply(t,r)};return N(e.prototype)&&(i.prototype=e.prototype),i};Xt({target:"Function",proto:!0},{bind:Qn});var ti=W.f,ei=Function.prototype,ni=ei.toString,ii=/^\s*function ([^ (]*)/;!x||"name"in ei||ti(ei,"name",{configurable:!0,get:function(){try{return ni.call(this).match(ii)[1]}catch(t){return""}}});var ri=Ut("hasInstance"),oi=Function.prototype;ri in oi||W.f(oi,ri,{value:function(t){if("function"!=typeof this||!N(t))return!1;if(!N(this.prototype))return t instanceof this;for(;t=Sn(t);)if(this.prototype===t)return!0;return!1}});var si=Ut("iterator"),ai=!1;try{var ui=0,li={next:function(){return{done:!!ui++}},return:function(){ai=!0}};li[si]=function(){return this},Array.from(li,function(){throw 2})}catch(t){}var hi=function(t,e){if(!e&&!ai)return!1;var n=!1;try{var i={};i[si]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n},ci=function(t){var e,n,i,r,o=Ve(t),s="function"==typeof this?this:Array,a=arguments.length,u=a>1?arguments[1]:void 0,l=void 0!==u,h=0,c=mn(o);if(l&&(u=cn(u,a>2?arguments[2]:void 0,2)),null==c||s==Array&&ln(c))for(n=new s(e=_t(o.length));e>h;h++)_n(n,h,l?u(o[h],h):o[h]);else for(r=c.call(o),n=new s;!(i=r.next()).done;h++)_n(n,h,l?yn(r,u,[i.value,h],!0):i.value);return n.length=h,n},fi=!hi(function(t){Array.from(t)});Xt({target:"Array",stat:!0,forced:fi},{from:ci}),Xt({target:"Array",stat:!0},{isArray:te});var pi=P(function(){function t(){}return!(Array.of.call(t)instanceof t)});Xt({target:"Array",stat:!0,forced:pi},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)_n(n,t,arguments[t++]);return n.length=e,n}});var di=Ut("species"),vi=function(t,e){var n;return te(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!te(n.prototype)?N(n)&&null===(n=n[di])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},mi=Ut("species"),yi=function(t){return!P(function(){var e=[];return(e.constructor={})[mi]=function(){return{foo:1}},1!==e[t](Boolean).foo})},gi=Ut("isConcatSpreadable"),_i=!P(function(){var t=[];return t[gi]=!1,t.concat()[0]!==t}),Pi=yi("concat"),xi=function(t){if(!N(t))return!1;var e=t[gi];return void 0!==e?!!e:te(t)};Xt({target:"Array",proto:!0,forced:!_i||!Pi},{concat:function(t){var e,n,i,r,o,s=Ve(this),a=vi(s,0),u=0;for(e=-1,i=arguments.length;e<i;e++)if(o=-1===e?s:arguments[e],xi(o)){if(u+(r=_t(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,u++)n in o&&_n(a,u,o[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");_n(a,u++,o)}return a.length=u,a}});var bi=[].copyWithin||function(t,e){var n=Ve(this),i=_t(n.length),r=bt(t,i),o=bt(e,i),s=arguments.length>2?arguments[2]:void 0,a=Math.min((void 0===s?i:bt(s,i))-o,i-r),u=1;for(o<r&&r<o+a&&(u=-1,o+=a-1,r+=a-1);a-- >0;)o in n?n[r]=n[o]:delete n[r],r+=u,o+=u;return n},wi=Ut("unscopables"),Ei=Array.prototype;null==Ei[wi]&&Z(Ei,wi,ae(null));var Li=function(t){Ei[wi][t]=!0};Xt({target:"Array",proto:!0},{copyWithin:bi}),Li("copyWithin");var Ti=function(t,e){var n=1==t,i=2==t,r=3==t,o=4==t,s=6==t,a=5==t||s,u=e||vi;return function(e,l,h){for(var c,f,p=Ve(e),d=O(p),v=cn(l,h,3),m=_t(d.length),y=0,g=n?u(e,m):i?u(e,0):void 0;m>y;y++)if((a||y in d)&&(f=v(c=d[y],y,p),t))if(n)g[y]=f;else if(f)switch(t){case 3:return!0;case 5:return c;case 6:return y;case 2:g.push(c)}else if(o)return!1;return s?-1:r||o?o:g}},Si=function(t,e){var n=[][t];return!n||!P(function(){n.call(null,e||function(){throw 1},1)})},Ii=Ti(4),Ci=Si("every");Xt({target:"Array",proto:!0,forced:Ci},{every:function(t){return Ii(this,t,arguments[1])}});var Oi=function(t){for(var e=Ve(this),n=_t(e.length),i=arguments.length,r=bt(i>1?arguments[1]:void 0,n),o=i>2?arguments[2]:void 0,s=void 0===o?n:bt(o,n);s>r;)e[r++]=t;return e};Xt({target:"Array",proto:!0},{fill:Oi}),Li("fill");var Ai=Ti(2),Mi=yi("filter");Xt({target:"Array",proto:!0,forced:!Mi},{filter:function(t){return Ai(this,t,arguments[1])}});var Ni=Ti(5),Ri=!0;"find"in[]&&Array(1).find(function(){Ri=!1}),Xt({target:"Array",proto:!0,forced:Ri},{find:function(t){return Ni(this,t,arguments.length>1?arguments[1]:void 0)}}),Li("find");var ki=Ti(6),Bi=!0;"findIndex"in[]&&Array(1).findIndex(function(){Bi=!1}),Xt({target:"Array",proto:!0,forced:Bi},{findIndex:function(t){return ki(this,t,arguments.length>1?arguments[1]:void 0)}}),Li("findIndex");var Di=function(t,e,n,i,r,o,s,a){for(var u,l=r,h=0,c=!!s&&cn(s,a,3);h<i;){if(h in n){if(u=c?c(n[h],h,e):n[h],o>0&&te(u))l=Di(t,e,u,_t(u.length),l,o-1)-1;else{if(l>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[l]=u}l++}h++}return l},ji=Di;Xt({target:"Array",proto:!0},{flat:function(){var t=arguments[0],e=Ve(this),n=_t(e.length),i=vi(e,0);return i.length=ji(i,e,e,n,0,void 0===t?1:yt(t)),i}}),Xt({target:"Array",proto:!0},{flatMap:function(t){var e,n=Ve(this),i=_t(n.length);return hn(t),(e=vi(n,0)).length=ji(e,n,n,i,0,1,t,arguments[1]),e}});var zi=[].forEach,Yi=Ti(0),Xi=Si("forEach")?function(t){return Yi(this,t,arguments[1])}:zi;Xt({target:"Array",proto:!0,forced:[].forEach!=Xi},{forEach:Xi});var Fi=wt(!0);Xt({target:"Array",proto:!0},{includes:function(t){return Fi(this,t,arguments.length>1?arguments[1]:void 0)}}),Li("includes");var Wi=wt(!1),Zi=[].indexOf,Ui=!!Zi&&1/[1].indexOf(1,-0)<0,qi=Si("indexOf");Xt({target:"Array",proto:!0,forced:Ui||qi},{indexOf:function(t){return Ui?Zi.apply(this,arguments)||0:Wi(this,t,arguments[1])}});var Gi=[].join,Hi=O!=Object,Vi=Si("join",",");Xt({target:"Array",proto:!0,forced:Hi||Vi},{join:function(t){return Gi.call(M(this),void 0===t?",":t)}});var Ji=[].lastIndexOf,Ki=!!Ji&&1/[1].lastIndexOf(1,-0)<0,$i=Si("lastIndexOf"),Qi=Ki||$i?function(t){if(Ki)return Ji.apply(this,arguments)||0;var e=M(this),n=_t(e.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,yt(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}:Ji;Xt({target:"Array",proto:!0,forced:Qi!==[].lastIndexOf},{lastIndexOf:Qi});var tr=Ti(1),er=yi("map");Xt({target:"Array",proto:!0,forced:!er},{map:function(t){return tr(this,t,arguments[1])}});var nr=function(t,e,n,i,r){hn(e);var o=Ve(t),s=O(o),a=_t(o.length),u=r?a-1:0,l=r?-1:1;if(n<2)for(;;){if(u in s){i=s[u],u+=l;break}if(u+=l,r?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;r?u>=0:a>u;u+=l)u in s&&(i=e(i,s[u],u,o));return i},rr=Si("reduce");Xt({target:"Array",proto:!0,forced:rr},{reduce:function(t){return nr(this,t,arguments.length,arguments[1],!1)}});var or=Si("reduceRight");Xt({target:"Array",proto:!0,forced:or},{reduceRight:function(t){return nr(this,t,arguments.length,arguments[1],!0)}});var sr=[].reverse,ar=[1,2];Xt({target:"Array",proto:!0,forced:String(ar)===String(ar.reverse())},{reverse:function(){return te(this)&&(this.length=this.length),sr.call(this)}});var ur=Ut("species"),lr=[].slice,hr=Math.max,cr=yi("slice");Xt({target:"Array",proto:!0,forced:!cr},{slice:function(t,e){var n,i,r,o=M(this),s=_t(o.length),a=bt(t,s),u=bt(void 0===e?s:e,s);if(te(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!te(n.prototype)?N(n)&&null===(n=n[ur])&&(n=void 0):n=void 0,n===Array||void 0===n))return lr.call(o,a,u);for(i=new(void 0===n?Array:n)(hr(u-a,0)),r=0;a<u;a++,r++)a in o&&_n(i,r,o[a]);return i.length=r,i}});var fr=Ti(3),pr=Si("some");Xt({target:"Array",proto:!0,forced:pr},{some:function(t){return fr(this,t,arguments[1])}});var dr=[].sort,vr=[1,2,3],mr=P(function(){vr.sort(void 0)}),yr=P(function(){vr.sort(null)}),gr=Si("sort");Xt({target:"Array",proto:!0,forced:mr||!yr||gr},{sort:function(t){return void 0===t?dr.call(Ve(this)):dr.call(Ve(this),hn(t))}});var _r=Math.max,Pr=Math.min,xr=yi("splice");Xt({target:"Array",proto:!0,forced:!xr},{splice:function(t,e){var n,i,r,o,s,a,u=Ve(this),l=_t(u.length),h=bt(t,l),c=arguments.length;if(0===c?n=i=0:1===c?(n=0,i=l-h):(n=c-2,i=Pr(_r(yt(e),0),l-h)),l+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=vi(u,i),o=0;o<i;o++)(s=h+o)in u&&_n(r,o,u[s]);if(r.length=i,n<i){for(o=h;o<l-i;o++)a=o+n,(s=o+i)in u?u[a]=u[s]:delete u[a];for(o=l;o>l-i+n;o--)delete u[o-1]}else if(n>i)for(o=l-i;o>h;o--)a=o+n-1,(s=o+i-1)in u?u[a]=u[s]:delete u[a];for(o=0;o<n;o++)u[o+h]=arguments[o+2];return u.length=l-i+n,r}});var br=function(t){return"function"==typeof t?t:void 0},wr=function(t,e){return arguments.length<2?br(Jt[t])||br(y[t]):Jt[t]&&Jt[t][e]||y[t]&&y[t][e]},Er=Ut("species"),Lr=function(t){var e=wr(t),n=W.f;x&&e&&!e[Er]&&n(e,Er,{configurable:!0,get:function(){return this}})};Lr("Array"),Li("flat"),Li("flatMap");var Tr,Sr,Ir,Cr=Ut("iterator"),Or=!1;[].keys&&("next"in(Ir=[].keys())?(Sr=Sn(Sn(Ir)))!==Object.prototype&&(Tr=Sr):Or=!0),null==Tr&&(Tr={}),_(Tr,Cr)||Z(Tr,Cr,function(){return this});var Ar={IteratorPrototype:Tr,BUGGY_SAFARI_ITERATORS:Or},Mr=Ar.IteratorPrototype,Nr=function(){return this},Rr=function(t,e,n){var i=e+" Iterator";return t.prototype=ae(Mr,{next:T(1,n)}),Ht(t,i,!1),sn[i]=Nr,t},kr=Ut("iterator"),Br=Ar.IteratorPrototype,Dr=Ar.BUGGY_SAFARI_ITERATORS,jr=function(){return this},zr=function(t,e,n,i,r,o,s){Rr(n,e,i);var a,u,l,h=function(t){if(t===r&&v)return v;if(!Dr&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,p=t.prototype,d=p[kr]||p["@@iterator"]||r&&p[r],v=!Dr&&d||h(r),m="Array"==e&&p.entries||d;if(m&&(a=Sn(m.call(new t)),Br!==Object.prototype&&a.next&&(Sn(a)!==Br&&(Zn?Zn(a,Br):"function"!=typeof a[kr]&&Z(a,kr,jr)),Ht(a,c,!0))),"values"==r&&d&&"values"!==d.name&&(f=!0,v=function(){return d.call(this)}),p[kr]!==v&&Z(p,kr,v),sn[e]=v,r)if(u={values:h("values"),keys:o?v:h("keys"),entries:h("entries")},s)for(l in u)!Dr&&!f&&l in p||dt(p,l,u[l]);else Xt({target:e,proto:!0,forced:Dr||f},u);return u},Yr=pt.set,Xr=pt.getterFor("Array Iterator"),Fr=zr(Array,"Array",function(t,e){Yr(this,{type:"Array Iterator",target:M(t),index:0,kind:e})},function(){var t=Xr(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}},"values");sn.Arguments=sn.Array,Li("keys"),Li("values"),Li("entries");var Wr=String.fromCharCode,Zr=String.fromCodePoint,Ur=!!Zr&&1!=Zr.length;Xt({target:"String",stat:!0,forced:Ur},{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(e=+arguments[r++],bt(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?Wr(e):Wr(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}}),Xt({target:"String",stat:!0},{raw:function(t){for(var e=M(t.raw),n=_t(e.length),i=arguments.length,r=[],o=0;n>o;)r.push(String(e[o++])),o<i&&r.push(String(arguments[o]));return r.join("")}});var qr=function(t,e,n){var i,r,o=String(A(t)),s=yt(e),a=o.length;return s<0||s>=a?n?"":void 0:(i=o.charCodeAt(s))<55296||i>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?n?o.charAt(s):i:n?o.slice(s,s+2):r-56320+(i-55296<<10)+65536};Xt({target:"String",proto:!0},{codePointAt:function(t){return qr(this,t)}});var Gr=Ut("match"),Hr=function(t){var e;return N(t)&&(void 0!==(e=t[Gr])?!!e:"RegExp"==I(t))},Vr=function(t,e,n){if(Hr(e))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(A(t))},Jr=Ut("match"),Kr=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Jr]=!1,"/./"[t](e)}catch(t){}}return!1},$r="".endsWith,Qr=Math.min,to=Kr("endsWith");Xt({target:"String",proto:!0,forced:!to},{endsWith:function(t){var e=Vr(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=_t(e.length),r=void 0===n?i:Qr(_t(n),i),o=String(t);return $r?$r.call(e,o,r):e.slice(r-o.length,r)===o}});var eo=Kr("includes");Xt({target:"String",proto:!0,forced:!eo},{includes:function(t){return!!~Vr(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}});var no=function(t,e,n){return e+(n?qr(t,e,!0).length:1)},io=function(){var t=X(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ro=RegExp.prototype.exec,oo=String.prototype.replace,so=ro,ao=function(){var t=/a/,e=/b*/g;return ro.call(t,"a"),ro.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),uo=void 0!==/()??/.exec("")[1];(ao||uo)&&(so=function(t){var e,n,i,r,o=this;return uo&&(n=new RegExp("^"+o.source+"$(?!\\s)",io.call(o))),ao&&(e=o.lastIndex),i=ro.call(o,t),ao&&i&&(o.lastIndex=o.global?i.index+i[0].length:e),uo&&i&&i.length>1&&oo.call(i[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)}),i});var lo=so,ho=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==I(t))throw TypeError("RegExp#exec called on incompatible receiver");return lo.call(t,e)},co=Ut("species"),fo=!P(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),po=!P(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),vo=function(t,e,n,i){var r=Ut(t),o=!P(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)}),s=o&&!P(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[co]=function(){return n}),n[r](""),!e});if(!o||!s||"replace"===t&&!fo||"split"===t&&!po){var a=/./[r],u=n(r,""[t],function(t,e,n,i,r){return e.exec===lo?o&&!r?{done:!0,value:a.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),l=u[0],h=u[1];dt(String.prototype,t,l),dt(RegExp.prototype,r,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)}),i&&Z(RegExp.prototype[r],"sham",!0)}};vo("match",1,function(t,e,n){return[function(e){var n=A(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var r=X(t),o=String(this);if(!r.global)return ho(r,o);var s=r.unicode;r.lastIndex=0;for(var a,u=[],l=0;null!==(a=ho(r,o));){var h=String(a[0]);u[l]=h,""===h&&(r.lastIndex=no(o,_t(r.lastIndex),s)),l++}return 0===l?null:u}]});var mo="".repeat||function(t){var e=String(A(this)),n="",i=yt(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n},yo=function(t,e,n,i){var r,o,s=String(A(t)),a=s.length,u=void 0===n?" ":String(n),l=_t(e);return l<=a||""==u?s:(r=l-a,(o=mo.call(u,Math.ceil(r/u.length))).length>r&&(o=o.slice(0,r)),i?o+s:s+o)},go=y.navigator,_o=go&&go.userAgent||"",Po=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(_o);Xt({target:"String",proto:!0,forced:Po},{padEnd:function(t){return yo(this,t,arguments.length>1?arguments[1]:void 0,!1)}}),Xt({target:"String",proto:!0,forced:Po},{padStart:function(t){return yo(this,t,arguments.length>1?arguments[1]:void 0,!0)}}),Xt({target:"String",proto:!0},{repeat:mo});var xo=Math.max,bo=Math.min,wo=Math.floor,Eo=/\$([$&`']|\d\d?|<[^>]*>)/g,Lo=/\$([$&`']|\d\d?)/g;vo("replace",2,function(t,e,n){return[function(n,i){var r=A(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,r){var o=n(e,t,this,r);if(o.done)return o.value;var s=X(t),a=String(this),u="function"==typeof r;u||(r=String(r));var l=s.global;if(l){var h=s.unicode;s.lastIndex=0}for(var c=[];;){var f=ho(s,a);if(null===f)break;if(c.push(f),!l)break;""===String(f[0])&&(s.lastIndex=no(a,_t(s.lastIndex),h))}for(var p,d="",v=0,m=0;m<c.length;m++){f=c[m];for(var y=String(f[0]),g=xo(bo(yt(f.index),a.length),0),_=[],P=1;P<f.length;P++)_.push(void 0===(p=f[P])?p:String(p));var x=f.groups;if(u){var b=[y].concat(_,g,a);void 0!==x&&b.push(x);var w=String(r.apply(void 0,b))}else w=i(y,a,g,_,x,r);g>=v&&(d+=a.slice(v,g)+w,v=g+y.length)}return d+a.slice(v)}];function i(t,n,i,r,o,s){var a=i+t.length,u=r.length,l=Lo;return void 0!==o&&(o=Ve(o),l=Eo),e.call(s,l,function(e,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(a);case"<":l=o[s.slice(1,-1)];break;default:var h=+s;if(0===h)return e;if(h>u){var c=wo(h/10);return 0===c?e:c<=u?void 0===r[c-1]?s.charAt(1):r[c-1]+s.charAt(1):e}l=r[h-1]}return void 0===l?"":l})}}),vo("search",1,function(t,e,n){return[function(e){var n=A(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var r=X(t),o=String(this),s=r.lastIndex;Cn(s,0)||(r.lastIndex=0);var a=ho(r,o);return Cn(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]});var To=Ut("species"),So=function(t,e){var n,i=X(t).constructor;return void 0===i||null==(n=X(i)[To])?e:hn(n)},Io=[].push,Co=Math.min,Oo=!P(function(){return!RegExp(4294967295,"y")});vo("split",2,function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(A(this)),r=void 0===n?4294967295:n>>>0;if(0===r)return[];if(void 0===t)return[i];if(!Hr(t))return e.call(i,t,r);for(var o,s,a,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,c=new RegExp(t.source,l+"g");(o=lo.call(c,i))&&!((s=c.lastIndex)>h&&(u.push(i.slice(h,o.index)),o.length>1&&o.index<i.length&&Io.apply(u,o.slice(1)),a=o[0].length,h=s,u.length>=r));)c.lastIndex===o.index&&c.lastIndex++;return h===i.length?!a&&c.test("")||u.push(""):u.push(i.slice(h)),u.length>r?u.slice(0,r):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=A(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var o=n(i,t,this,r,i!==e);if(o.done)return o.value;var s=X(t),a=String(this),u=So(s,RegExp),l=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Oo?"y":"g"),c=new u(Oo?s:"^(?:"+s.source+")",h),f=void 0===r?4294967295:r>>>0;if(0===f)return[];if(0===a.length)return null===ho(c,a)?[a]:[];for(var p=0,d=0,v=[];d<a.length;){c.lastIndex=Oo?d:0;var m,y=ho(c,Oo?a:a.slice(d));if(null===y||(m=Co(_t(c.lastIndex+(Oo?0:d)),a.length))===p)d=no(a,d,l);else{if(v.push(a.slice(p,d)),v.length===f)return v;for(var g=1;g<=y.length-1;g++)if(v.push(y[g]),v.length===f)return v;d=p=m}}return v.push(a.slice(p)),v}]},!Oo);var Ao=Kr("startsWith"),Mo="".startsWith;Xt({target:"String",proto:!0,forced:!Ao},{startsWith:function(t){var e=Vr(this,t,"startsWith"),n=_t(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return Mo?Mo.call(e,i,n):e.slice(n,n+i.length)===i}});var No="\t\n\v\f\r \u2028\u2029\ufeff",Ro="["+No+"]",ko=RegExp("^"+Ro+Ro+"*"),Bo=RegExp(Ro+Ro+"*$"),Do=function(t,e){return t=String(A(t)),1&e&&(t=t.replace(ko,"")),2&e&&(t=t.replace(Bo,"")),t},jo=function(t){return P(function(){return!!No[t]()||"
"!="
"[t]()||No[t].name!==t})},zo=jo("trim");Xt({target:"String",proto:!0,forced:zo},{trim:function(){return Do(this,3)}});var Yo=jo("trimStart"),Xo=Yo?function(){return Do(this,1)}:"".trimStart;Xt({target:"String",proto:!0,forced:Yo},{trimStart:Xo,trimLeft:Xo});var Fo=jo("trimEnd"),Wo=Fo?function(){return Do(this,2)}:"".trimEnd;Xt({target:"String",proto:!0,forced:Fo},{trimEnd:Wo,trimRight:Wo});var Zo=pt.set,Uo=pt.getterFor("String Iterator");zr(String,"String",function(t){Zo(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=Uo(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=qr(n,i,!0),e.index+=t.length,{value:t,done:!1})});var qo=/"/g,Go=function(t,e,n,i){var r=String(A(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+String(i).replace(qo,""")+'"'),o+">"+r+"</"+e+">"},Ho=function(t){return P(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})},Vo=Ho("anchor");Xt({target:"String",proto:!0,forced:Vo},{anchor:function(t){return Go(this,"a","name",t)}});var Jo=Ho("big");Xt({target:"String",proto:!0,forced:Jo},{big:function(){return Go(this,"big","","")}});var Ko=Ho("blink");Xt({target:"String",proto:!0,forced:Ko},{blink:function(){return Go(this,"blink","","")}});var $o=Ho("bold");Xt({target:"String",proto:!0,forced:$o},{bold:function(){return Go(this,"b","","")}});var Qo=Ho("fixed");Xt({target:"String",proto:!0,forced:Qo},{fixed:function(){return Go(this,"tt","","")}});var ts=Ho("fontcolor");Xt({target:"String",proto:!0,forced:ts},{fontcolor:function(t){return Go(this,"font","color",t)}});var es=Ho("fontsize");Xt({target:"String",proto:!0,forced:es},{fontsize:function(t){return Go(this,"font","size",t)}});var ns=Ho("italics");Xt({target:"String",proto:!0,forced:ns},{italics:function(){return Go(this,"i","","")}});var is=Ho("link");Xt({target:"String",proto:!0,forced:is},{link:function(t){return Go(this,"a","href",t)}});var rs=Ho("small");Xt({target:"String",proto:!0,forced:rs},{small:function(){return Go(this,"small","","")}});var os=Ho("strike");Xt({target:"String",proto:!0,forced:os},{strike:function(){return Go(this,"strike","","")}});var ss=Ho("sub");Xt({target:"String",proto:!0,forced:ss},{sub:function(){return Go(this,"sub","","")}});var as=Ho("sup");Xt({target:"String",proto:!0,forced:as},{sup:function(){return Go(this,"sup","","")}});var us=function(t,e,n){var i,r=e.constructor;return r!==n&&"function"==typeof r&&(i=r.prototype)!==n.prototype&&N(i)&&Zn&&Zn(t,i),t},ls=Ut("match"),hs=W.f,cs=It.f,fs=y.RegExp,ps=fs.prototype,ds=/a/g,vs=/a/g,ms=new fs(ds)!==ds;if(zt("RegExp",x&&(!ms||P(function(){return vs[ls]=!1,fs(ds)!=ds||fs(vs)==vs||"/a/i"!=fs(ds,"i")})))){for(var ys=function(t,e){var n=this instanceof ys,i=Hr(t),r=void 0===e;return!n&&i&&t.constructor===ys&&r?t:us(ms?new fs(i&&!r?t.source:t,e):fs((i=t instanceof ys)?t.source:t,i&&r?io.call(t):e),n?this:ps,ys)},gs=function(t){t in ys||hs(ys,t,{configurable:!0,get:function(){return fs[t]},set:function(e){fs[t]=e}})},_s=cs(fs),Ps=0;Ps<_s.length;)gs(_s[Ps++]);ps.constructor=ys,ys.prototype=ps,dt(y,"RegExp",ys)}Lr("RegExp"),Xt({target:"RegExp",proto:!0,forced:/./.exec!==lo},{exec:lo}),x&&"g"!=/./g.flags&&W.f(RegExp.prototype,"flags",{configurable:!0,get:io});var xs=/./.toString,bs=P(function(){return"/a/b"!=xs.call({source:"a",flags:"b"})}),ws="toString"!=xs.name;(bs||ws)&&dt(RegExp.prototype,"toString",function(){var t=X(this);return"/".concat(t.source,"/","flags"in t?t.flags:!x&&t instanceof RegExp?io.call(t):void 0)},{unsafe:!0});var Es=y.parseInt,Ls=/^[-+]?0[xX]/,Ts=8!==Es(No+"08")||22!==Es(No+"0x16")?function(t,e){var n=Do(String(t),3);return Es(n,e>>>0||(Ls.test(n)?16:10))}:Es;Xt({global:!0,forced:parseInt!=Ts},{parseInt:Ts});var Ss=y.parseFloat,Is=1/Ss(No+"-0")!=-1/0?function(t){var e=Do(String(t),3),n=Ss(e);return 0===n&&"-"==e.charAt(0)?-0:n}:Ss;Xt({global:!0,forced:parseFloat!=Is},{parseFloat:Is});var Cs=It.f,Os=Y.f,As=W.f,Ms=y.Number,Ns=Ms.prototype,Rs="Number"==I(ae(Ns)),ks="trim"in String.prototype,Bs=function(t){var e,n,i,r,o,s,a,u,l=R(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=ks?l.trim():Do(l,3)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(s=(o=l.slice(2)).length,a=0;a<s;a++)if((u=o.charCodeAt(a))<48||u>r)return NaN;return parseInt(o,i)}return+l};if(zt("Number",!Ms(" 0o1")||!Ms("0b1")||Ms("+0x1"))){for(var Ds,js=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof js&&(Rs?P(function(){Ns.valueOf.call(n)}):"Number"!=I(n))?us(new Ms(Bs(e)),n,js):Bs(e)},zs=x?Cs(Ms):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ys=0;zs.length>Ys;Ys++)_(Ms,Ds=zs[Ys])&&!_(js,Ds)&&As(js,Ds,Os(Ms,Ds));js.prototype=Ns,Ns.constructor=js,dt(y,"Number",js)}Xt({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)});var Xs=y.isFinite,Fs=Number.isFinite||function(t){return"number"==typeof t&&Xs(t)};Xt({target:"Number",stat:!0},{isFinite:Fs});var Ws=Math.floor,Zs=function(t){return!N(t)&&isFinite(t)&&Ws(t)===t};Xt({target:"Number",stat:!0},{isInteger:Zs}),Xt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Us=Math.abs;Xt({target:"Number",stat:!0},{isSafeInteger:function(t){return Zs(t)&&Us(t)<=9007199254740991}}),Xt({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Xt({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991}),Xt({target:"Number",stat:!0,forced:Number.parseFloat!=Is},{parseFloat:Is}),Xt({target:"Number",stat:!0,forced:Number.parseInt!=Ts},{parseInt:Ts});var qs=function(t){if("number"!=typeof t&&"Number"!=I(t))throw TypeError("Incorrect invocation");return+t},Gs=1..toFixed,Hs=Math.floor,Vs=[0,0,0,0,0,0],Js=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*Vs[n],Vs[n]=i%1e7,i=Hs(i/1e7)},Ks=function(t){for(var e=6,n=0;--e>=0;)n+=Vs[e],Vs[e]=Hs(n/t),n=n%t*1e7},$s=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==Vs[t]){var n=String(Vs[t]);e=""===e?n:e+mo.call("0",7-n.length)+n}return e},Qs=function(t,e,n){return 0===e?n:e%2==1?Qs(t,e-1,n*t):Qs(t*t,e/2,n)};Xt({target:"Number",proto:!0,forced:Gs&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!P(function(){Gs.call({})})},{toFixed:function(t){var e,n,i,r,o=qs(this),s=yt(t),a="",u="0";if(s<0||s>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(a="-",o=-o),o>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(o*Qs(2,69,1))-69)<0?o*Qs(2,-e,1):o/Qs(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Js(0,n),i=s;i>=7;)Js(1e7,0),i-=7;for(Js(Qs(10,i,1),0),i=e-1;i>=23;)Ks(1<<23),i-=23;Ks(1<<i),Js(1,1),Ks(2),u=$s()}else Js(0,n),Js(1<<-e,0),u=$s()+mo.call("0",s);return u=s>0?a+((r=u.length)<=s?"0."+mo.call("0",s-r)+u:u.slice(0,r-s)+"."+u.slice(r-s)):a+u}});var ta=1..toPrecision;Xt({target:"Number",proto:!0,forced:P(function(){return"1"!==ta.call(1,void 0)})||!P(function(){ta.call({})})},{toPrecision:function(t){return void 0===t?ta.call(qs(this)):ta.call(qs(this),t)}});var ea=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)},na=Math.acosh,ia=Math.log,ra=Math.sqrt,oa=Math.LN2,sa=!na||710!=Math.floor(na(Number.MAX_VALUE))||na(1/0)!=1/0;Xt({target:"Math",stat:!0,forced:sa},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?ia(t)+oa:ea(t-1+ra(t-1)*ra(t+1))}});var aa=Math.asinh,ua=Math.log,la=Math.sqrt;Xt({target:"Math",stat:!0,forced:!(aa&&1/aa(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):ua(e+la(e*e+1)):e}});var ha=Math.atanh,ca=Math.log;Xt({target:"Math",stat:!0,forced:!(ha&&1/ha(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:ca((1+t)/(1-t))/2}});var fa=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1},pa=Math.abs,da=Math.pow;Xt({target:"Math",stat:!0},{cbrt:function(t){return fa(t=+t)*da(pa(t),1/3)}});var va=Math.floor,ma=Math.log,ya=Math.LOG2E;Xt({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-va(ma(t+.5)*ya):32}});var ga=Math.expm1,_a=!ga||ga(10)>22025.465794806718||ga(10)<22025.465794806718||-2e-17!=ga(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:ga,Pa=Math.cosh,xa=Math.abs,ba=Math.E;Xt({target:"Math",stat:!0,forced:!Pa||Pa(710)===1/0},{cosh:function(t){var e=_a(xa(t)-1)+1;return(e+1/(e*ba*ba))*(ba/2)}}),Xt({target:"Math",stat:!0,forced:_a!=Math.expm1},{expm1:_a});var wa=Math.pow,Ea=wa(2,-52),La=wa(2,-23),Ta=wa(2,127)*(2-La),Sa=wa(2,-126),Ia=Math.fround||function(t){var e,n,i=Math.abs(t),r=fa(t);return i<Sa?r*(i/Sa/La+1/Ea-1/Ea)*Sa*La:(n=(e=(1+La/Ea)*i)-(e-i))>Ta||n!=n?r*(1/0):r*n};Xt({target:"Math",stat:!0},{fround:Ia});var Ca=Math.abs,Oa=Math.sqrt;Xt({target:"Math",stat:!0},{hypot:function(t,e){for(var n,i,r=0,o=0,s=arguments.length,a=0;o<s;)a<(n=Ca(arguments[o++]))?(r=r*(i=a/n)*i+1,a=n):r+=n>0?(i=n/a)*i:n;return a===1/0?1/0:a*Oa(r)}});var Aa=Math.imul,Ma=P(function(){return-5!=Aa(4294967295,5)||2!=Aa.length});Xt({target:"Math",stat:!0,forced:Ma},{imul:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i;return 0|r*o+((65535&n>>>16)*o+r*(65535&i>>>16)<<16>>>0)}});var Na=Math.log,Ra=Math.LOG10E;Xt({target:"Math",stat:!0},{log10:function(t){return Na(t)*Ra}}),Xt({target:"Math",stat:!0},{log1p:ea});var ka=Math.log,Ba=Math.LN2;Xt({target:"Math",stat:!0},{log2:function(t){return ka(t)/Ba}}),Xt({target:"Math",stat:!0},{sign:fa});var Da=Math.abs,ja=Math.exp,za=Math.E,Ya=P(function(){return-2e-17!=Math.sinh(-2e-17)});Xt({target:"Math",stat:!0,forced:Ya},{sinh:function(t){return Da(t=+t)<1?(_a(t)-_a(-t))/2:(ja(t-1)-ja(-t-1))*(za/2)}});var Xa=Math.exp;Xt({target:"Math",stat:!0},{tanh:function(t){var e=_a(t=+t),n=_a(-t);return e==1/0?1:n==1/0?-1:(e-n)/(Xa(t)+Xa(-t))}}),Ht(Math,"Math",!0);var Fa=Math.ceil,Wa=Math.floor;Xt({target:"Math",stat:!0},{trunc:function(t){return(t>0?Wa:Fa)(t)}}),Xt({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Za=P(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})});Xt({target:"Date",proto:!0,forced:Za},{toJSON:function(t){var e=Ve(this),n=R(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}});var Ua=Date.prototype,qa=Ua.getTime,Ga=Ua.toISOString,Ha=function(t){return t>9?t:"0"+t},Va=P(function(){return"0385-07-25T07:06:39.999Z"!=Ga.call(new Date(-5e13-1))})||!P(function(){Ga.call(new Date(NaN))})?function(){if(!isFinite(qa.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+Ha(this.getUTCMonth()+1)+"-"+Ha(this.getUTCDate())+"T"+Ha(this.getUTCHours())+":"+Ha(this.getUTCMinutes())+":"+Ha(this.getUTCSeconds())+"."+(e>99?e:"0"+Ha(e))+"Z"}:Ga;Xt({target:"Date",proto:!0,forced:Date.prototype.toISOString!==Va},{toISOString:Va});var Ja=Date.prototype,Ka=Ja.toString,$a=Ja.getTime;new Date(NaN)+""!="Invalid Date"&&dt(Ja,"toString",function(){var t=$a.call(this);return t==t?Ka.call(this):"Invalid Date"});var Qa=Ut("toPrimitive"),tu=Date.prototype;Qa in tu||Z(tu,Qa,function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return R(X(this),"number"!==t)}),Ht(y.JSON,"JSON",!0);var eu,nu,iu,ru=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},ou=y.setImmediate,su=y.clearImmediate,au=y.process,uu=y.MessageChannel,lu=y.Dispatch,hu=0,cu={},fu=function(){var t=+this;if(cu.hasOwnProperty(t)){var e=cu[t];delete cu[t],e()}},pu=function(t){fu.call(t.data)};ou&&su||(ou=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return cu[++hu]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},eu(hu),hu},su=function(t){delete cu[t]},"process"==I(au)?eu=function(t){au.nextTick(cn(fu,t,1))}:lu&&lu.now?eu=function(t){lu.now(cn(fu,t,1))}:uu?(iu=(nu=new uu).port2,nu.port1.onmessage=pu,eu=cn(iu.postMessage,iu,1)):y.addEventListener&&"function"==typeof postMessage&&!y.importScripts?(eu=function(t){y.postMessage(t+"","*")},y.addEventListener("message",pu,!1)):eu="onreadystatechange"in D("script")?function(t){ie.appendChild(D("script")).onreadystatechange=function(){ie.removeChild(this),fu.call(t)}}:function(t){setTimeout(cn(fu,t,1),0)});var du,vu,mu,yu,gu,_u,Pu,xu={set:ou,clear:su},bu=Y.f,wu=xu.set,Eu=y.MutationObserver||y.WebKitMutationObserver,Lu=y.process,Tu=y.Promise,Su="process"==I(Lu),Iu=bu(y,"queueMicrotask"),Cu=Iu&&Iu.value;Cu||(du=function(){var t,e;for(Su&&(t=Lu.domain)&&t.exit();vu;){e=vu.fn,vu=vu.next;try{e()}catch(t){throw vu?yu():mu=void 0,t}}mu=void 0,t&&t.enter()},Su?yu=function(){Lu.nextTick(du)}:Eu&&!/(iPhone|iPod|iPad).*AppleWebKit/i.test(_o)?(gu=!0,_u=document.createTextNode(""),new Eu(du).observe(_u,{characterData:!0}),yu=function(){_u.data=gu=!gu}):Tu&&Tu.resolve?(Pu=Tu.resolve(void 0),yu=function(){Pu.then(du)}):yu=function(){wu.call(y,du)});var Ou,Au,Mu,Nu=Cu||function(t){var e={fn:t,next:void 0};mu&&(mu.next=e),vu||(vu=e,yu()),mu=e},Ru=function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=hn(e),this.reject=hn(n)},ku={f:function(t){return new Ru(t)}},Bu=function(t,e){if(X(t),N(e)&&e.constructor===t)return e;var n=ku.f(t);return(0,n.resolve)(e),n.promise},Du=function(t,e){var n=y.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))},ju=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},zu=function(t,e,n){for(var i in e)dt(t,i,e[i],n);return t},Yu="Promise",Xu=xu.set,Fu=Ut("species"),Wu=pt.get,Zu=pt.set,Uu=pt.getterFor(Yu),qu=y.Promise,Gu=y.TypeError,Hu=y.document,Vu=y.process,Ju=y.fetch,Ku=Vu&&Vu.versions,$u=Ku&&Ku.v8||"",Qu=ku.f,tl=Qu,el="process"==I(Vu),nl=!!(Hu&&Hu.createEvent&&y.dispatchEvent),il=zt(Yu,function(){var t=qu.resolve(1),e=function(){},n=(t.constructor={})[Fu]=function(t){t(e,e)};return!((el||"function"==typeof PromiseRejectionEvent)&&t.then(e)instanceof n&&0!==$u.indexOf("6.6")&&-1===_o.indexOf("Chrome/66"))}),rl=il||!hi(function(t){qu.all(t).catch(function(){})}),ol=function(t){var e;return!(!N(t)||"function"!=typeof(e=t.then))&&e},sl=function(t,e,n){if(!e.notified){e.notified=!0;var i=e.reactions;Nu(function(){for(var r=e.value,o=1==e.state,s=0,a=function(n){var i,s,a,u=o?n.ok:n.fail,l=n.resolve,h=n.reject,c=n.domain;try{u?(o||(2===e.rejection&&hl(t,e),e.rejection=1),!0===u?i=r:(c&&c.enter(),i=u(r),c&&(c.exit(),a=!0)),i===n.promise?h(Gu("Promise-chain cycle")):(s=ol(i))?s.call(i,l,h):l(i)):h(r)}catch(t){c&&!a&&c.exit(),h(t)}};i.length>s;)a(i[s++]);e.reactions=[],e.notified=!1,n&&!e.rejection&&ul(t,e)})}},al=function(t,e,n){var i,r;nl?((i=Hu.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),y.dispatchEvent(i)):i={promise:e,reason:n},(r=y["on"+t])?r(i):"unhandledrejection"===t&&Du("Unhandled promise rejection",n)},ul=function(t,e){Xu.call(y,function(){var n,i=e.value;if(ll(e)&&(n=ju(function(){el?Vu.emit("unhandledRejection",i,t):al("unhandledrejection",t,i)}),e.rejection=el||ll(e)?2:1,n.error))throw n.value})},ll=function(t){return 1!==t.rejection&&!t.parent},hl=function(t,e){Xu.call(y,function(){el?Vu.emit("rejectionHandled",t):al("rejectionhandled",t,e.value)})},cl=function(t,e,n,i){return function(r){t(e,n,r,i)}},fl=function(t,e,n,i){e.done||(e.done=!0,i&&(e=i),e.value=n,e.state=2,sl(t,e,!0))},pl=function(t,e,n,i){if(!e.done){e.done=!0,i&&(e=i);try{if(t===n)throw Gu("Promise can't be resolved itself");var r=ol(n);r?Nu(function(){var i={done:!1};try{r.call(n,cl(pl,t,i,e),cl(fl,t,i,e))}catch(n){fl(t,i,n,e)}}):(e.value=n,e.state=1,sl(t,e,!1))}catch(n){fl(t,{done:!1},n,e)}}};il&&(qu=function(t){ru(this,qu,Yu),hn(t),Ou.call(this);var e=Wu(this);try{t(cl(pl,this,e),cl(fl,this,e))}catch(t){fl(this,e,t)}},(Ou=function(t){Zu(this,{type:Yu,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zu(qu.prototype,{then:function(t,e){var n=Uu(this),i=Qu(So(this,qu));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=el?Vu.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&sl(this,n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),Au=function(){var t=new Ou,e=Wu(t);this.promise=t,this.resolve=cl(pl,t,e),this.reject=cl(fl,t,e)},ku.f=Qu=function(t){return t===qu||t===Mu?new Au(t):tl(t)},"function"==typeof Ju&&Xt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Bu(qu,Ju.apply(y,arguments))}})),Xt({global:!0,wrap:!0,forced:il},{Promise:qu}),Ht(qu,Yu,!1),Lr(Yu),Mu=Jt.Promise,Xt({target:Yu,stat:!0,forced:il},{reject:function(t){var e=Qu(this);return e.reject.call(void 0,t),e.promise}}),Xt({target:Yu,stat:!0,forced:il},{resolve:function(t){return Bu(this,t)}}),Xt({target:Yu,stat:!0,forced:rl},{all:function(t){var e=this,n=Qu(e),i=n.resolve,r=n.reject,o=ju(function(){var n=[],o=0,s=1;gn(t,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||i(n))},r)}),--s||i(n)});return o.error&&r(o.value),n.promise},race:function(t){var e=this,n=Qu(e),i=n.reject,r=ju(function(){gn(t,function(t){e.resolve(t).then(n.resolve,i)})});return r.error&&i(r.value),n.promise}}),Xt({target:"Promise",proto:!0,real:!0},{finally:function(t){var e=So(this,wr("Promise")),n="function"==typeof t;return this.then(n?function(n){return Bu(e,t()).then(function(){return n})}:t,n?function(n){return Bu(e,t()).then(function(){throw n})}:t)}});var dl=function(t,e,n,i,r){var o=y[t],s=o&&o.prototype,a=o,u=i?"set":"add",l={},h=function(t){var e=s[t];dt(s,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(r&&!N(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return r&&!N(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(r&&!N(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(zt(t,"function"!=typeof o||!(r||s.forEach&&!P(function(){(new o).entries().next()}))))a=n.getConstructor(e,t,i,u),en.REQUIRED=!0;else if(zt(t,!0)){var c=new a,f=c[u](r?{}:-0,1)!=c,p=P(function(){c.has(1)}),d=hi(function(t){new o(t)}),v=!r&&P(function(){for(var t=new o,e=5;e--;)t[u](e,e);return!t.has(-0)});d||((a=e(function(e,n){ru(e,a,t);var r=us(new o,e,a);return null!=n&&gn(n,r[u],r,i),r})).prototype=s,s.constructor=a),(p||v)&&(h("delete"),h("has"),i&&h("get")),(v||f)&&h(u),r&&s.clear&&delete s.clear}return l[t]=a,Xt({global:!0,forced:a!=o},l),Ht(a,t),r||n.setStrong(a,t,i),a},vl=W.f,ml=en.fastKey,yl=pt.set,gl=pt.getterFor,_l={getConstructor:function(t,e,n,i){var r=t(function(t,o){ru(t,r,e),yl(t,{type:e,index:ae(null),first:void 0,last:void 0,size:0}),x||(t.size=0),null!=o&&gn(o,t[i],t,n)}),o=gl(e),s=function(t,e,n){var i,r,s=o(t),u=a(t,e);return u?u.value=n:(s.last=u={index:r=ml(e,!0),key:e,value:n,previous:i=s.last,next:void 0,removed:!1},s.first||(s.first=u),i&&(i.next=u),x?s.size++:t.size++,"F"!==r&&(s.index[r]=u)),t},a=function(t,e){var n,i=o(t),r=ml(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==e)return n};return zu(r.prototype,{clear:function(){for(var t=o(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,x?t.size=0:this.size=0},delete:function(t){var e=o(this),n=a(this,t);if(n){var i=n.next,r=n.previous;delete e.index[n.index],n.removed=!0,r&&(r.next=i),i&&(i.previous=r),e.first==n&&(e.first=i),e.last==n&&(e.last=r),x?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=o(this),i=cn(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),zu(r.prototype,n?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),x&&vl(r.prototype,"size",{get:function(){return o(this).size}}),r},setStrong:function(t,e,n){var i=e+" Iterator",r=gl(e),o=gl(i);zr(t,e,function(t,e){yl(this,{type:i,target:t,state:r(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),Lr(e)}},Pl=dl("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_l,!0),xl=dl("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_l),bl=en.getWeakData,wl=pt.set,El=pt.getterFor,Ll=Ti(5),Tl=Ti(6),Sl=0,Il=function(t){return t.frozen||(t.frozen=new Cl)},Cl=function(){this.entries=[]},Ol=function(t,e){return Ll(t.entries,function(t){return t[0]===e})};Cl.prototype={get:function(t){var e=Ol(this,t);if(e)return e[1]},has:function(t){return!!Ol(this,t)},set:function(t,e){var n=Ol(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Tl(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}};var Al={getConstructor:function(t,e,n,i){var r=t(function(t,o){ru(t,r,e),wl(t,{type:e,id:Sl++,frozen:void 0}),null!=o&&gn(o,t[i],t,n)}),o=El(e),s=function(t,e,n){var i=o(t),r=bl(X(e),!0);return!0===r?Il(i).set(e,n):r[i.id]=n,t};return zu(r.prototype,{delete:function(t){var e=o(this);if(!N(t))return!1;var n=bl(t);return!0===n?Il(e).delete(t):n&&_(n,e.id)&&delete n[e.id]},has:function(t){var e=o(this);if(!N(t))return!1;var n=bl(t);return!0===n?Il(e).has(t):n&&_(n,e.id)}}),zu(r.prototype,n?{get:function(t){var e=o(this);if(N(t)){var n=bl(t);return!0===n?Il(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),r}},Ml=q(function(t){var e,n=pt.enforce,i=!y.ActiveXObject&&"ActiveXObject"in y,r=Object.isExtensible,o=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},s=t.exports=dl("WeakMap",o,Al,!0,!0);if(tt&&i){e=Al.getConstructor(o,"WeakMap",!0),en.REQUIRED=!0;var a=s.prototype,u=a.delete,l=a.has,h=a.get,c=a.set;zu(a,{delete:function(t){if(N(t)&&!r(t)){var i=n(this);return i.frozen||(i.frozen=new e),u.call(this,t)||i.frozen.delete(t)}return u.call(this,t)},has:function(t){if(N(t)&&!r(t)){var i=n(this);return i.frozen||(i.frozen=new e),l.call(this,t)||i.frozen.has(t)}return l.call(this,t)},get:function(t){if(N(t)&&!r(t)){var i=n(this);return i.frozen||(i.frozen=new e),l.call(this,t)?h.call(this,t):i.frozen.get(t)}return h.call(this,t)},set:function(t,i){if(N(t)&&!r(t)){var o=n(this);o.frozen||(o.frozen=new e),l.call(this,t)?c.call(this,t,i):o.frozen.set(t,i)}else c.call(this,t,i);return this}})}});dl("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},Al,!1,!0);var Nl,Rl=W.f,kl=Ut("toStringTag"),Bl=it("TYPED_ARRAY_TAG"),Dl=y.DataView,jl=Dl&&Dl.prototype,zl=y.Int8Array,Yl=zl&&zl.prototype,Xl=y.Uint8ClampedArray,Fl=Xl&&Xl.prototype,Wl=zl&&Sn(zl),Zl=Yl&&Sn(Yl),Ul=Object.prototype,ql=Ul.isPrototypeOf,Gl=!(!y.ArrayBuffer||!y.DataView),Hl=Gl&&!!Zn,Vl=!1,Jl={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Kl=function(t){return N(t)&&_(Jl,dn(t))};for(Nl in Jl)y[Nl]||(Hl=!1);if((!Hl||"function"!=typeof Wl||Wl===Function.prototype)&&(Wl=function(){throw TypeError("Incorrect invocation")},Hl))for(Nl in Jl)y[Nl]&&Zn(y[Nl],Wl);if((!Hl||!Zl||Zl===Ul)&&(Zl=Wl.prototype,Hl))for(Nl in Jl)y[Nl]&&Zn(y[Nl].prototype,Zl);if(Hl&&Sn(Fl)!==Zl&&Zn(Fl,Zl),x&&!_(Zl,kl))for(Nl in Vl=!0,Rl(Zl,kl,{get:function(){return N(this)?this[Bl]:void 0}}),Jl)y[Nl]&&Z(y[Nl],Bl,Nl);Gl&&Zn&&Sn(jl)!==Ul&&Zn(jl,Ul);var $l={NATIVE_ARRAY_BUFFER:Gl,NATIVE_ARRAY_BUFFER_VIEWS:Hl,TYPED_ARRAY_TAG:Vl&&Bl,aTypedArray:function(t){if(Kl(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Zn){if(ql.call(Wl,t))return t}else for(var e in Jl)if(_(Jl,Nl)){var n=y[e];if(n&&(t===n||ql.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportProto:function(t,e,n){if(x){if(n)for(var i in Jl){var r=y[i];r&&_(r.prototype,t)&&delete r.prototype[t]}Zl[t]&&!n||dt(Zl,t,n?e:Hl&&Yl[t]||e)}},exportStatic:function(t,e,n){var i,r;if(x){if(Zn){if(n)for(i in Jl)(r=y[i])&&_(r,t)&&delete r[t];if(Wl[t]&&!n)return;try{return dt(Wl,t,n?e:Hl&&zl[t]||e)}catch(t){}}for(i in Jl)!(r=y[i])||r[t]&&!n||dt(r,t,e)}},isView:function(t){var e=dn(t);return"DataView"===e||_(Jl,e)},isTypedArray:Kl,TypedArray:Wl,TypedArrayPrototype:Zl},Ql=function(t){if(void 0===t)return 0;var e=yt(t),n=_t(e);if(e!==n)throw RangeError("Wrong length or index");return n},th=q(function(t,e){var n=$l.NATIVE_ARRAY_BUFFER,i=It.f,r=W.f,o=pt.get,s=pt.set,a=y.ArrayBuffer,u=a,l=y.DataView,h=y.Math,c=y.RangeError,f=h.abs,p=h.pow,d=h.floor,v=h.log,m=h.LN2,g=function(t,e,n){var i,r,o,s=new Array(n),a=8*n-e-1,u=(1<<a)-1,l=u>>1,h=23===e?p(2,-24)-p(2,-77):0,c=t<0||0===t&&1/t<0?1:0,y=0;for((t=f(t))!=t||t===1/0?(r=t!=t?1:0,i=u):(i=d(v(t)/m),t*(o=p(2,-i))<1&&(i--,o*=2),(t+=i+l>=1?h/o:h*p(2,1-l))*o>=2&&(i++,o/=2),i+l>=u?(r=0,i=u):i+l>=1?(r=(t*o-1)*p(2,e),i+=l):(r=t*p(2,l-1)*p(2,e),i=0));e>=8;s[y++]=255&r,r/=256,e-=8);for(i=i<<e|r,a+=e;a>0;s[y++]=255&i,i/=256,a-=8);return s[--y]|=128*c,s},_=function(t,e){var n,i=t.length,r=8*i-e-1,o=(1<<r)-1,s=o>>1,a=r-7,u=i-1,l=t[u--],h=127&l;for(l>>=7;a>0;h=256*h+t[u],u--,a-=8);for(n=h&(1<<-a)-1,h>>=-a,a+=e;a>0;n=256*n+t[u],u--,a-=8);if(0===h)h=1-s;else{if(h===o)return n?NaN:l?-1/0:1/0;n+=p(2,e),h-=s}return(l?-1:1)*n*p(2,h-e)},b=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},w=function(t){return[255&t]},E=function(t){return[255&t,t>>8&255]},L=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},T=function(t){return g(t,23,4)},S=function(t){return g(t,52,8)},I=function(t,e){r(t.prototype,e,{get:function(){return o(this)[e]}})},C=function(t,e,n,i){var r=Ql(+n),s=o(t);if(r+e>s.byteLength)throw c("Wrong index");var a=o(s.buffer).bytes,u=r+s.byteOffset,l=a.slice(u,u+e);return i?l:l.reverse()},O=function(t,e,n,i,r,s){var a=Ql(+n),u=o(t);if(a+e>u.byteLength)throw c("Wrong index");for(var l=o(u.buffer).bytes,h=a+u.byteOffset,f=i(+r),p=0;p<e;p++)l[h+p]=f[s?p:e-p-1]};if(n){if(!P(function(){a(1)})||!P(function(){new a(-1)})||P(function(){return new a,new a(1.5),new a(NaN),"ArrayBuffer"!=a.name})){for(var A,M=(u=function(t){return ru(this,u),new a(Ql(t))}).prototype=a.prototype,N=i(a),R=0;N.length>R;)(A=N[R++])in u||Z(u,A,a[A]);M.constructor=u}var k=new l(new u(2)),B=l.prototype.setInt8;k.setInt8(0,2147483648),k.setInt8(1,2147483649),!k.getInt8(0)&&k.getInt8(1)||zu(l.prototype,{setInt8:function(t,e){B.call(this,t,e<<24>>24)},setUint8:function(t,e){B.call(this,t,e<<24>>24)}},{unsafe:!0})}else u=function(t){ru(this,u,"ArrayBuffer");var e=Ql(t);s(this,{bytes:Oi.call(new Array(e),0),byteLength:e}),x||(this.byteLength=e)},l=function(t,e,n){ru(this,l,"DataView"),ru(t,u,"DataView");var i=o(t).byteLength,r=yt(e);if(r<0||r>i)throw c("Wrong offset");if(r+(n=void 0===n?i-r:_t(n))>i)throw c("Wrong length");s(this,{buffer:t,byteLength:n,byteOffset:r}),x||(this.buffer=t,this.byteLength=n,this.byteOffset=r)},x&&(I(u,"byteLength"),I(l,"buffer"),I(l,"byteLength"),I(l,"byteOffset")),zu(l.prototype,{getInt8:function(t){return C(this,1,t)[0]<<24>>24},getUint8:function(t){return C(this,1,t)[0]},getInt16:function(t){var e=C(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=C(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return b(C(this,4,t,arguments[1]))},getUint32:function(t){return b(C(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return _(C(this,4,t,arguments[1]),23)},getFloat64:function(t){return _(C(this,8,t,arguments[1]),52)},setInt8:function(t,e){O(this,1,t,w,e)},setUint8:function(t,e){O(this,1,t,w,e)},setInt16:function(t,e){O(this,2,t,E,e,arguments[2])},setUint16:function(t,e){O(this,2,t,E,e,arguments[2])},setInt32:function(t,e){O(this,4,t,L,e,arguments[2])},setUint32:function(t,e){O(this,4,t,L,e,arguments[2])},setFloat32:function(t,e){O(this,4,t,T,e,arguments[2])},setFloat64:function(t,e){O(this,8,t,S,e,arguments[2])}});Ht(u,"ArrayBuffer"),Ht(l,"DataView"),e.ArrayBuffer=u,e.DataView=l}),eh=th.ArrayBuffer,nh=y.ArrayBuffer;Xt({global:!0,forced:nh!==eh},{ArrayBuffer:eh}),Lr("ArrayBuffer"),Xt({target:"ArrayBuffer",stat:!0,forced:!$l.NATIVE_ARRAY_BUFFER_VIEWS},{isView:$l.isView});var ih=th.ArrayBuffer,rh=th.DataView,oh=ih.prototype.slice,sh=P(function(){return!new ih(2).slice(1,void 0).byteLength});Xt({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:sh},{slice:function(t,e){if(void 0!==oh&&void 0===e)return oh.call(X(this),t);for(var n=X(this).byteLength,i=bt(t,n),r=bt(void 0===e?n:e,n),o=new(So(this,ih))(_t(r-i)),s=new rh(this),a=new rh(o),u=0;i<r;)a.setUint8(u++,s.getUint8(i++));return o}}),Xt({global:!0,forced:!$l.NATIVE_ARRAY_BUFFER},{DataView:th.DataView});var ah=$l.NATIVE_ARRAY_BUFFER_VIEWS,uh=y.ArrayBuffer,lh=y.Int8Array,hh=!ah||!P(function(){lh(1)})||!P(function(){new lh(-1)})||!hi(function(t){new lh,new lh(null),new lh(1.5),new lh(t)},!0)||P(function(){return 1!==new lh(new uh(2),1,void 0).length}),ch=function(t,e){var n=yt(t);if(n<0||n%e)throw RangeError("Wrong offset");return n},fh=$l.aTypedArrayConstructor,ph=function(t){var e,n,i,r,o,s=Ve(t),a=arguments.length,u=a>1?arguments[1]:void 0,l=void 0!==u,h=mn(s);if(null!=h&&!ln(h))for(o=h.call(s),s=[];!(r=o.next()).done;)s.push(r.value);for(l&&a>2&&(u=cn(u,arguments[2],2)),n=_t(s.length),i=new(fh(this))(n),e=0;n>e;e++)i[e]=l?u(s[e],e):s[e];return i},dh=q(function(t){if(x){var e=y,n=Xt,i=hh,r=$l,o=th,s=ru,a=T,u=Z,l=_t,h=Ql,c=ch,f=R,p=_,d=dn,v=N,m=ae,g=Zn,P=It.f,b=ph,w=Ti(0),E=Lr,L=W,S=Y,I=pt.get,C=pt.set,O=L.f,A=S.f,M=e.RangeError,k=o.ArrayBuffer,B=o.DataView,D=r.NATIVE_ARRAY_BUFFER_VIEWS,j=r.TYPED_ARRAY_TAG,z=r.TypedArray,X=r.TypedArrayPrototype,F=r.aTypedArrayConstructor,U=r.isTypedArray,q=function(t,e){for(var n=0,i=e.length,r=new(F(t))(i);i>n;)r[n]=e[n++];return r},G=function(t,e){O(t,e,{get:function(){return I(this)[e]}})},H=function(t){var e;return t instanceof k||"ArrayBuffer"==(e=d(t))||"SharedArrayBuffer"==e},V=function(t,e){return U(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},J=function(t,e){return V(t,e=f(e,!0))?a(2,t[e]):A(t,e)},K=function(t,e,n){return!(V(t,e=f(e,!0))&&v(n)&&p(n,"value"))||p(n,"get")||p(n,"set")||n.configurable||p(n,"writable")&&!n.writable||p(n,"enumerable")&&!n.enumerable?O(t,e,n):(t[e]=n.value,t)};D||(S.f=J,L.f=K,G(X,"buffer"),G(X,"byteOffset"),G(X,"byteLength"),G(X,"length")),n({target:"Object",stat:!0,forced:!D},{getOwnPropertyDescriptor:J,defineProperty:K}),t.exports=function(t,r,o,a){var f=t+(a?"Clamped":"")+"Array",p="get"+t,d="set"+t,y=e[f],_=y,x=_&&_.prototype,L={},T=function(t,e){O(t,e,{get:function(){return function(t,e){var n=I(t);return n.view[p](e*r+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var i=I(t);a&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),i.view[d](e*r+i.byteOffset,n,!0)}(this,e,t)},enumerable:!0})};D?i&&(_=o(function(t,e,n,i){return s(t,_,f),v(e)?H(e)?void 0!==i?new y(e,c(n,r),i):void 0!==n?new y(e,c(n,r)):new y(e):U(e)?q(_,e):b.call(_,e):new y(h(e))}),g&&g(_,z),w(P(y),function(t){t in _||u(_,t,y[t])}),_.prototype=x):(_=o(function(t,e,n,i){s(t,_,f);var o,a,u,p=0,d=0;if(v(e)){if(!H(e))return U(e)?q(_,e):b.call(_,e);o=e,d=c(n,r);var m=e.byteLength;if(void 0===i){if(m%r)throw M("Wrong length");if((a=m-d)<0)throw M("Wrong length")}else if((a=l(i)*r)+d>m)throw M("Wrong length");u=a/r}else u=h(e),o=new k(a=u*r);for(C(t,{buffer:o,byteOffset:d,byteLength:a,length:u,view:new B(o)});p<u;)T(t,p++)}),g&&g(_,z),x=_.prototype=m(X)),x.constructor!==_&&u(x,"constructor",_),j&&u(x,j,f),L[f]=_,n({global:!0,forced:_!=y,sham:!D},L),"BYTES_PER_ELEMENT"in _||u(_,"BYTES_PER_ELEMENT",r),"BYTES_PER_ELEMENT"in x||u(x,"BYTES_PER_ELEMENT",r),E(f)}}else t.exports=function(){}});dh("Int8",1,function(t){return function(e,n,i){return t(this,e,n,i)}}),dh("Uint8",1,function(t){return function(e,n,i){return t(this,e,n,i)}}),dh("Uint8",1,function(t){return function(e,n,i){return t(this,e,n,i)}},!0),dh("Int16",2,function(t){return function(e,n,i){return t(this,e,n,i)}}),dh("Uint16",2,function(t){return function(e,n,i){return t(this,e,n,i)}}),dh("Int32",4,function(t){return function(e,n,i){return t(this,e,n,i)}}),dh("Uint32",4,function(t){return function(e,n,i){return t(this,e,n,i)}}),dh("Float32",4,function(t){return function(e,n,i){return t(this,e,n,i)}}),dh("Float64",8,function(t){return function(e,n,i){return t(this,e,n,i)}}),$l.exportStatic("from",ph,hh);var vh=$l.aTypedArrayConstructor;$l.exportStatic("of",function(){for(var t=0,e=arguments.length,n=new(vh(this))(e);e>t;)n[t]=arguments[t++];return n},hh);var mh=$l.aTypedArray;$l.exportProto("copyWithin",function(t,e){return bi.call(mh(this),t,e,arguments.length>2?arguments[2]:void 0)});var yh=Ti(4),gh=$l.aTypedArray;$l.exportProto("every",function(t){return yh(gh(this),t,arguments.length>1?arguments[1]:void 0)});var _h=$l.aTypedArray;$l.exportProto("fill",function(t){return Oi.apply(_h(this),arguments)});var Ph=Ti(2),xh=$l.aTypedArray,bh=$l.aTypedArrayConstructor;$l.exportProto("filter",function(t){for(var e=Ph(xh(this),t,arguments.length>1?arguments[1]:void 0),n=So(this,this.constructor),i=0,r=e.length,o=new(bh(n))(r);r>i;)o[i]=e[i++];return o});var wh=Ti(5),Eh=$l.aTypedArray;$l.exportProto("find",function(t){return wh(Eh(this),t,arguments.length>1?arguments[1]:void 0)});var Lh=Ti(6),Th=$l.aTypedArray;$l.exportProto("findIndex",function(t){return Lh(Th(this),t,arguments.length>1?arguments[1]:void 0)});var Sh=Ti(0),Ih=$l.aTypedArray;$l.exportProto("forEach",function(t){Sh(Ih(this),t,arguments.length>1?arguments[1]:void 0)});var Ch=wt(!0),Oh=$l.aTypedArray;$l.exportProto("includes",function(t){return Ch(Oh(this),t,arguments.length>1?arguments[1]:void 0)});var Ah=wt(!1),Mh=$l.aTypedArray;$l.exportProto("indexOf",function(t){return Ah(Mh(this),t,arguments.length>1?arguments[1]:void 0)});var Nh=y.Uint8Array,Rh=Ut("iterator"),kh=Fr.values,Bh=Fr.keys,Dh=Fr.entries,jh=$l.aTypedArray,zh=$l.exportProto,Yh=Nh&&Nh.prototype[Rh],Xh=!!Yh&&("values"==Yh.name||null==Yh.name),Fh=function(){return kh.call(jh(this))};zh("entries",function(){return Dh.call(jh(this))}),zh("keys",function(){return Bh.call(jh(this))}),zh("values",Fh,!Xh),zh(Rh,Fh,!Xh);var Wh=$l.aTypedArray,Zh=[].join;$l.exportProto("join",function(t){return Zh.apply(Wh(this),arguments)});var Uh=$l.aTypedArray;$l.exportProto("lastIndexOf",function(t){return Qi.apply(Uh(this),arguments)});var qh=$l.aTypedArray,Gh=$l.aTypedArrayConstructor,Hh=Ti(1,function(t,e){return new(Gh(So(t,t.constructor)))(e)});$l.exportProto("map",function(t){return Hh(qh(this),t,arguments.length>1?arguments[1]:void 0)});var Vh=$l.aTypedArray,Jh=[].reduce;$l.exportProto("reduce",function(t){return Jh.apply(Vh(this),arguments)});var Kh=$l.aTypedArray,$h=[].reduceRight;$l.exportProto("reduceRight",function(t){return $h.apply(Kh(this),arguments)});var Qh=$l.aTypedArray;$l.exportProto("reverse",function(){for(var t,e=Qh(this).length,n=Math.floor(e/2),i=0;i<n;)t=this[i],this[i++]=this[--e],this[e]=t;return this});var tc=$l.aTypedArray,ec=P(function(){new Int8Array(1).set({})});$l.exportProto("set",function(t){tc(this);var e=ch(arguments[1],1),n=this.length,i=Ve(t),r=_t(i.length),o=0;if(r+e>n)throw RangeError("Wrong length");for(;o<r;)this[e+o]=i[o++]},ec);var nc=$l.aTypedArray,ic=$l.aTypedArrayConstructor,rc=[].slice,oc=P(function(){new Int8Array(1).slice()});$l.exportProto("slice",function(t,e){for(var n=rc.call(nc(this),t,e),i=So(this,this.constructor),r=0,o=n.length,s=new(ic(i))(o);o>r;)s[r]=n[r++];return s},oc);var sc=Ti(3),ac=$l.aTypedArray;$l.exportProto("some",function(t){return sc(ac(this),t,arguments.length>1?arguments[1]:void 0)});var uc=$l.aTypedArray,lc=[].sort;$l.exportProto("sort",function(t){return lc.call(uc(this),t)});var hc=$l.aTypedArray;$l.exportProto("subarray",function(t,e){var n=hc(this),i=n.length,r=bt(t,i);return new(So(n,n.constructor))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,_t((void 0===e?i:bt(e,i))-r))});var cc=y.Int8Array,fc=$l.aTypedArray,pc=[].toLocaleString,dc=[].slice,vc=!!cc&&P(function(){pc.call(new cc(1))}),mc=P(function(){return[1,2].toLocaleString()!=new cc([1,2]).toLocaleString()})||!P(function(){cc.prototype.toLocaleString.call([1,2])});$l.exportProto("toLocaleString",function(){return pc.apply(vc?dc.call(fc(this)):fc(this),arguments)},mc);var yc=y.Uint8Array,gc=yc&&yc.prototype,_c=[].toString,Pc=[].join;P(function(){_c.call({})})&&(_c=function(){return Pc.call(this)}),$l.exportProto("toString",_c,(gc||{}).toString!=_c);var xc=(y.Reflect||{}).apply,bc=Function.apply,wc=!P(function(){xc(function(){})});Xt({target:"Reflect",stat:!0,forced:wc},{apply:function(t,e,n){return hn(t),X(n),xc?xc(t,e,n):bc.call(t,e,n)}});var Ec=(y.Reflect||{}).construct,Lc=P(function(){function t(){}return!(Ec(function(){},[],t)instanceof t)}),Tc=!P(function(){Ec(function(){})}),Sc=Lc||Tc;Xt({target:"Reflect",stat:!0,forced:Sc,sham:Sc},{construct:function(t,e){hn(t),X(e);var n=arguments.length<3?t:hn(arguments[2]);if(Tc&&!Lc)return Ec(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(Qn.apply(t,i))}var r=n.prototype,o=ae(N(r)?r:Object.prototype),s=Function.apply.call(t,o,e);return N(s)?s:o}});var Ic=P(function(){Reflect.defineProperty(W.f({},1,{value:1}),1,{value:2})});Xt({target:"Reflect",stat:!0,forced:Ic,sham:!x},{defineProperty:function(t,e,n){X(t),e=R(e,!0),X(n);try{return W.f(t,e,n),!0}catch(t){return!1}}});var Cc=Y.f;Xt({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=Cc(X(t),e);return!(n&&!n.configurable)&&delete t[e]}}),Xt({target:"Reflect",stat:!0},{get:function t(e,n){var i,r,o=arguments.length<3?e:arguments[2];return X(e)===o?e[n]:(i=Y.f(e,n))?_(i,"value")?i.value:void 0===i.get?void 0:i.get.call(o):N(r=Sn(e))?t(r,n,o):void 0}}),Xt({target:"Reflect",stat:!0,sham:!x},{getOwnPropertyDescriptor:function(t,e){return Y.f(X(t),e)}}),Xt({target:"Reflect",stat:!0,sham:!En},{getPrototypeOf:function(t){return Sn(X(t))}}),Xt({target:"Reflect",stat:!0},{has:function(t,e){return e in t}});var Oc=Object.isExtensible;Xt({target:"Reflect",stat:!0},{isExtensible:function(t){return X(t),!Oc||Oc(t)}}),Xt({target:"Reflect",stat:!0},{ownKeys:At}),Xt({target:"Reflect",stat:!0,sham:!tn},{preventExtensions:function(t){X(t);try{var e=wr("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}}),Xt({target:"Reflect",stat:!0},{set:function t(e,n,i){var r,o,s=arguments.length<4?e:arguments[3],a=Y.f(X(e),n);if(!a){if(N(o=Sn(e)))return t(o,n,i,s);a=T(0)}if(_(a,"value")){if(!1===a.writable||!N(s))return!1;if(r=Y.f(s,n)){if(r.get||r.set||!1===r.writable)return!1;r.value=i,W.f(s,n,r)}else W.f(s,n,T(0,i));return!0}return void 0!==a.set&&(a.set.call(s,i),!0)}}),Zn&&Xt({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){Wn(t,e);try{return Zn(t,e),!0}catch(t){return!1}}});var Ac=K("metadata"),Mc=Ac.store||(Ac.store=new Ml),Nc=function(t,e,n){var i=Mc.get(t);if(!i){if(!n)return;Mc.set(t,i=new Pl)}var r=i.get(e);if(!r){if(!n)return;i.set(e,r=new Pl)}return r},Rc={store:Mc,getMap:Nc,has:function(t,e,n){var i=Nc(e,n,!1);return void 0!==i&&i.has(t)},get:function(t,e,n){var i=Nc(e,n,!1);return void 0===i?void 0:i.get(t)},set:function(t,e,n,i){Nc(n,i,!0).set(t,e)},keys:function(t,e){var n=Nc(t,e,!1),i=[];return n&&n.forEach(function(t,e){i.push(e)}),i},toKey:function(t){return void 0===t||"symbol"==typeof t?t:String(t)}},kc=Rc.toKey,Bc=Rc.set;Xt({target:"Reflect",stat:!0},{defineMetadata:function(t,e,n){var i=arguments.length<4?void 0:kc(arguments[3]);Bc(t,e,X(n),i)}});var Dc=Rc.toKey,jc=Rc.getMap,zc=Rc.store;Xt({target:"Reflect",stat:!0},{deleteMetadata:function(t,e){var n=arguments.length<3?void 0:Dc(arguments[2]),i=jc(X(e),n,!1);if(void 0===i||!i.delete(t))return!1;if(i.size)return!0;var r=zc.get(e);return r.delete(n),!!r.size||zc.delete(e)}});var Yc=Rc.has,Xc=Rc.get,Fc=Rc.toKey,Wc=function(t,e,n){if(Yc(t,e,n))return Xc(t,e,n);var i=Sn(e);return null!==i?Wc(t,i,n):void 0};Xt({target:"Reflect",stat:!0},{getMetadata:function(t,e){var n=arguments.length<3?void 0:Fc(arguments[2]);return Wc(t,X(e),n)}});var Zc=Rc.keys,Uc=Rc.toKey,qc=function(t,e){var n=Zc(t,e),i=Sn(t);if(null===i)return n;var r,o,s=qc(i,e);return s.length?n.length?(r=new xl(n.concat(s)),gn(r,(o=[]).push,o),o):s:n};Xt({target:"Reflect",stat:!0},{getMetadataKeys:function(t){var e=arguments.length<2?void 0:Uc(arguments[1]);return qc(X(t),e)}});var Gc=Rc.get,Hc=Rc.toKey;Xt({target:"Reflect",stat:!0},{getOwnMetadata:function(t,e){var n=arguments.length<3?void 0:Hc(arguments[2]);return Gc(t,X(e),n)}});var Vc=Rc.keys,Jc=Rc.toKey;Xt({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(t){var e=arguments.length<2?void 0:Jc(arguments[1]);return Vc(X(t),e)}});var Kc=Rc.has,$c=Rc.toKey,Qc=function(t,e,n){if(Kc(t,e,n))return!0;var i=Sn(e);return null!==i&&Qc(t,i,n)};Xt({target:"Reflect",stat:!0},{hasMetadata:function(t,e){var n=arguments.length<3?void 0:$c(arguments[2]);return Qc(t,X(e),n)}});var tf=Rc.has,ef=Rc.toKey;Xt({target:"Reflect",stat:!0},{hasOwnMetadata:function(t,e){var n=arguments.length<3?void 0:ef(arguments[2]);return tf(t,X(e),n)}});var nf=Rc.toKey,rf=Rc.set;Xt({target:"Reflect",stat:!0},{metadata:function(t,e){return function(n,i){rf(t,e,X(n),nf(i))}}});var of=function(t,e){var n=this;if(!(n instanceof of))return new of(t,e);Zn&&(n=Zn(new Error(e),Sn(n)));var i=[];return gn(t,i.push,i),n.errors=i,void 0!==e&&Z(n,"message",String(e)),n};of.prototype=ae(Error.prototype,{constructor:{value:of,configurable:!0,writable:!0},name:{value:"AggregateError",configurable:!0,writable:!0}}),Xt({global:!0},{AggregateError:of});Xt({target:"Promise",stat:!0},{any:function(t){var e=this,n=ku.f(e),i=n.resolve,r=n.reject,o=ju(function(){var n=[],o=0,s=1,a=!1;gn(t,function(t){var u=o++,l=!1;n.push(void 0),s++,e.resolve(t).then(function(t){l||a||(a=!0,i(t))},function(t){l||a||(l=!0,n[u]=t,--s||r(new(wr("AggregateError"))(n,"No one promise resolved")))})}),--s||r(new(wr("AggregateError"))(n,"No one promise resolved"))});return o.error&&r(o.value),n.promise}}),Xt({target:"Math",stat:!0},{iaddh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)+(i>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}}),Xt({target:"Math",stat:!0},{isubh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)-(i>>>0)-((~r&o|~(r^o)&r-o>>>0)>>>31)|0}}),Xt({target:"Math",stat:!0},{imulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,s=n>>16,a=i>>16,u=(s*o>>>0)+(r*o>>>16);return s*a+(u>>16)+((r*a>>>0)+(65535&u)>>16)}}),Xt({target:"Math",stat:!0},{umulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,s=n>>>16,a=i>>>16,u=(s*o>>>0)+(r*o>>>16);return s*a+(u>>>16)+((r*a>>>0)+(65535&u)>>>16)}}),Xt({target:"String",proto:!0},{at:function(t){return qr(this,t,!0)}});var sf=Ut("iterator"),af=!P(function(){var t=new URL("b?e=1","http://a"),e=t.searchParams;return t.pathname="c%20d",!e.sort||"http://a/c%20d?e=1"!==t.href||"1"!==e.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[sf]||"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}),uf=/[^\0-\u007E]/,lf=/[\u002E\u3002\uFF0E\uFF61]/g,hf="Overflow: input needs wider integers to process",cf=Math.floor,ff=String.fromCharCode,pf=function(t){return t+22+75*(t<26)},df=function(t,e,n){var i=0;for(t=n?cf(t/700):t>>1,t+=cf(t/e);t>455;i+=36)t=cf(t/35);return cf(i+36*t/(t+38))},vf=function(t){var e,n,i=[],r=(t=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&r)<<10)+(1023&o)+65536):(e.push(r),n--)}else e.push(r)}return e}(t)).length,o=128,s=0,a=72;for(e=0;e<t.length;e++)(n=t[e])<128&&i.push(ff(n));var u=i.length,l=u;for(u&&i.push("-");l<r;){var h=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=o&&n<h&&(h=n);var c=l+1;if(h-o>cf((2147483647-s)/c))throw RangeError(hf);for(s+=(h-o)*c,o=h,e=0;e<t.length;e++){if((n=t[e])<o&&++s>2147483647)throw RangeError(hf);if(n==o){for(var f=s,p=36;;p+=36){var d=p<=a?1:p>=a+26?26:p-a;if(f<d)break;var v=f-d,m=36-d;i.push(ff(pf(d+v%m))),f=cf(v/m)}i.push(ff(pf(f))),a=df(s,c,l==u),s=0,++l}}++s,++o}return i.join("")},mf=function(t){var e=mn(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return X(e.call(t))},yf=Ut("iterator"),gf=pt.set,_f=pt.getterFor("URLSearchParams"),Pf=pt.getterFor("URLSearchParamsIterator"),xf=/\+/g,bf=Array(4),wf=function(t){return bf[t-1]||(bf[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},Ef=function(t){try{return decodeURIComponent(t)}catch(e){return t}},Lf=function(t){for(var e=t.replace(xf," "),n=4;n;)e=e.replace(wf(n--),Ef);return e},Tf=/[!'()~]|%20/g,Sf={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},If=function(t){return Sf[t]},Cf=function(t){return encodeURIComponent(t).replace(Tf,If)},Of=function(t,e){if(e)for(var n,i,r=e.split("&"),o=0;o<r.length;)(n=r[o++]).length&&(i=n.split("="),t.push({key:Lf(i.shift()),value:Lf(i.join("="))}));return t},Af=function(t){this.entries.length=0,Of(this.entries,t)},Mf=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Nf=Rr(function(t,e){gf(this,{type:"URLSearchParamsIterator",iterator:mf(_f(t).entries),kind:e})},"Iterator",function(){var t=Pf(this),e=t.kind,n=t.iterator.next(),i=n.value;return n.done||(n.value="keys"===e?i.key:"values"===e?i.value:[i.key,i.value]),n}),Rf=function(){ru(this,Rf,"URLSearchParams");var t,e,n,i,r,o,s,a=arguments.length>0?arguments[0]:void 0,u=[];if(gf(this,{type:"URLSearchParams",entries:u,updateURL:null,updateSearchParams:Af}),void 0!==a)if(N(a))if("function"==typeof(t=mn(a)))for(e=t.call(a);!(n=e.next()).done;){if((r=(i=mf(X(n.value))).next()).done||(o=i.next()).done||!i.next().done)throw TypeError("Expected sequence with length 2");u.push({key:r.value+"",value:o.value+""})}else for(s in a)_(a,s)&&u.push({key:s,value:a[s]+""});else Of(u,"string"==typeof a?"?"===a.charAt(0)?a.slice(1):a:a+"")},kf=Rf.prototype;zu(kf,{append:function(t,e){Mf(arguments.length,2);var n=_f(this);n.entries.push({key:t+"",value:e+""}),n.updateURL&&n.updateURL()},delete:function(t){Mf(arguments.length,1);for(var e=_f(this),n=e.entries,i=t+"",r=0;r<n.length;)n[r].key===i?n.splice(r,1):r++;e.updateURL&&e.updateURL()},get:function(t){Mf(arguments.length,1);for(var e=_f(this).entries,n=t+"",i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){Mf(arguments.length,1);for(var e=_f(this).entries,n=t+"",i=[],r=0;r<e.length;r++)e[r].key===n&&i.push(e[r].value);return i},has:function(t){Mf(arguments.length,1);for(var e=_f(this).entries,n=t+"",i=0;i<e.length;)if(e[i++].key===n)return!0;return!1},set:function(t,e){Mf(arguments.length,1);for(var n,i=_f(this),r=i.entries,o=!1,s=t+"",a=e+"",u=0;u<r.length;u++)(n=r[u]).key===s&&(o?r.splice(u--,1):(o=!0,n.value=a));o||r.push({key:s,value:a}),i.updateURL&&i.updateURL()},sort:function(){var t,e,n,i=_f(this),r=i.entries,o=r.slice();for(r.length=0,e=0;e<o.length;e++){for(t=o[e],n=0;n<e;n++)if(r[n].key>t.key){r.splice(n,0,t);break}n===e&&r.push(t)}i.updateURL&&i.updateURL()},forEach:function(t){for(var e,n=_f(this).entries,i=cn(t,arguments.length>1?arguments[1]:void 0,3),r=0;r<n.length;)i((e=n[r++]).value,e.key,this)},keys:function(){return new Nf(this,"keys")},values:function(){return new Nf(this,"values")},entries:function(){return new Nf(this,"entries")}},{enumerable:!0}),dt(kf,yf,kf.entries),dt(kf,"toString",function(){for(var t,e=_f(this).entries,n=[],i=0;i<e.length;)t=e[i++],n.push(Cf(t.key)+"="+Cf(t.value));return n.join("&")},{enumerable:!0}),Ht(Rf,"URLSearchParams"),Xt({global:!0,forced:!af},{URLSearchParams:Rf});var Bf,Df={URLSearchParams:Rf,getState:_f},jf=y.URL,zf=Df.URLSearchParams,Yf=Df.getState,Xf=pt.set,Ff=pt.getterFor("URL"),Wf=Math.pow,Zf=/[a-zA-Z]/,Uf=/[a-zA-Z0-9+\-.]/,qf=/\d/,Gf=/^(0x|0X)/,Hf=/^[0-7]+$/,Vf=/^\d+$/,Jf=/^[0-9A-Fa-f]+$/,Kf=/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/,$f=/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/,Qf=/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,tp=/\u0009|\u000A|\u000D/g,ep=function(t,e){var n,i,r;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=ip(e.slice(1,-1))))return"Invalid host";t.host=n}else if(cp(t)){if(e=function(t){var e,n,i=[],r=t.toLowerCase().replace(lf,".").split(".");for(e=0;e<r.length;e++)n=r[e],i.push(uf.test(n)?"xn--"+vf(n):n);return i.join(".")}(e),Kf.test(e))return"Invalid host";if(null===(n=np(e)))return"Invalid host";t.host=n}else{if($f.test(e))return"Invalid host";for(n="",i=ci(e),r=0;r<i.length;r++)n+=lp(i[r],op);t.host=n}},np=function(t){var e,n,i,r,o,s,a,u=t.split(".");if(""==u[u.length-1]&&u.length&&u.pop(),(e=u.length)>4)return t;for(n=[],i=0;i<e;i++){if(""==(r=u[i]))return t;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=Gf.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)s=0;else{if(!(10==o?Vf:8==o?Hf:Jf).test(r))return t;s=parseInt(r,o)}n.push(s)}for(i=0;i<e;i++)if(s=n[i],i==e-1){if(s>=Wf(256,5-e))return null}else if(s>255)return null;for(a=n.pop(),i=0;i<n.length;i++)a+=n[i]*Wf(256,3-i);return a},ip=function(t){var e,n,i,r,o,s,a,u=[0,0,0,0,0,0,0,0],l=0,h=null,c=0,f=function(){return t.charAt(c)};if(":"==f()){if(":"!=t.charAt(1))return;c+=2,h=++l}for(;f();){if(8==l)return;if(":"!=f()){for(e=n=0;n<4&&Jf.test(f());)e=16*e+parseInt(f(),16),c++,n++;if("."==f()){if(0==n)return;if(c-=n,l>6)return;for(i=0;f();){if(r=null,i>0){if(!("."==f()&&i<4))return;c++}if(!qf.test(f()))return;for(;qf.test(f());){if(o=parseInt(f(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;c++}u[l]=256*u[l]+r,2!=++i&&4!=i||l++}if(4!=i)return;break}if(":"==f()){if(c++,!f())return}else if(f())return;u[l++]=e}else{if(null!==h)return;c++,h=++l}}if(null!==h)for(s=l-h,l=7;0!=l&&s>0;)a=u[l],u[l--]=u[h+s-1],u[h+--s]=a;else if(8!=l)return;return u},rp=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=Math.floor(t/256);return e.join(".")}if("object"==typeof t){for(e="",i=function(t){for(var e=null,n=1,i=null,r=0,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(e=i,n=r),e}(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},op={},sp=Ke({},op,{" ":1,'"':1,"<":1,">":1,"`":1}),ap=Ke({},sp,{"#":1,"?":1,"{":1,"}":1}),up=Ke({},ap,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lp=function(t,e){var n=qr(t,0);return n>32&&n<127&&!_(e,t)?t:encodeURIComponent(t)},hp={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},cp=function(t){return _(hp,t.scheme)},fp=function(t){return""!=t.username||""!=t.password},pp=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},dp=function(t,e){var n;return 2==t.length&&Zf.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},vp=function(t){var e;return t.length>1&&dp(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},mp=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&dp(e[0],!0)||e.pop()},yp=function(t){return"."===t||"%2e"===t.toLowerCase()},gp={},_p={},Pp={},xp={},bp={},wp={},Ep={},Lp={},Tp={},Sp={},Ip={},Cp={},Op={},Ap={},Mp={},Np={},Rp={},kp={},Bp={},Dp={},jp={},zp=function(t,e,n,i){var r,o,s,a,u,l=n||gp,h=0,c="",f=!1,p=!1,d=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(Qf,"")),e=e.replace(tp,""),r=ci(e);h<=r.length;){switch(o=r[h],l){case gp:if(!o||!Zf.test(o)){if(n)return"Invalid scheme";l=Pp;continue}c+=o.toLowerCase(),l=_p;break;case _p:if(o&&(Uf.test(o)||"+"==o||"-"==o||"."==o))c+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";c="",l=Pp,h=0;continue}if(n&&(cp(t)!=_(hp,c)||"file"==c&&(fp(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=c,n)return void(cp(t)&&hp[t.scheme]==t.port&&(t.port=null));c="","file"==t.scheme?l=Ap:cp(t)&&i&&i.scheme==t.scheme?l=xp:cp(t)?l=Lp:"/"==r[h+1]?(l=bp,h++):(t.cannotBeABaseURL=!0,t.path.push(""),l=Bp)}break;case Pp:if(!i||i.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==o){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,l=jp;break}l="file"==i.scheme?Ap:wp;continue;case xp:if("/"!=o||"/"!=r[h+1]){l=wp;continue}l=Tp,h++;break;case bp:if("/"==o){l=Sp;break}l=kp;continue;case wp:if(t.scheme=i.scheme,o==Bf)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==o||"\\"==o&&cp(t))l=Ep;else if("?"==o)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",l=Dp;else{if("#"!=o){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),l=kp;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",l=jp}break;case Ep:if(!cp(t)||"/"!=o&&"\\"!=o){if("/"!=o){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,l=kp;continue}l=Sp}else l=Tp;break;case Lp:if(l=Tp,"/"!=o||"/"!=c.charAt(h+1))continue;h++;break;case Tp:if("/"!=o&&"\\"!=o){l=Sp;continue}break;case Sp:if("@"==o){f&&(c="%40"+c),f=!0,s=ci(c);for(var v=0;v<s.length;v++){var m=s[v];if(":"!=m||d){var y=lp(m,up);d?t.password+=y:t.username+=y}else d=!0}c=""}else if(o==Bf||"/"==o||"?"==o||"#"==o||"\\"==o&&cp(t)){if(f&&""==c)return"Invalid authority";h-=ci(c).length+1,c="",l=Ip}else c+=o;break;case Ip:case Cp:if(n&&"file"==t.scheme){l=Np;continue}if(":"!=o||p){if(o==Bf||"/"==o||"?"==o||"#"==o||"\\"==o&&cp(t)){if(cp(t)&&""==c)return"Invalid host";if(n&&""==c&&(fp(t)||null!==t.port))return;if(a=ep(t,c))return a;if(c="",l=Rp,n)return;continue}"["==o?p=!0:"]"==o&&(p=!1),c+=o}else{if(""==c)return"Invalid host";if(a=ep(t,c))return a;if(c="",l=Op,n==Cp)return}break;case Op:if(!qf.test(o)){if(o==Bf||"/"==o||"?"==o||"#"==o||"\\"==o&&cp(t)||n){if(""!=c){var g=parseInt(c,10);if(g>65535)return"Invalid port";t.port=cp(t)&&g===hp[t.scheme]?null:g,c=""}if(n)return;l=Rp;continue}return"Invalid port"}c+=o;break;case Ap:if(t.scheme="file","/"==o||"\\"==o)l=Mp;else{if(!i||"file"!=i.scheme){l=kp;continue}if(o==Bf)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==o)t.host=i.host,t.path=i.path.slice(),t.query="",l=Dp;else{if("#"!=o){vp(r.slice(h).join(""))||(t.host=i.host,t.path=i.path.slice(),mp(t)),l=kp;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",l=jp}}break;case Mp:if("/"==o||"\\"==o){l=Np;break}i&&"file"==i.scheme&&!vp(r.slice(h).join(""))&&(dp(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),l=kp;continue;case Np:if(o==Bf||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&dp(c))l=kp;else if(""==c){if(t.host="",n)return;l=Rp}else{if(a=ep(t,c))return a;if("localhost"==t.host&&(t.host=""),n)return;c="",l=Rp}continue}c+=o;break;case Rp:if(cp(t)){if(l=kp,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=Bf&&(l=kp,"/"!=o))continue}else t.fragment="",l=jp;else t.query="",l=Dp;break;case kp:if(o==Bf||"/"==o||"\\"==o&&cp(t)||!n&&("?"==o||"#"==o)){if(".."===(u=(u=c).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(mp(t),"/"==o||"\\"==o&&cp(t)||t.path.push("")):yp(c)?"/"==o||"\\"==o&&cp(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&dp(c)&&(t.host&&(t.host=""),c=c.charAt(0)+":"),t.path.push(c)),c="","file"==t.scheme&&(o==Bf||"?"==o||"#"==o))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==o?(t.query="",l=Dp):"#"==o&&(t.fragment="",l=jp)}else c+=lp(o,ap);break;case Bp:"?"==o?(t.query="",l=Dp):"#"==o?(t.fragment="",l=jp):o!=Bf&&(t.path[0]+=lp(o,op));break;case Dp:n||"#"!=o?o!=Bf&&("'"==o&&cp(t)?t.query+="%27":t.query+="#"==o?"%23":lp(o,op)):(t.fragment="",l=jp);break;case jp:o!=Bf&&(t.fragment+=lp(o,sp))}h++}},Yp=function(t){var e,n,i=ru(this,Yp,"URL"),r=arguments.length>1?arguments[1]:void 0,o=String(t),s=Xf(i,{type:"URL"});if(void 0!==r)if(r instanceof Yp)e=Ff(r);else if(n=zp(e={},String(r)))throw TypeError(n);if(n=zp(s,o,null,e))throw TypeError(n);var a=s.searchParams=new zf,u=Yf(a);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(a)||null},x||(i.href=Fp.call(i),i.origin=Wp.call(i),i.protocol=Zp.call(i),i.username=Up.call(i),i.password=qp.call(i),i.host=Gp.call(i),i.hostname=Hp.call(i),i.port=Vp.call(i),i.pathname=Jp.call(i),i.search=Kp.call(i),i.searchParams=$p.call(i),i.hash=Qp.call(i))},Xp=Yp.prototype,Fp=function(){var t=Ff(this),e=t.scheme,n=t.username,i=t.password,r=t.host,o=t.port,s=t.path,a=t.query,u=t.fragment,l=e+":";return null!==r?(l+="//",fp(t)&&(l+=n+(i?":"+i:"")+"@"),l+=rp(r),null!==o&&(l+=":"+o)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(l+="?"+a),null!==u&&(l+="#"+u),l},Wp=function(){var t=Ff(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&cp(t)?e+"://"+rp(t.host)+(null!==n?":"+n:""):"null"},Zp=function(){return Ff(this).scheme+":"},Up=function(){return Ff(this).username},qp=function(){return Ff(this).password},Gp=function(){var t=Ff(this),e=t.host,n=t.port;return null===e?"":null===n?rp(e):rp(e)+":"+n},Hp=function(){var t=Ff(this).host;return null===t?"":rp(t)},Vp=function(){var t=Ff(this).port;return null===t?"":String(t)},Jp=function(){var t=Ff(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Kp=function(){var t=Ff(this).query;return t?"?"+t:""},$p=function(){return Ff(this).searchParams},Qp=function(){var t=Ff(this).fragment;return t?"#"+t:""},td=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(x&&ee(Xp,{href:td(Fp,function(t){var e=Ff(this),n=String(t),i=zp(e,n);if(i)throw TypeError(i);Yf(e.searchParams).updateSearchParams(e.query)}),origin:td(Wp),protocol:td(Zp,function(t){var e=Ff(this);zp(e,String(t)+":",gp)}),username:td(Up,function(t){var e=Ff(this),n=ci(String(t));if(!pp(e)){e.username="";for(var i=0;i<n.length;i++)e.username+=lp(n[i],up)}}),password:td(qp,function(t){var e=Ff(this),n=ci(String(t));if(!pp(e)){e.password="";for(var i=0;i<n.length;i++)e.password+=lp(n[i],up)}}),host:td(Gp,function(t){var e=Ff(this);e.cannotBeABaseURL||zp(e,String(t),Ip)}),hostname:td(Hp,function(t){var e=Ff(this);e.cannotBeABaseURL||zp(e,String(t),Cp)}),port:td(Vp,function(t){var e=Ff(this);pp(e)||(""==(t=String(t))?e.port=null:zp(e,t,Op))}),pathname:td(Jp,function(t){var e=Ff(this);e.cannotBeABaseURL||(e.path=[],zp(e,t+"",Rp))}),search:td(Kp,function(t){var e=Ff(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",zp(e,t,Dp)),Yf(e.searchParams).updateSearchParams(e.query)}),searchParams:td($p),hash:td(Qp,function(t){var e=Ff(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",zp(e,t,jp)):e.fragment=null})}),dt(Xp,"toJSON",function(){return Fp.call(this)},{enumerable:!0}),dt(Xp,"toString",function(){return Fp.call(this)},{enumerable:!0}),jf){var ed=jf.createObjectURL,nd=jf.revokeObjectURL;ed&&dt(Yp,"createObjectURL",function(t){return ed.apply(jf,arguments)}),nd&&dt(Yp,"revokeObjectURL",function(t){return nd.apply(jf,arguments)})}Ht(Yp,"URL"),Xt({global:!0,forced:!af,sham:!x},{URL:Yp}),Xt({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}});var id=W.f;!x||"lastIndex"in[]||(id(Array.prototype,"lastIndex",{configurable:!0,get:function(){var t=Ve(this),e=_t(t.length);return 0==e?0:e-1}}),Li("lastIndex"));var rd=W.f;!x||"lastItem"in[]||(rd(Array.prototype,"lastItem",{configurable:!0,get:function(){var t=Ve(this),e=_t(t.length);return 0==e?void 0:t[e-1]},set:function(t){var e=Ve(this),n=_t(e.length);return e[0==n?0:n-1]=t}}),Li("lastItem")),Xt({target:"Map",stat:!0,forced:!1},{groupBy:function(t,e){var n=new this;hn(e);var i=hn(n.has),r=hn(n.get),o=hn(n.set);return gn(t,function(t){var s=e(t);i.call(n,s)?r.call(n,s).push(t):o.call(n,s,[t])}),n}}),Xt({target:"Map",stat:!0,forced:!1},{keyBy:function(t,e){var n=new this;hn(e);var i=hn(n.set);return gn(t,function(t){i.call(n,e(t),t)}),n}});var od=function(){for(var t=X(this),e=hn(t.delete),n=!0,i=0,r=arguments.length;i<r;i++)n=n&&e.call(t,arguments[i]);return!!n};Xt({target:"Map",proto:!0,real:!0,forced:!1},{deleteAll:function(){return od.apply(this,arguments)}});var sd=function(t){return Map.prototype.entries.call(t)};Xt({target:"Map",proto:!0,real:!0,forced:!1},{every:function(t){for(var e,n,i=X(this),r=sd(i),o=cn(t,arguments.length>1?arguments[1]:void 0,3);!(e=r.next()).done;)if(!o((n=e.value)[1],n[0],i))return!1;return!0}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{filter:function(t){for(var e,n,i,r,o=X(this),s=sd(o),a=cn(t,arguments.length>1?arguments[1]:void 0,3),u=new(So(o,wr("Map"))),l=hn(u.set);!(e=s.next()).done;)a(r=(n=e.value)[1],i=n[0],o)&&l.call(u,i,r);return u}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{find:function(t){for(var e,n,i,r=X(this),o=sd(r),s=cn(t,arguments.length>1?arguments[1]:void 0,3);!(e=o.next()).done;)if(s(i=(n=e.value)[1],n[0],r))return i}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{findKey:function(t){for(var e,n,i,r=X(this),o=sd(r),s=cn(t,arguments.length>1?arguments[1]:void 0,3);!(e=o.next()).done;)if(s((n=e.value)[1],i=n[0],r))return i}});Xt({target:"Map",proto:!0,real:!0,forced:!1},{includes:function(t){for(var e,n,i,r=X(this),o=sd(r);!(e=o.next()).done;)if((n=e.value[1])===(i=t)||n!=n&&i!=i)return!0;return!1}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{keyOf:function(t){for(var e,n,i=X(this),r=sd(i);!(e=r.next()).done;)if((n=e.value)[1]===t)return n[0]}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{mapKeys:function(t){for(var e,n,i,r=X(this),o=sd(r),s=cn(t,arguments.length>1?arguments[1]:void 0,3),a=new(So(r,wr("Map"))),u=hn(a.set);!(e=o.next()).done;)n=e.value,u.call(a,s(i=n[1],n[0],r),i);return a}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{mapValues:function(t){for(var e,n,i,r=X(this),o=sd(r),s=cn(t,arguments.length>1?arguments[1]:void 0,3),a=new(So(r,wr("Map"))),u=hn(a.set);!(e=o.next()).done;)n=e.value,u.call(a,i=n[0],s(n[1],i,r));return a}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{merge:function(t){for(var e=X(this),n=hn(e.set),i=0;i<arguments.length;)gn(arguments[i++],n,e,!0);return e}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{reduce:function(t){var e,n,i,r=X(this),o=sd(r);if(hn(t),arguments.length>1)e=arguments[1];else{if((n=o.next()).done)throw TypeError("Reduce of empty map with no initial value");e=n.value[1]}for(;!(n=o.next()).done;)e=t(e,(i=n.value)[1],i[0],r);return e}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{some:function(t){for(var e,n,i=X(this),r=sd(i),o=cn(t,arguments.length>1?arguments[1]:void 0,3);!(e=r.next()).done;)if(o((n=e.value)[1],n[0],i))return!0;return!1}}),Xt({target:"Map",proto:!0,real:!0,forced:!1},{update:function(t,e){var n=X(this);hn(e);var i=n.has(t);if(!i&&arguments.length<3)throw TypeError("Updating absent value");var r=i?n.get(t):hn(arguments[2])(t,n);return n.set(t,e(r,t,n)),n}});var ad=function(){for(var t=X(this),e=hn(t.add),n=0,i=arguments.length;n<i;n++)e.call(t,arguments[n]);return t};Xt({target:"Set",proto:!0,real:!0,forced:!1},{addAll:function(){return ad.apply(this,arguments)}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{deleteAll:function(){return od.apply(this,arguments)}});var ud=function(t){return Set.prototype.values.call(t)};Xt({target:"Set",proto:!0,real:!0,forced:!1},{every:function(t){for(var e,n,i=X(this),r=ud(i),o=cn(t,arguments.length>1?arguments[1]:void 0,3);!(e=r.next()).done;)if(!o(n=e.value,n,i))return!1;return!0}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{filter:function(t){for(var e,n,i=X(this),r=ud(i),o=cn(t,arguments.length>1?arguments[1]:void 0,3),s=new(So(i,wr("Set"))),a=hn(s.add);!(e=r.next()).done;)o(n=e.value,n,i)&&a.call(s,n);return s}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{find:function(t){for(var e,n,i=X(this),r=ud(i),o=cn(t,arguments.length>1?arguments[1]:void 0,3);!(e=r.next()).done;)if(o(n=e.value,n,i))return n}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{join:function(t){for(var e,n=X(this),i=ud(n),r=void 0===t?",":String(t),o=[];!(e=i.next()).done;)o.push(e.value);return o.join(r)}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{map:function(t){for(var e,n,i=X(this),r=ud(i),o=cn(t,arguments.length>1?arguments[1]:void 0,3),s=new(So(i,wr("Set"))),a=hn(s.add);!(e=r.next()).done;)a.call(s,o(n=e.value,n,i));return s}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{reduce:function(t){var e,n,i,r=X(this),o=ud(r);if(hn(t),arguments.length>1)e=arguments[1];else{if((n=o.next()).done)throw TypeError("Reduce of empty set with no initial value");e=n.value}for(;!(n=o.next()).done;)e=t(e,i=n.value,i,r);return e}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{some:function(t){for(var e,n,i=X(this),r=ud(i),o=cn(t,arguments.length>1?arguments[1]:void 0,3);!(e=r.next()).done;)if(o(n=e.value,n,i))return!0;return!1}}),Xt({target:"WeakMap",proto:!0,real:!0,forced:!1},{deleteAll:function(){return od.apply(this,arguments)}}),Xt({target:"WeakSet",proto:!0,real:!0,forced:!1},{addAll:function(){return ad.apply(this,arguments)}}),Xt({target:"WeakSet",proto:!0,real:!0,forced:!1},{deleteAll:function(){return od.apply(this,arguments)}});var ld=function(t){var e,n,i,r,o=arguments[1];return hn(this),(e=void 0!==o)&&hn(o),null==t?new this:(n=[],e?(i=0,r=cn(o,arguments[2],2),gn(t,function(t){n.push(r(t,i++))})):gn(t,n.push,n),new this(n))};Xt({target:"Map",stat:!0},{from:ld});var hd=function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)};Xt({target:"Map",stat:!0},{of:hd}),Xt({target:"Set",stat:!0},{from:ld}),Xt({target:"Set",stat:!0},{of:hd}),Xt({target:"WeakMap",stat:!0},{from:ld}),Xt({target:"WeakMap",stat:!0},{of:hd}),Xt({target:"WeakSet",stat:!0},{from:ld}),Xt({target:"WeakSet",stat:!0},{of:hd});var cd=Math.min,fd=Math.max;Xt({target:"Math",stat:!0},{clamp:function(t,e,n){return cd(n,fd(e,t))}}),Xt({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180});var pd=180/Math.PI;Xt({target:"Math",stat:!0},{degrees:function(t){return t*pd}});var dd=Math.scale||function(t,e,n,i,r){return 0===arguments.length||t!=t||e!=e||n!=n||i!=i||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-i)/(n-e)+i};Xt({target:"Math",stat:!0},{fscale:function(t,e,n,i,r){return Ia(dd(t,e,n,i,r))}}),Xt({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI});var vd=Math.PI/180;Xt({target:"Math",stat:!0},{radians:function(t){return t*vd}}),Xt({target:"Math",stat:!0},{scale:dd}),Xt({target:"Math",stat:!0},{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}});var md=/^[0-9a-z]+$/;Xt({target:"Number",stat:!0},{fromString:function(t,e){var n,i,r=1;if("string"!=typeof t)throw TypeError("Invalid number representation");if(!t.length)throw SyntaxError("Invalid number representation");if("-"==t.charAt(0)&&(r=-1,!(t=t.slice(1)).length))throw SyntaxError("Invalid number representation");if((n=void 0===e?10:yt(e))<2||n>36)throw RangeError("Invalid radix");if(!md.test(t)||(i=Ts(t,n)).toString(n)!==t)throw SyntaxError("Invalid number representation");return r*i}});var yd=W.f,gd=pt.get,_d=pt.set,Pd=Ut("observable"),xd=gn.BREAK,bd=function(t){return null==t?void 0:hn(t)},wd=function(t){var e=t.cleanup;if(e){t.cleanup=void 0;try{e()}catch(t){Du(t)}}},Ed=function(t){return void 0===t.observer},Ld=function(t,e){if(!x){t.closed=!0;var n=e.subscriptionObserver;n&&(n.closed=!0)}e.observer=void 0},Td=function(t,e){var n,i=_d(this,{cleanup:void 0,observer:X(t),subscriptionObserver:void 0});x||(this.closed=!1);try{(n=bd(t.start))&&n.call(t,this)}catch(t){Du(t)}if(!Ed(i)){var r=i.subscriptionObserver=new Sd(this);try{var o=e(r),s=o;null!=o&&(i.cleanup="function"==typeof o.unsubscribe?function(){s.unsubscribe()}:hn(o))}catch(t){return void r.error(t)}Ed(i)&&wd(i)}};Td.prototype=zu({},{unsubscribe:function(){var t=gd(this);Ed(t)||(Ld(this,t),wd(t))}}),x&&yd(Td.prototype,"closed",{configurable:!0,get:function(){return Ed(gd(this))}});var Sd=function(t){_d(this,{subscription:t}),x||(this.closed=!1)};Sd.prototype=zu({},{next:function(t){var e=gd(gd(this).subscription);if(!Ed(e)){var n=e.observer;try{var i=bd(n.next);i&&i.call(n,t)}catch(t){Du(t)}}},error:function(t){var e=gd(this).subscription,n=gd(e);if(!Ed(n)){var i=n.observer;Ld(e,n);try{var r=bd(i.error);r?r.call(i,t):Du(t)}catch(t){Du(t)}wd(n)}},complete:function(){var t=gd(this).subscription,e=gd(t);if(!Ed(e)){var n=e.observer;Ld(t,e);try{var i=bd(n.complete);i&&i.call(n)}catch(t){Du(t)}wd(e)}}}),x&&yd(Sd.prototype,"closed",{configurable:!0,get:function(){return Ed(gd(gd(this).subscription))}});var Id=function(t){ru(this,Id,"Observable"),_d(this,{subscriber:hn(t)})};zu(Id.prototype,{subscribe:function(t){var e=arguments.length;return new Td("function"==typeof t?{next:t,error:e>1?arguments[1]:void 0,complete:e>2?arguments[2]:void 0}:N(t)?t:{},gd(this).subscriber)}}),zu(Id,{from:function(t){var e="function"==typeof this?this:Id,n=bd(X(t)[Pd]);if(n){var i=X(n.call(t));return i.constructor===e?i:new e(function(t){return i.subscribe(t)})}var r=mf(t);return new e(function(t){gn(r,function(e){if(t.next(e),t.closed)return xd},void 0,!1,!0),t.complete()})},of:function(){for(var t=0,e=arguments.length,n=new Array(e);t<e;)n[t]=arguments[t++];return new("function"==typeof this?this:Id)(function(t){for(var e=0;e<n.length;++e)if(t.next(n[e]),t.closed)return;t.complete()})}}),Z(Id.prototype,Pd,function(){return this}),Xt({global:!0},{Observable:Id}),Lr("Observable"),$t("observable"),$t("patternMatch"),Xt({target:"Promise",stat:!0},{try:function(t){var e=ku.f(this),n=ju(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var Cd=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=ae(null)};Cd.prototype.get=function(t,e){return this[t]||(this[t]=e())},Cd.prototype.next=function(t,e,n){var i=n?this.objectsByIndex[t]||(this.objectsByIndex[t]=new Ml):this.primitives||(this.primitives=new Pl),r=i.get(e);return r||i.set(e,r=new Cd),r};var Od=new Cd,Ad=function(){var t,e,n=Od,i=arguments.length;for(t=0;t<i;t++)N(e=arguments[t])&&(n=n.next(t,e,!0));if(this===Object&&n===Od)throw TypeError("Composite keys must contain a non-primitive component");for(t=0;t<i;t++)N(e=arguments[t])||(n=n.next(t,e,!1));return n},Md=function(){var t=wr("Object","freeze");return t?t(ae(null)):ae(null)};Xt({global:!0},{compositeKey:function(){return Ad.apply(Object,arguments).get("object",Md)}}),Xt({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?wr("Symbol").for(arguments[0]):Ad.apply(null,arguments).get("symbol",wr("Symbol"))}});var Nd=pt.set,Rd=pt.getterFor("Seeded Random Generator"),kd=Rr(function(t){Nd(this,{type:"Seeded Random Generator",seed:t%2147483647})},"Seeded Random",function(){var t=Rd(this);return{value:(1073741823&(t.seed=(1103515245*t.seed+12345)%2147483647))/1073741823,done:!1}});Xt({target:"Math",stat:!0,forced:!0},{seededPRNG:function(t){var e=X(t).seed;if(!Fs(e))throw TypeError('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new kd(e)}});var Bd=pt.set,Dd=pt.getterFor("String Iterator"),jd=Rr(function(t){Bd(this,{type:"String Iterator",string:t,index:0})},"String",function(){var t,e=Dd(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=qr(n,i,!0),e.index+=t.length,{value:{codePoint:qr(t,0),position:i},done:!1})});Xt({target:"String",proto:!0},{codePoints:function(){return new jd(String(A(this)))}}),Xt({target:"String",proto:!0},{replaceAll:function(t,e){var n,i,r=A(this);return Hr(t)?(n=~(i=io.call(t)).indexOf("g")?t:new(So(t,RegExp))(t.source,i+"g"),String(r).replace(n,e)):String(r).split(t).join(e)}}),$t("dispose"),Xt({target:"Set",proto:!0,real:!0,forced:!1},{difference:function(t){var e=X(this),n=new(So(e,wr("Set")))(e),i=hn(n.delete);return gn(t,function(t){i.call(n,t)}),n}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{intersection:function(t){var e=X(this),n=new(So(e,wr("Set"))),i=hn(e.has),r=hn(n.add);return gn(t,function(t){i.call(e,t)&&r.call(n,t)}),n}});var zd=gn.BREAK;Xt({target:"Set",proto:!0,real:!0,forced:!1},{isDisjointFrom:function(t){var e=X(this),n=hn(e.has);return gn(t,function(t){if(!0===n.call(e,t))return zd})!==zd}});var Yd=gn.BREAK;Xt({target:"Set",proto:!0,real:!0,forced:!1},{isSubsetOf:function(t){var e=mf(this),n=X(t),i=n.has;return"function"!=typeof i&&(n=new(wr("Set"))(t),i=hn(n.has)),gn(e,function(t){if(!1===i.call(n,t))return Yd},void 0,!1,!0)!==Yd}});var Xd=gn.BREAK;Xt({target:"Set",proto:!0,real:!0,forced:!1},{isSupersetOf:function(t){var e=X(this),n=hn(e.has);return gn(t,function(t){if(!1===n.call(e,t))return Xd})!==Xd}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{union:function(t){var e=X(this),n=new(So(e,wr("Set")))(e);return gn(t,hn(n.add),n),n}}),Xt({target:"Set",proto:!0,real:!0,forced:!1},{symmetricDifference:function(t){var e=X(this),n=new(So(e,wr("Set")))(e),i=hn(n.delete),r=hn(n.add);return gn(t,function(t){i.call(n,t)||r.call(n,t)}),n}}),Xt({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=ku.f(e),i=n.resolve,r=n.reject,o=ju(function(){var n=[],r=0,o=1;gn(t,function(t){var s=r++,a=!1;n.push(void 0),o++,e.resolve(t).then(function(t){a||(a=!0,n[s]={status:"fulfilled",value:t},--o||i(n))},function(t){a||(a=!0,n[s]={status:"rejected",reason:t},--o||i(n))})}),--o||i(n)});return o.error&&r(o.value),n.promise}}),Xt({global:!0},{globalThis:y});var Fd=Ut("matchAll"),Wd=pt.set,Zd=pt.getterFor("RegExp String Iterator"),Ud=RegExp.prototype,qd=Ud.exec,Gd=Rr(function(t,e,n,i){Wd(this,{type:"RegExp String Iterator",regexp:t,string:e,global:n,unicode:i,done:!1})},"RegExp String",function(){var t=Zd(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,n=t.string,i=function(t,e){var n,i=t.exec;if("function"==typeof i){if("object"!=typeof(n=i.call(t,e)))throw TypeError("Incorrect exec result");return n}return qd.call(t,e)}(e,n);return null===i?{value:void 0,done:t.done=!0}:t.global?(""==String(i[0])&&(e.lastIndex=no(n,_t(e.lastIndex),t.unicode)),{value:i,done:!1}):(t.done=!0,{value:i,done:!1})}),Hd=function(t){var e,n,i,r,o,s=X(this),a=String(t);return e=So(s,RegExp),n="flags"in Ud?String(s.flags):io.call(s),i=new e(e===RegExp?s.source:s,n),r=!!~n.indexOf("g"),o=!!~n.indexOf("u"),i.lastIndex=_t(s.lastIndex),new Gd(i,a,r,o)};Xt({target:"String",proto:!0},{matchAll:function(t){var e,n,i=A(this);return null!=t&&null!=(n=t[Fd])?hn(n).call(t,i):(e=String(i),new RegExp(t,"g")[Fd](e))}}),Fd in Ud||Z(Ud,Fd,Hd);var Vd={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var Jd in Vd){var Kd=y[Jd],$d=Kd&&Kd.prototype;if($d&&$d.forEach!==Xi)try{Z($d,"forEach",Xi)}catch(t){$d.forEach=Xi}}var Qd=Ut("iterator"),tv=Ut("toStringTag"),ev=Fr.values;for(var nv in Vd){var iv=y[nv],rv=iv&&iv.prototype;if(rv){if(rv[Qd]!==ev)try{Z(rv,Qd,ev)}catch(t){rv[Qd]=ev}if(rv[tv]||Z(rv,tv,nv),Vd[nv])for(var ov in Fr)if(rv[ov]!==Fr[ov])try{Z(rv,ov,Fr[ov])}catch(t){rv[ov]=Fr[ov]}}}var sv=!y.setImmediate||!y.clearImmediate;Xt({global:!0,bind:!0,enumerable:!0,forced:sv},{setImmediate:xu.set,clearImmediate:xu.clear});var av=y.process,uv="process"==I(av);Xt({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=uv&&av.domain;Nu(e?e.bind(t):t)}});var lv=[].slice,hv=/MSIE .\./.test(_o),cv=function(t){return function(e,n){var i=arguments.length>2,r=!!i&&lv.call(arguments,2);return t(i?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,n)}};Xt({global:!0,bind:!0,forced:hv},{setTimeout:cv(y.setTimeout),setInterval:cv(y.setInterval)});q(function(t){var e=function(t){var e,n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),a=new O(i||[]);return r(s,"_invoke",{value:T(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var f="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function _(){}var P={};l(P,s,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(A([])));b&&b!==n&&i.call(b,s)&&(P=b);var w=_.prototype=y.prototype=Object.create(P);function E(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function L(t,e){var n;r(this,"_invoke",{value:function(r,o){function s(){return new e(function(n,s){!function n(r,o,s,a){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,s,a)},function(t){n("throw",t,s,a)}):e.resolve(h).then(function(t){l.value=t,s(l)},function(t){return n("throw",t,s,a)})}a(u.arg)}(r,o,n,s)})}return n=n?n.then(s,s):s()}})}function T(t,e,n){var i=f;return function(r,o){if(i===d)throw new Error("Generator is already running");if(i===v){if("throw"===r)throw o;return M()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===m)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=c(t,e,n);if("normal"===u.type){if(i=n.done?v:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=v,n.method="throw",n.arg=u.arg)}}}function S(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)?m:("return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m);var o=c(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function A(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:M}}function M(){return{value:e,done:!0}}return g.prototype=_,r(w,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:g,configurable:!0}),g.displayName=l(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(L.prototype),l(L.prototype,a,function(){return this}),t.AsyncIterator=L,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new L(h(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then(function(t){return t.done?t.value:s.next()})},E(w),l(w,u,"Generator"),l(w,s,function(){return this}),l(w,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=A,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var u=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(u&&l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:A(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}});var fv=q(function(t,e){!function(t){var e=Object.freeze;function n(t){var e,n,i,r;for(n=1,i=arguments.length;n<i;n++)for(e in r=arguments[n])t[e]=r[e];return t}Object.freeze=function(t){return t};var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function r(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var o=0;function s(t){return t._leaflet_id=t._leaflet_id||++o,t._leaflet_id}function a(t,e,n){var i,r,o,s;return s=function(){i=!1,r&&(o.apply(n,r),r=!1)},o=function(){i?r=arguments:(t.apply(n,arguments),setTimeout(s,e),i=!0)}}function u(t,e,n){var i=e[1],r=e[0],o=i-r;return t===i&&n?t:((t-r)%o+o)%o+r}function l(){return!1}function h(t,e){var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return c(t).split(/\s+/)}function p(t,e){for(var n in t.hasOwnProperty("options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function d(t,e,n){var i=[];for(var r in t)i.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(t[r]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var v=/\{ *([\w_-]+) *\}/g;function m(t,e){return t.replace(v,function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i})}var y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function g(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function P(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function b(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var w=window.requestAnimationFrame||P("RequestAnimationFrame")||b,E=window.cancelAnimationFrame||P("CancelAnimationFrame")||P("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function T(t,e,n){if(!n||w!==b)return w.call(window,r(t,e));t.call(e)}function S(t){t&&E.call(window,t)}var I=(Object.freeze||Object)({freeze:e,extend:n,create:i,bind:r,lastId:o,stamp:s,throttle:a,wrapNum:u,falseFn:l,formatNum:h,trim:c,splitWords:f,setOptions:p,getParamString:d,template:m,isArray:y,indexOf:g,emptyImageUrl:_,requestFn:w,cancelFn:E,requestAnimFrame:T,cancelAnimFrame:S});function C(){}C.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=e.__super__=this.prototype,o=i(r);for(var s in o.constructor=e,e.prototype=o,this)this.hasOwnProperty(s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&(n(e,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=y(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),n.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=n(i(o.options),t.options)),n(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},C.include=function(t){return n(this.prototype,t),this},C.mergeOptions=function(t){return n(this.prototype.options,t),this},C.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var O={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else{t=f(t);for(var r=0,o=t.length;r<o;r++)this._on(t[r],e,n)}return this},off:function(t,e,n){if(t)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=f(t);for(var r=0,o=t.length;r<o;r++)this._off(t[r],e,n)}else delete this._events;return this},_on:function(t,e,n){this._events=this._events||{};var i=this._events[t];i||(i=[],this._events[t]=i),n===this&&(n=void 0);for(var r={fn:e,ctx:n},o=i,s=0,a=o.length;s<a;s++)if(o[s].fn===e&&o[s].ctx===n)return;o.push(r)},_off:function(t,e,n){var i,r,o;if(this._events&&(i=this._events[t]))if(e){if(n===this&&(n=void 0),i)for(r=0,o=i.length;r<o;r++){var s=i[r];if(s.ctx===n&&s.fn===e)return s.fn=l,this._firingCount&&(this._events[t]=i=i.slice()),void i.splice(r,1)}}else{for(r=0,o=i.length;r<o;r++)i[r].fn=l;delete this._events[t]}},fire:function(t,e,i){if(!this.listens(t,i))return this;var r=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,a=o.length;s<a;s++){var u=o[s];u.fn.call(u.ctx||this,r)}this._firingCount--}}return i&&this._propagateEvent(r),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e)for(var i in this._eventParents)if(this._eventParents[i].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var i in t)this.once(i,t[i],e);return this}var o=r(function(){this.off(t,e,n).off(t,o,n)},this);return this.on(t,e,n).on(t,o,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[s(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[s(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};O.addEventListener=O.on,O.removeEventListener=O.clearAllEventListeners=O.off,O.addOneTimeEventListener=O.once,O.fireEvent=O.fire,O.hasEventListeners=O.listens;var A=C.extend(O);function M(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var N=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function R(t,e,n){return t instanceof M?t:y(t)?new M(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new M(t.x,t.y):new M(t,e,n)}function k(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i<r;i++)this.extend(n[i])}function B(t,e){return!t||t instanceof k?t:new k(t,e)}function D(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i<r;i++)this.extend(n[i])}function j(t,e){return t instanceof D?t:new D(t,e)}function z(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function Y(t,e,n){return t instanceof z?t:y(t)&&"object"!=typeof t[0]?3===t.length?new z(t[0],t[1],t[2]):2===t.length?new z(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new z(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new z(t,e,n)}M.prototype={clone:function(){return new M(this.x,this.y)},add:function(t){return this.clone()._add(R(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(R(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new M(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new M(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=N(this.x),this.y=N(this.y),this},distanceTo:function(t){var e=(t=R(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=R(t)).x===this.x&&t.y===this.y},contains:function(t){return t=R(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}},k.prototype={extend:function(t){return t=R(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new M(this.min.x,this.max.y)},getTopRight:function(){return new M(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof M?R(t):B(t))instanceof k?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=B(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>=e.x&&i.x<=n.x,s=r.y>=e.y&&i.y<=n.y;return o&&s},overlaps:function(t){t=B(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>e.x&&i.x<n.x,s=r.y>e.y&&i.y<n.y;return o&&s},isValid:function(){return!(!this.min||!this.max)}},D.prototype={extend:function(t){var e,n,i=this._southWest,r=this._northEast;if(t instanceof z)e=t,n=t;else{if(!(t instanceof D))return t?this.extend(Y(t)||j(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||r?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new z(e.lat,e.lng),this._northEast=new z(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,r=Math.abs(e.lng-n.lng)*t;return new D(new z(e.lat-i,e.lng-r),new z(n.lat+i,n.lng+r))},getCenter:function(){return new z((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new z(this.getNorth(),this.getWest())},getSouthEast:function(){return new z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof z||"lat"in t?Y(t):j(t);var e,n,i=this._southWest,r=this._northEast;return t instanceof D?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=r.lat&&e.lng>=i.lng&&n.lng<=r.lng},intersects:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&i.lat<=n.lat,s=r.lng>=e.lng&&i.lng<=n.lng;return o&&s},overlaps:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&i.lat<n.lat,s=r.lng>e.lng&&i.lng<n.lng;return o&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=j(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},z.prototype={equals:function(t,e){if(!t)return!1;t=Y(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(void 0===e?1e-9:e)},toString:function(t){return"LatLng("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,Y(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return j([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new z(this.lat,this.lng,this.alt)}};var X,F={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t),i=this.transformation.transform(e.min,n),r=this.transformation.transform(e.max,n);return new k(i,r)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?u(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?u(t.lat,this.wrapLat,!0):t.lat,i=t.alt;return new z(n,e,i)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,r=e.lng-n.lng;if(0===i&&0===r)return t;var o=t.getSouthWest(),s=t.getNorthEast(),a=new z(o.lat-i,o.lng-r),u=new z(s.lat-i,s.lng-r);return new D(a,u)}},W=n({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,r=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),s=Math.sin((e.lng-t.lng)*n/2),a=o*o+Math.cos(i)*Math.cos(r)*s*s,u=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*u}}),Z={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),r=Math.sin(i*e);return new M(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new z((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(X=6378137*Math.PI,new k([-X,-X],[X,X]))};function U(t,e,n,i){if(y(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function q(t,e,n,i){return new U(t,e,n,i)}U.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new M((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var G=n({},W,{code:"EPSG:3857",projection:Z,transformation:function(){var t=.5/(Math.PI*Z.R);return q(t,.5,-t,.5)}()}),H=n({},G,{code:"EPSG:900913"});function V(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var n,i,r,o,s,a,u="";for(n=0,r=t.length;n<r;n++){for(s=t[n],i=0,o=s.length;i<o;i++)a=s[i],u+=(i?"L":"M")+a.x+" "+a.y;u+=e?It?"z":"x":""}return u||"M0 0"}var K=document.documentElement.style,$="ActiveXObject"in window,Q=$&&!document.addEventListener,tt="msLaunchUri"in navigator&&!("documentMode"in document),et=Ot("webkit"),nt=Ot("android"),it=Ot("android 2")||Ot("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=nt&&Ot("Google")&&rt<537&&!("AudioNode"in window),st=!!window.opera,at=Ot("chrome"),ut=Ot("gecko")&&!et&&!st&&!$,lt=!at&&Ot("safari"),ht=Ot("phantom"),ct="OTransition"in K,ft=0===navigator.platform.indexOf("Win"),pt=$&&"transition"in K,dt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!it,vt="MozPerspective"in K,mt=!window.L_DISABLE_3D&&(pt||dt||vt)&&!ct&&!ht,yt="undefined"!=typeof orientation||Ot("mobile"),gt=yt&&et,_t=yt&&dt,Pt=!window.PointerEvent&&window.MSPointerEvent,xt=!(et||!window.PointerEvent&&!Pt),bt=!window.L_NO_TOUCH&&(xt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),wt=yt&&st,Et=yt&&ut,Lt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Tt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t},St=!!document.createElement("canvas").getContext,It=!(!document.createElementNS||!V("svg").createSVGRect),Ct=!It&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Ot(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var At=(Object.freeze||Object)({ie:$,ielt9:Q,edge:tt,webkit:et,android:nt,android23:it,androidStock:ot,opera:st,chrome:at,gecko:ut,safari:lt,phantom:ht,opera12:ct,win:ft,ie3d:pt,webkit3d:dt,gecko3d:vt,any3d:mt,mobile:yt,mobileWebkit:gt,mobileWebkit3d:_t,msPointer:Pt,pointer:xt,touch:bt,mobileOpera:wt,mobileGecko:Et,retina:Lt,passiveEvents:Tt,canvas:St,svg:It,vml:Ct}),Mt=Pt?"MSPointerDown":"pointerdown",Nt=Pt?"MSPointerMove":"pointermove",Rt=Pt?"MSPointerUp":"pointerup",kt=Pt?"MSPointerCancel":"pointercancel",Bt=["INPUT","SELECT","OPTION"],Dt={},jt=!1,zt=0;function Yt(t,e,n,i){return"touchstart"===e?function(t,e,n){var i=r(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(Bt.indexOf(t.target.tagName)<0))return;De(t)}Zt(t,e)});t["_leaflet_touchstart"+n]=i,t.addEventListener(Mt,i,!1),jt||(document.documentElement.addEventListener(Mt,Xt,!0),document.documentElement.addEventListener(Nt,Ft,!0),document.documentElement.addEventListener(Rt,Wt,!0),document.documentElement.addEventListener(kt,Wt,!0),jt=!0)}(t,n,i):"touchmove"===e?function(t,e,n){var i=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&Zt(t,e)};t["_leaflet_touchmove"+n]=i,t.addEventListener(Nt,i,!1)}(t,n,i):"touchend"===e&&function(t,e,n){var i=function(t){Zt(t,e)};t["_leaflet_touchend"+n]=i,t.addEventListener(Rt,i,!1),t.addEventListener(kt,i,!1)}(t,n,i),this}function Xt(t){Dt[t.pointerId]=t,zt++}function Ft(t){Dt[t.pointerId]&&(Dt[t.pointerId]=t)}function Wt(t){delete Dt[t.pointerId],zt--}function Zt(t,e){for(var n in t.touches=[],Dt)t.touches.push(Dt[n]);t.changedTouches=[t],e(t)}var Ut=Pt?"MSPointerDown":xt?"pointerdown":"touchstart",qt=Pt?"MSPointerUp":xt?"pointerup":"touchend",Gt="_leaflet_";function Ht(t,e,n){var i,r,o=!1,s=250;function a(t){var e;if(xt){if(!tt||"mouse"===t.pointerType)return;e=zt}else e=t.touches.length;if(!(e>1)){var n=Date.now(),a=n-(i||n);r=t.touches?t.touches[0]:t,o=a>0&&a<=s,i=n}}function u(t){if(o&&!r.cancelBubble){if(xt){if(!tt||"mouse"===t.pointerType)return;var n,s,a={};for(s in r)n=r[s],a[s]=n&&n.bind?n.bind(r):n;r=a}r.type="dblclick",r.button=0,e(r),i=null}}return t[Gt+Ut+n]=a,t[Gt+qt+n]=u,t[Gt+"dblclick"+n]=e,t.addEventListener(Ut,a,!!Tt&&{passive:!1}),t.addEventListener(qt,u,!!Tt&&{passive:!1}),t.addEventListener("dblclick",e,!1),this}function Vt(t,e){var n=t[Gt+Ut+e],i=t[Gt+qt+e],r=t[Gt+"dblclick"+e];return t.removeEventListener(Ut,n,!!Tt&&{passive:!1}),t.removeEventListener(qt,i,!!Tt&&{passive:!1}),tt||t.removeEventListener("dblclick",r,!1),this}var Jt,Kt,$t,Qt,te,ee=ye(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ne=ye(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ie="webkitTransition"===ne||"OTransition"===ne?ne+"End":"transitionend";function re(t){return"string"==typeof t?document.getElementById(t):t}function oe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function se(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function ae(t){var e=t.parentNode;e&&e.removeChild(t)}function ue(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function he(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ce(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=ve(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function fe(t,e){if(void 0!==t.classList)for(var n=f(e),i=0,r=n.length;i<r;i++)t.classList.add(n[i]);else if(!ce(t,e)){var o=ve(t);de(t,(o?o+" ":"")+e)}}function pe(t,e){void 0!==t.classList?t.classList.remove(e):de(t,c((" "+ve(t)+" ").replace(" "+e+" "," ")))}function de(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ve(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function me(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}(t,e)}function ye(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ge(t,e,n){var i=e||new M(0,0);t.style[ee]=(pt?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function _e(t,e){t._leaflet_pos=e,mt?ge(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Pe(t){return t._leaflet_pos||new M(0,0)}if("onselectstart"in document)Jt=function(){Ce(window,"selectstart",De)},Kt=function(){Ae(window,"selectstart",De)};else{var xe=ye(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Jt=function(){if(xe){var t=document.documentElement.style;$t=t[xe],t[xe]="none"}},Kt=function(){xe&&(document.documentElement.style[xe]=$t,$t=void 0)}}function be(){Ce(window,"dragstart",De)}function we(){Ae(window,"dragstart",De)}function Ee(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Le(),Qt=t,te=t.style.outline,t.style.outline="none",Ce(window,"keydown",Le))}function Le(){Qt&&(Qt.style.outline=te,Qt=void 0,te=void 0,Ae(window,"keydown",Le))}function Te(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Se(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ie=(Object.freeze||Object)({TRANSFORM:ee,TRANSITION:ne,TRANSITION_END:ie,get:re,getStyle:oe,create:se,remove:ae,empty:ue,toFront:le,toBack:he,hasClass:ce,addClass:fe,removeClass:pe,setClass:de,getClass:ve,setOpacity:me,testProp:ye,setTransform:ge,setPosition:_e,getPosition:Pe,disableTextSelection:Jt,enableTextSelection:Kt,disableImageDrag:be,enableImageDrag:we,preventOutline:Ee,restoreOutline:Le,getSizedParentNode:Te,getScale:Se});function Ce(t,e,n,i){if("object"==typeof e)for(var r in e)Me(t,r,e[r],n);else{e=f(e);for(var o=0,s=e.length;o<s;o++)Me(t,e[o],n,i)}return this}var Oe="_leaflet_events";function Ae(t,e,n,i){if("object"==typeof e)for(var r in e)Ne(t,r,e[r],n);else if(e){e=f(e);for(var o=0,s=e.length;o<s;o++)Ne(t,e[o],n,i)}else{for(var a in t[Oe])Ne(t,a,t[Oe][a]);delete t[Oe]}return this}function Me(t,e,n,i){var r=e+s(n)+(i?"_"+s(i):"");if(t[Oe]&&t[Oe][r])return this;var o=function(e){return n.call(i||t,e||window.event)},a=o;xt&&0===e.indexOf("touch")?Yt(t,e,o,r):!bt||"dblclick"!==e||!Ht||xt&&at?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",o,!!Tt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,qe(t,e)&&a(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",o,!1)):("click"===e&&nt&&(o=function(t){!function(t,e){var n=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,i=Fe&&n-Fe;i&&i>100&&i<500||t.target._simulatedClick&&!t._simulated?je(t):(Fe=n,e(t))}(t,a)}),t.addEventListener(e,o,!1)):"attachEvent"in t&&t.attachEvent("on"+e,o):Ht(t,o,r),t[Oe]=t[Oe]||{},t[Oe][r]=o}function Ne(t,e,n,i){var r=e+s(n)+(i?"_"+s(i):""),o=t[Oe]&&t[Oe][r];if(!o)return this;xt&&0===e.indexOf("touch")?function(t,e,n){var i=t["_leaflet_"+e+n];"touchstart"===e?t.removeEventListener(Mt,i,!1):"touchmove"===e?t.removeEventListener(Nt,i,!1):"touchend"===e&&(t.removeEventListener(Rt,i,!1),t.removeEventListener(kt,i,!1))}(t,e,r):!bt||"dblclick"!==e||!Vt||xt&&at?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",o,!!Tt&&{passive:!1}):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,o,!1):"detachEvent"in t&&t.detachEvent("on"+e,o):Vt(t,r),t[Oe][r]=null}function Re(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Ue(t),this}function ke(t){return Me(t,"mousewheel",Re),this}function Be(t){return Ce(t,"mousedown touchstart dblclick",Re),Me(t,"click",Ze),this}function De(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function je(t){return De(t),Re(t),this}function ze(t,e){if(!e)return new M(t.clientX,t.clientY);var n=Se(e),i=n.boundingClientRect;return new M((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Ye=ft&&at?2*window.devicePixelRatio:ut?window.devicePixelRatio:1;function Xe(t){return tt?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ye:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Fe,We={};function Ze(t){We[t.type]=!0}function Ue(t){var e=We[t.type];return We[t.type]=!1,e}function qe(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Ge=(Object.freeze||Object)({on:Ce,off:Ae,stopPropagation:Re,disableScrollPropagation:ke,disableClickPropagation:Be,preventDefault:De,stop:je,getMousePosition:ze,getWheelDelta:Xe,fakeStop:Ze,skipped:Ue,isExternalTarget:qe,addListener:Ce,removeListener:Ae}),He=A.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=Pe(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),_e(this._el,n),this.fire("step")},_complete:function(){S(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ve=A.extend({options:{crs:G,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(Y(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ne&&mt&&!wt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ce(this._proxy,ie,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){if(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(Y(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i){void 0!==i.animate&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan));var r=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan);if(r)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(mt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(mt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),r=this.getSize().divideBy(2),o=t instanceof M?t:this.latLngToContainerPoint(t),s=o.subtract(r).multiplyBy(1-1/i),a=this.containerPointToLatLng(r.add(s));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var n=R(e.paddingTopLeft||e.padding||[0,0]),i=R(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,!1,n.add(i));if((r="number"==typeof e.maxZoom?Math.min(e.maxZoom,r):r)===1/0)return{center:t.getCenter(),zoom:r};var o=i.subtract(n).divideBy(2),s=this.project(t.getSouthWest(),r),a=this.project(t.getNorthEast(),r),u=this.unproject(s.add(a).divideBy(2).add(o),r);return{center:u,zoom:r}},fitBounds:function(t,e){if(!(t=j(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=R(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new He,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){fe(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!mt)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),r=this.project(t),o=this.getSize(),s=this._zoom;t=Y(t),e=void 0===e?s:e;var a=Math.max(o.x,o.y),u=a*this.getZoomScale(s,e),l=r.distanceTo(i)||1,h=1.42,c=h*h;function f(t){var e=t?-1:1,n=t?u:a,i=u*u-a*a+e*c*c*l*l,r=2*n*c*l,o=i/r,s=Math.sqrt(o*o+1)-o,h=s<1e-9?-18:Math.log(s);return h}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}var v=f(0);function m(t){return a*(d(v)*(p(e=v+h*t)/d(e))-p(v))/c;var e}var y=Date.now(),g=(f(1)-v)/h,_=n.duration?1e3*n.duration:1e3*g*.8;return this._moveStart(!0,n.noMoveStart),function n(){var o=(Date.now()-y)/_,u=function(t){return 1-Math.pow(1-t,1.5)}(o)*g;o<=1?(this._flyToFrame=T(n,this),this._move(this.unproject(i.add(r.subtract(i).multiplyBy(m(u)/l)),s),this.getScaleZoom(a/function(t){return a*(d(v)/d(v+h*t))}(u),s),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return(t=j(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,j(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=R((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=R(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),o=this.project(r),s=this.project(t),a=this.getPixelBounds(),u=a.getSize().divideBy(2),l=B([a.min.add(n),a.max.subtract(i)]);if(!l.contains(s)){this._enforcingBounds=!0;var h=o.subtract(s),c=R(s.x+h.x,s.y+h.y);(s.x<l.min.x||s.x>l.max.x)&&(c.x=o.x-h.x,h.x>0?c.x+=u.x-n.x:c.x-=u.x-i.x),(s.y<l.min.y||s.y>l.max.y)&&(c.y=o.y-h.y,h.y>0?c.y+=u.y-n.y:c.y-=u.y-i.y),this.panTo(this.unproject(c),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=e.divideBy(2).round(),s=i.divideBy(2).round(),a=o.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=r(this._handleGeolocationResponse,this),i=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,n=t.coords.longitude,i=new z(e,n),r=i.toBounds(2*t.coords.accuracy),o=this._locateOptions;if(o.setView){var s=this.getBoundsZoom(r);this.setView(i,o.maxZoom?Math.min(s,o.maxZoom):s)}var a={latlng:i,bounds:r,timestamp:t.timestamp};for(var u in t.coords)"number"==typeof t.coords[u]&&(a[u]=t.coords[u]);this.fire("locationfound",a)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ae(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(S(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ae(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i=se("div",n,e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new D(e,n)},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=j(t),n=R(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),u=this.getSize().subtract(n),l=B(this.project(a,i),this.project(s,i)).getSize(),h=mt?this.options.zoomSnap:1,c=u.x/l.x,f=u.y/l.y,p=e?Math.max(c,f):Math.min(c,f);return i=this.getScaleZoom(p,i),h&&(i=Math.round(i/(h/100))*(h/100),i=e?Math.ceil(i/h)*h:Math.floor(i/h)*h),Math.max(r,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new k(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(Y(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(R(t),e)},layerPointToLatLng:function(t){var e=R(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(Y(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Y(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(Y(t),Y(e))},containerPointToLayerPoint:function(t){return R(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return R(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(R(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(t)))},mouseEventToContainerPoint:function(t){return ze(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=re(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Ce(e,"scroll",this._onScroll,this),this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&mt,fe(t,"leaflet-container"+(bt?" leaflet-touch":"")+(Lt?" leaflet-retina":"")+(Q?" leaflet-oldie":"")+(lt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=oe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),_e(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(fe(t.markerPane,"leaflet-zoom-hide"),fe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){_e(this._mapPane,new M(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,!1)._move(t,e)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return S(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){_e(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[s(this._container)]=this;var e=t?Ae:Ce;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),mt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){S(this._resizeRequest),this._resizeRequest=T(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],r="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,a=!1;o;){if((n=this._targets[s(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(r&&!qe(o,t))break;if(i.push(n),r)break}if(o===this._container)break;o=o.parentNode}return i.length||a||r||!qe(o,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!Ue(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Ee(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if("click"===t.type){var r=n({},t);r.type="preclick",this._fireDOMEvent(r,r.type,i)}if(!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,e))).length){var o=i[0];"contextmenu"===e&&o.listens(e,!0)&&De(t);var s={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var a=o.getLatLng&&(!o._radius||o._radius<=10);s.containerPoint=a?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=a?o.getLatLng():this.layerPointToLatLng(s.layerPoint)}for(var u=0;u<i.length;u++)if(i[u].fire(e,s,!0),s.originalEvent._stopped||!1===i[u].options.bubblingMouseEvents&&-1!==g(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Pe(this._mapPane)||new M(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var n=t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return B([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),r=this.getSize().divideBy(2),o=new k(i.subtract(r),i.add(r)),s=this._getBoundsOffset(o,n,e);return s.round().equals([0,0])?t:this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new k(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=B(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),r=i.min.subtract(t.min),o=i.max.subtract(t.max),s=this._rebound(r.x,-o.x),a=this._rebound(r.y,-o.y);return new M(s,a)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=mt?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){pe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=se("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=ee,n=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(r)||(T(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,fe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&pe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),T(function(){this._moveEnd(!0)},this))}}),Je=C.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return fe(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ae(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ke=function(t){return new Je(t)};Ve.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=se("div",e+"control-container",this._container);function i(i,r){var o=e+i+" "+e+r;t[i+r]=se("div",o,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ae(this._controlCorners[t]);ae(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var $e=Je.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Je.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(s(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){fe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(fe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):pe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return pe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=se("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Be(e),ke(e);var i=this._section=se("section",t+"-list");n&&(this._map.on("click",this.collapse,this),nt||Ce(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var r=this._layersLink=se("a",t+"-toggle",e);r.href="#",r.title="Layers",bt?(Ce(r,"click",je),Ce(r,"click",this.expand,this)):Ce(r,"focus",this.expand,this),n||this.expand(),this._baseLayersList=se("div",t+"-base",i),this._separator=se("div",t+"-separator",i),this._overlaysList=se("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&s(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(r(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ue(this._baseLayersList),ue(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,r=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,r+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&r>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(s(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+s(this),i),this._layerControlInputs.push(e),e.layerId=s(t.layer),Ce(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("div");n.appendChild(o),o.appendChild(e),o.appendChild(r);var a=t.overlay?this._overlaysList:this._baseLayersList;return a.appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],r=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||r.push(e);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])&&this._map.removeLayer(r[o]);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])||this._map.addLayer(i[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Qe=Je.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=se("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,r){var o=se("a",n,i);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Be(o),Ce(o,"click",je),Ce(o,"click",r,this),Ce(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";pe(this._zoomInButton,e),pe(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&fe(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&fe(this._zoomInButton,e)}});Ve.mergeOptions({zoomControl:!0}),Ve.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Qe,this.addControl(this.zoomControl))});var tn=Je.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=se("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=se("div",e,n)),t.imperial&&(this._iScale=se("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,r=3.2808399*t;r>5280?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(r),this._updateScale(this._iScale,i+" ft",i/r))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),en=Je.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=se("div","leaflet-control-attribution"),Be(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Ve.mergeOptions({attributionControl:!0}),Ve.addInitHook(function(){this.options.attributionControl&&(new en).addTo(this)}),Je.Layers=$e,Je.Zoom=Qe,Je.Scale=tn,Je.Attribution=en,Ke.layers=function(t,e,n){return new $e(t,e,n)},Ke.zoom=function(t){return new Qe(t)},Ke.scale=function(t){return new tn(t)},Ke.attribution=function(t){return new en(t)};var nn=C.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});nn.addTo=function(t,e){return t.addHandler(e,this),this};var rn,on={Events:O},sn=bt?"touchstart mousedown":"mousedown",an={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},un={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},ln=A.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){p(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Ce(this._dragStartTarget,sn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ln._dragging===this&&this.finishDrag(),Ae(this._dragStartTarget,sn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!ce(this._element,"leaflet-zoom-anim")&&!(ln._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(ln._dragging=this,this._preventOutline&&Ee(this._element),be(),Jt(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Te(this._element);this._startPoint=new M(e.clientX,e.clientY),this._parentScale=Se(n),Ce(document,un[t.type],this._onMove,this),Ce(document,an[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new M(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,De(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Pe(this._element).subtract(n),fe(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),fe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,S(this._animRequest),this._lastEvent=t,this._animRequest=T(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),_e(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in pe(document.body,"leaflet-dragging"),this._lastTarget&&(pe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),un)Ae(document,un[t],this._onMove,this),Ae(document,an[t],this._onUp,this);we(),Kt(),this._moved&&this._moving&&(S(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,ln._dragging=!1}});function hn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,function t(e,n,i,r,o){var s,a,u,l=0;for(a=r+1;a<=o-1;a++)(u=vn(e[a],e[r],e[o],!0))>l&&(s=a,l=u);l>i&&(n[s]=1,t(e,n,i,r,s),t(e,n,i,s,o))}(t,i,e,0,n-1);var r,o=[];for(r=0;r<n;r++)i[r]&&o.push(t[r]);return o}(t=function(t,e){for(var n=[t[0]],i=1,r=0,o=t.length;i<o;i++)s=t[i],a=t[r],u=void 0,l=void 0,u=a.x-s.x,l=a.y-s.y,u*u+l*l>e&&(n.push(t[i]),r=i);var s,a,u,l;return r<o-1&&n.push(t[o-1]),n}(t,n),n)}function cn(t,e,n){return Math.sqrt(vn(t,e,n,!0))}function fn(t,e,n,i,r){var o,s,a,u=i?rn:dn(t,n),l=dn(e,n);for(rn=l;;){if(!(u|l))return[t,e];if(u&l)return!1;s=pn(t,e,o=u||l,n,r),a=dn(s,n),o===u?(t=s,u=a):(e=s,l=a)}}function pn(t,e,n,i,r){var o,s,a=e.x-t.x,u=e.y-t.y,l=i.min,h=i.max;return 8&n?(o=t.x+a*(h.y-t.y)/u,s=h.y):4&n?(o=t.x+a*(l.y-t.y)/u,s=l.y):2&n?(o=h.x,s=t.y+u*(h.x-t.x)/a):1&n&&(o=l.x,s=t.y+u*(l.x-t.x)/a),new M(o,s,r)}function dn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function vn(t,e,n,i){var r,o=e.x,s=e.y,a=n.x-o,u=n.y-s,l=a*a+u*u;return l>0&&((r=((t.x-o)*a+(t.y-s)*u)/l)>1?(o=n.x,s=n.y):r>0&&(o+=a*r,s+=u*r)),a=t.x-o,u=t.y-s,i?a*a+u*u:new M(o,s)}function mn(t){return!y(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function yn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),mn(t)}var gn=(Object.freeze||Object)({simplify:hn,pointToSegmentDistance:cn,closestPointOnSegment:function(t,e,n){return vn(t,e,n)},clipSegment:fn,_getEdgeIntersection:pn,_getBitCode:dn,_sqClosestPointOnSegment:vn,isFlat:mn,_flat:yn});function _n(t,e,n){var i,r,o,s,a,u,l,h,c,f=[1,4,2,8];for(r=0,l=t.length;r<l;r++)t[r]._code=dn(t[r],e);for(s=0;s<4;s++){for(h=f[s],i=[],r=0,l=t.length,o=l-1;r<l;o=r++)a=t[r],u=t[o],a._code&h?u._code&h||((c=pn(u,a,h,e,n))._code=dn(c,e),i.push(c)):(u._code&h&&((c=pn(u,a,h,e,n))._code=dn(c,e),i.push(c)),i.push(a));t=i}return t}var Pn=(Object.freeze||Object)({clipPolygon:_n}),xn={project:function(t){return new M(t.lng,t.lat)},unproject:function(t){return new z(t.y,t.x)},bounds:new k([-180,-90],[180,90])},bn={R:6378137,R_MINOR:6356752.314245179,bounds:new k([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),s=o*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),o/2);return i=-n*Math.log(Math.max(a,1e-10)),new M(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),u=0,l=.1;u<15&&Math.abs(l)>1e-7;u++)e=o*Math.sin(a),e=Math.pow((1-e)/(1+e),o/2),l=Math.PI/2-2*Math.atan(s*e)-a,a+=l;return new z(a*n,t.x*n/i)}},wn=(Object.freeze||Object)({LonLat:xn,Mercator:bn,SphericalMercator:Z}),En=n({},W,{code:"EPSG:3395",projection:bn,transformation:function(){var t=.5/(Math.PI*bn.R);return q(t,.5,-t,.5)}()}),Ln=n({},W,{code:"EPSG:4326",projection:xn,transformation:q(1/180,1,-1/180,.5)}),Tn=n({},F,{projection:xn,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});F.Earth=W,F.EPSG3395=En,F.EPSG3857=G,F.EPSG900913=H,F.EPSG4326=Ln,F.Simple=Tn;var Sn=A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[s(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[s(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ve.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=s(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=s(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&s(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?y(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[s(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=s(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var r=this._zoomBoundLayers[i].options;t=void 0===r.minZoom?t:Math.min(t,r.minZoom),e=void 0===r.maxZoom?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var In=Sn.extend({initialize:function(t,e){var n,i;if(p(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return s(t)}}),Cn=In.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),In.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),In.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new D;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),On=C.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var r=R(i),o=R("shadow"===e&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Lt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),An=On.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return An.imagePath||(An.imagePath=this._detectIconPath()),(this.options.imagePath||An.imagePath)+On.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=se("div","leaflet-default-icon-path",document.body),e=oe(t,"background-image")||oe(t,"backgroundImage");return document.body.removeChild(t),e=null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Mn=nn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ln(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),fe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&pe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=Pe(e._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),u=B(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r));if(!u.contains(o)){var l=R((Math.max(u.max.x,o.x)-u.max.x)/(s.max.x-u.max.x)-(Math.min(u.min.x,o.x)-u.min.x)/(s.min.x-u.min.x),(Math.max(u.max.y,o.y)-u.max.y)/(s.max.y-u.max.y)-(Math.min(u.min.y,o.y)-u.min.y)/(s.min.y-u.min.y)).multiplyBy(i);n.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),_e(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=T(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(S(this._panRequest),this._panRequest=T(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=Pe(e._icon),r=e._map.layerPointToLatLng(i);n&&_e(n,i),e._latlng=r,t.latlng=r,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){S(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Nn=Sn.extend({options:{icon:new An,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=Y(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=Y(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),fe(n,e),t.keyboard&&(n.tabIndex="0"),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var r=t.icon.createShadow(this._shadow),o=!1;r!==this._shadow&&(this._removeShadow(),o=!0),r&&(fe(r,e),r.alt=""),this._shadow=r,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ae(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ae(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&_e(this._icon,t),this._shadow&&_e(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(fe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Mn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Mn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&me(this._icon,t),this._shadow&&me(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Rn=Sn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&t.hasOwnProperty("weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),kn=Rn.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=Y(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=Y(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Rn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new k(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Bn=kn.extend({initialize:function(t,e,i){if("number"==typeof e&&(e=n({},i,{radius:e})),p(this,e),this._latlng=Y(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new D(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Rn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===W.distance){var r=Math.PI/180,o=this._mRadius/W.R/r,s=n.project([e+o,t]),a=n.project([e-o,t]),u=s.add(a).divideBy(2),l=n.unproject(u).lat,h=Math.acos((Math.cos(o*r)-Math.sin(e*r)*Math.sin(l*r))/(Math.cos(e*r)*Math.cos(l*r)))/r;(isNaN(h)||0===h)&&(h=o/Math.cos(Math.PI/180*e)),this._point=u.subtract(n.getPixelOrigin()),this._radius=isNaN(h)?0:u.x-n.project([l,t-h]).x,this._radiusY=u.y-s.y}else{var c=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(c).x}this._updateBounds()}}),Dn=Rn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,r=null,o=vn,s=0,a=this._parts.length;s<a;s++)for(var u=this._parts[s],l=1,h=u.length;l<h;l++){e=u[l-1],n=u[l];var c=o(t,e,n,!0);c<i&&(i=c,r=o(t,e,n))}return r&&(r.distance=Math.sqrt(i)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,r,o,s,a=this._rings[0],u=a.length;if(!u)return null;for(t=0,e=0;t<u-1;t++)e+=a[t].distanceTo(a[t+1])/2;if(0===e)return this._map.layerPointToLatLng(a[0]);for(t=0,i=0;t<u-1;t++)if(r=a[t],o=a[t+1],n=r.distanceTo(o),(i+=n)>e)return s=(i-e)/n,this._map.layerPointToLatLng([o.x-s*(o.x-r.x),o.y-s*(o.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Y(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new D,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return mn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=mn(t),i=0,r=t.length;i<r;i++)n?(e[i]=Y(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new k;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new M(t,t);this._pxBounds=new k([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var i,r,o=t[0]instanceof z,s=t.length;if(o){for(r=[],i=0;i<s;i++)r[i]=this._map.latLngToLayerPoint(t[i]),n.extend(r[i]);e.push(r)}else for(i=0;i<s;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,r,o,s,a,u=this._parts;for(e=0,i=0,r=this._rings.length;e<r;e++)for(a=this._rings[e],n=0,o=a.length;n<o-1;n++)(s=fn(a[n],a[n+1],t,n,!0))&&(u[i]=u[i]||[],u[i].push(s[0]),s[1]===a[n+1]&&n!==o-2||(u[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=hn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,r,o,s,a,u=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(a=this._parts[n],i=0,s=a.length,r=s-1;i<s;r=i++)if((e||0!==i)&&cn(t,a[r],a[i])<=u)return!0;return!1}});Dn._flat=yn;var jn=Dn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,r,o,s,a,u,l=this._rings[0],h=l.length;if(!h)return null;for(o=s=a=0,t=0,e=h-1;t<h;e=t++)n=l[t],i=l[e],r=n.y*i.x-i.y*n.x,s+=(n.x+i.x)*r,a+=(n.y+i.y)*r,o+=3*r;return u=0===o?l[0]:[s/o,a/o],this._map.layerPointToLatLng(u)},_convertLatLngs:function(t){var e=Dn.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof z&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Dn.prototype._setLatLngs.call(this,t),mn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return mn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new M(e,e);if(t=new k(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,r=0,o=this._rings.length;r<o;r++)(i=_n(this._rings[r],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,r,o,s,a,u,l=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,a=this._parts.length;r<a;r++)for(e=this._parts[r],o=0,u=e.length,s=u-1;o<u;s=o++)n=e[o],i=e[s],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(l=!l);return l||Dn.prototype._containsPoint.call(this,t,!0)}}),zn=Cn.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,r=y(t)?t:t.features;if(r){for(e=0,n=r.length;e<n;e++)((i=r[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var s=Yn(t,o);return s?(s.feature=Gn(t),s.defaultOptions=s.options,this.resetStyle(s),o.onEachFeature&&o.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Yn(t,e){var n,i,r,o,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,u=[],l=e&&e.pointToLayer,h=e&&e.coordsToLatLng||Fn;if(!a&&!s)return null;switch(s.type){case"Point":return n=h(a),Xn(l,t,n,e);case"MultiPoint":for(r=0,o=a.length;r<o;r++)n=h(a[r]),u.push(Xn(l,t,n,e));return new Cn(u);case"LineString":case"MultiLineString":return i=Wn(a,"LineString"===s.type?0:1,h),new Dn(i,e);case"Polygon":case"MultiPolygon":return i=Wn(a,"Polygon"===s.type?1:2,h),new jn(i,e);case"GeometryCollection":for(r=0,o=s.geometries.length;r<o;r++){var c=Yn({geometry:s.geometries[r],type:"Feature",properties:t.properties},e);c&&u.push(c)}return new Cn(u);default:throw new Error("Invalid GeoJSON object.")}}function Xn(t,e,n,i){return t?t(e,n):new Nn(n,i&&i.markersInheritOptions&&i)}function Fn(t){return new z(t[1],t[0],t[2])}function Wn(t,e,n){for(var i,r=[],o=0,s=t.length;o<s;o++)i=e?Wn(t[o],e-1,n):(n||Fn)(t[o]),r.push(i);return r}function Zn(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function Un(t,e,n,i){for(var r=[],o=0,s=t.length;o<s;o++)r.push(e?Un(t[o],e-1,n,i):Zn(t[o],i));return!e&&n&&r.push(r[0]),r}function qn(t,e){return t.feature?n({},t.feature,{geometry:e}):Gn(e)}function Gn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Hn={toGeoJSON:function(t){return qn(this,{type:"Point",coordinates:Zn(this.getLatLng(),t)})}};function Vn(t,e){return new zn(t,e)}Nn.include(Hn),Bn.include(Hn),kn.include(Hn),Dn.include({toGeoJSON:function(t){var e=!mn(this._latlngs),n=Un(this._latlngs,e?1:0,!1,t);return qn(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),jn.include({toGeoJSON:function(t){var e=!mn(this._latlngs),n=e&&!mn(this._latlngs[0]),i=Un(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),qn(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),In.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),qn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer(function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(n)i.push(r.geometry);else{var o=Gn(r);"FeatureCollection"===o.type?i.push.apply(i,o.features):i.push(o)}}}),n?qn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Jn=Vn,Kn=Sn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=j(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(fe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ae(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&le(this._image),this},bringToBack:function(){return this._map&&he(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=j(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:se("img");fe(e,"leaflet-image-layer"),this._zoomAnimated&&fe(e,"leaflet-zoom-animated"),this.options.className&&fe(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=r(this.fire,this,"load"),e.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ge(this._image,n,e)},_reset:function(){var t=this._image,e=new k(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();_e(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){me(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),$n=Kn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:se("video");if(fe(e,"leaflet-image-layer"),this._zoomAnimated&&fe(e,"leaflet-zoom-animated"),this.options.className&&fe(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=r(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],o=0;o<n.length;o++)i.push(n[o].src);this._url=n.length>0?i:[e.src]}else{y(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var s=0;s<this._url.length;s++){var a=se("source");a.src=this._url[s],e.appendChild(a)}}}}),Qn=Kn.extend({_initImage:function(){var t=this._image=this._url;fe(t,"leaflet-image-layer"),this._zoomAnimated&&fe(t,"leaflet-zoom-animated"),this.options.className&&fe(t,this.options.className),t.onselectstart=l,t.onmousemove=l}}),ti=Sn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){p(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&me(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&me(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(me(this._container,0),this._removeTimeout=setTimeout(r(ae,void 0,this._container),200)):ae(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=Y(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&le(this._container),this},bringToBack:function(){return this._map&&he(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof Sn||(n=e,e=t),e instanceof Cn)for(var i in t._layers){e=t._layers[i];break}if(!n)if(e.getCenter)n=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");n=e.getLatLng()}return this._source=e,this.update(),n},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=R(this.options.offset),n=this._getAnchor();this._zoomAnimated?_e(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}}),ei=ti.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){ti.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Rn||this._source.on("preclick",Re))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Rn||this._source.off("preclick",Re))},getEvents:function(){var t=ti.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=se("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=se("div",t+"-content-wrapper",e);if(this._contentNode=se("div",t+"-content",n),Be(n),ke(this._contentNode),Ce(n,"contextmenu",Re),this._tipContainer=se("div",t+"-tip-container",e),this._tip=se("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=se("a",t+"-close-button",e);i.href="#close",i.innerHTML="×",Ce(i,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,r=this.options.maxHeight;r&&i>r?(e.height=r+"px",fe(t,"leaflet-popup-scrolled")):pe(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();_e(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(oe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,r=new M(this._containerLeft,-n-this._containerBottom);r._add(Pe(this._container));var o=t.layerPointToContainerPoint(r),s=R(this.options.autoPanPadding),a=R(this.options.autoPanPaddingTopLeft||s),u=R(this.options.autoPanPaddingBottomRight||s),l=t.getSize(),h=0,c=0;o.x+i+u.x>l.x&&(h=o.x+i-l.x+u.x),o.x-h-a.x<0&&(h=o.x-a.x),o.y+n+u.y>l.y&&(c=o.y+n-l.y+u.y),o.y-c-a.y<0&&(c=o.y-a.y),(h||c)&&t.fire("autopanstart").panBy([h,c])}},_onCloseButtonClick:function(t){this._close(),je(t)},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ve.mergeOptions({closePopupOnClick:!0}),Ve.include({openPopup:function(t,e,n){return t instanceof ei||(t=new ei(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Sn.include({bindPopup:function(t,e){return t instanceof ei?(p(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new ei(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(je(t),e instanceof Rn?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ni=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){ti.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=ti.prototype.getEvents.call(this);return bt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=se("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,n=this._container,i=e.latLngToContainerPoint(e.getCenter()),r=e.layerPointToContainerPoint(t),o=this.options.direction,s=n.offsetWidth,a=n.offsetHeight,u=R(this.options.offset),l=this._getAnchor();"top"===o?t=t.add(R(-s/2+u.x,-a+u.y+l.y,!0)):"bottom"===o?t=t.subtract(R(s/2-u.x,-u.y,!0)):"center"===o?t=t.subtract(R(s/2+u.x,a/2-l.y+u.y,!0)):"right"===o||"auto"===o&&r.x<i.x?(o="right",t=t.add(R(u.x+l.x,l.y-a/2+u.y,!0))):(o="left",t=t.subtract(R(s+l.x-u.x,a/2-l.y-u.y,!0))),pe(n,"leaflet-tooltip-right"),pe(n,"leaflet-tooltip-left"),pe(n,"leaflet-tooltip-top"),pe(n,"leaflet-tooltip-bottom"),fe(n,"leaflet-tooltip-"+o),_e(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&me(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return R(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ve.include({openTooltip:function(t,e,n){return t instanceof ni||(t=new ni(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Sn.include({bindTooltip:function(t,e){return t instanceof ni?(p(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new ni(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),bt&&(n.click=this._openTooltip)),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(fe(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(pe(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var ii=On.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ue(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=R(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});On.Default=An;var ri=Sn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ae(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(he(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof M?t:new M(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),r=0,o=n.length;r<o;r++)e=n[r].style.zIndex,n[r]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Q){me(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var r=this._tiles[i];if(r.current&&r.loaded){var o=Math.min(1,(t-r.loaded)/200);me(r.el,o),o<1?e=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(S(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=se("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(ae(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],r=this._map;return i||((i=this._levels[t]={}).el=se("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=r.project(r.unproject(r.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,r.getCenter(),r.getZoom()),i.el.offsetWidth,this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ae(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var r=Math.floor(t/2),o=Math.floor(e/2),s=n-1,a=new M(+r,+o);a.z=+s;var u=this._tileCoordsToKey(a),l=this._tiles[u];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),s>i&&this._retainParent(r,o,s,i))},_retainChildren:function(t,e,n,i){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var s=new M(r,o);s.z=n+1;var a=this._tileCoordsToKey(s),u=this._tiles[a];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n+1<i&&this._retainChildren(r,o,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var r=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom)&&(r=void 0);var o=this.options.updateWhenZooming&&r!==this._tileZoom;i&&!o||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),r=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();mt?ge(t.el,r,i):_e(t.el,r)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*i);return new k(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(i),o=r.getCenter(),s=[],a=this.options.keepBuffer,u=new k(r.getBottomLeft().subtract([a,-a]),r.getTopRight().add([a,-a]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var l in this._tiles){var h=this._tiles[l].coords;h.z===this._tileZoom&&u.contains(new M(h.x,h.y))||(this._tiles[l].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var c=r.min.y;c<=r.max.y;c++)for(var f=r.min.x;f<=r.max.x;f++){var p=new M(f,c);if(p.z=this._tileZoom,this._isValidTile(p)){var d=this._tiles[this._tileCoordsToKey(p)];d?d.current=!0:s.push(p)}}if(s.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)}),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var v=document.createDocumentFragment();for(f=0;f<s.length;f++)this._addTile(s[f],v);this._level.el.appendChild(v)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),r=i.add(n),o=e.unproject(i,t.z),s=e.unproject(r,t.z);return[o,s]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new D(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new M(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ae(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){fe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,Q&&this.options.opacity<1&&me(t,this.options.opacity),nt&&!it&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&T(r(this._tileReady,this,t,null,o)),_e(o,n),this._tiles[i]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(me(n.el,0),S(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(fe(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Q||!this._map._fadeAnimated?T(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?u(t.x,this._wrapX):t.x,this._wrapY?u(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new k(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),oi=ri.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Lt&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),nt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Ce(n,"load",r(this._tileOnLoad,this,e,n)),Ce(n,"error",r(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Lt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return m(this._url,n(e,this.options))},_tileOnLoad:function(t,e){Q?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,i=this.options.zoomOffset;return n&&(t=e-t),t+i},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,e.complete||(e.src=_,ae(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return ot||e.el.setAttribute("src",_),ri.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==_))return ri.prototype._tileReady.call(this,t,e,n)}});function si(t,e){return new oi(t,e)}var ai=oi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=n({},this.defaultWmsParams);for(var r in e)r in this.options||(i[r]=e[r]);var o=(e=p(this,e)).detectRetina&&Lt?2:1,s=this.getTileSize();i.width=s.x*o,i.height=s.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,oi.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=B(n.project(e[0]),n.project(e[1])),r=i.min,o=i.max,s=(this._wmsVersion>=1.3&&this._crs===Ln?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),a=oi.prototype.getTileUrl.call(this,t);return a+d(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});oi.WMS=ai,si.wms=function(t,e){return new ai(t,e)};var ui=Sn.extend({options:{padding:.1,tolerance:0},initialize:function(t){p(this,t),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&fe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=Pe(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=this._map.project(t,e),a=s.subtract(o),u=r.multiplyBy(-n).add(i).add(r).subtract(a);mt?ge(this._container,u,n):_e(this._container,u)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new k(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),li=ui.extend({getEvents:function(){var t=ui.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ui.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Ce(t,"mousemove",this._onMouseMove,this),Ce(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ce(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest),delete this._ctx,ae(this._container),Ae(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ui.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=Lt?2:1;_e(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Lt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ui.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[s(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;r.push(e)}t.options._dashArray=r}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||T(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new k,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,r,o,s=t._parts,a=s.length,u=this._ctx;if(a){for(u.beginPath(),n=0;n<a;n++){for(i=0,r=s[n].length;i<r;i++)o=s[n][i],u[i?"lineTo":"moveTo"](o.x,o.y);e&&u.closePath()}this._fillStroke(u,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(e.x,e.y/r,i,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),r=this._drawFirst;r;r=r.next)(e=r.layer).options.interactive&&e._containsPoint(i)&&!this._map._draggableMoved(e)&&(n=e);n&&(Ze(t),this._fireEvent([n],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(pe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,i,r=this._drawFirst;r;r=r.next)(n=r.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(fe(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(L.bind(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function hi(t){return St?new li(t):null}var ci=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),fi={_initContainer:function(){this._container=se("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ui.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ci("shape");fe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ci("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ae(e),t.removeInteractiveTarget(e),delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,r=t._container;r.stroked=!!i.stroke,r.filled=!!i.fill,i.stroke?(e||(e=t._stroke=ci("stroke")),r.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=y(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(r.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=ci("fill")),r.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){he(t._container)}},pi=Ct?ci:V,di=ui.extend({getEvents:function(){var t=ui.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=pi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container),Ae(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){ui.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),_e(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=pi("path");t.options.className&&fe(e,t.options.className),t.options.interactive&&fe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ae(t._path),t.removeInteractiveTarget(t._path),delete this._layers[s(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i=Math.max(Math.round(t._radiusY),1)||n,r="a"+n+","+i+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){he(t._path)}});function vi(t){return It||Ct?new di(t):null}Ct&&di.include(fi),Ve.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&hi(t)||vi(t)}});var mi=jn.extend({initialize:function(t,e){jn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});di.create=pi,di.pointsToPath=J,zn.geometryToLayer=Yn,zn.coordsToLatLng=Fn,zn.coordsToLatLngs=Wn,zn.latLngToCoords=Zn,zn.latLngsToCoords=Un,zn.getFeature=qn,zn.asFeature=Gn,Ve.mergeOptions({boxZoom:!0});var yi=nn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Ce(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ae(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Jt(),be(),this._startPoint=this._map.mouseEventToContainerPoint(t),Ce(document,{contextmenu:je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=se("div","leaflet-zoom-box",this._container),fe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new k(this._point,this._startPoint),n=e.getSize();_e(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ae(this._box),pe(this._container,"leaflet-crosshair")),Kt(),we(),Ae(document,{contextmenu:je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ve.addInitHook("addHandler","boxZoom",yi),Ve.mergeOptions({doubleClickZoom:!0});var gi=nn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});Ve.addInitHook("addHandler","doubleClickZoom",gi),Ve.mergeOptions({dragging:!0,inertia:!it,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _i=nn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ln(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}fe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){pe(this._map._container,"leaflet-grab"),pe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=B(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-e+n)%t+e-n,o=(i+e+n)%t-e-n,s=Math.abs(r+n)<Math.abs(o+n)?r:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=r.multiplyBy(s/o),u=a.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,u),h=a.multiplyBy(l/u),c=l/(n.inertiaDeceleration*s),f=h.multiplyBy(-c/2).round();f.x||f.y?(f=e._limitOffset(f,e.options.maxBounds),T(function(){e.panBy(f,{duration:c,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});Ve.addInitHook("addHandler","dragging",_i),Ve.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Pi=nn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Ce(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ae(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},r=this.keyCodes;for(e=0,n=r.left.length;e<n;e++)i[r.left[e]]=[-1*t,0];for(e=0,n=r.right.length;e<n;e++)i[r.right[e]]=[t,0];for(e=0,n=r.down.length;e<n;e++)i[r.down[e]]=[0,t];for(e=0,n=r.up.length;e<n;e++)i[r.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},r=this.keyCodes;for(e=0,n=r.zoomIn.length;e<n;e++)i[r.zoomIn[e]]=t;for(e=0,n=r.zoomOut.length;e<n;e++)i[r.zoomOut[e]]=-t},_addHooks:function(){Ce(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ae(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys)i._panAnim&&i._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=R(e).multiplyBy(3)),i.panBy(e),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds));else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}je(t)}}});Ve.addInitHook("addHandler","keyboard",Pi),Ve.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var xi=nn.extend({addHooks:function(){Ce(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ae(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Xe(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),i),je(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,o=n?Math.ceil(r/n)*n:r,s=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});Ve.addInitHook("addHandler","scrollWheelZoom",xi),Ve.mergeOptions({tap:!0,tapTolerance:15});var bi=nn.extend({addHooks:function(){Ce(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ae(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(De(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new M(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&fe(n,"leaflet-active"),this._holdTimeout=setTimeout(r(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),Ce(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Ae(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&pe(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new M(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});bt&&!xt&&Ve.addInitHook("addHandler","tap",bi),Ve.mergeOptions({touchZoom:bt&&!it,bounceAtZoomLimits:!0});var wi=nn.extend({addHooks:function(){fe(this._map._container,"leaflet-touch-zoom"),Ce(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){pe(this._map._container,"leaflet-touch-zoom"),Ae(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Ce(document,"touchmove",this._onTouchMove,this),Ce(document,"touchend",this._onTouchEnd,this),De(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var s=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),S(this._animRequest);var a=r(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=T(a,this,!0),De(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,S(this._animRequest),Ae(document,"touchmove",this._onTouchMove),Ae(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ve.addInitHook("addHandler","touchZoom",wi),Ve.BoxZoom=yi,Ve.DoubleClickZoom=gi,Ve.Drag=_i,Ve.Keyboard=Pi,Ve.ScrollWheelZoom=xi,Ve.Tap=bi,Ve.TouchZoom=wi,Object.freeze=e,t.version="1.6.0",t.Control=Je,t.control=Ke,t.Browser=At,t.Evented=A,t.Mixin=on,t.Util=I,t.Class=C,t.Handler=nn,t.extend=n,t.bind=r,t.stamp=s,t.setOptions=p,t.DomEvent=Ge,t.DomUtil=Ie,t.PosAnimation=He,t.Draggable=ln,t.LineUtil=gn,t.PolyUtil=Pn,t.Point=M,t.point=R,t.Bounds=k,t.bounds=B,t.Transformation=U,t.transformation=q,t.Projection=wn,t.LatLng=z,t.latLng=Y,t.LatLngBounds=D,t.latLngBounds=j,t.CRS=F,t.GeoJSON=zn,t.geoJSON=Vn,t.geoJson=Jn,t.Layer=Sn,t.LayerGroup=In,t.layerGroup=function(t,e){return new In(t,e)},t.FeatureGroup=Cn,t.featureGroup=function(t){return new Cn(t)},t.ImageOverlay=Kn,t.imageOverlay=function(t,e,n){return new Kn(t,e,n)},t.VideoOverlay=$n,t.videoOverlay=function(t,e,n){return new $n(t,e,n)},t.SVGOverlay=Qn,t.svgOverlay=function(t,e,n){return new Qn(t,e,n)},t.DivOverlay=ti,t.Popup=ei,t.popup=function(t,e){return new ei(t,e)},t.Tooltip=ni,t.tooltip=function(t,e){return new ni(t,e)},t.Icon=On,t.icon=function(t){return new On(t)},t.DivIcon=ii,t.divIcon=function(t){return new ii(t)},t.Marker=Nn,t.marker=function(t,e){return new Nn(t,e)},t.TileLayer=oi,t.tileLayer=si,t.GridLayer=ri,t.gridLayer=function(t){return new ri(t)},t.SVG=di,t.svg=vi,t.Renderer=ui,t.Canvas=li,t.canvas=hi,t.Path=Rn,t.CircleMarker=kn,t.circleMarker=function(t,e){return new kn(t,e)},t.Circle=Bn,t.circle=function(t,e,n){return new Bn(t,e,n)},t.Polyline=Dn,t.polyline=function(t,e){return new Dn(t,e)},t.Polygon=jn,t.polygon=function(t,e){return new jn(t,e)},t.Rectangle=mi,t.rectangle=function(t,e){return new mi(t,e)},t.Map=Ve,t.map=function(t,e){return new Ve(t,e)};var Ei=window.L;t.noConflict=function(){return window.L=Ei,this},window.L=t}(e)}),pv=fv.noConflict,dv=fv.DomUtil,vv=fv.Point,mv=fv.DivIcon,yv=fv.Marker,gv=fv.DomEvent,_v=fv.Polygon,Pv=fv.LineUtil,xv=fv.FeatureGroup,bv="http://www.w3.org/1999/xhtml",wv={svg:"http://www.w3.org/2000/svg",xhtml:bv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ev(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),wv.hasOwnProperty(e)?{space:wv[e],local:t}:t}function Lv(t){var e=Ev(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===bv&&e.documentElement.namespaceURI===bv?e.createElement(t):e.createElementNS(n,t)}})(e)}var Tv=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Sv=document.documentElement;if(!Sv.matches){var Iv=Sv.webkitMatchesSelector||Sv.msMatchesSelector||Sv.mozMatchesSelector||Sv.oMatchesSelector;Tv=function(t){return function(){return Iv.call(this,t)}}}}var Cv=Tv,Ov={};"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Ov={mouseenter:"mouseover",mouseleave:"mouseout"}));function Av(t,e,n){return t=Mv(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Mv(t,e,n){return function(i){try{t.call(this,this.__data__,e,n)}finally{}}}function Nv(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?e.length=r:delete this.__on}}}function Rv(t,e,n){var i=Ov.hasOwnProperty(t.type)?Av:Mv;return function(r,o,s){var a,u=this.__on,l=i(e,o,s);if(u)for(var h=0,c=u.length;h<c;++h)if((a=u[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=l,a.capture=n),void(a.value=e);this.addEventListener(t.type,l,n),a={type:t.type,name:t.name,value:e,listener:l,capture:n},u?u.push(a):this.__on=[a]}}function kv(){}function Bv(t){return null==t?kv:function(){return this.querySelector(t)}}function Dv(){return[]}function jv(t){return new Array(t.length)}function zv(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}zv.prototype={constructor:zv,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Yv="$";function Xv(t,e,n,i,r,o){for(var s,a=0,u=e.length,l=o.length;a<l;++a)(s=e[a])?(s.__data__=o[a],i[a]=s):n[a]=new zv(t,o[a]);for(;a<u;++a)(s=e[a])&&(r[a]=s)}function Fv(t,e,n,i,r,o,s){var a,u,l,h={},c=e.length,f=o.length,p=new Array(c);for(a=0;a<c;++a)(u=e[a])&&(p[a]=l=Yv+s.call(u,u.__data__,a,e),l in h?r[a]=u:h[l]=u);for(a=0;a<f;++a)(u=h[l=Yv+s.call(t,o[a],a,o)])?(i[a]=u,u.__data__=o[a],h[l]=null):n[a]=new zv(t,o[a]);for(a=0;a<c;++a)(u=e[a])&&h[p[a]]===u&&(r[a]=u)}function Wv(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Zv(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Uv(t){return t.trim().split(/^|\s+/)}function qv(t){return t.classList||new Gv(t)}function Gv(t){this._node=t,this._names=Uv(t.getAttribute("class")||"")}function Hv(t,e){for(var n=qv(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Vv(t,e){for(var n=qv(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Jv(){this.textContent=""}function Kv(){this.innerHTML=""}function $v(){this.nextSibling&&this.parentNode.appendChild(this)}function Qv(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function tm(){return null}function em(){var t=this.parentNode;t&&t.removeChild(this)}function nm(t,e,n){var i=Zv(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}Gv.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var im=[null];function rm(t,e){this._groups=t,this._parents=e}rm.prototype=function(){return new rm([[document.documentElement]],im)}.prototype={constructor:rm,select:function(t){"function"!=typeof t&&(t=Bv(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s,a=e[r],u=a.length,l=i[r]=new Array(u),h=0;h<u;++h)(o=a[h])&&(s=t.call(o,o.__data__,h,a))&&("__data__"in o&&(s.__data__=o.__data__),l[h]=s);return new rm(i,this._parents)},selectAll:function(t){var e;"function"!=typeof t&&(t=null==(e=t)?Dv:function(){return this.querySelectorAll(e)});for(var n=this._groups,i=n.length,r=[],o=[],s=0;s<i;++s)for(var a,u=n[s],l=u.length,h=0;h<l;++h)(a=u[h])&&(r.push(t.call(a,a.__data__,h,u)),o.push(a));return new rm(r,o)},filter:function(t){"function"!=typeof t&&(t=Cv(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,u=i[r]=[],l=0;l<a;++l)(o=s[l])&&t.call(o,o.__data__,l,s)&&u.push(o);return new rm(i,this._parents)},data:function(t,e){if(!t)return d=new Array(this.size()),h=-1,this.each(function(t){d[++h]=t}),d;var n,i=e?Fv:Xv,r=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var s=o.length,a=new Array(s),u=new Array(s),l=new Array(s),h=0;h<s;++h){var c=r[h],f=o[h],p=f.length,d=t.call(c,c&&c.__data__,h,r),v=d.length,m=u[h]=new Array(v),y=a[h]=new Array(v);i(c,f,m,y,l[h]=new Array(p),d,e);for(var g,_,P=0,x=0;P<v;++P)if(g=m[P]){for(P>=x&&(x=P+1);!(_=y[x])&&++x<v;);g._next=_||null}}return(a=new rm(a,r))._enter=u,a._exit=l,a},enter:function(){return new rm(this._enter||this._groups.map(jv),this._parents)},exit:function(){return new rm(this._exit||this._groups.map(jv),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var u,l=e[a],h=n[a],c=l.length,f=s[a]=new Array(c),p=0;p<c;++p)(u=l[p]||h[p])&&(f[p]=u);for(;a<i;++a)s[a]=e[a];return new rm(s,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,s=r[o];--o>=0;)(i=r[o])&&(s&&s!==i.nextSibling&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Wv);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s,a=n[o],u=a.length,l=r[o]=new Array(u),h=0;h<u;++h)(s=a[h])&&(l[h]=s);l.sort(e)}return new rm(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],s=0,a=o.length;s<a;++s)(r=o[s])&&t.call(r,r.__data__,s,o);return this},attr:function(t,e){var n=Ev(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||Zv(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=Uv(t+"");if(arguments.length<2){for(var i=qv(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?Hv:Vv)(this,t)}}:e?function(t){return function(){Hv(this,t)}}:function(t){return function(){Vv(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?Jv:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Kv:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each($v)},lower:function(){return this.each(Qv)},append:function(t){var e="function"==typeof t?t:Lv(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Lv(t),i=null==e?tm:"function"==typeof e?e:Bv(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(em)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?Rv:Nv,null==n&&(n=!1),i=0;i<s;++i)this.each(a(o[i],e,n));return this}var a=this.node().__on;if(a)for(var u,l=0,h=a.length;l<h;++l)for(i=0,u=a[l];i<s;++i)if((r=o[i]).type===u.type&&r.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return nm(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return nm(this,t,e)}})(t,e))}};var om=Math.PI,sm=2*om,am=sm-1e-6;function um(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function lm(){return new um}function hm(t){return function(){return t}}function cm(t){this._context=t}function fm(t){return new cm(t)}function pm(t){return t[0]}function dm(t){return t[1]}function vm(t){return t<0?-1:1}function mm(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(vm(o)+vm(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function ym(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function gm(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function _m(t){this._context=t}function Pm(t){this._context=t}function xm(t){return new _m(t)}um.prototype=lm.prototype={constructor:um,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var o=this._x1,s=this._y1,a=n-t,u=i-e,l=o-t,h=s-e,c=l*l+h*h;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(c>1e-6)if(Math.abs(h*a-u*l)>1e-6&&r){var f=n-o,p=i-s,d=a*a+u*u,v=f*f+p*p,m=Math.sqrt(d),y=Math.sqrt(c),g=r*Math.tan((om-Math.acos((d+c-v)/(2*m*y)))/2),_=g/y,P=g/m;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*l)+","+(e+_*h)),this._+="A"+r+","+r+",0,0,"+ +(h*f>l*p)+","+(this._x1=t+P*a)+","+(this._y1=e+P*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,r,o){t=+t,e=+e,o=!!o;var s=(n=+n)*Math.cos(i),a=n*Math.sin(i),u=t+s,l=e+a,h=1^o,c=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(c<0&&(c=c%sm+sm),c>am?this._+="A"+n+","+n+",0,1,"+h+","+(t-s)+","+(e-a)+"A"+n+","+n+",0,1,"+h+","+(this._x1=u)+","+(this._y1=l):c>1e-6&&(this._+="A"+n+","+n+",0,"+ +(c>=om)+","+h+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},cm.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},_m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gm(this,this._t0,ym(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,gm(this,ym(this,n=mm(this,t,e)),n);break;default:gm(this,this._t0,n=mm(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(function(t){this._context=new Pm(t)}.prototype=Object.create(_m.prototype)).point=function(t,e){_m.prototype.point.call(this,e,t)},Pm.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}};var bm,wm,Em=function(t){return null!=t},Lm=function(t){return null!=t},Tm=function(t){if(!Lm(t))throw new TypeError("Cannot use null or undefined");return t},Sm=function(){return Tm(this).length=0,this},Im="function"!=typeof(bm=Number.isNaN)||bm({})||!bm(NaN)||bm(34)?function(t){return t!=t}:Number.isNaN,Cm=function(){var t=Math.sign;return"function"==typeof t&&1===t(10)&&-1===t(-20)}()?Math.sign:function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1},Om=Math.abs,Am=Math.floor,Mm=Math.max,Nm=function(t){return Mm(0,function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?Cm(t)*Am(Om(t)):t}(t))},Rm=Array.prototype.indexOf,km=Object.prototype.hasOwnProperty,Bm=Math.abs,Dm=Math.floor,jm=function(t){var e,n,i,r;if(!Im(t))return Rm.apply(this,arguments);for(n=Nm(Tm(this).length),i=arguments[1],e=i=isNaN(i)?0:i>=0?Dm(i):Nm(this.length)-Dm(Bm(i));e<n;++e)if(km.call(this,e)&&(r=this[e],Im(r)))return e;return-1},zm=Object.create,Ym=Object.getPrototypeOf,Xm={},Fm=function(){var t=Object.setPrototypeOf,e=arguments[0]||zm;return"function"==typeof t&&Ym(t(e(null),Xm))===Xm},Wm={function:!0,object:!0},Zm=function(t){return Lm(t)&&Wm[typeof t]||!1},Um=Object.create;Fm()||(wm=Qm);!function(){var t,e,n;wm&&(1!==wm.level||(t={},e={},n={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(t){e[t]="__proto__"!==t?n:{configurable:!0,enumerable:!1,writable:!0,value:void 0}}),Object.defineProperties(t,e),Object.defineProperty(wm,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:t})))}();var qm,Gm=Object.prototype.isPrototypeOf,Hm=Object.defineProperty,Vm={configurable:!0,enumerable:!1,writable:!0,value:void 0};qm=function(t,e){if(Tm(t),null===e||Zm(e))return t;throw new TypeError("Prototype must be null or an object")};var Jm,Km,$m,Qm=function(t){var e,n;return t?(2===t.level?t.set?(n=t.set,e=function(t,e){return n.call(qm(t,e),e),t}):e=function(t,e){return qm(t,e).__proto__=e,t}:e=function t(e,n){var i;return qm(e,n),(i=Gm.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===n&&(n=t.nullPolyfill),e.__proto__=n,i&&Hm(t.nullPolyfill,"__proto__",Vm),e},Object.defineProperty(e,"level",{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),n={},i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(i){try{(t=i.set).call(e,n)}catch(t){}if(Object.getPrototypeOf(e)===n)return{set:t,level:2}}return e.__proto__=n,Object.getPrototypeOf(e)===n?{level:2}:((e={}).__proto__=n,Object.getPrototypeOf(e)===n&&{level:1})}()),ty=Fm()?Object.setPrototypeOf:Qm,ey=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t},ny={object:!0,function:!0,undefined:!0},iy=function(t){return!!Em(t)&&hasOwnProperty.call(ny,typeof t)},ry=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(t){return!1}return!function(t){if(!iy(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(t){return!1}}(t)},oy=/^\s*class[\s{/}]/,sy=Function.prototype.toString,ay=function(t){return!!ry(t)&&!oy.test(sy.call(t))},uy=Object.keys,ly=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return uy(Lm(t)?Object(t):t)},hy=Math.max,cy=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,i,r,o=hy(arguments.length,2);for(t=Object(Tm(t)),r=function(i){try{t[i]=e[i]}catch(t){n||(n=t)}},i=1;i<o;++i)e=arguments[i],ly(e).forEach(r);if(void 0!==n)throw n;return t},fy=Array.prototype.forEach,py=Object.create,dy=function(t){var e=py(null);return fy.call(arguments,function(t){Lm(t)&&function(t,e){var n;for(n in t)e[n]=t[n]}(Object(t),e)}),e},vy="razdwatrzy",my=String.prototype.indexOf,yy="function"==typeof vy.contains&&!0===vy.contains("dwa")&&!1===vy.contains("foo")?String.prototype.contains:function(t){return my.call(this,t,arguments[1])>-1},gy=q(function(t){(t.exports=function(t,e){var n,i,r,o,s;return arguments.length<2||"string"!=typeof t?(o=e,e=t,t=null):o=arguments[2],Em(t)?(n=yy.call(t,"c"),i=yy.call(t,"e"),r=yy.call(t,"w")):(n=r=!0,i=!1),s={value:e,configurable:n,enumerable:i,writable:r},o?cy(dy(o),s):s}).gs=function(t,e,n){var i,r,o,s;return"string"!=typeof t?(o=n,n=e,e=t,t=null):o=arguments[3],Em(e)?ay(e)?Em(n)?ay(n)||(o=n,n=void 0):n=void 0:(o=e,e=n=void 0):e=void 0,Em(t)?(i=yy.call(t,"c"),r=yy.call(t,"e")):(i=!0,r=!1),s={get:e,set:n,configurable:i,enumerable:r},o?cy(dy(o),s):s}}),_y=q(function(t,e){var n,i,r,o,s,a,u,l=Function.prototype.apply,h=Function.prototype.call,c=Object.create,f=Object.defineProperty,p=Object.defineProperties,d=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};i=function(t,e){var i,o;return ey(e),o=this,n.call(this,t,i=function(){r.call(o,t,i),l.call(e,this,arguments)}),i.__eeOnceListener__=e,this},s={on:n=function(t,e){var n;return ey(e),d.call(this,"__ee__")?n=this.__ee__:(n=v.value=c(null),f(this,"__ee__",v),v.value=null),n[t]?"object"==typeof n[t]?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},once:i,off:r=function(t,e){var n,i,r,o;if(ey(e),!d.call(this,"__ee__"))return this;if(!(n=this.__ee__)[t])return this;if("object"==typeof(i=n[t]))for(o=0;r=i[o];++o)r!==e&&r.__eeOnceListener__!==e||(2===i.length?n[t]=i[o?0:1]:i.splice(o,1));else i!==e&&i.__eeOnceListener__!==e||delete n[t];return this},emit:o=function(t){var e,n,i,r,o;if(d.call(this,"__ee__")&&(r=this.__ee__[t]))if("object"==typeof r){for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];for(r=r.slice(),e=0;i=r[e];++e)l.call(i,this,o)}else switch(arguments.length){case 1:h.call(r,this);break;case 2:h.call(r,this,arguments[1]);break;case 3:h.call(r,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];l.call(r,this,o)}}},a={on:gy(n),once:gy(i),off:gy(r),emit:gy(o)},u=p({},a),t.exports=e=function(t){return null==t?c(u):p(Object(t),a)},e.methods=s}),Py=(_y.methods,function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")}),xy=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return Py()}try{return __global__||Py()}finally{delete Object.prototype.__global__}}(),by="object"==typeof globalThis&&globalThis&&globalThis.Array===Array?globalThis:xy,wy={object:!0,symbol:!0},Ey=function(t){if(!function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}(t))throw new TypeError(t+" is not a symbol");return t},Ly=Object.create,Ty=Object.defineProperty,Sy=Object.prototype,Iy=Ly(null),Cy=function(t){for(var e,n,i=0;Iy[t+(i||"")];)++i;return Iy[t+=i||""]=!0,Ty(Sy,e="@@"+t,gy.gs(null,function(t){n||(n=!0,Ty(this,e,gy(t)),n=!1)})),e},Oy=by.Symbol,Ay=Object.create(null),My=by.Symbol,Ny=Object.create,Ry=Object.defineProperties,ky=Object.defineProperty;if("function"==typeof My)try{String(My()),$m=!0}catch(t){}else My=null;Km=function(t){if(this instanceof Km)throw new TypeError("Symbol is not a constructor");return Jm(t)};var By=Jm=function t(e){var n;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return $m?My(e):(n=Ny(Km.prototype),e=void 0===e?"":String(e),Ry(n,{__description__:gy("",e),__name__:gy("",Cy(e))}))};!function(t){Object.defineProperties(t,{hasInstance:gy("",Oy&&Oy.hasInstance||t("hasInstance")),isConcatSpreadable:gy("",Oy&&Oy.isConcatSpreadable||t("isConcatSpreadable")),iterator:gy("",Oy&&Oy.iterator||t("iterator")),match:gy("",Oy&&Oy.match||t("match")),replace:gy("",Oy&&Oy.replace||t("replace")),search:gy("",Oy&&Oy.search||t("search")),species:gy("",Oy&&Oy.species||t("species")),split:gy("",Oy&&Oy.split||t("split")),toPrimitive:gy("",Oy&&Oy.toPrimitive||t("toPrimitive")),toStringTag:gy("",Oy&&Oy.toStringTag||t("toStringTag")),unscopables:gy("",Oy&&Oy.unscopables||t("unscopables"))})}(Jm),function(t){Object.defineProperties(t,{for:gy(function(e){return Ay[e]?Ay[e]:Ay[e]=t(String(e))}),keyFor:gy(function(t){var e;for(e in Ey(t),Ay)if(Ay[e]===t)return e})})}(Jm),Ry(Km.prototype,{constructor:gy(Jm),toString:gy("",function(){return this.__name__})}),Ry(Jm.prototype,{toString:gy(function(){return"Symbol ("+Ey(this).__description__+")"}),valueOf:gy(function(){return Ey(this)})}),ky(Jm.prototype,Jm.toPrimitive,gy("",function(){var t=Ey(this);return"symbol"==typeof t?t:t.toString()})),ky(Jm.prototype,Jm.toStringTag,gy("c","Symbol")),ky(Km.prototype,Jm.toStringTag,gy("c",Jm.prototype[Jm.toStringTag])),ky(Km.prototype,Jm.toPrimitive,gy("c",Jm.prototype[Jm.toPrimitive]));var Dy,jy,zy,Yy=function(){var t,e=by.Symbol;if("function"!=typeof e)return!1;t=e("test symbol");try{String(t)}catch(t){return!1}return!!wy[typeof e.iterator]&&!!wy[typeof e.toPrimitive]&&!!wy[typeof e.toStringTag]}()?by.Symbol:By,Xy=Object.prototype.toString,Fy=Xy.call(function(){return arguments}()),Wy=function(t){return Xy.call(t)===Fy},Zy=Object.prototype.toString,Uy=Zy.call(""),qy=function(t){return"string"==typeof t||t&&"object"==typeof t&&(t instanceof String||Zy.call(t)===Uy)||!1},Gy=Yy.iterator,Hy=Array.isArray,Vy=function(t){if(!function(t){return!(!Lm(t)||!Hy(t)&&!qy(t)&&!Wy(t)&&"function"!=typeof t[Gy])}(t))throw new TypeError(t+" is not iterable");return t},Jy=Object.prototype.toString,Ky=/[\n\r\u2028\u2029]/g,$y=function(t){var e=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}(t);return null===e?"<Non-coercible to string value>":(e.length>100&&(e=e.slice(0,99)+"…"),e=e.replace(Ky,function(t){switch(t){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}))},Qy=function(t,e,n){n&&n.errorMessage&&(t=function(t){if(!Em(t))return null;if(iy(t)){var e=t.toString;if("function"!=typeof e)return null;if(e===Jy)return null}try{return""+t}catch(t){return null}}(n.errorMessage));var i=t.indexOf("%v"),r=i>-1?$y(e):null;if(n&&n.name){var o,s,a,u,l=t.indexOf("%n");if(l>-1)return i>-1?(l>i?(o=r,a=i,s=n.name,u=l):(o=n.name,a=l,s=r,u=i),t.slice(0,a)+o+t.slice(a+2,u)+s+t.slice(u+2)):t.slice(0,l)+n.name+t.slice(l+2)}return i>-1?t.slice(0,i)+r+t.slice(i+2):t},tg=function(t,e,n){if(n&&!Em(t)){if("default"in n)return n.default;if(n.isOptional)return null}var i=new(n&&n.Error||TypeError)(Qy(e,t,n));throw n&&n.errorCode&&(i.code=n.errorCode),i},eg=function(t){if(ay(t))return t;var e=arguments[1],n=e&&e.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return tg(t,n,e)},ng=Object.prototype.toString,ig=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/),rg=Yy.iterator,og=Array.isArray,sg=Function.prototype.call,ag={configurable:!0,enumerable:!0,writable:!0,value:null},ug=Object.defineProperty,lg=function(){var t,e,n=Array.from;return"function"==typeof n&&(e=n(t=["raz","dwa"]),Boolean(e&&e!==t&&"dwa"===e[1]))}()?Array.from:function(t){var e,n,i,r,o,s,a,u,l,h,c=arguments[1],f=arguments[2];if(t=Object(Tm(t)),Lm(c)&&ey(c),this&&this!==Array&&function(t){return"function"==typeof t&&ig(ng.call(t))}(this))e=this;else{if(!c){if(Wy(t))return 1!==(o=t.length)?Array.apply(null,t):((r=new Array(1))[0]=t[0],r);if(og(t)){for(r=new Array(o=t.length),n=0;n<o;++n)r[n]=t[n];return r}}r=[]}if(!og(t))if(void 0!==(l=t[rg])){for(a=ey(l).call(t),e&&(r=new e),u=a.next(),n=0;!u.done;)h=c?sg.call(c,f,u.value,n):u.value,e?(ag.value=h,ug(r,n,ag)):r[n]=h,u=a.next(),++n;o=n}else if(qy(t)){for(o=t.length,e&&(r=new e),n=0,i=0;n<o;++n)h=t[n],n+1<o&&(s=h.charCodeAt(0))>=55296&&s<=56319&&(h+=t[++n]),h=c?sg.call(c,f,h,i):h,e?(ag.value=h,ug(r,i,ag)):r[i]=h,++i;o=i}if(void 0===o)for(o=Nm(t.length),e&&(r=new e(o)),n=0;n<o;++n)h=c?sg.call(c,f,t[n],n):t[n],e?(ag.value=h,ug(r,n,ag)):r[n]=h;return e&&(ag.value=null,r.length=o),r},hg=Function.prototype.bind,cg=Function.prototype.call,fg=Object.keys,pg=Object.prototype.propertyIsEnumerable,dg=(Dy="forEach",function(t,e){var n,i=arguments[2],r=arguments[3];return t=Object(Tm(t)),ey(e),n=fg(t),r&&n.sort("function"==typeof r?hg.call(r,t):void 0),"function"!=typeof Dy&&(Dy=n[Dy]),cg.call(Dy,n,function(n,r){return pg.call(t,n)?cg.call(e,i,t[n],n,t,r):jy})}),vg=Function.prototype.call,mg=Function.prototype.bind,yg=Object.defineProperty,gg=Object.prototype.hasOwnProperty;zy=function(t,e,n){var i,r=function(t){if(Em(t))return t;var e=arguments[1],n=e&&e.name?"Expected a value for %n, received %v":"Cannot use %v";return tg(t,n,e)}(e)&&eg(e.value);return delete(i=function(t){var e=Object(Tm(t)),n=arguments[1],i=Object(arguments[2]);if(e!==t&&!n)return e;var r={};return n?lg(n,function(e){(i.ensure||e in t)&&(r[e]=t[e])}):cy(r,t),r}(e)).writable,delete i.value,i.get=function(){return!n.overwriteDefinition&&gg.call(this,t)?r:(e.value=mg.call(r,n.resolveContext?n.resolveContext(this):this),yg(this,t,e),this[t])},i};var _g,Pg=Object.defineProperty,xg=Object.defineProperties,bg=_g=function(t,e){if(!(this instanceof _g))throw new TypeError("Constructor requires 'new'");xg(this,{__list__:gy("w",Tm(t)),__context__:gy("w",e),__nextIndex__:gy("w",0)}),e&&(ey(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))};delete _g.prototype.constructor,xg(_g.prototype,cy({_next:gy(function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:gy(function(){return this._createResult(this._next())}),_createResult:gy(function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}}),_resolve:gy(function(t){return this.__list__[t]}),_unBind:gy(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:gy(function(){return"[object "+(this[Yy.toStringTag]||"Object")+"]"})},function(t){var e=dy(arguments[1]);return Em(e.resolveContext)&&eg(e.resolveContext),function(t,e){var n={},i=arguments[2];return ey(e),dg(t,function(t,r,o,s){n[r]=vg.call(e,i,t,r,o,s)}),n}(t,function(t,n){return zy(n,t,e)})}({_onAdd:gy(function(t){t>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(e,n){e>=t&&(this.__redo__[n]=++e)},this),this.__redo__.push(t)):Pg(this,"__redo__",gy("c",[t])))}),_onDelete:gy(function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach(function(e,n){e>t&&(this.__redo__[n]=--e)},this)))}),_onClear:gy(function(){this.__redo__&&Sm.call(this.__redo__),this.__nextIndex__=0})}))),Pg(_g.prototype,Yy.iterator,gy(function(){return this}));var wg,Eg,Lg,Tg=q(function(t){var e,n=Object.defineProperty;e=t.exports=function(t,i){if(!(this instanceof e))throw new TypeError("Constructor requires 'new'");bg.call(this,t),i=i?yy.call(i,"key+value")?"key+value":yy.call(i,"key")?"key":"value":"value",n(this,"__kind__",gy("",i))},ty&&ty(e,bg),delete e.prototype.constructor,e.prototype=Object.create(bg.prototype,{_resolve:gy(function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t})}),n(e.prototype,Yy.toStringTag,gy("c","Array Iterator"))}),Sg=q(function(t){var e,n=Object.defineProperty;e=t.exports=function(t){if(!(this instanceof e))throw new TypeError("Constructor requires 'new'");t=String(t),bg.call(this,t),n(this,"__length__",gy("",t.length))},ty&&ty(e,bg),delete e.prototype.constructor,e.prototype=Object.create(bg.prototype,{_next:gy(function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()}),_resolve:gy(function(t){var e,n=this.__list__[t];return this.__nextIndex__===this.__length__?n:(e=n.charCodeAt(0))>=55296&&e<=56319?n+this.__list__[this.__nextIndex__++]:n})}),n(e.prototype,Yy.toStringTag,gy("c","String Iterator"))}),Ig=Yy.iterator,Cg=function(t){return"function"==typeof Vy(t)[Ig]?t[Ig]():Wy(t)?new Tg(t):qy(t)?new Sg(t):new Tg(t)},Og=Array.isArray,Ag=Function.prototype.call,Mg=Array.prototype.some,Ng=function(t,e){var n,i,r,o,s,a,u,l,h=arguments[2];if(Og(t)||Wy(t)?n="array":qy(t)?n="string":t=Cg(t),ey(e),r=function(){o=!0},"array"!==n)if("string"!==n)for(i=t.next();!i.done;){if(Ag.call(e,h,i.value,r),o)return;i=t.next()}else for(a=t.length,s=0;s<a&&(u=t[s],s+1<a&&(l=u.charCodeAt(0))>=55296&&l<=56319&&(u+=t[++s]),Ag.call(e,h,u,r),!o);++s);else Mg.call(t,function(t){return Ag.call(e,h,t,r),o})},Rg=q(function(t){var e,n=Yy.toStringTag,i=Object.defineProperty;e=t.exports=function(t,n){return this instanceof e?(bg.call(this,t.__setData__,t),n=n&&yy.call(n,"key+value")?"key+value":"value",i(this,"__kind__",gy("",n))):new e(t,n)},ty&&ty(e,bg),e.prototype=Object.create(bg.prototype,{constructor:gy(e),_resolve:gy(function(t){return"value"===this.__kind__?this.__list__[t]:[this.__list__[t],this.__list__[t]]}),toString:gy(function(){return"[object Set Iterator]"})}),i(e.prototype,n,gy("c","Set Iterator"))}),kg="undefined"!=typeof Set&&"[object Set]"===Object.prototype.toString.call(Set.prototype),Bg=Vy,Dg=Function.prototype.call,jg=Object.defineProperty,zg=Object.getPrototypeOf;kg&&(Lg=Set);var Yg=wg=function(){var t,e=arguments[0];if(!(this instanceof wg))throw new TypeError("Constructor requires 'new'");return t=kg&&ty?ty(new Lg,zg(this)):this,Em(e)&&Bg(e),jg(t,"__setData__",gy("c",[])),e?(Ng(e,function(t){-1===jm.call(this,t)&&this.push(t)},t.__setData__),t):t};kg&&(ty&&ty(wg,Lg),wg.prototype=Object.create(Lg.prototype,{constructor:gy(wg)})),_y(Object.defineProperties(wg.prototype,{add:gy(function(t){return this.has(t)?this:(this.emit("_add",this.__setData__.push(t)-1,t),this)}),clear:gy(function(){this.__setData__.length&&(Sm.call(this.__setData__),this.emit("_clear"))}),delete:gy(function(t){var e=jm.call(this.__setData__,t);return-1!==e&&(this.__setData__.splice(e,1),this.emit("_delete",e,t),!0)}),entries:gy(function(){return new Rg(this,"key+value")}),forEach:gy(function(t){var e,n,i,r=arguments[1];for(ey(t),n=(e=this.values())._next();void 0!==n;)i=e._resolve(n),Dg.call(t,r,i,i,this),n=e._next()}),has:gy(function(t){return-1!==jm.call(this.__setData__,t)}),keys:gy(Eg=function(){return this.values()}),size:gy.gs(function(){return this.__setData__.length}),values:gy(function(){return new Rg(this)}),toString:gy(function(){return"[object Set]"})})),jg(wg.prototype,Yy.iterator,gy(Eg)),jg(wg.prototype,Yy.toStringTag,gy("c","Set"));var Xg,Fg=function(){var t,e;return"function"==typeof Set&&(t=new Set(["raz","dwa","trzy"]),"[object Set]"===String(t)&&3===t.size&&"function"==typeof t.add&&"function"==typeof t.clear&&"function"==typeof t.delete&&"function"==typeof t.entries&&"function"==typeof t.forEach&&"function"==typeof t.has&&"function"==typeof t.keys&&"function"==typeof t.values&&!1===(e=t.values().next()).done&&"raz"===e.value)}()?Set:Yg,Wg=function(t){if(!Zm(t))throw new TypeError(t+" is not an Object");return t},Zg=Object.create(null),Ug=Math.random,qg="function"==typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap),Gg=Yy.toStringTag,Hg=Array.isArray,Vg=Object.defineProperty,Jg=Object.prototype.hasOwnProperty,Kg=Object.getPrototypeOf,$g=Xg=function(){var t,e=arguments[0];if(!(this instanceof Xg))throw new TypeError("Constructor requires 'new'");return t=qg&&ty&&WeakMap!==Xg?ty(new WeakMap,Kg(this)):this,Lm(e)&&(Hg(e)||(e=Cg(e))),Vg(t,"__weakMapData__",gy("c","$weakMap$"+function(){var t;do{t=Ug().toString(36).slice(2)}while(Zg[t]);return t}())),e?(Ng(e,function(e){Tm(e),t.set(e[0],e[1])}),t):t};qg&&(ty&&ty(Xg,WeakMap),Xg.prototype=Object.create(WeakMap.prototype,{constructor:gy(Xg)})),Object.defineProperties(Xg.prototype,{delete:gy(function(t){return!!Jg.call(Wg(t),this.__weakMapData__)&&(delete t[this.__weakMapData__],!0)}),get:gy(function(t){if(Jg.call(Wg(t),this.__weakMapData__))return t[this.__weakMapData__]}),has:gy(function(t){return Jg.call(Wg(t),this.__weakMapData__)}),set:gy(function(t,e){return Vg(Wg(t),this.__weakMapData__,gy("c",e)),this}),toString:gy(function(){return"[object WeakMap]"})}),Vg(Xg.prototype,Gg,gy("c","WeakMap"));var Qg=function(){var t,e;if("function"!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return"[object WeakMap]"===String(t)&&"function"==typeof t.set&&t.set({},1)===t&&"function"==typeof t.delete&&"function"==typeof t.has&&"one"===t.get(e)}()?WeakMap:$g,t_=1,e_=2,n_=8|e_,i_=12|(t_|e_),r_=function(t,e,n){return t[NP]=e,t[MP].fire("mode",{mode:e}),e&t_?t.dragging.disable():t.dragging.enable(),Array.from(OP.get(t)).forEach(function(t){t[kP].forEach(function(t){e&e_?dv.removeClass(t._icon,"disabled"):dv.addClass(t._icon,"disabled")})}),s_(t,e),n.notifyAfterEditExit&&t[RP](),t[RP]=function(){},e},o_=function(t,e){var n=Array.from(OP.get(t)||[]).map(function(t){var e=t.getLatLngs();return[].concat(d(e[0]),[e[0][0]])});t.hasOwnProperty(MP)&&t[MP].fire("markers",{latLngs:n,eventType:e})},s_=function(t,e){var n=a(a(a(a(a({},0,"mode-none"),t_,"mode-create"),e_,"mode-edit"),4,"mode-delete"),8,"mode-append");Object.keys(n).forEach(function(i){var r=n[i],o=e&i;dv.removeClass(t._container,r),o&&dv.addClass(t._container,r),0===e&&dv.addClass(t._container,n[0])})},a_=q(function(t,e){(function(){var e,n,i,r,o,s,a,u=function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,i){return e.apply(this,arguments)};case 4:return function(t,n,i,r){return e.apply(this,arguments)};case 5:return function(t,n,i,r,o){return e.apply(this,arguments)};case 6:return function(t,n,i,r,o,s){return e.apply(this,arguments)};case 7:return function(t,n,i,r,o,s,a){return e.apply(this,arguments)};case 8:return function(t,n,i,r,o,s,a,u){return e.apply(this,arguments)};case 9:return function(t,n,i,r,o,s,a,u,l){return e.apply(this,arguments)};case 10:return function(t,n,i,r,o,s,a,u,l,h){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}},l=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n},h=function(){return Array.prototype.slice.call(arguments)},c=function(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))},f=function(t){return function(){return!t.apply(this,arguments)}},p=function(t,e){var n;e=e||[];var i=(t=t||[]).length,r=e.length,o=[];for(n=0;n<i;)o[o.length]=t[n],n+=1;for(n=0;n<r;)o[o.length]=e[n],n+=1;return o},d=function(t,e,n){for(var i=0,r=n.length;i<r;){if(t(e,n[i]))return!0;i+=1}return!1},v=function(t,e){for(var n=0,i=e.length,r=[];n<i;)t(e[n])&&(r[r.length]=e[n]),n+=1;return r},m=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)},y=function(t){return t},g=function(){var t=Object.prototype.toString;return"[object Arguments]"===t.call(arguments)?function(e){return"[object Arguments]"===t.call(e)}:function(t){return m("callee",t)}}(),_=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},P=function(t){return"[object Function]"===Object.prototype.toString.call(t)},x=Number.isInteger||function(t){return t<<0===t},b=function(t){return"[object Number]"===Object.prototype.toString.call(t)},w=function(t){return"[object Object]"===Object.prototype.toString.call(t)},E=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},L=function(t){return"[object String]"===Object.prototype.toString.call(t)},T=function(t){return"function"==typeof t["@@transducer/step"]},S=function(t,e){for(var n=0,i=e.length,r=Array(i);n<i;)r[n]=t(e[n]),n+=1;return r},I=function(t,e){return function(){return e.call(this,t.apply(this,arguments))}},C=function(t,e){return function(){var n=this;return t.apply(n,arguments).then(function(t){return e.call(n,t)})}},O=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'},A=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}},M=function t(e,n,i){switch(arguments.length){case 1:return t(e,0,e.length);case 2:return t(e,n,e.length);default:for(var r=[],o=0,s=Math.max(0,Math.min(e.length,i)-n);o<s;)r[o]=e[n+o],o+=1;return r}},N=(e=function(t){return(t<10?"0":"")+t},"function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}),R={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}},k=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},function(e){return new t(e)}}(),B="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,i=arguments.length;n<i;){var r=arguments[n];if(null!=r)for(var o in r)m(o,r)&&(e[o]=r[o]);n+=1}return e},D=function(t,e){return function(){var n=arguments.length;if(0===n)return e();var i=arguments[n-1];return _(i)||"function"!=typeof i[t]?e.apply(this,arguments):i[t].apply(i,M(arguments,0,n-1))}},j=function(t){return function e(n){return 0===arguments.length||E(n)?e:t.apply(this,arguments)}},z=function(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return E(n)?e:j(function(e){return t(n,e)});default:return E(n)&&E(i)?e:E(n)?j(function(e){return t(e,i)}):E(i)?j(function(e){return t(n,e)}):t(n,i)}}},Y=function(t){return function e(n,i,r){switch(arguments.length){case 0:return e;case 1:return E(n)?e:z(function(e,i){return t(n,e,i)});case 2:return E(n)&&E(i)?e:E(n)?z(function(e,n){return t(e,i,n)}):E(i)?z(function(e,i){return t(n,e,i)}):j(function(e){return t(n,i,e)});default:return E(n)&&E(i)&&E(r)?e:E(n)&&E(i)?z(function(e,n){return t(e,n,r)}):E(n)&&E(r)?z(function(e,n){return t(e,i,n)}):E(i)&&E(r)?z(function(e,i){return t(n,e,i)}):E(n)?j(function(e){return t(e,i,r)}):E(i)?j(function(e){return t(n,e,r)}):E(r)?j(function(e){return t(n,i,e)}):t(n,i,r)}}},X=function t(e,n,i){return function(){for(var r=[],o=0,s=e,a=0;a<n.length||o<arguments.length;){var l;a<n.length&&(!E(n[a])||o>=arguments.length)?l=n[a]:(l=arguments[o],o+=1),r[a]=l,E(l)||(s-=1),a+=1}return s<=0?i.apply(this,r):u(s,t(e,r,i))}},F=function(t,e,n){return function(){var i=arguments.length;if(0===i)return n();var r=arguments[i-1];if(!_(r)){var o=M(arguments,0,i-1);if("function"==typeof r[t])return r[t].apply(r,o);if(T(r))return e.apply(null,o)(r)}return n.apply(this,arguments)}},W=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=A(this.xf["@@transducer/step"](t,!1))),t},z(function(e,n){return new t(e,n)})}(),Z=function(){function t(t,e){this.xf=e,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.any=!0,t=A(this.xf["@@transducer/step"](t,!0))),t},z(function(e,n){return new t(e,n)})}(),U=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.store(e),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t.prototype.getCopy=function(){return p(M(this.acc,this.pos),M(this.acc,0,this.pos))},z(function(e,n){return new t(e,n)})}(),q=function(){function t(t,e){this.xf=e,this.n=t}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=R.result,t.prototype["@@transducer/step"]=function(t,e){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,e)},z(function(e,n){return new t(e,n)})}(),G=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(e),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},z(function(e,n){return new t(e,n)})}(),H=function(){function t(t,e){this.xf=e,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/init"]()},t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,e)&&(n=!0):this.seenFirstValue=!0,this.lastValue=e,n?t:this.xf["@@transducer/step"](t,e)},z(function(e,n){return new t(e,n)})}(),V=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=R.result,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},z(function(e,n){return new t(e,n)})}(),J=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=R.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},z(function(e,n){return new t(e,n)})}(),K=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=A(this.xf["@@transducer/step"](t,e))),t},z(function(e,n){return new t(e,n)})}(),$=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.found=!0,t=A(this.xf["@@transducer/step"](t,this.idx))),t},z(function(e,n){return new t(e,n)})}(),Q=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.last=e),t},z(function(e,n){return new t(e,n)})}(),tt=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.lastIdx=this.idx),t},z(function(e,n){return new t(e,n)})}(),et=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=R.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},z(function(e,n){return new t(e,n)})}(),nt=function(){function t(t,e,n,i){this.valueFn=t,this.valueAcc=e,this.keyFn=n,this.xf=i,this.inputs={}}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){var e;for(e in this.inputs)if(m(e,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[e]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n=this.keyFn(e);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],e),t},X(4,[],function(e,n,i,r){return new t(e,n,i,r)})}(),it=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=R.result,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var n=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.i>=this.n?A(n):n},z(function(e,n){return new t(e,n)})}(),rt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=R.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):A(t)},z(function(e,n){return new t(e,n)})}(),ot=z(function(t,e){return Number(t)+Number(e)}),st=Y(function(t,e,n){if(e>=n.length||e<-n.length)return n;var i=(e<0?n.length:0)+e,r=p(n);return r[i]=t(n[i]),r}),at=z(F("all",W,function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0})),ut=j(function(t){return function(){return t}}),lt=z(function(t,e){return t&&e}),ht=z(F("any",Z,function(t,e){for(var n=0;n<e.length;){if(t(e[n]))return!0;n+=1}return!1})),ct=z(F("aperture",U,function(t,e){for(var n=0,i=e.length-(t-1),r=new Array(i>=0?i:0);n<i;)r[n]=M(e,n,n+t),n+=1;return r})),ft=z(function(t,e){return p(e,[t])}),pt=z(function(t,e){return t.apply(this,e)}),dt=Y(function(t,e,n){var i={};for(var r in n)i[r]=n[r];return i[t]=e,i}),vt=Y(function t(e,n,i){switch(e.length){case 0:return n;case 1:return dt(e[0],n,i);default:return dt(e[0],t(M(e,1),n,Object(i[e[0]])),i)}}),mt=z(function(t,e){return u(t.length,function(){return t.apply(e,arguments)})}),yt=Y(function(t,e,n){if(t>e)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<t?t:n>e?e:n}),gt=j(function(t){return function(e,n){return t(e,n)?-1:t(n,e)?1:0}}),_t=z(function(t,e){return 1===t?j(e):u(t,X(t,[],e))}),Pt=ot(-1),xt=z(function(t,e){return null==e||e!=e?t:e}),bt=Y(function(t,e,n){for(var i=[],r=0,o=e.length;r<o;)d(t,e[r],n)||d(t,e[r],i)||i.push(e[r]),r+=1;return i}),wt=z(function(t,e){var n={};for(var i in e)i!==t&&(n[i]=e[i]);return n}),Et=z(function t(e,n){switch(e.length){case 0:return n;case 1:return wt(e[0],n);default:var i=e[0],r=M(e,1);return null==n[i]?n:dt(i,t(r,n[i]),n)}}),Lt=z(function(t,e){return t/e}),Tt=z(F("dropWhile",V,function(t,e){for(var n=0,i=e.length;n<i&&t(e[n]);)n+=1;return M(e,n)})),St=j(function(t){return null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():_(t)?[]:L(t)?"":w(t)?{}:g(t)?function(){return arguments}():void 0}),It=z(function t(e,n){var i,r,o,s={};for(r in n)o=typeof(i=e[r]),s[r]="function"===o?i(n[r]):"object"===o?t(e[r],n[r]):n[r];return s}),Ct=z(F("find",K,function(t,e){for(var n=0,i=e.length;n<i;){if(t(e[n]))return e[n];n+=1}})),Ot=z(F("findIndex",$,function(t,e){for(var n=0,i=e.length;n<i;){if(t(e[n]))return n;n+=1}return-1})),At=z(F("findLast",Q,function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return e[n];n-=1}})),Mt=z(F("findLastIndex",tt,function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return n;n-=1}return-1})),Nt=z(D("forEach",function(t,e){for(var n=e.length,i=0;i<n;)t(e[i]),i+=1;return e})),Rt=j(function(t){for(var e={},n=0;n<t.length;)e[t[n][0]]=t[n][1],n+=1;return e}),kt=z(function(t,e){for(var n=[],i=0,r=e.length;i<r;){for(var o=i+1;o<r&&t(e[i],e[o]);)o+=1;n.push(e.slice(i,o)),i=o}return n}),Bt=z(function(t,e){return t>e}),Dt=z(function(t,e){return t>=e}),jt=z(m),zt=z(function(t,e){return t in e}),Yt=z(function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}),Xt=j(y),Ft=Y(function(t,e,n){return _t(Math.max(t.length,e.length,n.length),function(){return t.apply(this,arguments)?e.apply(this,arguments):n.apply(this,arguments)})}),Wt=ot(1),Zt=Y(function(t,e,n){t=t<n.length&&t>=0?t:n.length;var i=M(n);return i.splice(t,0,e),i}),Ut=Y(function(t,e,n){return t=t<n.length&&t>=0?t:n.length,p(p(M(n,0,t),e),M(n,t))}),qt=z(D("intersperse",function(t,e){for(var n=[],i=0,r=e.length;i<r;)i===r-1?n.push(e[i]):n.push(e[i],t),i+=1;return n})),Gt=z(function(t,e){return null!=e&&e.constructor===t||e instanceof t}),Ht=j(function(t){return!!_(t)||!!t&&("object"==typeof t&&(!L(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),Vt=j(function(t){return null==t}),Jt=function(){var t=!{toString:null}.propertyIsEnumerable("toString"),e=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],n=function(){return arguments.propertyIsEnumerable("length")}(),i=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1};return"function"!=typeof Object.keys||n?j(function(r){if(Object(r)!==r)return[];var o,s,a=[],u=n&&g(r);for(o in r)!m(o,r)||u&&"length"===o||(a[a.length]=o);if(t)for(s=e.length-1;s>=0;)m(o=e[s],r)&&!i(a,o)&&(a[a.length]=o),s-=1;return a}):j(function(t){return Object(t)!==t?[]:Object.keys(t)})}(),Kt=j(function(t){var e,n=[];for(e in t)n[n.length]=e;return n}),$t=j(function(t){return null!=t&&b(t.length)?t.length:NaN}),Qt=z(function(t,e){return t<e}),te=z(function(t,e){return t<=e}),ee=Y(function(t,e,n){for(var i=0,r=n.length,o=[],s=[e];i<r;)s=t(s[0],n[i]),o[i]=s[1],i+=1;return[s[0],o]}),ne=Y(function(t,e,n){for(var i=n.length-1,r=[],o=[e];i>=0;)o=t(o[0],n[i]),r[i]=o[1],i-=1;return[o[0],r]}),ie=z(function(t,e){return e.match(t)||[]}),re=z(function(t,e){return x(t)?!x(e)||e<1?NaN:(t%e+e)%e:NaN}),oe=z(function(t,e){return e>t?e:t}),se=Y(function(t,e,n){return t(n)>t(e)?n:e}),ae=z(function(t,e){return B({},t,e)}),ue=j(function(t){return B.apply(null,[{}].concat(t))}),le=Y(function(t,e,n){var i,r={};for(i in e)m(i,e)&&(r[i]=m(i,n)?t(i,e[i],n[i]):e[i]);for(i in n)m(i,n)&&!m(i,r)&&(r[i]=n[i]);return r}),he=z(function(t,e){return e<t?e:t}),ce=Y(function(t,e,n){return t(n)<t(e)?n:e}),fe=z(function(t,e){return t%e}),pe=z(function(t,e){return t*e}),de=z(function(t,e){switch(t){case 0:return function(){return e.call(this)};case 1:return function(t){return e.call(this,t)};case 2:return function(t,n){return e.call(this,t,n)};case 3:return function(t,n,i){return e.call(this,t,n,i)};case 4:return function(t,n,i,r){return e.call(this,t,n,i,r)};case 5:return function(t,n,i,r,o){return e.call(this,t,n,i,r,o)};case 6:return function(t,n,i,r,o,s){return e.call(this,t,n,i,r,o,s)};case 7:return function(t,n,i,r,o,s,a){return e.call(this,t,n,i,r,o,s,a)};case 8:return function(t,n,i,r,o,s,a,u){return e.call(this,t,n,i,r,o,s,a,u)};case 9:return function(t,n,i,r,o,s,a,u,l){return e.call(this,t,n,i,r,o,s,a,u,l)};case 10:return function(t,n,i,r,o,s,a,u,l,h){return e.call(this,t,n,i,r,o,s,a,u,l,h)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),ve=j(function(t){return-t}),me=z(f(F("any",Z,ht))),ye=j(function(t){return!t}),ge=z(function(t,e){var n=t<0?e.length+t:t;return L(e)?e.charAt(n):e[n]}),_e=j(function(t){return _t(t<0?1:t+1,function(){return ge(t,arguments)})}),Pe=z(function(t,e){var n={};return n[t]=e,n}),xe=j(function(t){return[t]}),be=j(function(t){var e,n=!1;return u(t.length,function(){return n?e:(n=!0,e=t.apply(this,arguments))})}),we=z(function(t,e){return t||e}),Ee=(n=function(t){return{value:t,map:function(e){return n(e(t))}}},Y(function(t,e,i){return t(function(t){return n(e(t))})(i).value})),Le=z(function(t,e){return[t,e]}),Te=z(function(t,e){for(var n=e,i=0;i<t.length;){if(null==n)return;n=n[t[i]],i+=1}return n}),Se=Y(function(t,e,n){return xt(t,Te(e,n))}),Ie=Y(function(t,e,n){return e.length>0&&t(Te(e,n))}),Ce=z(function(t,e){for(var n={},i=0;i<t.length;)t[i]in e&&(n[t[i]]=e[t[i]]),i+=1;return n}),Oe=z(function(t,e){for(var n={},i=0,r=t.length;i<r;){var o=t[i];n[o]=e[o],i+=1}return n}),Ae=z(function(t,e){var n={};for(var i in e)t(e[i],i,e)&&(n[i]=e[i]);return n}),Me=z(function(t,e){return p([t],e)}),Ne=z(function(t,e){return e[t]}),Re=Y(function(t,e,n){return Gt(t,n[e])}),ke=Y(function(t,e,n){return null!=n&&m(e,n)?n[e]:t}),Be=Y(function(t,e,n){return t(n[e])}),De=z(function(t,e){for(var n=t.length,i=[],r=0;r<n;)i[r]=e[t[r]],r+=1;return i}),je=z(function(t,e){if(!b(t)||!b(e))throw new TypeError("Both arguments to range must be numbers");for(var n=[],i=t;i<e;)n.push(i),i+=1;return n}),ze=Y(function(t,e,n){for(var i=n.length-1;i>=0;)e=t(e,n[i]),i-=1;return e}),Ye=j(A),Xe=Y(function(t,e,n){return p(M(n,0,Math.min(t,n.length)),M(n,Math.min(n.length,t+e)))}),Fe=Y(function(t,e,n){return n.replace(t,e)}),We=j(function(t){return L(t)?t.split("").reverse().join(""):M(t).reverse()}),Ze=Y(function(t,e,n){for(var i=0,r=n.length,o=[e];i<r;)e=t(e,n[i]),o[i+1]=e,i+=1;return o}),Ue=Y(function(t,e,n){return Ee(t,ut(e),n)}),qe=Y(D("slice",function(t,e,n){return Array.prototype.slice.call(n,t,e)})),Ge=z(function(t,e){return M(e).sort(t)}),He=z(function(t,e){return M(e).sort(function(e,n){var i=t(e),r=t(n);return i<r?-1:i>r?1:0})}),Ve=z(function(t,e){return[qe(0,t,e),qe(t,$t(e),e)]}),Je=z(function(t,e){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],i=0;i<e.length;)n.push(qe(i,i+=t,e));return n}),Ke=z(function(t,e){for(var n=0,i=e.length,r=[];n<i&&!t(e[n]);)r.push(e[n]),n+=1;return[r,M(e,n)]}),$e=z(function(t,e){return Number(t)-Number(e)}),Qe=D("tail",qe(1,1/0)),tn=z(F("take",it,function(t,e){return qe(0,t<0?1/0:t,e)})),en=z(function(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return M(e,n+1,1/0)}),nn=z(F("takeWhile",rt,function(t,e){for(var n=0,i=e.length;n<i&&t(e[n]);)n+=1;return M(e,0,n)})),rn=z(function(t,e){return t(e),e}),on=z(function(t,e){var n,i=Number(e),r=0;if(i<0||isNaN(i))throw new RangeError("n must be a non-negative number");for(n=new Array(i);r<i;)n[r]=t(r),r+=1;return n}),sn=j(function(t){var e=[];for(var n in t)m(n,t)&&(e[e.length]=[n,t[n]]);return e}),an=j(function(t){var e=[];for(var n in t)e[e.length]=[n,t[n]];return e}),un=j(function(t){for(var e=0,n=[];e<t.length;){for(var i=t[e],r=0;r<i.length;)void 0===n[r]&&(n[r]=[]),n[r].push(i[r]),r+=1;e+=1}return n}),ln=(i="\t\n\v\f\r \u2028\u2029\ufeff","function"==typeof String.prototype.trim&&!i.trim()&&"".trim()?j(function(t){return t.trim()}):j(function(t){var e=new RegExp("^["+i+"]["+i+"]*"),n=new RegExp("["+i+"]["+i+"]*$");return t.replace(e,"").replace(n,"")})),hn=z(function(t,e){return u(t.length,function(){try{return t.apply(this,arguments)}catch(t){return e.apply(this,p([t],arguments))}})}),cn=j(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),fn=j(function(t){return function(){return t(M(arguments))}}),pn=j(function(t){return de(1,t)}),dn=z(function(t,e){return _t(t,function(){for(var n,i=1,r=e,o=0;i<=t&&"function"==typeof r;)n=i===t?arguments.length:o+r.length,r=r.apply(this,M(arguments,o,n)),i+=1,o=n;return r})}),vn=z(function(t,e){for(var n=t(e),i=[];n&&n.length;)i[i.length]=n[0],n=t(n[1]);return i}),mn=z(function(t,e){for(var n,i=0,r=e.length,o=[];i<r;)n=e[i],d(t,n,o)||(o[o.length]=n),i+=1;return o}),yn=Y(function(t,e,n){return t(n)?n:e(n)}),gn=Y(function(t,e,n){for(var i=n;!t(i);)i=e(i);return i}),_n=Y(function(t,e,n){return st(ut(e),t,n)}),Pn=z(function(t,e){return _t(e.length,function(){for(var n=[],i=0;i<e.length;)n.push(e[i].call(this,arguments[i])),i+=1;return t.apply(this,n.concat(M(arguments,e.length)))})}),xn=j(function(t){for(var e=Jt(t),n=e.length,i=[],r=0;r<n;)i[r]=t[e[r]],r+=1;return i}),bn=j(function(t){var e,n=[];for(e in t)n[n.length]=t[e];return n}),wn=(r=function(t){return{value:t,map:function(){return this}}},z(function(t,e){return t(r)(e).value})),En=Y(function(t,e,n){return t(n)?e(n):n}),Ln=z(function(t,e){for(var n in t)if(m(n,t)&&!t[n](e[n]))return!1;return!0}),Tn=z(function(t,e){return _t(t.length,function(){return e.apply(this,p([t],arguments))})}),Sn=z(function(t,e){for(var n,i=0,r=t.length,o=e.length,s=[];i<r;){for(n=0;n<o;)s[s.length]=[t[i],e[n]],n+=1;i+=1}return s}),In=z(function(t,e){for(var n=[],i=0,r=Math.min(t.length,e.length);i<r;)n[i]=[t[i],e[i]],i+=1;return n}),Cn=z(function(t,e){for(var n=0,i=Math.min(t.length,e.length),r={};n<i;)r[t[n]]=e[n],n+=1;return r}),On=Y(function(t,e,n){for(var i=[],r=0,o=Math.min(e.length,n.length);r<o;)i[r]=t(e[r],n[r]),r+=1;return i}),An=ut(!1),Mn=ut(!0),Nn=function t(e,n,i,r){var o=function(o){for(var s=n.length,a=0;a<s;){if(e===n[a])return i[a];a+=1}for(var u in n[a+1]=e,i[a+1]=o,e)o[u]=r?t(e[u],n,i,!0):e[u];return o};switch(cn(e)){case"Object":return o({});case"Array":return o([]);case"Date":return new Date(e.valueOf());case"RegExp":return c(e);default:return e}},Rn=function(t){return z(function(e,n){return u(Math.max(0,e.length-n.length),function(){return e.apply(this,t(n,arguments))})})},kn=function t(e,n,i,r){if(Yt(e,n))return!0;if(cn(e)!==cn(n))return!1;if(null==e||null==n)return!1;if("function"==typeof e.equals||"function"==typeof n.equals)return"function"==typeof e.equals&&e.equals(n)&&"function"==typeof n.equals&&n.equals(e);switch(cn(e)){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(o=e.constructor,null==(s=String(o).match(/^function (\w*)/))?"":s[1]))return e===n;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof n||!Yt(e.valueOf(),n.valueOf()))return!1;break;case"Date":if(!Yt(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(e.source!==n.source||e.global!==n.global||e.ignoreCase!==n.ignoreCase||e.multiline!==n.multiline||e.sticky!==n.sticky||e.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!t(l(e.entries()),l(n.entries()),i,r))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o,s,a=Jt(e);if(a.length!==Jt(n).length)return!1;for(var u=i.length-1;u>=0;){if(i[u]===e)return r[u]===n;u-=1}for(i.push(e),r.push(n),u=a.length-1;u>=0;){var h=a[u];if(!m(h,n)||!t(n[h],e[h],i,r))return!1;u-=1}return i.pop(),r.pop(),!0},Bn=function(t){return function e(n){for(var i,r,o,s=[],a=0,u=n.length;a<u;){if(Ht(n[a]))for(o=0,r=(i=t?e(n[a]):n[a]).length;o<r;)s[s.length]=i[o],o+=1;else s[s.length]=n[a];a+=1}return s}},Dn=function(){function t(t,e,n){for(var i=n.next();!i.done;){if((e=t["@@transducer/step"](e,i.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}i=n.next()}return t["@@transducer/result"](e)}var e="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(n,i,r){if("function"==typeof n&&(n=k(n)),Ht(r))return function(t,e,n){for(var i=0,r=n.length;i<r;){if((e=t["@@transducer/step"](e,n[i]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}i+=1}return t["@@transducer/result"](e)}(n,i,r);if("function"==typeof r.reduce)return function(t,e,n){return t["@@transducer/result"](n.reduce(mt(t["@@transducer/step"],t),e))}(n,i,r);if(null!=r[e])return t(n,i,r[e]());if("function"==typeof r.next)return t(n,i,r);throw new TypeError("reduce: list must be array or iterable")}}(),jn=(o={"@@transducer/init":Array,"@@transducer/step":function(t,e){return t.push(e),t},"@@transducer/result":y},s={"@@transducer/init":String,"@@transducer/step":function(t,e){return t+e},"@@transducer/result":y},a={"@@transducer/init":Object,"@@transducer/step":function(t,e){return B(t,Ht(e)?Pe(e[0],e[1]):e)},"@@transducer/result":y},function(t){if(T(t))return t;if(Ht(t))return o;if("string"==typeof t)return s;if("object"==typeof t)return a;throw new Error("Cannot create transformer for "+t)}),zn=function(){function t(t,e){this.f=t,this.retained=[],this.xf=e}return t.prototype["@@transducer/init"]=R.init,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.retain(t,e):this.flush(t,e)},t.prototype.flush=function(t,e){return t=Dn(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,e)},t.prototype.retain=function(t,e){return this.retained.push(e),t},z(function(e,n){return new t(e,n)})}(),Yn=j(function(t){return _t(t.length,function(){var e=0,n=arguments[0],i=arguments[arguments.length-1],r=M(arguments);return r[0]=function(){var t=n.apply(this,p(arguments,[e,i]));return e+=1,t},t.apply(this,r)})}),Xn=j(function(t){return de(2,t)}),Fn=j(function(t){return null!=t&&"function"==typeof t.clone?t.clone():Nn(t,[],[],!0)}),Wn=j(function(t){return _t(t.length,t)}),Zn=z(F("drop",q,function(t,e){return qe(Math.max(0,t),1/0,e)})),Un=z(F("dropLast",G,function(t,e){return tn(t<e.length?e.length-t:0,e)})),qn=z(F("dropLastWhile",zn,function(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return M(e,0,n+1)})),Gn=z(function(t,e){return kn(t,e,[],[])}),Hn=z(F("filter",J,function(t,e){return w(e)?Dn(function(n,i){return t(e[i])&&(n[i]=e[i]),n},{},Jt(e)):v(t,e)})),Vn=j(Bn(!0)),Jn=j(function(t){return Wn(function(e,n){var i=M(arguments);return i[0]=n,i[1]=e,t.apply(this,i)})}),Kn=ge(0),$n=qe(0,-1),Qn=Y(function(t,e,n){var i,r;e.length>n.length?(i=e,r=n):(i=n,r=e);for(var o=[],s=0;s<r.length;)d(t,r[s],i)&&(o[o.length]=r[s]),s+=1;return mn(t,o)}),ti=Y(function(t,e,n){return T(t)?Dn(e(t),t["@@transducer/init"](),n):Dn(e(jn(t)),Nn(t,[],[],!1),n)}),ei=j(function(t){for(var e=Jt(t),n=e.length,i=0,r={};i<n;){var o=e[i],s=t[o],a=m(s,r)?r[s]:r[s]=[];a[a.length]=o,i+=1}return r}),ni=j(function(t){for(var e=Jt(t),n=e.length,i=0,r={};i<n;){var o=e[i];r[t[o]]=o,i+=1}return r}),ii=j(function(t){return null!=t&&Gn(t,St(t))}),ri=ge(-1),oi=z(function(t,e){if("function"!=typeof e.lastIndexOf||_(e)){for(var n=e.length-1;n>=0;){if(Gn(e[n],t))return n;n-=1}return-1}return e.lastIndexOf(t)}),si=z(F("map",et,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return _t(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return Dn(function(n,i){return n[i]=t(e[i]),n},{},Jt(e));default:return S(t,e)}})),ai=z(function(t,e){return Dn(function(n,i){return n[i]=t(e[i],i,e),n},{},Jt(e))}),ui=Y(function(t,e,n){return le(function(e,n,i){return t(n,i)},e,n)}),li=Rn(p),hi=Rn(Jn(p)),ci=Y(function(t,e,n){return Gn(Te(t,n),e)}),fi=z(function(t,e){return si(Ne(t),e)}),pi=Pn(S,[Oe,Xt]),di=Y(function(t,e,n){return Gn(e,n[t])}),vi=Y(Dn),mi=X(4,[],F("reduceBy",nt,function(t,e,n,i){return Dn(function(i,r){var o=n(r);return i[o]=t(m(o,i)?i[o]:e,r),i},{},i)})),yi=X(4,[],function(t,e,n,i){return Dn(function(n,i){return t(n,i)?e(n,i):A(n)},n,i)}),gi=z(function(t,e){return Hn(f(t),e)}),_i=z(function(t,e){return on(ut(t),e)}),Pi=vi(ot,0),xi=z(function(t,e){return Zn(t>=0?e.length-t:0,e)}),bi=_t(4,function(t,e,n,i){return Dn(t("function"==typeof e?k(e):e),n,i)}),wi=Y(function(t,e,n){return mn(t,p(e,n))}),Ei=z(function(t,e){return Ln(si(Gn,t),e)}),Li=function(t){var e=function(t){return{"@@transducer/init":R.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){var i=t["@@transducer/step"](e,n);return i["@@transducer/reduced"]?{"@@transducer/value":i,"@@transducer/reduced":!0}:i}}}(t);return{"@@transducer/init":R.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){return Ht(n)?Dn(e,t,n):Dn(e,t,[n])}}},Ti=function(t,e,n){var i,r;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(i=1/e;n<t.length;){if(0===(r=t[n])&&1/r===i)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(r=t[n])&&r!=r)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(Gn(t[n],e))return n;n+=1}return-1},Si=z(function(t,e){return si(t,Li(e))}),Ii=j(function(t){return _t(vi(oe,0,fi("length",t)),function(){for(var e=0,n=t.length;e<n;){if(!t[e].apply(this,arguments))return!1;e+=1}return!0})}),Ci=j(function(t){return _t(vi(oe,0,fi("length",t)),function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1})}),Oi=z(function(t,e){return"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:Dn(function(t,n){return p(t,si(n,e))},[],t)}),Ai=j(function t(e){return e=si(function(e){return"function"==typeof e?e:t(e)},e),_t(vi(oe,0,fi("length",xn(e))),function(){var t=arguments;return si(function(e){return pt(e,t)},e)})}),Mi=Wn(function(t){return t.apply(this,M(arguments,1))}),Ni=z(F("chain",Si,function(t,e){return"function"==typeof e?function(){return e.call(this,t.apply(this,arguments)).apply(this,arguments)}:Bn(!1)(si(t,e))})),Ri=j(function(t){var e=vi(oe,0,si(function(t){return t[0].length},t));return u(e,function(){for(var e=0;e<t.length;){if(t[e][0].apply(this,arguments))return t[e][1].apply(this,arguments);e+=1}})}),ki=z(function(t,e){if(t>10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new e}:Wn(de(t,function(t,n,i,r,o,s,a,u,l,h){switch(arguments.length){case 1:return new e(t);case 2:return new e(t,n);case 3:return new e(t,n,i);case 4:return new e(t,n,i,r);case 5:return new e(t,n,i,r,o);case 6:return new e(t,n,i,r,o,s);case 7:return new e(t,n,i,r,o,s,a);case 8:return new e(t,n,i,r,o,s,a,u);case 9:return new e(t,n,i,r,o,s,a,u,l);case 10:return new e(t,n,i,r,o,s,a,u,l,h)}}))}),Bi=z(function(t,e){return _t(vi(oe,0,fi("length",e)),function(){var n=arguments,i=this;return t.apply(i,S(function(t){return t.apply(i,n)},e))})}),Di=mi(function(t,e){return t+1},0),ji=z(F("dropRepeatsWith",H,function(t,e){var n=[],i=1,r=e.length;if(0!==r)for(n[0]=e[0];i<r;)t(ri(n),e[i])||(n[n.length]=e[i]),i+=1;return n})),zi=Y(function(t,e,n){return Gn(t(e),t(n))}),Yi=Y(function(t,e,n){return Gn(e[t],n[t])}),Xi=z(D("groupBy",mi(function(t,e){return null==t&&(t=[]),t.push(e),t},null))),Fi=mi(function(t,e){return e},null),Wi=z(function(t,e){return"function"!=typeof e.indexOf||_(e)?Ti(e,t,0):e.indexOf(t)}),Zi=j(function(t){return Bi(h,t)}),Ui=z(function(t,e){return function(n){return function(i){return si(function(t){return e(t,i)},n(t(i)))}}}),qi=j(function(t){return Ui(ge(t),_n(t))}),Gi=j(function(t){return Ui(Te(t),vt(t))}),Hi=j(function(t){return Ui(Ne(t),dt(t))}),Vi=z(function(t,e){var n=_t(t,e);return _t(t,function(){return Dn(Oi,si(n,arguments[0]),M(arguments,1))})}),Ji=j(function(t){return Pi(t)/t.length}),Ki=j(function(t){var e=t.length;if(0===e)return NaN;var n=2-e%2,i=(e-n)/2;return Ji(M(t).sort(function(t,e){return t<e?-1:t>e?1:0}).slice(i,i+n))}),$i=Zi([Hn,gi]),Qi=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return u(arguments[0].length,vi(I,arguments[0],Qe(arguments)))},tr=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return u(arguments[0].length,vi(C,arguments[0],Qe(arguments)))},er=vi(pe,1),nr=z(function(t,e){return"function"==typeof e.sequence?e.sequence(t):ze(function(t,e){return Oi(si(Me,e),t)},t([]),e)}),ir=Y(function(t,e,n){return nr(t,si(e,n))}),rr=Ni(y),or=function(t,e){return Ti(e,t,0)>=0},sr=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Qi.apply(this,We(arguments))},ar=function(){return sr.apply(this,Me(Xt,si(Ni,arguments)))},ur=j(function(t){return ki(t.length,t)}),lr=z(or),hr=z(function(t,e){for(var n=[],i=0,r=t.length;i<r;)or(t[i],e)||or(t[i],n)||(n[n.length]=t[i]),i+=1;return n}),cr=j(F("dropRepeats",H(Gn),ji(Gn))),fr=j(function(t){return Vi(t.length,t)}),pr=z(function(t,e){var n={};for(var i in e)or(i,t)||(n[i]=e[i]);return n}),dr=j(function(t){return function t(e,n){var i=function(i){var r=n.concat([e]);return or(i,r)?"<Circular>":t(i,r)},r=function(t,e){return S(function(e){return O(e)+": "+i(t[e])},e.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+S(i,e).join(", ")+"))";case"[object Array]":return"["+S(i,e).concat(r(e,gi(function(t){return/^\d+$/.test(t)},Jt(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+i(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?i(NaN):O(N(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+i(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+i(e.valueOf())+")":O(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var o=e.toString();if("[object Object]"!==o)return o}return"{"+r(e,Jt(e)).join(", ")+"}"}}(t,[])}),vr=z(function(t,e){return gi(Jn(or)(t),e)}),mr=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function e(t,e,n){var i,r=typeof t;switch(r){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(i=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===i):n._nativeSet.has(t):r in n._items?t in n._items[r]||(e&&(n._items[r][t]=!0),!1):(e&&(n._items[r]={},n._items[r][t]=!0),!1);case"boolean":if(r in n._items){var o=t?1:0;return!!n._items[r][o]||(e&&(n._items[r][o]=!0),!1)}return e&&(n._items[r]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(i=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size>i):n._nativeSet.has(t):r in n._items?!!or(t,n._items[r])||(e&&n._items[r].push(t),!1):(e&&(n._items[r]=[t]),!1);case"undefined":return!!n._items[r]||(e&&(n._items[r]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return(r=Object.prototype.toString.call(t))in n._items?!!or(t,n._items[r])||(e&&n._items[r].push(t),!1):(e&&(n._items[r]=[t]),!1)}}return t.prototype.add=function(t){return!e(t,!0,this)},t.prototype.has=function(t){return e(t,!1,this)},t}(),yr=z(function(t,e){return P(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:fr(lt)(t,e)}),gr=fr(ye),_r=z(function(t,e){if(null==t||!P(t.concat))throw new TypeError(dr(t)+' does not have a method named "concat"');if(_(t)&&!_(e))throw new TypeError(dr(e)+" is not an array");return t.concat(e)}),Pr=z(function(t,e){return P(t)?function(){return t.apply(this,arguments)||e.apply(this,arguments)}:fr(we)(t,e)}),xr=z(function(t,e){return _t(t+1,function(){var n=arguments[t];if(null!=n&&P(n[e]))return n[e].apply(n,M(arguments,0,t));throw new TypeError(dr(n)+' does not have a method named "'+e+'"')})}),br=xr(1,"join"),wr=j(function(t){var e={};return u(t.length,function(){var n=dr(arguments);return m(n,e)||(e[n]=t.apply(this,arguments)),e[n]})}),Er=xr(1,"split"),Lr=z(function(t,e){return _r(hr(t,e),hr(e,t))}),Tr=Y(function(t,e,n){return _r(bt(t,e,n),bt(t,n,e))}),Sr=z(function(t,e){if(n=t,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+dr(t));var n;return c(t).test(e)}),Ir=xr(0,"toLowerCase"),Cr=xr(0,"toUpperCase"),Or=z(function(t,e){for(var n,i,r=new mr,o=[],s=0;s<e.length;)n=t(i=e[s]),r.add(n)&&o.push(i),s+=1;return o}),Ar=Or(Xt),Mr=z(function(t,e){var n,i;return t.length>e.length?(n=t,i=e):(n=e,i=t),Ar(v(Jn(or)(n),i))}),Nr=z(sr(Ar,p)),Rr={F:An,T:Mn,__:{"@@functional/placeholder":!0},add:ot,addIndex:Yn,adjust:st,all:at,allPass:Ii,always:ut,and:lt,any:ht,anyPass:Ci,ap:Oi,aperture:ct,append:ft,apply:pt,applySpec:Ai,assoc:dt,assocPath:vt,binary:Xn,bind:mt,both:yr,call:Mi,chain:Ni,clamp:yt,clone:Fn,comparator:gt,complement:gr,compose:sr,composeK:ar,composeP:function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return tr.apply(this,We(arguments))},concat:_r,cond:Ri,construct:ur,constructN:ki,contains:lr,converge:Bi,countBy:Di,curry:Wn,curryN:_t,dec:Pt,defaultTo:xt,difference:hr,differenceWith:bt,dissoc:wt,dissocPath:Et,divide:Lt,drop:Zn,dropLast:Un,dropLastWhile:qn,dropRepeats:cr,dropRepeatsWith:ji,dropWhile:Tt,either:Pr,empty:St,eqBy:zi,eqProps:Yi,equals:Gn,evolve:It,filter:Hn,find:Ct,findIndex:Ot,findLast:At,findLastIndex:Mt,flatten:Vn,flip:Jn,forEach:Nt,fromPairs:Rt,groupBy:Xi,groupWith:kt,gt:Bt,gte:Dt,has:jt,hasIn:zt,head:Kn,identical:Yt,identity:Xt,ifElse:Ft,inc:Wt,indexBy:Fi,indexOf:Wi,init:$n,insert:Zt,insertAll:Ut,intersection:Mr,intersectionWith:Qn,intersperse:qt,into:ti,invert:ei,invertObj:ni,invoker:xr,is:Gt,isArrayLike:Ht,isEmpty:ii,isNil:Vt,join:br,juxt:Zi,keys:Jt,keysIn:Kt,last:ri,lastIndexOf:oi,length:$t,lens:Ui,lensIndex:qi,lensPath:Gi,lensProp:Hi,lift:fr,liftN:Vi,lt:Qt,lte:te,map:si,mapAccum:ee,mapAccumRight:ne,mapObjIndexed:ai,match:ie,mathMod:re,max:oe,maxBy:se,mean:Ji,median:Ki,memoize:wr,merge:ae,mergeAll:ue,mergeWith:ui,mergeWithKey:le,min:he,minBy:ce,modulo:fe,multiply:pe,nAry:de,negate:ve,none:me,not:ye,nth:ge,nthArg:_e,objOf:Pe,of:xe,omit:pr,once:be,or:we,over:Ee,pair:Le,partial:li,partialRight:hi,partition:$i,path:Te,pathEq:ci,pathOr:Se,pathSatisfies:Ie,pick:Ce,pickAll:Oe,pickBy:Ae,pipe:Qi,pipeK:function(){return ar.apply(this,We(arguments))},pipeP:tr,pluck:fi,prepend:Me,product:er,project:pi,prop:Ne,propEq:di,propIs:Re,propOr:ke,propSatisfies:Be,props:De,range:je,reduce:vi,reduceBy:mi,reduceRight:ze,reduceWhile:yi,reduced:Ye,reject:gi,remove:Xe,repeat:_i,replace:Fe,reverse:We,scan:Ze,sequence:nr,set:Ue,slice:qe,sort:Ge,sortBy:He,split:Er,splitAt:Ve,splitEvery:Je,splitWhen:Ke,subtract:$e,sum:Pi,symmetricDifference:Lr,symmetricDifferenceWith:Tr,tail:Qe,take:tn,takeLast:xi,takeLastWhile:en,takeWhile:nn,tap:rn,test:Sr,times:on,toLower:Ir,toPairs:sn,toPairsIn:an,toString:dr,toUpper:Cr,transduce:bi,transpose:un,traverse:ir,trim:ln,tryCatch:hn,type:cn,unapply:fn,unary:pn,uncurryN:dn,unfold:vn,union:Nr,unionWith:wi,uniq:Ar,uniqBy:Or,uniqWith:mn,unless:yn,unnest:rr,until:gn,update:_n,useWith:Pn,values:xn,valuesIn:bn,view:wn,when:En,where:Ln,whereEq:Ei,without:vr,wrap:Tn,xprod:Sn,zip:In,zipObj:Cn,zipWith:On};t.exports=Rr}).call(U)}),u_=a_.flatten,l_=a_.compose,h_=a_.head,c_=a_.complement,f_=a_.identical,p_=q(function(t){!function(){var e,n={},i=!1;if(t.exports?(t.exports=n,i=!0):"undefined"!=typeof document?window.ClipperLib=n:self.ClipperLib=n,i){r="chrome";e="Netscape"}else{var r=navigator.userAgent.toString().toLowerCase();e=navigator.appName}var o,s={};function a(t,e,i){n.biginteger_used=1,null!=t&&("number"==typeof t&&void 0===e?this.fromInt(t):"number"==typeof t?this.fromNumber(t,e,i):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function u(){return new a(null,void 0,void 0)}-1!=r.indexOf("chrome")&&-1==r.indexOf("chromium")?s.chrome=1:s.chrome=0,-1!=r.indexOf("chromium")?s.chromium=1:s.chromium=0,-1!=r.indexOf("safari")&&-1==r.indexOf("chrome")&&-1==r.indexOf("chromium")?s.safari=1:s.safari=0,-1!=r.indexOf("firefox")?s.firefox=1:s.firefox=0,-1!=r.indexOf("firefox/17")?s.firefox17=1:s.firefox17=0,-1!=r.indexOf("firefox/15")?s.firefox15=1:s.firefox15=0,-1!=r.indexOf("firefox/3")?s.firefox3=1:s.firefox3=0,-1!=r.indexOf("opera")?s.opera=1:s.opera=0,-1!=r.indexOf("msie 10")?s.msie10=1:s.msie10=0,-1!=r.indexOf("msie 9")?s.msie9=1:s.msie9=0,-1!=r.indexOf("msie 8")?s.msie8=1:s.msie8=0,-1!=r.indexOf("msie 7")?s.msie7=1:s.msie7=0,-1!=r.indexOf("msie ")?s.msie=1:s.msie=0,n.biginteger_used=null,"Microsoft Internet Explorer"==e?(a.prototype.am=function(t,e,n,i,r,o){for(var s=32767&e,a=e>>15;--o>=0;){var u=32767&this[t],l=this[t++]>>15,h=a*u+l*s;r=((u=s*u+((32767&h)<<15)+n[i]+(1073741823&r))>>>30)+(h>>>15)+a*l+(r>>>30),n[i++]=1073741823&u}return r},o=30):"Netscape"!=e?(a.prototype.am=function(t,e,n,i,r,o){for(;--o>=0;){var s=e*this[t++]+n[i]+r;r=Math.floor(s/67108864),n[i++]=67108863&s}return r},o=26):(a.prototype.am=function(t,e,n,i,r,o){for(var s=16383&e,a=e>>14;--o>=0;){var u=16383&this[t],l=this[t++]>>14,h=a*u+l*s;r=((u=s*u+((16383&h)<<14)+n[i]+r)>>28)+(h>>14)+a*l,n[i++]=268435455&u}return r},o=28),a.prototype.DB=o,a.prototype.DM=(1<<o)-1,a.prototype.DV=1<<o;a.prototype.FV=Math.pow(2,52),a.prototype.F1=52-o,a.prototype.F2=2*o-52;var l,h,c="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array;for(l="0".charCodeAt(0),h=0;h<=9;++h)f[l++]=h;for(l="a".charCodeAt(0),h=10;h<36;++h)f[l++]=h;for(l="A".charCodeAt(0),h=10;h<36;++h)f[l++]=h;function p(t){return c.charAt(t)}function d(t,e){var n=f[t.charCodeAt(e)];return null==n?-1:n}function v(t){var e=u();return e.fromInt(t),e}function m(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function y(t){this.m=t}function g(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function _(t,e){return t&e}function P(t,e){return t|e}function x(t,e){return t^e}function b(t,e){return t&~e}function w(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function E(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function L(){}function T(t){return t}function S(t){this.r2=u(),this.q3=u(),a.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}y.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},y.prototype.revert=function(t){return t},y.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},y.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},y.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},g.prototype.convert=function(t){var e=u();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(a.ZERO)>0&&this.m.subTo(e,e),e},g.prototype.revert=function(t){var e=u();return t.copyTo(e),this.reduce(e),e},g.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},g.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},g.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},a.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},a.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},a.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,r=!1,o=0;--i>=0;){var s=8==n?255&t[i]:d(t,i);s<0?"-"==t.charAt(i)&&(r=!0):(r=!1,0==o?this[this.t++]=s:o+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),r&&a.ZERO.subTo(this,this)},a.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},a.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},a.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},a.prototype.lShiftTo=function(t,e){var n,i=t%this.DB,r=this.DB-i,o=(1<<r)-1,s=Math.floor(t/this.DB),a=this.s<<i&this.DM;for(n=this.t-1;n>=0;--n)e[n+s+1]=this[n]>>r|a,a=(this[n]&o)<<i;for(n=s-1;n>=0;--n)e[n]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},a.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var i=t%this.DB,r=this.DB-i,o=(1<<i)-1;e[0]=this[n]>>i;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&o)<<r,e[s-n]=this[s]>>i;i>0&&(e[this.t-n-1]|=(this.s&o)<<r),e.t=this.t-n,e.clamp()}},a.prototype.subTo=function(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);n<r;)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},a.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),r=n.t;for(e.t=r+i.t;--r>=0;)e[r]=0;for(r=0;r<i.t;++r)e[r+n.t]=n.am(0,i[r],e,r,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&a.ZERO.subTo(e,e)},a.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},a.prototype.divRemTo=function(t,e,n){var i=t.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t)return null!=e&&e.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=u());var o=u(),s=this.s,l=t.s,h=this.DB-m(i[i.t-1]);h>0?(i.lShiftTo(h,o),r.lShiftTo(h,n)):(i.copyTo(o),r.copyTo(n));var c=o.t,f=o[c-1];if(0!=f){var p=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),d=this.FV/p,v=(1<<this.F1)/p,y=1<<this.F2,g=n.t,_=g-c,P=null==e?u():e;for(o.dlShiftTo(_,P),n.compareTo(P)>=0&&(n[n.t++]=1,n.subTo(P,n)),a.ONE.dlShiftTo(c,P),P.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--_>=0;){var x=n[--g]==f?this.DM:Math.floor(n[g]*d+(n[g-1]+y)*v);if((n[g]+=o.am(0,x,n,_,0,c))<x)for(o.dlShiftTo(_,P),n.subTo(P,n);n[g]<--x;)n.subTo(P,n)}null!=e&&(n.drShiftTo(c,e),s!=l&&a.ZERO.subTo(e,e)),n.t=c,n.clamp(),h>0&&n.rShiftTo(h,n),s<0&&a.ZERO.subTo(n,n)}}},a.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},a.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},a.prototype.exp=function(t,e){if(t>4294967295||t<1)return a.ONE;var n=u(),i=u(),r=e.convert(this),o=m(t)-1;for(r.copyTo(n);--o>=0;)if(e.sqrTo(n,i),(t&1<<o)>0)e.mulTo(i,r,n);else{var s=n;n=i,i=s}return e.revert(n)},a.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,i=(1<<e)-1,r=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(n=this[s]>>a)>0&&(r=!0,o=p(n));s>=0;)a<e?(n=(this[s]&(1<<a)-1)<<e-a,n|=this[--s]>>(a+=this.DB-e)):(n=this[s]>>(a-=e)&i,a<=0&&(a+=this.DB,--s)),n>0&&(r=!0),r&&(o+=p(n));return r?o:"0"},a.prototype.negate=function(){var t=u();return a.ZERO.subTo(this,t),t},a.prototype.abs=function(){return this.s<0?this.negate():this},a.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},a.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this[this.t-1]^this.s&this.DM)},a.prototype.mod=function(t){var e=u();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(a.ZERO)>0&&t.subTo(e,e),e},a.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new y(e):new g(e),this.exp(t,n)},a.ZERO=v(0),a.ONE=v(1),L.prototype.convert=T,L.prototype.revert=T,L.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},L.prototype.sqrTo=function(t,e){t.squareTo(e)},S.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=u();return t.copyTo(e),this.reduce(e),e},S.prototype.revert=function(t){return t},S.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},S.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},S.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var I=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],C=(1<<26)/I[I.length-1];a.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},a.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=v(n),r=u(),o=u(),s="";for(this.divRemTo(i,r,o);r.signum()>0;)s=(n+o.intValue()).toString(t).substr(1)+s,r.divRemTo(i,r,o);return o.intValue().toString(t)+s},a.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),r=!1,o=0,s=0,u=0;u<t.length;++u){var l=d(t,u);l<0?"-"==t.charAt(u)&&0==this.signum()&&(r=!0):(s=e*s+l,++o>=n&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(s,0)),r&&a.ZERO.subTo(this,this)},a.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(a.ONE.shiftLeft(t-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(a.ONE.shiftLeft(t-1),this);else{var i=new Array,r=7&t;i.length=1+(t>>3),e.nextBytes(i),r>0?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},a.prototype.bitwiseTo=function(t,e,n){var i,r,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(r=t.s&this.DM,i=o;i<this.t;++i)n[i]=e(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=o;i<t.t;++i)n[i]=e(r,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},a.prototype.changeBit=function(t,e){var n=a.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},a.prototype.addTo=function(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);n<r;)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},a.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},a.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},a.prototype.multiplyLowerTo=function(t,e,n){var i,r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},a.prototype.multiplyUpperTo=function(t,e,n){--e;var i=n.t=this.t+t.t-e;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)},a.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n},a.prototype.millerRabin=function(t){var e=this.subtract(a.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var i=e.shiftRight(n);(t=t+1>>1)>I.length&&(t=I.length);for(var r=u(),o=0;o<t;++o){r.fromInt(I[Math.floor(Math.random()*I.length)]);var s=r.modPow(i,this);if(0!=s.compareTo(a.ONE)&&0!=s.compareTo(e)){for(var l=1;l++<n&&0!=s.compareTo(e);)if(0==(s=s.modPowInt(2,this)).compareTo(a.ONE))return!1;if(0!=s.compareTo(e))return!1}}return!0},a.prototype.clone=function(){var t=u();return this.copyTo(t),t},a.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},a.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},a.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},a.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},a.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var n,i=this.DB-t*this.DB%8,r=0;if(t-- >0)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[r++]=n|this.s<<this.DB-i);t>=0;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(e[r++]=n);return e},a.prototype.equals=function(t){return 0==this.compareTo(t)},a.prototype.min=function(t){return this.compareTo(t)<0?this:t},a.prototype.max=function(t){return this.compareTo(t)>0?this:t},a.prototype.and=function(t){var e=u();return this.bitwiseTo(t,_,e),e},a.prototype.or=function(t){var e=u();return this.bitwiseTo(t,P,e),e},a.prototype.xor=function(t){var e=u();return this.bitwiseTo(t,x,e),e},a.prototype.andNot=function(t){var e=u();return this.bitwiseTo(t,b,e),e},a.prototype.not=function(){for(var t=u(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},a.prototype.shiftLeft=function(t){var e=u();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},a.prototype.shiftRight=function(t){var e=u();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},a.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+w(this[t]);return this.s<0?this.t*this.DB:-1},a.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=E(this[n]^e);return t},a.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},a.prototype.setBit=function(t){return this.changeBit(t,P)},a.prototype.clearBit=function(t){return this.changeBit(t,b)},a.prototype.flipBit=function(t){return this.changeBit(t,x)},a.prototype.add=function(t){var e=u();return this.addTo(t,e),e},a.prototype.subtract=function(t){var e=u();return this.subTo(t,e),e},a.prototype.multiply=function(t){var e=u();return this.multiplyTo(t,e),e},a.prototype.divide=function(t){var e=u();return this.divRemTo(t,e,null),e},a.prototype.remainder=function(t){var e=u();return this.divRemTo(t,null,e),e},a.prototype.divideAndRemainder=function(t){var e=u(),n=u();return this.divRemTo(t,e,n),new Array(e,n)},a.prototype.modPow=function(t,e){var n,i,r=t.bitLength(),o=v(1);if(r<=0)return o;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new y(e):e.isEven()?new S(e):new g(e);var s=new Array,a=3,l=n-1,h=(1<<n)-1;if(s[1]=i.convert(this),n>1){var c=u();for(i.sqrTo(s[1],c);a<=h;)s[a]=u(),i.mulTo(c,s[a-2],s[a]),a+=2}var f,p,d=t.t-1,_=!0,P=u();for(r=m(t[d])-1;d>=0;){for(r>=l?f=t[d]>>r-l&h:(f=(t[d]&(1<<r+1)-1)<<l-r,d>0&&(f|=t[d-1]>>this.DB+r-l)),a=n;0==(1&f);)f>>=1,--a;if((r-=a)<0&&(r+=this.DB,--d),_)s[f].copyTo(o),_=!1;else{for(;a>1;)i.sqrTo(o,P),i.sqrTo(P,o),a-=2;a>0?i.sqrTo(o,P):(p=o,o=P,P=p),i.mulTo(P,s[f],o)}for(;d>=0&&0==(t[d]&1<<r);)i.sqrTo(o,P),p=o,o=P,P=p,--r<0&&(r=this.DB-1,--d)}return i.revert(o)},a.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return a.ZERO;for(var n=t.clone(),i=this.clone(),r=v(1),o=v(0),s=v(0),u=v(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(r.isEven()&&o.isEven()||(r.addTo(this,r),o.subTo(t,o)),r.rShiftTo(1,r)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),e?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(t,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),e&&r.subTo(s,r),o.subTo(u,o)):(i.subTo(n,i),e&&s.subTo(r,s),u.subTo(o,u))}return 0!=i.compareTo(a.ONE)?a.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u},a.prototype.pow=function(t){return this.exp(t,new L)},a.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var r=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(r<o&&(o=r),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},a.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=I[I.length-1]){for(e=0;e<I.length;++e)if(n[0]==I[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<I.length;){for(var i=I[e],r=e+1;r<I.length&&i<C;)i*=I[r++];for(i=n.modInt(i);e<r;)if(i%I[e++]==0)return!1}return n.millerRabin(t)},a.prototype.square=function(){var t=u();return this.squareTo(t),t};var O=a;O.prototype.IsNegative=function(){return-1==this.compareTo(O.ZERO)},O.op_Equality=function(t,e){return 0==t.compareTo(e)},O.op_Inequality=function(t,e){return 0!=t.compareTo(e)},O.op_GreaterThan=function(t,e){return t.compareTo(e)>0},O.op_LessThan=function(t,e){return t.compareTo(e)<0},O.op_Addition=function(t,e){return new O(t).add(new O(e))},O.op_Subtraction=function(t,e){return new O(t).subtract(new O(e))},O.Int128Mul=function(t,e){return new O(t).multiply(new O(e))},O.op_Division=function(t,e){return t.divide(e)},O.prototype.ToDouble=function(){return parseFloat(this.toString())};var A=function(t,e){var n;if(void 0===Object.getOwnPropertyNames){for(n in e.prototype)void 0!==t.prototype[n]&&t.prototype[n]!=Object.prototype[n]||(t.prototype[n]=e.prototype[n]);for(n in e)void 0===t[n]&&(t[n]=e[n]);t.$baseCtor=e}else{for(var i=Object.getOwnPropertyNames(e.prototype),r=0;r<i.length;r++)void 0===Object.getOwnPropertyDescriptor(t.prototype,i[r])&&Object.defineProperty(t.prototype,i[r],Object.getOwnPropertyDescriptor(e.prototype,i[r]));for(n in e)void 0===t[n]&&(t[n]=e[n]);t.$baseCtor=e}};n.Path=function(){return[]},n.Paths=function(){return[]},n.DoublePoint=function(){var t=arguments;this.X=0,this.Y=0,1==t.length?(this.X=t[0].X,this.Y=t[0].Y):2==t.length&&(this.X=t[0],this.Y=t[1])},n.DoublePoint0=function(){this.X=0,this.Y=0},n.DoublePoint1=function(t){this.X=t.X,this.Y=t.Y},n.DoublePoint2=function(t,e){this.X=t,this.Y=e},n.PolyNode=function(){this.m_Parent=null,this.m_polygon=new n.Path,this.m_Index=0,this.m_jointype=0,this.m_endtype=0,this.m_Childs=[],this.IsOpen=!1},n.PolyNode.prototype.IsHoleNode=function(){for(var t=!0,e=this.m_Parent;null!==e;)t=!t,e=e.m_Parent;return t},n.PolyNode.prototype.ChildCount=function(){return this.m_Childs.length},n.PolyNode.prototype.Contour=function(){return this.m_polygon},n.PolyNode.prototype.AddChild=function(t){var e=this.m_Childs.length;this.m_Childs.push(t),t.m_Parent=this,t.m_Index=e},n.PolyNode.prototype.GetNext=function(){return this.m_Childs.length>0?this.m_Childs[0]:this.GetNextSiblingUp()},n.PolyNode.prototype.GetNextSiblingUp=function(){return null===this.m_Parent?null:this.m_Index==this.m_Parent.m_Childs.length-1?this.m_Parent.GetNextSiblingUp():this.m_Parent.m_Childs[this.m_Index+1]},n.PolyNode.prototype.Childs=function(){return this.m_Childs},n.PolyNode.prototype.Parent=function(){return this.m_Parent},n.PolyNode.prototype.IsHole=function(){return this.IsHoleNode()},n.PolyTree=function(){this.m_AllPolys=[],n.PolyNode.call(this)},n.PolyTree.prototype.Clear=function(){for(var t=0,e=this.m_AllPolys.length;t<e;t++)this.m_AllPolys[t]=null;this.m_AllPolys.length=0,this.m_Childs.length=0},n.PolyTree.prototype.GetFirst=function(){return this.m_Childs.length>0?this.m_Childs[0]:null},n.PolyTree.prototype.Total=function(){var t=this.m_AllPolys.length;return t>0&&this.m_Childs[0]!=this.m_AllPolys[0]&&t--,t},A(n.PolyTree,n.PolyNode),n.Math_Abs_Int64=n.Math_Abs_Int32=n.Math_Abs_Double=function(t){return Math.abs(t)},n.Math_Max_Int32_Int32=function(t,e){return Math.max(t,e)},s.msie||s.opera||s.safari?n.Cast_Int32=function(t){return 0|t}:n.Cast_Int32=function(t){return~~t},s.chrome?n.Cast_Int64=function(t){return t<-2147483648||t>2147483647?t<0?Math.ceil(t):Math.floor(t):~~t}:s.firefox&&"function"==typeof Number.toInteger?n.Cast_Int64=function(t){return Number.toInteger(t)}:s.msie7||s.msie8?n.Cast_Int64=function(t){return parseInt(t,10)}:s.msie?n.Cast_Int64=function(t){return t<-2147483648||t>2147483647?t<0?Math.ceil(t):Math.floor(t):0|t}:n.Cast_Int64=function(t){return t<0?Math.ceil(t):Math.floor(t)},n.Clear=function(t){t.length=0},n.PI=3.141592653589793,n.PI2=6.283185307179586,n.IntPoint=function(){var t=arguments,e=t.length;if(this.X=0,this.Y=0,2==e)this.X=t[0],this.Y=t[1];else if(1==e)if(t[0]instanceof n.DoublePoint){var i=t[0];this.X=n.Clipper.Round(i.X),this.Y=n.Clipper.Round(i.Y)}else{var r=t[0];this.X=r.X,this.Y=r.Y}else this.X=0,this.Y=0},n.IntPoint.op_Equality=function(t,e){return t.X==e.X&&t.Y==e.Y},n.IntPoint.op_Inequality=function(t,e){return t.X!=e.X||t.Y!=e.Y},n.IntPoint0=function(){this.X=0,this.Y=0},n.IntPoint1=function(t){this.X=t.X,this.Y=t.Y},n.IntPoint1dp=function(t){this.X=n.Clipper.Round(t.X),this.Y=n.Clipper.Round(t.Y)},n.IntPoint2=function(t,e){this.X=t,this.Y=e},n.IntRect=function(){var t=arguments,e=t.length;4==e?(this.left=t[0],this.top=t[1],this.right=t[2],this.bottom=t[3]):1==e?(this.left=ir.left,this.top=ir.top,this.right=ir.right,this.bottom=ir.bottom):(this.left=0,this.top=0,this.right=0,this.bottom=0)},n.IntRect0=function(){this.left=0,this.top=0,this.right=0,this.bottom=0},n.IntRect1=function(t){this.left=t.left,this.top=t.top,this.right=t.right,this.bottom=t.bottom},n.IntRect4=function(t,e,n,i){this.left=t,this.top=e,this.right=n,this.bottom=i},n.ClipType={ctIntersection:0,ctUnion:1,ctDifference:2,ctXor:3},n.PolyType={ptSubject:0,ptClip:1},n.PolyFillType={pftEvenOdd:0,pftNonZero:1,pftPositive:2,pftNegative:3},n.JoinType={jtSquare:0,jtRound:1,jtMiter:2},n.EndType={etOpenSquare:0,etOpenRound:1,etOpenButt:2,etClosedLine:3,etClosedPolygon:4},n.EdgeSide={esLeft:0,esRight:1},n.Direction={dRightToLeft:0,dLeftToRight:1},n.TEdge=function(){this.Bot=new n.IntPoint,this.Curr=new n.IntPoint,this.Top=new n.IntPoint,this.Delta=new n.IntPoint,this.Dx=0,this.PolyTyp=n.PolyType.ptSubject,this.Side=n.EdgeSide.esLeft,this.WindDelta=0,this.WindCnt=0,this.WindCnt2=0,this.OutIdx=0,this.Next=null,this.Prev=null,this.NextInLML=null,this.NextInAEL=null,this.PrevInAEL=null,this.NextInSEL=null,this.PrevInSEL=null},n.IntersectNode=function(){this.Edge1=null,this.Edge2=null,this.Pt=new n.IntPoint},n.MyIntersectNodeSort=function(){},n.MyIntersectNodeSort.Compare=function(t,e){var n=e.Pt.Y-t.Pt.Y;return n>0?1:n<0?-1:0},n.LocalMinima=function(){this.Y=0,this.LeftBound=null,this.RightBound=null,this.Next=null},n.Scanbeam=function(){this.Y=0,this.Next=null},n.OutRec=function(){this.Idx=0,this.IsHole=!1,this.IsOpen=!1,this.FirstLeft=null,this.Pts=null,this.BottomPt=null,this.PolyNode=null},n.OutPt=function(){this.Idx=0,this.Pt=new n.IntPoint,this.Next=null,this.Prev=null},n.Join=function(){this.OutPt1=null,this.OutPt2=null,this.OffPt=new n.IntPoint},n.ClipperBase=function(){this.m_MinimaList=null,this.m_CurrentLM=null,this.m_edges=new Array,this.m_UseFullRange=!1,this.m_HasOpenPaths=!1,this.PreserveCollinear=!1,this.m_MinimaList=null,this.m_CurrentLM=null,this.m_UseFullRange=!1,this.m_HasOpenPaths=!1},n.ClipperBase.horizontal=-9007199254740992,n.ClipperBase.Skip=-2,n.ClipperBase.Unassigned=-1,n.ClipperBase.tolerance=1e-20,n.ClipperBase.loRange=47453132,n.ClipperBase.hiRange=0xfffffffffffff,n.ClipperBase.near_zero=function(t){return t>-n.ClipperBase.tolerance&&t<n.ClipperBase.tolerance},n.ClipperBase.IsHorizontal=function(t){return 0===t.Delta.Y},n.ClipperBase.prototype.PointIsVertex=function(t,e){var i=e;do{if(n.IntPoint.op_Equality(i.Pt,t))return!0;i=i.Next}while(i!=e);return!1},n.ClipperBase.prototype.PointOnLineSegment=function(t,e,n,i){return i?t.X==e.X&&t.Y==e.Y||t.X==n.X&&t.Y==n.Y||t.X>e.X==t.X<n.X&&t.Y>e.Y==t.Y<n.Y&&O.op_Equality(O.Int128Mul(t.X-e.X,n.Y-e.Y),O.Int128Mul(n.X-e.X,t.Y-e.Y)):t.X==e.X&&t.Y==e.Y||t.X==n.X&&t.Y==n.Y||t.X>e.X==t.X<n.X&&t.Y>e.Y==t.Y<n.Y&&(t.X-e.X)*(n.Y-e.Y)==(n.X-e.X)*(t.Y-e.Y)},n.ClipperBase.prototype.PointOnPolygon=function(t,e,n){for(var i=e;;){if(this.PointOnLineSegment(t,i.Pt,i.Next.Pt,n))return!0;if((i=i.Next)==e)break}return!1},n.ClipperBase.prototype.SlopesEqual=n.ClipperBase.SlopesEqual=function(){var t,e,i,r,o,s,a=arguments,u=a.length;return 3==u?(t=a[0],e=a[1],a[2]?O.op_Equality(O.Int128Mul(t.Delta.Y,e.Delta.X),O.Int128Mul(t.Delta.X,e.Delta.Y)):n.Cast_Int64(t.Delta.Y*e.Delta.X)==n.Cast_Int64(t.Delta.X*e.Delta.Y)):4==u?(i=a[0],r=a[1],o=a[2],a[3]?O.op_Equality(O.Int128Mul(i.Y-r.Y,r.X-o.X),O.Int128Mul(i.X-r.X,r.Y-o.Y)):n.Cast_Int64((i.Y-r.Y)*(r.X-o.X))-n.Cast_Int64((i.X-r.X)*(r.Y-o.Y))==0):(i=a[0],r=a[1],o=a[2],s=a[3],a[4]?O.op_Equality(O.Int128Mul(i.Y-r.Y,o.X-s.X),O.Int128Mul(i.X-r.X,o.Y-s.Y)):n.Cast_Int64((i.Y-r.Y)*(o.X-s.X))-n.Cast_Int64((i.X-r.X)*(o.Y-s.Y))==0)},n.ClipperBase.SlopesEqual3=function(t,e,i){return i?O.op_Equality(O.Int128Mul(t.Delta.Y,e.Delta.X),O.Int128Mul(t.Delta.X,e.Delta.Y)):n.Cast_Int64(t.Delta.Y*e.Delta.X)==n.Cast_Int64(t.Delta.X*e.Delta.Y)},n.ClipperBase.SlopesEqual4=function(t,e,i,r){return r?O.op_Equality(O.Int128Mul(t.Y-e.Y,e.X-i.X),O.Int128Mul(t.X-e.X,e.Y-i.Y)):n.Cast_Int64((t.Y-e.Y)*(e.X-i.X))-n.Cast_Int64((t.X-e.X)*(e.Y-i.Y))==0},n.ClipperBase.SlopesEqual5=function(t,e,i,r,o){return o?O.op_Equality(O.Int128Mul(t.Y-e.Y,i.X-r.X),O.Int128Mul(t.X-e.X,i.Y-r.Y)):n.Cast_Int64((t.Y-e.Y)*(i.X-r.X))-n.Cast_Int64((t.X-e.X)*(i.Y-r.Y))==0},n.ClipperBase.prototype.Clear=function(){this.DisposeLocalMinimaList();for(var t=0,e=this.m_edges.length;t<e;++t){for(var i=0,r=this.m_edges[t].length;i<r;++i)this.m_edges[t][i]=null;n.Clear(this.m_edges[t])}n.Clear(this.m_edges),this.m_UseFullRange=!1,this.m_HasOpenPaths=!1},n.ClipperBase.prototype.DisposeLocalMinimaList=function(){for(;null!==this.m_MinimaList;){var t=this.m_MinimaList.Next;this.m_MinimaList=null,this.m_MinimaList=t}this.m_CurrentLM=null},n.ClipperBase.prototype.RangeTest=function(t,e){e.Value?(t.X>n.ClipperBase.hiRange||t.Y>n.ClipperBase.hiRange||-t.X>n.ClipperBase.hiRange||-t.Y>n.ClipperBase.hiRange)&&n.Error("Coordinate outside allowed range in RangeTest()."):(t.X>n.ClipperBase.loRange||t.Y>n.ClipperBase.loRange||-t.X>n.ClipperBase.loRange||-t.Y>n.ClipperBase.loRange)&&(e.Value=!0,this.RangeTest(t,e))},n.ClipperBase.prototype.InitEdge=function(t,e,n,i){t.Next=e,t.Prev=n,t.Curr.X=i.X,t.Curr.Y=i.Y,t.OutIdx=-1},n.ClipperBase.prototype.InitEdge2=function(t,e){t.Curr.Y>=t.Next.Curr.Y?(t.Bot.X=t.Curr.X,t.Bot.Y=t.Curr.Y,t.Top.X=t.Next.Curr.X,t.Top.Y=t.Next.Curr.Y):(t.Top.X=t.Curr.X,t.Top.Y=t.Curr.Y,t.Bot.X=t.Next.Curr.X,t.Bot.Y=t.Next.Curr.Y),this.SetDx(t),t.PolyTyp=e},n.ClipperBase.prototype.FindNextLocMin=function(t){for(var e;;){for(;n.IntPoint.op_Inequality(t.Bot,t.Prev.Bot)||n.IntPoint.op_Equality(t.Curr,t.Top);)t=t.Next;if(t.Dx!=n.ClipperBase.horizontal&&t.Prev.Dx!=n.ClipperBase.horizontal)break;for(;t.Prev.Dx==n.ClipperBase.horizontal;)t=t.Prev;for(e=t;t.Dx==n.ClipperBase.horizontal;)t=t.Next;if(t.Top.Y!=t.Prev.Bot.Y){e.Prev.Bot.X<t.Bot.X&&(t=e);break}}return t},n.ClipperBase.prototype.ProcessBound=function(t,e){var i,r,o=t;if(o.OutIdx==n.ClipperBase.Skip){if(t=o,e){for(;t.Top.Y==t.Next.Bot.Y;)t=t.Next;for(;t!=o&&t.Dx==n.ClipperBase.horizontal;)t=t.Prev}else{for(;t.Top.Y==t.Prev.Bot.Y;)t=t.Prev;for(;t!=o&&t.Dx==n.ClipperBase.horizontal;)t=t.Next}if(t==o)o=e?t.Next:t.Prev;else{t=e?o.Next:o.Prev;var s=new n.LocalMinima;s.Next=null,s.Y=t.Bot.Y,s.LeftBound=null,s.RightBound=t,t.WindDelta=0,o=this.ProcessBound(t,e),this.InsertLocalMinima(s)}return o}if(t.Dx==n.ClipperBase.horizontal&&(i=e?t.Prev:t.Next).OutIdx!=n.ClipperBase.Skip&&(i.Dx==n.ClipperBase.horizontal?i.Bot.X!=t.Bot.X&&i.Top.X!=t.Bot.X&&this.ReverseHorizontal(t):i.Bot.X!=t.Bot.X&&this.ReverseHorizontal(t)),i=t,e){for(;o.Top.Y==o.Next.Bot.Y&&o.Next.OutIdx!=n.ClipperBase.Skip;)o=o.Next;if(o.Dx==n.ClipperBase.horizontal&&o.Next.OutIdx!=n.ClipperBase.Skip){for(r=o;r.Prev.Dx==n.ClipperBase.horizontal;)r=r.Prev;r.Prev.Top.X==o.Next.Top.X?e||(o=r.Prev):r.Prev.Top.X>o.Next.Top.X&&(o=r.Prev)}for(;t!=o;)t.NextInLML=t.Next,t.Dx==n.ClipperBase.horizontal&&t!=i&&t.Bot.X!=t.Prev.Top.X&&this.ReverseHorizontal(t),t=t.Next;t.Dx==n.ClipperBase.horizontal&&t!=i&&t.Bot.X!=t.Prev.Top.X&&this.ReverseHorizontal(t),o=o.Next}else{for(;o.Top.Y==o.Prev.Bot.Y&&o.Prev.OutIdx!=n.ClipperBase.Skip;)o=o.Prev;if(o.Dx==n.ClipperBase.horizontal&&o.Prev.OutIdx!=n.ClipperBase.Skip){for(r=o;r.Next.Dx==n.ClipperBase.horizontal;)r=r.Next;r.Next.Top.X==o.Prev.Top.X?e||(o=r.Next):r.Next.Top.X>o.Prev.Top.X&&(o=r.Next)}for(;t!=o;)t.NextInLML=t.Prev,t.Dx==n.ClipperBase.horizontal&&t!=i&&t.Bot.X!=t.Next.Top.X&&this.ReverseHorizontal(t),t=t.Prev;t.Dx==n.ClipperBase.horizontal&&t!=i&&t.Bot.X!=t.Next.Top.X&&this.ReverseHorizontal(t),o=o.Prev}return o},n.ClipperBase.prototype.AddPath=function(t,e,i){i||e!=n.PolyType.ptClip||n.Error("AddPath: Open paths must be subject.");var r=t.length-1;if(i)for(;r>0&&n.IntPoint.op_Equality(t[r],t[0]);)--r;for(;r>0&&n.IntPoint.op_Equality(t[r],t[r-1]);)--r;if(i&&r<2||!i&&r<1)return!1;for(var o=new Array,s=0;s<=r;s++)o.push(new n.TEdge);var a=!0;o[1].Curr.X=t[1].X,o[1].Curr.Y=t[1].Y;var u={Value:this.m_UseFullRange};this.RangeTest(t[0],u),this.m_UseFullRange=u.Value,u.Value=this.m_UseFullRange,this.RangeTest(t[r],u),this.m_UseFullRange=u.Value,this.InitEdge(o[0],o[1],o[r],t[0]),this.InitEdge(o[r],o[0],o[r-1],t[r]);for(s=r-1;s>=1;--s)u.Value=this.m_UseFullRange,this.RangeTest(t[s],u),this.m_UseFullRange=u.Value,this.InitEdge(o[s],o[s+1],o[s-1],t[s]);for(var l,h=o[0],c=h,f=h;;)if(c.Curr!=c.Next.Curr||!i&&c.Next==h){if(c.Prev==c.Next)break;if(!i||!n.ClipperBase.SlopesEqual(c.Prev.Curr,c.Curr,c.Next.Curr,this.m_UseFullRange)||this.PreserveCollinear&&this.Pt2IsBetweenPt1AndPt3(c.Prev.Curr,c.Curr,c.Next.Curr)){if((c=c.Next)==f||!i&&c.Next==h)break}else c==h&&(h=c.Next),f=c=(c=this.RemoveEdge(c)).Prev}else{if(c==c.Next)break;c==h&&(h=c.Next),f=c=this.RemoveEdge(c)}if(!i&&c==c.Next||i&&c.Prev==c.Next)return!1;i||(this.m_HasOpenPaths=!0,h.Prev.OutIdx=n.ClipperBase.Skip),c=h;do{this.InitEdge2(c,e),c=c.Next,a&&c.Curr.Y!=h.Curr.Y&&(a=!1)}while(c!=h);if(a){if(i)return!1;for(c.Prev.OutIdx=n.ClipperBase.Skip,c.Prev.Bot.X<c.Prev.Top.X&&this.ReverseHorizontal(c.Prev),(d=new n.LocalMinima).Next=null,d.Y=c.Bot.Y,d.LeftBound=null,d.RightBound=c,d.RightBound.Side=n.EdgeSide.esRight,d.RightBound.WindDelta=0;c.Next.OutIdx!=n.ClipperBase.Skip;)c.NextInLML=c.Next,c.Bot.X!=c.Prev.Top.X&&this.ReverseHorizontal(c),c=c.Next;return this.InsertLocalMinima(d),this.m_edges.push(o),!0}this.m_edges.push(o);var p=null;for(n.IntPoint.op_Equality(c.Prev.Bot,c.Prev.Top)&&(c=c.Next);(c=this.FindNextLocMin(c))!=p;){var d;null==p&&(p=c),(d=new n.LocalMinima).Next=null,d.Y=c.Bot.Y,c.Dx<c.Prev.Dx?(d.LeftBound=c.Prev,d.RightBound=c,l=!1):(d.LeftBound=c,d.RightBound=c.Prev,l=!0),d.LeftBound.Side=n.EdgeSide.esLeft,d.RightBound.Side=n.EdgeSide.esRight,i?d.LeftBound.Next==d.RightBound?d.LeftBound.WindDelta=-1:d.LeftBound.WindDelta=1:d.LeftBound.WindDelta=0,d.RightBound.WindDelta=-d.LeftBound.WindDelta,(c=this.ProcessBound(d.LeftBound,l)).OutIdx==n.ClipperBase.Skip&&(c=this.ProcessBound(c,l));var v=this.ProcessBound(d.RightBound,!l);v.OutIdx==n.ClipperBase.Skip&&(v=this.ProcessBound(v,!l)),d.LeftBound.OutIdx==n.ClipperBase.Skip?d.LeftBound=null:d.RightBound.OutIdx==n.ClipperBase.Skip&&(d.RightBound=null),this.InsertLocalMinima(d),l||(c=v)}return!0},n.ClipperBase.prototype.AddPaths=function(t,e,n){for(var i=!1,r=0,o=t.length;r<o;++r)this.AddPath(t[r],e,n)&&(i=!0);return i},n.ClipperBase.prototype.Pt2IsBetweenPt1AndPt3=function(t,e,i){return!(n.IntPoint.op_Equality(t,i)||n.IntPoint.op_Equality(t,e)||n.IntPoint.op_Equality(i,e))&&(t.X!=i.X?e.X>t.X==e.X<i.X:e.Y>t.Y==e.Y<i.Y)},n.ClipperBase.prototype.RemoveEdge=function(t){t.Prev.Next=t.Next,t.Next.Prev=t.Prev;var e=t.Next;return t.Prev=null,e},n.ClipperBase.prototype.SetDx=function(t){t.Delta.X=t.Top.X-t.Bot.X,t.Delta.Y=t.Top.Y-t.Bot.Y,0===t.Delta.Y?t.Dx=n.ClipperBase.horizontal:t.Dx=t.Delta.X/t.Delta.Y},n.ClipperBase.prototype.InsertLocalMinima=function(t){if(null===this.m_MinimaList)this.m_MinimaList=t;else if(t.Y>=this.m_MinimaList.Y)t.Next=this.m_MinimaList,this.m_MinimaList=t;else{for(var e=this.m_MinimaList;null!==e.Next&&t.Y<e.Next.Y;)e=e.Next;t.Next=e.Next,e.Next=t}},n.ClipperBase.prototype.PopLocalMinima=function(){null!==this.m_CurrentLM&&(this.m_CurrentLM=this.m_CurrentLM.Next)},n.ClipperBase.prototype.ReverseHorizontal=function(t){var e=t.Top.X;t.Top.X=t.Bot.X,t.Bot.X=e},n.ClipperBase.prototype.Reset=function(){if(this.m_CurrentLM=this.m_MinimaList,null!=this.m_CurrentLM)for(var t=this.m_MinimaList;null!=t;){var e=t.LeftBound;null!=e&&(e.Curr.X=e.Bot.X,e.Curr.Y=e.Bot.Y,e.Side=n.EdgeSide.esLeft,e.OutIdx=n.ClipperBase.Unassigned),null!=(e=t.RightBound)&&(e.Curr.X=e.Bot.X,e.Curr.Y=e.Bot.Y,e.Side=n.EdgeSide.esRight,e.OutIdx=n.ClipperBase.Unassigned),t=t.Next}},n.Clipper=function(t){void 0===t&&(t=0),this.m_PolyOuts=null,this.m_ClipType=n.ClipType.ctIntersection,this.m_Scanbeam=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=null,this.m_IntersectNodeComparer=null,this.m_ExecuteLocked=!1,this.m_ClipFillType=n.PolyFillType.pftEvenOdd,this.m_SubjFillType=n.PolyFillType.pftEvenOdd,this.m_Joins=null,this.m_GhostJoins=null,this.m_UsingPolyTree=!1,this.ReverseSolution=!1,this.StrictlySimple=!1,n.ClipperBase.call(this),this.m_Scanbeam=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=new Array,this.m_IntersectNodeComparer=n.MyIntersectNodeSort.Compare,this.m_ExecuteLocked=!1,this.m_UsingPolyTree=!1,this.m_PolyOuts=new Array,this.m_Joins=new Array,this.m_GhostJoins=new Array,this.ReverseSolution=0!=(1&t),this.StrictlySimple=0!=(2&t),this.PreserveCollinear=0!=(4&t)},n.Clipper.ioReverseSolution=1,n.Clipper.ioStrictlySimple=2,n.Clipper.ioPreserveCollinear=4,n.Clipper.prototype.Clear=function(){0!==this.m_edges.length&&(this.DisposeAllPolyPts(),n.ClipperBase.prototype.Clear.call(this))},n.Clipper.prototype.DisposeScanbeamList=function(){for(;null!==this.m_Scanbeam;){var t=this.m_Scanbeam.Next;this.m_Scanbeam=null,this.m_Scanbeam=t}},n.Clipper.prototype.Reset=function(){n.ClipperBase.prototype.Reset.call(this),this.m_Scanbeam=null,this.m_ActiveEdges=null,this.m_SortedEdges=null;for(var t=this.m_MinimaList;null!==t;)this.InsertScanbeam(t.Y),t=t.Next},n.Clipper.prototype.InsertScanbeam=function(t){if(null===this.m_Scanbeam)this.m_Scanbeam=new n.Scanbeam,this.m_Scanbeam.Next=null,this.m_Scanbeam.Y=t;else if(t>this.m_Scanbeam.Y){(i=new n.Scanbeam).Y=t,i.Next=this.m_Scanbeam,this.m_Scanbeam=i}else{for(var e=this.m_Scanbeam;null!==e.Next&&t<=e.Next.Y;)e=e.Next;if(t==e.Y)return;var i;(i=new n.Scanbeam).Y=t,i.Next=e.Next,e.Next=i}},n.Clipper.prototype.Execute=function(){var t=arguments,e=t.length,i=t[1]instanceof n.PolyTree;if(4==e&&!i){var r=t[0],o=t[1],s=t[2],a=t[3];if(this.m_ExecuteLocked)return!1;this.m_HasOpenPaths&&n.Error("Error: PolyTree struct is need for open path clipping."),this.m_ExecuteLocked=!0,n.Clear(o),this.m_SubjFillType=s,this.m_ClipFillType=a,this.m_ClipType=r,this.m_UsingPolyTree=!1;try{(l=this.ExecuteInternal())&&this.BuildResult(o)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return l}if(4==e&&i){r=t[0];var u=t[1];s=t[2],a=t[3];if(this.m_ExecuteLocked)return!1;this.m_ExecuteLocked=!0,this.m_SubjFillType=s,this.m_ClipFillType=a,this.m_ClipType=r,this.m_UsingPolyTree=!0;try{var l;(l=this.ExecuteInternal())&&this.BuildResult2(u)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return l}if(2==e&&!i){r=t[0],o=t[1];return this.Execute(r,o,n.PolyFillType.pftEvenOdd,n.PolyFillType.pftEvenOdd)}if(2==e&&i){r=t[0],u=t[1];return this.Execute(r,u,n.PolyFillType.pftEvenOdd,n.PolyFillType.pftEvenOdd)}},n.Clipper.prototype.FixHoleLinkage=function(t){if(null!==t.FirstLeft&&(t.IsHole==t.FirstLeft.IsHole||null===t.FirstLeft.Pts)){for(var e=t.FirstLeft;null!==e&&(e.IsHole==t.IsHole||null===e.Pts);)e=e.FirstLeft;t.FirstLeft=e}},n.Clipper.prototype.ExecuteInternal=function(){try{if(this.Reset(),null===this.m_CurrentLM)return!1;var t=this.PopScanbeam();do{if(this.InsertLocalMinimaIntoAEL(t),n.Clear(this.m_GhostJoins),this.ProcessHorizontals(!1),null===this.m_Scanbeam)break;var e=this.PopScanbeam();if(!this.ProcessIntersections(e))return!1;this.ProcessEdgesAtTopOfScanbeam(e),t=e}while(null!==this.m_Scanbeam||null!==this.m_CurrentLM);for(var i=0,r=this.m_PolyOuts.length;i<r;i++){null===(o=this.m_PolyOuts[i]).Pts||o.IsOpen||(o.IsHole^this.ReverseSolution)==this.Area(o)>0&&this.ReversePolyPtLinks(o.Pts)}this.JoinCommonEdges();for(i=0,r=this.m_PolyOuts.length;i<r;i++){var o;null===(o=this.m_PolyOuts[i]).Pts||o.IsOpen||this.FixupOutPolygon(o)}return this.StrictlySimple&&this.DoSimplePolygons(),!0}finally{n.Clear(this.m_Joins),n.Clear(this.m_GhostJoins)}},n.Clipper.prototype.PopScanbeam=function(){var t=this.m_Scanbeam.Y;return this.m_Scanbeam=this.m_Scanbeam.Next,t},n.Clipper.prototype.DisposeAllPolyPts=function(){for(var t=0,e=this.m_PolyOuts.length;t<e;++t)this.DisposeOutRec(t);n.Clear(this.m_PolyOuts)},n.Clipper.prototype.DisposeOutRec=function(t){var e=this.m_PolyOuts[t];e.Pts=null,e=null,this.m_PolyOuts[t]=null},n.Clipper.prototype.AddJoin=function(t,e,i){var r=new n.Join;r.OutPt1=t,r.OutPt2=e,r.OffPt.X=i.X,r.OffPt.Y=i.Y,this.m_Joins.push(r)},n.Clipper.prototype.AddGhostJoin=function(t,e){var i=new n.Join;i.OutPt1=t,i.OffPt.X=e.X,i.OffPt.Y=e.Y,this.m_GhostJoins.push(i)},n.Clipper.prototype.InsertLocalMinimaIntoAEL=function(t){for(;null!==this.m_CurrentLM&&this.m_CurrentLM.Y==t;){var e=this.m_CurrentLM.LeftBound,i=this.m_CurrentLM.RightBound;this.PopLocalMinima();var r=null;if(null===e?(this.InsertEdgeIntoAEL(i,null),this.SetWindingCount(i),this.IsContributing(i)&&(r=this.AddOutPt(i,i.Bot))):null==i?(this.InsertEdgeIntoAEL(e,null),this.SetWindingCount(e),this.IsContributing(e)&&(r=this.AddOutPt(e,e.Bot)),this.InsertScanbeam(e.Top.Y)):(this.InsertEdgeIntoAEL(e,null),this.InsertEdgeIntoAEL(i,e),this.SetWindingCount(e),i.WindCnt=e.WindCnt,i.WindCnt2=e.WindCnt2,this.IsContributing(e)&&(r=this.AddLocalMinPoly(e,i,e.Bot)),this.InsertScanbeam(e.Top.Y)),null!=i&&(n.ClipperBase.IsHorizontal(i)?this.AddEdgeToSEL(i):this.InsertScanbeam(i.Top.Y)),null!=e&&null!=i){if(null!==r&&n.ClipperBase.IsHorizontal(i)&&this.m_GhostJoins.length>0&&0!==i.WindDelta)for(var o=0,s=this.m_GhostJoins.length;o<s;o++){var a=this.m_GhostJoins[o];this.HorzSegmentsOverlap(a.OutPt1.Pt.X,a.OffPt.X,i.Bot.X,i.Top.X)&&this.AddJoin(a.OutPt1,r,a.OffPt)}if(e.OutIdx>=0&&null!==e.PrevInAEL&&e.PrevInAEL.Curr.X==e.Bot.X&&e.PrevInAEL.OutIdx>=0&&n.ClipperBase.SlopesEqual(e.PrevInAEL,e,this.m_UseFullRange)&&0!==e.WindDelta&&0!==e.PrevInAEL.WindDelta){var u=this.AddOutPt(e.PrevInAEL,e.Bot);this.AddJoin(r,u,e.Top)}if(e.NextInAEL!=i){if(i.OutIdx>=0&&i.PrevInAEL.OutIdx>=0&&n.ClipperBase.SlopesEqual(i.PrevInAEL,i,this.m_UseFullRange)&&0!==i.WindDelta&&0!==i.PrevInAEL.WindDelta){u=this.AddOutPt(i.PrevInAEL,i.Bot);this.AddJoin(r,u,i.Top)}var l=e.NextInAEL;if(null!==l)for(;l!=i;)this.IntersectEdges(i,l,e.Curr,!1),l=l.NextInAEL}}}},n.Clipper.prototype.InsertEdgeIntoAEL=function(t,e){if(null===this.m_ActiveEdges)t.PrevInAEL=null,t.NextInAEL=null,this.m_ActiveEdges=t;else if(null===e&&this.E2InsertsBeforeE1(this.m_ActiveEdges,t))t.PrevInAEL=null,t.NextInAEL=this.m_ActiveEdges,this.m_ActiveEdges.PrevInAEL=t,this.m_ActiveEdges=t;else{for(null===e&&(e=this.m_ActiveEdges);null!==e.NextInAEL&&!this.E2InsertsBeforeE1(e.NextInAEL,t);)e=e.NextInAEL;t.NextInAEL=e.NextInAEL,null!==e.NextInAEL&&(e.NextInAEL.PrevInAEL=t),t.PrevInAEL=e,e.NextInAEL=t}},n.Clipper.prototype.E2InsertsBeforeE1=function(t,e){return e.Curr.X==t.Curr.X?e.Top.Y>t.Top.Y?e.Top.X<n.Clipper.TopX(t,e.Top.Y):t.Top.X>n.Clipper.TopX(e,t.Top.Y):e.Curr.X<t.Curr.X},n.Clipper.prototype.IsEvenOddFillType=function(t){return t.PolyTyp==n.PolyType.ptSubject?this.m_SubjFillType==n.PolyFillType.pftEvenOdd:this.m_ClipFillType==n.PolyFillType.pftEvenOdd},n.Clipper.prototype.IsEvenOddAltFillType=function(t){return t.PolyTyp==n.PolyType.ptSubject?this.m_ClipFillType==n.PolyFillType.pftEvenOdd:this.m_SubjFillType==n.PolyFillType.pftEvenOdd},n.Clipper.prototype.IsContributing=function(t){var e,i;switch(t.PolyTyp==n.PolyType.ptSubject?(e=this.m_SubjFillType,i=this.m_ClipFillType):(e=this.m_ClipFillType,i=this.m_SubjFillType),e){case n.PolyFillType.pftEvenOdd:if(0===t.WindDelta&&1!=t.WindCnt)return!1;break;case n.PolyFillType.pftNonZero:if(1!=Math.abs(t.WindCnt))return!1;break;case n.PolyFillType.pftPositive:if(1!=t.WindCnt)return!1;break;default:if(-1!=t.WindCnt)return!1}switch(this.m_ClipType){case n.ClipType.ctIntersection:switch(i){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return 0!==t.WindCnt2;case n.PolyFillType.pftPositive:return t.WindCnt2>0;default:return t.WindCnt2<0}case n.ClipType.ctUnion:switch(i){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return 0===t.WindCnt2;case n.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}case n.ClipType.ctDifference:if(t.PolyTyp==n.PolyType.ptSubject)switch(i){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return 0===t.WindCnt2;case n.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}else switch(i){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return 0!==t.WindCnt2;case n.PolyFillType.pftPositive:return t.WindCnt2>0;default:return t.WindCnt2<0}case n.ClipType.ctXor:if(0!==t.WindDelta)return!0;switch(i){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return 0===t.WindCnt2;case n.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}}return!0},n.Clipper.prototype.SetWindingCount=function(t){for(var e=t.PrevInAEL;null!==e&&(e.PolyTyp!=t.PolyTyp||0===e.WindDelta);)e=e.PrevInAEL;if(null===e)t.WindCnt=0===t.WindDelta?1:t.WindDelta,t.WindCnt2=0,e=this.m_ActiveEdges;else if(0===t.WindDelta&&this.m_ClipType!=n.ClipType.ctUnion)t.WindCnt=1,t.WindCnt2=e.WindCnt2,e=e.NextInAEL;else if(this.IsEvenOddFillType(t)){if(0===t.WindDelta){for(var i=!0,r=e.PrevInAEL;null!==r;)r.PolyTyp==e.PolyTyp&&0!==r.WindDelta&&(i=!i),r=r.PrevInAEL;t.WindCnt=i?0:1}else t.WindCnt=t.WindDelta;t.WindCnt2=e.WindCnt2,e=e.NextInAEL}else e.WindCnt*e.WindDelta<0?Math.abs(e.WindCnt)>1?e.WindDelta*t.WindDelta<0?t.WindCnt=e.WindCnt:t.WindCnt=e.WindCnt+t.WindDelta:t.WindCnt=0===t.WindDelta?1:t.WindDelta:0===t.WindDelta?t.WindCnt=e.WindCnt<0?e.WindCnt-1:e.WindCnt+1:e.WindDelta*t.WindDelta<0?t.WindCnt=e.WindCnt:t.WindCnt=e.WindCnt+t.WindDelta,t.WindCnt2=e.WindCnt2,e=e.NextInAEL;if(this.IsEvenOddAltFillType(t))for(;e!=t;)0!==e.WindDelta&&(t.WindCnt2=0===t.WindCnt2?1:0),e=e.NextInAEL;else for(;e!=t;)t.WindCnt2+=e.WindDelta,e=e.NextInAEL},n.Clipper.prototype.AddEdgeToSEL=function(t){null===this.m_SortedEdges?(this.m_SortedEdges=t,t.PrevInSEL=null,t.NextInSEL=null):(t.NextInSEL=this.m_SortedEdges,t.PrevInSEL=null,this.m_SortedEdges.PrevInSEL=t,this.m_SortedEdges=t)},n.Clipper.prototype.CopyAELToSEL=function(){var t=this.m_ActiveEdges;for(this.m_SortedEdges=t;null!==t;)t.PrevInSEL=t.PrevInAEL,t.NextInSEL=t.NextInAEL,t=t.NextInAEL},n.Clipper.prototype.SwapPositionsInAEL=function(t,e){if(t.NextInAEL!=t.PrevInAEL&&e.NextInAEL!=e.PrevInAEL){if(t.NextInAEL==e)null!==(n=e.NextInAEL)&&(n.PrevInAEL=t),null!==(i=t.PrevInAEL)&&(i.NextInAEL=e),e.PrevInAEL=i,e.NextInAEL=t,t.PrevInAEL=e,t.NextInAEL=n;else if(e.NextInAEL==t){null!==(n=t.NextInAEL)&&(n.PrevInAEL=e),null!==(i=e.PrevInAEL)&&(i.NextInAEL=t),t.PrevInAEL=i,t.NextInAEL=e,e.PrevInAEL=t,e.NextInAEL=n}else{var n=t.NextInAEL,i=t.PrevInAEL;t.NextInAEL=e.NextInAEL,null!==t.NextInAEL&&(t.NextInAEL.PrevInAEL=t),t.PrevInAEL=e.PrevInAEL,null!==t.PrevInAEL&&(t.PrevInAEL.NextInAEL=t),e.NextInAEL=n,null!==e.NextInAEL&&(e.NextInAEL.PrevInAEL=e),e.PrevInAEL=i,null!==e.PrevInAEL&&(e.PrevInAEL.NextInAEL=e)}null===t.PrevInAEL?this.m_ActiveEdges=t:null===e.PrevInAEL&&(this.m_ActiveEdges=e)}},n.Clipper.prototype.SwapPositionsInSEL=function(t,e){if(!(null===t.NextInSEL&&null===t.PrevInSEL||null===e.NextInSEL&&null===e.PrevInSEL)){if(t.NextInSEL==e)null!==(n=e.NextInSEL)&&(n.PrevInSEL=t),null!==(i=t.PrevInSEL)&&(i.NextInSEL=e),e.PrevInSEL=i,e.NextInSEL=t,t.PrevInSEL=e,t.NextInSEL=n;else if(e.NextInSEL==t){null!==(n=t.NextInSEL)&&(n.PrevInSEL=e),null!==(i=e.PrevInSEL)&&(i.NextInSEL=t),t.PrevInSEL=i,t.NextInSEL=e,e.PrevInSEL=t,e.NextInSEL=n}else{var n=t.NextInSEL,i=t.PrevInSEL;t.NextInSEL=e.NextInSEL,null!==t.NextInSEL&&(t.NextInSEL.PrevInSEL=t),t.PrevInSEL=e.PrevInSEL,null!==t.PrevInSEL&&(t.PrevInSEL.NextInSEL=t),e.NextInSEL=n,null!==e.NextInSEL&&(e.NextInSEL.PrevInSEL=e),e.PrevInSEL=i,null!==e.PrevInSEL&&(e.PrevInSEL.NextInSEL=e)}null===t.PrevInSEL?this.m_SortedEdges=t:null===e.PrevInSEL&&(this.m_SortedEdges=e)}},n.Clipper.prototype.AddLocalMaxPoly=function(t,e,n){this.AddOutPt(t,n),0==e.WindDelta&&this.AddOutPt(e,n),t.OutIdx==e.OutIdx?(t.OutIdx=-1,e.OutIdx=-1):t.OutIdx<e.OutIdx?this.AppendPolygon(t,e):this.AppendPolygon(e,t)},n.Clipper.prototype.AddLocalMinPoly=function(t,e,i){var r,o,s;if(n.ClipperBase.IsHorizontal(e)||t.Dx>e.Dx?(r=this.AddOutPt(t,i),e.OutIdx=t.OutIdx,t.Side=n.EdgeSide.esLeft,e.Side=n.EdgeSide.esRight,s=(o=t).PrevInAEL==e?e.PrevInAEL:o.PrevInAEL):(r=this.AddOutPt(e,i),t.OutIdx=e.OutIdx,t.Side=n.EdgeSide.esRight,e.Side=n.EdgeSide.esLeft,s=(o=e).PrevInAEL==t?t.PrevInAEL:o.PrevInAEL),null!==s&&s.OutIdx>=0&&n.Clipper.TopX(s,i.Y)==n.Clipper.TopX(o,i.Y)&&n.ClipperBase.SlopesEqual(o,s,this.m_UseFullRange)&&0!==o.WindDelta&&0!==s.WindDelta){var a=this.AddOutPt(s,i);this.AddJoin(r,a,o.Top)}return r},n.Clipper.prototype.CreateOutRec=function(){var t=new n.OutRec;return t.Idx=-1,t.IsHole=!1,t.IsOpen=!1,t.FirstLeft=null,t.Pts=null,t.BottomPt=null,t.PolyNode=null,this.m_PolyOuts.push(t),t.Idx=this.m_PolyOuts.length-1,t},n.Clipper.prototype.AddOutPt=function(t,e){var i=t.Side==n.EdgeSide.esLeft;if(t.OutIdx<0){(o=this.CreateOutRec()).IsOpen=0===t.WindDelta;var r=new n.OutPt;return o.Pts=r,r.Idx=o.Idx,r.Pt.X=e.X,r.Pt.Y=e.Y,r.Next=r,r.Prev=r,o.IsOpen||this.SetHoleState(t,o),t.OutIdx=o.Idx,r}var o,s=(o=this.m_PolyOuts[t.OutIdx]).Pts;return i&&n.IntPoint.op_Equality(e,s.Pt)?s:!i&&n.IntPoint.op_Equality(e,s.Prev.Pt)?s.Prev:((r=new n.OutPt).Idx=o.Idx,r.Pt.X=e.X,r.Pt.Y=e.Y,r.Next=s,r.Prev=s.Prev,r.Prev.Next=r,s.Prev=r,i&&(o.Pts=r),r)},n.Clipper.prototype.SwapPoints=function(t,e){var i=new n.IntPoint(t.Value);t.Value.X=e.Value.X,t.Value.Y=e.Value.Y,e.Value.X=i.X,e.Value.Y=i.Y},n.Clipper.prototype.HorzSegmentsOverlap=function(t,e,n,i){var r;return t>e&&(r=t,t=e,e=r),n>i&&(r=n,n=i,i=r),t<i&&n<e},n.Clipper.prototype.SetHoleState=function(t,e){for(var n=!1,i=t.PrevInAEL;null!==i;)i.OutIdx>=0&&0!=i.WindDelta&&(n=!n,null===e.FirstLeft&&(e.FirstLeft=this.m_PolyOuts[i.OutIdx])),i=i.PrevInAEL;n&&(e.IsHole=!0)},n.Clipper.prototype.GetDx=function(t,e){return t.Y==e.Y?n.ClipperBase.horizontal:(e.X-t.X)/(e.Y-t.Y)},n.Clipper.prototype.FirstIsBottomPt=function(t,e){for(var i=t.Prev;n.IntPoint.op_Equality(i.Pt,t.Pt)&&i!=t;)i=i.Prev;var r=Math.abs(this.GetDx(t.Pt,i.Pt));for(i=t.Next;n.IntPoint.op_Equality(i.Pt,t.Pt)&&i!=t;)i=i.Next;var o=Math.abs(this.GetDx(t.Pt,i.Pt));for(i=e.Prev;n.IntPoint.op_Equality(i.Pt,e.Pt)&&i!=e;)i=i.Prev;var s=Math.abs(this.GetDx(e.Pt,i.Pt));for(i=e.Next;n.IntPoint.op_Equality(i.Pt,e.Pt)&&i!=e;)i=i.Next;var a=Math.abs(this.GetDx(e.Pt,i.Pt));return r>=s&&r>=a||o>=s&&o>=a},n.Clipper.prototype.GetBottomPt=function(t){for(var e=null,i=t.Next;i!=t;)i.Pt.Y>t.Pt.Y?(t=i,e=null):i.Pt.Y==t.Pt.Y&&i.Pt.X<=t.Pt.X&&(i.Pt.X<t.Pt.X?(e=null,t=i):i.Next!=t&&i.Prev!=t&&(e=i)),i=i.Next;if(null!==e)for(;e!=i;)for(this.FirstIsBottomPt(i,e)||(t=e),e=e.Next;n.IntPoint.op_Inequality(e.Pt,t.Pt);)e=e.Next;return t},n.Clipper.prototype.GetLowermostRec=function(t,e){null===t.BottomPt&&(t.BottomPt=this.GetBottomPt(t.Pts)),null===e.BottomPt&&(e.BottomPt=this.GetBottomPt(e.Pts));var n=t.BottomPt,i=e.BottomPt;return n.Pt.Y>i.Pt.Y?t:n.Pt.Y<i.Pt.Y?e:n.Pt.X<i.Pt.X?t:n.Pt.X>i.Pt.X?e:n.Next==n?e:i.Next==i?t:this.FirstIsBottomPt(n,i)?t:e},n.Clipper.prototype.Param1RightOfParam2=function(t,e){do{if((t=t.FirstLeft)==e)return!0}while(null!==t);return!1},n.Clipper.prototype.GetOutRec=function(t){for(var e=this.m_PolyOuts[t];e!=this.m_PolyOuts[e.Idx];)e=this.m_PolyOuts[e.Idx];return e},n.Clipper.prototype.AppendPolygon=function(t,e){var i,r=this.m_PolyOuts[t.OutIdx],o=this.m_PolyOuts[e.OutIdx];i=this.Param1RightOfParam2(r,o)?o:this.Param1RightOfParam2(o,r)?r:this.GetLowermostRec(r,o);var s,a=r.Pts,u=a.Prev,l=o.Pts,h=l.Prev;t.Side==n.EdgeSide.esLeft?(e.Side==n.EdgeSide.esLeft?(this.ReversePolyPtLinks(l),l.Next=a,a.Prev=l,u.Next=h,h.Prev=u,r.Pts=h):(h.Next=a,a.Prev=h,l.Prev=u,u.Next=l,r.Pts=l),s=n.EdgeSide.esLeft):(e.Side==n.EdgeSide.esRight?(this.ReversePolyPtLinks(l),u.Next=h,h.Prev=u,l.Next=a,a.Prev=l):(u.Next=l,l.Prev=u,a.Prev=h,h.Next=a),s=n.EdgeSide.esRight),r.BottomPt=null,i==o&&(o.FirstLeft!=r&&(r.FirstLeft=o.FirstLeft),r.IsHole=o.IsHole),o.Pts=null,o.BottomPt=null,o.FirstLeft=r;var c=t.OutIdx,f=e.OutIdx;t.OutIdx=-1,e.OutIdx=-1;for(var p=this.m_ActiveEdges;null!==p;){if(p.OutIdx==f){p.OutIdx=c,p.Side=s;break}p=p.NextInAEL}o.Idx=r.Idx},n.Clipper.prototype.ReversePolyPtLinks=function(t){if(null!==t){var e,n;e=t;do{n=e.Next,e.Next=e.Prev,e.Prev=n,e=n}while(e!=t)}},n.Clipper.SwapSides=function(t,e){var n=t.Side;t.Side=e.Side,e.Side=n},n.Clipper.SwapPolyIndexes=function(t,e){var n=t.OutIdx;t.OutIdx=e.OutIdx,e.OutIdx=n},n.Clipper.prototype.IntersectEdges=function(t,e,i){var r=t.OutIdx>=0,o=e.OutIdx>=0;if(0!==t.WindDelta&&0!==e.WindDelta){if(t.PolyTyp==e.PolyTyp)if(this.IsEvenOddFillType(t)){var s=t.WindCnt;t.WindCnt=e.WindCnt,e.WindCnt=s}else t.WindCnt+e.WindDelta===0?t.WindCnt=-t.WindCnt:t.WindCnt+=e.WindDelta,e.WindCnt-t.WindDelta==0?e.WindCnt=-e.WindCnt:e.WindCnt-=t.WindDelta;else this.IsEvenOddFillType(e)?t.WindCnt2=0===t.WindCnt2?1:0:t.WindCnt2+=e.WindDelta,this.IsEvenOddFillType(t)?e.WindCnt2=0===e.WindCnt2?1:0:e.WindCnt2-=t.WindDelta;var a,u,l,h,c,f;switch(t.PolyTyp==n.PolyType.ptSubject?(a=this.m_SubjFillType,l=this.m_ClipFillType):(a=this.m_ClipFillType,l=this.m_SubjFillType),e.PolyTyp==n.PolyType.ptSubject?(u=this.m_SubjFillType,h=this.m_ClipFillType):(u=this.m_ClipFillType,h=this.m_SubjFillType),a){case n.PolyFillType.pftPositive:c=t.WindCnt;break;case n.PolyFillType.pftNegative:c=-t.WindCnt;break;default:c=Math.abs(t.WindCnt)}switch(u){case n.PolyFillType.pftPositive:f=e.WindCnt;break;case n.PolyFillType.pftNegative:f=-e.WindCnt;break;default:f=Math.abs(e.WindCnt)}if(r&&o)0!=c&&1!=c||0!=f&&1!=f||t.PolyTyp!=e.PolyTyp&&this.m_ClipType!=n.ClipType.ctXor?this.AddLocalMaxPoly(t,e,i):(this.AddOutPt(t,i),this.AddOutPt(e,i),n.Clipper.SwapSides(t,e),n.Clipper.SwapPolyIndexes(t,e));else if(r)0!==f&&1!=f||(this.AddOutPt(t,i),n.Clipper.SwapSides(t,e),n.Clipper.SwapPolyIndexes(t,e));else if(o)0!==c&&1!=c||(this.AddOutPt(e,i),n.Clipper.SwapSides(t,e),n.Clipper.SwapPolyIndexes(t,e));else if(!(0!=c&&1!=c||0!=f&&1!=f)){var p,d;switch(l){case n.PolyFillType.pftPositive:p=t.WindCnt2;break;case n.PolyFillType.pftNegative:p=-t.WindCnt2;break;default:p=Math.abs(t.WindCnt2)}switch(h){case n.PolyFillType.pftPositive:d=e.WindCnt2;break;case n.PolyFillType.pftNegative:d=-e.WindCnt2;break;default:d=Math.abs(e.WindCnt2)}if(t.PolyTyp!=e.PolyTyp)this.AddLocalMinPoly(t,e,i);else if(1==c&&1==f)switch(this.m_ClipType){case n.ClipType.ctIntersection:p>0&&d>0&&this.AddLocalMinPoly(t,e,i);break;case n.ClipType.ctUnion:p<=0&&d<=0&&this.AddLocalMinPoly(t,e,i);break;case n.ClipType.ctDifference:(t.PolyTyp==n.PolyType.ptClip&&p>0&&d>0||t.PolyTyp==n.PolyType.ptSubject&&p<=0&&d<=0)&&this.AddLocalMinPoly(t,e,i);break;case n.ClipType.ctXor:this.AddLocalMinPoly(t,e,i)}else n.Clipper.SwapSides(t,e)}}else{if(0==t.WindDelta&&0==e.WindDelta)return;t.PolyTyp==e.PolyTyp&&t.WindDelta!=e.WindDelta&&this.m_ClipType==n.ClipType.ctUnion?0===t.WindDelta?o&&(this.AddOutPt(t,i),r&&(t.OutIdx=-1)):r&&(this.AddOutPt(e,i),o&&(e.OutIdx=-1)):t.PolyTyp!=e.PolyTyp&&(0!==t.WindDelta||1!=Math.abs(e.WindCnt)||this.m_ClipType==n.ClipType.ctUnion&&0!==e.WindCnt2?0!==e.WindDelta||1!=Math.abs(t.WindCnt)||this.m_ClipType==n.ClipType.ctUnion&&0!==t.WindCnt2||(this.AddOutPt(e,i),o&&(e.OutIdx=-1)):(this.AddOutPt(t,i),r&&(t.OutIdx=-1)))}},n.Clipper.prototype.DeleteFromAEL=function(t){var e=t.PrevInAEL,n=t.NextInAEL;null===e&&null===n&&t!=this.m_ActiveEdges||(null!==e?e.NextInAEL=n:this.m_ActiveEdges=n,null!==n&&(n.PrevInAEL=e),t.NextInAEL=null,t.PrevInAEL=null)},n.Clipper.prototype.DeleteFromSEL=function(t){var e=t.PrevInSEL,n=t.NextInSEL;null===e&&null===n&&t!=this.m_SortedEdges||(null!==e?e.NextInSEL=n:this.m_SortedEdges=n,null!==n&&(n.PrevInSEL=e),t.NextInSEL=null,t.PrevInSEL=null)},n.Clipper.prototype.UpdateEdgeIntoAEL=function(t){null===t.NextInLML&&n.Error("UpdateEdgeIntoAEL: invalid call");var e=t.PrevInAEL,i=t.NextInAEL;return t.NextInLML.OutIdx=t.OutIdx,null!==e?e.NextInAEL=t.NextInLML:this.m_ActiveEdges=t.NextInLML,null!==i&&(i.PrevInAEL=t.NextInLML),t.NextInLML.Side=t.Side,t.NextInLML.WindDelta=t.WindDelta,t.NextInLML.WindCnt=t.WindCnt,t.NextInLML.WindCnt2=t.WindCnt2,(t=t.NextInLML).Curr.X=t.Bot.X,t.Curr.Y=t.Bot.Y,t.PrevInAEL=e,t.NextInAEL=i,n.ClipperBase.IsHorizontal(t)||this.InsertScanbeam(t.Top.Y),t},n.Clipper.prototype.ProcessHorizontals=function(t){for(var e=this.m_SortedEdges;null!==e;)this.DeleteFromSEL(e),this.ProcessHorizontal(e,t),e=this.m_SortedEdges},n.Clipper.prototype.GetHorzDirection=function(t,e){t.Bot.X<t.Top.X?(e.Left=t.Bot.X,e.Right=t.Top.X,e.Dir=n.Direction.dLeftToRight):(e.Left=t.Top.X,e.Right=t.Bot.X,e.Dir=n.Direction.dRightToLeft)},n.Clipper.prototype.ProcessHorizontal=function(t,e){var i={Dir:null,Left:null,Right:null};this.GetHorzDirection(t,i);for(var r=i.Dir,o=i.Left,s=i.Right,a=t,u=null;null!==a.NextInLML&&n.ClipperBase.IsHorizontal(a.NextInLML);)a=a.NextInLML;for(null===a.NextInLML&&(u=this.GetMaximaPair(a));;){for(var l=t==a,h=this.GetNextInAEL(t,r);null!==h&&!(h.Curr.X==t.Top.X&&null!==t.NextInLML&&h.Dx<t.NextInLML.Dx);){var c=this.GetNextInAEL(h,r);if(r==n.Direction.dLeftToRight&&h.Curr.X<=s||r==n.Direction.dRightToLeft&&h.Curr.X>=o){if(h==u&&l){if(t.OutIdx>=0){for(var f=this.AddOutPt(t,t.Top),p=this.m_SortedEdges;null!==p;){if(p.OutIdx>=0&&this.HorzSegmentsOverlap(t.Bot.X,t.Top.X,p.Bot.X,p.Top.X)){var d=this.AddOutPt(p,p.Bot);this.AddJoin(d,f,p.Top)}p=p.NextInSEL}this.AddGhostJoin(f,t.Bot),this.AddLocalMaxPoly(t,u,t.Top)}return this.DeleteFromAEL(t),void this.DeleteFromAEL(u)}if(r==n.Direction.dLeftToRight){var v=new n.IntPoint(h.Curr.X,t.Curr.Y);this.IntersectEdges(t,h,v)}else{v=new n.IntPoint(h.Curr.X,t.Curr.Y);this.IntersectEdges(h,t,v)}this.SwapPositionsInAEL(t,h)}else if(r==n.Direction.dLeftToRight&&h.Curr.X>=s||r==n.Direction.dRightToLeft&&h.Curr.X<=o)break;h=c}if(null===t.NextInLML||!n.ClipperBase.IsHorizontal(t.NextInLML))break;(t=this.UpdateEdgeIntoAEL(t)).OutIdx>=0&&this.AddOutPt(t,t.Bot);i={Dir:r,Left:o,Right:s};this.GetHorzDirection(t,i),r=i.Dir,o=i.Left,s=i.Right}if(null!==t.NextInLML)if(t.OutIdx>=0){f=this.AddOutPt(t,t.Top);if(e&&this.AddGhostJoin(f,t.Bot),0===(t=this.UpdateEdgeIntoAEL(t)).WindDelta)return;var m=t.PrevInAEL;c=t.NextInAEL;if(null!==m&&m.Curr.X==t.Bot.X&&m.Curr.Y==t.Bot.Y&&0!==m.WindDelta&&m.OutIdx>=0&&m.Curr.Y>m.Top.Y&&n.ClipperBase.SlopesEqual(t,m,this.m_UseFullRange)){d=this.AddOutPt(m,t.Bot);this.AddJoin(f,d,t.Top)}else if(null!==c&&c.Curr.X==t.Bot.X&&c.Curr.Y==t.Bot.Y&&0!==c.WindDelta&&c.OutIdx>=0&&c.Curr.Y>c.Top.Y&&n.ClipperBase.SlopesEqual(t,c,this.m_UseFullRange)){d=this.AddOutPt(c,t.Bot);this.AddJoin(f,d,t.Top)}}else t=this.UpdateEdgeIntoAEL(t);else t.OutIdx>=0&&this.AddOutPt(t,t.Top),this.DeleteFromAEL(t)},n.Clipper.prototype.GetNextInAEL=function(t,e){return e==n.Direction.dLeftToRight?t.NextInAEL:t.PrevInAEL},n.Clipper.prototype.IsMinima=function(t){return null!==t&&t.Prev.NextInLML!=t&&t.Next.NextInLML!=t},n.Clipper.prototype.IsMaxima=function(t,e){return null!==t&&t.Top.Y==e&&null===t.NextInLML},n.Clipper.prototype.IsIntermediate=function(t,e){return t.Top.Y==e&&null!==t.NextInLML},n.Clipper.prototype.GetMaximaPair=function(t){var e=null;return n.IntPoint.op_Equality(t.Next.Top,t.Top)&&null===t.Next.NextInLML?e=t.Next:n.IntPoint.op_Equality(t.Prev.Top,t.Top)&&null===t.Prev.NextInLML&&(e=t.Prev),null===e||-2!=e.OutIdx&&(e.NextInAEL!=e.PrevInAEL||n.ClipperBase.IsHorizontal(e))?e:null},n.Clipper.prototype.ProcessIntersections=function(t){if(null==this.m_ActiveEdges)return!0;try{if(this.BuildIntersectList(t),0==this.m_IntersectList.length)return!0;if(1!=this.m_IntersectList.length&&!this.FixupIntersectionOrder())return!1;this.ProcessIntersectList()}catch(t){this.m_SortedEdges=null,this.m_IntersectList.length=0,n.Error("ProcessIntersections error")}return this.m_SortedEdges=null,!0},n.Clipper.prototype.BuildIntersectList=function(t){if(null!==this.m_ActiveEdges){var e=this.m_ActiveEdges;for(this.m_SortedEdges=e;null!==e;)e.PrevInSEL=e.PrevInAEL,e.NextInSEL=e.NextInAEL,e.Curr.X=n.Clipper.TopX(e,t),e=e.NextInAEL;for(var i=!0;i&&null!==this.m_SortedEdges;){for(i=!1,e=this.m_SortedEdges;null!==e.NextInSEL;){var r=e.NextInSEL,o=new n.IntPoint;if(e.Curr.X>r.Curr.X){this.IntersectPoint(e,r,o);var s=new n.IntersectNode;s.Edge1=e,s.Edge2=r,s.Pt.X=o.X,s.Pt.Y=o.Y,this.m_IntersectList.push(s),this.SwapPositionsInSEL(e,r),i=!0}else e=r}if(null===e.PrevInSEL)break;e.PrevInSEL.NextInSEL=null}this.m_SortedEdges=null}},n.Clipper.prototype.EdgesAdjacent=function(t){return t.Edge1.NextInSEL==t.Edge2||t.Edge1.PrevInSEL==t.Edge2},n.Clipper.IntersectNodeSort=function(t,e){return e.Pt.Y-t.Pt.Y},n.Clipper.prototype.FixupIntersectionOrder=function(){this.m_IntersectList.sort(this.m_IntersectNodeComparer),this.CopyAELToSEL();for(var t=this.m_IntersectList.length,e=0;e<t;e++){if(!this.EdgesAdjacent(this.m_IntersectList[e])){for(var n=e+1;n<t&&!this.EdgesAdjacent(this.m_IntersectList[n]);)n++;if(n==t)return!1;var i=this.m_IntersectList[e];this.m_IntersectList[e]=this.m_IntersectList[n],this.m_IntersectList[n]=i}this.SwapPositionsInSEL(this.m_IntersectList[e].Edge1,this.m_IntersectList[e].Edge2)}return!0},n.Clipper.prototype.ProcessIntersectList=function(){for(var t=0,e=this.m_IntersectList.length;t<e;t++){var n=this.m_IntersectList[t];this.IntersectEdges(n.Edge1,n.Edge2,n.Pt),this.SwapPositionsInAEL(n.Edge1,n.Edge2)}this.m_IntersectList.length=0};s.msie?n.Clipper.Round=function(t){return t<0?Math.ceil(t-.5):Math.round(t)}:s.chromium?n.Clipper.Round=function(t){return t<0?-Math.round(Math.abs(t)):Math.round(t)}:s.safari?n.Clipper.Round=function(t){return t<0?(t-=.5)<-2147483648?Math.ceil(t):0|t:(t+=.5)>2147483647?Math.floor(t):0|t}:n.Clipper.Round=function(t){return t<0?Math.ceil(t-.5):Math.floor(t+.5)},n.Clipper.TopX=function(t,e){return e==t.Top.Y?t.Top.X:t.Bot.X+n.Clipper.Round(t.Dx*(e-t.Bot.Y))},n.Clipper.prototype.IntersectPoint=function(t,e,i){var r,o;if(i.X=0,i.Y=0,t.Dx==e.Dx)return i.Y=t.Curr.Y,void(i.X=n.Clipper.TopX(t,i.Y));if(0===t.Delta.X)i.X=t.Bot.X,n.ClipperBase.IsHorizontal(e)?i.Y=e.Bot.Y:(o=e.Bot.Y-e.Bot.X/e.Dx,i.Y=n.Clipper.Round(i.X/e.Dx+o));else if(0===e.Delta.X)i.X=e.Bot.X,n.ClipperBase.IsHorizontal(t)?i.Y=t.Bot.Y:(r=t.Bot.Y-t.Bot.X/t.Dx,i.Y=n.Clipper.Round(i.X/t.Dx+r));else{r=t.Bot.X-t.Bot.Y*t.Dx;var s=((o=e.Bot.X-e.Bot.Y*e.Dx)-r)/(t.Dx-e.Dx);i.Y=n.Clipper.Round(s),Math.abs(t.Dx)<Math.abs(e.Dx)?i.X=n.Clipper.Round(t.Dx*s+r):i.X=n.Clipper.Round(e.Dx*s+o)}if(i.Y<t.Top.Y||i.Y<e.Top.Y){if(t.Top.Y>e.Top.Y)return i.Y=t.Top.Y,i.X=n.Clipper.TopX(e,t.Top.Y),i.X<t.Top.X;i.Y=e.Top.Y,Math.abs(t.Dx)<Math.abs(e.Dx)?i.X=n.Clipper.TopX(t,i.Y):i.X=n.Clipper.TopX(e,i.Y)}i.Y>t.Curr.Y&&(i.Y=t.Curr.Y,Math.abs(t.Dx)>Math.abs(e.Dx)?i.X=n.Clipper.TopX(e,i.Y):i.X=n.Clipper.TopX(t,i.Y))},n.Clipper.prototype.ProcessEdgesAtTopOfScanbeam=function(t){for(var e=this.m_ActiveEdges;null!==e;){var i=this.IsMaxima(e,t);if(i){var r=this.GetMaximaPair(e);i=null===r||!n.ClipperBase.IsHorizontal(r)}if(i){var o=e.PrevInAEL;this.DoMaxima(e),e=null===o?this.m_ActiveEdges:o.NextInAEL}else{if(this.IsIntermediate(e,t)&&n.ClipperBase.IsHorizontal(e.NextInLML)?((e=this.UpdateEdgeIntoAEL(e)).OutIdx>=0&&this.AddOutPt(e,e.Bot),this.AddEdgeToSEL(e)):(e.Curr.X=n.Clipper.TopX(e,t),e.Curr.Y=t),this.StrictlySimple){o=e.PrevInAEL;if(e.OutIdx>=0&&0!==e.WindDelta&&null!==o&&o.OutIdx>=0&&o.Curr.X==e.Curr.X&&0!==o.WindDelta){var s=new n.IntPoint(e.Curr),a=this.AddOutPt(o,s),u=this.AddOutPt(e,s);this.AddJoin(a,u,s)}}e=e.NextInAEL}}for(this.ProcessHorizontals(!0),e=this.m_ActiveEdges;null!==e;){if(this.IsIntermediate(e,t)){a=null;e.OutIdx>=0&&(a=this.AddOutPt(e,e.Top));o=(e=this.UpdateEdgeIntoAEL(e)).PrevInAEL;var l=e.NextInAEL;if(null!==o&&o.Curr.X==e.Bot.X&&o.Curr.Y==e.Bot.Y&&null!==a&&o.OutIdx>=0&&o.Curr.Y>o.Top.Y&&n.ClipperBase.SlopesEqual(e,o,this.m_UseFullRange)&&0!==e.WindDelta&&0!==o.WindDelta){u=this.AddOutPt(o,e.Bot);this.AddJoin(a,u,e.Top)}else if(null!==l&&l.Curr.X==e.Bot.X&&l.Curr.Y==e.Bot.Y&&null!==a&&l.OutIdx>=0&&l.Curr.Y>l.Top.Y&&n.ClipperBase.SlopesEqual(e,l,this.m_UseFullRange)&&0!==e.WindDelta&&0!==l.WindDelta){u=this.AddOutPt(l,e.Bot);this.AddJoin(a,u,e.Top)}}e=e.NextInAEL}},n.Clipper.prototype.DoMaxima=function(t){var e=this.GetMaximaPair(t);if(null===e)return t.OutIdx>=0&&this.AddOutPt(t,t.Top),void this.DeleteFromAEL(t);for(var i=t.NextInAEL;null!==i&&i!=e;)this.IntersectEdges(t,i,t.Top),this.SwapPositionsInAEL(t,i),i=t.NextInAEL;-1==t.OutIdx&&-1==e.OutIdx?(this.DeleteFromAEL(t),this.DeleteFromAEL(e)):t.OutIdx>=0&&e.OutIdx>=0?(t.OutIdx>=0&&this.AddLocalMaxPoly(t,e,t.Top),this.DeleteFromAEL(t),this.DeleteFromAEL(e)):0===t.WindDelta?(t.OutIdx>=0&&(this.AddOutPt(t,t.Top),t.OutIdx=-1),this.DeleteFromAEL(t),e.OutIdx>=0&&(this.AddOutPt(e,t.Top),e.OutIdx=-1),this.DeleteFromAEL(e)):n.Error("DoMaxima error")},n.Clipper.ReversePaths=function(t){for(var e=0,n=t.length;e<n;e++)t[e].reverse()},n.Clipper.Orientation=function(t){return n.Clipper.Area(t)>=0},n.Clipper.prototype.PointCount=function(t){if(null===t)return 0;var e=0,n=t;do{e++,n=n.Next}while(n!=t);return e},n.Clipper.prototype.BuildResult=function(t){n.Clear(t);for(var e=0,i=this.m_PolyOuts.length;e<i;e++){var r=this.m_PolyOuts[e];if(null!==r.Pts){var o=r.Pts.Prev,s=this.PointCount(o);if(!(s<2)){for(var a=new Array(s),u=0;u<s;u++)a[u]=o.Pt,o=o.Prev;t.push(a)}}}},n.Clipper.prototype.BuildResult2=function(t){t.Clear();for(var e=0,i=this.m_PolyOuts.length;e<i;e++){var r=this.m_PolyOuts[e],o=this.PointCount(r.Pts);if(!(r.IsOpen&&o<2||!r.IsOpen&&o<3)){this.FixHoleLinkage(r);var s=new n.PolyNode;t.m_AllPolys.push(s),r.PolyNode=s,s.m_polygon.length=o;for(var a=r.Pts.Prev,u=0;u<o;u++)s.m_polygon[u]=a.Pt,a=a.Prev}}for(e=0,i=this.m_PolyOuts.length;e<i;e++){null!==(r=this.m_PolyOuts[e]).PolyNode&&(r.IsOpen?(r.PolyNode.IsOpen=!0,t.AddChild(r.PolyNode)):null!==r.FirstLeft&&null!=r.FirstLeft.PolyNode?r.FirstLeft.PolyNode.AddChild(r.PolyNode):t.AddChild(r.PolyNode))}},n.Clipper.prototype.FixupOutPolygon=function(t){var e=null;t.BottomPt=null;for(var i=t.Pts;;){if(i.Prev==i||i.Prev==i.Next)return void(t.Pts=null);if(n.IntPoint.op_Equality(i.Pt,i.Next.Pt)||n.IntPoint.op_Equality(i.Pt,i.Prev.Pt)||n.ClipperBase.SlopesEqual(i.Prev.Pt,i.Pt,i.Next.Pt,this.m_UseFullRange)&&(!this.PreserveCollinear||!this.Pt2IsBetweenPt1AndPt3(i.Prev.Pt,i.Pt,i.Next.Pt)))e=null,i.Prev.Next=i.Next,i.Next.Prev=i.Prev,i=i.Prev;else{if(i==e)break;null===e&&(e=i),i=i.Next}}t.Pts=i},n.Clipper.prototype.DupOutPt=function(t,e){var i=new n.OutPt;return i.Pt.X=t.Pt.X,i.Pt.Y=t.Pt.Y,i.Idx=t.Idx,e?(i.Next=t.Next,i.Prev=t,t.Next.Prev=i,t.Next=i):(i.Prev=t.Prev,i.Next=t,t.Prev.Next=i,t.Prev=i),i},n.Clipper.prototype.GetOverlap=function(t,e,n,i,r){return t<e?n<i?(r.Left=Math.max(t,n),r.Right=Math.min(e,i)):(r.Left=Math.max(t,i),r.Right=Math.min(e,n)):n<i?(r.Left=Math.max(e,n),r.Right=Math.min(t,i)):(r.Left=Math.max(e,i),r.Right=Math.min(t,n)),r.Left<r.Right},n.Clipper.prototype.JoinHorz=function(t,e,i,r,o,s){var a=t.Pt.X>e.Pt.X?n.Direction.dRightToLeft:n.Direction.dLeftToRight,u=i.Pt.X>r.Pt.X?n.Direction.dRightToLeft:n.Direction.dLeftToRight;if(a==u)return!1;if(a==n.Direction.dLeftToRight){for(;t.Next.Pt.X<=o.X&&t.Next.Pt.X>=t.Pt.X&&t.Next.Pt.Y==o.Y;)t=t.Next;s&&t.Pt.X!=o.X&&(t=t.Next),e=this.DupOutPt(t,!s),n.IntPoint.op_Inequality(e.Pt,o)&&((t=e).Pt.X=o.X,t.Pt.Y=o.Y,e=this.DupOutPt(t,!s))}else{for(;t.Next.Pt.X>=o.X&&t.Next.Pt.X<=t.Pt.X&&t.Next.Pt.Y==o.Y;)t=t.Next;s||t.Pt.X==o.X||(t=t.Next),e=this.DupOutPt(t,s),n.IntPoint.op_Inequality(e.Pt,o)&&((t=e).Pt.X=o.X,t.Pt.Y=o.Y,e=this.DupOutPt(t,s))}if(u==n.Direction.dLeftToRight){for(;i.Next.Pt.X<=o.X&&i.Next.Pt.X>=i.Pt.X&&i.Next.Pt.Y==o.Y;)i=i.Next;s&&i.Pt.X!=o.X&&(i=i.Next),r=this.DupOutPt(i,!s),n.IntPoint.op_Inequality(r.Pt,o)&&((i=r).Pt.X=o.X,i.Pt.Y=o.Y,r=this.DupOutPt(i,!s))}else{for(;i.Next.Pt.X>=o.X&&i.Next.Pt.X<=i.Pt.X&&i.Next.Pt.Y==o.Y;)i=i.Next;s||i.Pt.X==o.X||(i=i.Next),r=this.DupOutPt(i,s),n.IntPoint.op_Inequality(r.Pt,o)&&((i=r).Pt.X=o.X,i.Pt.Y=o.Y,r=this.DupOutPt(i,s))}return a==n.Direction.dLeftToRight==s?(t.Prev=i,i.Next=t,e.Next=r,r.Prev=e):(t.Next=i,i.Prev=t,e.Prev=r,r.Next=e),!0},n.Clipper.prototype.JoinPoints=function(t,e,i){var r=t.OutPt1,o=new n.OutPt,s=t.OutPt2,a=new n.OutPt,u=t.OutPt1.Pt.Y==t.OffPt.Y;if(u&&n.IntPoint.op_Equality(t.OffPt,t.OutPt1.Pt)&&n.IntPoint.op_Equality(t.OffPt,t.OutPt2.Pt)){if(e!=i)return!1;for(o=t.OutPt1.Next;o!=r&&n.IntPoint.op_Equality(o.Pt,t.OffPt);)o=o.Next;var l=o.Pt.Y>t.OffPt.Y;for(a=t.OutPt2.Next;a!=s&&n.IntPoint.op_Equality(a.Pt,t.OffPt);)a=a.Next;return l!=a.Pt.Y>t.OffPt.Y&&(l?(o=this.DupOutPt(r,!1),a=this.DupOutPt(s,!0),r.Prev=s,s.Next=r,o.Next=a,a.Prev=o,t.OutPt1=r,t.OutPt2=o,!0):(o=this.DupOutPt(r,!0),a=this.DupOutPt(s,!1),r.Next=s,s.Prev=r,o.Prev=a,a.Next=o,t.OutPt1=r,t.OutPt2=o,!0))}if(u){for(o=r;r.Prev.Pt.Y==r.Pt.Y&&r.Prev!=o&&r.Prev!=s;)r=r.Prev;for(;o.Next.Pt.Y==o.Pt.Y&&o.Next!=r&&o.Next!=s;)o=o.Next;if(o.Next==r||o.Next==s)return!1;for(a=s;s.Prev.Pt.Y==s.Pt.Y&&s.Prev!=a&&s.Prev!=o;)s=s.Prev;for(;a.Next.Pt.Y==a.Pt.Y&&a.Next!=s&&a.Next!=r;)a=a.Next;if(a.Next==s||a.Next==r)return!1;var h={Left:null,Right:null};if(!this.GetOverlap(r.Pt.X,o.Pt.X,s.Pt.X,a.Pt.X,h))return!1;var c,f=h.Left,p=h.Right,d=new n.IntPoint;return r.Pt.X>=f&&r.Pt.X<=p?(d.X=r.Pt.X,d.Y=r.Pt.Y,c=r.Pt.X>o.Pt.X):s.Pt.X>=f&&s.Pt.X<=p?(d.X=s.Pt.X,d.Y=s.Pt.Y,c=s.Pt.X>a.Pt.X):o.Pt.X>=f&&o.Pt.X<=p?(d.X=o.Pt.X,d.Y=o.Pt.Y,c=o.Pt.X>r.Pt.X):(d.X=a.Pt.X,d.Y=a.Pt.Y,c=a.Pt.X>s.Pt.X),t.OutPt1=r,t.OutPt2=s,this.JoinHorz(r,o,s,a,d,c)}for(o=r.Next;n.IntPoint.op_Equality(o.Pt,r.Pt)&&o!=r;)o=o.Next;var v=o.Pt.Y>r.Pt.Y||!n.ClipperBase.SlopesEqual(r.Pt,o.Pt,t.OffPt,this.m_UseFullRange);if(v){for(o=r.Prev;n.IntPoint.op_Equality(o.Pt,r.Pt)&&o!=r;)o=o.Prev;if(o.Pt.Y>r.Pt.Y||!n.ClipperBase.SlopesEqual(r.Pt,o.Pt,t.OffPt,this.m_UseFullRange))return!1}for(a=s.Next;n.IntPoint.op_Equality(a.Pt,s.Pt)&&a!=s;)a=a.Next;var m=a.Pt.Y>s.Pt.Y||!n.ClipperBase.SlopesEqual(s.Pt,a.Pt,t.OffPt,this.m_UseFullRange);if(m){for(a=s.Prev;n.IntPoint.op_Equality(a.Pt,s.Pt)&&a!=s;)a=a.Prev;if(a.Pt.Y>s.Pt.Y||!n.ClipperBase.SlopesEqual(s.Pt,a.Pt,t.OffPt,this.m_UseFullRange))return!1}return o!=r&&a!=s&&o!=a&&(e!=i||v!=m)&&(v?(o=this.DupOutPt(r,!1),a=this.DupOutPt(s,!0),r.Prev=s,s.Next=r,o.Next=a,a.Prev=o,t.OutPt1=r,t.OutPt2=o,!0):(o=this.DupOutPt(r,!0),a=this.DupOutPt(s,!1),r.Next=s,s.Prev=r,o.Prev=a,a.Next=o,t.OutPt1=r,t.OutPt2=o,!0))},n.Clipper.GetBounds=function(t){for(var e=0,i=t.length;e<i&&0==t[e].length;)e++;if(e==i)return new n.IntRect(0,0,0,0);var r=new n.IntRect;for(r.left=t[e][0].X,r.right=r.left,r.top=t[e][0].Y,r.bottom=r.top;e<i;e++)for(var o=0,s=t[e].length;o<s;o++)t[e][o].X<r.left?r.left=t[e][o].X:t[e][o].X>r.right&&(r.right=t[e][o].X),t[e][o].Y<r.top?r.top=t[e][o].Y:t[e][o].Y>r.bottom&&(r.bottom=t[e][o].Y);return r},n.Clipper.prototype.GetBounds2=function(t){var e=t,i=new n.IntRect;for(i.left=t.Pt.X,i.right=t.Pt.X,i.top=t.Pt.Y,i.bottom=t.Pt.Y,t=t.Next;t!=e;)t.Pt.X<i.left&&(i.left=t.Pt.X),t.Pt.X>i.right&&(i.right=t.Pt.X),t.Pt.Y<i.top&&(i.top=t.Pt.Y),t.Pt.Y>i.bottom&&(i.bottom=t.Pt.Y),t=t.Next;return i},n.Clipper.PointInPolygon=function(t,e){var n=0,i=e.length;if(i<3)return 0;for(var r=e[0],o=1;o<=i;++o){var s=o==i?e[0]:e[o];if(s.Y==t.Y&&(s.X==t.X||r.Y==t.Y&&s.X>t.X==r.X<t.X))return-1;if(r.Y<t.Y!=s.Y<t.Y)if(r.X>=t.X)if(s.X>t.X)n=1-n;else{if(0==(a=(r.X-t.X)*(s.Y-t.Y)-(s.X-t.X)*(r.Y-t.Y)))return-1;a>0==s.Y>r.Y&&(n=1-n)}else if(s.X>t.X){var a;if(0==(a=(r.X-t.X)*(s.Y-t.Y)-(s.X-t.X)*(r.Y-t.Y)))return-1;a>0==s.Y>r.Y&&(n=1-n)}r=s}return n},n.Clipper.prototype.PointInPolygon=function(t,e){var n=0,i=e,r=t.X,o=t.Y,s=e.Pt.X,a=e.Pt.Y;do{var u=(e=e.Next).Pt.X,l=e.Pt.Y;if(l==o&&(u==r||a==o&&u>r==s<r))return-1;if(a<o!=l<o)if(s>=r)if(u>r)n=1-n;else{if(0==(h=(s-r)*(l-o)-(u-r)*(a-o)))return-1;h>0==l>a&&(n=1-n)}else if(u>r){var h;if(0==(h=(s-r)*(l-o)-(u-r)*(a-o)))return-1;h>0==l>a&&(n=1-n)}s=u,a=l}while(i!=e);return n},n.Clipper.prototype.Poly2ContainsPoly1=function(t,e){var n=t;do{var i=this.PointInPolygon(n.Pt,e);if(i>=0)return i>0;n=n.Next}while(n!=t);return!0},n.Clipper.prototype.FixupFirstLefts1=function(t,e){for(var n=0,i=this.m_PolyOuts.length;n<i;n++){var r=this.m_PolyOuts[n];if(null!=r.Pts&&null!=r.FirstLeft)this.ParseFirstLeft(r.FirstLeft)==t&&this.Poly2ContainsPoly1(r.Pts,e.Pts)&&(r.FirstLeft=e)}},n.Clipper.prototype.FixupFirstLefts2=function(t,e){for(var n=0,i=this.m_PolyOuts,r=i.length,o=i[n];n<r;o=i[++n])o.FirstLeft==t&&(o.FirstLeft=e)},n.Clipper.ParseFirstLeft=function(t){for(;null!=t&&null==t.Pts;)t=t.FirstLeft;return t},n.Clipper.prototype.JoinCommonEdges=function(){for(var t=0,e=this.m_Joins.length;t<e;t++){var i,r=this.m_Joins[t],o=this.GetOutRec(r.OutPt1.Idx),s=this.GetOutRec(r.OutPt2.Idx);if(null!=o.Pts&&null!=s.Pts)if(i=o==s?o:this.Param1RightOfParam2(o,s)?s:this.Param1RightOfParam2(s,o)?o:this.GetLowermostRec(o,s),this.JoinPoints(r,o,s))if(o==s){if(o.Pts=r.OutPt1,o.BottomPt=null,(s=this.CreateOutRec()).Pts=r.OutPt2,this.UpdateOutPtIdxs(s),this.m_UsingPolyTree)for(var a=0,u=this.m_PolyOuts.length;a<u-1;a++){var l=this.m_PolyOuts[a];null!=l.Pts&&n.Clipper.ParseFirstLeft(l.FirstLeft)==o&&l.IsHole!=o.IsHole&&(this.Poly2ContainsPoly1(l.Pts,r.OutPt2)&&(l.FirstLeft=s))}this.Poly2ContainsPoly1(s.Pts,o.Pts)?(s.IsHole=!o.IsHole,s.FirstLeft=o,this.m_UsingPolyTree&&this.FixupFirstLefts2(s,o),(s.IsHole^this.ReverseSolution)==this.Area(s)>0&&this.ReversePolyPtLinks(s.Pts)):this.Poly2ContainsPoly1(o.Pts,s.Pts)?(s.IsHole=o.IsHole,o.IsHole=!s.IsHole,s.FirstLeft=o.FirstLeft,o.FirstLeft=s,this.m_UsingPolyTree&&this.FixupFirstLefts2(o,s),(o.IsHole^this.ReverseSolution)==this.Area(o)>0&&this.ReversePolyPtLinks(o.Pts)):(s.IsHole=o.IsHole,s.FirstLeft=o.FirstLeft,this.m_UsingPolyTree&&this.FixupFirstLefts1(o,s))}else s.Pts=null,s.BottomPt=null,s.Idx=o.Idx,o.IsHole=i.IsHole,i==s&&(o.FirstLeft=s.FirstLeft),s.FirstLeft=o,this.m_UsingPolyTree&&this.FixupFirstLefts2(s,o)}},n.Clipper.prototype.UpdateOutPtIdxs=function(t){var e=t.Pts;do{e.Idx=t.Idx,e=e.Prev}while(e!=t.Pts)},n.Clipper.prototype.DoSimplePolygons=function(){for(var t=0;t<this.m_PolyOuts.length;){var e=this.m_PolyOuts[t++],i=e.Pts;if(null!=i&&!e.IsOpen)do{for(var r=i.Next;r!=e.Pts;){if(n.IntPoint.op_Equality(i.Pt,r.Pt)&&r.Next!=i&&r.Prev!=i){var o=i.Prev,s=r.Prev;i.Prev=s,s.Next=i,r.Prev=o,o.Next=r,e.Pts=i;var a=this.CreateOutRec();a.Pts=r,this.UpdateOutPtIdxs(a),this.Poly2ContainsPoly1(a.Pts,e.Pts)?(a.IsHole=!e.IsHole,a.FirstLeft=e,this.m_UsingPolyTree&&this.FixupFirstLefts2(a,e)):this.Poly2ContainsPoly1(e.Pts,a.Pts)?(a.IsHole=e.IsHole,e.IsHole=!a.IsHole,a.FirstLeft=e.FirstLeft,e.FirstLeft=a,this.m_UsingPolyTree&&this.FixupFirstLefts2(e,a)):(a.IsHole=e.IsHole,a.FirstLeft=e.FirstLeft,this.m_UsingPolyTree&&this.FixupFirstLefts1(e,a)),r=i}r=r.Next}i=i.Next}while(i!=e.Pts)}},n.Clipper.Area=function(t){var e=t.length;if(e<3)return 0;for(var n=0,i=0,r=e-1;i<e;++i)n+=(t[r].X+t[i].X)*(t[r].Y-t[i].Y),r=i;return.5*-n},n.Clipper.prototype.Area=function(t){var e=t.Pts;if(null==e)return 0;var n=0;do{n+=(e.Prev.Pt.X+e.Pt.X)*(e.Prev.Pt.Y-e.Pt.Y),e=e.Next}while(e!=t.Pts);return.5*n},n.Clipper.SimplifyPolygon=function(t,e){var i=new Array,r=new n.Clipper(0);return r.StrictlySimple=!0,r.AddPath(t,n.PolyType.ptSubject,!0),r.Execute(n.ClipType.ctUnion,i,e,e),i},n.Clipper.SimplifyPolygons=function(t,e){void 0===e&&(e=n.PolyFillType.pftEvenOdd);var i=new Array,r=new n.Clipper(0);return r.StrictlySimple=!0,r.AddPaths(t,n.PolyType.ptSubject,!0),r.Execute(n.ClipType.ctUnion,i,e,e),i},n.Clipper.DistanceSqrd=function(t,e){var n=t.X-e.X,i=t.Y-e.Y;return n*n+i*i},n.Clipper.DistanceFromLineSqrd=function(t,e,n){var i=e.Y-n.Y,r=n.X-e.X,o=i*e.X+r*e.Y;return(o=i*t.X+r*t.Y-o)*o/(i*i+r*r)},n.Clipper.SlopesNearCollinear=function(t,e,i,r){return Math.abs(t.X-e.X)>Math.abs(t.Y-e.Y)?t.X>e.X==t.X<i.X?n.Clipper.DistanceFromLineSqrd(t,e,i)<r:e.X>t.X==e.X<i.X?n.Clipper.DistanceFromLineSqrd(e,t,i)<r:n.Clipper.DistanceFromLineSqrd(i,t,e)<r:t.Y>e.Y==t.Y<i.Y?n.Clipper.DistanceFromLineSqrd(t,e,i)<r:e.Y>t.Y==e.Y<i.Y?n.Clipper.DistanceFromLineSqrd(e,t,i)<r:n.Clipper.DistanceFromLineSqrd(i,t,e)<r},n.Clipper.PointsAreClose=function(t,e,n){var i=t.X-e.X,r=t.Y-e.Y;return i*i+r*r<=n},n.Clipper.ExcludeOp=function(t){var e=t.Prev;return e.Next=t.Next,t.Next.Prev=e,e.Idx=0,e},n.Clipper.CleanPolygon=function(t,e){void 0===e&&(e=1.415);var i=t.length;if(0==i)return new Array;for(var r=new Array(i),o=0;o<i;++o)r[o]=new n.OutPt;for(o=0;o<i;++o)r[o].Pt=t[o],r[o].Next=r[(o+1)%i],r[o].Next.Prev=r[o],r[o].Idx=0;for(var s=e*e,a=r[0];0==a.Idx&&a.Next!=a.Prev;)n.Clipper.PointsAreClose(a.Pt,a.Prev.Pt,s)?(a=n.Clipper.ExcludeOp(a),i--):n.Clipper.PointsAreClose(a.Prev.Pt,a.Next.Pt,s)?(n.Clipper.ExcludeOp(a.Next),a=n.Clipper.ExcludeOp(a),i-=2):n.Clipper.SlopesNearCollinear(a.Prev.Pt,a.Pt,a.Next.Pt,s)?(a=n.Clipper.ExcludeOp(a),i--):(a.Idx=1,a=a.Next);i<3&&(i=0);var u=new Array(i);for(o=0;o<i;++o)u[o]=new n.IntPoint(a.Pt),a=a.Next;return r=null,u},n.Clipper.CleanPolygons=function(t,e){for(var i=new Array(t.length),r=0,o=t.length;r<o;r++)i[r]=n.Clipper.CleanPolygon(t[r],e);return i},n.Clipper.Minkowski=function(t,e,i,r){var o=r?1:0,s=t.length,a=e.length,u=new Array;if(i)for(var l=0;l<a;l++){for(var h=new Array(s),c=0,f=t.length,p=t[c];c<f;p=t[++c])h[c]=new n.IntPoint(e[l].X+p.X,e[l].Y+p.Y);u.push(h)}else for(l=0;l<a;l++){for(h=new Array(s),c=0,f=t.length,p=t[c];c<f;p=t[++c])h[c]=new n.IntPoint(e[l].X-p.X,e[l].Y-p.Y);u.push(h)}var d=new Array;for(l=0;l<a-1+o;l++)for(c=0;c<s;c++){var v=new Array;v.push(u[l%a][c%s]),v.push(u[(l+1)%a][c%s]),v.push(u[(l+1)%a][(c+1)%s]),v.push(u[l%a][(c+1)%s]),n.Clipper.Orientation(v)||v.reverse(),d.push(v)}return d},n.Clipper.MinkowskiSum=function(t,e,i){if(e[0]instanceof Array){l=e;for(var r=new n.Paths,o=(a=new n.Clipper,0);o<l.length;++o){var s=n.Clipper.Minkowski(t,l[o],!0,i);if(a.AddPaths(s,n.PolyType.ptSubject,!0),i){u=n.Clipper.TranslatePath(l[o],t[0]);a.AddPath(u,n.PolyType.ptClip,!0)}}return a.Execute(n.ClipType.ctUnion,r,n.PolyFillType.pftNonZero,n.PolyFillType.pftNonZero),r}var a,u=e,l=n.Clipper.Minkowski(t,u,!0,i);return(a=new n.Clipper).AddPaths(l,n.PolyType.ptSubject,!0),a.Execute(n.ClipType.ctUnion,l,n.PolyFillType.pftNonZero,n.PolyFillType.pftNonZero),l},n.Clipper.TranslatePath=function(t,e){for(var i=new n.Path,r=0;r<t.length;r++)i.push(new n.IntPoint(t[r].X+e.X,t[r].Y+e.Y));return i},n.Clipper.MinkowskiDiff=function(t,e){var i=n.Clipper.Minkowski(t,e,!1,!0),r=new n.Clipper;return r.AddPaths(i,n.PolyType.ptSubject,!0),r.Execute(n.ClipType.ctUnion,i,n.PolyFillType.pftNonZero,n.PolyFillType.pftNonZero),i},n.Clipper.PolyTreeToPaths=function(t){var e=new Array;return n.Clipper.AddPolyNodeToPaths(t,n.Clipper.NodeType.ntAny,e),e},n.Clipper.AddPolyNodeToPaths=function(t,e,i){var r=!0;switch(e){case n.Clipper.NodeType.ntOpen:return;case n.Clipper.NodeType.ntClosed:r=!t.IsOpen}t.m_polygon.length>0&&r&&i.push(t.m_polygon);for(var o=0,s=t.Childs(),a=s.length,u=s[o];o<a;u=s[++o])n.Clipper.AddPolyNodeToPaths(u,e,i)},n.Clipper.OpenPathsFromPolyTree=function(t){for(var e=new n.Paths,i=0,r=t.ChildCount();i<r;i++)t.Childs()[i].IsOpen&&e.push(t.Childs()[i].m_polygon);return e},n.Clipper.ClosedPathsFromPolyTree=function(t){var e=new n.Paths;return n.Clipper.AddPolyNodeToPaths(t,n.Clipper.NodeType.ntClosed,e),e},A(n.Clipper,n.ClipperBase),n.Clipper.NodeType={ntAny:0,ntOpen:1,ntClosed:2},n.ClipperOffset=function(t,e){void 0===t&&(t=2),void 0===e&&(e=n.ClipperOffset.def_arc_tolerance),this.m_destPolys=new n.Paths,this.m_srcPoly=new n.Path,this.m_destPoly=new n.Path,this.m_normals=new Array,this.m_delta=0,this.m_sinA=0,this.m_sin=0,this.m_cos=0,this.m_miterLim=0,this.m_StepsPerRad=0,this.m_lowest=new n.IntPoint,this.m_polyNodes=new n.PolyNode,this.MiterLimit=t,this.ArcTolerance=e,this.m_lowest.X=-1},n.ClipperOffset.two_pi=6.28318530717959,n.ClipperOffset.def_arc_tolerance=.25,n.ClipperOffset.prototype.Clear=function(){n.Clear(this.m_polyNodes.Childs()),this.m_lowest.X=-1},n.ClipperOffset.Round=n.Clipper.Round,n.ClipperOffset.prototype.AddPath=function(t,e,i){var r=t.length-1;if(!(r<0)){var o=new n.PolyNode;if(o.m_jointype=e,o.m_endtype=i,i==n.EndType.etClosedLine||i==n.EndType.etClosedPolygon)for(;r>0&&n.IntPoint.op_Equality(t[0],t[r]);)r--;o.m_polygon.push(t[0]);for(var s=0,a=0,u=1;u<=r;u++)n.IntPoint.op_Inequality(o.m_polygon[s],t[u])&&(s++,o.m_polygon.push(t[u]),(t[u].Y>o.m_polygon[a].Y||t[u].Y==o.m_polygon[a].Y&&t[u].X<o.m_polygon[a].X)&&(a=s));if(!(i==n.EndType.etClosedPolygon&&s<2)&&(this.m_polyNodes.AddChild(o),i==n.EndType.etClosedPolygon))if(this.m_lowest.X<0)this.m_lowest=new n.IntPoint(this.m_polyNodes.ChildCount()-1,a);else{var l=this.m_polyNodes.Childs()[this.m_lowest.X].m_polygon[this.m_lowest.Y];(o.m_polygon[a].Y>l.Y||o.m_polygon[a].Y==l.Y&&o.m_polygon[a].X<l.X)&&(this.m_lowest=new n.IntPoint(this.m_polyNodes.ChildCount()-1,a))}}},n.ClipperOffset.prototype.AddPaths=function(t,e,n){for(var i=0,r=t.length;i<r;i++)this.AddPath(t[i],e,n)},n.ClipperOffset.prototype.FixOrientations=function(){if(this.m_lowest.X>=0&&!n.Clipper.Orientation(this.m_polyNodes.Childs()[this.m_lowest.X].m_polygon))for(var t=0;t<this.m_polyNodes.ChildCount();t++){((e=this.m_polyNodes.Childs()[t]).m_endtype==n.EndType.etClosedPolygon||e.m_endtype==n.EndType.etClosedLine&&n.Clipper.Orientation(e.m_polygon))&&e.m_polygon.reverse()}else for(t=0;t<this.m_polyNodes.ChildCount();t++){var e;(e=this.m_polyNodes.Childs()[t]).m_endtype!=n.EndType.etClosedLine||n.Clipper.Orientation(e.m_polygon)||e.m_polygon.reverse()}},n.ClipperOffset.GetUnitNormal=function(t,e){var i=e.X-t.X,r=e.Y-t.Y;if(0==i&&0==r)return new n.DoublePoint(0,0);var o=1/Math.sqrt(i*i+r*r);return i*=o,r*=o,new n.DoublePoint(r,-i)},n.ClipperOffset.prototype.DoOffset=function(t){if(this.m_destPolys=new Array,this.m_delta=t,n.ClipperBase.near_zero(t))for(var e=0;e<this.m_polyNodes.ChildCount();e++){(o=this.m_polyNodes.Childs()[e]).m_endtype==n.EndType.etClosedPolygon&&this.m_destPolys.push(o.m_polygon)}else{var i;this.MiterLimit>2?this.m_miterLim=2/(this.MiterLimit*this.MiterLimit):this.m_miterLim=.5,i=this.ArcTolerance<=0?n.ClipperOffset.def_arc_tolerance:this.ArcTolerance>Math.abs(t)*n.ClipperOffset.def_arc_tolerance?Math.abs(t)*n.ClipperOffset.def_arc_tolerance:this.ArcTolerance;var r=3.14159265358979/Math.acos(1-i/Math.abs(t));this.m_sin=Math.sin(n.ClipperOffset.two_pi/r),this.m_cos=Math.cos(n.ClipperOffset.two_pi/r),this.m_StepsPerRad=r/n.ClipperOffset.two_pi,t<0&&(this.m_sin=-this.m_sin);for(e=0;e<this.m_polyNodes.ChildCount();e++){var o=this.m_polyNodes.Childs()[e];this.m_srcPoly=o.m_polygon;var s=this.m_srcPoly.length;if(!(0==s||t<=0&&(s<3||o.m_endtype!=n.EndType.etClosedPolygon)))if(this.m_destPoly=new Array,1!=s){this.m_normals.length=0;for(f=0;f<s-1;f++)this.m_normals.push(n.ClipperOffset.GetUnitNormal(this.m_srcPoly[f],this.m_srcPoly[f+1]));if(o.m_endtype==n.EndType.etClosedLine||o.m_endtype==n.EndType.etClosedPolygon?this.m_normals.push(n.ClipperOffset.GetUnitNormal(this.m_srcPoly[s-1],this.m_srcPoly[0])):this.m_normals.push(new n.DoublePoint(this.m_normals[s-2])),o.m_endtype==n.EndType.etClosedPolygon){var a=s-1;for(f=0;f<s;f++)a=this.OffsetPoint(f,a,o.m_jointype);this.m_destPolys.push(this.m_destPoly)}else if(o.m_endtype==n.EndType.etClosedLine){for(a=s-1,f=0;f<s;f++)a=this.OffsetPoint(f,a,o.m_jointype);this.m_destPolys.push(this.m_destPoly),this.m_destPoly=new Array;var u=this.m_normals[s-1];for(f=s-1;f>0;f--)this.m_normals[f]=new n.DoublePoint(-this.m_normals[f-1].X,-this.m_normals[f-1].Y);this.m_normals[0]=new n.DoublePoint(-u.X,-u.Y),a=0;for(f=s-1;f>=0;f--)a=this.OffsetPoint(f,a,o.m_jointype);this.m_destPolys.push(this.m_destPoly)}else{var l;for(a=0,f=1;f<s-1;++f)a=this.OffsetPoint(f,a,o.m_jointype);if(o.m_endtype==n.EndType.etOpenButt){f=s-1;l=new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[f].X+this.m_normals[f].X*t),n.ClipperOffset.Round(this.m_srcPoly[f].Y+this.m_normals[f].Y*t)),this.m_destPoly.push(l),l=new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[f].X-this.m_normals[f].X*t),n.ClipperOffset.Round(this.m_srcPoly[f].Y-this.m_normals[f].Y*t)),this.m_destPoly.push(l)}else{f=s-1;a=s-2,this.m_sinA=0,this.m_normals[f]=new n.DoublePoint(-this.m_normals[f].X,-this.m_normals[f].Y),o.m_endtype==n.EndType.etOpenSquare?this.DoSquare(f,a):this.DoRound(f,a)}for(f=s-1;f>0;f--)this.m_normals[f]=new n.DoublePoint(-this.m_normals[f-1].X,-this.m_normals[f-1].Y);this.m_normals[0]=new n.DoublePoint(-this.m_normals[1].X,-this.m_normals[1].Y);for(f=(a=s-1)-1;f>0;--f)a=this.OffsetPoint(f,a,o.m_jointype);o.m_endtype==n.EndType.etOpenButt?(l=new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[0].X-this.m_normals[0].X*t),n.ClipperOffset.Round(this.m_srcPoly[0].Y-this.m_normals[0].Y*t)),this.m_destPoly.push(l),l=new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[0].X+this.m_normals[0].X*t),n.ClipperOffset.Round(this.m_srcPoly[0].Y+this.m_normals[0].Y*t)),this.m_destPoly.push(l)):(a=1,this.m_sinA=0,o.m_endtype==n.EndType.etOpenSquare?this.DoSquare(0,1):this.DoRound(0,1)),this.m_destPolys.push(this.m_destPoly)}}else{if(o.m_jointype==n.JoinType.jtRound)for(var h=1,c=0,f=1;f<=r;f++){this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[0].X+h*t),n.ClipperOffset.Round(this.m_srcPoly[0].Y+c*t)));var p=h;h=h*this.m_cos-this.m_sin*c,c=p*this.m_sin+c*this.m_cos}else{h=-1,c=-1;for(var f=0;f<4;++f)this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[0].X+h*t),n.ClipperOffset.Round(this.m_srcPoly[0].Y+c*t))),h<0?h=1:c<0?c=1:h=-1}this.m_destPolys.push(this.m_destPoly)}}}},n.ClipperOffset.prototype.Execute=function(){var t=arguments;if(t[0]instanceof n.PolyTree){o=t[0],s=t[1];if(o.Clear(),this.FixOrientations(),this.DoOffset(s),(r=new n.Clipper(0)).AddPaths(this.m_destPolys,n.PolyType.ptSubject,!0),s>0)r.Execute(n.ClipType.ctUnion,o,n.PolyFillType.pftPositive,n.PolyFillType.pftPositive);else{u=n.Clipper.GetBounds(this.m_destPolys);if((a=new n.Path).push(new n.IntPoint(u.left-10,u.bottom+10)),a.push(new n.IntPoint(u.right+10,u.bottom+10)),a.push(new n.IntPoint(u.right+10,u.top-10)),a.push(new n.IntPoint(u.left-10,u.top-10)),r.AddPath(a,n.PolyType.ptSubject,!0),r.ReverseSolution=!0,r.Execute(n.ClipType.ctUnion,o,n.PolyFillType.pftNegative,n.PolyFillType.pftNegative),1==o.ChildCount()&&o.Childs()[0].ChildCount()>0){var e=o.Childs()[0];o.Childs()[0]=e.Childs()[0],o.Childs()[0].m_Parent=o;for(var i=1;i<e.ChildCount();i++)o.AddChild(e.Childs()[i])}else o.Clear()}}else{var r,o=t[0],s=t[1];if(n.Clear(o),this.FixOrientations(),this.DoOffset(s),(r=new n.Clipper(0)).AddPaths(this.m_destPolys,n.PolyType.ptSubject,!0),s>0)r.Execute(n.ClipType.ctUnion,o,n.PolyFillType.pftPositive,n.PolyFillType.pftPositive);else{var a,u=n.Clipper.GetBounds(this.m_destPolys);(a=new n.Path).push(new n.IntPoint(u.left-10,u.bottom+10)),a.push(new n.IntPoint(u.right+10,u.bottom+10)),a.push(new n.IntPoint(u.right+10,u.top-10)),a.push(new n.IntPoint(u.left-10,u.top-10)),r.AddPath(a,n.PolyType.ptSubject,!0),r.ReverseSolution=!0,r.Execute(n.ClipType.ctUnion,o,n.PolyFillType.pftNegative,n.PolyFillType.pftNegative),o.length>0&&o.splice(0,1)}}},n.ClipperOffset.prototype.OffsetPoint=function(t,e,i){if(this.m_sinA=this.m_normals[e].X*this.m_normals[t].Y-this.m_normals[t].X*this.m_normals[e].Y,Math.abs(this.m_sinA*this.m_delta)<1){if(this.m_normals[e].X*this.m_normals[t].X+this.m_normals[t].Y*this.m_normals[e].Y>0)return this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[e].X*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[e].Y*this.m_delta))),e}else this.m_sinA>1?this.m_sinA=1:this.m_sinA<-1&&(this.m_sinA=-1);if(this.m_sinA*this.m_delta<0)this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[e].X*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[e].Y*this.m_delta))),this.m_destPoly.push(new n.IntPoint(this.m_srcPoly[t])),this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[t].X*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[t].Y*this.m_delta)));else switch(i){case n.JoinType.jtMiter:var r=this.m_normals[t].X*this.m_normals[e].X+this.m_normals[t].Y*this.m_normals[e].Y+1;r>=this.m_miterLim?this.DoMiter(t,e,r):this.DoSquare(t,e);break;case n.JoinType.jtSquare:this.DoSquare(t,e);break;case n.JoinType.jtRound:this.DoRound(t,e)}return e=t},n.ClipperOffset.prototype.DoSquare=function(t,e){var i=Math.tan(Math.atan2(this.m_sinA,this.m_normals[e].X*this.m_normals[t].X+this.m_normals[e].Y*this.m_normals[t].Y)/4);this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_delta*(this.m_normals[e].X-this.m_normals[e].Y*i)),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_delta*(this.m_normals[e].Y+this.m_normals[e].X*i)))),this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_delta*(this.m_normals[t].X+this.m_normals[t].Y*i)),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_delta*(this.m_normals[t].Y-this.m_normals[t].X*i))))},n.ClipperOffset.prototype.DoMiter=function(t,e,i){var r=this.m_delta/i;this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[t].X+(this.m_normals[e].X+this.m_normals[t].X)*r),n.ClipperOffset.Round(this.m_srcPoly[t].Y+(this.m_normals[e].Y+this.m_normals[t].Y)*r)))},n.ClipperOffset.prototype.DoRound=function(t,e){for(var i,r=Math.atan2(this.m_sinA,this.m_normals[e].X*this.m_normals[t].X+this.m_normals[e].Y*this.m_normals[t].Y),o=Math.max(n.Cast_Int32(n.ClipperOffset.Round(this.m_StepsPerRad*Math.abs(r))),1),s=this.m_normals[e].X,a=this.m_normals[e].Y,u=0;u<o;++u)this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[t].X+s*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+a*this.m_delta))),i=s,s=s*this.m_cos-this.m_sin*a,a=i*this.m_sin+a*this.m_cos;this.m_destPoly.push(new n.IntPoint(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[t].X*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[t].Y*this.m_delta)))},n.Error=function(t){try{throw new Error(t)}catch(t){alert(t.message)}},n.JS={},n.JS.AreaOfPolygon=function(t,e){return e||(e=1),n.Clipper.Area(t)/(e*e)},n.JS.AreaOfPolygons=function(t,e){e||(e=1);for(var i=0,r=0;r<t.length;r++)i+=n.Clipper.Area(t[r]);return i/(e*e)},n.JS.BoundsOfPath=function(t,e){return n.JS.BoundsOfPaths([t],e)},n.JS.BoundsOfPaths=function(t,e){e||(e=1);var i=n.Clipper.GetBounds(t);return i.left/=e,i.bottom/=e,i.right/=e,i.top/=e,i},n.JS.Clean=function(t,e){if(!(t instanceof Array))return[];var i=t[0]instanceof Array;t=n.JS.Clone(t);if("number"!=typeof e||null===e)return n.Error("Delta is not a number in Clean()."),t;if(0===t.length||1==t.length&&0===t[0].length||e<0)return t;i||(t=[t]);for(var r,o,s,a,u,l,h,c=t.length,f=[],p=0;p<c;p++)if(0!==(r=(o=t[p]).length))if(r<3)s=o,f.push(s);else{for(s=o,a=e*e,u=o[0],l=1,h=1;h<r;h++)(o[h].X-u.X)*(o[h].X-u.X)+(o[h].Y-u.Y)*(o[h].Y-u.Y)<=a||(s[l]=o[h],u=o[h],l++);u=o[l-1],(o[0].X-u.X)*(o[0].X-u.X)+(o[0].Y-u.Y)*(o[0].Y-u.Y)<=a&&l--,l<r&&s.splice(l,r-l),s.length&&f.push(s)}return!i&&f.length?f=f[0]:i||0!==f.length?i&&0===f.length&&(f=[[]]):f=[],f},n.JS.Clone=function(t){if(!(t instanceof Array))return[];if(0===t.length)return[];if(1==t.length&&0===t[0].length)return[[]];var e=t[0]instanceof Array;e||(t=[t]);var n,i,r,o,s=t.length,a=new Array(s);for(i=0;i<s;i++){for(n=t[i].length,o=new Array(n),r=0;r<n;r++)o[r]={X:t[i][r].X,Y:t[i][r].Y};a[i]=o}return e||(a=a[0]),a},n.JS.Lighten=function(t,e){if(!(t instanceof Array))return[];if("number"!=typeof e||null===e)return n.Error("Tolerance is not a number in Lighten()."),n.JS.Clone(t);if(0===t.length||1==t.length&&0===t[0].length||e<0)return n.JS.Clone(t);var i,r,o,s,a,u,l,h,c,f,p,d,v,m,y,g;t[0]instanceof Array||(t=[t]);var _=t.length,P=e*e,x=[];for(i=0;i<_;i++)if(0!=(u=(o=t[i]).length)){for(s=0;s<1e6;s++){for(a=[],o[(u=o.length)-1].X!=o[0].X||o[u-1].Y!=o[0].Y?(p=1,o.push({X:o[0].X,Y:o[0].Y}),u=o.length):p=0,f=[],r=0;r<u-2;r++)l=o[r],c=o[r+1],h=o[r+2],y=l.X,g=l.Y,d=h.X-y,v=h.Y-g,0===d&&0===v||((m=((c.X-y)*d+(c.Y-g)*v)/(d*d+v*v))>1?(y=h.X,g=h.Y):m>0&&(y+=d*m,g+=v*m)),(d=c.X-y)*d+(v=c.Y-g)*v<=P&&(f[r+1]=1,r++);for(a.push({X:o[0].X,Y:o[0].Y}),r=1;r<u-1;r++)f[r]||a.push({X:o[r].X,Y:o[r].Y});if(a.push({X:o[u-1].X,Y:o[u-1].Y}),p&&o.pop(),!f.length)break;o=a}a[(u=a.length)-1].X==a[0].X&&a[u-1].Y==a[0].Y&&a.pop(),a.length>2&&x.push(a)}return t[0]instanceof Array||(x=x[0]),void 0===x&&(x=[[]]),x},n.JS.PerimeterOfPath=function(t,e,n){if(void 0===t)return 0;var i,r,o=Math.sqrt,s=0,a=0,u=0,l=0,h=0,c=t.length;if(c<2)return 0;for(e&&(t[c]=t[0],c++);--c;)a=(i=t[c]).X,u=i.Y,s+=o((a-(l=(r=t[c-1]).X))*(a-l)+(u-(h=r.Y))*(u-h));return e&&t.pop(),s/n},n.JS.PerimeterOfPaths=function(t,e,i){i||(i=1);for(var r=0,o=0;o<t.length;o++)r+=n.JS.PerimeterOfPath(t[o],e,i);return r},n.JS.ScaleDownPath=function(t,e){var n,i;for(e||(e=1),n=t.length;n--;)(i=t[n]).X=i.X/e,i.Y=i.Y/e},n.JS.ScaleDownPaths=function(t,e){var n,i,r;for(e||(e=1),n=t.length;n--;)for(i=t[n].length;i--;)(r=t[n][i]).X=r.X/e,r.Y=r.Y/e},n.JS.ScaleUpPath=function(t,e){var n,i,r=Math.round;for(e||(e=1),n=t.length;n--;)(i=t[n]).X=r(i.X*e),i.Y=r(i.Y*e)},n.JS.ScaleUpPaths=function(t,e){var n,i,r,o=Math.round;for(e||(e=1),n=t.length;n--;)for(i=t[n].length;i--;)(r=t[n][i]).X=o(r.X*e),r.Y=o(r.Y*e)},n.ExPolygons=function(){return[]},n.ExPolygon=function(){this.outer=null,this.holes=null},n.JS.AddOuterPolyNodeToExPolygons=function(t,e){var i=new n.ExPolygon;i.outer=t.Contour();var r,o,s,a,u,l,h=t.Childs(),c=h.length;for(i.holes=new Array(c),s=0;s<c;s++)for(r=h[s],i.holes[s]=r.Contour(),a=0,l=(u=r.Childs()).length;a<l;a++)o=u[a],n.JS.AddOuterPolyNodeToExPolygons(o,e);e.push(i)},n.JS.ExPolygonsToPaths=function(t){var e,i,r,o,s=new n.Paths;for(e=0,r=t.length;e<r;e++)for(s.push(t[e].outer),i=0,o=t[e].holes.length;i<o;i++)s.push(t[e].holes[i]);return s},n.JS.PolyTreeToExPolygons=function(t){var e,i,r,o,s=new n.ExPolygons;for(i=0,o=(r=t.Childs()).length;i<o;i++)e=r[i],n.JS.AddOuterPolyNodeToExPolygons(e,s);return s}}()}),d_=p_.Clipper,v_=p_.PolyFillType,m_=function(t,e){if(null===t)throw new Error("No coordinates passed");for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i[i.length-1].length;r++){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1][r]!==i[0][r])throw new Error("First and last Position are not equivalent.")}var o={type:"Feature",geometry:{type:"Polygon",coordinates:t},properties:e};return o.properties||(o.properties={}),o};function y_(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={type:"Feature"};return(0===n.id||n.id)&&(i.id=n.id),n.bbox&&(i.bbox=n.bbox),i.properties=e||{},i.geometry=t,i}var g_=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,__=Math.ceil,P_=Math.floor,x_="[BigNumber Error] ",b_=x_+"Number primitive has more than 15 significant digits: ",w_=1e14,E_=14,L_=9007199254740991,T_=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],S_=1e7,I_=1e9;function C_(t){var e=0|t;return t>0||t===e?e:e-1}function O_(t){for(var e,n,i=1,r=t.length,o=t[0]+"";i<r;){for(e=t[i++]+"",n=E_-e.length;n--;e="0"+e);o+=e}for(r=o.length;48===o.charCodeAt(--r););return o.slice(0,r+1||1)}function A_(t,e){var n,i,r=t.c,o=e.c,s=t.s,a=e.s,u=t.e,l=e.e;if(!s||!a)return null;if(n=r&&!r[0],i=o&&!o[0],n||i)return n?i?0:-a:s;if(s!=a)return s;if(n=s<0,i=u==l,!r||!o)return i?0:!r^n?1:-1;if(!i)return u>l^n?1:-1;for(a=(u=r.length)<(l=o.length)?u:l,s=0;s<a;s++)if(r[s]!=o[s])return r[s]>o[s]^n?1:-1;return u==l?0:u>l^n?1:-1}function M_(t,e,n,i){if(t<e||t>n||t!==P_(t))throw Error(x_+(i||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function N_(t){var e=t.c.length-1;return C_(t.e/E_)==e&&t.c[e]%2!=0}function R_(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function k_(t,e,n){var i,r;if(e<0){for(r=n+".";++e;r+=n);t=r+t}else if(++e>(i=t.length)){for(r=n,e-=i;--e;r+=n);t+=r}else e<i&&(t=t.slice(0,e)+"."+t.slice(e));return t}var B_=function t(e){var n,i,r,o,s,a,u,l,h,c=L.prototype={constructor:L,toString:null,valueOf:null},f=new L(1),p=20,d=4,v=-7,m=21,y=-1e7,g=1e7,_=!1,P=1,x=0,b={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},w="0123456789abcdefghijklmnopqrstuvwxyz",E=!0;function L(t,e){var n,o,s,a,u,l,h,c,f=this;if(!(f instanceof L))return new L(t,e);if(null==e){if(t&&!0===t._isBigNumber)return f.s=t.s,void(!t.c||t.e>g?f.c=f.e=null:t.e<y?f.c=[f.e=0]:(f.e=t.e,f.c=t.c.slice()));if((l="number"==typeof t)&&0*t==0){if(f.s=1/t<0?(t=-t,-1):1,t===~~t){for(a=0,u=t;u>=10;u/=10,a++);return void(a>g?f.c=f.e=null:(f.e=a,f.c=[t]))}c=String(t)}else{if(!g_.test(c=String(t)))return r(f,c,l);f.s=45==c.charCodeAt(0)?(c=c.slice(1),-1):1}(a=c.indexOf("."))>-1&&(c=c.replace(".","")),(u=c.search(/e/i))>0?(a<0&&(a=u),a+=+c.slice(u+1),c=c.substring(0,u)):a<0&&(a=c.length)}else{if(M_(e,2,w.length,"Base"),10==e&&E)return C(f=new L(t),p+f.e+1,d);if(c=String(t),l="number"==typeof t){if(0*t!=0)return r(f,c,l,e);if(f.s=1/t<0?(c=c.slice(1),-1):1,L.DEBUG&&c.replace(/^0\.0*|\./,"").length>15)throw Error(b_+t)}else f.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1;for(n=w.slice(0,e),a=u=0,h=c.length;u<h;u++)if(n.indexOf(o=c.charAt(u))<0){if("."==o){if(u>a){a=h;continue}}else if(!s&&(c==c.toUpperCase()&&(c=c.toLowerCase())||c==c.toLowerCase()&&(c=c.toUpperCase()))){s=!0,u=-1,a=0;continue}return r(f,String(t),l,e)}l=!1,(a=(c=i(c,e,10,f.s)).indexOf("."))>-1?c=c.replace(".",""):a=c.length}for(u=0;48===c.charCodeAt(u);u++);for(h=c.length;48===c.charCodeAt(--h););if(c=c.slice(u,++h)){if(h-=u,l&&L.DEBUG&&h>15&&(t>L_||t!==P_(t)))throw Error(b_+f.s*t);if((a=a-u-1)>g)f.c=f.e=null;else if(a<y)f.c=[f.e=0];else{if(f.e=a,f.c=[],u=(a+1)%E_,a<0&&(u+=E_),u<h){for(u&&f.c.push(+c.slice(0,u)),h-=E_;u<h;)f.c.push(+c.slice(u,u+=E_));u=E_-(c=c.slice(u)).length}else u-=h;for(;u--;c+="0");f.c.push(+c)}}else f.c=[f.e=0]}function T(t,e,n,i){var r,o,s,a,u;if(null==n?n=d:M_(n,0,8),!t.c)return t.toString();if(r=t.c[0],s=t.e,null==e)u=O_(t.c),u=1==i||2==i&&(s<=v||s>=m)?R_(u,s):k_(u,s,"0");else if(o=(t=C(new L(t),e,n)).e,a=(u=O_(t.c)).length,1==i||2==i&&(e<=o||o<=v)){for(;a<e;u+="0",a++);u=R_(u,o)}else if(e-=s,u=k_(u,o,"0"),o+1>a){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=o-a)>0)for(o+1==a&&(u+=".");e--;u+="0");return t.s<0&&r?"-"+u:u}function S(t,e){for(var n,i,r=1,o=new L(t[0]);r<t.length;r++)(!(i=new L(t[r])).s||(n=A_(o,i))===e||0===n&&o.s===e)&&(o=i);return o}function I(t,e,n){for(var i=1,r=e.length;!e[--r];e.pop());for(r=e[0];r>=10;r/=10,i++);return(n=i+n*E_-1)>g?t.c=t.e=null:n<y?t.c=[t.e=0]:(t.e=n,t.c=e),t}function C(t,e,n,i){var r,o,s,a,u,l,h,c=t.c,f=T_;if(c){t:{for(r=1,a=c[0];a>=10;a/=10,r++);if((o=e-r)<0)o+=E_,s=e,u=c[l=0],h=P_(u/f[r-s-1]%10);else if((l=__((o+1)/E_))>=c.length){if(!i)break t;for(;c.length<=l;c.push(0));u=h=0,r=1,s=(o%=E_)-E_+1}else{for(u=a=c[l],r=1;a>=10;a/=10,r++);h=(s=(o%=E_)-E_+r)<0?0:P_(u/f[r-s-1]%10)}if(i=i||e<0||null!=c[l+1]||(s<0?u:u%f[r-s-1]),i=n<4?(h||i)&&(0==n||n==(t.s<0?3:2)):h>5||5==h&&(4==n||i||6==n&&(o>0?s>0?u/f[r-s]:0:c[l-1])%10&1||n==(t.s<0?8:7)),e<1||!c[0])return c.length=0,i?(e-=t.e+1,c[0]=f[(E_-e%E_)%E_],t.e=-e||0):c[0]=t.e=0,t;if(0==o?(c.length=l,a=1,l--):(c.length=l+1,a=f[E_-o],c[l]=s>0?P_(u/f[r-s]%f[s])*a:0),i)for(;;){if(0==l){for(o=1,s=c[0];s>=10;s/=10,o++);for(s=c[0]+=a,a=1;s>=10;s/=10,a++);o!=a&&(t.e++,c[0]==w_&&(c[0]=1));break}if(c[l]+=a,c[l]!=w_)break;c[l--]=0,a=1}for(o=c.length;0===c[--o];c.pop());}t.e>g?t.c=t.e=null:t.e<y&&(t.c=[t.e=0])}return t}function O(t){var e,n=t.e;return null===n?t.toString():(e=O_(t.c),e=n<=v||n>=m?R_(e,n):k_(e,n,"0"),t.s<0?"-"+e:e)}return L.clone=t,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(x_+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(M_(n=t[e],0,I_,e),p=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(M_(n=t[e],0,8,e),d=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(M_(n[0],-I_,0,e),M_(n[1],0,I_,e),v=n[0],m=n[1]):(M_(n,-I_,I_,e),v=-(m=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)M_(n[0],-I_,-1,e),M_(n[1],1,I_,e),y=n[0],g=n[1];else{if(M_(n,-I_,I_,e),!n)throw Error(x_+e+" cannot be zero: "+n);y=-(g=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(x_+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw _=!n,Error(x_+"crypto unavailable");_=n}else _=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(M_(n=t[e],0,9,e),P=n),t.hasOwnProperty(e="POW_PRECISION")&&(M_(n=t[e],0,I_,e),x=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(x_+e+" not an object: "+n);b=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(x_+e+" invalid: "+n);E="0123456789"==n.slice(0,10),w=n}}return{DECIMAL_PLACES:p,ROUNDING_MODE:d,EXPONENTIAL_AT:[v,m],RANGE:[y,g],CRYPTO:_,MODULO_MODE:P,POW_PRECISION:x,FORMAT:b,ALPHABET:w}},L.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!L.DEBUG)return!0;var e,n,i=t.c,r=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(i)){if((1===o||-1===o)&&r>=-I_&&r<=I_&&r===P_(r)){if(0===i[0]){if(0===r&&1===i.length)return!0;break t}if((e=(r+1)%E_)<1&&(e+=E_),String(i[0]).length==e){for(e=0;e<i.length;e++)if((n=i[e])<0||n>=w_||n!==P_(n))break t;if(0!==n)return!0}}}else if(null===i&&null===r&&(null===o||1===o||-1===o))return!0;throw Error(x_+"Invalid BigNumber: "+t)},L.maximum=L.max=function(){return S(arguments,-1)},L.minimum=L.min=function(){return S(arguments,1)},L.random=(o=9007199254740992*Math.random()&2097151?function(){return P_(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,i,r,s,a=0,u=[],l=new L(f);if(null==t?t=p:M_(t,0,I_),r=__(t/E_),_)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(r*=2));a<r;)(s=131072*e[a]+(e[a+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[a]=n[0],e[a+1]=n[1]):(u.push(s%1e14),a+=2);a=r/2}else{if(!crypto.randomBytes)throw _=!1,Error(x_+"crypto unavailable");for(e=crypto.randomBytes(r*=7);a<r;)(s=281474976710656*(31&e[a])+1099511627776*e[a+1]+4294967296*e[a+2]+16777216*e[a+3]+(e[a+4]<<16)+(e[a+5]<<8)+e[a+6])>=9e15?crypto.randomBytes(7).copy(e,a):(u.push(s%1e14),a+=7);a=r/7}if(!_)for(;a<r;)(s=o())<9e15&&(u[a++]=s%1e14);for(r=u[--a],t%=E_,r&&t&&(s=T_[E_-t],u[a]=P_(r/s)*s);0===u[a];u.pop(),a--);if(a<0)u=[i=0];else{for(i=-1;0===u[0];u.splice(0,1),i-=E_);for(a=1,s=u[0];s>=10;s/=10,a++);a<E_&&(i-=E_-a)}return l.e=i,l.c=u,l}),L.sum=function(){for(var t=1,e=arguments,n=new L(e[0]);t<e.length;)n=n.plus(e[t++]);return n},i=function(){function t(t,e,n,i){for(var r,o,s=[0],a=0,u=t.length;a<u;){for(o=s.length;o--;s[o]*=e);for(s[0]+=i.indexOf(t.charAt(a++)),r=0;r<s.length;r++)s[r]>n-1&&(null==s[r+1]&&(s[r+1]=0),s[r+1]+=s[r]/n|0,s[r]%=n)}return s.reverse()}return function(e,i,r,o,s){var a,u,l,h,c,f,v,m,y=e.indexOf("."),g=p,_=d;for(y>=0&&(h=x,x=0,e=e.replace(".",""),f=(m=new L(i)).pow(e.length-y),x=h,m.c=t(k_(O_(f.c),f.e,"0"),10,r,"0123456789"),m.e=m.c.length),l=h=(v=t(e,i,r,s?(a=w,"0123456789"):(a="0123456789",w))).length;0==v[--h];v.pop());if(!v[0])return a.charAt(0);if(y<0?--l:(f.c=v,f.e=l,f.s=o,v=(f=n(f,m,g,_,r)).c,c=f.r,l=f.e),y=v[u=l+g+1],h=r/2,c=c||u<0||null!=v[u+1],c=_<4?(null!=y||c)&&(0==_||_==(f.s<0?3:2)):y>h||y==h&&(4==_||c||6==_&&1&v[u-1]||_==(f.s<0?8:7)),u<1||!v[0])e=c?k_(a.charAt(1),-g,a.charAt(0)):a.charAt(0);else{if(v.length=u,c)for(--r;++v[--u]>r;)v[u]=0,u||(++l,v=[1].concat(v));for(h=v.length;!v[--h];);for(y=0,e="";y<=h;e+=a.charAt(v[y++]));e=k_(e,l,a.charAt(0))}return e}}(),n=function(){function t(t,e,n){var i,r,o,s,a=0,u=t.length,l=e%S_,h=e/S_|0;for(t=t.slice();u--;)a=((r=l*(o=t[u]%S_)+(i=h*o+(s=t[u]/S_|0)*l)%S_*S_+a)/n|0)+(i/S_|0)+h*s,t[u]=r%n;return a&&(t=[a].concat(t)),t}function e(t,e,n,i){var r,o;if(n!=i)o=n>i?1:-1;else for(r=o=0;r<n;r++)if(t[r]!=e[r]){o=t[r]>e[r]?1:-1;break}return o}function n(t,e,n,i){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*i+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(i,r,o,s,a){var u,l,h,c,f,p,d,v,m,y,g,_,P,x,b,w,E,T=i.s==r.s?1:-1,S=i.c,I=r.c;if(!(S&&S[0]&&I&&I[0]))return new L(i.s&&r.s&&(S?!I||S[0]!=I[0]:I)?S&&0==S[0]||!I?0*T:T/0:NaN);for(m=(v=new L(T)).c=[],T=o+(l=i.e-r.e)+1,a||(a=w_,l=C_(i.e/E_)-C_(r.e/E_),T=T/E_|0),h=0;I[h]==(S[h]||0);h++);if(I[h]>(S[h]||0)&&l--,T<0)m.push(1),c=!0;else{for(x=S.length,w=I.length,h=0,T+=2,(f=P_(a/(I[0]+1)))>1&&(I=t(I,f,a),S=t(S,f,a),w=I.length,x=S.length),P=w,g=(y=S.slice(0,w)).length;g<w;y[g++]=0);E=I.slice(),E=[0].concat(E),b=I[0],I[1]>=a/2&&b++;do{if(f=0,(u=e(I,y,w,g))<0){if(_=y[0],w!=g&&(_=_*a+(y[1]||0)),(f=P_(_/b))>1)for(f>=a&&(f=a-1),d=(p=t(I,f,a)).length,g=y.length;1==e(p,y,d,g);)f--,n(p,w<d?E:I,d,a),d=p.length,u=1;else 0==f&&(u=f=1),d=(p=I.slice()).length;if(d<g&&(p=[0].concat(p)),n(y,p,g,a),g=y.length,-1==u)for(;e(I,y,w,g)<1;)f++,n(y,w<g?E:I,g,a),g=y.length}else 0===u&&(f++,y=[0]);m[h++]=f,y[0]?y[g++]=S[P]||0:(y=[S[P]],g=1)}while((P++<x||null!=y[0])&&T--);c=null!=y[0],m[0]||m.splice(0,1)}if(a==w_){for(h=1,T=m[0];T>=10;T/=10,h++);C(v,o+(v.e=h+l*E_-1)+1,s,c)}else v.e=l,v.r=+c;return v}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,a=/^([^.]+)\.$/,u=/^\.([^.]+)$/,l=/^-?(Infinity|NaN)$/,h=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(t,e,n,i){var r,o=n?e:e.replace(h,"");if(l.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(s,function(t,e,n){return r="x"==(n=n.toLowerCase())?16:"b"==n?2:8,i&&i!=r?t:e}),i&&(r=i,o=o.replace(a,"$1").replace(u,"0.$1")),e!=o))return new L(o,r);if(L.DEBUG)throw Error(x_+"Not a"+(i?" base "+i:"")+" number: "+e);t.s=null}t.c=t.e=null},c.absoluteValue=c.abs=function(){var t=new L(this);return t.s<0&&(t.s=1),t},c.comparedTo=function(t,e){return A_(this,new L(t,e))},c.decimalPlaces=c.dp=function(t,e){var n,i,r,o=this;if(null!=t)return M_(t,0,I_),null==e?e=d:M_(e,0,8),C(new L(o),t+o.e+1,e);if(!(n=o.c))return null;if(i=((r=n.length-1)-C_(this.e/E_))*E_,r=n[r])for(;r%10==0;r/=10,i--);return i<0&&(i=0),i},c.dividedBy=c.div=function(t,e){return n(this,new L(t,e),p,d)},c.dividedToIntegerBy=c.idiv=function(t,e){return n(this,new L(t,e),0,1)},c.exponentiatedBy=c.pow=function(t,e){var n,i,r,o,s,a,u,l,h=this;if((t=new L(t)).c&&!t.isInteger())throw Error(x_+"Exponent not an integer: "+O(t));if(null!=e&&(e=new L(e)),s=t.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!t.c||!t.c[0])return l=new L(Math.pow(+O(h),s?t.s*(2-N_(t)):+O(t))),e?l.mod(e):l;if(a=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new L(NaN);(i=!a&&h.isInteger()&&e.isInteger())&&(h=h.mod(e))}else{if(t.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||s&&h.c[1]>=24e7:h.c[0]<8e13||s&&h.c[0]<=9999975e7)))return o=h.s<0&&N_(t)?-0:0,h.e>-1&&(o=1/o),new L(a?1/o:o);x&&(o=__(x/E_+2))}for(s?(n=new L(.5),a&&(t.s=1),u=N_(t)):u=(r=Math.abs(+O(t)))%2,l=new L(f);;){if(u){if(!(l=l.times(h)).c)break;o?l.c.length>o&&(l.c.length=o):i&&(l=l.mod(e))}if(r){if(0===(r=P_(r/2)))break;u=r%2}else if(C(t=t.times(n),t.e+1,1),t.e>14)u=N_(t);else{if(0==(r=+O(t)))break;u=r%2}h=h.times(h),o?h.c&&h.c.length>o&&(h.c.length=o):i&&(h=h.mod(e))}return i?l:(a&&(l=f.div(l)),e?l.mod(e):o?C(l,x,d,void 0):l)},c.integerValue=function(t){var e=new L(this);return null==t?t=d:M_(t,0,8),C(e,e.e+1,t)},c.isEqualTo=c.eq=function(t,e){return 0===A_(this,new L(t,e))},c.isFinite=function(){return!!this.c},c.isGreaterThan=c.gt=function(t,e){return A_(this,new L(t,e))>0},c.isGreaterThanOrEqualTo=c.gte=function(t,e){return 1===(e=A_(this,new L(t,e)))||0===e},c.isInteger=function(){return!!this.c&&C_(this.e/E_)>this.c.length-2},c.isLessThan=c.lt=function(t,e){return A_(this,new L(t,e))<0},c.isLessThanOrEqualTo=c.lte=function(t,e){return-1===(e=A_(this,new L(t,e)))||0===e},c.isNaN=function(){return!this.s},c.isNegative=function(){return this.s<0},c.isPositive=function(){return this.s>0},c.isZero=function(){return!!this.c&&0==this.c[0]},c.minus=function(t,e){var n,i,r,o,s=this,a=s.s;if(e=(t=new L(t,e)).s,!a||!e)return new L(NaN);if(a!=e)return t.s=-e,s.plus(t);var u=s.e/E_,l=t.e/E_,h=s.c,c=t.c;if(!u||!l){if(!h||!c)return h?(t.s=-e,t):new L(c?s:NaN);if(!h[0]||!c[0])return c[0]?(t.s=-e,t):new L(h[0]?s:3==d?-0:0)}if(u=C_(u),l=C_(l),h=h.slice(),a=u-l){for((o=a<0)?(a=-a,r=h):(l=u,r=c),r.reverse(),e=a;e--;r.push(0));r.reverse()}else for(i=(o=(a=h.length)<(e=c.length))?a:e,a=e=0;e<i;e++)if(h[e]!=c[e]){o=h[e]<c[e];break}if(o&&(r=h,h=c,c=r,t.s=-t.s),(e=(i=c.length)-(n=h.length))>0)for(;e--;h[n++]=0);for(e=w_-1;i>a;){if(h[--i]<c[i]){for(n=i;n&&!h[--n];h[n]=e);--h[n],h[i]+=w_}h[i]-=c[i]}for(;0==h[0];h.splice(0,1),--l);return h[0]?I(t,h,l):(t.s=3==d?-1:1,t.c=[t.e=0],t)},c.modulo=c.mod=function(t,e){var i,r,o=this;return t=new L(t,e),!o.c||!t.s||t.c&&!t.c[0]?new L(NaN):!t.c||o.c&&!o.c[0]?new L(o):(9==P?(r=t.s,t.s=1,i=n(o,t,0,3),t.s=r,i.s*=r):i=n(o,t,0,P),(t=o.minus(i.times(t))).c[0]||1!=P||(t.s=o.s),t)},c.multipliedBy=c.times=function(t,e){var n,i,r,o,s,a,u,l,h,c,f,p,d,v,m,y=this,g=y.c,_=(t=new L(t,e)).c;if(!(g&&_&&g[0]&&_[0]))return!y.s||!t.s||g&&!g[0]&&!_||_&&!_[0]&&!g?t.c=t.e=t.s=null:(t.s*=y.s,g&&_?(t.c=[0],t.e=0):t.c=t.e=null),t;for(i=C_(y.e/E_)+C_(t.e/E_),t.s*=y.s,(u=g.length)<(c=_.length)&&(d=g,g=_,_=d,r=u,u=c,c=r),r=u+c,d=[];r--;d.push(0));for(v=w_,m=S_,r=c;--r>=0;){for(n=0,f=_[r]%m,p=_[r]/m|0,o=r+(s=u);o>r;)n=((l=f*(l=g[--s]%m)+(a=p*l+(h=g[s]/m|0)*f)%m*m+d[o]+n)/v|0)+(a/m|0)+p*h,d[o--]=l%v;d[o]=n}return n?++i:d.splice(0,1),I(t,d,i)},c.negated=function(){var t=new L(this);return t.s=-t.s||null,t},c.plus=function(t,e){var n,i=this,r=i.s;if(e=(t=new L(t,e)).s,!r||!e)return new L(NaN);if(r!=e)return t.s=-e,i.minus(t);var o=i.e/E_,s=t.e/E_,a=i.c,u=t.c;if(!o||!s){if(!a||!u)return new L(r/0);if(!a[0]||!u[0])return u[0]?t:new L(a[0]?i:0*r)}if(o=C_(o),s=C_(s),a=a.slice(),r=o-s){for(r>0?(s=o,n=u):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(e=u.length)<0&&(n=u,u=a,a=n,e=r),r=0;e;)r=(a[--e]=a[e]+u[e]+r)/w_|0,a[e]=w_===a[e]?0:a[e]%w_;return r&&(a=[r].concat(a),++s),I(t,a,s)},c.precision=c.sd=function(t,e){var n,i,r,o=this;if(null!=t&&t!==!!t)return M_(t,1,I_),null==e?e=d:M_(e,0,8),C(new L(o),t,e);if(!(n=o.c))return null;if(i=(r=n.length-1)*E_+1,r=n[r]){for(;r%10==0;r/=10,i--);for(r=n[0];r>=10;r/=10,i++);}return t&&o.e+1>i&&(i=o.e+1),i},c.shiftedBy=function(t){return M_(t,-L_,L_),this.times("1e"+t)},c.squareRoot=c.sqrt=function(){var t,e,i,r,o,s=this,a=s.c,u=s.s,l=s.e,h=p+4,c=new L("0.5");if(1!==u||!a||!a[0])return new L(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+O(s)))||u==1/0?(((e=O_(a)).length+l)%2==0&&(e+="0"),u=Math.sqrt(+e),l=C_((l+1)/2)-(l<0||l%2),i=new L(e=u==1/0?"5e"+l:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+l)):i=new L(u+""),i.c[0])for((u=(l=i.e)+h)<3&&(u=0);;)if(o=i,i=c.times(o.plus(n(s,o,h,1))),O_(o.c).slice(0,u)===(e=O_(i.c)).slice(0,u)){if(i.e<l&&--u,"9999"!=(e=e.slice(u-3,u+1))&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(C(i,i.e+p+2,1),t=!i.times(i).eq(s));break}if(!r&&(C(o,o.e+p+2,0),o.times(o).eq(s))){i=o;break}h+=4,u+=4,r=1}return C(i,i.e+p+1,d,t)},c.toExponential=function(t,e){return null!=t&&(M_(t,0,I_),t++),T(this,t,e,1)},c.toFixed=function(t,e){return null!=t&&(M_(t,0,I_),t=t+this.e+1),T(this,t,e)},c.toFormat=function(t,e,n){var i,r=this;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=b;else if("object"!=typeof n)throw Error(x_+"Argument not an object: "+n);if(i=r.toFixed(t,e),r.c){var o,s=i.split("."),a=+n.groupSize,u=+n.secondaryGroupSize,l=n.groupSeparator||"",h=s[0],c=s[1],f=r.s<0,p=f?h.slice(1):h,d=p.length;if(u&&(o=a,a=u,u=o,d-=o),a>0&&d>0){for(o=d%a||a,h=p.substr(0,o);o<d;o+=a)h+=l+p.substr(o,a);u>0&&(h+=l+p.slice(o)),f&&(h="-"+h)}i=c?h+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?c.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):c):h}return(n.prefix||"")+i+(n.suffix||"")},c.toFraction=function(t){var e,i,r,o,s,a,u,l,h,c,p,v,m=this,y=m.c;if(null!=t&&(!(u=new L(t)).isInteger()&&(u.c||1!==u.s)||u.lt(f)))throw Error(x_+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+O(u));if(!y)return new L(m);for(e=new L(f),h=i=new L(f),r=l=new L(f),v=O_(y),s=e.e=v.length-m.e-1,e.c[0]=T_[(a=s%E_)<0?E_+a:a],t=!t||u.comparedTo(e)>0?s>0?e:h:u,a=g,g=1/0,u=new L(v),l.c[0]=0;c=n(u,e,0,1),1!=(o=i.plus(c.times(r))).comparedTo(t);)i=r,r=o,h=l.plus(c.times(o=h)),l=o,e=u.minus(c.times(o=e)),u=o;return o=n(t.minus(i),r,0,1),l=l.plus(o.times(h)),i=i.plus(o.times(r)),l.s=h.s=m.s,p=n(h,r,s*=2,d).minus(m).abs().comparedTo(n(l,i,s,d).minus(m).abs())<1?[h,r]:[l,i],g=a,p},c.toNumber=function(){return+O(this)},c.toPrecision=function(t,e){return null!=t&&M_(t,1,I_),T(this,t,e,2)},c.toString=function(t){var e,n=this,r=n.s,o=n.e;return null===o?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(null==t?e=o<=v||o>=m?R_(O_(n.c),o):k_(O_(n.c),o,"0"):10===t&&E?e=k_(O_((n=C(new L(n),p+o+1,d)).c),n.e,"0"):(M_(t,2,w.length,"Base"),e=i(k_(O_(n.c),o,"0"),10,t,r,!0)),r<0&&n.c[0]&&(e="-"+e)),e},c.valueOf=c.toJSON=function(){return O(this)},c._isBigNumber=!0,c[Symbol.toStringTag]="BigNumber",c[Symbol.for("nodejs.util.inspect.custom")]=c.valueOf,null!=e&&L.set(e),L}(),D_=o(function t(e){i(this,t),a(this,"key",void 0),a(this,"left",null),a(this,"right",null),this.key=e}),j_=function(t){function e(t){return i(this,e),n(this,e,[t])}return h(e,D_),o(e)}(),z_=function(){return o(function t(){i(this,t),a(this,"size",0),a(this,"modificationCount",0),a(this,"splayCount",0)},[{key:"splay",value:function(t){var e=this.root;if(null==e)return this.compare(t,t),-1;for(var n,i=null,r=null,o=null,s=null,a=e,u=this.compare;;)if((n=u(a.key,t))>0){var l=a.left;if(null==l)break;if((n=u(l.key,t))>0&&(a.left=l.right,l.right=a,null==(l=(a=l).left)))break;null==i?r=a:i.left=a,i=a,a=l}else{if(!(n<0))break;var h=a.right;if(null==h)break;if((n=u(h.key,t))<0&&(a.right=h.left,h.left=a,null==(h=(a=h).right)))break;null==o?s=a:o.right=a,o=a,a=h}return null!=o&&(o.right=a.left,a.left=s),null!=i&&(i.left=a.right,a.right=r),this.root!==a&&(this.root=a,this.splayCount++),n}},{key:"splayMin",value:function(t){for(var e=t,n=e.left;null!=n;){var i=n;e.left=i.right,i.right=e,n=(e=i).left}return e}},{key:"splayMax",value:function(t){for(var e=t,n=e.right;null!=n;){var i=n;e.right=i.left,i.left=e,n=(e=i).right}return e}},{key:"_delete",value:function(t){if(null==this.root)return null;if(0!=this.splay(t))return null;var e=this.root,n=e,i=e.left;if(this.size--,null==i)this.root=e.right;else{var r=e.right;(e=this.splayMax(i)).right=r,this.root=e}return this.modificationCount++,n}},{key:"addNewRoot",value:function(t,e){this.size++,this.modificationCount++;var n=this.root;null!=n?(e<0?(t.left=n,t.right=n.right,n.right=null):(t.right=n,t.left=n.left,n.left=null),this.root=t):this.root=t}},{key:"_first",value:function(){var t=this.root;return null==t?null:(this.root=this.splayMin(t),this.root)}},{key:"_last",value:function(){var t=this.root;return null==t?null:(this.root=this.splayMax(t),this.root)}},{key:"clear",value:function(){this.root=null,this.size=0,this.modificationCount++}},{key:"has",value:function(t){return this.validKey(t)&&0==this.splay(t)}},{key:"defaultCompare",value:function(){return function(t,e){return t<e?-1:t>e?1:0}}},{key:"wrap",value:function(){var t=this;return{getRoot:function(){return t.root},setRoot:function(e){t.root=e},getSize:function(){return t.size},getModificationCount:function(){return t.modificationCount},getSplayCount:function(){return t.splayCount},setSplayCount:function(e){t.splayCount=e},splay:function(e){return t.splay(e)},has:function(e){return t.has(e)}}}}])}(),Y_=function(t){function e(t,r){var o;return i(this,e),a(o=n(this,e),"root",null),a(o,"compare",void 0),a(o,"validKey",void 0),a(o,Symbol.toStringTag,"[object Set]"),o.compare=null!=t?t:o.defaultCompare(),o.validKey=null!=r?r:function(t){return null!=t&&null!=t},o}return h(e,z_),o(e,[{key:"delete",value:function(t){return!!this.validKey(t)&&null!=this._delete(t)}},{key:"deleteAll",value:function(t){var e,n=s(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.delete(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"forEach",value:function(t){for(var e,n=this[Symbol.iterator]();!(e=n.next()).done;)t(e.value,e.value,this)}},{key:"add",value:function(t){var e=this.splay(t);return 0!=e&&this.addNewRoot(new j_(t),e),this}},{key:"addAndReturn",value:function(t){var e=this.splay(t);return 0!=e&&this.addNewRoot(new j_(t),e),this.root.key}},{key:"addAll",value:function(t){var e,n=s(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.add(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"isEmpty",value:function(){return null==this.root}},{key:"isNotEmpty",value:function(){return null!=this.root}},{key:"single",value:function(){if(0==this.size)throw"Bad state: No element";if(this.size>1)throw"Bad state: Too many element";return this.root.key}},{key:"first",value:function(){if(0==this.size)throw"Bad state: No element";return this._first().key}},{key:"last",value:function(){if(0==this.size)throw"Bad state: No element";return this._last().key}},{key:"lastBefore",value:function(t){if(null==t)throw"Invalid arguments(s)";if(null==this.root)return null;if(this.splay(t)<0)return this.root.key;var e=this.root.left;if(null==e)return null;for(var n=e.right;null!=n;)n=(e=n).right;return e.key}},{key:"firstAfter",value:function(t){if(null==t)throw"Invalid arguments(s)";if(null==this.root)return null;if(this.splay(t)>0)return this.root.key;var e=this.root.right;if(null==e)return null;for(var n=e.left;null!=n;)n=(e=n).left;return e.key}},{key:"retainAll",value:function(t){var n,i=new e(this.compare,this.validKey),r=this.modificationCount,o=s(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(r!=this.modificationCount)throw"Concurrent modification during iteration.";this.validKey(a)&&0==this.splay(a)&&i.add(this.root.key)}}catch(t){o.e(t)}finally{o.f()}i.size!=this.size&&(this.root=i.root,this.size=i.size,this.modificationCount++)}},{key:"lookup",value:function(t){return this.validKey(t)?0!=this.splay(t)?null:this.root.key:null}},{key:"intersection",value:function(t){var n,i=new e(this.compare,this.validKey),r=s(this);try{for(r.s();!(n=r.n()).done;){var o=n.value;t.has(o)&&i.add(o)}}catch(t){r.e(t)}finally{r.f()}return i}},{key:"difference",value:function(t){var n,i=new e(this.compare,this.validKey),r=s(this);try{for(r.s();!(n=r.n()).done;){var o=n.value;t.has(o)||i.add(o)}}catch(t){r.e(t)}finally{r.f()}return i}},{key:"union",value:function(t){var e=this.clone();return e.addAll(t),e}},{key:"clone",value:function(){var t=new e(this.compare,this.validKey);return t.size=this.size,t.root=this.copyNode(this.root),t}},{key:"copyNode",value:function(t){if(null==t)return null;var e=new j_(t.key);return function t(e,n){var i,r;do{if(i=e.left,r=e.right,null!=i){var o=new j_(i.key);n.left=o,t(i,o)}if(null!=r){var s=new j_(r.key);n.right=s,e=r,n=s}}while(null!=r)}(t,e),e}},{key:"toSet",value:function(){return this.clone()}},{key:"entries",value:function(){return new W_(this.wrap())}},{key:"keys",value:function(){return this[Symbol.iterator]()}},{key:"values",value:function(){return this[Symbol.iterator]()}},{key:Symbol.iterator,value:function(){return new F_(this.wrap())}}])}(),X_=function(){return o(function t(e){i(this,t),a(this,"tree",void 0),a(this,"path",new Array),a(this,"modificationCount",null),a(this,"splayCount",void 0),this.tree=e,this.splayCount=e.getSplayCount()},[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){return this.moveNext()?{done:!1,value:this.current()}:{done:!0,value:null}}},{key:"current",value:function(){if(!this.path.length)return null;var t=this.path[this.path.length-1];return this.getValue(t)}},{key:"rebuildPath",value:function(t){this.path.splice(0,this.path.length),this.tree.splay(t),this.path.push(this.tree.getRoot()),this.splayCount=this.tree.getSplayCount()}},{key:"findLeftMostDescendent",value:function(t){for(;null!=t;)this.path.push(t),t=t.left}},{key:"moveNext",value:function(){if(this.modificationCount!=this.tree.getModificationCount()){if(null==this.modificationCount){this.modificationCount=this.tree.getModificationCount();for(var t=this.tree.getRoot();null!=t;)this.path.push(t),t=t.left;return this.path.length>0}throw"Concurrent modification during iteration."}if(!this.path.length)return!1;this.splayCount!=this.tree.getSplayCount()&&this.rebuildPath(this.path[this.path.length-1].key);var e=this.path[this.path.length-1],n=e.right;if(null!=n){for(;null!=n;)this.path.push(n),n=n.left;return!0}for(this.path.pop();this.path.length&&this.path[this.path.length-1].right===e;)e=this.path.pop();return this.path.length>0}}])}(),F_=function(t){function e(){return i(this,e),n(this,e,arguments)}return h(e,X_),o(e,[{key:"getValue",value:function(t){return t.key}}])}(),W_=function(t){function e(){return i(this,e),n(this,e,arguments)}return h(e,X_),o(e,[{key:"getValue",value:function(t){return[t.key,t.key]}}])}(),Z_=function(t){return function(){return t}},U_=function(t){var e=t?function(e,n){return n.minus(e).abs().isLessThanOrEqualTo(t)}:Z_(!1);return function(t,n){return e(t,n)?0:t.comparedTo(n)}};function q_(t){var e=t?function(e,n,i,r,o){return e.exponentiatedBy(2).isLessThanOrEqualTo(r.minus(n).exponentiatedBy(2).plus(o.minus(i).exponentiatedBy(2)).times(t))}:Z_(!1);return function(t,n,i){var r=t.x,o=t.y,s=i.x,a=i.y,u=o.minus(a).times(n.x.minus(s)).minus(r.minus(s).times(n.y.minus(a)));return e(u,r,o,s,a)?0:u.comparedTo(0)}}var G_=function(t){return t},H_=function(t){if(t){var e=new Y_(U_(t)),n=new Y_(U_(t)),i=function(t,e){return e.addAndReturn(t)},r=function(t){return{x:i(t.x,e),y:i(t.y,n)}};return r({x:new B_(0),y:new B_(0)}),r}return G_},V_=function(t){return{set:function(t){J_=V_(t)},reset:function(){return V_(t)},compare:U_(t),snap:H_(t),orient:q_(t)}},J_=V_(),K_=function(t,e){return t.ll.x.isLessThanOrEqualTo(e.x)&&e.x.isLessThanOrEqualTo(t.ur.x)&&t.ll.y.isLessThanOrEqualTo(e.y)&&e.y.isLessThanOrEqualTo(t.ur.y)},$_=function(t,e){if(e.ur.x.isLessThan(t.ll.x)||t.ur.x.isLessThan(e.ll.x)||e.ur.y.isLessThan(t.ll.y)||t.ur.y.isLessThan(e.ll.y))return null;var n=t.ll.x.isLessThan(e.ll.x)?e.ll.x:t.ll.x,i=t.ur.x.isLessThan(e.ur.x)?t.ur.x:e.ur.x;return{ll:{x:n,y:t.ll.y.isLessThan(e.ll.y)?e.ll.y:t.ll.y},ur:{x:i,y:t.ur.y.isLessThan(e.ur.y)?t.ur.y:e.ur.y}}},Q_=function(t,e){return t.x.times(e.y).minus(t.y.times(e.x))},tP=function(t,e){return t.x.times(e.x).plus(t.y.times(e.y))},eP=function(t){return tP(t,t).sqrt()},nP=function(t,e,n){var i={x:e.x.minus(t.x),y:e.y.minus(t.y)},r={x:n.x.minus(t.x),y:n.y.minus(t.y)};return tP(r,i).div(eP(r)).div(eP(i))},iP=function(t,e,n){return e.y.isZero()?null:{x:t.x.plus(e.x.div(e.y).times(n.minus(t.y))),y:n}},rP=function(t,e,n){return e.x.isZero()?null:{x:n,y:t.y.plus(e.y.div(e.x).times(n.minus(t.x)))}},oP=function(){function t(e,n){i(this,t),a(this,"point",void 0),a(this,"isLeft",void 0),a(this,"segment",void 0),a(this,"otherSE",void 0),a(this,"consumedBy",void 0),void 0===e.events?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=n}return o(t,[{key:"link",value:function(t){if(t.point===this.point)throw new Error("Tried to link already linked events");for(var e=t.point.events,n=0,i=e.length;n<i;n++){var r=e[n];this.point.events.push(r),r.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var t=this.point.events.length,e=0;e<t;e++){var n=this.point.events[e];if(void 0===n.segment.consumedBy)for(var i=e+1;i<t;i++){var r=this.point.events[i];void 0===r.consumedBy&&(n.otherSE.point.events===r.otherSE.point.events&&n.segment.consume(r.segment))}}}},{key:"getAvailableLinkedEvents",value:function(){for(var t=[],e=0,n=this.point.events.length;e<n;e++){var i=this.point.events[e];i!==this&&!i.segment.ringOut&&i.segment.isInResult()&&t.push(i)}return t}},{key:"getLeftmostComparator",value:function(t){var e=this,n=new Map,i=function(i){var r,o,s,a,u,l=i.otherSE;n.set(i,{sine:(r=e.point,o=t.point,s=l.point,a={x:o.x.minus(r.x),y:o.y.minus(r.y)},u={x:s.x.minus(r.x),y:s.y.minus(r.y)},Q_(u,a).div(eP(u)).div(eP(a))),cosine:nP(e.point,t.point,l.point)})};return function(t,e){n.has(t)||i(t),n.has(e)||i(e);var r=n.get(t),o=r.sine,s=r.cosine,a=n.get(e),u=a.sine,l=a.cosine;return o.isGreaterThanOrEqualTo(0)&&u.isGreaterThanOrEqualTo(0)?s.isLessThan(l)?1:s.isGreaterThan(l)?-1:0:o.isLessThan(0)&&u.isLessThan(0)?s.isLessThan(l)?-1:s.isGreaterThan(l)?1:0:u.isLessThan(o)?-1:u.isGreaterThan(o)?1:0}}}],[{key:"compare",value:function(e,n){var i=t.comparePoints(e.point,n.point);return 0!==i?i:(e.point!==n.point&&e.link(n),e.isLeft!==n.isLeft?e.isLeft?1:-1:pP.compare(e.segment,n.segment))}},{key:"comparePoints",value:function(t,e){return t.x.isLessThan(e.x)?-1:t.x.isGreaterThan(e.x)?1:t.y.isLessThan(e.y)?-1:t.y.isGreaterThan(e.y)?1:0}}])}(),sP=function(){function t(e){i(this,t),a(this,"events",void 0),a(this,"poly",void 0),a(this,"_isExteriorRing",void 0),a(this,"_enclosingRing",void 0),this.events=e;for(var n=0,r=e.length;n<r;n++)e[n].segment.ringOut=this;this.poly=null}return o(t,[{key:"getGeom",value:function(){for(var t=this.events[0].point,e=[t],n=1,i=this.events.length-1;n<i;n++){var r=this.events[n].point,o=this.events[n+1].point;0!==J_.orient(r,t,o)&&(e.push(r),t=r)}if(1===e.length)return null;var s=e[0],a=e[1];0===J_.orient(s,t,a)&&e.shift(),e.push(e[0]);for(var u=this.isExteriorRing()?1:-1,l=this.isExteriorRing()?0:e.length-1,h=this.isExteriorRing()?e.length:-1,c=[],f=l;f!=h;f+=u)c.push([e[f].x.toNumber(),e[f].y.toNumber()]);return c}},{key:"isExteriorRing",value:function(){if(void 0===this._isExteriorRing){var t=this.enclosingRing();this._isExteriorRing=!t||!t.isExteriorRing()}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var t=this.events[0],e=1,n=this.events.length;e<n;e++){var i=this.events[e];oP.compare(t,i)>0&&(t=i)}for(var r=t.segment.prevInResult(),o=r?r.prevInResult():null;;){if(!r)return null;if(!o)return r.ringOut;var s,a;if(o.ringOut!==r.ringOut)return(null===(s=o.ringOut)||void 0===s?void 0:s.enclosingRing())!==r.ringOut?r.ringOut:null===(a=r.ringOut)||void 0===a?void 0:a.enclosingRing();r=o.prevInResult(),o=r?r.prevInResult():null}}}],[{key:"factory",value:function(e){for(var n=[],i=0,r=e.length;i<r;i++){var o=e[i];if(o.isInResult()&&!o.ringOut){for(var s=null,a=o.leftSE,u=o.rightSE,l=[a],h=a.point,c=[];s=a,a=u,l.push(a),a.point!==h;)for(;;){var f=a.getAvailableLinkedEvents();if(0===f.length){var p=l[0].point,d=l[l.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(p.x,", ").concat(p.y,"]. Last matching segment found ends at [").concat(d.x,", ").concat(d.y,"]."))}if(1===f.length){u=f[0].otherSE;break}for(var v=null,m=0,y=c.length;m<y;m++)if(c[m].point===a.point){v=m;break}if(null===v){c.push({index:l.length,point:a.point});var g=a.getLeftmostComparator(s);u=f.sort(g)[0].otherSE;break}var _=c.splice(v)[0],P=l.splice(_.index);P.unshift(P[0].otherSE),n.push(new t(P.reverse()))}n.push(new t(l))}}return n}}])}(),aP=function(){return o(function t(e){i(this,t),a(this,"exteriorRing",void 0),a(this,"interiorRings",void 0),this.exteriorRing=e,e.poly=this,this.interiorRings=[]},[{key:"addInterior",value:function(t){this.interiorRings.push(t),t.poly=this}},{key:"getGeom",value:function(){var t=this.exteriorRing.getGeom();if(null===t)return null;for(var e=[t],n=0,i=this.interiorRings.length;n<i;n++){var r=this.interiorRings[n].getGeom();null!==r&&e.push(r)}return e}}])}(),uP=function(){return o(function t(e){i(this,t),a(this,"rings",void 0),a(this,"polys",void 0),this.rings=e,this.polys=this._composePolys(e)},[{key:"getGeom",value:function(){for(var t=[],e=0,n=this.polys.length;e<n;e++){var i=this.polys[e].getGeom();null!==i&&t.push(i)}return t}},{key:"_composePolys",value:function(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n];if(!r.poly)if(r.isExteriorRing())e.push(new aP(r));else{var o,s=r.enclosingRing();null!=s&&s.poly||e.push(new aP(s)),null==s||null===(o=s.poly)||void 0===o||o.addInterior(r)}}return e}}])}(),lP=function(){return o(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pP.compare;i(this,t),a(this,"queue",void 0),a(this,"tree",void 0),a(this,"segments",void 0),this.queue=e,this.tree=new Y_(n),this.segments=[]},[{key:"process",value:function(t){var e=t.segment,n=[];if(t.consumedBy)return t.isLeft?this.queue.delete(t.otherSE):this.tree.delete(e),n;t.isLeft&&this.tree.add(e);var i=e,r=e;do{i=this.tree.lastBefore(i)}while(null!=i&&null!=i.consumedBy);do{r=this.tree.firstAfter(r)}while(null!=r&&null!=r.consumedBy);if(t.isLeft){var o=null;if(i){var s=i.getIntersection(e);if(null!==s&&(e.isAnEndpoint(s)||(o=s),!i.isAnEndpoint(s)))for(var a=this._splitSafely(i,s),u=0,l=a.length;u<l;u++)n.push(a[u])}var h=null;if(r){var c=r.getIntersection(e);if(null!==c&&(e.isAnEndpoint(c)||(h=c),!r.isAnEndpoint(c)))for(var f=this._splitSafely(r,c),p=0,d=f.length;p<d;p++)n.push(f[p])}if(null!==o||null!==h){var v=null;if(null===o)v=h;else if(null===h)v=o;else{v=oP.comparePoints(o,h)<=0?o:h}this.queue.delete(e.rightSE),n.push(e.rightSE);for(var m=e.split(v),y=0,g=m.length;y<g;y++)n.push(m[y])}n.length>0?(this.tree.delete(e),n.push(t)):(this.segments.push(e),e.prev=i)}else{if(i&&r){var _=i.getIntersection(r);if(null!==_){if(!i.isAnEndpoint(_))for(var P=this._splitSafely(i,_),x=0,b=P.length;x<b;x++)n.push(P[x]);if(!r.isAnEndpoint(_))for(var w=this._splitSafely(r,_),E=0,L=w.length;E<L;E++)n.push(w[E])}}this.tree.delete(e)}return n}},{key:"_splitSafely",value:function(t,e){this.tree.delete(t);var n=t.rightSE;this.queue.delete(n);var i=t.split(e);return i.push(n),void 0===t.consumedBy&&this.tree.add(t),i}}])}(),hP=new(function(){return o(function t(){i(this,t),a(this,"type",void 0),a(this,"numMultiPolys",void 0)},[{key:"run",value:function(t,e,n){hP.type=t;for(var i=[new mP(e,!0)],r=0,o=n.length;r<o;r++)i.push(new mP(n[r],!1));if(hP.numMultiPolys=i.length,"difference"===hP.type)for(var s=i[0],a=1;a<i.length;)null!==$_(i[a].bbox,s.bbox)?a++:i.splice(a,1);if("intersection"===hP.type)for(var u=0,l=i.length;u<l;u++)for(var h=i[u],c=u+1,f=i.length;c<f;c++)if(null===$_(h.bbox,i[c].bbox))return[];for(var p=new Y_(oP.compare),d=0,v=i.length;d<v;d++)for(var m=i[d].getSweepEvents(),y=0,g=m.length;y<g;y++)p.add(m[y]);var _=new lP(p),P=null;for(0!=p.size&&(P=p.first(),p.delete(P));P;){for(var x=_.process(P),b=0,w=x.length;b<w;b++){var E=x[b];void 0===E.consumedBy&&p.add(E)}0!=p.size?(P=p.first(),p.delete(P)):P=null}J_.reset();var L=sP.factory(_.segments);return new uP(L).getGeom()}}])}()),cP=hP,fP=0,pP=function(){function t(e,n,r,o){i(this,t),a(this,"id",void 0),a(this,"leftSE",void 0),a(this,"rightSE",void 0),a(this,"rings",void 0),a(this,"windings",void 0),a(this,"ringOut",void 0),a(this,"consumedBy",void 0),a(this,"prev",void 0),a(this,"_prevInResult",void 0),a(this,"_beforeState",void 0),a(this,"_afterState",void 0),a(this,"_isInResult",void 0),this.id=++fP,this.leftSE=e,e.segment=this,e.otherSE=n,this.rightSE=n,n.segment=this,n.otherSE=e,this.rings=r,this.windings=o}return o(t,[{key:"replaceRightSE",value:function(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var t=this.leftSE.point.y,e=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:t.isLessThan(e)?t:e},ur:{x:this.rightSE.point.x,y:t.isGreaterThan(e)?t:e}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x.minus(this.leftSE.point.x),y:this.rightSE.point.y.minus(this.leftSE.point.y)}}},{key:"isAnEndpoint",value:function(t){return t.x.eq(this.leftSE.point.x)&&t.y.eq(this.leftSE.point.y)||t.x.eq(this.rightSE.point.x)&&t.y.eq(this.rightSE.point.y)}},{key:"comparePoint",value:function(t){return J_.orient(this.leftSE.point,t,this.rightSE.point)}},{key:"getIntersection",value:function(t){var e=this.bbox(),n=t.bbox(),i=$_(e,n);if(null===i)return null;var r=this.leftSE.point,o=this.rightSE.point,s=t.leftSE.point,a=t.rightSE.point,u=K_(e,s)&&0===this.comparePoint(s),l=K_(n,r)&&0===t.comparePoint(r),h=K_(e,a)&&0===this.comparePoint(a),c=K_(n,o)&&0===t.comparePoint(o);if(l&&u)return c&&!h?o:!c&&h?a:null;if(l)return h&&r.x.eq(a.x)&&r.y.eq(a.y)?null:r;if(u)return c&&o.x.eq(s.x)&&o.y.eq(s.y)?null:s;if(c&&h)return null;if(c)return o;if(h)return a;var f=function(t,e,n,i){if(e.x.isZero())return rP(n,i,t.x);if(i.x.isZero())return rP(t,e,n.x);if(e.y.isZero())return iP(n,i,t.y);if(i.y.isZero())return iP(t,e,n.y);var r=Q_(e,i);if(r.isZero())return null;var o={x:n.x.minus(t.x),y:n.y.minus(t.y)},s=Q_(o,e).div(r),a=Q_(o,i).div(r),u=t.x.plus(a.times(e.x)),l=n.x.plus(s.times(i.x)),h=t.y.plus(a.times(e.y)),c=n.y.plus(s.times(i.y));return{x:u.plus(l).div(2),y:h.plus(c).div(2)}}(r,this.vector(),s,t.vector());return null===f?null:K_(i,f)?J_.snap(f):null}},{key:"split",value:function(e){var n=[],i=void 0!==e.events,r=new oP(e,!0),o=new oP(e,!1),s=this.rightSE;this.replaceRightSE(o),n.push(o),n.push(r);var a=new t(r,s,this.rings.slice(),this.windings.slice());return oP.comparePoints(a.leftSE.point,a.rightSE.point)>0&&a.swapEvents(),oP.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),i&&(r.checkForConsuming(),o.checkForConsuming()),n}},{key:"swapEvents",value:function(){var t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var e=0,n=this.windings.length;e<n;e++)this.windings[e]*=-1}},{key:"consume",value:function(e){for(var n=this,i=e;n.consumedBy;)n=n.consumedBy;for(;i.consumedBy;)i=i.consumedBy;var r=t.compare(n,i);if(0!==r){if(r>0){var o=n;n=i,i=o}if(n.prev===i){var s=n;n=i,i=s}for(var a=0,u=i.rings.length;a<u;a++){var l=i.rings[a],h=i.windings[a],c=n.rings.indexOf(l);-1===c?(n.rings.push(l),n.windings.push(h)):n.windings[c]+=h}i.rings=null,i.windings=null,i.consumedBy=n,i.leftSE.consumedBy=n.leftSE,i.rightSE.consumedBy=n.rightSE}}},{key:"prevInResult",value:function(){return void 0!==this._prevInResult?this._prevInResult:(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null,this._prevInResult)}},{key:"beforeState",value:function(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){var t=this.prev.consumedBy||this.prev;this._beforeState=t.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}},{key:"afterState",value:function(){if(void 0!==this._afterState)return this._afterState;var t=this.beforeState();this._afterState={rings:t.rings.slice(0),windings:t.windings.slice(0),multiPolys:[]};for(var e=this._afterState.rings,n=this._afterState.windings,i=this._afterState.multiPolys,r=0,o=this.rings.length;r<o;r++){var s=this.rings[r],a=this.windings[r],u=e.indexOf(s);-1===u?(e.push(s),n.push(a)):n[u]+=a}for(var l=[],h=[],c=0,f=e.length;c<f;c++)if(0!==n[c]){var p=e[c],d=p.poly;if(-1===h.indexOf(d))if(p.isExterior)l.push(d);else{-1===h.indexOf(d)&&h.push(d);var v=l.indexOf(p.poly);-1!==v&&l.splice(v,1)}}for(var m=0,y=l.length;m<y;m++){var g=l[m].multiPoly;-1===i.indexOf(g)&&i.push(g)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;var t=this.beforeState().multiPolys,e=this.afterState().multiPolys;switch(cP.type){case"union":var n=0===t.length,i=0===e.length;this._isInResult=n!==i;break;case"intersection":var r,o;t.length<e.length?(r=t.length,o=e.length):(r=e.length,o=t.length),this._isInResult=o===cP.numMultiPolys&&r<o;break;case"xor":var s=Math.abs(t.length-e.length);this._isInResult=s%2==1;break;case"difference":var a=function(t){return 1===t.length&&t[0].isSubject};this._isInResult=a(t)!==a(e)}return this._isInResult}}],[{key:"compare",value:function(t,e){var n=t.leftSE.point.x,i=e.leftSE.point.x,r=t.rightSE.point.x,o=e.rightSE.point.x;if(o.isLessThan(n))return 1;if(r.isLessThan(i))return-1;var s=t.leftSE.point.y,a=e.leftSE.point.y,u=t.rightSE.point.y,l=e.rightSE.point.y;if(n.isLessThan(i)){if(a.isLessThan(s)&&a.isLessThan(u))return 1;if(a.isGreaterThan(s)&&a.isGreaterThan(u))return-1;var h=t.comparePoint(e.leftSE.point);if(h<0)return 1;if(h>0)return-1;var c=e.comparePoint(t.rightSE.point);return 0!==c?c:-1}if(n.isGreaterThan(i)){if(s.isLessThan(a)&&s.isLessThan(l))return-1;if(s.isGreaterThan(a)&&s.isGreaterThan(l))return 1;var f=e.comparePoint(t.leftSE.point);if(0!==f)return f;var p=t.comparePoint(e.rightSE.point);return p<0?1:p>0?-1:1}if(s.isLessThan(a))return-1;if(s.isGreaterThan(a))return 1;if(r.isLessThan(o)){var d=e.comparePoint(t.rightSE.point);if(0!==d)return d}if(r.isGreaterThan(o)){var v=t.comparePoint(e.rightSE.point);if(v<0)return 1;if(v>0)return-1}if(!r.eq(o)){var m=u.minus(s),y=r.minus(n),g=l.minus(a),_=o.minus(i);if(m.isGreaterThan(y)&&g.isLessThan(_))return 1;if(m.isLessThan(y)&&g.isGreaterThan(_))return-1}return r.isGreaterThan(o)?1:r.isLessThan(o)?-1:u.isLessThan(l)?-1:u.isGreaterThan(l)?1:t.id<e.id?-1:t.id>e.id?1:0}},{key:"fromRing",value:function(e,n,i){var r,o,s,a=oP.comparePoints(e,n);if(a<0)r=e,o=n,s=1;else{if(!(a>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));r=n,o=e,s=-1}return new t(new oP(r,!0),new oP(o,!1),[i],[s])}}])}(),dP=function(){return o(function t(e,n,r){if(i(this,t),a(this,"poly",void 0),a(this,"isExterior",void 0),a(this,"segments",void 0),a(this,"bbox",void 0),!Array.isArray(e)||0===e.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=n,this.isExterior=r,this.segments=[],"number"!=typeof e[0][0]||"number"!=typeof e[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var o=J_.snap({x:new B_(e[0][0]),y:new B_(e[0][1])});this.bbox={ll:{x:o.x,y:o.y},ur:{x:o.x,y:o.y}};for(var s=o,u=1,l=e.length;u<l;u++){if("number"!=typeof e[u][0]||"number"!=typeof e[u][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var h=J_.snap({x:new B_(e[u][0]),y:new B_(e[u][1])});h.x.eq(s.x)&&h.y.eq(s.y)||(this.segments.push(pP.fromRing(s,h,this)),h.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=h.x),h.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=h.y),h.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=h.x),h.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=h.y),s=h)}o.x.eq(s.x)&&o.y.eq(s.y)||this.segments.push(pP.fromRing(s,o,this))},[{key:"getSweepEvents",value:function(){for(var t=[],e=0,n=this.segments.length;e<n;e++){var i=this.segments[e];t.push(i.leftSE),t.push(i.rightSE)}return t}}])}(),vP=function(){return o(function t(e,n){if(i(this,t),a(this,"multiPoly",void 0),a(this,"exteriorRing",void 0),a(this,"interiorRings",void 0),a(this,"bbox",void 0),!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new dP(e[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var r=1,o=e.length;r<o;r++){var s=new dP(e[r],this,!1);s.bbox.ll.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=s.bbox.ll.x),s.bbox.ll.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=s.bbox.ll.y),s.bbox.ur.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=s.bbox.ur.x),s.bbox.ur.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=s.bbox.ur.y),this.interiorRings.push(s)}this.multiPoly=n},[{key:"getSweepEvents",value:function(){for(var t=this.exteriorRing.getSweepEvents(),e=0,n=this.interiorRings.length;e<n;e++)for(var i=this.interiorRings[e].getSweepEvents(),r=0,o=i.length;r<o;r++)t.push(i[r]);return t}}])}(),mP=function(){return o(function t(e,n){if(i(this,t),a(this,"isSubject",void 0),a(this,"polys",void 0),a(this,"bbox",void 0),!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"==typeof e[0][0][0]&&(e=[e])}catch(t){}this.polys=[],this.bbox={ll:{x:new B_(Number.POSITIVE_INFINITY),y:new B_(Number.POSITIVE_INFINITY)},ur:{x:new B_(Number.NEGATIVE_INFINITY),y:new B_(Number.NEGATIVE_INFINITY)}};for(var r=0,o=e.length;r<o;r++){var s=new vP(e[r],this);s.bbox.ll.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=s.bbox.ll.x),s.bbox.ll.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=s.bbox.ll.y),s.bbox.ur.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=s.bbox.ur.x),s.bbox.ur.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=s.bbox.ur.y),this.polys.push(s)}this.isSubject=n},[{key:"getSweepEvents",value:function(){for(var t=[],e=0,n=this.polys.length;e<n;e++)for(var i=this.polys[e].getSweepEvents(),r=0,o=i.length;r<o;r++)t.push(i[r]);return t}}])}(),yP=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return cP.run("intersection",t,n)},gP=J_.set,_P=Object.freeze({__proto__:null,difference:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return cP.run("difference",t,n)},intersection:yP,setPrecision:gP,union:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return cP.run("union",t,n)},xor:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return cP.run("xor",t,n)}});var PP=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];if(function(t,e){var n,i,r,o,s,a,u,l,h,c,f=0,p="FeatureCollection"===t.type,d="Feature"===t.type,v=p?t.features.length:1;for(n=0;n<v;n++){for(a=p?t.features[n].geometry:d?t.geometry:t,l=p?t.features[n].properties:d?t.properties:{},h=p?t.features[n].bbox:d?t.bbox:void 0,c=p?t.features[n].id:d?t.id:void 0,s=(u=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,r=0;r<s;r++)if(null!==(o=u?a.geometries[r]:a))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,f,l,h,c))return!1;break;case"GeometryCollection":for(i=0;i<o.geometries.length;i++)if(!1===e(o.geometries[i],f,l,h,c))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,l,h,c))return!1;f++}}(t,function(t){n.push(t.coordinates)}),n.length<2)throw new Error("Must specify at least 2 geometries");var i=yP.apply(_P,[n[0]].concat(d(n.slice(1))));return 0===i.length?null:1===i.length?function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=s(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(o[o.length-1].length!==o[0].length)throw new Error("First and last Position are not equivalent.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}}catch(t){r.e(t)}finally{r.f()}return y_({type:"Polygon",coordinates:t},e,i)}(i[0],e.properties):function(t,e){return y_({type:"MultiPolygon",coordinates:t},e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(i,e.properties)},xP=function(t,e){return e.map(function(e){var n=t.latLngToLayerPoint(e);return{X:n.x,Y:n.y}})},bP=function(t,e,n){var i=d_.CleanPolygon(xP(t,e),n.simplifyFactor);return function(t,e){return e.map(function(e){return e.map(function(e){var n=new vv(e.X,e.Y);return t.layerPointToLatLng(n)})})}(t,d_.SimplifyPolygon(i,v_.pftNonZero))};function wP(t){return t.map(function(t){return[t.lat,t.lng]})}var EP=function(t,e,n){var i=l_(m_,function(t){return[t]},function(t){return[].concat(d(t),[h_(t)])},wP),r=e.reduce(function(n,r){var o=r.getLatLngs()[0],s=xP(t,r.getLatLngs()[0]),u=i(o),l=e.filter(c_(f_(r))).some(function(t){var e=i(t.getLatLngs()[0]);return!(!u||!e)&&Boolean(PP({type:"FeatureCollection",features:[u,e]}))}),h=l?"intersecting":"rest";return f(f({},n),{},a(a({},h,[].concat(d(n[h]),[l?s:o])),"intersectingPolygons",l?[].concat(d(n.intersectingPolygons),[r]):n.intersectingPolygons))},{intersecting:[],rest:[],intersectingPolygons:[]}),o=d_.SimplifyPolygons(r.intersecting,v_.pftNonZero);return r.intersectingPolygons.forEach(function(e){return IP(t,e)}),u_(o.map(function(e){var i=e.map(function(e){return t.layerPointToLatLng(new vv(e.X,e.Y))});return SP(t,i,n,!0)}))};function LP(t,e,n){var i=function(e){return e.getLatLngs()[0].map(function(e){return t.latLngToLayerPoint(e)})}(e).map(function(r){var o=t[NP],s=new mv({className:"leaflet-edge ".concat(o&e_?"":"disabled").trim()}),a=t.layerPointToLatLng(r),u=new yv(a,{icon:s}).addTo(t);return gv.disableClickPropagation(u),u.on("mousedown",function r(){if(t[NP]&e_){t.dragging.disable();var o=function(n){var r=t.latLngToContainerPoint(n.latlng),o=t.containerPointToLatLng(r);u.setLatLng(o);var s=i.map(function(t){return t.getLatLng()});e.setLatLngs(s),e.redraw()};t.on("mousemove",o),t.on("mouseup",s),u.on("mouseup",s)}else t.off("mousedown",r);function s(){t[NP]&t_||t.dragging.enable(),t.off("mouseup",s),t.off("mousedown",r),t.off("mousemove",o),function(t,e,n){var i=xP(t,e.getLatLngs()[0]);d_.SimplifyPolygon(i,v_.pftNonZero),IP(t,e);var r=i.map(function(e){return t.layerPointToLatLng(new vv(e.X,e.Y))});SP(t,r,n,!0)}(t,e,n);var i=function(){return EP(t,Array.from(OP.get(t)),n)};n.mergePolygons&&i()&&i(),n.notifyAfterEditExit?t[RP]=function(){return o_(t,"edit")}:o_(t,"edit")}}),u});return i}var TP=q(function(t){var e,n;e=Math,(n=function(t,e){var n=this.convertLatLngs(t);this.points=n.points,this.maxDistance=isFinite(e)?e:n.maxDistance+1}).prototype={points:[],maxDistance:0,convertLatLngs:function(t){var e=0;return{points:t.map(function(n,i){if(n.x=n.lng,n.y=this.lat2y(n),t[i-1]){var r=this.distanceTo(n,t[i-1]);r>e&&(e=r)}return n}.bind(this)),maxDistance:e}},distanceTo:function(t,n){var i=e.PI/180,r=(n.lat-t.lat)*i,o=(n.lng-t.lng)*i,s=t.lat*i,a=n.lat*i,u=e.sin(r/2),l=e.sin(o/2),h=u*u+l*l*e.cos(s)*e.cos(a);return 12756274*e.atan2(e.sqrt(h),e.sqrt(1-h))},getLatLngs:function(){if(this.length<=3)return this.points;var t=this.points.slice().sort(function(t,e){return t.y-e.y}),e=[],n=t[0],i=n,r={x:i.x,y:i.y-1};e.push(n);for(var o,s=0,a=function(t,e){return this.getAngle(i,r,e)-this.getAngle(i,r,t)}.bind(this);;){s++;for(var u=this.points.slice().sort(a),l=0,h=u.length;h>l;l++)if(this.distanceTo(i,u[l])<this.maxDistance&&!this.isIntersecting(e,u[l])){o=u[l];break}if(!o)return this.points;if(o===i)return this.points;if(e.push(o),o===n)return e;if(r=i,i=o,o=void 0,s>1e3)return this.points}},isIntersecting:function(t,e){for(var n=1,i=t.length-1;i>n;n++)if(this.intersect(t[n-1],t[n],t[i],e))return!0;return!1},intersect:function(t,e,n,i){return!(t.x===n.x&&t.y===n.y||e.x===i.x&&e.y===i.y||t.x===i.x&&t.y===i.y||e.x===n.x&&e.y===n.y)&&this.ccw(t,e,n)*this.ccw(t,e,i)<=0&&this.ccw(n,i,t)*this.ccw(n,i,e)<=0},lat2y:function(t){return 180/e.PI*e.log(e.tan(e.PI/4+t.lat*(e.PI/180)/2))},ccw:function(t,e,n){var i=1e-13,r=e.x-t.x,o=e.y-t.y,s=n.x-t.x,a=n.y-t.y,u=r*a-o*s;return u>i?1:-i>u?-1:-i>r*s||-i>o*a?-1:s*s+a*a+i>r*r+o*o?1:0},getAngle:function(t,n,i){if(i.x===t.x&&i.y===t.y)return-9e3;if(i.x===n.x&&i.y===n.y)return-360;var r,o=t.x-n.x,s=t.y-n.y,a=i.x-t.x,u=i.y-t.y,l=o*u-a*s,h=o*a+s*u;return 0===h?(l>0&&(r=90),0>l&&(r=-90)):(r=180*e.atan(l/h)/e.PI,0>h&&(l>=0&&(r+=180),0>l&&(r-=180))),360===r&&(r=0),180-r}},t.exports?t.exports=n:window.ConcaveHull=n}),SP=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:AP,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=OP.get(t).size===n.maximumPolygons,o=!i&&n.concavePolygon?function(t,e){return new TP([].concat(d(e),[e[0]])).getLatLngs()}(0,e):e,s=r?[]:t.simplifyPolygon(t,o,n).map(function(e){var i=new _v(e,f(f(f({},AP),n),{},{className:"leaflet-polygon"})).addTo(t);return i[kP]=LP(t,i,n),gv.disableClickPropagation(i),i.off("click"),i.on("click",CP(t,i,n)),i});if(s.forEach(function(e){return OP.get(t).add(e)}),!r&&!i&&OP.get(t).size>1&&n.mergePolygons){var a=EP(t,Array.from(OP.get(t)),n);return a.forEach(function(e){return OP.get(t).add(e)}),a}return s},IP=function(t,e){t.removeLayer(e),kP in e&&e[kP].map(function(e){return t.removeLayer(e)}),OP.get(t).delete(e)},CP=function(t,e,n){return function(i){var r=t.mouseEventToContainerPoint("originalEvent"in i?i.originalEvent:i),o=e.getLatLngs()[0].map(function(e){return t.latLngToContainerPoint(e)}),s=o.reduce(function(t,e,n){var i=e,s=o[n+1]||o[0],a=Pv.pointToSegmentDistance(r,i,s);return a<t.lowestDistance?{lowestDistance:a,startPoint:i,endPoint:s}:t},{lowestDistance:1/0,startPoint:new vv,endPoint:new vv}),a=s.startPoint,u=s.endPoint,l=s.lowestDistance,h=t[NP],c=Boolean(4&h),f=Boolean(8&h),p=function(){return IP(t,e)},v=function(){return function(t,e,n,i){var r=i.parts,o=i.newPoint,s=i.startPoint,a=i.endPoint,u=r.reduce(function(e,n,i){var u=r[i+1]||r[0];return[].concat(d(e),n===s&&u===a?[t.containerPointToLatLng(n),t.containerPointToLatLng(o)]:[t.containerPointToLatLng(n)])},[]);e.setLatLngs(u),e[kP].map(function(e){return t.removeLayer(e)}),e[kP]=LP(t,e,n)}(t,e,n,{parts:o,newPoint:r,startPoint:a,endPoint:u})};switch(!0){case Boolean(4&h&&8&h):l>n.elbowDistance?p():v();break;case c:p();break;case f:v()}(c||f)&&o_(t,c?"remove":"append")}};pv();var OP=new Qg,AP={mode:i_,smoothFactor:.3,elbowDistance:10,simplifyFactor:1.1,mergePolygons:!0,concavePolygon:!0,maximumPolygons:1/0,notifyAfterEditExit:!1,leaveModeAfterCreate:!1,strokeWidth:2},MP=Yy("freedraw/instance"),NP=Yy("freedraw/modes"),RP=Yy("freedraw/notify-deferred"),kP=Yy("freedraw/edges"),BP=Yy("freedraw/cancel"),DP=function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AP;return i(this,e),(t=n(this,e)).options=f(f({},AP),r),t}return h(e,xv),o(e,[{key:"onAdd",value:function(t){this.map=t,t[BP]=function(){},t[MP]=this,t[RP]=function(){},t.simplifyPolygon=bP,OP.set(t,new Fg),r_(t,this.options.mode,this.options);var e,n=this.svg=(e=t._container,"string"==typeof e?new rm([[document.querySelector(e)]],[document.documentElement]):new rm([[e]],im)).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){OP.delete(t),this.svg.remove(),delete t[BP],delete t[MP],delete t.simplifyPolygon}},{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{concavePolygon:!1},n=SP(this.map,t,f(f({},this.options),e));return o_(this.map,"create"),n}},{key:"remove",value:function(t){var n,i,r,o,s;t?IP(this.map,t):(n=e,i="remove",r=this,s=u(l(1&(o=3)?n.prototype:n),i,r),2&o&&"function"==typeof s?function(t){return s.apply(r,t)}:s)([]),o_(this.map,"remove")}},{key:"clear",value:function(){var t;t=this.map,Array.from(OP.get(t).values()).forEach(function(e){return IP(t,e)}),o_(this.map,"clear")}},{key:"mode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"number"==typeof t&&r_(this.map,t,this.options),this.map[NP]}},{key:"size",value:function(){return OP.get(this.map).size}},{key:"all",value:function(){return Array.from(OP.get(this.map))}},{key:"cancel",value:function(){this.map[BP]()}},{key:"listenForEvents",value:function(t,e,n){var i=this;t.on("mousedown touchstart",function(r){if(t[NP]&t_){var o=new Fg,s=i.createPath(e,t.latLngToContainerPoint(r.latlng),n.strokeWidth),a=function(e){var n=t.mouseEventToContainerPoint(e.originalEvent);o.add(t.containerPointToLatLng(n)),s(new vv(n.x,n.y))};t.on("mousemove touchmove",a);var u=function(r){var s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t[BP]=function(){},t.off("mouseup",u),t.off("mousemove",a),"body"in document&&document.body.removeEventListener("mouseleave",u),e.selectAll("*").remove(),s&&(o.size&&SP(t,Array.from(o),n),o_(t,"create"),n.leaveModeAfterCreate&&i.mode(i.mode()^t_))};t.on("mouseup touchend",u),"body"in document&&document.body.addEventListener("mouseleave",u),t[BP]=function(){return u({},!1)}}})}},{key:"createPath",value:function(t,e,n){var i=e,r=function(){var t=pm,e=dm,n=hm(!0),i=null,r=fm,o=null;function s(s){var a,u,l,h=s.length,c=!1;for(null==i&&(o=r(l=lm())),a=0;a<=h;++a)!(a<h&&n(u=s[a],a,s))===c&&((c=!c)?o.lineStart():o.lineEnd()),c&&o.point(+t(u,a,s),+e(u,a,s));if(l)return o=null,l+""||null}return s.x=function(e){return arguments.length?(t="function"==typeof e?e:hm(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:hm(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:hm(!!t),s):n},s.curve=function(t){return arguments.length?(r=t,null!=i&&(o=r(i)),s):r},s.context=function(t){return arguments.length?(null==t?i=o=null:o=r(i=t),s):i},s}().curve(xm).x(function(t){return t.x}).y(function(t){return t.y});return function(e){var o=[i,e];i=e,t.append("path").classed("leaflet-line",!0).attr("d",r(o)).attr("fill","none").attr("stroke","black").attr("stroke-width",n)}}}])}();return"undefined"!=typeof window&&(window.FreeDraw=DP,DP.CREATE=t_,DP.EDIT=e_,DP.DELETE=4,DP.APPEND=8,DP.EDIT_APPEND=n_,DP.NONE=0,DP.ALL=i_),t.ALL=i_,t.APPEND=8,t.CREATE=t_,t.DELETE=4,t.EDIT=e_,t.EDIT_APPEND=n_,t.NONE=0,t.default=DP,t.defaultOptions=AP,t.edgesKey=kP,t.freeDraw=function(t){return new DP(t)},t.instanceKey=MP,t.modesKey=NP,t.notifyDeferredKey=RP,t.polygons=OP,t}({});
//# sourceMappingURL=leaflet-freedraw.iife.js.map