vendor: 5,579 bytes, line 1
1(globalThis.webpackChunkakk2blocks=globalThis.webpackChunkakk2blocks||[]).push([[96],{38059(t,n,e){"use strict";e.r(n),e.d(n,{create:()=>_t,creator:()=>h,local:()=>yt,matcher:()=>d,namespace:()=>s,namespaces:()=>r,pointer:()=>wt,pointers:()=>Et,select:()=>gt,selectAll:()=>xt,selection:()=>dt,selector:()=>l,selectorAll:()=>p,style:()=>T,window:()=>I});var i="http://www.w3.org/1999/xhtml";const r={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function s(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.hasOwnProperty(n)?{space:r[n],local:t}:t}function a(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===i&&n.documentElement.namespaceURI===i?n.createElement(t):n.createElementNS(e,t)}}function o(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function h(t){var n=s(t);return(n.local?o:a)(n)}function u(){}function l(t){return null==t?u:function(){return this.querySelector(t)}}function c(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function f(){return[]}function p(t){return null==t?f:function(){return this.querySelectorAll(t)}}function d(t){return function(){return this.matches(t)}}function g(t){return function(n){return n.matches(t)}}var _=Array.prototype.find;function m(){return this.firstElementChild}var y=Array.prototype.filter;function v(){return this.children}function M(t){return new Array(t.length)}function w(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function E(t,n,e,i,r,s){for(var a,o=0,h=n.length,u=s.length;o<u;++o)(a=n[o])?(a.__data__=s[o],i[o]=a):e[o]=new w(t,s[o]);for(;o<h;++o)(a=n[o])&&(r[o]=a)}function x(t,n,e,i,r,s,a){var o,h,u,l=new Map,c=n.length,f=s.length,p=new Array(c);for(o=0;o<c;++o)(h=n[o])&&(p[o]=u=a.call(h,h.__data__,o,n)+"",l.has(u)?r[o]=h:l.set(u,h));for(o=0;o<f;++o)u=a.call(t,s[o],o,s)+"",(h=l.get(u))?(i[o]=h,h.__data__=s[o],l.delete(u)):e[o]=new w(t,s[o]);for(o=0;o<c;++o)(h=n[o])&&l.get(p[o])===h&&(r[o]=h)}function S(t){return t.__data__}function b(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function P(t){return function(){this.removeAttribute(t)}}function G(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N(t,n){return function(){this.setAttribute(t,n)}}function A(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function k(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function C(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function I(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function j(t){return function(){this.style.removeProperty(t)}}function O(t,n,e){return function(){this.style.setProperty(t,n,e)}}function R(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function T(t,n){return t.style.getPropertyValue(n)||I(t).getComputedStyle(t,null).getPropertyValue(n)}function q(t){return function(){delete this[t]}}function L(t,n){return function(){this[t]=n}}function z(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function F(t){return t.trim().split(/^|\s+/)}function D(t){return t.classList||new B(t)}function B(t){this._node=t,this._names=F(t.getAttribute("class")||"")}function U(t,n){for(var e=D(t),i=-1,r=n.length;++i<r;)e.add(n[i])}function W(t,n){for(var e=D(t),i=-1,r=n.length;++i<r;)e.remove(n[i])}function H(t){return function(){U(this,t)}}function X(t){return function(){W(this,t)}}function V(t,n){return function(){(n.apply(this,arguments)?U:W)(this,t)}}function Q(){this.textContent=""}function K(t){return function(){this.textContent=t}}function Y(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Z(){this.innerHTML=""}function J(t){return function(){this.innerHTML=t}}function $(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function tt(){this.nextSibling&&this.parentNode.appendChild(this)}function nt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function et(){return null}function it(){var t=this.parentNode;t&&t.removeChild(this)}function rt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function st(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function at(t){return function(){var n=this.__on;if(n){for(var e,i=0,r=-1,s=n.length;i<s;++i)e=n[i],t.type&&e.type!==t.type||e.name!==t.name?n[++r]=e:this.removeEventListener(e.type,e.listener,e.options);++r?n.length=r:delete this.__on}}}function ot(t,n,e){return function(){var i,r=this.__on,s=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(r)for(var a=0,o=r.length;a<o;++a)if((i=r[a]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=e),void(i.value=n);this.addEventListener(t.type,s,e),i={type:t.type,name:t.name,value:n,listener:s,options:e},r?r.push(i):this.__on=[i]}}function ht(t,n,e){var i=I(t),r=i.CustomEvent;"function"==typeof r?r=new r(n,e):(r=i.document.createEvent("Event"),e?(r.initEvent(n,e.bubbles,e.cancelable),r.detail=e.detail):r.initEvent(n,!1,!1)),t.dis
vendor: 4,805 bytes, line 1
1patchEvent(r)}function ut(t,n){return function(){return ht(this,t,n)}}function lt(t,n){return function(){return ht(this,t,n.apply(this,arguments))}}w.prototype={constructor:w,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},B.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ct=[null];function ft(t,n){this._groups=t,this._parents=n}function pt(){return new ft([[document.documentElement]],ct)}ft.prototype=pt.prototype={constructor:ft,select:function(t){"function"!=typeof t&&(t=l(t));for(var n=this._groups,e=n.length,i=new Array(e),r=0;r<e;++r)for(var s,a,o=n[r],h=o.length,u=i[r]=new Array(h),c=0;c<h;++c)(s=o[c])&&(a=t.call(s,s.__data__,c,o))&&("__data__"in s&&(a.__data__=s.__data__),u[c]=a);return new ft(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);return null==n?[]:c(n)}}(t):p(t);for(var n=this._groups,e=n.length,i=[],r=[],s=0;s<e;++s)for(var a,o=n[s],h=o.length,u=0;u<h;++u)(a=o[u])&&(i.push(t.call(a,a.__data__,u,o)),r.push(a));return new ft(i,r)},selectChild:function(t){return this.select(null==t?m:function(t){return function(){return _.call(this.children,t)}}("function"==typeof t?t:g(t)))},selectChildren:function(t){return this.selectAll(null==t?v:function(t){return function(){return y.call(this.children,t)}}("function"==typeof t?t:g(t)))},filter:function(t){"function"!=typeof t&&(t=d(t));for(var n=this._groups,e=n.length,i=new Array(e),r=0;r<e;++r)for(var s,a=n[r],o=a.length,h=i[r]=[],u=0;u<o;++u)(s=a[u])&&t.call(s,s.__data__,u,a)&&h.push(s);return new ft(i,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,S);var e,i=n?x:E,r=this._parents,s=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var a=s.length,o=new Array(a),h=new Array(a),u=new Array(a),l=0;l<a;++l){var f=r[l],p=s[l],d=p.length,g=c(t.call(f,f&&f.__data__,l,r)),_=g.length,m=h[l]=new Array(_),y=o[l]=new Array(_);i(f,p,m,y,u[l]=new Array(d),g,n);for(var v,M,w=0,b=0;w<_;++w)if(v=m[w]){for(w>=b&&(b=w+1);!(M=y[b])&&++b<_;);v._next=M||null}}return(o=new ft(o,r))._enter=h,o._exit=u,o},enter:function(){return new ft(this._enter||this._groups.map(M),this._parents)},exit:function(){return new ft(this._exit||this._groups.map(M),this._parents)},join:function(t,n,e){var i=this.enter(),r=this,s=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=n&&(r=n(r)),null==e?s.remove():e(s),i&&r?i.merge(r).order():r},merge:function(t){if(!(t instanceof ft))throw new Error("invalid merge");for(var n=this._groups,e=t._groups,i=n.length,r=e.length,s=Math.min(i,r),a=new Array(i),o=0;o<s;++o)for(var h,u=n[o],l=e[o],c=u.length,f=a[o]=new Array(c),p=0;p<c;++p)(h=u[p]||l[p])&&(f[p]=h);for(;o<i;++o)a[o]=n[o];return new ft(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var i,r=t[n],s=r.length-1,a=r[s];--s>=0;)(i=r[s])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=b);for(var e=this._groups,i=e.length,r=new Array(i),s=0;s<i;++s){for(var a,o=e[s],h=o.length,u=r[s]=new Array(h),l=0;l<h;++l)(a=o[l])&&(u[l]=a);u.sort(n)}return new ft(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],r=0,s=i.length;r<s;++r){var a=i[r];if(a)return a}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,i=n.length;e<i;++e)for(var r,s=n[e],a=0,o=s.length;a<o;++a)(r=s[a])&&t.call(r,r.__data__,a,s);return this},attr:function(t,n){var e=s(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?G:P:"function"==typeof n?e.local?C:k:e.local?A:N)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?j:"function"==typeof n?R:O)(t,n,null==e?"":e)):T(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?q:"function"==typeof n?z:L)(t,n)):this.node()[t]},classed:function(t,n){var e=F(t+"");
vendor: 9,114 bytes, line 1
1if(arguments.length<2){for(var i=D(this.node()),r=-1,s=e.length;++r<s;)if(!i.contains(e[r]))return!1;return!0}return this.each(("function"==typeof n?V:n?H:X)(e,n))},text:function(t){return arguments.length?this.each(null==t?Q:("function"==typeof t?Y:K)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Z:("function"==typeof t?$:J)(t)):this.node().innerHTML},raise:function(){return this.each(tt)},lower:function(){return this.each(nt)},append:function(t){var n="function"==typeof t?t:h(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:h(t),i=null==n?et:"function"==typeof n?n:l(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(it)},clone:function(t){return this.select(t?st:rt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var i,r,s=function(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),a=s.length;if(!(arguments.length<2)){for(o=n?ot:at,i=0;i<a;++i)this.each(o(s[i],n,e));return this}var o=this.node().__on;if(o)for(var h,u=0,l=o.length;u<l;++u)for(i=0,h=o[u];i<a;++i)if((r=s[i]).type===h.type&&r.name===h.name)return h.value},dispatch:function(t,n){return this.each(("function"==typeof n?lt:ut)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i,r=t[n],s=0,a=r.length;s<a;++s)(i=r[s])&&(yield i)}};const dt=pt;function gt(t){return"string"==typeof t?new ft([[document.querySelector(t)]],[document.documentElement]):new ft([[t]],ct)}function _t(t){return gt(h(t).call(document.documentElement))}var mt=0;function yt(){return new vt}function vt(){this._="@"+(++mt).toString(36)}function Mt(t){let n;for(;n=t.sourceEvent;)t=n;return t}function wt(t,n){if(t=Mt(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop]}}return[t.pageX,t.pageY]}function Et(t,n){return t.target&&(t=Mt(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,t=>wt(t,n))}function xt(t){return"string"==typeof t?new ft([document.querySelectorAll(t)],[document.documentElement]):new ft([null==t?[]:c(t)],ct)}vt.prototype=yt.prototype={constructor:vt,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},42461(t,n,e){"use strict";e.r(n),e.d(n,{zoom:()=>Jn,zoomIdentity:()=>Bn,zoomTransform:()=>Un});var i={value:()=>{}};function r(){for(var t,n=0,e=arguments.length,i={};n<e;++n){if(!(t=arguments[n]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new s(i)}function s(t){this._=t}function a(t,n){for(var e,i=0,r=t.length;i<r;++i)if((e=t[i]).name===n)return e.value}function o(t,n,e){for(var r=0,s=t.length;r<s;++r)if(t[r].name===n){t[r]=i,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}s.prototype=r.prototype={constructor:s,on:function(t,n){var e,i,r=this._,s=(i=r,(t+"").trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");if(e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})),h=-1,u=s.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++h<u;)if(e=(t=s[h]).type)r[e]=o(r[e],t.name,n);else if(null==n)for(e in r)r[e]=o(r[e],t.name,null);return this}for(;++h<u;)if((e=(t=s[h]).type)&&(e=a(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new s(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,i,r=new Array(e),s=0;s<e;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,e=(i=this._[t]).length;s<e;++s)i[s].value.apply(n,r)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,s=i.length;r<s;++r)i[r].value.apply(n,e)}};const h=r;var u=e(38059);function l(t){t.preventDefault(),t.stopImmediatePropagation()}function c(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function f(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}function p(){}var d=.7,g=1/d,_="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",v=/^#([0-9a-f]{3,8})$/,M=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),w=new RegExp("^rgb\\("+[y,y,y]+"\\)$"),E=new RegExp("^rgba\\("+[_,_,_,m]+"\\)$"),x=new RegExp("^rgba\\("+[y,y,y,m]+"\\)$"),S=new RegExp("^hsl\\("+[m,y,y]+"\\)$"),b=new RegExp("^hsla\\("+[m,y,y,m]+"\\)$"),P={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function G(){return this.rgb().formatHex()}function N(){return this.rgb().formatRgb()}function A(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=v.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?k(n):3===e?new O(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?C(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?C(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=M.exec(t))?new O(n[1],n[2],n[3],1):(n=w.exec(t))?new O(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=E.exec(t))?C(n[1],n[2],n[3],n[4]):(n=x.exec(t))?C(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=S.exec(t))?L(n[1],n[2]/100,n[3]/100,1):(n=b.exec(t))?L(n[1],n[2]/100,n[3]/100,n[4]):P.hasOwnProperty(t)?k(P[t]):"transparent"===t?new O(NaN,NaN,NaN,0):null}function k(t){return new O(t>>16&255,t>>8&255,255&t,1)}function C(t,n,e,i){return i<=0&&(t=n=e=NaN),new O(t,n,e,i)}function I(t){return t instanceof p||(t=A(t)),t?new O((t=t.rgb()).r,t.g,t.b,t.opacity):new O}function j(t,n,e,i){return 1===arguments.length?I(t):new O(t,n,e,null==i?1:i)}function O(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function R(){return"#"+q(this.r)+q(this.g)+q(this.b)}function T(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||
vendor: 2,888 bytes, line 1
10))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function q(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function L(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new D(t,n,e,i)}function z(t){if(t instanceof D)return new D(t.h,t.s,t.l,t.opacity);if(t instanceof p||(t=A(t)),!t)return new D;if(t instanceof D)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),s=Math.max(n,e,i),a=NaN,o=s-r,h=(s+r)/2;return o?(a=n===s?(e-i)/o+6*(e<i):e===s?(i-n)/o+2:(n-e)/o+4,o/=h<.5?s+r:2-s-r,a*=60):o=h>0&&h<1?0:a,new D(a,o,h,t.opacity)}function F(t,n,e,i){return 1===arguments.length?z(t):new D(t,n,e,null==i?1:i)}function D(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function B(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}c(p,A,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:G,formatHex:G,formatHsl:function(){return z(this).formatHsl()},formatRgb:N,toString:N}),c(O,j,f(p,{brighter:function(t){return t=null==t?g:Math.pow(g,t),new O(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new O(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:R,formatHex:R,formatRgb:T,toString:T})),c(D,F,f(p,{brighter:function(t){return t=null==t?g:Math.pow(g,t),new D(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new D(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new O(B(t>=240?t-240:t+120,r,i),B(t,r,i),B(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const U=Math.PI/180,W=180/Math.PI,H=.96422,X=.82521,V=4/29,Q=6/29,K=3*Q*Q,Y=Q*Q*Q;function Z(t){if(t instanceof J)return new J(t.l,t.a,t.b,t.opacity);if(t instanceof rt)return st(t);t instanceof O||(t=I(t));var n,e,i=et(t.r),r=et(t.g),s=et(t.b),a=$((.2225045*i+.7168786*r+.0606169*s)/1);return i===r&&r===s?n=e=a:(n=$((.4360747*i+.3850649*r+.1430804*s)/H),e=$((.0139322*i+.0971045*r+.7141733*s)/X)),new J(116*a-16,500*(n-a),200*(a-e),t.opacity)}function J(t,n,e,i){this.l=+t,this.a=+n,this.b=+e,this.opacity=+i}function $(t){return t>Y?Math.pow(t,1/3):t/K+V}function tt(t){return t>Q?t*t*t:K*(t-V)}
vendor: 5,358 bytes, line 1
1function nt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function et(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function it(t,n,e,i){return 1===arguments.length?function(t){if(t instanceof rt)return new rt(t.h,t.c,t.l,t.opacity);if(t instanceof J||(t=Z(t)),0===t.a&&0===t.b)return new rt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*W;return new rt(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new rt(t,n,e,null==i?1:i)}function rt(t,n,e,i){this.h=+t,this.c=+n,this.l=+e,this.opacity=+i}function st(t){if(isNaN(t.h))return new J(t.l,0,0,t.opacity);var n=t.h*U;return new J(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}c(J,function(t,n,e,i){return 1===arguments.length?Z(t):new J(t,n,e,null==i?1:i)},f(p,{brighter:function(t){return new J(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new J(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new O(nt(3.1338561*(n=H*tt(n))-1.6168667*(t=1*tt(t))-.4906146*(e=X*tt(e))),nt(-.9787684*n+1.9161415*t+.033454*e),nt(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),c(rt,it,f(p,{brighter:function(t){return new rt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new rt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return st(this).rgb()}}));var at=-.14861,ot=1.78277,ht=-.29227,ut=-.90649,lt=1.97294,ct=lt*ut,ft=lt*ot,pt=ot*ht-ut*at;function dt(t,n,e,i){return 1===arguments.length?function(t){if(t instanceof gt)return new gt(t.h,t.s,t.l,t.opacity);t instanceof O||(t=I(t));var n=t.r/255,e=t.g/255,i=t.b/255,r=(pt*i+ct*n-ft*e)/(pt+ct-ft),s=i-r,a=(lt*(e-r)-ht*s)/ut,o=Math.sqrt(a*a+s*s)/(lt*r*(1-r)),h=o?Math.atan2(a,s)*W-120:NaN;return new gt(h<0?h+360:h,o,r,t.opacity)}(t):new gt(t,n,e,null==i?1:i)}function gt(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function _t(t,n,e,i,r){var s=t*t,a=s*t;return((1-3*t+3*s-a)*n+(4-6*s+3*a)*e+(1+3*t+3*s-3*a)*i+a*r)/6}c(gt,dt,f(p,{brighter:function(t){return t=null==t?g:Math.pow(g,t),new gt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new gt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*U,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(t),r=Math.sin(t);return new O(255*(n+e*(at*i+ot*r)),255*(n+e*(ht*i+ut*r)),255*(n+e*(lt*i)),this.opacity)}}));const mt=t=>()=>t;function yt(t,n){return function(e){return t+e*n}}function vt(t,n){var e=n-t;return e?yt(t,e>180||e<-180?e-360*Math.round(e/360):e):mt(isNaN(t)?n:t)}function Mt(t,n){var e=n-t;return e?yt(t,e):mt(isNaN(t)?n:t)}const wt=function t(n){var e=function(t){return 1===(t=+t)?Mt:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):mt(isNaN(n)?e:n)}}(n);function i(t,n){var i=e((t=j(t)).r,(n=j(n)).r),r=e(t.g,n.g),s=e(t.b,n.b),a=Mt(t.opacity,n.opacity);return function(n){return t.r=i(n),t.g=r(n),t.b=s(n),t.opacity=a(n),t+""}}return i.gamma=t,i}(1);function Et(t){return function(n){var e,i,r=n.length,s=new Array(r),a=new Array(r),o=new Array(r);for(e=0;e<r;++e)i=j(n[e]),s[e]=i.r||0,a[e]=i.g||0,o[e]=i.b||0;return s=t(s),a=t(a),o=t(o),i.opacity=1,function(t){return i.r=s(t),i.g=a(t),i.b=o(t),i+""}}}function xt(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}Et(function(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),r=t[i],s=t[i+1],a=i>0?t[i-1]:2*r-s,o=i<n-1?t[i+2]:2*s-r;return _t((e-i/n)*n,a,r,s,o)}}),Et(function(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n),r=t[(i+n-1)%n],s=t[i%n],a=t[(i+1)%n],o=t[(i+2)%n];return _t((e-i/n)*n,r,s,a,o)}});var St=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bt=new RegExp(St.source,"g");function Pt(t,n){var e,i,r,s=St.lastIndex=bt.lastIndex=0,a=-1,o=[],h=[];for(t+="",n+="";(e=St.exec(t))&&(i=bt.exec(n));)(r=i.index)>s&&(r=n.slice(s,r),o[a]?o[a]+=r:o[++a]=r),(e=e[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,h.push({i:a,x:xt(e,i)})),s=bt.lastIndex;return s<n.length&&(r=n.slice(s),o[a]?o[a]+=r:o[++a]=r),o.length<2?h[0]?function(t){return function(n){return t(n)+""}}(h[0].x):function(t){return function(){return t}}(n):(n=h.length,function(t){for(var e,i=0;i<n;++i)o[(e=h[i]).i]=e.x(t);return o.join("")})}var Gt,Nt=180/Math.PI,At={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kt(t,n,e,i,r,s){var a,o,h;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(h=t*e+n*i)&&(e-=t*h,i-=n*h),(o=Math.sqrt(e*e+i*i))&&(e/=o,i/=o,h/=o),t*i<n*e&&(t=-t,n=-n,h=-h,a=-a),{translateX:r,translateY:s,rotate:Math.atan2(n,t)*Nt,skewX:Math.atan(h)*Nt,scaleX:a,scaleY:o}}function Ct(t,n,e,i){function r(t){return t.length?t.pop()+" ":""}return function(s,a){var o=[],h=[];return s=t(s),a=t(a),function(t,i,r,s,a,o){if(t!==r||i!==s){var h=a.push("translate(",null,n,null,e);o.push({i:h-4,x:xt(t,r)},{i:h-2,x:xt(i,s)})}else(r||s)&&a.push("translate("+r+n+s+e)}(s.translateX,s.translateY,a.translateX,a.translateY,o,h),function(t,n,e,s){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),s.push({i:e.push(r(e)+"rotate(",null,i)-2,x:xt(t,n)})):n&&e.push(r(e)+"rotate("+n+i)}(s.rotate,a.rotate,o,h),function(t,n,e,s){t!==n?s.push({i:e.push(r(e)+"skewX(",
vendor: 4,324 bytes, line 1
1null,i)-2,x:xt(t,n)}):n&&e.push(r(e)+"skewX("+n+i)}(s.skewX,a.skewX,o,h),function(t,n,e,i,s,a){if(t!==e||n!==i){var o=s.push(r(s)+"scale(",null,",",null,")");a.push({i:o-4,x:xt(t,e)},{i:o-2,x:xt(n,i)})}else 1===e&&1===i||s.push(r(s)+"scale("+e+","+i+")")}(s.scaleX,s.scaleY,a.scaleX,a.scaleY,o,h),s=a=null,function(t){for(var n,e=-1,i=h.length;++e<i;)o[(n=h[e]).i]=n.x(t);return o.join("")}}}var It=Ct(function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?At:kt(n.a,n.b,n.c,n.d,n.e,n.f)},"px, ","px)","deg)"),jt=Ct(function(t){return null==t?At:(Gt||(Gt=document.createElementNS("http://www.w3.org/2000/svg","g")),Gt.setAttribute("transform",t),(t=Gt.transform.baseVal.consolidate())?kt((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):At)},", ",")",")");function Ot(t){return((t=Math.exp(t))+1/t)/2}const Rt=function t(n,e,i){function r(t,r){var s,a,o=t[0],h=t[1],u=t[2],l=r[0],c=r[1],f=r[2],p=l-o,d=c-h,g=p*p+d*d;if(g<1e-12)a=Math.log(f/u)/n,s=function(t){return[o+t*p,h+t*d,u*Math.exp(n*t*a)]};else{var _=Math.sqrt(g),m=(f*f-u*u+i*g)/(2*u*e*_),y=(f*f-u*u-i*g)/(2*f*e*_),v=Math.log(Math.sqrt(m*m+1)-m),M=Math.log(Math.sqrt(y*y+1)-y);a=(M-v)/n,s=function(t){var i,r=t*a,s=Ot(v),l=u/(e*_)*(s*(i=n*r+v,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[o+l*p,h+l*d,u*s/Ot(n*r+v)]}}return s.duration=1e3*a*n/Math.SQRT2,s}return r.rho=function(n){var e=Math.max(.001,+n),i=e*e;return t(e,i,i*i)},r}(Math.SQRT2,2,4);function Tt(t){return function(n,e){var i=t((n=F(n)).h,(e=F(e)).h),r=Mt(n.s,e.s),s=Mt(n.l,e.l),a=Mt(n.opacity,e.opacity);return function(t){return n.h=i(t),n.s=r(t),n.l=s(t),n.opacity=a(t),n+""}}}function qt(t){return function(n,e){var i=t((n=it(n)).h,(e=it(e)).h),r=Mt(n.c,e.c),s=Mt(n.l,e.l),a=Mt(n.opacity,e.opacity);return function(t){return n.h=i(t),n.c=r(t),n.l=s(t),n.opacity=a(t),n+""}}}function Lt(t){return function n(e){function i(n,i){var r=t((n=dt(n)).h,(i=dt(i)).h),s=Mt(n.s,i.s),a=Mt(n.l,i.l),o=Mt(n.opacity,i.opacity);return function(t){return n.h=r(t),n.s=s(t),n.l=a(Math.pow(t,e)),n.opacity=o(t),n+""}}return e=+e,i.gamma=n,i}(1)}Tt(vt),Tt(Mt),qt(vt),qt(Mt),Lt(vt),Lt(Mt);var zt,Ft,Dt=0,Bt=0,Ut=0,Wt=0,Ht=0,Xt=0,Vt="object"==typeof performance&&performance.now?performance:Date,Qt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Kt(){return Ht||(Qt(Yt),Ht=Vt.now()+Xt)}function Yt(){Ht=0}function Zt(){this._call=this._time=this._next=null}function Jt(t,n,e){var i=new Zt;return i.restart(t,n,e),i}function $t(){Ht=(Wt=Vt.now())+Xt,Dt=Bt=0;try{!function(){Kt(),++Dt;for(var t,n=zt;n;)(t=Ht-n._time)>=0&&n._call.call(null,t),n=n._next;--Dt}()}finally{Dt=0,function(){for(var t,n,e=zt,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:zt=n);Ft=t,nn(i)}(),Ht=0}}function tn(){var t=Vt.now(),n=t-Wt;n>1e3&&(Xt-=n,Wt=t)}function nn(t){Dt||(Bt&&(Bt=clearTimeout(Bt)),t-Ht>24?(t<1/0&&(Bt=setTimeout($t,t-Vt.now()-Xt)),Ut&&(Ut=clearInterval(Ut))):(Ut||(Wt=Vt.now(),Ut=setInterval(tn,1e3)),Dt=1,Qt($t)))}function en(t,n,e){var i=new Zt;return n=null==n?0:+n,i.restart(e=>{i.stop(),t(e+n)},n,e),i}Zt.prototype=Jt.prototype={constructor:Zt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Kt():+e)+(null==n?0:+n),this._next||Ft===this||(Ft?Ft._next=this:zt=this,Ft=this),this._call=t,this._time=e,nn()},stop:function(){this._call&&(this._call=null,this._time=1/0,nn())}};var rn=h("start","end","cancel","interrupt"),sn=[];function an(t,n,e,i,r,s){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var i,r=t.__transition;function s(h){var u,l,c,f;if(1!==e.state)return o();for(u in r)if((f=r[u]).name===e.name){if(3===f.state)return en(s);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[u]):+u<n&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[u])}if(en(function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(h))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,i=new Array(c=e.tween.length),u=0,l=-1;u<c;++u)(f=e.tween[u].value.call(t,t.__data__,e.index,e.group))&&(i[
vendor: 5,608 bytes, line 1
1++l]=f);i.length=l+1}}function a(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(o),e.state=5,1),s=-1,a=i.length;++s<a;)i[s].call(t,r);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),o())}function o(){for(var i in e.state=6,e.timer.stop(),delete r[n],r)return;delete t.__transition}r[n]=e,e.timer=Jt(function(t){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=t&&s(t-e.delay)},0,e.time)}(t,e,{name:n,index:i,group:r,on:rn,tween:sn,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function on(t,n){var e=un(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function hn(t,n){var e=un(t,n);if(e.state>3)throw new Error("too late; already running");return e}function un(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function ln(t,n){var e,i,r,s=t.__transition,a=!0;if(s){for(r in n=null==n?null:n+"",s)(e=s[r]).name===n?(i=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(i?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete s[r]):a=!1;a&&delete t.__transition}}function cn(t,n){var e,i;return function(){var r=hn(this,t),s=r.tween;if(s!==e)for(var a=0,o=(i=e=s).length;a<o;++a)if(i[a].name===n){(i=i.slice()).splice(a,1);break}r.tween=i}}function fn(t,n,e){var i,r;if("function"!=typeof e)throw new Error;return function(){var s=hn(this,t),a=s.tween;if(a!==i){r=(i=a).slice();for(var o={name:n,value:e},h=0,u=r.length;h<u;++h)if(r[h].name===n){r[h]=o;break}h===u&&r.push(o)}s.tween=r}}function pn(t,n,e){var i=t._id;return t.each(function(){var t=hn(this,i);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return un(t,i).value[n]}}function dn(t,n){var e;return("number"==typeof n?xt:n instanceof A?wt:(e=A(n))?(n=e,wt):Pt)(t,n)}function gn(t){return function(){this.removeAttribute(t)}}function mn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function yn(t,n,e){var i,r,s=e+"";return function(){var a=this.getAttribute(t);return a===s?null:a===i?r:r=n(i=a,e)}}function vn(t,n,e){var i,r,s=e+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===s?null:a===i?r:r=n(i=a,e)}}function Mn(t,n,e){var i,r,s;return function(){var a,o,h=e(this);if(null!=h)return(a=this.getAttribute(t))===(o=h+"")?null:a===i&&o===r?s:(r=o,s=n(i=a,h));this.removeAttribute(t)}}function wn(t,n,e){var i,r,s;return function(){var a,o,h=e(this);if(null!=h)return(a=this.getAttributeNS(t.space,t.local))===(o=h+"")?null:a===i&&o===r?s:(r=o,s=n(i=a,h));this.removeAttributeNS(t.space,t.local)}}function En(t,n){var e,i;function r(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,r)),e}return r._value=n,r}function xn(t,n){var e,i;function r(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,r)),e}return r._value=n,r}function Sn(t,n){return function(){on(this,t).delay=+n.apply(this,arguments)}}function bn(t,n){return n=+n,function(){on(this,t).delay=n}}function Pn(t,n){return function(){hn(this,t).duration=+n.apply(this,arguments)}}function Gn(t,n){return n=+n,function(){hn(this,t).duration=n}}var Nn=u.selection.prototype.constructor;function An(t){return function(){this.style.removeProperty(t)}}var kn=0;function Cn(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function In(){return++kn}var jn=u.selection.prototype;function On(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}Cn.prototype=function(t){return(0,u.selection)().transition(t)}.prototype={constructor:Cn,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=(0,u.selector)(t));for(var i=this._groups,r=i.length,s=new Array(r),a=0;a<r;++a)for(var o,h,l=i[a],c=l.length,f=s[a]=new Array(c),p=0;p<c;++p)(o=l[p])&&(h=t.call(o,o.__data__,p,l))&&("__data__"in o&&(h.__data__=o.__data__),f[p]=h,an(f[p],n,e,p,f,un(o,e)));return new Cn(s,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=(0,u.selectorAll)(t));for(var i=this._groups,r=i.length,s=[],a=[],o=0;o<r;++o)for(var h,l=i[o],c=l.length,f=0;f<c;++f)if(h=l[f]){for(var p,d=t.call(h,h.__data__,f,l),g=un(h,e),_=0,m=d.length;_<m;++_)(p=d[_])&&an(p,n,e,_,d,g);s.push(d),a.push(h)}return new Cn(s,a,n,e)},filter:function(t){"function"!=typeof t&&(t=(0,u.matcher)(t));for(var n=this._groups,e=n.length,i=new Array(e),r=0;r<e;++r)for(var s,a=n[r],o=a.length,h=i[r]=[],l=0;l<o;++l)(s=a[l])&&t.call(s,s.__data__,l,a)&&h.push(s);return new Cn(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,i=n.length,r=e.length,s=Math.min(i,r),a=new Array(i),o=0;o<s;++o)for(var h,u=n[o],l=e[o],c=u.length,f=a[o]=new Array(c),p=0;p<c;++p)(h=u[p]||l[p])&&(f[p]=h);for(;o<i;++o)a[o]=n[o];return new Cn(a,this._parents,this._name,this._id)},selection:function(){return new Nn(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=In(),i=this._groups,r=i.length,s=0;s<r;++s)for(var a,o=i[s],h=o.length,u=0;u<h;++u)if(a=o[u]){var l=un(a,n);an(a,t,e,u,o,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Cn(i,this._parents,t,e)},call:jn.call,nodes:jn.nodes,node:jn.node,size:jn.size,empty:jn.empty,each:jn.each,on:function(t,n){var e=this._id;return arguments.length<2?un(this.node(),e).on.on(t):this.each(function(t,n,e){var i,r,s=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>
vendor: 13,962 bytes, line 1
1=0&&(t=t.slice(0,n)),!t||"start"===t})}(n)?on:hn;return function(){var a=s(this,t),o=a.on;o!==i&&(r=(i=o).copy()).on(n,e),a.on=r}}(e,t,n))},attr:function(t,n){var e=(0,u.namespace)(t),i="transform"===e?jt:dn;return this.attrTween(t,"function"==typeof n?(e.local?wn:Mn)(e,i,pn(this,"attr."+t,n)):null==n?(e.local?mn:gn)(e):(e.local?vn:yn)(e,i,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=(0,u.namespace)(t);return this.tween(e,(i.local?En:xn)(i,n))},style:function(t,n,e){var i="transform"==(t+="")?It:dn;return null==n?this.styleTween(t,function(t,n){var e,i,r;return function(){var s=(0,u.style)(this,t),a=(this.style.removeProperty(t),(0,u.style)(this,t));return s===a?null:s===e&&a===i?r:r=n(e=s,i=a)}}(t,i)).on("end.style."+t,An(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var i,r,s;return function(){var a=(0,u.style)(this,t),o=e(this),h=o+"";return null==o&&(this.style.removeProperty(t),h=o=(0,u.style)(this,t)),a===h?null:a===i&&h===r?s:(r=h,s=n(i=a,o))}}(t,i,pn(this,"style."+t,n))).each(function(t,n){var e,i,r,s,a="style."+n,o="end."+a;return function(){var h=hn(this,t),u=h.on,l=null==h.value[a]?s||(s=An(n)):void 0;u===e&&r===l||(i=(e=u).copy()).on(o,r=l),h.on=i}}(this._id,t)):this.styleTween(t,function(t,n,e){var i,r,s=e+"";return function(){var a=(0,u.style)(this,t);return a===s?null:a===i?r:r=n(i=a,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function(t,n,e){var i,r;function s(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return s._value=n,s}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(pn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function i(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&function(t){return function(n){this.textContent=t.call(this,n)}}(i)),n}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var i,r=un(this.node(),e).tween,s=0,a=r.length;s<a;++s)if((i=r[s]).name===t)return i.value;return null}return this.each((null==n?cn:fn)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Sn:bn)(n,t)):un(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Pn:Gn)(n,t)):un(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){hn(this,t).ease=n}}(n,t)):un(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;hn(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,i=e._id,r=e.size();return new Promise(function(s,a){var o={value:a},h={value:function(){0===--r&&s()}};e.each(function(){var e=hn(this,i),r=e.on;r!==t&&((n=(t=r).copy())._.cancel.push(o),n._.interrupt.push(o),n._.end.push(h)),e.on=n}),0===r&&s()})},[Symbol.iterator]:jn[Symbol.iterator]},function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),Math.PI;var Rn=1.70158,Tn=(function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Rn),function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Rn),function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Rn),2*Math.PI),qn=(function t(n,e){var i=Math.asin(1/(n=Math.max(1,n)))*(e/=Tn);function r(t){return n*On(- --t)*Math.sin((i-t)/e)}return r.amplitude=function(n){return t(n,e*Tn)},r.period=function(e){return t(n,e)},r}(1,.3),function t(n,e){var i=Math.asin(1/(n=Math.max(1,n)))*(e/=Tn);function r(t){return 1-n*On(t=+t)*Math.sin((t+i)/e)}return r.amplitude=function(n){return t(n,e*Tn)},r.period=function(e){return t(n,e)},r}(1,.3),function t(n,e){var i=Math.asin(1/(n=Math.max(1,n)))*(e/=Tn);function r(t){return((t=2*t-1)<0?n*On(-t)*Math.sin((i-t)/e):2-n*On(t)*Math.sin((i+t)/e))/2}return r.amplitude=function(n){return t(n,e*Tn)},r.period=function(e){return t(n,e)},r}(1,.3),{time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}});function Ln(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}u.selection.prototype.interrupt=function(t){return this.each(function(){ln(this,t)})},u.selection.prototype.transition=function(t){var n,e;t instanceof Cn?(n=t._id,t=t._name):(n=In(),(e=qn).time=Kt(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,s=0;s<r;++s)for(var a,o=i[s],h=o.length,u=0;u<h;++u)(a=o[u])&&an(a,t,n,u,o,e||Ln(a,n));return new Cn(i,this._parents,t,n)};const zn=t=>()=>t;function Fn(t,{sourceEvent:n,target:e,transform:i,dispatch:r}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:r}})}function Dn(t,n,e){this.k=t,this.x=n,this.y=e}Dn.prototype={constructor:Dn,scale:function(t){return 1===t?this:new Dn(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Dn(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Bn=new Dn(1,0,0);function Un(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Bn;return t.__zoom}function Wn(t){t.stopImmediatePropagation()}function Hn(t){t.preventDefault(),t.stopImmediatePropagation()}function Xn(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Vn(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Qn(){return this.__zoom||Bn}function Kn(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Yn(){return navigator.maxTouchPoints||"ontouchstart"in this}function Zn(t,n,e){var i=t.invertX(n[0][0])-e[0][0],r=t.invertX(n[1][0])-e[1][0],s=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),a>s?(s+a)/2:Math.min(0,s)||Math.max(0,a))}function Jn(){var t,n,e,i=Xn,r=Vn,s=Zn,a=Kn,o=Yn,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],p=250,d=Rt,g=h("start","zoom","end"),_=0,m=10;function y(t){t.property("__zoom",Qn).on("wheel.zoom",b).on("mousedown.zoom",P).on("dblclick.zoom",G).filter(o).on("touchstart.zoom",N).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new Dn(n,t.x,t.y)}function M(t,n,e){var i=n[0]-e[0]*t.k,r=n[1]-e[1]*t.k;return i===t.x&&r===t.y?t:new Dn(t.k,i,r)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function E(t,n,e,i){t.on("start.zoom",function(){x(this,arguments).event(i).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(i).end()}).tween("zoom",function(){var t=this,s=arguments,a=x(t,s).event(i),o=r.apply(t,s),h=null==e?w(o):"function"==typeof e?e.apply(t,s):e,u=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),l=t.__zoom,c="function"==typeof n?n.apply(t,s):n,f=d(l.invert(h).concat(u/l.k),c.invert(h).concat(u/c.k));return function(t){if(1===t)t=c;else{var n=f(t),e=u/n[2];t=new Dn(e,h[0]-n[0]*e,h[1]-n[1]*e)}a.zoom(null,t)}})}function x(t,n,e){return!e&&t.__zooming||new S(t,n)}function S(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=r.apply(t,n),this.taps=0}function b(t,...n){if(i.apply(this,arguments)){var e=x(this,n).event(t),r=this.__zoom,o=Math.max(c[0],Math.min(c[1],r.k*Math.pow(2,a.apply(this,arguments)))),h=(0,u.pointer)(t);if(e.wheel)e.mouse[0][0]===h[0]&&e.mouse[0][1]===h[1]||(e.mouse[1]=r.invert(e.mouse[0]=h)),clearTimeout(e.wheel);else{if(r.k===o)return;e.mouse=[h,r.invert(h)],ln(this),e.start()}Hn(t),e.wheel=setTimeout(function(){e.wheel=null,e.end()},150),e.zoom("mouse",s(M(v(r,o),e.mouse[0],e.mouse[1]),e.extent,f))}}function P(t,...n){if(!e&&i.apply(this,arguments)){var r=x(this,n,!0).event(t),a=(0,u.select)(t.view).on("mousemove.zoom",function(t){if(Hn(t),!r.moved){var n=t.clientX-c,e=t.clientY-p;r.moved=n*n+e*e>_}r.event(t).zoom("mouse",s(M(r.that.__zoom,r.mouse[0]=(0,u.pointer)(t,h),r.mouse[1]),r.extent,f))},!0).on("mouseup.zoom",function(t){var n,e,i,s;a.on("mousemove.zoom mouseup.zoom",null),n=t.view,e=r.moved,i=n.document.documentElement,s=(0,u.select)(n).on("dragstart.drag",null),e&&(s.on("click.drag",l,!0),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in i?s.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect),Hn(t),r.event(t).end()},!0),o=(0,u.pointer)(t,h),h=t.currentTarget,c=t.clientX,p=t.clientY;d=t.view,g=d.document.documentElement,m=(0,u.select)(d).on("dragstart.drag",l,!0),"onselectstart"in g?m.on("selectstart.drag",l,!0):(g.__noselect=g.style.MozUserSelect,g.style.MozUserSelect="none"),Wn(t),r.mouse=[o,this.__zoom.invert(o)],ln(this),r.start()}var d,g,m}function G(t,...n){if(i.apply(this,arguments)){var e=this.__zoom,a=(0,u.pointer)(t.changedTouches?t.changedTouches[0]:t,this),o=e.invert(a),h=e.k*(t.shiftKey?.5:2),l=s(M(v(e,h),a,o),r.apply(this,n),f);Hn(t),p>0?(0,u.select)(this).transition().duration(p).call(E,l,a,t):(0,u.select)(this).call(y.transform,l,a,t)}}function N(e,...r){if(i.apply(this,arguments)){var s,a,o,h,l=e.touches,c=l.length,f=x(this,r,e.changedTouches.length===c).event(e);for(Wn(e),a=0;a<c;++a)o=l[a],h=[h=(0,u.pointer)(o,this),this.__zoom.invert(h),o.identifier],f.touch0?f.touch1||f.touch0[2]===h[2]||(f.touch1=h,f.taps=0):(f.touch0=h,s=!0,f.taps=1+!!t);t&&(t=clearTimeout(t)),s&&(f.taps<2&&(n=h[0],t=setTimeout(function(){t=null},500)),ln(this),f.start())}}function A(t,...n){if(this.__zooming){var e,i,r,a,o=x(this,n).event(t),h=t.changedTouches,l=h.length;for(Hn(t),e=0;e<l;++e)i=h[e],r=(0,u.pointer)(i,this),o.touch0&&o.touch0[2]===i.identifier?o.touch0[0]=r:o.touch1&&o.touch1[2]===i.identifier&&(o.touch1[0]=r);if(i=o.that.__zoom,o.touch1){var c=o.touch0[0],p=o.touch0[1],d=o.touch1[0],g=o.touch1[1],_=(_=d[0]-c[0])*_+(_=d[1]-c[1])*_,m=(m=g[0]-p[0])*m+(m=g[1]-p[1])*m;i=v(i,Math.sqrt(_/m)),r=[(c[0]+d[0])/2,(c[1]+d[1])/2],a=[(p[0]+g[0])/2,(p[1]+g[1])/2]}else{if(!o.touch0)return;r=o.touch0[0],a=o.touch0[1]}o.zoom("touch",s(M(i,r,a),o.extent,f))}}function k(t,...i){if(this.__zooming){var r,s,a=x(this,i).event(t),o=t.changedTouches,h=o.length;for(Wn(t),e&&clearTimeout(e),e=setTimeout(function(){e=null},500),r=0;r<h;++r)s=o[r],a.touch0&&a.touch0[2]===s.identifier?delete a.touch0:a.touch1&&a.touch1[2]===s.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(s=(0,u.pointer)(s,this),Math.hypot(n[0]-s[0],n[1]-s[1])<m)){var l=(0,u.select)(this).on("dblclick.zoom");l&&l.apply(this,arguments)}}}return y.transform=function(t,n,e,i){var r=t.selection?t.selection():t;r.property("__zoom",Qn),t!==r?E(t,n,e,i):r.interrupt().each(function(){x(this,arguments).event(i).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},y.scaleBy=function(t,n,e,i){y.scaleTo(t,function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)},e,i)},y.scaleTo=function(t,n,e,i){y.transform(t,function(){var t=r.apply(this,arguments),i=this.__zoom,a=null==e?w(t):"function"==typeof e?e.apply(this,arguments):e,o=i.invert(a),h="function"==typeof n?n.apply(this,arguments):n;return s(M(v(i,h),a,o),t,f)},e,i)},y.translateBy=function(t,n,e,i){y.transform(t,function(){return s(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),r.apply(this,arguments),f)},null,i)},y.translateTo=function(t,n,e,i,a){y.transform(t,function(){var t=r.apply(this,arguments),a=this.__zoom,o=null==i?w(t):"function"==typeof i?i.apply(this,arguments):i;return s(Bn.translate(o[0],o[1]).scale(a.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,f)},i,a)},S.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit
1("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var n=(0,u.select)(this.that).datum();g.call(t,this.that,new Fn(t,{sourceEvent:this.sourceEvent,target:y,type:t,transform:this.that.__zoom,dispatch:g}),n)}},y.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:zn(+t),y):a},y.filter=function(t){return arguments.length?(i="function"==typeof t?t:zn(!!t),y):i},y.touchable=function(t){return arguments.length?(o="function"==typeof t?t:zn(!!t),y):o},y.extent=function(t){return arguments.length?(r="function"==typeof t?t:zn([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),y):r},y.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],y):[c[0],c[1]]},y.translateExtent=function(t){return arguments.length?(f[0][0]=+t[0][0],f[1][0]=+t[1][0],f[0][1]=+t[0][1],f[1][1]=+t[1][1],y):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},y.constrain=function(t){return arguments.length?(s=t,y):s},y.duration=function(t){return arguments.length?(p=+t,y):p},y.interpolate=function(t){return arguments.length?(d=t,y):d},y.on=function(){var t=g.on.apply(g,arguments);return t===g?y:t},y.clickDistance=function(t){return arguments.length?(_=(t=+t)*t,y):Math.sqrt(_)},y.tapDistance=function(t){return arguments.length?(m=+t,y):m},y}Un.prototype=Dn.prototype},94709(t,n,e){"use strict";e.r(n),e.d(n,{default:()=>Ee});var i=6378137,r=.0066943799901413165,s=484813681109536e-20,a=Math.PI/2,o=1e-10,h=.017453292519943295,u=57.29577951308232,l=Math.PI/4,c=2*Math.PI,f=3.14159265359;const p={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},d={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var g=/[\s_\-\/\(\)]/g;function _(t,n){if(t[n])return t[n];for(var e,i=Object.keys(t),r=n.toLowerCase().replace(g,""),s=-1;++s<i.length;)if((e=i[s]).toLowerCase().replace(g,"")===r)return t[e]}function m(t){var n,e,i,r={},s=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var e=n.split("=");return e.push(!0),t[e[0].toLowerCase()]=e[1],t},{}),a={proj:"projName",datum:"datumCode",rf:function(t){r.rf=parseFloat(t)},lat_0:function(t){r.lat0=t*h},lat_1:function(t){r.lat1=t*h},lat_2:function(t){r.lat2=t*h},lat_ts:function(t){r.lat_ts=t*h},lon_0:function(t){r.long0=t*h},lon_1:function(t){r.long1=t*h},lon_2:function(t){r.long2=t*h},alpha:function(t){r.alpha=parseFloat(t)*h},gamma:function(t){r.rectified_grid_angle=parseFloat(t)*h},lonc:function(t){r.longc=t*h},x_0:function(t){r.x0=parseFloat(t)},y_0:function(t){r.y0=parseFloat(t)},k_0:function(t){r.k0=parseFloat(t)},k:function(t){r.k0=parseFloat(t)},a:function(t){r.a=parseFloat(t)},b:function(t){r.b=parseFloat(t)},r:function(t){r.a=r.b=parseFloat(t)},r_a:function(){r.R_A=!0},zone:function(t){r.zone=parseInt(t,10)},south:function(){r.utmSouth=!0},towgs84:function(t){r.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){r.to_meter=parseFloat(t)},units:function(t){r.units=t;var n=_(d,t);n&&(r.to_meter=n.to_meter)},from_greenwich:function(t){r.from_greenwich=t*h},pm:function(t){var n=_(p,t);r.from_greenwich=(n||parseFloat(t))*h},nadgrids:function(t){"@null"===t?r.datumCode="none":r.nadgrids=t},axis:function(t){var n="ewnsud";3===t.length&&-1!==n.indexOf(t.substr(0,1))&&-1!==n.indexOf(t.substr(1,1))&&-1!==n.indexOf(t.substr(2,1))&&(r.axis=t)},approx:function(){r.approx=!0},over:function(){r.over=!0}};for(n in s)e=s[n],n in a?"function"==typeof(i=a[n])?i(e):r[i]=e:r[n]=e;return"string"==typeof r.datumCode&&"WGS84"!==r.datumCode&&(r.datumCode=r.datumCode.toLowerCase()),r.projStr=t,r}const y=class{static getId(t){const n=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return n&&n.length>=3?{authority:n[1],code:parseInt(n[2],10)}:null}static convertUnit(t,n="unit"){if(!t||t.length<3)return{type:n,name:"unknown",conversion_factor:null};const e=t[1],i=parseFloat(t[2])||null,r=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return{type:n,name:e,conversion_factor:i,id:r?{authority:r[1],code:parseInt(r[2],10)}:null}}static convertAxis(t){const n=t[1]||"Unknown";let e;const i=n.match(/^\((.)\)$/);if(i){const n=i[1].toUpperCase();if("E"===n)e="east";else if("N"===n)e="north";else if("U"===n)e="up";else{if(!t[2])throw new Error(`Unknown axis abbreviation: ${n}`);e=t[2]}}else e=t[2]||"unknown";const r=t.find(t=>Array.isArray(t)&&"ORDER"===t[0]),s=r?parseInt(r[1],10):null,a=t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]));return{name:n,direction:e,unit:this.convertUnit(a),order:s}}static extractAxes(t){return t.filter(t=>Array.isArray(t)&&"AXIS"===t[0]).map(t=>this.convertAxis(t)).sort((t,n)=>(t.order||0)-(n.order||0))}static convert(t,n={}){switch(t[0]){case"PROJCRS":n.type="ProjectedCRS",n.name=t[1],n.base_crs=t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])):null,n.conversion=t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])):null;const e=t.find(t=>Array.isArray(t)&&"CS"===t[0]);e&&(n.coordinate_system={type:e[1],axis:this.extractAxes(t)});const i=t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]);if(i){const t=this.convertUnit(i);n.coordinate_system.unit=t}n.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":case"GEODCRS":n.type="GEODCRS"===t[0]?"GeodeticCRS":"GeographicCRS",n.name=t[1];const r=t.find(t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0]));if(r){const e=this.convert(r);"ENSEMBLE"===r[0]?n.datum_ensemble=e:n.datum=e;const i=t.find(t=>Array.isArray(t)&&"PRIMEM"===t[0]);i&&"Greenwich"!==i[1]&&(e.prime_meridian={name:i[1],longitude:parseFloat(i[2])})}n.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},n.id=this.getId(t);break;case"DATUM":n.type="GeodeticReferenceFrame",n.name=t[1],n.ellipsoid=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])):null;break;case"ENSEMBLE":n.type="DatumEnsemble",n.name=t[1],n.members=t.filter(t=>Array.isArray(t)&&"MEMBER"===t[0]).map(t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)}));const s=t.find(t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]);s&&(n.accuracy=parseFloat(s[1]));const a=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0]);a&&(n.ellipsoid=this.convert(a)),n.id=this.getId(t);break;case"ELLIPSOID":n.type="Ellipsoid",n.name=t[1],n.semi_major_axis=parseFloat(t[2]),n.inverse_flattening=parseFloat(t[3]),t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0])&&this.convert(t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]),n);break;
vendor: 20,140 bytes, line 1
1case"CONVERSION":n.type="Conversion",n.name=t[1],n.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,n.parameters=t.filter(t=>Array.isArray(t)&&"PARAMETER"===t[0]).map(t=>this.convert(t));break;case"METHOD":n.type="Method",n.name=t[1],n.id=this.getId(t);break;case"PARAMETER":n.type="Parameter",n.name=t[1],n.value=parseFloat(t[2]),n.unit=this.convertUnit(t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]))),n.id=this.getId(t);break;case"BOUNDCRS":n.type="BoundCRS";const o=t.find(t=>Array.isArray(t)&&"SOURCECRS"===t[0]);if(o){const t=o.find(t=>Array.isArray(t));n.source_crs=t?this.convert(t):null}const h=t.find(t=>Array.isArray(t)&&"TARGETCRS"===t[0]);if(h){const t=h.find(t=>Array.isArray(t));n.target_crs=t?this.convert(t):null}const u=t.find(t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]);n.transformation=u?this.convert(u):null;break;case"ABRIDGEDTRANSFORMATION":if(n.type="Transformation",n.name=t[1],n.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,n.parameters=t.filter(t=>Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])).map(t=>"PARAMETER"===t[0]?this.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0),7===n.parameters.length){const t=n.parameters[6];"Scale difference"===t.name&&(t.value=Math.round(1e12*(t.value-1))/1e6)}n.id=this.getId(t);break;case"AXIS":n.coordinate_system||(n.coordinate_system={type:"unspecified",axis:[]}),n.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":const l=this.convertUnit(t,"LinearUnit");n.coordinate_system&&n.coordinate_system.axis&&n.coordinate_system.axis.forEach(t=>{t.unit||(t.unit=l)}),l.conversion_factor&&1!==l.conversion_factor&&n.semi_major_axis&&(n.semi_major_axis={value:n.semi_major_axis,unit:l});break;default:n.keyword=t[0]}return n}},v=class extends y{static convert(t,n={}){return super.convert(t,n),n.coordinate_system&&"Cartesian"===n.coordinate_system.subtype&&delete n.coordinate_system,n.usage&&delete n.usage,n}},M=class extends y{static convert(t,n={}){super.convert(t,n);const e=t.find(t=>Array.isArray(t)&&"CS"===t[0]);e&&(n.coordinate_system={subtype:e[1],axis:this.extractAxes(t)});const i=t.find(t=>Array.isArray(t)&&"USAGE"===t[0]);if(i){const t=i.find(t=>Array.isArray(t)&&"SCOPE"===t[0]),e=i.find(t=>Array.isArray(t)&&"AREA"===t[0]),r=i.find(t=>Array.isArray(t)&&"BBOX"===t[0]);n.usage={},t&&(n.usage.scope=t[1]),e&&(n.usage.area=e[1]),r&&(n.usage.bbox=r.slice(1))}return n}};var w=/\s/,E=/[A-Za-z]/,x=/[A-Za-z84_]/,S=/[,\]]/,b=/[\d\.E\-\+]/;function P(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function G(t,n,e){Array.isArray(n)&&(e.unshift(n),n=null);var i=n?{}:t,r=e.reduce(function(t,n){return N(n,t),t},i);n&&(t[n]=r)}function N(t,n){if(Array.isArray(t)){var e=t.shift();if("PARAMETER"===e&&(e=t.shift()),1===t.length)return Array.isArray(t[0])?(n[e]={},void N(t[0],n[e])):void(n[e]=t[0]);if(t.length)if("TOWGS84"!==e){if("AXIS"===e)return e in n||(n[e]=[]),void n[e].push(t);var i;switch(Array.isArray(e)||(n[e]={}),e){case"UNIT":case"PRIMEM":case"VERT_DATUM":return n[e]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&N(t[2],n[e]));case"SPHEROID":case"ELLIPSOID":return n[e]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&N(t[3],n[e]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void G(n,e,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],G(n,e,t),void(n[e].type=e);default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return N(t,n[e]);return G(n,e,t)}}else n[e]=t;else n[e]=!0}else n[t]=!0}function A(t){return.017453292519943295*t}function k(t){const n=(t.projName||"").toLowerCase().replace(/_/g," ");t.long0||!t.longc||"albers conic equal area"!==n&&"lambert azimuthal equal area"!==n||(t.long0=t.longc),t.lat_ts||!t.lat1||"stereographic south pole"!==n&&"polar stereographic (variant b)"!==n?t.lat_ts||!t.lat0||"polar stereographic"!==n&&"polar stereographic (variant a)"!==n||(t.lat_ts=t.lat0,t.lat0=A(t.lat0>0?90:-90),delete t.lat1):(t.lat0=A(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function C(t){let n={units:null,to_meter:void 0};return"string"==typeof t?(n.units=t.toLowerCase(),"metre"===n.units&&(n.units="meter"),"meter"===n.units&&(n.to_meter=1)):t&&t.name&&(n.units=t.name.toLowerCase(),"metre"===n.units&&(n.units="meter"),n.to_meter=t.conversion_factor),n}function I(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function j(t,n){t.ellipsoid.radius?(n.a=t.ellipsoid.radius,n.rf=0):(n.a=I(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?n.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(n.rf=n.a/(n.a-I(t.ellipsoid.semi_minor_axis))))}function O(t,n={}){return t&&"object"==typeof t?"BoundCRS"===t.type?(O(t.source_crs,n),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?n.nadgrids=t.transformation.parameters[0].value:n.datum_params=t.transformation.parameters.map(t=>t.value)),n):(Object.keys(t).forEach(e=>{const i=t[e];if(null!==i)switch(e){case"name":if(n.srsCode)break;n.name=i,n.srsCode=i;break;case"type":"GeographicCRS"===i?n.projName="longlat":"GeodeticCRS"===i?t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype?n.projName="geocent":n.projName="longlat":"ProjectedCRS"===i&&t.conversion&&t.conversion.method&&(n.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":i.ellipsoid&&(n.ellps=i.ellipsoid.name,j(i,n)),i.prime_meridian&&(n.from_greenwich=i.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":n.ellps=i.name,j(i,n);break;case"prime_meridian":n.long0=(i.longitude||0)*Math.PI/180;break;case"coordinate_system":if(i.axis){const t={east:"e",north:"n",west:"w",south:"s",up:"u",down:"d",geocentricx:"e",geocentricy:"n",geocentricz:"u"},e=i.axis.map(n=>t[n.direction.toLowerCase()]);if(e.every(Boolean)&&(n.axis=e.join(""),2===n.axis.length&&(n.axis+="u")),i.unit){const{units:t,to_meter:e}=C(i.unit);n.units=t,n.to_meter=e}else if(i.axis[0]&&i.axis[0].unit){const{units:t,to_meter:e}=C(i.axis[0].unit);n.units=t,n.to_meter=e}}break;case"id":i.authority&&i.code&&(n.title=i.authority+":"+i.code);break;case"conversion":i.method&&i.method.name&&(n.projName=i.method.name),i.parameters&&i.parameters.forEach(t=>{const e=t.name.toLowerCase().replace(/\s+/g,"_"),i=t.value;t.unit&&t.unit.conversion_factor?n[e]=i*t.unit.conversion_factor:"degree"===t.unit?n[e]=i*Math.PI/180:n[e]=i});break;case"unit":i.name&&(n.units=i.name.toLowerCase(),"metre"===n.units&&(n.units="meter")),i.conversion_factor&&(n.to_meter=i.conversion_factor);break;case"base_crs":O(i,n),n.datumCode=i.id?i.id.authority+"_"+i.id.code:i.name}}),void 0!==n.latitude_of_false_origin&&(n.lat0=n.latitude_of_false_origin),void 0!==n.longitude_of_false_origin&&(n.long0=n.longitude_of_false_origin),void 0!==n.latitude_of_standard_parallel&&(n.lat0=n.latitude_of_standard_parallel,n.lat1=n.latitude_of_standard_parallel),void 0!==n.latitude_of_1st_standard_parallel&&(n.lat1=n.latitude_of_1st_standard_parallel),void 0!==n.latitude_of_2nd_standard_parallel&&(n.lat2=n.latitude_of_2nd_standard_parallel),void 0!==n.latitude_of_projection_centre&&(n.lat0=n.latitude_of_projection_centre),void 0!==n.longitude_of_projection_centre&&(n.longc=n.longitude_of_projection_centre),void 0!==n.easting_at_false_origin&&(n.x0=n.easting_at_false_origin),void 0!==n.northing_at_false_origin&&(n.y0=n.northing_at_false_origin),void 0!==n.latitude_of_natural_origin&&(n.lat0=n.latitude_of_natural_origin),void 0!==n.longitude_of_natural_origin&&(n.long0=n.longitude_of_natural_origin),void 0!==n.longitude_of_origin&&(n.long0=n.longitude_of_origin),void 0!==n.false_easting&&(n.x0=n.false_easting),n.easting_at_projection_centre&&(n.x0=n.easting_at_projection_centre),void 0!==n.false_northing&&(n.y0=n.false_northing),n.northing_at_projection_centre&&(n.y0=n.northing_at_projection_centre),void 0!==n.standard_parallel_1&&(n.lat1=n.standard_parallel_1),void 0!==n.standard_parallel_2&&(n.lat2=n.standard_parallel_2),void 0!==n.scale_factor_at_natural_origin&&(n.k0=n.scale_factor_at_natural_origin),void 0!==n.scale_factor_at_projection_centre&&(n.k0=n.scale_factor_at_projection_centre),void 0!==n.scale_factor_on_pseudo_standard_parallel&&(n.k0=n.scale_factor_on_pseudo_standard_parallel),void 0!==n.azimuth&&(n.alpha=n.azimuth),void 0!==n.azimuth_at_projection_centre&&(n.alpha=n.azimuth_at_projection_centre),n.angle_from_rectified_to_skew_grid&&(n.rectified_grid_angle=n.angle_from_rectified_to_skew_grid),k(n),n):t}P.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;w.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},P.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(S.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},P.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},P.prototype.number=function(t){if(!b.test(t)){if(S.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},P.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},P.prototype.keyword=function(t){if(x.test(t))this.word+=t;else{if("["===t){var n=[];return n.push(this.word),this.level++,null===this.root?this.root=n:this.currentObject.push(n),this.stack.push(this.currentObject),this.currentObject=n,void(this.state=1)}if(!S.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},P.prototype.neutral=function(t){if(E.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(b.test(t))return this.word=t,void(this.state=3);if(!S.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},P.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var R=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function T(t){for(var n=Object.keys(t),e=0,i=n.length;e<i;++e){var r=n[e];-1!==R.indexOf(r)&&q(t[r]),"object"==typeof t[r]&&T(t[r])}}function q(t){if(t.AUTHORITY){var n=Object.keys(t.AUTHORITY)[0];n&&n in t.AUTHORITY&&(t.title=n+":"+t.AUTHORITY[n])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var e="",i=0,r=t.AXIS.length;i<r;++i){var s=[t.AXIS[i][0].toLowerCase(),t.AXIS[i][1].toLowerCase()];-1!==s[0].indexOf("north")||("y"===s[0]||"lat"===s[0])&&"north"===s[1]?e+="n":-1!==s[0].indexOf("south")||("y"===s[0]||"lat"===s[0])&&"south"===s[1]?e+="s":-1!==s[0].indexOf("east")||("x"===s[0]||"lon"===s[0])&&"east"===s[1]?e+="e":-1===s[0].indexOf("west")&&("x"!==s[0]&&"lon"!==s[0]||"west"!==s[1])||(e+="w")}2===e.length&&(e+="u"),3===e.length&&(t.axis=e)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var a=t.GEOGCS;function o(n){return n*(t.to_meter||1)}"GEOGCS"===t.type&&(a=t),a&&(a.DATUM?t.datumCode=a.DATUM.name.toLowerCase():t.datumCode=a.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(t.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=a.DATUM.SPHEROID.a,t.rf=parseFloat(a.DATUM.SPHEROID.rf)),a.DATUM&&a.DATUM.TOWGS84&&(t.datum_params=a.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=A(t.rectified_grid_angle)),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",A],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",A],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",A],["lat0","latitude_of_origin",A],["lat0","standard_parallel_1",A],["lat1","standard_parallel_1",A],["lat2","standard_parallel_2",A],["azimuth","Azimuth"],["alpha","azimuth",A],["srsCode","name"]].forEach(function(n){return function(t,n){var e=n[0],i=n[1];!(e in t)&&i in t&&(t[e]=t[i],3===n.length&&(t[e]=n[2](t[e])))}(t,n)}),k(t)}function L(t){if("object"==typeof t)return O(t);const n=function(t){const n=t.toUpperCase();return n.includes("PROJCRS")||n.includes("GEOGCRS")||n.includes("BOUNDCRS")||n.includes("VERTCRS")||n.includes("LENGTHUNIT")||n.includes("ANGLEUNIT")||n.includes("SCALEUNIT")?"WKT2":(n.includes("PROJCS")||n.includes("GEOGCS")||n.includes("LOCAL_CS")||n.includes("VERT_CS")||n.includes("UNIT"),"WKT1")}(t);var e=new P(t).output();if("WKT2"===n)return O(function(t){const n=function(t){return t.find(t=>Array.isArray(t)&&"USAGE"===t[0])?"2019":(t.find(t=>Array.isArray(t)&&"CS"===t[0])||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015")}(t);return("2019"===n?M:v).convert(t)}(e));var i=e[0],r={};return N(e,r),T(r),r[i]}function z(t){var n=this;if(2===arguments.length){var e=arguments[1];"string"==typeof e?"+"===e.charAt(0)?z[t]=m(arguments[1]):z[t]=L(arguments[1]):e&&"object"==typeof e&&!("projName"in e)?z[t]=L(arguments[1]):(z[t]=e,e||delete z[t])}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?z.apply(n,t):z(t)});if("string"==typeof t){if(t in z)return z[t]}else"EPSG"in t?z["EPSG:"+t.EPSG]=t:"ESRI"in t?z["ESRI:"+t.ESRI]=t:"IAU2000"in t?z["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var n=1;n<=60;++n)t("EPSG:"+(32600+n),"+proj=utm +zone="+n+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+n),"+proj=utm +zone="+n+" +south +datum=WGS84 +units=m");t("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(z);const F=z;var D=["3857","900913","3785","102113"];function B(t,n){var e,i;if(t=t||{},!n)return t;for(i in n)void 0!==(e=n[i])&&(t[i]=e);return t}function U(t,n,e){var i=t*n;return e/Math.sqrt(1-i*i)}function W(t){return t<0?-1:1}function H(t,n){return n||Math.abs(t)<=f?t:t-W(t)*c}function X(t,n,e){var i=t*e,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(a-n))/i}function V(t,n){for(var e,i,r=.5*t,s=a-2*Math.atan(n),o=0;o<=15;o++)if(e=t*Math.sin(s),s+=i=a-2*Math.atan(n*Math.pow((1-e)/(1+e),r))-s,Math.abs(i)<=1e-10)return s;return-9999}function Q(t){return t}var K=["longlat","identity"],Y=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=U(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var n,e,i=t.x,r=t.y;if(r*u>90&&r*u<-90&&i*u>180&&i*u<-180)return null;if(Math.abs(Math.abs(r)-a)<=o)return null;if(this.sphere)n=this.x0+this.a*this.k0*H(i-this.long0,this.over),e=this.y0+this.a*this.k0*Math.log(Math.tan(l+.5*r));else{var s=Math.sin(r),h=X(this.e,r,s);n=this.x0+this.a*this.k0*H(i-this.long0,this.over),e=this.y0-this.a*this.k0*Math.log(h)}return t.x=n,t.y=e,t},inverse:function(t){var n,e,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)e=a-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var s=Math.exp(-r/(this.a*this.k0));if(-9999===(e=V(this.e,s)))return null}return n=H(this.long0+i/(this.a*this.k0),this.over),t.x=n,t.y=e,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:Q,inverse:Q,names:K}],Z={},J=[];function $(t,n){var e=J.length;return t.names?(J[e]=t,t.names.forEach(function(t){Z[t.toLowerCase()]=e}),this):(console.log(n),!0)}function tt(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}const nt={start:function(){Y.forEach($)},add:$,get:function(t){if(!t)return!1;var n=t.toLowerCase();return void 0!==Z[n]&&J[Z[n]]||(n=tt(n))in Z&&J[Z[n]]?J[Z[n]]:void 0}},et={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"}
1,bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},it=et.WGS84;var rt={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80
vendor: 19,713 bytes, line 1
1",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-0.008393,0.000749,-0.010276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"372.87,149.23,585.29"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"},EPSG_10328:{towgs84:"0,0,0"},EPSG_9782:{towgs84:"0,0,0"},EPSG_9777:{towgs84:"0,0,0"},EPSG_10690:{towgs84:"0,0,0"},EPSG_10639:{towgs84:"0,0,0"},EPSG_10739:{towgs84:"0,0,0"},EPSG_7686:{towgs84:"0,0,0"},EPSG_8900:{towgs84:"0,0,0"},EPSG_5886:{towgs84:"0,0,0"},EPSG_7683:{towgs84:"0,0,0"},EPSG_6668:{towgs84:"0,0,0"},EPSG_20046:{towgs84:"0,0,0"},EPSG_10299:{towgs84:"0,0,0"},EPSG_10310:{towgs84:"0,0,0"},EPSG_10475:{towgs84:"0,0,0"},EPSG_4742:{towgs84:"0,0,0"},EPSG_10671:{towgs84:"0,0,0"},EPSG_10762:{towgs84:"0,0,0"},EPSG_10725:{towgs84:"0,0,0"},EPSG_10791:{towgs84:"0,0,0"},EPSG_10800:{towgs84:"0,0,0"},EPSG_10305:{towgs84:"0,0,0"},EPSG_10941:{towgs84:"0,0,0"},EPSG_10968:{towgs84:"0,0,0"},EPSG_10875:{towgs84:"0,0,0"},EPSG_6318:{towgs84:"0,0,0"},EPSG_10910:{towgs84:"0,0,0"}};for(var
vendor: 3,156 bytes, line 1
1st in rt){var at=rt[st];at.datumName&&(rt[at.datumName]=at)}const ot=rt;var ht={};async function ut(t,n){for(var e=[],i=await n.getImageCount(),r=i-1;r>=0;r--){var s=await n.getImage(r),a=await s.readRasters(),o=[s.getWidth(),s.getHeight()],h=s.getBoundingBox().map(ct),u=[s.fileDirectory.ModelPixelScale[0],s.fileDirectory.ModelPixelScale[1]].map(ct),l=h[0]+(o[0]-1)*u[0],c=h[3]-(o[1]-1)*u[1],f=a[0],p=a[1],d=[];for(let t=o[1]-1;t>=0;t--)for(let n=o[0]-1;n>=0;n--){var g=t*o[0]+n;d.push([-ft(p[g]),ft(f[g])])}e.push({del:u,lim:o,ll:[-l,c],cvs:d})}var _={header:{nSubgrids:i},subgrids:e};return ht[t]=_,_}function lt(t){if(0===t.length)return null;var n="@"===t[0];return n&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!n,grid:null,isNull:!0}:{name:t,mandatory:!n,grid:ht[t]||null,isNull:!1}}function ct(t){return t*Math.PI/180}function ft(t){return t/3600*Math.PI/180}function pt(t,n,e){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(n,e)))}function dt(t){return t.map(function(t){return[ft(t.longitudeShift),ft(t.latitudeShift)]})}function gt(t,n,e){return{name:pt(t,n+8,n+16).trim(),parent:pt(t,n+24,n+24+8).trim(),lowerLatitude:t.getFloat64(n+72,e),upperLatitude:t.getFloat64(n+88,e),lowerLongitude:t.getFloat64(n+104,e),upperLongitude:t.getFloat64(n+120,e),latitudeInterval:t.getFloat64(n+136,e),longitudeInterval:t.getFloat64(n+152,e),gridNodeCount:t.getInt32(n+168,e)}}function _t(t,n,e,i,r){var s=n+176,a=16;!1===r&&(a=8);for(var o=[],h=0;h<e.gridNodeCount;h++){var u={latitudeShift:t.getFloat32(s+h*a,i),longitudeShift:t.getFloat32(s+h*a+4,i)};!1!==r&&(u.latitudeAccuracy=t.getFloat32(s+h*a+8,i),u.longitudeAccuracy=t.getFloat32(s+h*a+12,i)),o.push(u)}return o}function mt(t,n){if(!(this instanceof mt))return new mt(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,n=n||function(t){if(t)throw t};var e=function(t){let n;if(function(t){return"string"==typeof t}(t))if(function(t){return t in F}(t))n=F[t];else if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"==typeof t&&!("srsCode"in t)}(t)){n=L(t);var e=function(t){var n=_(t,"extension");if(n)return _(n,"proj4")}(n);e&&(n=m(e))}else(function(t){return"+"===t[0]})(t)&&(n=m(t));else n="projName"in t?t:L(t);return n&&function(t){if(t.title)return 0===t.title.toLowerCase().indexOf("epsg:")&&D.indexOf(t.title.substr(5))>-1;var n=_(t,"authority");if(n){var e=_(n,"epsg");return e&&D.indexOf(e)>-1}}(n)?F["EPSG:3857"]:n}(t);if("object"==typeof e){var i=mt.projections.get(e.projName);if(i){if(e.datumCode&&"none"!==e.datumCode){var r=_(ot,e.datumCode);r&&(e.datum_params=e.datum_params||(r.towgs84?r.towgs84.split(","):null),e.ellps=r.ellipse,e.datumName=r.datumName?r.datumName:e.datumCode)}e.k0=e.k0||1,e.axis=e.axis||"enu",e.ellps=e.ellps||"wgs84",e.lat1=e.lat1||e.lat0;var a,h,u,l,c,f,p=function(t,n,e,i,r){if(!t){var s=_(et,i);s||(s=it),t=s.a,n=s.b,e=s.rf}return e&&!n&&(n=(1-1/e)*t),(0===e||Math.abs(t-n)<o)&&(r=!0,n=t),{a:t,b:n,rf:e,sphere:r}}(e.a,e.b,e.rf,e.ellps,e.sphere),d=(a=p.a,h=p.b,p.rf,c=((u=a*a)-(l=h*h))/u,f=0,e.R_A?(u=(a*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655
vendor: 21,571 bytes, line 1
1*c)))*a,c=0):f=Math.sqrt(c),{es:c,e:f,ep2:(u-l)/l}),g=function(t){return void 0===t?null:t.split(",").map(lt)}(e.nadgrids),y=e.datum||function(t,n,e,i,r,a,o){var h={};return h.datum_type=void 0===t||"none"===t?5:4,n&&(h.datum_params=n.map(parseFloat),0===h.datum_params[0]&&0===h.datum_params[1]&&0===h.datum_params[2]||(h.datum_type=1),h.datum_params.length>3&&(0===h.datum_params[3]&&0===h.datum_params[4]&&0===h.datum_params[5]&&0===h.datum_params[6]||(h.datum_type=2,h.datum_params[3]*=s,h.datum_params[4]*=s,h.datum_params[5]*=s,h.datum_params[6]=h.datum_params[6]/1e6+1))),o&&(h.datum_type=3,h.grids=o),h.a=e,h.b=i,h.es=r,h.ep2=a,h}(e.datumCode,e.datum_params,p.a,p.b,d.es,d.ep2,g);B(this,e),B(this,i),this.a=p.a,this.b=p.b,this.rf=p.rf,this.sphere=p.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=y,"init"in this&&"function"==typeof this.init&&this.init(),n(null,this)}else n("Could not get projection name from: "+t)}else n("Could not parse to valid json: "+t)}mt.projections=nt,mt.projections.start();const yt=mt;function vt(t,n,e){var i,r,s,o,h=t.x,u=t.y,l=t.z?t.z:0;if(u<-a&&u>-1.001*a)u=-a;else if(u>a&&u<1.001*a)u=a;else{if(u<-a)return{x:-1/0,y:-1/0,z:t.z};if(u>a)return{x:1/0,y:1/0,z:t.z}}return h>Math.PI&&(h-=2*Math.PI),r=Math.sin(u),o=Math.cos(u),s=r*r,{x:((i=e/Math.sqrt(1-n*s))+l)*o*Math.cos(h),y:(i+l)*o*Math.sin(h),z:(i*(1-n)+l)*r}}function Mt(t,n,e,i){var r,s,a,o,h,u,l,c,f,p,d,g,_,m,y,v=t.x,M=t.y,w=t.z?t.z:0;if(r=Math.sqrt(v*v+M*M),s=Math.sqrt(v*v+M*M+w*w),r/e<1e-12){if(m=0,s/e<1e-12)return y=-i,{x:t.x,y:t.y,z:t.z}}else m=Math.atan2(M,v);a=w/s,c=(o=r/s)*(1-n)*(h=1/Math.sqrt(1-n*(2-n)*o*o)),f=a*h,_=0;do{_++,u=n*(l=e/Math.sqrt(1-n*f*f))/(l+(y=r*c+w*f-l*(1-n*f*f))),g=(d=a*(h=1/Math.sqrt(1-u*(2-u)*o*o)))*c-(p=o*(1-u)*h)*f,c=p,f=d}while(g*g>1e-24&&_<30);return{x:m,y:Math.atan(d/Math.abs(p)),z:y}}function wt(t){return 1===t||2===t}function Et(t,n,e){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var i={x:-e.x,y:e.y},r={x:Number.NaN,y:Number.NaN},s=[];t:for(var a=0;a<t.grids.length;a++){var o=t.grids[a];if(s.push(o.name),o.isNull){r=i;break}if(null!==o.grid)for(var h=o.grid.subgrids,l=0,c=h.length;l<c;l++){var f=h[l],p=(Math.abs(f.del[1])+Math.abs(f.del[0]))/1e4,d=f.ll[0]-p,g=f.ll[1]-p,_=f.ll[0]+(f.lim[0]-1)*f.del[0]+p,m=f.ll[1]+(f.lim[1]-1)*f.del[1]+p;if(!(g>i.y||d>i.x||m<i.y||_<i.x||(r=xt(i,n,f),isNaN(r.x))))break t}else if(o.mandatory)return console.log("Unable to find mandatory grid '"+o.name+"'"),-1}return isNaN(r.x)?(console.log("Failed to find a grid shift table for location '"+-i.x*u+" "+i.y*u+" tried: '"+s+"'"),-1):(e.x=-r.x,e.y=r.y,0)}function xt(t,n,e){var i={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return i;var r={x:t.x,y:t.y};r.x-=e.ll[0],r.y-=e.ll[1],r.x=H(r.x-Math.PI)+Math.PI;var s=St(r,e);if(n){if(isNaN(s.x))return i;s.x=r.x-s.x,s.y=r.y-s.y;var a,o,h=9;do{if(o=St(s,e),isNaN(o.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:r.x-(o.x+s.x),y:r.y-(o.y+s.y)},s.x+=a.x,s.y+=a.y}while(h--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(h<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=H(s.x+e.ll[0]),i.y=s.y+e.ll[1]}else isNaN(s.x)||(i.x=t.x+s.x,i.y=t.y+s.y);return i}function St(t,n){var e,i={x:t.x/n.del[0],y:t.y/n.del[1]},r=Math.floor(i.x),s=Math.floor(i.y),a=i.x-1*r,o=i.y-1*s,h={x:Number.NaN,y:Number.NaN};if(r<0||r>=n.lim[0])return h;if(s<0||s>=n.lim[1])return h;e=s*n.lim[0]+r;var u=n.cvs[e][0],l=n.cvs[e][1];e++;var c=n.cvs[e][0],f=n.cvs[e][1];e+=n.lim[0];var p=n.cvs[e][0],d=n.cvs[e][1];e--;var g=n.cvs[e][0],_=n.cvs[e][1],m=a*o,y=a*(1-o),v=(1-a)*(1-o),M=(1-a)*o;return h.x=v*u+y*c+M*g+m*p,h.y=v*l+y*f+M*_+m*d,h}function bt(t,n,e){var i,r,s,a=e.x,o=e.y,h=e.z||0,u={};for(s=0;s<3;s++)if(!n||2!==s||void 0!==e.z)switch(0===s?(i=a,r=-1!=="ew".indexOf(t.axis[s])?"x":"y"):1===s?(i=o,r=-1!=="ns".indexOf(t.axis[s])?"y":"x"):(i=h,r="z"),t.axis[s]){case"e":case"n":u[r]=i;break;case"w":case"s":u[r]=-i;break;case"u":void 0!==e[r]&&(u.z=i);break;case"d":void 0!==e[r]&&(u.z=-i);break;default:return null}return u}function Pt(t){var n={x:t[0],y:t[1]};return t.length>2&&(n.z=t[2]),t.length>3&&(n.m=t[3]),n}function Gt(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Nt(t,n,e,s){var a,o=void 0!==(e=Array.isArray(e)?Pt(e):{x:e.x,y:e.y,z:e.z,m:e.m}).z;if(function(t){Gt(t.x),Gt(t.y)}(e),t.datum&&n.datum&&function(t,n){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==n.datumCode||(1===n.datum.datum_type||2===n.datum.datum_type||3===n.datum.datum_type)&&"WGS84"!==t.datumCode}(t,n)&&(e=Nt(t,a=new yt("WGS84"),e,s),t=a),s&&"enu"!==t.axis&&(e=bt(t,!1,e)),"longlat"===t.projName)e={x:e.x*h,y:e.y*h,z:e.z||0};else if(t.to_meter&&(e={x:e.x*t.to_meter,y:e.y*t.to_meter,z:e.z||0}),!(e=t.inverse(e)))return;if(t.from_greenwich&&(e.x+=t.from_greenwich),e=function(t,n,e){if(function(t,n){return t.datum_type===n.datum_type&&!(t.a!==n.a||Math.abs(t.es-n.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===n.datum_params[0]&&t.datum_params[1]===n.datum_params[1]&&t.datum_params[2]===n.datum_params[2]:2!==t.datum_type||t.datum_params[0]===n.datum_params[0]&&t.datum_params[1]===n.datum_params[1]&&t.datum_params[2]===n.datum_params[2]&&t.datum_params[3]===n.datum_params[3]&&t.datum_params[4]===n.datum_params[4]&&t.datum_params[5]===n.datum_params[5]&&t.datum_params[6]===n.datum_params[6])}(t,n))return e;if(5===t.datum_type||5===n.datum_type)return e;var s=t.a,a=t.es;if(3===t.datum_type){if(0!==Et(t,!1,e))return;s=i,a=r}var o=n.a,h=n.b,u=n.es;return 3===n.datum_type&&(o=i,h=6356752.314,u=r),a!==u||s!==o||wt(t.datum_type)||wt(n.datum_type)?(e=vt(e,a,s),wt(t.datum_type)&&(e=function(t,n,e){if(1===n)return{x:t.x+e[0],y:t.y+e[1],z:t.z+e[2]};if(2===n){var i=e[0],r=e[1],s=e[2],a=e[3],o=e[4],h=e[5],u=e[6];return{x:u*(t.x-h*t.y+o*t.z)+i,y:u*(h*t.x+t.y-a*t.z)+r,z:u*(-o*t.x+a*t.y+t.z)+s}}}(e,t.datum_type,t.datum_params)),wt(n.datum_type)&&(e=function(t,n,e){if(1===n)return{x:t.x-e[0],y:t.y-e[1],z:t.z-e[2]};if(2===n){var i=e[0],r=e[1],s=e[2],a=e[3],o=e[4],h=e[5],u=e[6],l=(t.x-i)/u,c=(t.y-r)/u,f=(t.z-s)/u;return{x:l+h*c-o*f,y:-h*l+c+a*f,z:o*l-a*c+f}}}(e,n.datum_type,n.datum_params)),e=Mt(e,u,o,h),3!==n.datum_type||0===Et(n,!0,e)?e:void 0):e}(t.datum,n.datum,e))return n.from_greenwich&&(e={x:e.x-n.from_greenwich,y:e.y,z:e.z||0}),"longlat"===n.projName?e={x:e.x*u,y:e.y*u,z:e.z||0}:(e=n.forward(e),n.to_meter&&(e={x:e.x/n.to_meter,y:e.y/n.to_meter,z:e.z||0})),s&&"enu"!==n.axis?bt(n,!0,e):(e&&!o&&delete e.z,e)}var At=yt("WGS84");function kt(t,n,e,i){var r,s,a;return Array.isArray(e)?(r=Nt(t,n,e,i)||{x:NaN,y:NaN},e.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==n.name&&"geocent"===n.name?"number"==typeof r.z?[r.x,r.y,r.z].concat(e.slice(3)):[r.x,r.y,e[2]].concat(e.slice(3)):[r.x,r.y].concat(e.slice(2)):[r.x,r.y]):(s=Nt(t,n,e,i),2===(a=Object.keys(e)).length||a.forEach(function(i){if(void 0!==t.name&&"geocent"===t.name||void 0!==n.name&&"geocent"===n.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;s[i]=e[i]}),s)}function Ct(t){return t instanceof yt?t:"object"==typeof t&&"oProj"in t?t.oProj:yt(t)}var It="AJSAJS",jt="AFAFAF",Ot=65,Rt=73,Tt=79;const qt={forward:Lt,inverse:function(t){var n=Bt(Wt(t.toUpperCase()));return n.lat&&n.lon?[n.lon,n.lat,n.lon,n.lat]:[n.left,n.bottom,n.right,n.top]},toPoint:zt};function Lt(t,n){return n=n||5,function(t,n){var e,i,r,s,a,o,h,u,l,c,f,p="00000"+t.easting,d="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(l=t.easting,c=t.northing,f=Ut(t.zoneNumber),e=Math.floor(l/1e5),i=Math.floor(c/1e5)%20,s=It.charCodeAt(r=f-1),a=jt.charCodeAt(r),u=!1,(o=s+e-1)>90&&(o=o-90+Ot-1,u=!0),(o===Rt||s<Rt&&o>Rt||(o>Rt||s<Rt)&&u)&&o++,(o===Tt||s<Tt&&o>Tt||(o>Tt||s<Tt)&&u)&&++o===Rt&&o++,o>90&&(o=o-90+Ot-1),(h=a+i)>86?(h=h-86+Ot-1,u=!0):u=!1,(h===Rt||a<Rt&&h>Rt||(h>Rt||a<Rt)&&u)&&h++,(h===Tt||a<Tt&&h>Tt||(h>Tt||a<Tt)&&u)&&++h===Rt&&h++,h>86&&(h=h-86+Ot-1),String.fromCharCode(o)+String.fromCharCode(h))+p.substr(p.length-5,n)+d.substr(d.length-5,n)}(function(t){var n,e,i,r,s,a,o,h=t.lat,u=t.lon,l=6378137,c=.00669438,f=.9996,p=Ft(h),d=Ft(u);o=Math.floor((u+180)/6)+1,180===u&&(o=60),h>=56&&h<64&&u>=3&&u<12&&(o=32),h>=72&&h<84&&(u>=0&&u<9?o=31:u>=9&&u<21?o=33:u>=21&&u<33?o=35:u>=33&&u<42&&(o=37)),a=Ft(6*(o-1)-180+3),n=.006739496752268451,e=l/Math.sqrt(1-c*Math.sin(p)*Math.sin(p)),i=Math.tan(p)*Math.tan(p),r=n*Math.cos(p)*Math.cos(p);var g,_,m=f*e*((s=Math.cos(p)*(d-a))+(1-i+r)*s*s*s/6+(5-18*i+i*i+72*r-58*n)*s*s*s*s*s/120)+5e5,y=f*(l*(.9983242984503243*p-.002514607064228144*Math.sin(2*p)+2639046602129982e-21*Math.sin(4*p)-3.418046101696858e-9*Math.sin(6*p))+e*Math.tan(p)*(s*s/2+(5-i+9*r+4*r*r)*s*s*s*s/24+(61-58*i+i*i+600*r-2.2240339282485886)*s*s*s*s*s*s/720));return h<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(m),zoneNumber:o,zoneLetter:(g=h,_="Z",84>=g&&g>=72?_="X":72>g&&g>=64?_="W":64>g&&g>=56?_="V":56>g&&g>=48?_="U":48>g&&g>=40?_="T":40>g&&g>=32?_="S":32>g&&g>=24?_="R":24>g&&g>=16?_="Q":16>g&&g>=8?_="P":8>g&&g>=0?_="N":0>g&&g>=-8?_="M":-8>g&&g>=-16?_="L":-16>g&&g>=-24?_="K":-24>g&&g>=-32?_="J":-32>g&&g>=-40?_="H":-40>g&&g>=-48?_="G":-48>g&&g>=-56?_="F":-56>g&&g>=-64?_="E":-64>g&&g>=-72?_="D":-72>g&&g>=-80&&(_="C"),_)}}({lat:t[1],lon:t[0]}),n)}function zt(t){var n=Bt(Wt(t.toUpperCase()));return n.lat&&n.lon?[n.lon,n.lat]:[(n.left+n.right)/2,(n.top+n.bottom)/2]}function Ft(t){return t*(Math.PI/180)}function Dt(t){return t/Math.PI*180}function Bt(t){var n=t.northing,e=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var s,a,o,h,u,l,c,f,p,d=.9996,g=6378137,_=.00669438,m=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),y=e-5e5,v=n;i<"N"&&(v-=1e7),c=6*(r-1)-180+3,s=.006739496752268451,p=(f=v/d/6367449.145945056)+(3*m/2-27*m*m*m/32)*Math.sin(2*f)+(21*m*m/16-55*m*m*m*m/32)*Math.sin(4*f)+151*m*m*m/96*Math.sin(6*f),a=g/Math.sqrt(1-_*Math.sin(p)*Math.sin(p)),o=Math.tan(p)*Math.tan(p),h=s*Math.cos(p)*Math.cos(p),u=.99330562*g/Math.pow(1-_*Math.sin(p)*Math.sin(p),1.5),l=y/(a*d);var M=p-a*Math.tan(p)/u*(l*l/2-(5+3*o+10*h-4*h*h-9*s)*l*l*l*l/24+(61+90*o+298*h+45*o*o-1.6983531815716497-3*h*h)*l*l*l*l*l*l/720);M=Dt(M);var w,E=(l-(1+2*o+h)*l*l*l/6+(5-2*h+28*o-3*h*h+8*s+24*o*o)*l*l*l*l*l/120)/Math.cos(p);if(E=c+Dt(E),t.accuracy){var x=Bt({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});w={top:x.lat,right:x.lon,bottom:M,left:E}}else w={lat:M,lon:E};return w}function Ut(t){var n=t%6;return 0===n&&(n=6),n}function Wt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var n,e=t.length,i=null,r="",s=0;!/[A-Z]/.test(n=t.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+t;r+=n,s++}var a=parseInt(r,10);if(0===s||s+3>e)throw"MGRSPoint bad conversion from: "+t;var o=t.charAt(s++);if(o<="A"||"B"===o||"Y"===o||o>="Z"||"I"===o||"O"===o)throw"MGRSPoint zone letter "+o+" not handled: "+t;i=t.substring(s,s+=2);for(var h=Ut(a),u=function(t,n){for(var e=It.charCodeAt(n-1),i=1e5,r=!1;e!==t.charCodeAt(0);){if(++e===Rt&&e++,e===Tt&&e++,e>90){if(r)throw"Bad character: "+t;e=Ot,r=!0}i+=1e5}return i}(i.charAt(0),h),l=function(t,n){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var e=jt.charCodeAt(n-1),i=0,r=!1;e!==t.charCodeAt(0);){if(++e===Rt&&e++,e===Tt&&e++,e>86){if(r)throw"Bad character: "+t;e=Ot,r=!0}i+=1e5}return i}(i.charAt(1),h);l<Ht(o);)l+=2e6;var c=e-s;if(c%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var f,p,d,g=c/2,_=0,m=0;return g>0&&(f=1e5/Math.pow(10,g),p=t.substring(s,s+g),_=parseFloat(p)*f,d=t.substring(s+g),m=parseFloat(d)*f),{easting:_+u,northing:m+l,zoneLetter:o,zoneNumber:a,accuracy:f}}function Ht(t){var n;switch(t){case"C":n=11e5;break;case"D":n=2e6;break;case"E":n=28e5;break;case"F":n=37e5;break;case"G":n=46e5;break;case"H":n=55e5;break;case"J":n=64e5;break;case"K":n=73e5;break;case"L":n=82e5;break;case"M":n=91e5;break;case"N":n=0;break;case"P":n=8e5;break;case"Q":n=17e5;break;case"R":n=26e5;break;case"S":n=35e5;break;case"T":n=44e5;break;case"U":n=53e5;break;case"V":n=62e5;break;case"W":n=7e6;break;case"X":n=79e5;break;default:n=-1}if(n>=0)return n;throw"Invalid zone letter: "+t}function Xt(t,n,e){if(!(this instanceof Xt))return new Xt(t,n,e);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===n){var i=t.split(",");this.x=parseFloat(i[0]),this.y=parseFloat(i[1]),this.z=parseFloat(i[2])||0}else this.x=t,this.y=n,this.z=e||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Xt.fromMGRS=function(t){return new Xt(zt(t))},Xt.prototype.toMGRS=function(t){return Lt([this.x,this.y],t)};const Vt=Xt;var Qt=.046875,Kt=.01953125,Yt=.01068115234375;function Zt(t){var n=[];n[0]=1-t*(.25+t*(Qt+t*(Kt+t*Yt))),n[1]=t*(.75-t*(Qt+t*(Kt+t*Yt)));var e=t*t;return n[2]=e*(.46875-t*(.013020833333333334+.007120768229166667*t)),e*=t,n[3]=e*(.3645833333333333-.005696614583333333*t),n[4]=e*t*.3076171875,n}function Jt(t,n,e,i){return e*=n,n*=n,i[0]*t-e*(i[1]+n*(i[2]+n*(i[3]+n*i[4])))}function $t(t,n,e){for(var i=1/(1-n),r=t,s=20;s;--s){var a=Math.sin(r),h=1-n*a*a;if(r-=h=(Jt(r,a,Math.cos(r),e)-t)*(h*Math.sqrt(h))*i,Math.abs(h)<o)return r}return r}const tn={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Zt(this.es),this.ml0=Jt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var n,e,i,r=t.x,s=t.y,a=H(r-this.long0,this.over),h=Math.sin(s),u=Math.cos(s);if(this.es){var l=u*a,c=Math.pow(l,2),f=this.ep2*Math.pow(u,2),p=Math.pow(f,2),d=Math.abs(u)>o?Math.tan(s):0,g=Math.pow(d,2),_=Math.pow(g,2);n=1-this.es*Math.pow(h,2),l/=Math.sqrt(n);var m=Jt(s,h,u,this.en);e=this.a*(this.k0*l*(1+c/6*(1-g+f+c/20*(5-18*g+_+14*f-58*g*f+c/42*(61+179*_-_*g-479*g)))))+this.x0,i=this.a*(this.k0*(m-this.ml0+h*a*l/2*(1+c/12*(5-g+9*f+4*p+c/30*(61+_-58*g+270*f-330*g*f+c/56*(1385+543*_-_*g-3111*g))))))+this.y0}else{var y=u*Math.sin(a);if(Math.abs(Math.abs(y)-1)<o)return 93;if(e=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,i=u*Math.cos(a)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(i))>=1){if(y-1>o)return 93;i=0}else i=Math.acos(i);s<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=e,t.y=i,t},inverse:function(t){var n,e,i,r,s=(t.x-this.x0)*(1/this.a),h=(t.y-this.y0)*(1/this.a);if(this.es)if(e=$t(n=this.ml0+h/this.k0,this.es,this.en),Math.abs(e)<a){var u=Math.sin(e),l=Math.cos(e),c=Math.abs(l)>o?Math.tan(e):0,f=this.ep2*Math.pow(l,2),p=Math.pow(f,2),d=Math.pow(c,2),g=Math.pow(d,2);n=1-this.es*Math.pow(u,2);var _=s*Math.sqrt(n)/this.k0,m=Math.pow(_,2);i=e-(n*=c)*m/(1-this.es)*.5*(1-m/12*(5+3*d-9*f*d+f-4*p-m/30*(61+90*d-252*f*d+45*g+46*f-m/56*(1385+3633*d+4095*g+1574*g*d)))),r=H(this.long0+_*(1-m/6*(1+2*d+f-m/20*(5+28*d+24*g+8*f*d+6*f-m/42*(61+662*d+1320*g+720*g*d))))/l,this.over)}else i=a*W(h),r=0;else{var y=Math.exp(s/this.k0),v=.5*(y-1/y),M=this.lat0+h/this.k0,w=Math.cos(M);n=Math.sqrt((1-Math.pow(w,2))/(1+Math.pow(v,2))),i=Math.asin(n),h<0&&(i=-i),r=0===v&&0===w?0:H(Math.atan2(v,w)+this.long0,this.over)}return t.x=r,t.y=i,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function nn(t){var n=Math.exp(t);return(n-1/n)/2}function en(t,n){t=Math.abs(t),n=Math.abs(n);var e=Math.max(t,n),i=Math.min(t,n)/(e||1);return e*Math.sqrt(1+Math.pow(i,2))}function rn(t,n){for(var e,i=2*Math.cos(2*n),r=t.length-1,s=t[r],a=0;--r>=0;)e=i*s-a+t[r],a=s,s=e;return n+e*Math.sin(2*n)}function sn(t,n,e){for(var i,r,s=Math.sin(n),a=Math.cos(n),o=nn(e),h=function(t){var n=Math.exp(t);return(n+1/n)/2}(e),u=2*a*h,l=-2*s*o,c=t.length-1,f=t[c],p=0,d=0,g=0;--c>=0;)i=d,r=p,f=u*(d=f)-i-l*(p=g)+t[c],g=l*d-r+u*p;return[(u=s*h)*f-(l=a*o)*g,u*g+l*f]}const an={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(tn.init.apply(this),this.forward=tn.forward,this.inverse=tn.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),n=t/(2-t),e=n;this.cgb[0]=n*(2+n*(-2/3+n*(n*(116/45+n*(26/45+n*(-2854/675)))-2))),this.cbg[0]=n*(n*(2/3+n*(4/3+n*(-82/45+n*(32/45+n*(4642/4725)))))-2),e*=n,this.cgb[1]=e*(7/3+n*(n*(-227/45+n*(2704/315+n*(2323/945)))-1.6)),this.cbg[1]=e*(5/3+n*(-16/15+n*(-13/9+n*(904/315+n*(-1522/945))))),e*=n,this.cgb[2]=e*(56/15+n*(-136/35+n*(-1262/105+n*(73814/2835)))),this.cbg[2]=e*(-26/15+n*(34/21+n*(1.6+n*(-12686/2835)))),e*=n,this.cgb[3]=e*(4279/630+n*(-332/35+n*(-399572/14175))),this.cbg[3]=e*(1237/630+n*(n*(-24832/14175)-2.4)),e*=n,this.cgb[4]=e*(4174/315+n*(-144838/6237)),this.cbg[4]=e*(-734/315+n*(109598/31185)),e*=n,this.cgb[5]=e*(601676/22275),this.cbg[5]=e*(444337/155925),e=Math.pow(n,2),this.Qn=this.k0/(1+n)*(1+e*(1/4+e*(1/64+e/256))),this.utg[0]=n*(n*(2/3+n*(-37/96+n*(1/360+n*(81/512+n*(-96199/604800)))))-.5),this.gtu[0]=n*(.5+n*(-2/3+n*(5/16+n*(41/180+n*(-127/288+n*(7891/37800)))))),this.utg[1]=e*(-1/48+n*(-1/15+n*(437/1440+n*(-46/105+n*(1118711/3870720))))),this.gtu[1]=e*(13/48+n*(n*(557/1440+n*(281/630+n*(-1983433/1935360)))-.6)),e*=n,this.utg[2]=e*(-17/480+n*(37/840+n*(209/4480+n*(-5569/90720)))),this.gtu[2]=e*(61/240+n*(-103/140+n*(15061/26880+n*(167603/181440)))),e*=n,this.utg[3]=e*(-4397/161280+n*(11/504+n*(830251/7257600))),this.gtu[3]=e*(49561/161280+n*(-179/168+n*(6601661/7257600))),e*=n,this.utg[4]=e*(-4583/161280+n*(108847/3991680)),this.gtu[4]=e*(34729/80640+n*(-3418889/1995840)),e*=n,this.utg[5]=e*(-20648693/638668800),this.gtu[5]=.6650675310896665*e;var i=rn(this.cbg,this.lat0);this.Zb=-this.Qn*(i+function(t,n){for(var e,i=2*Math.cos(n),r=t.length-1,s=t[r],a=0;--r>=0;)e=i*s-a+t[r],a=s,s=e;return Math.sin(n)*e}(this.gtu,2*i))},forward:function(t){var n=H(t.x-this.long0,this.over),e=t.y;e=rn(this.cbg,e);var i=Math.sin(e),r=Math.cos(e),s=Math.sin(n),a=Math.cos(n);e=Math.atan2(i,a*r),n=Math.atan2(s*r,en(i,r*a)),n=function(t){var n=Math.abs(t);return n=function(t){var n=1+t,e=n-1;return 0===e?t:t*Math.log(n)/e}(n*(1+n/(en(1,n)+1))),t<0?-n:n}(Math.tan(n));var o,h,u=sn(this.gtu,2*e,2*n);return e+=u[0],n+=u[1],Math.abs(n)<=2.623395162778?(o=this.a*(this.Qn*n)+this.x0,h=this.a*(this.Qn*e+this.Zb)+this.y0):(o=1/0,h=1/0),t.x=o,t.y=h,t},inverse:function(t){var n,e,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var s=sn(this.utg,2*r,2*i);r+=s[0],i+=s[1],i=Math.atan(nn(i));var a=Math.sin(r),o=Math.cos(r),h=Math.sin(i),u=Math.cos(i);r=Math.atan2(a*u,en(h,u*o)),n=H((i=Math.atan2(h,u*o))+this.long0,this.over),e=rn(this.cgb,r)}else n=1/0,e=1/0;return t.x=n,t.y=e,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]},on={init:function(){var t=function(t,n){if(void 0===t){if((t=Math.floor(30*(H(n)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*h,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,an.init.apply(this),this.forward=an.forward,this.inverse=an.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function hn(t,n){return Math.pow((1-t)/(1+t),n)}const un={init:function(){var t=Math.sin(this.lat0),n=Math.cos(this.lat0);n*=n,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*n*n/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+l)/(Math.pow(Math.tan(.5*this.lat0+l),this.C)*hn(this.e*t,this.ratexp))},forward:function(t){var n=t.x,e=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*e+l),this.C)*hn(this.e*Math.sin(e),this.ratexp))-a,t.x=this.C*n,t},inverse:function(t){for(var n=t.x/this.C,e=t.y,i=Math.pow(Math.tan(.5*e+l)/this.K,1/this.C),r=20;r>0&&(e=2*Math.atan(i*hn(this.e*Math.sin(t.y),-.5*this.e))-a,!(Math.abs(e-t.y)<1e-14));--r)t.y=e;return r?(t.x=n,t.y=e,t):null},names:["gauss"]},ln={init:function(){un.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var n,e,i,r;return t.x=H(t.x-this.long0,this.over),un.forward.apply(this,[t]),n=Math.sin(t.y),e=Math.cos(t.y),i=Math.cos(t.x),r=this.k0*this.R2/(1+this.sinc0*n+this.cosc0*e*i),t.x=r*e*Math.sin(t.x),t.y=r*(this.cosc0*n-this.sinc0*e*i),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var n,e,i,r,s;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,s=en(t.x,t.y)){var a=2*Math.atan2(s,this.R2);n=Math.sin(a),e=Math.cos(a),r=Math.asin(e*this.sinc0+t.y*n*this.cosc0/s),i=Math.atan2(t.x*n,s*this.cosc0*e-t.y*this.sinc0*n)}else r=this.phic0,i=0;return t.x=i,t.y=r,un.inverse.apply(this,[t]),t.x=H(t.x+this.long0,this.over),t}
vendor: 26,403 bytes, line 1
1,names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function cn(t,n,e){return n*=e,Math.tan(.5*(a+t))*Math.pow((1-n)/(1+n),.5*e)}const fn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=o&&(this.k0=.5*(1+W(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=o&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=o&&Math.abs(Math.cos(this.lat_ts))>o&&(this.k0=.5*this.cons*U(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/X(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=U(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(cn(this.lat0,this.sinlat0,this.e))-a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var n,e,i,r,s,h,u=t.x,l=t.y,c=Math.sin(l),f=Math.cos(l),p=H(u-this.long0,this.over);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=o&&Math.abs(l+this.lat0)<=o?(t.x=NaN,t.y=NaN,t):this.sphere?(n=2*this.k0/(1+this.sinlat0*c+this.coslat0*f*Math.cos(p)),t.x=this.a*n*f*Math.sin(p)+this.x0,t.y=this.a*n*(this.coslat0*c-this.sinlat0*f*Math.cos(p))+this.y0,t):(e=2*Math.atan(cn(l,c,this.e))-a,r=Math.cos(e),i=Math.sin(e),Math.abs(this.coslat0)<=o?(s=X(this.e,l*this.con,this.con*c),h=2*this.a*this.k0*s/this.cons,t.x=this.x0+h*Math.sin(u-this.long0),t.y=this.y0-this.con*h*Math.cos(u-this.long0),t):(Math.abs(this.sinlat0)<o?(n=2*this.a*this.k0/(1+r*Math.cos(p)),t.y=n*i):(n=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(p))),t.y=n*(this.cosX0*i-this.sinX0*r*Math.cos(p))+this.y0),t.x=n*r*Math.sin(p)+this.x0,t))},inverse:function(t){var n,e,i,r,s;t.x-=this.x0,t.y-=this.y0;var h=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var u=2*Math.atan(h/(2*this.a*this.k0));return n=this.long0,e=this.lat0,h<=o?(t.x=n,t.y=e,t):(e=Math.asin(Math.cos(u)*this.sinlat0+t.y*Math.sin(u)*this.coslat0/h),n=Math.abs(this.coslat0)<o?this.lat0>0?H(this.long0+Math.atan2(t.x,-1*t.y),this.over):H(this.long0+Math.atan2(t.x,t.y),this.over):H(this.long0+Math.atan2(t.x*Math.sin(u),h*this.coslat0*Math.cos(u)-t.y*this.sinlat0*Math.sin(u)),this.over),t.x=n,t.y=e,t)}if(Math.abs(this.coslat0)<=o){if(h<=o)return e=this.lat0,n=this.long0,t.x=n,t.y=e,t;t.x*=this.con,t.y*=this.con,i=h*this.cons/(2*this.a*this.k0),e=this.con*V(this.e,i),n=this.con*H(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else r=2*Math.atan(h*this.cosX0/(2*this.a*this.k0*this.ms1)),n=this.long0,h<=o?s=this.X0:(s=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/h),n=H(this.long0+Math.atan2(t.x*Math.sin(r),h*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)),this.over)),e=-1*V(this.e,Math.tan(.5*(a+s)));return t.x=n,t.y=e,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:cn},pn={init:function(){var t=this.lat0;this.lambda0=this.long0;var n=Math.sin(t),e=this.a,i=1/this.rf,r=2*i-Math.pow(i,2),s=this.e=Math.sqrt(r);this.R=this.k0*e*Math.sqrt(1-r)/(1-r*Math.pow(n,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(n/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),o=Math.log(Math.tan(Math.PI/4+t/2)),h=Math.log((1+s*n)/(1-s*n));this.K=a-this.alpha*o+this.alpha*s/2*h},forward:function(t){var n=Math.log(Math.tan(Math.PI/4-t.y/2)),e=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(n+e)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),a=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(s))),o=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(s));return t.y=this.R/2*Math.log((1+Math.sin(o))/(1-Math.sin(o)))+this.y0,t.x=this.R*a+this.x0,t},inverse:function(t){for(var n=t.x-this.x0,e=t.y-this.y0,i=n/this.R,r=2*(Math.atan(Math.exp(e/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),a=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),o=this.lambda0+a/this.alpha,h=0,u=s,l=-1e3,c=0;Math.abs(u-l)>1e-7;){if(++c>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),l=u,u=2*Math.atan(Math.exp(h))-Math.PI/2}return t.x=o,t.y=u,t},names:["somerc"]};var dn=1e-7;const gn={init:function(){var t,n,e,i,r,s,h,u,f,p,d,g,_,m,y=0,v=0,M=0,w=0,E=0,x=0,S=0;this.no_off=(_=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],m="object"==typeof(g=this).projName?Object.keys(g.projName)[0]:g.projName,"no_uoff"in g||"no_off"in g||-1!==_.indexOf(m)||-1!==_.indexOf(tt(m))),this.no_rot="no_rot"in this;var b=!1;"alpha"in this&&(b=!0);var P=!1;if("rectified_grid_angle"in this&&(P=!0),b&&(S=this.alpha),P&&(y=this.rectified_grid_angle),b||P)v=this.longc;else if(M=this.long1,E=this.lat1,w=this.long2,x=this.lat2,Math.abs(E-x)<=dn||(t=Math.abs(E))<=dn||Math.abs(t-a)<=dn||Math.abs(Math.abs(this.lat0)-a)<=dn||Math.abs(Math.abs(x)-a)<=dn)throw new Error;var G=1-this.es;n=Math.sqrt(G),Math.abs(this.lat0)>o?(u=Math.sin(this.lat0),e=Math.cos(this.lat0),t=1-this.es*u*u,this.B=e*e,this.B=Math.sqrt(1+this.es*this.B*this.B/G),this.A=this.B*this.k0*n/t,(r=(i=this.B*n/(e*Math.sqrt(t)))*i-1)<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=i,this.E*=Math.pow(X(this.e,this.lat0,u),this.B)):(this.B=1/n,this.A=this.k0,this.E=i=r=1),b||P?(b?(d=Math.asin(Math.sin(S)/i),P||(y=S)):(d=y,S=Math.asin(i*Math.sin(d))),this.lam0=v-Math.asin(.5*(r-1/r)*Math.tan(d))/this.B):(s=Math.pow(X(this.e,E,Math.sin(E)),this.B),h=Math.pow(X(this.e,x,Math.sin(x)),this.B),r=this.E/s,f=(h-s)/(h+s),p=((p=this.E*this.E)-h*s)/(p+h*s),(t=M-w)<-Math.PI?w-=c:t>Math.PI&&(w+=c),this.lam0=H(.5*(M+w)-Math.atan(p*Math.tan(.5*this.B*(M-w))/f)/this.B,this.over),d=Math.atan(2*Math.sin(this.B*H(M-this.lam0,this.over))/(r-1/r)),y=S=Math.asin(i*Math.sin(d))),this.singam=Math.sin(d),this.cosgam=Math.cos(d),this.sinrot=Math.sin(y),this.cosrot=Math.cos(y),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(i*i-1)/Math.cos(S))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*d,this.v_pole_n=this.ArB*Math.log(Math.tan(l-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(l+r))},forward:function(t){var n,e,i,r,s,h,u,l,c={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-a)>o){if(n=.5*((s=this.E/Math.pow(X(this.e,t.y,Math.sin(t.y)),this.B))-(h=1/s)),e=.5*(s+h),r=Math.sin(this.B*t.x),i=(n*this.singam-r*this.cosgam)/e,Math.abs(Math.abs(i)-1)<o)throw new Error;l=.5*this.ArB*Math.log((1-i)/(1+i)),h=Math.cos(this.B*t.x),u=Math.abs(h)<dn?this.A*t.x:this.ArB*Math.atan2(n*this.cosgam+r*this.singam,h)}else l=t.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*t.y;return this.no_rot?(c.x=u,c.y=l):(u-=this.u_0,c.x=l*this.cosrot+u*this.sinrot,c.y=u*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(t){var n,e,i,r,s,h,u,l={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(e=t.y,n=t.x):(e=t.x*this.cosrot-t.y*this.sinrot,n=t.y*this.cosrot+t.x*this.sinrot+this.u_0),r=.5*((i=Math.exp(-this.BrA*e))-1/i),s=.5*(i+1/i),u=((h=Math.sin(this.BrA*n))*this.cosgam+r*this.singam)/s,Math.abs(Math.abs(u)-1)<o)l.x=0,l.y=u<0?-a:a;else{if(l.y=this.E/Math.sqrt((1+u)/(1-u)),l.y=V(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(r*this.cosgam-h*this.singam,Math.cos(this.BrA*n))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},mn={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<o)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var n=Math.sin(this.lat1),e=Math.cos(this.lat1),i=U(this.e,n,e),r=X(this.e,this.lat1,n),s=Math.sin(this.lat2),h=Math.cos(this.lat2),u=U(this.e,s,h),l=X(this.e,this.lat2,s),c=Math.abs(Math.abs(this.lat0)-a)<o?0:X(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>o?this.ns=Math.log(i/u)/Math.log(r/l):this.ns=n,isNaN(this.ns)&&(this.ns=n),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var n=t.x,e=t.y;Math.abs(2*Math.abs(e)-Math.PI)<=o&&(e=W(e)*(a-2e-10));var i,r,s=Math.abs(Math.abs(e)-a);if(s>o)i=X(this.e,e,Math.sin(e)),r=this.a*this.f0*Math.pow(i,this.ns);else{if((s=e*this.ns)<=0)return null;r=0}var h=this.ns*H(n-this.long0,this.over);return t.x=this.k0*(r*Math.sin(h))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(h))+this.y0,t},inverse:function(t){var n,e,i,r,s,o=(t.x-this.x0)/this.k0,h=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(n=Math.sqrt(o*o+h*h),e=1):(n=-Math.sqrt(o*o+h*h),e=-1);var u=0;if(0!==n&&(u=Math.atan2(e*o,e*h)),0!==n||this.ns>0){if(e=1/this.ns,i=Math.pow(n/(this.a*this.f0),e),-9999===(r=V(this.e,i)))return null}else r=-a;return s=H(u/this.ns+this.long0,this.over),t.x=s,t.y=r,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},yn={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var n,e,i,r,s,a,o,h=t.x,u=t.y,l=H(h-this.long0,this.over);return n=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),e=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/n)-this.s45),i=-l*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(e)+Math.sin(this.ad)*Math.cos(e)*Math.cos(i)),s=Math.asin(Math.cos(e)*Math.sin(i)/Math.cos(r)),a=this.n*s,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=o*Math.cos(a)/1,t.x=o*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var n,e,i,r,s,a,o,h=t.x;t.x=t.y,t.y=h,this.czech||(t.y*=-1,t.x*=-1),s=Math.sqrt(t.x*t.x+t.y*t.y),r=Math.atan2(t.y,t.x)/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),n=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),e=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(n)),t.x=this.long0-e/this.alfa,a=n,o=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(n/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(o=1),a=t.y,u+=1}while(0===o&&u<15);return u>=15?null:t},names:["Krovak","Krovak Modified","Krovak (North Orientated)","Krovak Modified (North Orientated)","krovak"]};function vn(t,n,e,i,r){return t*r-n*Math.sin(2*r)+e*Math.sin(4*r)-i*Math.sin(6*r)}function Mn(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function wn(t){return.375*t*(1+.25*t*(1+.46875*t))}function En(t){return.05859375*t*t*(1+.75*t)}function xn(t){return t*t*t*(35/3072)}function Sn(t,n,e){var i=n*e;return t/Math.sqrt(1-i*i)}function bn(t){return Math.abs(t)<a?t:t-W(t)*Math.PI}function Pn(t,n,e,i,r){var s,a;s=t/n;for(var o=0;o<15;o++)if(s+=a=(t-(n*s-e*Math.sin(2*s)+i*Math.sin(4*s)-r*Math.sin(6*s)))/(n-2*e*Math.cos(2*s)+4*i*Math.cos(4*s)-6*r*Math.cos(6*s)),Math.abs(a)<=1e-10)return s;return NaN}const Gn={init:function(){this.sphere||(this.e0=Mn(this.es),this.e1=wn(this.es),this.e2=En(this.es),this.e3=xn(this.es),this.ml0=this.a*vn(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var n,e,i=t.x,r=t.y;if(i=H(i-this.long0,this.over),this.sphere)n=this.a*Math.asin(Math.cos(r)*Math.sin(i)),e=this.a*(Math.atan2(Math.tan(r),Math.cos(i))-this.lat0);else{var s=Math.sin(r),a=Math.cos(r),o=Sn(this.a,this.e,s),h=Math.tan(r)*Math.tan(r),u=i*Math.cos(r),l=u*u,c=this.es*a*a/(1-this.es);n=o*u*(1-l*h*(1/6-(8-h+8*c)*l/120)),e=this.a*vn(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+o*s/a*l*(.5+(5-h+6*c)*l/24)}return t.x=n+this.x0,t.y=e+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var n,e,i=t.x/this.a,r=t.y/this.a;if(this.sphere){var s=r+this.lat0;n=Math.asin(Math.sin(s)*Math.cos(i)),e=Math.atan2(Math.tan(i),Math.cos(s))}else{var h=Pn(this.ml0/this.a+r,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(h)-a)<=o)return t.x=this.long0,t.y=a,r<0&&(t.y*=-1),t;var u=Sn(this.a,this.e,Math.sin(h)),l=u*u*u/this.a/this.a*(1-this.es),c=Math.pow(Math.tan(h),2),f=i*this.a/u,p=f*f;n=h-u*Math.tan(h)/l*f*f*(.5-(1+3*c)*f*f/24),e=f*(1-p*(c/3+(1+3*c)*c*p/15))/Math.cos(h)}return t.x=H(e+this.long0,this.over),t.y=bn(n),t},names:["Cassini","Cassini_Soldner","cass"]};function Nn(t,n){var e;return t>1e-7?(1-t*t)*(n/(1-(e=t*n)*e)-.5/t*Math.log((1-e)/(1+e))):2*n}const An={init:function(){var t,n=Math.abs(this.lat0);if(Math.abs(n-a)<o?this.mode=this.lat0<0?1:2:Math.abs(n)<o?this.mode=3:this.mode=4,this.es>0)switch(this.qp=Nn(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var n,e=[];return e[0]=.3333333333333333*t,n=t*t,e[0]+=.17222222222222222*n,e[1]=.06388888888888888*n,n*=t,e[0]+=.10257936507936508*n,e[1]+=.0664021164021164*n,e[2]=.016415012942191543*n,e}(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Nn(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var n,e,i,r,s,h,u,c,f,p,d=t.x,g=t.y;if(d=H(d-this.long0,this.over),this.sphere){if(s=Math.sin(g),p=Math.cos(g),i=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((e=this.mode===this.EQUIT?1+p*i:1+this.sinph0*s+this.cosph0*p*i)<=o)return null;n=(e=Math.sqrt(2/e))*p*Math.sin(d),e*=this.mode===this.EQUIT?s:this.cosph0*s-this.sinph0*p*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(g+this.lat0)<o)return null;e=l-.5*g,n=(e=2*(this.mode===this.S_POLE?Math.cos(e):Math.sin(e)))*Math.sin(d),e*=i}}else{switch(u=0,c=0,f=0,i=Math.cos(d),r=Math.sin(d),s=Math.sin(g),h=Nn(this.e,s),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(u=h/this.qp,c=Math.sqrt(1-u*u)),this.mode){case this.OBLIQ:f=1+this.sinb1*u+this.cosb1*c*i;break;case this.EQUIT:f=1+c*i;break;case this.N_POLE:f=a+g,h=this.qp-h;break;case this.S_POLE:f=g-a,h=this.qp+h}if(Math.abs(f)<o)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:f=Math.sqrt(2/f),e=this.mode===this.OBLIQ?this.ymf*f*(this.cosb1*u-this.sinb1*c*i):(f=Math.sqrt(2/(1+c*i)))*u*this.ymf,n=this.xmf*f*c*r;break;case this.N_POLE:case this.S_POLE:h>=0?(n=(f=Math.sqrt(h))*r,e=i*(this.mode===this.S_POLE?f:-f)):n=e=0}}return t.x=this.a*n+this.x0,t.y=this.a*e+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var n,e,i,r,s,h,u,l,c,f,p=t.x/this.a,d=t.y/this.a;if(this.sphere){var g,_=0,m=0;if((e=.5*(g=Math.sqrt(p*p+d*d)))>1)return null;switch(e=2*Math.asin(e),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(m=Math.sin(e),_=Math.cos(e)),this.mode){case this.EQUIT:e=Math.abs(g)<=o?0:Math.asin(d*m/g),p*=m,d=_*g;break;case this.OBLIQ:e=Math.abs(g)<=o?this.lat0:Math.asin(_*this.sinph0+d*m*this.cosph0/g),p*=m*this.cosph0,d=(_-Math.sin(e)*this.sinph0)*g;break;case this.N_POLE:d=-d,e=a-e;break;case this.S_POLE:e-=a}n=0!==d||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(p,d):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(p/=this.dd,d*=this.dd,(h=Math.sqrt(p*p+d*d))<o)return t.x=this.long0,t.y=this.lat0,t;r=2*Math.asin(.5*h/this.rq),i=Math.cos(r),p*=r=Math.sin(r),this.mode===this.OBLIQ?(u=i*this.sinb1+d*r*this.cosb1/h,s=this.qp*u,d=h*this.cosb1*i-d*this.sinb1*r):(u=d*r/h,s=this.qp*u,d=h*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(d=-d),!(s=p*p+d*d))return t.x=this.long0,t.y=this.lat0,t;u=1-s/this.qp,this.mode===this.S_POLE&&(u=-u)}n=Math.atan2(p,d),f=(l=Math.asin(u))+l,e=l+(c=this.apa)[0]*Math.sin(f)+c[1]*Math.sin(f+f)+c[2]*Math.sin(f+f+f)}return t.x=H(this.long0+n,this.over),t.y=e,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function kn(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const Cn={init:function(){Math.abs(this.lat1+this.lat2)<o||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=U(this.e3,this.sin_po,this.cos_po),this.qs1=Nn(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=U(this.e3,this.sin_po,this.cos_po),this.qs2=Nn(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Nn(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>o?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var n=t.x,e=t.y;this.sin_phi=Math.sin(e),this.cos_phi=Math.cos(e);var i=Nn(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,s=this.ns0*H(n-this.long0,this.over),a=r*Math.sin(s)+this.x0,o=this.rh-r*Math.cos(s)+this.y0;return t.x=a,t.y=o,t},inverse:function(t){var n,e,i,r,s,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==n&&(r=Math.atan2(i*t.x,i*t.y)),i=n*this.ns0/this.a,this.sphere?a=Math.asin((this.c-i*i)/(2*this.ns0)):(e=(this.c-i*i)/this.ns0,a=this.phi1z(this.e3,e)),s=H(r/this.ns0+this.long0,this.over),t.x=s,t.y=a,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,n){var e,i,r,s,a=kn(.5*n);if(t<o)return a;for(var h=t*t,u=1;u<=25;u++)if(a+=s=.5*(r=1-(i=t*(e=Math.sin(a)))*i)*r/Math.cos(a)*(n/(1-h)-e/r+.5/t*Math.log((1-i)/(1+i))),Math.abs(s)<=1e-7)return a;return null}},In={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var n,e,i,r,s,a,h,u=t.x,l=t.y;return i=H(u-this.long0,this.over),n=Math.sin(l),e=Math.cos(l),r=Math.cos(i),(s=this.sin_p14*n+this.cos_p14*e*r)>0||Math.abs(s)<=o?(a=this.x0+1*this.a*e*Math.sin(i)/s,h=this.y0+1*this.a*(this.cos_p14*n-this.sin_p14*e*r)/s):(a=this.x0+this.infinity_dist*e*Math.sin(i),h=this.y0+this.infinity_dist*(this.cos_p14*n-this.sin_p14*e*r)),t.x=a,t.y=h,t},inverse:function(t){var n,e,i,r,s,a;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(n=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(n,this.rc),e=Math.sin(r),a=kn((i=Math.cos(r))*this.sin_p14+t.y*e*this.cos_p14/n),s=Math.atan2(t.x*e,n*this.cos_p14*i-t.y*this.sin_p14*e),s=H(this.long0+s,this.over)):(a=this.phic0,s=0),t.x=s,t.y=a,t},names:["gnom"]},jn={init:function(){this.sphere||(this.k0=U(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var n,e,i=t.x,r=t.y,s=H(i-this.long0,this.over);if(this.sphere)n=this.x0+this.a*s*Math.cos(this.lat_ts),e=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var a=Nn(this.e,Math.sin(r));n=this.x0+this.a*this.k0*s,e=this.y0+this.a*a*.5/this.k0}return t.x=n,t.y=e,t},inverse:function(t){var n,e;return t.x-=this.x0,t.y-=this.y0,this.sphere?(n=H(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),e=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(e=function(t,n){var e=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(n)-e)<1e-6)return n<0?-1*a:a;for(var i,r,s,o,h=Math.asin(.5*n),u=0;u<30;u++)if(r=Math.sin(h),s=Math.cos(h),o=t*r,h+=i=Math.pow(1-o*o,2)/(2*s)*(n/(1-t*t)-r/(1-o*o)+.5/t*Math.log((1-o)/(1+o))),Math.abs(i)<=1e-10)return h;return NaN}(this.e,2*t.y*this.k0/this.a),n=H(this.long0+t.x/(this.a*this.k0),this.over)),t.x=n,t.y=e,t},names:["cea"]},On={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var n=t.x,e=t.y,i=H(n-this.long0,this.over),r=bn(e-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t},inverse:function(t){var n=t.x,e=t.y;return t.x=H(this.long0+(n-this.x0)/(this.a*this.rc),this.over),t.y=bn(this.lat0+(e-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]},Rn={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Mn(this.es),this.e1=wn(this.es),this.e2=En(this.es),this.e3=xn(this.es),this.ml0=this.a*vn(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var n,e,i,r=t.x,s=t.y,a=H(r-this.long0,this.over);if(i=a*Math.sin(s),this.sphere)Math.abs(s)<=o?(n=this.a*a,e=-1*this.a*this.lat0):(n=this.a*Math.sin(i)/Math.tan(s),e=this.a*(bn(s-this.lat0)+(1-Math.cos(i))/Math.tan(s)));else if(Math.abs(s)<=o)n=this.a*a,e=-1*this.ml0;else{var h=Sn(this.a,this.e,Math.sin(s))/Math.tan(s);n=h*Math.sin(i),e=this.a*vn(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+h*(1-Math.cos(i))}return t.x=n+this.x0,t.y=e+this.y0,t},inverse:function(t){var n,e,i,r,s,a,h,u,l;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=o)n=H(i/this.a+this.long0,this.over),e=0;else{var c;for(a=this.lat0+r/this.a,h=i*i/this.a/this.a+a*a,u=a,s=20;s;--s)if(u+=l=-1*(a*(u*(c=Math.tan(u))+1)-u-.5*(u*u+h)*c)/((u-a)/c-1),Math.abs(l)<=o){e=u;break}n=H(this.long0+Math.asin(i*Math.tan(u)/this.a)/Math.sin(e),this.over)}else if(Math.abs(r+this.ml0)<=o)e=0,n=H(this.long0+i/this.a,this.over);else{var f,p,d,g,_;for(a=(this.ml0+r)/this.a,h=i*i/this.a/this.a+a*a,u=a,s=20;s;--s)if(_=this.e*Math.sin(u),f=Math.sqrt(1-_*_)*Math.tan(u),p=this.a*vn(this.e0,this.e1,this.e2,this.e3,u),d=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(a*(f*(g=p/this.a)+1)-g-.5*f*(g*g+h))/(this.es*Math.sin(2*u)*(g*g+h-2*a*g)/(4*f)+(a-g)*(f*d-2/Math.sin(2*u))-d),Math.abs(l)<=o){e=u;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(e),2))*Math.tan(e),n=H(this.long0+Math.asin(i*f/this.a)/Math.sin(e),this.over)}return t.x=n,t.y=e,t},names:["Polyconic","American_Polyconic","poly"]},Tn={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var n,e=t.x,i=t.y-this.lat0,r=e-this.long0,a=i/s*1e-5,o=r,h=1,u=0;for(n=1;n<=10;n++)h*=a,u+=this.A[n]*h;var l,c=u,f=o,p=1,d=0,g=0,_=0;for(n=1;n<=6;n++)l=d*c+p*f,p=p*c-d*f,d=l,g=g+this.B_re[n]*p-this.B_im[n]*d,_=_+this.B_im[n]*p+this.B_re[n]*d;return t.x=_*this.a+this.x0,t.y=g*this.a+this.y0,t},inverse:function(t){var n,e,i=t.x,r=t.y,a=i-this.x0,o=(r-this.y0)/this.a,h=a/this.a,u=1,l=0,c=0,f=0;for(n=1;n<=6;n++)e=l*o+u*h,u=u*o-l*h,l=e,c=c+this.C_re[n]*u-this.C_im[n]*l,f=f+this.C_im[n]*u+this.C_re[n]*l;for(var p=0;p<this.iterations;p++){var d,g=c,_=f,m=o,y=h;for(n=2;n<=6;n++)d=_*c+g*f,g=g*c-_*f,_=d,m+=(n-1)*(this.B_re[n]*g-this.B_im[n]*_),y+=(n-1)*(this.B_im[n]*g+this.B_re[n]*_);g=1,_=0;var v=this.B_re[1],M=this.B_im[1];for(n=2;n<=6;n++)d=_*c+g*f,g=g*c-_*f,_=d,v+=n*(this.B_re[n]*g-this.B_im[n]*_),M+=n*(this.B_im[n]*g+this.B_re[n]*_);var w=v*v+M*M;c=(m*v+y*M)/w,f=(y*v-m*M)/w}var E=c,x=f,S=1,b=0;for(n=1;n<=9;n++)S*=E,b+=this.D[n]*S;var P=this.lat0+b*s*1e5,G=this.long0+x;return t.x=G,t.y=P,t},names:["New_Zealand_Map_Grid","nzmg"]},qn={init:function(){},forward:function(t){var n=t.x,e=t.y,i=H(n-this.long0,this.over),r=this.x0+this.a*i,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+e/2.5))*1.25;return t.x=r,t.y=s,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var n=H(this.long0+t.x/this.a,this.over),e=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=n,t.y=e,t},names:["Miller_Cylindrical","mill"]},Ln={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Zt(this.es)},forward:function(t){var n,e,i=t.x,r=t.y;if(i=H(i-this.long0,this.over),this.sphere){if(this.m)for(var s=this.n
vendor: 4,013 bytes, line 1
1*Math.sin(r),a=20;a;--a){var h=(this.m*r+Math.sin(r)-s)/(this.m+Math.cos(r));if(r-=h,Math.abs(h)<o)break}else r=1!==this.n?Math.asin(this.n*Math.sin(r)):r;n=this.a*this.C_x*i*(this.m+Math.cos(r)),e=this.a*this.C_y*r}else{var u=Math.sin(r),l=Math.cos(r);e=this.a*Jt(r,u,l,this.en),n=this.a*i*l/Math.sqrt(1-this.es*u*u)}return t.x=n,t.y=e,t},inverse:function(t){var n,e,i;return t.x-=this.x0,e=t.x/this.a,t.y-=this.y0,n=t.y/this.a,this.sphere?(n/=this.C_y,e/=this.C_x*(this.m+Math.cos(n)),this.m?n=kn((this.m*n+Math.sin(n))/this.n):1!==this.n&&(n=kn(Math.sin(n)/this.n)),e=H(e+this.long0,this.over),n=bn(n)):(n=$t(t.y/this.a,this.es,this.en),(i=Math.abs(n))<a?(i=Math.sin(n),e=H(this.long0+t.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(n)),this.over)):i-o<a&&(e=this.long0)),t.x=e,t.y=n,t},names:["Sinusoidal","sinu"]},zn={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){for(var n=t.x,e=t.y,i=H(n-this.long0,this.over),r=e,s=Math.PI*Math.sin(e);;){var a=-(r+Math.sin(r)-s)/(1+Math.cos(r));if(r+=a,Math.abs(a)<o)break}r/=2,Math.PI/2-Math.abs(e)<o&&(i=0);var h=.900316316158*this.a*i*Math.cos(r)+this.x0,u=1.4142135623731*this.a*Math.sin(r)+this.y0;return t.x=h,t.y=u,t},inverse:function(t){var n,e;t.x-=this.x0,t.y-=this.y0,e=t.y/(1.4142135623731*this.a),Math.abs(e)>.999999999999&&(e=.999999999999),n=Math.asin(e);var i=H(this.long0+t.x/(.900316316158*this.a*Math.cos(n)),this.over);i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),e=(2*n+Math.sin(2*n))/Math.PI,Math.abs(e)>1&&(e=1);var r=Math.asin(e);return t.x=i,t.y=r,t},names:["Mollweide","moll"]},Fn={init:function(){Math.abs(this.lat1+this.lat2)<o||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Mn(this.es),this.e1=wn(this.es),this.e2=En(this.es),this.e3=xn(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=U(this.e,this.sin_phi,this.cos_phi),this.ml1=vn(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<o?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=U(this.e,this.sin_phi,this.cos_phi),this.ml2=vn(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=vn(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var n,e=t.x,i=t.y;if(this.sphere)n=this.a*(this.g-i);else{var r=vn(this.e0,this.e1,this.e2,this.e3,i);n=this.a*(this.g-r)}var s=this.ns*H(e-this.long0,this.over),a=this.x0+n*Math.sin(s),o=this.y0+this.rh-n*Math.cos(s);return t.x=a,t.y=o,t},inverse:function(t){var n,e,i,r;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),n=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),n=-1);var s=0;return 0!==e&&(s=Math.atan2(n*t.x,n*t.y)),this.sphere?(r=H(this.long0+s/this.ns,this.over),i=bn(this.g-e/this.a),t.x=r,t.y=i,t):(i=Pn(this.g-e/this.a,this.e0,this.e1,this.e2,this.e3),r=H(this.long0+s/this.ns,this.over),t.x=r,t.y=i,t)},names:["Equidistant_Conic","eqdc"]},Dn={init:function(){this.R=this.a},forward:function(t){var n,e,i=t.x,r=t.y,s=H(i-this.long0,this.over);Math.abs(r)<=o&&(n=this.x0+this.R*s,e=this.y0);var h=kn(2*Math.abs(r/Math.PI));(Math.abs(s)<=o||Math.abs(Math.abs(r)-a)<=o)&&(n=this.x0,e=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*h):this.y0+Math.PI*this.R*-Math.tan(.5*h));var u=.5*Math.abs(Math.PI/s-s/Math.PI),l=u*u,c=Math.sin(h),f=Math.cos(h),p=f/(c+f-1),d=p*p,g=p*(2/c-1),_=g*g,m=Math.PI*this.R*(u*(p-_)+Math.sqrt(l*(p-_)*(p-_)-(_+l)*(d-_)))/(_+l);s<0&&(m=-m),n=this.x0+m;var y=l+p;return m=Math.PI*this.R*(g*y-u*Math.sqrt((_+l)*(l+1)-y*y))/(_+l),e=r>=0?this.y0+m:this.y0-m,t.x=n,t.y=e,t},inverse:function(t){var n,e,i,r,s,a,h,u,l,c,f,p;return t.x-=this.x0,t.y-=this.y0,f=Math.PI*this.R,s=(i=t.x/f)*i+(r=t.y/f)*r,f=3*(r*r/(u=-2*(a=-Math.abs(r)*(1+s))+1+2*r*r+s*s)+(2*(h=a-2*r*r+i*i)*h*h/u/u/u-9*a*h/u/u)/27)/(l
vendor: 4,597 bytes, line 1
1=(a-h*h/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(f)>1&&(f=f>=0?1:-1),p=Math.acos(f)/3,e=t.y>=0?(-c*Math.cos(p+Math.PI/3)-h/3/u)*Math.PI:-(-c*Math.cos(p+Math.PI/3)-h/3/u)*Math.PI,n=Math.abs(i)<o?this.long0:H(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(i*i-r*r)+s*s))/2/i,this.over),t.x=n,t.y=e,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]},Bn={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(t){var n,e,i,r,s,h,u,l,c,f,p,d=t.x,g=t.y,_=Math.sin(t.y),m=Math.cos(t.y),y=H(d-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=o?(t.x=this.x0+this.a*(a-g)*Math.sin(y),t.y=this.y0-this.a*(a-g)*Math.cos(y),t):Math.abs(this.sin_p12+1)<=o?(t.x=this.x0+this.a*(a+g)*Math.sin(y),t.y=this.y0+this.a*(a+g)*Math.cos(y),t):(c=this.sin_p12*_+this.cos_p12*m*Math.cos(y),l=(u=Math.acos(c))?u/Math.sin(u):1,t.x=this.x0+this.a*l*m*Math.sin(y),t.y=this.y0+this.a*l*(this.cos_p12*_-this.sin_p12*m*Math.cos(y)),t):(n=Mn(this.es),e=wn(this.es),i=En(this.es),r=xn(this.es),Math.abs(this.sin_p12-1)<=o?(s=this.a*vn(n,e,i,r,a),h=this.a*vn(n,e,i,r,g),t.x=this.x0+(s-h)*Math.sin(y),t.y=this.y0-(s-h)*Math.cos(y),t):Math.abs(this.sin_p12+1)<=o?(s=this.a*vn(n,e,i,r,a),h=this.a*vn(n,e,i,r,g),t.x=this.x0+(s+h)*Math.sin(y),t.y=this.y0+(s+h)*Math.cos(y),t):Math.abs(d)<o&&Math.abs(g-this.lat0)<o?(t.x=t.y=0,t):(f=function(t,n,e,i,r,s){const a=i-n,o=Math.atan((1-s)*Math.tan(t)),h=Math.atan((1-s)*Math.tan(e)),u=Math.sin(o),l=Math.cos(o),c=Math.sin(h),f=Math.cos(h);let p,d,g,_,m,y,v,M,w,E,x,S,b,P,G,N=a,A=100;do{if(d=Math.sin(N),g=Math.cos(N),_=Math.sqrt(f*d*(f*d)+(l*c-u*f*g)*(l*c-u*f*g)),0===_)return{azi1:0,s12:0};m=u*c+l*f*g,y=Math.atan2(_,m),v=l*f*d/_,M=1-v*v,w=0!==M?m-2*u*c/M:0,E=s/16*M*(4+s*(4-3*M)),p=N,N=a+(1-E)*s*v*(y+E*_*(w+E*m*(2*w*w-1)))}while(Math.abs(N-p)>1e-12&&--A>0);return 0===A?{azi1:NaN,s12:NaN}:(x=M*(r*r-r*(1-s)*(r*(1-s)))/(r*(1-s)*(r*(1-s))),S=1+x/16384*(4096+x*(x*(320-175*x)-768)),b=x/1024*(256+x*(x*(74-47*x)-128)),P=b*_*(w+b/4*(m*(2*w*w-1)-b/6*w*(4*_*_-3)*(4*w*w-3))),G=r*(1-s)*S*(y-P),{azi1:Math.atan2(f*d,l*c-u*f*g),s12:G})}(this.lat0,this.long0,g,d,this.a,this.f),p=f.azi1,t.x=f.s12*Math.sin(p),t.y=f.s12*Math.cos(p),t))},inverse:function(t){var n,e,i,r,s,h,u,l,c,f,p,d,g,_,m;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((n=Math.sqrt(t.x*t.x+t.y*t.y))>2*a*this.a)return;return e=n/this.a,i=Math.sin(e),r=Math.cos(e),s=this.long0,Math.abs(n)<=o?h=this.lat0:(h=kn(r*this.sin_p12+t.y*i*this.cos_p12/n),u=Math.abs(this.lat0)-a,s=Math.abs(u)<=o?this.lat0>=0?H(this.long0+Math.atan2(t.x,-t.y),this.over):H(this.long0-Math.atan2(-t.x,t.y),this.over):H(this.long0+Math.atan2(t.x*i,n*this.cos_p12*r-t.y*this.sin_p12*i),this.over)),t.x=s,t.y=h,t}return l=Mn(this.es),c=wn(this.es),f=En(this.es),p=xn(this.es),Math.abs(this.sin_p12-1)<=o?(h=Pn(((d=this.a*vn(l,c,f,p,a))-(n=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,l,c,f,p),s=H(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=s,t.y=h,t):Math.abs(this.sin_p12+1)<=o?(d=this.a*vn(l,c,f,p,a),h=Pn(((n=Math.sqrt(t.x*t.x+t.y*t.y))-d)/this.a,l,c,f,p),s=H(this.long0+Math.atan2(t.x,t.y),this.over),t.x=s,t.y=h,t):(g=Math.atan2(t.x,t.y),_=Math.sqrt(t.x*t.x+t.y*t.y),m=function(t,n,e,i,r,s){const a=Math.atan((1-s)*Math.tan(t)),o=Math.sin(a),h=Math.cos(a),u=Math.sin(e),l=Math.cos(e),c=Math.atan2(o,h*l),f=h*u,p=1-f*f,d=p*(r*r-r*(1-s)*(r*(1-s)))/(r*(1-s)*(r*(1-s))),g=1+d/16384*(4096+d*(d*(320-175*d)-768)),_=d/1024*(256+d*(d*(74-47*d)-128));let m,y,v,M,w,E=i/(r*(1-s)*g),x=100;do{y=Math.cos(2*c+E),v=Math.sin(E),M=Math.cos(E),w=_*v*(y+_/4*(M*(2*y*y-1)-_/6*y*(4*v*v-3)*(4*y*y-3))),m=E,E=i/(r*(1-s)*g)+w}while(Math.abs(E-m)>1e-12&&--x>0);if(0===x)return{lat2:NaN,lon2:NaN};const S=o*v-h*M*l,b=s/16*p*(4+s*(4-3*p));return{lat2:Math.atan2(o*M+h*v*l,(1-s)*Math.sqrt(f*f+S*S)),lon2:n+(Math.atan2(v*u,h*M-o*v*l)-(1-b)*s*f*(E+b*v*(y+b*M*(2*y*y-1))))}}(this.lat0,this.long0,g,_,this.a,this.f),t.x=m.lon2,t.y=m.lat2,t)},names:["Azimuthal_Equidistant","aeqd"]},Un={init:function(){this.sin_p14=Math.sin(this.lat0||0),this.cos_p14=Math.cos(this.lat0||0)},forward:function(t){var n,e,i,r,s,a,h,u=t.x,l=t.y;return i=H(u-(this.long0||0),this.over),n=Math.sin(l),e=Math.cos(l),r=Math.cos(i),((s=this.sin_p14*n+this.cos_p14*e*r)>0||Math.abs(s)<=o)&&(a=1*this.a*e*Math.sin(i),h=(this.y0||0)+1*this.a*(this.cos_p14*n-this.sin_p14*e*r)),t.x=a,t.y=h,t},inverse:function(t){var n,e,i,r,s,h,u,l,c;return t.x-=this.x0||0,t.y-=this.y0||0,e=kn((n=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),i=Math.sin(e),r=Math.cos(e),l=this.long0||0,c=this.lat0||0,h=l,Math.abs(n)<=o?(u=c,t.x=
vendor: 4,155 bytes, line 1
1h,t.y=u,t):(u=kn(r*this.sin_p14+t.y*i*this.cos_p14/n),s=Math.abs(c)-a,Math.abs(s)<=o?(h=H(c>=0?l+Math.atan2(t.x,-t.y):l-Math.atan2(-t.x,t.y),this.over),t.x=h,t.y=u,t):(h=H(l+Math.atan2(t.x*i,n*this.cos_p14*r-t.y*this.sin_p14*i),this.over),t.x=h,t.y=u,t))},names:["ortho"]};function Wn(t,n,e,i){var r;return t<o?(i.value=1,r=0):(r=Math.atan2(n,e),Math.abs(r)<=l?i.value=1:r>l&&r<=a+l?(i.value=2,r-=a):r>a+l||r<=-(a+l)?(i.value=3,r=r>=0?r-f:r+f):(i.value=4,r+=a)),r}function Hn(t,n){var e=t+n;return e<-f?e+=c:e>+f&&(e-=c),e}const Xn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=a-l/2?this.face=5:this.lat0<=-(a-l/2)?this.face=6:Math.abs(this.long0)<=l?this.face=1:Math.abs(this.long0)<=a+l?this.face=this.long0>0?2:4:this.face=3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var n,e,i,r,s,o,h={x:0,y:0},u={value:0};if(t.x-=this.long0,n=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,e=t.x,5===this.face)r=a-n,e>=l&&e<=a+l?(u.value=1,i=e-a):e>a+l||e<=-(a+l)?(u.value=2,i=e>0?e-f:e+f):e>-(a+l)&&e<=-l?(u.value=3,i=e+a):(u.value=4,i=e);else if(6===this.face)r=a+n,e>=l&&e<=a+l?(u.value=1,i=-e+a):e<l&&e>=-l?(u.value=2,i=-e):e<-l&&e>=-(a+l)?(u.value=3,i=-e-a):(u.value=4,i=e>0?-e+f:-e-f);else{var c,p,d,g,_,m;2===this.face?e=Hn(e,+a):3===this.face?e=Hn(e,+f):4===this.face&&(e=Hn(e,-a)),g=Math.sin(n),_=Math.cos(n),m=Math.sin(e),c=_*Math.cos(e),p=_*m,d=g,1===this.face?i=Wn(r=Math.acos(c),d,p,u):2===this.face?i=Wn(r=Math.acos(p),d,-c,u):3===this.face?i=Wn(r=Math.acos(-c),d,-p,u):4===this.face?i=Wn(r=Math.acos(-p),d,c,u):(r=i=0,u.value=1)}return o=Math.atan(12/f*(i+Math.acos(Math.sin(i)*Math.cos(l))-a)),s=Math.sqrt((1-Math.cos(r))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(i))))),2===u.value?o+=a:3===u.value?o+=f:4===u.value&&(o+=1.5*f),h.x=s*Math.cos(o),h.y=s*Math.sin(o),h.x=h.x*this.a+this.x0,h.y=h.y*this.a+this.y0,t.x=h.x,t.y=h.y,t},inverse:function(t){var n,e,i,r,s,o,h,u,l,c,p,d,g={lam:0,phi:0},_={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,e=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),n=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?_.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(_.value=2,n-=a):t.x<0&&-t.x>=Math.abs(t.y)?(_.value=3,n=n<0?n+f:n-f):(_.value=4,n+=a),l=f/12*Math.tan(n),s=Math.sin(l)/(Math.cos(l)-1/Math.sqrt(2)),o=Math.atan(s),(h=1-(i=Math.cos(n))*i*(r=Math.tan(e))*r*(1-Math.cos(Math.atan(1/Math.cos(o)))))<-1?h=-1:h>1&&(h=1),5===this.face)u=Math.acos(h),g.phi=a-u,1===_.value?g.lam=o+a:2===_.value?g.lam=o<0?o+f:o-f:3===_.value?g.lam=o-a:g.lam=o;else if(6===this.face)u=Math.acos(h),g.phi=u-a,1===_.value?g.lam=-o+a:2===_.value?g.lam=-o:3===_.value?g.lam=-o-a:g.lam=o<0?-o-f:-o+f;else{var m,y,v;l=(m=h)*m,y=(l+=(v=l>=1?0:Math.sqrt(1-l)*Math.sin(o))*v)>=1?0:Math.sqrt(1-l),2===_.value?(l=y,y=-v,v=l):3===_.value?(y=-y,v=-v):4===_.value&&(l=y,y=v,v=-l),2===this.face?(l=m,m=-y,y=l):3===this.face?(m=-m,y=-y):4===this.face&&(l=m,m=y,y=-l),g.phi=Math.acos(-v)-a,g.lam=Math.atan2(y,m),2===this.face?g.lam=Hn(g.lam,-a):3===this.face?g.lam=Hn(g.lam,-f):4===this.face&&(g.lam=Hn(g.lam,+a))}return 0!==this.es&&(c=g.phi<0?1:0,p=Math.tan(g.phi),d=this.b/Math.sqrt(p*p+this.one_minus_f_squared),g.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),c&&(g.phi=-g.phi)),g.lam+=this.long0,t.x=g.lam,t.y=g.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var Vn=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00
vendor: 11,849 bytes, line 1
1798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Qn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Kn=.8487,Yn=1.3523,Zn=u/5,Jn=1/Zn,$n=function(t,n){return t[0]+n*(t[1]+n*(t[2]+n*t[3]))};const te={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var n=H(t.x-this.long0,this.over),e=Math.abs(t.y),i=Math.floor(e*Zn);i<0?i=0:i>=18&&(i=17);var r={x:$n(Vn[i],e=u*(e-Jn*i))*n,y:$n(Qn[i],e)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*Kn+this.x0,r.y=r.y*this.a*Yn+this.y0,r},inverse:function(t){var n={x:(t.x-this.x0)/(this.a*Kn),y:Math.abs(t.y-this.y0)/(this.a*Yn)};if(n.y>=1)n.x/=Vn[18][0],n.y=t.y<0?-a:a;else{var e=Math.floor(18*n.y);for(e<0?e=0:e>=18&&(e=17);;)if(Qn[e][0]>n.y)--e;else{if(!(Qn[e+1][0]<=n.y))break;++e}var i=Qn[e],r=5*(n.y-i[0])/(Qn[e+1][0]-i[0]);r=function(t,n,e,i){for(var r=n;i;--i){var s=t(r);if(r-=s,Math.abs(s)<1e-10)break}return r}(function(t){return($n(i,t)-n.y)/function(t,n){return t[1]+n*(2*t[2]+3*n*t[3])}(i,t)},r,0,100),n.x/=$n(Vn[e],r),n.y=(5*e+r)*h,t.y<0&&(n.y=-n.y)}return n.x=H(n.x+this.long0,this.over),n},names:["Robinson","robin"]},ne={init:function(){this.name="geocent"},forward:function(t){return vt(t,this.es,this.a)},inverse:function(t){return Mt(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var ee={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const ie={init:function(){if(Object.keys(ee).forEach(function(t){if(void 0===this[t])this[t]=ee[t].def;else{if(ee[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);ee[t].num&&(this[t]=parseFloat(this[t]))}ee[t].degrees&&(this[t]=this[t]*h)}.bind(this)),Math.abs(Math.abs(this.lat0)-a)<o?this.mode=this.lat0<0?1:0:Math.abs(this.lat0)<o?this.mode=2:(this.mode=3,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,n=this.azi;this.cg=Math.cos(n),this.sg=Math.sin(n),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var n,e,i,r,s=Math.sin(t.y),a=Math.cos(t.y),o=Math.cos(t.x);switch(this.mode){case 3:e=this.sinph0*s+this.cosph0*a*o;break;case 2:e=a*o;break;case 1:e=-s;break;case 0:e=s}switch(n=(e=this.pn1/(this.p-e))*a*Math.sin(t.x),this.mode){case 3:e*=this.cosph0*s-this.sinph0*a*o;break;case 2:e*=s;break;case 0:e*=-a*o;break;case 1:e*=a*o}return r=1/((i=e*this.cg+n*this.sg)*this.sw*this.h1+this.cw),n=(n*this.cg-e*this.sg)*this.cw*r,e=i*r,t.x=n*this.a,t.y=e*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var n,e,i,r={x:t.x,y:t.y};i=1/(this.pn1-t.y*this.sw),n=this.pn1*t.x*i,e=this.pn1*t.y*this.cw*i,t.x=n*this.cg+e*this.sg,t.y=e*this.cg-n*this.sg;var s=en(t.x,t.y);if(Math.abs(s)<o)r.x=0,r.y=t.y;else{var a,h;switch(h=1-s*s*this.pfact,h=(this.p-Math.sqrt(h))/(this.pn1/s+s/this.pn1),a=Math.sqrt(1-h*h),this.mode){case 3:r.y=Math.asin(a*this.sinph0+t.y*h*this.cosph0/s),t.y=(a-this.sinph0*Math.sin(r.y))*s,t.x*=h*this.cosph0;break;case 2:r.y=Math.asin(t.y*h/s),t.y=a*s,t.x*=h;break;case 0:r.y=Math.asin(a),t.y=-t.y;break;case 1:r.y=-Math.asin(a)}r.x=Math.atan2(t.x,t.y)}return t.x=r.x+this.long0,t.y=r.y,t},names:["Tilted_Perspective","tpers"]},re={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,n=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=n,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var n,e,i,r,s=t.x,a=t.y;if(s-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var o=this.radius_p/en(this.radius_p*Math.cos(a),Math.sin(a));if(e=o*Math.cos(s)*Math.cos(a),i=o*Math.sin(s)*Math.cos(a),r=o*Math.sin(a),(this.radius_g-e)*e-i*i-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;n=this.radius_g-e,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/en(r,n)),t.y=this.radius_g_1*Math.atan(r/n)):(t.x=this.radius_g_1*Math.atan(i/n),t.y=this.radius_g_1*Math.atan(r/en(i,n)))}else"sphere"===this.shape&&(n=Math.cos(a),e=Math.cos(s)*n,i=Math.sin(s)*n,r=Math.sin(a),n=this.radius_g-e,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/en(r,n)),t.y=this.radius_g_1*Math.atan(r/n)):(t.x=this.radius_g_1*Math.atan(i/n),t.y=this.radius_g_1*Math.atan(r/en(i,n))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var n,e,i,r,s=-1,a=0,o=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(o=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*en(1,o)):(a=Math.tan(t.x/this.radius_g_1),o=Math.tan(t.y/this.radius_g_1)*en(1,a));var h=o/this.radius_p;if(n=a*a+h*h+s*s,(i=(e=2*this.radius_g*s)*e-4*n*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-e-Math.sqrt(i))/(2*n),s=this.radius_g+r*s,a*=r,o*=r,t.x=Math.atan2(a,s),t.y=Math.atan(o*Math.cos(t.x)/s),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(o=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+o*o)):(a=Math.tan(t.x/this.radius_g_1),o=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+a*a)),n=a*a+o*o+s*s,(i=(e=2*this.radius_g*s)*e-4*n*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-e-Math.sqrt(i))/(2*n),s=this.radius_g+r*s,a*=r,o*=r,t.x=Math.atan2(a,s),t.y=Math.atan(o*Math.cos(t.x)/s)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var se=1.340264,ae=-.081106,oe=893e-6,he=.003796,ue=Math.sqrt(3)/2;const le={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0},forward:function(t){var n=H(t.x-this.long0,this.over),e=t.y,i=Math.asin(ue*Math.sin(e)),r=i*i,s=r*r*r;return t.x=n*Math.cos(i)/(ue*(se+3*ae*r+s*(7*oe+9*he*r))),t.y=i*(se+ae*r+s*(oe+he*r)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var n,e,i,r,s=t.y;for(r=0;r<12&&(s-=i=(s*(se+ae*(n=s*s)+(e=n*n*n)*(oe+he*n))-t.y)/(se+3*ae*n+e*(7*oe+9*he*n)),!(Math.abs(i)<1e-9));++r);return e=(n=s*s)*n*n,t.x=ue*t.x*(se+3*ae*n+e*(7*oe+9*he*n))/Math.cos(s),t.y=Math.asin(Math.sin(s)/ue),t.x=H(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]};var ce=1e-10;function fe(t){var n,e,i,r=H(t.x-(this.long0||0),this.over),s=t.y;return n=this.am1+this.m1-Jt(s,e=Math.sin(s),i=Math.cos(s),this.en),e=i*r/(n*Math.sqrt(1-this.es*e*e)),t.x=n*Math.sin(e),t.y=this.am1-n*Math.cos(e),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function pe(t){var n,e,i,r;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,e=en(t.x,t.y=this.am1-t.y),r=$t(this.am1+this.m1-e,this.es,this.en),(n=Math.abs(r))<a)n=Math.sin(r),i=e*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*n*n)/Math.cos(r);else{if(!(Math.abs(n-a)<=ce))throw new Error;i=0}return t.x=H(i+(this.long0||0),this.over),t.y=bn(r),t}function de(t){var n,e,i=H(t.x-(this.long0||0),this.over),r=t.y;return e=this.cphi1+this.phi1-r,Math.abs(e)>ce?(t.x=e*Math.sin(n=i*Math.cos(r)/e),t.y=this.cphi1-e*Math.cos(n)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function ge(t){var n,e;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i=en(t.x,t.y=this.cphi1-t.y);if(e=this.cphi1+this.phi1-i,Math.abs(e)>a)throw new Error;return n=Math.abs(Math.abs(e)-a)<=ce?0:i*Math.atan2(t.x,t.y)/Math.cos(e),t.x=H(n+(this.long0||0),this.over),t.y=bn(e),t}const _e={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<ce)throw new Error;this.es?(this.en=Zt(this.es),this.m1=Jt(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=pe,this.forward=fe):(Math.abs(this.phi1)+ce>=a?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=ge,this.forward=de)},names:["bonne","Bonne (Werner lat_1=90)"]},me={OBLIQUE:{forward:function(t,n){let{x:e,y:i}=n;e+=t.long0;const r=Math.cos(e),s=Math.sin(i),a=Math.cos(i);n.x=H(Math.atan2(a*Math.sin(e),t.sphip*a*r+t.cphip*s)+t.lamp),n.y=Math.asin(t.sphip*s-t.cphip*a*r);const o=t.obliqueProjection.forward(n);return t.isIdentity&&(o.x*=u,o.y*=u),o},inverse:function(t,n){t.isIdentity&&(n.x*=h,n.y*=h);const e=t.obliqueProjection.inverse(n);let{x:i,y:r}=e;if(i<Number.MAX_VALUE){i-=t.lamp;const e=Math.cos(i),s=Math.sin(r),a=Math.cos(r);n.x=Math.atan2(a*Math.sin(i),t.sphip*a*e-t.cphip*s),n.y=Math.asin(t.sphip*s+t.cphip*a*e)}return n.x=H(n.x+t.long0),n}},TRANSVERSE:{forward:function(t,n){let{x:e,y:i}=n;e+=t.long0;const r=Math.cos(i),s=Math.cos(e);n.x=H(Math.atan2(r*Math.sin(e),Math.sin(i))+t.lamp),n.y=Math.asin(-1*r*s);const a=t.obliqueProjection.forward(n);return t.isIdentity&&(a.x*=u,a.y*=u),a},inverse:function(t,n){t.isIdentity&&(n.x*=h,n.y*=h);const e=t.obliqueProjection.inverse(n);let{x:i,y:r}=e;if(i<Number.MAX_VALUE){const e=Math.cos(r);i-=t.lamp,n.x=Math.atan2(e*Math.sin(i),-1*Math.sin(r)),n.y=Math.asin(e*Math.cos(i))}return n.x=H(n.x+t.long0),n}}},ye={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}},ve={init:function(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=K.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const t=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),n=yt(t);if(!n)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let e;n.long0=0,this.obliqueProjection=n;const i=Object.keys(ye),r=t=>{if(void 0===this[t])return;const n=parseFloat(this[t])*h;if(isNaN(n))throw new Error("Invalid value for "+t+": "+this[t]);return n};for(let t=0;t<i.length;t++){const n=i[t],s=ye[n],a=Object.entries(s);if(a.some(([t])=>void 0!==this[t])){e=s;for(let t=0;t<a.length;t++){const[n,e]=a[t],i=r(n);if(void 0===i)throw new Error("Missing parameter: "+n+".");this[e]=i}break}}if(!e)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:s,phip:u}=function(t,n){let e,i;if(n===ye.ROTATE){let n=t.oLongC,r=t.oLatC,s=t.oAlpha;if(Math.abs(Math.abs(r)-a)<=o)throw new Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");i=n+Math.atan2(-1*Math.cos(s),-1*Math.sin(s)*Math.sin(r)),e=Math.asin(Math.cos(r)*Math.sin(s))}else if(n===ye.NEW_POLE)i=t.oLongP,e=t.oLatP;
1else{let n=t.oLong1,r=t.oLat1,s=t.oLong2,h=t.oLat2,u=Math.abs(r);if(Math.abs(r)>a-o)throw new Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(h)>a-o)throw new Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(Math.abs(r-h)<o)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(u<o)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");i=Math.atan2(Math.cos(r)*Math.sin(h)*Math.cos(n)-Math.sin(r)*Math.cos(h)*Math.cos(s),Math.sin(r)*Math.cos(h)*Math.sin(s)-Math.cos(r)*Math.sin(h)*Math.sin(n)),e=Math.atan(-1*Math.cos(i-n)/Math.tan(r))}return{lamp:i,phip:e}}(this,e);this.lamp=s,Math.abs(u)>o?(this.cphip=Math.cos(u),this.sphip=Math.sin(u),this.projectionType=me.OBLIQUE):this.projectionType=me.TRANSVERSE},forward:function(t){return this.projectionType.forward(this,t)},inverse:function(t){return this.projectionType.inverse(this,t)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]},Me=Object.assign(function(t,n,e){var i,r,s,a=!1;return void 0===n?(r=Ct(t),i=At,a=!0):(void 0!==n.x||Array.isArray(n))&&(e=n,r=Ct(t),i=At,a=!0),i||(i=Ct(t)),r||(r=Ct(n)),e?kt(i,r,e):(s={forward:function(t,n){return kt(i,r,t,n)},inverse:function(t,n){return kt(r,i,t,n)}},a&&(s.oProj=r),s)},{defaultDatum:"WGS84",Proj:yt,WGS84:new yt("WGS84"),Point:Vt,toPoint:Pt,defs:F,nadgrid:function(t,n,e){return n instanceof ArrayBuffer?function(t,n,e){var i=!0;void 0!==e&&!1===e.includeErrorFields&&(i=!1);var r=new DataView(n),s=function(t){var n=t.getInt32(8,!1);return 11!==n&&(11!==(n=t.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(r),a=function(t,n){return{nFields:t.getInt32(8,n),nSubgridFields:t.getInt32(24,n),nSubgrids:t.getInt32(40,n),shiftType:pt(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,n),fromSemiMinorAxis:t.getFloat64(136,n),toSemiMajorAxis:t.getFloat64(152,n),toSemiMinorAxis:t.getFloat64(168,n)}}(r,s),o=function(t,n,e,i){for(var r=176,s=[],a=0;a<n.nSubgrids;a++){var o=gt(t,r,e),h=_t(t,r,o,e,i),u=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),l=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);s.push({ll:[ft(o.lowerLongitude),ft(o.lowerLatitude)],del:[ft(o.longitudeInterval),ft(o.latitudeInterval)],lim:[u,l],count:o.gridNodeCount,cvs:dt(h)});var c=16;!1===i&&(c=8),r+=176+o.gridNodeCount*c}return s}(r,a,s,i),h={header:a,subgrids:o};return ht[t]=h,h}(t,n,e):{ready:ut(t,n)}},transform:Nt,mgrs:qt,version:"__VERSION__"});var we;(we=Me).Proj.projections.add(tn),we.Proj.projections.add(an),we.Proj.projections.add(on),we.Proj.projections.add(ln),we.Proj.projections.add(fn),we.Proj.projections.add(pn),we.Proj.projections.add(gn),we.Proj.projections.add(mn),we.Proj.projections.add(yn),we.Proj.projections.add(Gn),we.Proj.projections.add(An),we.Proj.projections.add(Cn),we.Proj.projections.add(In),we.Proj.projections.add(jn),we.Proj.projections.add(On),we.Proj.projections.add(Rn),we.Proj.projections.add(Tn),we.Proj.projections.add(qn),we.Proj.projections.add(Ln),we.Proj.projections.add(zn),we.Proj.projections.add(Fn),we.Proj.projections.add(Dn),we.Proj.projections.add(Bn),we.Proj.projections.add(Un),we.Proj.projections.add(Xn),we.Proj.projections.add(te),we.Proj.projections.add(ne),we.Proj.projections.add(ie),we.Proj.projections.add(re),we.Proj.projections.add(le),we.Proj.projections.add(_e),we.Proj.projections.add(ve);const Ee=Me},2694(t,n,e){"use strict";var i=e(6925);function r(){}function s(){}s.resetWarningCache=r,t.exports=function(){function t(t,n,e,r,s,a){if(a!==i){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:s,resetWarningCache:r};return e.PropTypes=e,e}},5556(t,n,e){t.exports=e(2694)()},6925(t){"use strict";
1t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},99872(t,n,e){!function(t,n,e,i,r,s,a){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var h=o(n),u=o(e),l=function(t){if(t&&t.__esModule)return t;var n=Object.create(null);return t&&Object.keys(t).forEach(function(e){if("default"!==e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}}),n.default=t,Object.freeze(n)}(i);function c(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,i)}return e}function f(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?c(Object(e),!0).forEach(function(n){d(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function d(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function g(){return g=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},g.apply(this,arguments)}function _(t,n){if(null==t)return{};var e,i,r=function(t,n){if(null==t)return{};var e,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)e=s[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)e=s[i],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function m(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var i,r,s=[],a=!0,o=!1;try{for(e=e.call(t);!(a=(i=e.next()).done)&&(s.push(i.value),!n||s.length!==n);a=!0);}catch(t){o=!0,r=t}finally{try{a||null==e.return||e.return()}finally{if(o)throw r}}return s}}(t,n)||function(t,n){if(t){if("string"==typeof t)return y(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?y(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=t[e];return i}var v=["width","height","projection","projectionConfig"],M=l.geoPath,w=_(l,["geoPath"]),E=n.createContext(),x=function(t){var e=t.width,i=t.height,r=t.projection,s=t.projectionConfig,a=_(t,v),o=m(s.center||[],2),u=o[0],l=o[1],c=m(s.rotate||[],3),f=c[0],p=c[1],d=c[2],y=m(s.parallels||[],2),x=y[0],S=y[1],b=s.scale||null,P=n.useMemo(function(){return function(t){var n=t.projectionConfig,e=void 0===n?{}:n,i=t.projection,r=void 0===i?"geoEqualEarth":i,s=t.width,a=void 0===s?800:s,o=t.height,h=void 0===o?600:o;if("function"==typeof r)return r;var u=w[r]().translate([a/2,h/2]);return[u.center?"center":null,u.rotate?"rotate":null,u.scale?"scale":null,u.parallels?"parallels":null].forEach(function(t){t&&(u=u[t](e[t]||u[t]()))}),u}({projectionConfig:{center:u||0===u||l||0===l?[u,l]:null,rotate:f||0===f||p||0===p?[f,p,d]:null,parallels:x||0===x||S||0===S?[x,S]:null,scale:b},projection:r,width:e,height:i})},[e,i,r,u,l,f,p,d,x,S,b]),G=n.useCallback(P,[P]),N=n.useMemo(function(){return{width:e,height:i,projection:G,path:M().projection(G)}},[e,i,G]);return h.default.createElement(E.Provider,g({value:N},a))};x.propTypes={width:u.default.number,height:u.default.number,projection:u.default.oneOfType([u.default.string,u.default.func]),projectionConfig:u.default.object};var S=["width","height","projection","projectionConfig","className"],b=n.forwardRef(function(t,n){var e=t.width,i=void 0===e?800:e,r=t.height,s=void 0===r?600:r,a=t.projection,o=void 0===a?"geoEqualEarth":a,u=t.projectionConfig,l=void 0===u?{}:u,c=t.className,f=void 0===c?"":c,p=_(t,S);return h.default.createElement(x,{width:i,height:s,projection:o,projectionConfig:l},h.default.createElement("svg",g({ref:n,viewBox:"0 0 ".concat(i," ").concat(s),className:"rsm-svg ".concat(f)},p)))});function P(t,n,e){var i=(t*e.k-t)/2,r=(n*e.k-n)/2;return[t/2-(i+e.x)/e.k,n/2-(r+e.y)/e.k]}function G(t,n){if("Topology"!==t.type)return n?n(t.features||t):t.features||t;var e=r.feature(t,t.objects[Object.keys(t.objects)[0]]).features;return n?n(e):e}function N(t){return"Topology"===t.type?{outline:r.mesh(t,t.objects[Object.keys(t.objects)[0]],function(t,n){return t===n}),borders:r.mesh(t,t.objects[Object.keys(t.objects)[0]],function(t,n){return t!==n})}:null}function A(t,n){return t?t.map(function(t,e){return f(f({},t),{},{rsmKey:"geo-".concat(e),svgPath:n(t)})}):[]}function k(t){var e=t.geography,i=t.parseGeographies,r=n.useContext(E).path,s=m(n.useState({}),2),a=s[0],o=s[1];n.useEffect(function(){var t;"undefined"!==("undefined"==typeof window?"undefined":p(window))&&e&&("string"==typeof e?(t=e,fetch(t).then(function(t){if(!t.ok)throw Error(t.statusText);return t.json()}).catch(function(t){console.log("There was a problem when fetching the data: ",t)})).then(function(t){t&&o({geographies:G(t,i),mesh:N(t)})}):o({geographies:G(e,i),mesh:N(e)}))},[e,i]);var h=n.useMemo(function(){var t=a.mesh||{},n=function(t,n,e){return t&&n?{outline:f(f({},t),{},{rsmKey:"outline",svgPath:e(t)}),borders:f(f({},n),{},{rsmKey:"borders",svgPath:e(n)})}:{}}(t.outline,t.borders,r);return{geographies:A(a.geographies,r),outline:n.outline,borders:n.borders}},[a,r]);return{geographies:h.geographies,outline:h.outline,borders:h.borders}}b.displayName="ComposableMap",b.propTypes={width:u.default.number,height:u.default.number,projection:u.default.oneOfType([u.default.string,u.default.func]),projectionConfig:u.default.object,className:u.default.string};var C=["geography","children","parseGeographies","className"],I=n.forwardRef(function(t,e){var i=t.geography,r=t.children,s=t.parseGeographies,a=t.className,o=void 0===a?"":a,u=_(t,C),l=n.useContext(E),c=l.path,f=l.projection,p=k({geography:i,parseGeographies:s}),d=p.geographies,m=p.outline,y=p.borders;return h.default.createElement("g",g({ref:e,className:"rsm-geographies ".concat(o)},u),d&&d.length>0&&r({geographies:d,outline:m,borders:y,path:c,projection:f}))});I.displayName="Geographies",I.propTypes={geography:u.default.oneOfType([u.default.string,u.default.object,u.default.array]),children:u.default.func,parseGeographies:u.default.func,className:u.default.string};var j=["geography","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],O=n.forwardRef(function(t,e){var i=t.geography,r=t.onMouseEnter,s=t.onMouseLeave,a=t.onMouseDown,o=t.onMouseUp,u=t.onFocus,l=t.onBlur,c=t.style,f=void 0===c?{}:c,p=t.className,d=void 0===p?"":p,y=_(t,j),v=m(n.useState(!1),2),M=v[0],w=v[1],E=m(n.useState(!1),2),x=E[0],S=E[1];return h.default.createElement("path",g({ref:e,tabIndex:"0",className:"rsm-geography ".concat(d),d:i.svgPath,onMouseEnter:function(t){S(!0),r&&r(t)},onMouseLeave:function(t){S(!1),M&&w(!1),s&&s(t)},onFocus:function(t){S(!0),u&&u(t)},onBlur:function(t){S(!1),M&&w(!1),l&&l(t)}
1,onMouseDown:function(t){w(!0),a&&a(t)},onMouseUp:function(t){w(!1),o&&o(t)},style:f[M||x?M?"pressed":"hover":"default"]},y))});O.displayName="Geography",O.propTypes={geography:u.default.object,onMouseEnter:u.default.func,onMouseLeave:u.default.func,onMouseDown:u.default.func,onMouseUp:u.default.func,onFocus:u.default.func,onBlur:u.default.func,style:u.default.object,className:u.default.string};var R=n.memo(O),T=["fill","stroke","step","className"],q=n.forwardRef(function(t,e){var r=t.fill,s=void 0===r?"transparent":r,a=t.stroke,o=void 0===a?"currentcolor":a,u=t.step,l=void 0===u?[10,10]:u,c=t.className,f=void 0===c?"":c,p=_(t,T),d=n.useContext(E).path;return h.default.createElement("path",g({ref:e,d:d(i.geoGraticule().step(l)()),fill:s,stroke:o,className:"rsm-graticule ".concat(f)},p))});q.displayName="Graticule",q.propTypes={fill:u.default.string,stroke:u.default.string,step:u.default.array,className:u.default.string};var L=n.memo(q),z=["value"],F=n.createContext(),D={x:0,y:0,k:1,transformString:"translate(0 0) scale(1)"},B=function(t){var n=t.value,e=void 0===n?D:n,i=_(t,z);return h.default.createElement(F.Provider,g({value:e},i))};function U(t){var e=t.center,i=t.filterZoomEvent,r=t.onMoveStart,o=t.onMoveEnd,h=t.onMove,u=t.translateExtent,l=void 0===u?[[-1/0,-1/0],[1/0,1/0]]:u,c=t.scaleExtent,f=void 0===c?[1,8]:c,p=t.zoom,d=void 0===p?1:p,g=n.useContext(E),_=g.width,y=g.height,v=g.projection,M=m(e,2),w=M[0],x=M[1],S=m(n.useState({x:0,y:0,k:1}),2),b=S[0],G=S[1],N=n.useRef({x:0,y:0,k:1}),A=n.useRef(),k=n.useRef(),C=n.useRef(!1),I=m(l,2),j=I[0],O=I[1],R=m(j,2),T=R[0],q=R[1],L=m(O,2),z=L[0],F=L[1],D=m(f,2),B=D[0],U=D[1];return n.useEffect(function(){var t=a.select(A.current),n=s.zoom().filter(function(t){return i?i(t):!!t&&!t.ctrlKey&&!t.button}).scaleExtent([B,U]).translateExtent([[T,q],[z,F]]).on("start",function(t){r&&!C.current&&r({coordinates:v.invert(P(_,y,t.transform)),zoom:t.transform.k},t)}).on("zoom",function(t){if(!C.current){var n=t.transform,e=t.sourceEvent;G({x:n.x,y:n.y,k:n.k,dragging:e}),h&&h({x:n.x,y:n.y,zoom:n.k,dragging:e},t)}}).on("end",function(t){if(C.current)C.current=!1;else{var n=m(v.invert(P(_,y,t.transform)),2),e=n[0],i=n[1];N.current={x:e,y:i,k:t.transform.k},o&&o({coordinates:[e,i],zoom:t.transform.k},t)}});k.current=n,t.call(n)},[_,y,T,q,z,F,B,U,v,r,h,o,i]),n.useEffect(function(){if(w!==N.current.x||x!==N.current.y||d!==N.current.k){var t=v([w,x]),n=t[0]*d,e=t[1]*d,i=a.select(A.current);C.current=!0,i.call(k.current.transform,s.zoomIdentity.translate(_/2-n,y/2-e).scale(d)),G({x:_/2-n,y:y/2-e,k:d}),N.current={x:w,y:x,k:d}}},[w,x,d,_,y,v]),{mapRef:A,position:b,transformString:"translate(".concat(b.x," ").concat(b.y,") scale(").concat(b.k,")")}}B.propTypes={x:u.default.number,y:u.default.number,k:u.default.number,transformString:u.default.string};var W=["center","zoom","minZoom","maxZoom","translateExtent","filterZoomEvent","onMoveStart","onMove","onMoveEnd","className"],H=n.forwardRef(function(t,e){var i=t.center,r=void 0===i?[0,0]:i,s=t.zoom,a=void 0===s?1:s,o=t.minZoom,u=void 0===o?1:o,l=t.maxZoom,c=void 0===l?8:l,f=t.translateExtent,p=t.filterZoomEvent,d=t.onMoveStart,m=t.onMove,y=t.onMoveEnd,v=t.className,M=_(t,W),w=n.useContext(E),x=w.width,S=w.height,b=U({center:r,filterZoomEvent:p,onMoveStart:d,onMove:m,onMoveEnd:y,scaleExtent:[u,c],translateExtent:f,zoom:a}),P=b.mapRef,G=b.transformString,N=b.position;return h.default.createElement(B,{value:{x:N.x,y:N.y,k:N.k,transformString:G}},h.default.createElement("g",{ref:P},h.default.createElement("rect",{width:x,height:S,fill:"transparent"}),h.default.createElement("g",g({ref:e,transform:G,className:"rsm-zoomable-group ".concat(v)},M))))});H.displayName="ZoomableGroup",H.propTypes={center:u.default.array,zoom:u.default.number,minZoom:u.default.number,maxZoom:u.default.number,translateExtent:u.default.arrayOf(u.default.array),onMoveStart:u.default.func,onMove:u.default.func,onMoveEnd:u.default.func,className:u.default.string};var X=["id","fill","stroke","strokeWidth","className"],V=n.forwardRef(function(t,e){var i=t.id,r=void 0===i?"rsm-sphere":i,s=t.fill,a=void 0===s?"transparent":s,o=t.stroke,u=void 0===o?"currentcolor":o,l=t.strokeWidth,c=void 0===l?.5:l,f=t.className,p=void 0===f?"":f,d=_(t,X),m=n.useContext(E).path,y=n.useMemo(function(){return m({type:"Sphere"})},[m]);return h.default.createElement(n.Fragment,null,h.default.createElement("defs",null,h.default.createElement("clipPath",{id:r},h.default.createElement("path",{d:y}))),h.default.createElement("path",g({ref:e,d:y,fill:a,stroke:u,strokeWidth:c,style:{pointerEvents:"none"},className:"rsm-sphere ".concat(p)},d)))});V.displayName="Sphere",V.propTypes={id:u.default.string,fill:u.default.string,stroke:u.default.string,strokeWidth:u.default.number,className:u.default.string};var Q=n.memo(V),K=["coordinates","children","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],Y=n.forwardRef(function(t,e){var i=t.coordinates,r=t.children,s=t.onMouseEnter,a=t.onMouseLeave,o=t.onMouseDown,u=t.onMouseUp,l=t.onFocus,c=t.onBlur,f=t.style,p=void 0===f?{}:f,d=t.className,y=void 0===d?"":d,v=_(t,K),M=n.useContext(E).projection,w=m(n.useState(!1),2),x=w[0],S=w[1],b=m(n.useState(!1),2),P=b[0],G=b[1],N=m(M(i),2),A=N[0],k=N[1];return h.default.createElement("g",g({ref:e,transform:"translate(".concat(A,", ").concat(k,")"),className:"rsm-marker ".concat(y),onMouseEnter:function(t){G(!0),s&&s(t)},onMouseLeave:function(t){G(!1),x&&S(!1),a&&a(t)},onFocus:function(t){G(!0),l&&l(t)}
1,onBlur:function(t){G(!1),x&&S(!1),c&&c(t)},onMouseDown:function(t){S(!0),o&&o(t)},onMouseUp:function(t){S(!1),u&&u(t)},style:p[x||P?x?"pressed":"hover":"default"]},v),r)});Y.displayName="Marker",Y.propTypes={coordinates:u.default.array,children:u.default.oneOfType([u.default.node,u.default.arrayOf(u.default.node)]),onMouseEnter:u.default.func,onMouseLeave:u.default.func,onMouseDown:u.default.func,onMouseUp:u.default.func,onFocus:u.default.func,onBlur:u.default.func,style:u.default.object,className:u.default.string};var Z=["from","to","coordinates","stroke","strokeWidth","fill","className"],J=n.forwardRef(function(t,e){var i=t.from,r=void 0===i?[0,0]:i,s=t.to,a=void 0===s?[0,0]:s,o=t.coordinates,u=t.stroke,l=void 0===u?"currentcolor":u,c=t.strokeWidth,f=void 0===c?3:c,p=t.fill,d=void 0===p?"transparent":p,m=t.className,y=void 0===m?"":m,v=_(t,Z),M=n.useContext(E).path,w={type:"LineString",coordinates:o||[r,a]};return h.default.createElement("path",g({ref:e,d:M(w),className:"rsm-line ".concat(y),stroke:l,strokeWidth:f,fill:d},v))});J.displayName="Line",J.propTypes={from:u.default.array,to:u.default.array,coordinates:u.default.array,stroke:u.default.string,strokeWidth:u.default.number,fill:u.default.string,className:u.default.string};var $=["subject","children","connectorProps","dx","dy","curve","className"],tt=n.forwardRef(function(t,e){var i=t.subject,r=t.children,s=t.connectorProps,a=t.dx,o=void 0===a?30:a,u=t.dy,l=void 0===u?30:u,c=t.curve,f=void 0===c?0:c,p=t.className,d=void 0===p?"":p,y=_(t,$),v=m((0,n.useContext(E).projection)(i),2),M=v[0],w=v[1],x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=Array.isArray(e)?e:[e,e],r=t/2*i[0],s=n/2*i[1];return"M".concat(0,",",0," Q",-t/2-r,",").concat(-n/2+s," ").concat(-t,",").concat(-n)}(o,l,f);return h.default.createElement("g",g({ref:e,transform:"translate(".concat(M+o,", ").concat(w+l,")"),className:"rsm-annotation ".concat(d)},y),h.default.createElement("path",g({d:x,fill:"transparent",stroke:"#000"},s)),r)});tt.displayName="Annotation",tt.propTypes={subject:u.default.array,children:u.default.oneOfType([u.default.node,u.default.arrayOf(u.default.node)]),dx:u.default.number,dy:u.default.number,curve:u.default.number,connectorProps:u.default.object,className:u.default.string},t.Annotation=tt,t.ComposableMap=b,t.Geographies=I,t.Geography=R,t.Graticule=L,t.Line=J,t.MapContext=E,t.MapProvider=x,t.Marker=Y,t.Sphere=Q,t.ZoomPanContext=F,t.ZoomPanProvider=B,t.ZoomableGroup=H,t.useGeographies=k,t.useMapContext=function(){return n.useContext(E)},t.useZoomPan=U,t.useZoomPanContext=function(){return n.useContext(F)},Object.defineProperty(t,"__esModule",{value:!0})}(n,e(51609),e(5556),e(93458),e(85681),e(42461),e(38059))},93458(t,n,e){"use strict";function i(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function r(t){let n=t,e=t;function r(t,n,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){const s=i+r>>>1;e(t[s],n)<0?i=s+1:r=s}return i}return 1===t.length&&(n=(n,e)=>t(n)-e,e=function(t){return(n,e)=>i(t(n),e)}(t)),{left:r,center:function(t,e,i,s){null==i&&(i=0),null==s&&(s=t.length);const a=r(t,e,i,s-1);return a>i&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){const s=i+r>>>1;e(t[s],n)>0?r=s:i=s+1}return i}}}e.r(n),e.d(n,{geoAlbers:()=>bi,geoAlbersUsa:()=>Pi,geoArea:()=>lt,geoAzimuthalEqualArea:()=>ki,geoAzimuthalEqualAreaRaw:()=>Ai,geoAzimuthalEquidistant:()=>Ii,geoAzimuthalEquidistantRaw:()=>Ci,geoBounds:()=>Ht,geoCentroid:()=>rn,geoCircle:()=>gn,geoClipAntimeridian:()=>Gn,geoClipCircle:()=>Nn,geoClipExtent:()=>Tn,geoClipRectangle:()=>Rn,geoConicConformal:()=>Li,geoConicConformalRaw:()=>qi,geoConicEqualArea:()=>Si,geoConicEqualAreaRaw:()=>xi,geoConicEquidistant:()=>Bi,geoConicEquidistantRaw:()=>Di,geoContains:()=>$n,geoDistance:()=>Wn,geoEqualEarth:()=>Ki,geoEqualEarthRaw:()=>Qi,geoEquirectangular:()=>Fi,geoEquirectangularRaw:()=>zi,geoGnomonic:()=>Zi,geoGnomonicRaw:()=>Yi,geoGraticule:()=>ee,geoGraticule10:()=>ie,geoIdentity:()=>Ji,geoInterpolate:()=>re,geoLength:()=>Dn,geoMercator:()=>Oi,geoMercatorRaw:()=>ji,geoNaturalEarth1:()=>tr,geoNaturalEarth1Raw:()=>$i,geoOrthographic:()=>er,geoOrthographicRaw:()=>nr,geoPath:()=>oi,geoProjection:()=>Mi,geoProjectionMutator:()=>wi,geoRotation:()=>fn,geoStereographic:()=>rr,geoStereographicRaw:()=>ir,geoStream:()=>F,geoTransform:()=>hi,geoTransverseMercator:()=>ar,geoTransverseMercatorRaw:()=>sr});const s=r(i);s.right,s.left,r(function(t){return null===t?NaN:+t}).center;class a{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let i=0;i<this._n&&i<32;i++){const r=n[i],s=t+r,a=Math.abs(t)<Math.abs(r)?t-(s-r):r-(s-t);a&&(n[e++]=a),t=s}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,i,r=this._n,s=0;if(r>0){for(s=t[--r];r>0&&(n=s,e=t[--r],s=n+e,i=e-(s-n),!i););r>0&&(i<0&&t[r-1]<0||i>0&&t[r-1]>0)&&(e=2*i,n=s+e,e==n-s&&(s=n))}return s}}Map,Set;var o=Array.prototype;function h(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function u(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),s=new Array(r);++i<r;)s[i]=t+i*e;return s}o.slice,o.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),Math.random;var l=1e-6,c=1e-12,f=Math.PI,p=f/2,d=f/4,g=2*f,_=180/f,m=f/180,y=Math.abs,v=Math.atan,M=Math.atan2,w=Math.cos,E=Math.ceil,x=Math.exp,S=(Math.floor,Math.hypot),b=Math.log,P=Math.pow,G=Math.sin,N=Math.sign||function(t){return t>0?1:t<0?-1:0},A=Math.sqrt,k=Math.tan;function C(t){return t>
vendor: 21,259 bytes, line 1
11?0:t<-1?f:Math.acos(t)}function I(t){return t>1?p:t<-1?-p:Math.asin(t)}function j(t){return(t=G(t/2))*t}function O(){}function R(t,n){t&&q.hasOwnProperty(t.type)&&q[t.type](t,n)}var T={Feature:function(t,n){R(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,i=-1,r=e.length;++i<r;)R(e[i].geometry,n)}},q={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,i=-1,r=e.length;++i<r;)t=e[i],n.point(t[0],t[1],t[2])},LineString:function(t,n){L(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,i=-1,r=e.length;++i<r;)L(e[i],n,0)},Polygon:function(t,n){z(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,i=-1,r=e.length;++i<r;)z(e[i],n)},GeometryCollection:function(t,n){for(var e=t.geometries,i=-1,r=e.length;++i<r;)R(e[i],n)}};function L(t,n,e){var i,r=-1,s=t.length-e;for(n.lineStart();++r<s;)i=t[r],n.point(i[0],i[1],i[2]);n.lineEnd()}function z(t,n){var e=-1,i=t.length;for(n.polygonStart();++e<i;)L(t[e],n,1);n.polygonEnd()}function F(t,n){t&&T.hasOwnProperty(t.type)?T[t.type](t,n):R(t,n)}var D,B,U,W,H,X,V,Q,K,Y,Z,J,$,tt,nt,et,it=new a,rt=new a,st={point:O,lineStart:O,lineEnd:O,polygonStart:function(){it=new a,st.lineStart=at,st.lineEnd=ot},polygonEnd:function(){var t=+it;rt.add(t<0?g+t:t),this.lineStart=this.lineEnd=this.point=O},sphere:function(){rt.add(g)}};function at(){st.point=ht}function ot(){ut(D,B)}function ht(t,n){st.point=ut,D=t,B=n,U=t*=m,W=w(n=(n*=m)/2+d),H=G(n)}function ut(t,n){var e=(t*=m)-U,i=e>=0?1:-1,r=i*e,s=w(n=(n*=m)/2+d),a=G(n),o=H*a,h=W*s+o*w(r),u=o*i*G(r);it.add(M(u,h)),U=t,W=s,H=a}function lt(t){return rt=new a,F(t,st),2*rt}function ct(t){return[M(t[1],t[0]),I(t[2])]}function ft(t){var n=t[0],e=t[1],i=w(e);return[i*w(n),i*G(n),G(e)]}function pt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function dt(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function gt(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function _t(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function mt(t){var n=A(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var yt,vt,Mt,wt,Et,xt,St,bt,Pt,Gt,Nt,At,kt,Ct,It,jt,Ot={point:Rt,lineStart:qt,lineEnd:Lt,polygonStart:function(){Ot.point=zt,Ot.lineStart=Ft,Ot.lineEnd=Dt,tt=new a,st.polygonStart()},polygonEnd:function(){st.polygonEnd(),Ot.point=Rt,Ot.lineStart=qt,Ot.lineEnd=Lt,it<0?(X=-(Q=180),V=-(K=90)):tt>l?K=90:tt<-l&&(V=-90),et[0]=X,et[1]=Q},sphere:function(){X=-(Q=180),V=-(K=90)}};function Rt(t,n){nt.push(et=[X=t,Q=t]),n<V&&(V=n),n>K&&(K=n)}function Tt(t,n){var e=ft([t*m,n*m]);if($){var i=dt($,e),r=dt([i[1],-i[0],0],i);mt(r),r=ct(r);var s,a=t-Y,o=a>0?1:-1,h=r[0]*_*o,u=y(a)>180;u^(o*Y<h&&h<o*t)?(s=r[1]*_)>K&&(K=s):u^(o*Y<(h=(h+360)%360-180)&&h<o*t)?(s=-r[1]*_)<V&&(V=s):(n<V&&(V=n),n>K&&(K=n)),u?t<Y?Bt(X,t)>Bt(X,Q)&&(Q=t):Bt(t,Q)>Bt(X,Q)&&(X=t):Q>=X?(t<X&&(X=t),t>Q&&(Q=t)):t>Y?Bt(X,t)>Bt(X,Q)&&(Q=t):Bt(t,Q)>Bt(X,Q)&&(X=t)}else nt.push(et=[X=t,Q=t]);n<V&&(V=n),n>K&&(K=n),$=e,Y=t}function qt(){Ot.point=Tt}function Lt(){et[0]=X,et[1]=Q,Ot.point=Rt,$=null}function zt(t,n){if($){var e=t-Y;tt.add(y(e)>180?e+(e>0?360:-360):e)}else Z=t,J=n;st.point(t,n),Tt(t,n)}function Ft(){st.lineStart()}function Dt(){zt(Z,J),st.lineEnd(),y(tt)>l&&(X=-(Q=180)),et[0]=X,et[1]=Q,$=null}function Bt(t,n){return(n-=t)<0?n+360:n}function Ut(t,n){return t[0]-n[0]}function Wt(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function Ht(t){var n,e,i,r,s,a,o;if(K=Q=-(X=V=1/0),nt=[],F(t,Ot),e=nt.length){for(nt.sort(Ut),n=1,s=[i=nt[0]];n<e;++n)Wt(i,(r=nt[n])[0])||Wt(i,r[1])?(Bt(i[0],r[1])>Bt(i[0],i[1])&&(i[1]=r[1]),Bt(r[0],i[1])>Bt(i[0],i[1])&&(i[0]=r[0])):s.push(i=r);for(a=-1/0,n=0,i=s[e=s.length-1];n<=e;i=r,++n)r=s[n],(o=Bt(i[1],r[0]))>a&&(a=o,X=r[0],Q=i[1])}return nt=et=null,X===1/0||V===1/0?[[NaN,NaN],[NaN,NaN]]:[[X,V],[Q,K]]}var Xt={sphere:O,point:Vt,lineStart:Kt,lineEnd:Jt,polygonStart:function(){Xt.lineStart=$t,Xt.lineEnd=tn},polygonEnd:function(){Xt.lineStart=Kt,Xt.lineEnd=Jt}};function Vt(t,n){t*=m;var e=w(n*=m);Qt(e*w(t),e*G(t),G(n))}function Qt(t,n,e){++yt,Mt+=(t-Mt)/yt,wt+=(n-wt)/yt,Et+=(e-Et)/yt}function Kt(){Xt.point=Yt}function Yt(t,n){t*=m;var e=w(n*=m);Ct=e*w(t),It=e*G(t),jt=G(n),Xt.point=Zt,Qt(Ct,It,jt)}function Zt(t,n){t*=m;var e=w(n*=m),i=e*w(t),r=e*G(t),s=G(n),a=M(A((a=It*s-jt*r)*a+(a=jt*i-Ct*s)*a+(a=Ct*r-It*i)*a),Ct*i+It*r+jt*s);vt+=a,xt+=a*(Ct+(Ct=i)),St+=a*(It+(It=r)),bt+=a*(jt+(jt=s)),Qt(Ct,It,jt)}function Jt(){Xt.point=Vt}function $t(){Xt.point=nn}function tn(){en(At,kt),Xt.point=Vt}function nn(t,n){At=t,kt=n,t*=m,n*=m,Xt.point=en;var e=w(n);Ct=e*w(t),It=e*G(t),jt=G(n),Qt(Ct,It,jt)}function en(t,n){t*=m;var e=w(n*=m),i=e*w(t),r=e*G(t),s=G(n),a=It*s-jt*r,o=jt*i-Ct*s,h=Ct*r-It*i,u=S(a,o,h),l=I(u),c=u&&-l/u;Pt.add(c*a),Gt.add(c*o),Nt.add(c*h),vt+=l,xt+=l*(Ct+(Ct=i)),St+=l*(It+(It=r)),bt+=l*(jt+(jt=s)),Qt(Ct,It,jt)}function rn(t){yt=vt=Mt=wt=Et=xt=St=bt=0,Pt=new a,Gt=new a,Nt=new a,F(t,Xt);var n=+Pt,e=+Gt,i=+Nt,r=S(n,e,i);return r<c&&(n=xt,e=St,i=bt,vt<l&&(n=Mt,e=wt,i=Et),(r=S(n,e,i))<c)?[NaN,NaN]:[M(e,n)*_,I(i/r)*_]}function sn(t){return function(){return t}}function an(t,n){function e(e,i){return e=t(e,i),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,i){return(e=n.invert(e,i))&&t.invert(e[0],e[1])}),e}function on(t,n){return[y(t)>f?t+Math.round(-t/g)*g:t,n]}function hn(t,n,e){return(t%=g)?n||e?an(ln(t),cn(n,e)):ln(t):n||e?cn(n,e):on}function un(t){return function(n,e){return[(n+=t)>f?n-g:n<-f?n+g:n,e]}}function ln(t){var n=un(t);return n.invert=un(-t),n}function cn(t,n){var e=w(t),i=G(t),r=w(n),s=G(n);function a(t,n){var a=w(n),o=w(t)*a,h=G(t)*a,u=G(n),l=u*e+o*i;return[M(h*r-l*s,o*e-u*i),I(l*r+h*s)]}return a.invert=function(t,n){var a=w(n),o=w(t)*a,h=G(t)*a,u=G(n),l=u*r-h*s;return[M(h*r+u*s,o*e+l*i),I(l*e-o*i)]},a}function fn(t){function n(n){return(n=t(n[0]*m,n[1]*m))[0]*=_,n[1]*=_,n}return t=hn(t[0]*m,t[1]*m,t.length>2?t[2]*m:0),n.invert=function(n){return(n=t.invert(n[0]*m,n[1]*m))[0]*=_,n[1]*=_,n},n}function pn(t,n,e,i,r,s){if(e){var a=w(n),o=G(n),h=i*e;null==r?(r=n+i*g,s=n-h/2):(r=dn(a,r),s=dn(a,s),(i>0?r<s:r>s)&&(r+=i*g));for(var u,l=r;i>0?l>s:l<s;l-=h)u=ct([a,-o*w(l),-o*G(l)]),t.point(u[0],u[1])}}function dn(t,n){(n=ft(n))[0]-=t,mt(n);var e=C(-n[1]);return((-n[2]<0?-e:e)+g-l)%g}function gn(){var t,n,e=sn([0,0]),i=sn(90),r=sn(6),s={point:function(e,i){t.push(e=n(e,i)),e[0]*=_,e[1]*=_}};function a(){var a=e.apply(this,arguments),o=i.apply(this,arguments)*m,h=r.apply(this,arguments)*m;return t=[],n=hn(-a[0]*m,-a[1]*m,0).invert,pn(s,o,h,1),a={type:"Polygon",coordinates:[t]},t=n=null,a}return a.center=function(t){return arguments.length?(e="function"==typeof t?t:sn([+t[0],+t[1]]),a):e},a.radius=function(t){return arguments.length?(i="function"==typeof t?t:sn(+t),a):i},a.precision=function(t){return arguments.length?(r="function"==typeof t?t:sn(+t),a):r},a}function mn(){var t,n=[];return{point:function(n,e,i){t.push([n,e,i])},lineStart:function(){n.push(t=[])},lineEnd:O,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function yn(t,n){return y(t[0]-n[0])<l&&y(t[1]-n[1])<l}function vn(t,n,e,i){this.x=t,this.z=n,this.o=e,this.e=i,this.v=!1,this.n=this.p=null}function Mn(t,n,e,i,r){var s,a,o=[],h=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e,i=t[0],a=t[n];if(yn(i,a)){if(!i[2]&&!a[2]){for(r.lineStart(),s=0;s<n;++s)r.point((i=t[s])[0],i[1]);return void r.lineEnd()}a[0]+=2e-6}o.push(e=new vn(i,t,null,!0)),h.push(e.o=new vn(i,null,e,!1)),o.push(e=new vn(a,t,null,!1)),h.push(e.o=new vn(a,null,e,!0))}}),o.length){for(h.sort(n),wn(o),wn(h),s=0,a=h.length;s<a;++s)h[s].e=e=!e;for(var u,l,c=o[0];;){for(var f=c,p=!0;f.v;)if((f=f.n)===c)return;u=f.z,r.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(s=0,a=u.length;s<a;++s)r.point((l=u[s])[0],l[1]);else i(f.x,f.n.x,1,r);f=f.n}else{if(p)for(u=f.p.z,s=u.length-1;s>=0;--s)r.point((l=u[s])[0],l[1]);else i(f.x,f.p.x,-1,r);f=f.p}u=(f=f.o).z,p=!p}while(!f.v);r.lineEnd()}}}function wn(t){if(n=t.length){for(var n,e,i=0,r=t[0];++i<n;)r.n=e=t[i],e.p=r,r=e;r.n=e=t[0],e.p=r}}function En(t){return y(t[0])<=f?t[0]:N(t[0])*((y(t[0])+f)%g-f)}function xn(t,n){var e=En(n),i=n[1],r=G(i),s=[G(e),-w(e),0],o=0,h=0,u=new a;1===r?i=p+l:-1===r&&(i=-p-l);for(var c=0,_=t.length;c<_;++c)if(y=(m=t[c]).length)for(var m,y,v=m[y-1],E=En(v),x=v[1]/2+d,S=G(x),b=w(x),P=0;P<y;++P,E=A,S=C,b=j,v=N){var N=m[P],A=En(N),k=N[1]/2+d,C=G(k),j=w(k),O=A-E,R=O>=0?1:-1,T=R*O,q=T>f,L=S*C;if(u.add(M(L*R*G(T),b*j+L*w(T))),o+=q?O+R*g:O,q^E>=e^A>=e){var z=dt(ft(v),ft(N));mt(z);var F=dt(s,z);mt(F);var D=(q^O>=0?-1:1)*I(F[2]);(i>D||i===D&&(z[0]||z[1]))&&(h+=q^O>=0?1:-1)}}return(o<-l||o<l&&u<-1e-12)^1&h}function Sn(t,n,e,i){return function(r){var s,a,o,u=n(r),l=mn(),c=n(l),f=!1,p={point:d,lineStart:_,lineEnd:m,polygonStart:function(){p.point=y,p.lineStart=v,p.lineEnd=M,a=[],s=[]},polygonEnd:function(){p.point=d,p.lineStart=_,p.lineEnd=m,a=h(a);var t=xn(s,i);a.length?(f||(r.polygonStart(),f=!0),Mn(a,Pn,t,e,r)):t&&(f||(r.polygonStart(),f=!0),r.lineStart(),e(null,null,1,r),r.lineEnd()),f&&(r.polygonEnd(),f=!1),a=s=null},sphere:function(){r.polygonStart(),r.lineStart(),e(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function d(n,e){t(n,e)&&r.point(n,e)}function g(t,n){u.point(t,n)}function _(){p.point=g,u.lineStart()}function m(){p.point=d,u.lineEnd()}function y(t,n){o.push([t,n]),c.point(t,n)}function v(){c.lineStart(),o=[]}function M(){y(o[0][0],o[0][1]),c.lineEnd();var t,n,e,i,h=c.clean(),u=l.result(),p=u.length;if(o.pop(),s.push(o),o=null,p)if(1&h){if((n=(e=u[0]).length-1)>0){for(f||(r.polygonStart(),f=!0),r.lineStart(),t=0;t<n;++t)r.point((i=e[t])[0],i[1]);r.lineEnd()}}else p>1&&2&h&&u.push(u.pop().concat(u.shift())),a.push(u.filter(bn))}return p}}function bn(t){return t.length>1}function Pn(t,n){return((t=t.x)[0]<0?t[1]-p-l:p-t[1])-((n=n.x)[0]<0?n[1]-p-l:p-n[1])}on.invert=on;const Gn=Sn(function(){return!0},function(t){var n,e=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(s,a){var o=s>0?f:-f,h=y(s-e);y(h-f)<l?(t.point(e,i=(i+a)/2>0?p:-p),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(o,i),t.point(s,i),n=0):r!==o&&h>=f&&(y(e-r)<l&&(e-=r*l),y(s-o)<l&&(s-=o*l),i=function(t,n,e,i){var r,s,a=G(t-e);return y(a)>l?v((G(n)*(s=w(i))*G(e)-G(i)*(r=w(n))*G(t))/(r*s*a)):(n+i)/2}(e,i,s,a),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(o,i),n=0),t.point(e=s,i=a),r=o},lineEnd:function(){t.lineEnd(),e=i=NaN},clean:function(){return 2-n}}},function(t,n,e,i){var r;if(null==t)r=e*p,i.point(-f,r),i.point(0,r),i.point(f,r),i.point(f,0),i.point(f,-r),i.point(0,-r),i.point(-f,-r),i.point(-f,0),i.point(-f,r);else if(y(t[0]-n[0])>l){var s=t[0]<n[0]?f:-f;r=e*s/2,i.point(-s,r),i.point(0,r),i.point(s,r)}else i.point(n[0],n[1])},[-f,-p]);function Nn(t){var n=w(t),e=6*m,i=n>0,r=y(n)>l;function s(t,e){return w(t)*w(e)>n}function a(t,e,i){var r=[1,0,0],s=dt(ft(t),ft(e)),a=pt(s,s),o=s[0],h=a-o*o;if(!h)return!i&&t;var u=n*a/h,c=-n*o/h,p=dt(r,s),d=_t(r,u);gt(d,_t(s,c));var g=p,_=pt(d,g),m=pt(g,g),v=_*_-m*(pt(d,d)-1);if(!(v<0)){var M=A(v),w=_t(g,(-_-M)/m);if(gt(w,d),w=ct(w),!i)return w;var E,x=t[0],S=e[0],b=t[1],P=e[1];S<x&&(E=x,x=S,S=E);var G=S-x,N=y(G-f)<l;if(!N&&P<b&&(E=b,b=P,P=E),N||G<l?N?b+P>0^w[1]<(y(w[0]-x)<l?b:P):b<=w[1]&&w[1]<=P:G>f^(x<=w[0]&&w[0]<=S)){var k=_t(g,(-_+M)/m);return gt(k,d),[w,ct(k)]}}}function o(n,e){var r=i?t:f-t,s=0;return n<-r?s|=1:n>r&&(s|=2),e<-r?s|=4:e>r&&(s|=8),s}return Sn(s,function(t){var n,e,h,u,l;return{lineStart:function(){u=h=!1,l=1},point:function(c,p){var d,g=[c,p],_=s(c,p),m=i?_?0:o(c,p):_?o(c+(c<0?f:-f),p):0;if(!n&&(u=h=_)&&t.lineStart(),_!==h&&(!(d=a(n,g))||yn(n,d)||yn(g,d))&&(g[2]=1),_!==h)l=0,_?(t.lineStart(),d=a(g,n),t.point(d[0],d[1])):(d=a(n,g),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(r&&n&&i^_){var y;m&e||!(y=a(g,n,!0))||(l=0,i?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!_||n&&yn(n,g)||t.point(g[0],g[1]),n=g,h=_,e=m},lineEnd:function(){h&&t.lineEnd(),n=null},clean:function(){return l|(u&&h)<<1}}},function(n,i,r,s){pn(s,t,e,r,n,i)},i?[0,-t]:[-f,t-f])}var An,kn,Cn,In,jn=1e9,On=-jn;function Rn(t,n,e,i){function r(r,s){return t<=r&&r<=e&&n<=s&&s<=i}function s(r,s,o,h){var l=0,c=0;if(null==r||(l=a(r,o))!==(c=a(s,o))||u(r,s)<0^o>0)do{h.point(0===l||3===l?t:e,l>1?i:n)}while((l=(l+o+4)%4)!==c);else h.point(s[0],s[1])}function a(i,r){return y(i[0]-t)<l?r>0?0:3:y(i[0]-e)<l?r>0?2:1:y(i[1]-n)<l?r>0?1:0:r>0?3:2}function o(t,n){return u(t.x,n.x)}function u(t,n){var e=a(t,1),i=a(n,1);return e!==i?e-i:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var u,l,c,f,p,d,g,_,m,y,v,M=a,w=mn(),E={point:x,lineStart:function(){E.point=S,l&&l.push(c=[]),y=!0,m=!1,g=_=NaN},lineEnd:function(){u&&(S(f,p),d&&m&&w.rejoin(),u.push(w.result())),E.point=x,m&&M.lineEnd()},polygonStart:function(){M=w,u=[],l=[],v=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,r=l.length;e<r;++e)for(var s,a,o=l[e],h=1,u=o.length,c=o[0],f=c[0],p=c[1];h<u;++h)s=f,a=p,f=(c=o[h])[0],p=c[1],a<=i?p>i&&(f-s)*(i-a)>(p-a)*(t-s)&&++n:p<=i&&(f-s)*(i-a)<(p-a)*(t-s)&&--n;return n}(),e=v&&n,r=(u=h(u)).length;(e||r)&&(a.polygonStart(),e&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),r&&Mn(u,o,n,s,a),a.polygonEnd()),M=a,u=l=c=null}};function x(t,n){r(t,n)&&M.point(t,n)}function S(s,a){var o=r(s,a);if(l&&c.push([s,a]),y)f=s,p=a,d=o,y=!1,o&&(M.lineStart(),M.point(s,a));else if(o&&m)M.point(s,a);else{var h=[g=Math.max(On,Math.min(jn,g)),_=Math.max(On,Math.min(jn,_))],u=[s=Math.max(On,Math.min(jn,s)),a=Math.max(On,Math.min(jn,a))];!function(t,n,e,i,r,s){var a,o=t[0],h=t[1],u=0,l=1,c=n[0]-o,f=n[1]-h;if(a=e-o,c||!(a>0)){if(a/=c,c<0){if(a<u)return;a<l&&(l=a)}else if(c>0){if(a>l)return;a>u&&(u=a)}if(a=r-o,c||!(a<0)){if(a/=c,c<0){if(a>l)return;a>u&&(u=a)}else if(c>0){if(a<u)return;a<l&&(l=a)}if(a=i-h,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<l&&(l=a)}else if(f>0){if(a>l)return;a>u&&(u=a)}if(a=s-h,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<l&&(l=a)}return u>0&&(t[0]=o+u*c,t[1]=h+u*f),l<1&&(n[0]=o+l*c,n[1]=h+l*f),!0}}}}}(h,u,t,n,e,i)?o&&(M.lineStart(),M.point(s,a),v=!1):(m||(M.lineStart(),M.point(h[0],h[1])),M.point(u[0],u[1]),o||M.lineEnd(),v=!1)}g=s,_=a,m=o}return E}}function Tn(){var t,n,e,i=0,r=0,s=960,a=500;return e={stream:function(e){return t&&n===e?t:t=Rn(i,r,s,a)(n=e)},extent:function(o){return arguments.length?(i=+o[0][0],r=+o[0][1],s=+o[1][0],a=+o[1][1],t=n=null,e):[[i,r],[s,a]]}}}var qn={sphere:O,point:O,lineStart:function(){qn.point=zn,qn.lineEnd=Ln},lineEnd:O,polygonStart:O,polygonEnd:O};function Ln(){qn.point=qn.lineEnd=O}function zn(t,n){kn=t*=m,Cn=G(n*=m),In=w(n),qn.point=Fn}function Fn(t,n){t*=m;var e=G(n*=m),i=w(n),r=y(t-kn),s=w(r),a=i*G(r),o=In*e-Cn*i*s,h=Cn*e+In*i*s;An.add(M(A(a*a+o*o),h)),kn=t,Cn=e,In=i}function Dn(t){return An=new a,F(t,qn),+An}var Bn=[null,null],Un={type:"LineString",coordinates:Bn};function Wn(t,n){return Bn[0]=t,Bn[1]=n,Dn(Un)}var Hn={Feature:function(t,n){return Vn(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,i=-1,r=e.length;++i<r;)if(Vn(e[i].geometry,n))return!0;return!1}},Xn={Sphere:function(){return!0},Point:function(t,n){return Qn(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,i=-1,r=e.length;++i<r;)if(Qn(e[i],n))return!0;return!1},LineString:function(t,n){return Kn(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,i=-1,r=e.length;++i<r;)if(Kn(e[i],n))return!0;return!1},Polygon:function(t,n){return Yn(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,i=-1,r=e.length;++i<r;)if(Yn(e[i],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,i=-1,r=e.length;++i<r;)if(Vn(e[i],n))return!0;return!1}};function Vn(t,n){return!(!t||!Xn.hasOwnProperty(t.type))&&Xn[t.type](t,n)}function Qn(t,n){return 0===Wn(t,n)}function Kn(t,n){for(var e,i,r,s=0,a=t.length;s<a;s++){if(0===(i=Wn(t[s],n)))return!0;if(s>0&&(r=Wn(t[s],t[s-1]))>0&&e<=r&&i<=r&&(e+i-r)*(1-Math.pow((e-i)/r,2))<c*r)return!0;e=i}return!1}function Yn(t,n){return!!xn(t.map(Zn),Jn(n))}function Zn(t){return(t=t.map(Jn)).pop(),t}function Jn(t){return[t[0]*m,t[1]*m]}function $n(t,n){return(t&&Hn.hasOwnProperty(t.type)?Hn[t.type]:Vn)(t,n)}function te(t,n,e){var i=u(t,n-l,e).concat(n);return function(t){return i.map(function(n){return[t,n]})}}function ne(t,n,e){var i=u(t,n-l,e).concat(n);return function(t){return i.map(function(n){return[n,t]})}}function ee(){var t,n,e,i,r,s,a,o,h,c,f,p,d=10,g=d,_=90,m=360,v=2.5;function M(){return{type:"MultiLineString",coordinates:w()}}function w(){return u(E(i/_)*_,e,_).map(f).concat(u(E(o/m)*m,a,m).map(p)).concat(u(E(n/d)*d,t,d).filter(function(t){return y(t%_)>l}).map(h)).concat(u(E(s/g)*g,r,g).filter(function(t){return y(t%m)>l}).map(c))}return M.lines=function(){return w().map(function(t){return{type:"LineString",coordinates:t}})},M.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(p(a).slice(1),f(e).reverse().slice(1),p(o).reverse().slice(1))]}},M.extent=function(t){return arguments.length?M.extentMajor(t).extentMinor(t):M.extentMinor()},M.extentMajor=function(t){return arguments.length?(i=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],i>e&&(t=i,i=e,e=t),o>a&&(t=o,o=a,a=t),M.precision(v)):[[i,o],[e,a]]},M.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],r=+e[1][1],n>t&&(e=n,n=t,t=e),s>r&&(e=s,s=r,r=e),M.precision(v)):[[n,s],[t,r]]},M.step=function(t){return arguments.length?M.stepMajor(t).stepMinor(t):M.stepMinor()},M.stepMajor=function(t){return arguments.length?(_=+t[0],m=+t[1],M):[_,m]},M.stepMinor=function(t){return arguments.length?(d=+t[0],g=+t[1],M):[d,g]},M.precision=function(u){return arguments.length?(v=+u,h=te(s,r,90),c=ne(n,t,v),f=te(o,a,90),p=ne(i,e,v),M):v},M.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function ie(){return ee()()}function re(t,n){var e=t[0]*m,i=t[1]*m,r=n[0]*m,s=n[1]*m,a=w(i),o=G(i),h=w(s),u=G(s),l=a*w(e),c=a*G(e),f=h*w(r),p=h*G(r),d=2*I(A(j(s-i)+a*h*j(r-e))),g=G(d),y=d?function(t){var n=G(t*=d)/g,e=G(d-t)/g,i=e*l+n*f,r=e*c+n*p,s=e*o+n*u;return[M(r,i)*_,M(s,A(i*i+r*r))*_]}:function(){return[e*_,i*_]};return y.distance=d,y}const se=t=>t;var ae,oe,he,ue,le=new a,ce=new a,fe={point:O,lineStart:O,lineEnd:O,polygonStart:function(){fe.lineStart=pe,fe.lineEnd=_e},polygonEnd:function(){fe.lineStart=fe.lineEnd=fe.point=O,le.add(y(ce)),ce=new a},result:function(){var t=le/2;return le=new a,t}};function pe(){fe.point=de}function de(t,n){fe.point=ge,ae=he=t,oe=ue=n}function ge(t,n){ce.add(ue*t-he*n),he=t,ue=n}function _e(){ge(ae,oe)}const me=fe;var ye=1/0,ve=ye,Me=-ye,we=Me,Ee={point:function(t,n){t<ye&&(ye=t),t>Me&&(Me=t),n<ve&&(ve=n),n>we&&(we=n)},lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var t=[[ye,ve],[Me,we]];return Me=we=-(ve=ye=1/0),t}};const xe=Ee;var Se,be,Pe,Ge,Ne=0,Ae=0,ke=0,Ce=0,Ie=0,je=0,Oe=0,Re=0,Te=0,qe={point:Le,lineStart:ze,lineEnd:Be,polygonStart:function(){qe.lineStart=Ue,qe.lineEnd=We},polygonEnd:function(){qe.point=Le,qe.lineStart=ze,qe.lineEnd=Be},result:function(){var t=Te?[Oe/Te,Re/Te]:je?[Ce/je,Ie/je]:ke?[Ne/ke,Ae/ke]:[NaN,NaN];return Ne=Ae=ke=Ce=Ie=je=Oe=Re=Te=0,t}};function Le(t,n){Ne+=t,Ae+=n,++ke}function ze(){qe.point=Fe}function Fe(t,n){qe.point=De,Le(Pe=t,Ge=n)}function De(t,n){var e=t-Pe,i=n-Ge,r=A(e*e+i*i);Ce+=r*(Pe+t)/2,Ie+=r*(Ge+n)/2,je+=r,Le(Pe=t,Ge=n)}function Be(){qe.point=Le}function Ue(){qe.point=He}function We(){Xe(Se,be)}function He(t,n){qe.point=Xe,Le(Se=Pe=t,be=Ge=n)}function Xe(t,n){var e=t-Pe,i=n-Ge,r=A(e*e+i*i);Ce+=r*(Pe+t)/2,Ie+=r*(Ge+n)/2,je+=r,Oe+=(r=Ge*t-Pe*n)*(Pe+t),Re+=r*(Ge+n),Te+=3*r,Le(Pe=t,Ge=n)}const Ve=qe;function Qe(t){this._context=t}Qe.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,g)}},result:O};var Ke,Ye,Ze,Je,$e,ti=new a,ni={point:O,lineStart:function(){ni.point=ei},lineEnd:function(){Ke&&ii(Ye,Ze),ni.point=O},polygonStart:function(){Ke=!0},polygonEnd:function(){Ke=null},result:function(){var t=+ti;return ti=new a,t}};function ei(t,n){ni.point=ii,Ye=Je=t,Ze=$e=n}function ii(t,n){Je-=t,$e-=n,ti.add(A(Je*Je+$e*$e)),Je=t,$e=n}const ri=ni;function si(){this._string=[]}function ai(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function oi(t,n){var e,i,r=4.5;function s(t){return t&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),F(t,e(i))),i.result()}return s.area=function(t){return F(t,e(me)),me.result()},s.measure=function(t){return F(t,e(ri)),ri.result()},s.bounds=function(t){return F(t,e(xe)),xe.result()},s.centroid=function(t){return F(t,e(Ve)),Ve.result()},s.projection=function(n){return arguments.length?(e=null==n?(t=null,se):(t=n).stream,s
vendor: 4,257 bytes, line 1
1):t},s.context=function(t){return arguments.length?(i=null==t?(n=null,new si):new Qe(n=t),"function"!=typeof r&&i.pointRadius(r),s):n},s.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(i.pointRadius(+t),+t),s):r},s.projection(t).context(n)}function hi(t){return{stream:ui(t)}}function ui(t){return function(n){var e=new li;for(var i in t)e[i]=t[i];return e.stream=n,e}}function li(){}function ci(t,n,e){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),F(e,t.stream(xe)),n(xe.result()),null!=i&&t.clipExtent(i),t}function fi(t,n,e){return ci(t,function(e){var i=n[1][0]-n[0][0],r=n[1][1]-n[0][1],s=Math.min(i/(e[1][0]-e[0][0]),r/(e[1][1]-e[0][1])),a=+n[0][0]+(i-s*(e[1][0]+e[0][0]))/2,o=+n[0][1]+(r-s*(e[1][1]+e[0][1]))/2;t.scale(150*s).translate([a,o])},e)}function pi(t,n,e){return fi(t,[[0,0],n],e)}function di(t,n,e){return ci(t,function(e){var i=+n,r=i/(e[1][0]-e[0][0]),s=(i-r*(e[1][0]+e[0][0]))/2,a=-r*e[0][1];t.scale(150*r).translate([s,a])},e)}function gi(t,n,e){return ci(t,function(e){var i=+n,r=i/(e[1][1]-e[0][1]),s=-r*e[0][0],a=(i-r*(e[1][1]+e[0][1]))/2;t.scale(150*r).translate([s,a])},e)}si.prototype={_radius:4.5,_circle:ai(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=ai(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},li.prototype={constructor:li,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var _i=w(30*m);function mi(t,n){return+n?function(t,n){function e(i,r,s,a,o,h,u,c,f,p,d,g,_,m){var v=u-i,w=c-r,E=v*v+w*w;if(E>4*n&&_--){var x=a+p,S=o+d,b=h+g,P=A(x*x+S*S+b*b),G=I(b/=P),N=y(y(b)-1)<l||y(s-f)<l?(s+f)/2:M(S,x),k=t(N,G),C=k[0],j=k[1],O=C-i,R=j-r,T=w*O-v*R;(T*T/E>n||y((v*O+w*R)/E-.5)>.3||a*p+o*d+h*g<_i)&&(e(i,r,s,a,o,h,C,j,N,x/=P,S/=P,b,_,m),m.point(C,j),e(C,j,N,x,S,b,u,c,f,p,d,g,_,m))}}return function(n){var i,r,s,a,o,h,u,l,c,f,p,d,g={point:_,lineStart:m,lineEnd:v,polygonStart:function(){n.polygonStart(),g.lineStart=M},polygonEnd:function(){n.polygonEnd(),g.lineStart=m}};function _(e,i){e=t(e,i),n.point(e[0],e[1])}function m(){l=NaN,g.point=y,n.lineStart()}function y(i,r){var s=ft([i,r]),a=t(i,r);e(l,c,u,f,p,d,l=a[0],c=a[1],u=i,f=s[0],p=s[1],d=s[2],16,n),n.point(l,c)}function v(){g.point=_,n.lineEnd()}function M(){m(),g.point=w,g.lineEnd=E}function w(t,n){y(i=t,n),r=l,s=c,a=f,o=p,h=d,g.point=y}function E(){e(l,c,u,f,p,d,r,s,i,a,o,h,16,n),g.lineEnd=v,v()}return g}}(t,n):function(t){return ui({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)}var yi=ui({point:function(t,n){this.stream.point(t*m,n*m)}});function vi(t,n,e,i,r,s){if(!s)return function(t,n,e,i,r){function s(s,a){return[n+t*(s*=i),e-t*(a*=r)]}return s.invert=function(s,a){return[(s-n)/t*i,(e-a)/t*r]},s}(t,n,e,i,r);var a=w(s),o=G(s),h=a*t,u=o*t,l=a/t,c=o/t,f=(o*e-a*n)/t,p=(o*n+a*e)/t;function d(t,s){return[h*(t*=i)-u*(s*=r)+n,e-u*t-h*s]}return d.invert=function(t,n){return[i*(l*t-c*n+f),r*(p-c*t-l*n)]},d}function Mi(t){return wi(function(){return t})()}function wi(t){var n,e,i,r,s,a,o,h,u,l,c=150,f=480,p=250,d=0,g=0,y=0,v=0,M=0,w=0,E=1,x=1,S=null,b=Gn,P=null,G=se,N=.5;function k(t){return h(t[0]*m,t[1]*m)}function C(t){return(t=h.invert(t[0],t[1]))&&[t[0]*_,t[1]*_]}function I(){var t=vi(c,0,0,E,x,w).apply(null,n(d,g)),i=vi(c,f-t[0],p-t[1],E,x,w);return e=hn(y,v,M),o=an(n,i),h=an(e,o),a=mi(o,N),j()}function j(){return u=l=null,k}return k.stream=function(t){return u&&l===t?u:u=yi(function(t){return ui({point:function(n,e){var i=t(n,e);return this.stream.point(i[0],i[1])}})}
vendor: 4,731 bytes, line 1
1(e)(b(a(G(l=t)))))},k.preclip=function(t){return arguments.length?(b=t,S=void 0,j()):b},k.postclip=function(t){return arguments.length?(G=t,P=i=r=s=null,j()):G},k.clipAngle=function(t){return arguments.length?(b=+t?Nn(S=t*m):(S=null,Gn),j()):S*_},k.clipExtent=function(t){return arguments.length?(G=null==t?(P=i=r=s=null,se):Rn(P=+t[0][0],i=+t[0][1],r=+t[1][0],s=+t[1][1]),j()):null==P?null:[[P,i],[r,s]]},k.scale=function(t){return arguments.length?(c=+t,I()):c},k.translate=function(t){return arguments.length?(f=+t[0],p=+t[1],I()):[f,p]},k.center=function(t){return arguments.length?(d=t[0]%360*m,g=t[1]%360*m,I()):[d*_,g*_]},k.rotate=function(t){return arguments.length?(y=t[0]%360*m,v=t[1]%360*m,M=t.length>2?t[2]%360*m:0,I()):[y*_,v*_,M*_]},k.angle=function(t){return arguments.length?(w=t%360*m,I()):w*_},k.reflectX=function(t){return arguments.length?(E=t?-1:1,I()):E<0},k.reflectY=function(t){return arguments.length?(x=t?-1:1,I()):x<0},k.precision=function(t){return arguments.length?(a=mi(o,N=t*t),j()):A(N)},k.fitExtent=function(t,n){return fi(k,t,n)},k.fitSize=function(t,n){return pi(k,t,n)},k.fitWidth=function(t,n){return di(k,t,n)},k.fitHeight=function(t,n){return gi(k,t,n)},function(){return n=t.apply(this,arguments),k.invert=n.invert&&C,I()}}function Ei(t){var n=0,e=f/3,i=wi(t),r=i(n,e);return r.parallels=function(t){return arguments.length?i(n=t[0]*m,e=t[1]*m):[n*_,e*_]},r}function xi(t,n){var e=G(t),i=(e+G(n))/2;if(y(i)<l)return function(t){var n=w(t);function e(t,e){return[t*n,G(e)/n]}return e.invert=function(t,e){return[t/n,I(e*n)]},e}(t);var r=1+e*(2*i-e),s=A(r)/i;function a(t,n){var e=A(r-2*i*G(n))/i;return[e*G(t*=i),s-e*w(t)]}return a.invert=function(t,n){var e=s-n,a=M(t,y(e))*N(e);return e*i<0&&(a-=f*N(t)*N(e)),[a/i,I((r-(t*t+e*e)*i*i)/(2*i))]},a}function Si(){return Ei(xi).scale(155.424).center([0,33.6442])}function bi(){return Si().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Pi(){var t,n,e,i,r,s,a=bi(),o=Si().rotate([154,0]).center([-2,58.5]).parallels([55,65]),h=Si().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,n){s=[t,n]}};function c(t){var n=t[0],a=t[1];return s=null,e.point(n,a),s||(i.point(n,a),s)||(r.point(n,a),s)}function f(){return t=n=null,c}return c.invert=function(t){var n=a.scale(),e=a.translate(),i=(t[0]-e[0])/n,r=(t[1]-e[1])/n;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?o:r>=.166&&r<.234&&i>=-.214&&i<-.115?h:a).invert(t)},c.stream=function(e){return t&&n===e?t:(i=[a.stream(n=e),o.stream(e),h.stream(e)],r=i.length,t={point:function(t,n){for(var e=-1;++e<r;)i[e].point(t,n)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),h.precision(t),f()):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),h.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var n=a.scale(),s=+t[0],c=+t[1];return e=a.translate(t).clipExtent([[s-.455*n,c-.238*n],[s+.455*n,c+.238*n]]).stream(u),i=o.translate([s-.307*n,c+.201*n]).clipExtent([[s-.425*n+l,c+.12*n+l],[s-.214*n-l,c+.234*n-l]]).stream(u),r=h.translate([s-.205*n,c+.212*n]).clipExtent([[s-.214*n+l,c+.166*n+l],[s-.115*n-l,c+.234*n-l]]).stream(u),f()},c.fitExtent=function(t,n){return fi(c,t,n)},c.fitSize=function(t,n){return pi(c,t,n)},c.fitWidth=function(t,n){return di(c,t,n)},c.fitHeight=function(t,n){return gi(c,t,n)},c.scale(1070)}function Gi(t){return function(n,e){var i=w(n),r=w(e),s=t(i*r);return s===1/0?[2,0]:[s*r*G(n),s*G(e)]}}function Ni(t){return function(n,e){var i=A(n*n+e*e),r=t(i),s=G(r),a=w(r);return[M(n*s,i*a),I(i&&e*s/i)]}}var Ai=Gi(function(t){return A(2/(1+t))});function ki(){return Mi(Ai).scale(124.75).clipAngle(179.999)}Ai.invert=Ni(function(t){return 2*I(t/2)});var Ci=Gi(function(t){return(t=C(t))&&t/G(t)});function Ii(){return Mi(Ci).scale(79.4188).clipAngle(179.999)}function ji(t,n){return[t,b(k((p+n)/2))]}function Oi(){return Ri(ji).scale(961/g)}function Ri(t){var n,e,i,r=Mi(t),s=r.center,a=r.scale,o=r.translate,h=r.clipExtent,u=null;function l(){var s=f*a(),o=r(fn(r.rotate()).invert([0,0]));return h(null==u?[[o[0]-s,o[1]-s],[o[0]+s,o[1]+s]]:t===ji?[[Math.max(o[0]-s,u),n],[Math.min(o[0]+s,e),i]]:[[u,Math.max(o[1]-s,n)],[e,Math.min(o[1]+s,i)]])}return r.scale=function(t){return arguments.length?(a(t),l()):a()},r.translate=function(t){return arguments.length?(o(t),l()):o()}
vendor: 4,501 bytes, line 1
1,r.center=function(t){return arguments.length?(s(t),l()):s()},r.clipExtent=function(t){return arguments.length?(null==t?u=n=e=i=null:(u=+t[0][0],n=+t[0][1],e=+t[1][0],i=+t[1][1]),l()):null==u?null:[[u,n],[e,i]]},l()}function Ti(t){return k((p+t)/2)}function qi(t,n){var e=w(t),i=t===n?G(t):b(e/w(n))/b(Ti(n)/Ti(t)),r=e*P(Ti(t),i)/i;if(!i)return ji;function s(t,n){r>0?n<-p+l&&(n=-p+l):n>p-l&&(n=p-l);var e=r/P(Ti(n),i);return[e*G(i*t),r-e*w(i*t)]}return s.invert=function(t,n){var e=r-n,s=N(i)*A(t*t+e*e),a=M(t,y(e))*N(e);return e*i<0&&(a-=f*N(t)*N(e)),[a/i,2*v(P(r/s,1/i))-p]},s}function Li(){return Ei(qi).scale(109.5).parallels([30,30])}function zi(t,n){return[t,n]}function Fi(){return Mi(zi).scale(152.63)}function Di(t,n){var e=w(t),i=t===n?G(t):(e-w(n))/(n-t),r=e/i+t;if(y(i)<l)return zi;function s(t,n){var e=r-n,s=i*t;return[e*G(s),r-e*w(s)]}return s.invert=function(t,n){var e=r-n,s=M(t,y(e))*N(e);return e*i<0&&(s-=f*N(t)*N(e)),[s/i,r-N(i)*A(t*t+e*e)]},s}function Bi(){return Ei(Di).scale(131.154).center([0,13.9389])}Ci.invert=Ni(function(t){return t}),ji.invert=function(t,n){return[t,2*v(x(n))-p]},zi.invert=zi;var Ui=1.340264,Wi=-.081106,Hi=893e-6,Xi=.003796,Vi=A(3)/2;function Qi(t,n){var e=I(Vi*G(n)),i=e*e,r=i*i*i;return[t*w(e)/(Vi*(Ui+3*Wi*i+r*(7*Hi+9*Xi*i))),e*(Ui+Wi*i+r*(Hi+Xi*i))]}function Ki(){return Mi(Qi).scale(177.158)}function Yi(t,n){var e=w(n),i=w(t)*e;return[e*G(t)/i,G(n)/i]}function Zi(){return Mi(Yi).scale(144.049).clipAngle(60)}function Ji(){var t,n,e,i,r,s,a,o=1,h=0,u=0,l=1,c=1,f=0,p=null,d=1,g=1,y=ui({point:function(t,n){var e=E([t,n]);this.stream.point(e[0],e[1])}}),v=se;function M(){return d=o*l,g=o*c,s=a=null,E}function E(e){var i=e[0]*d,r=e[1]*g;if(f){var s=r*t-i*n;i=i*t+r*n,r=s}return[i+h,r+u]}return E.invert=function(e){var i=e[0]-h,r=e[1]-u;if(f){var s=r*t+i*n;i=i*t-r*n,r=s}return[i/d,r/g]},E.stream=function(t){return s&&a===t?s:s=y(v(a=t))},E.postclip=function(t){return arguments.length?(v=t,p=e=i=r=null,M()):v},E.clipExtent=function(t){return arguments.length?(v=null==t?(p=e=i=r=null,se):Rn(p=+t[0][0],e=+t[0][1],i=+t[1][0],r=+t[1][1]),M()):null==p?null:[[p,e],[i,r]]},E.scale=function(t){return arguments.length?(o=+t,M()):o},E.translate=function(t){return arguments.length?(h=+t[0],u=+t[1],M()):[h,u]},E.angle=function(e){return arguments.length?(n=G(f=e%360*m),t=w(f),M()):f*_},E.reflectX=function(t){return arguments.length?(l=t?-1:1,M()):l<0},E.reflectY=function(t){return arguments.length?(c=t?-1:1,M()):c<0},E.fitExtent=function(t,n){return fi(E,t,n)},E.fitSize=function(t,n){return pi(E,t,n)},E.fitWidth=function(t,n){return di(E,t,n)},E.fitHeight=function(t,n){return gi(E,t,n)},E}function $i(t,n){var e=n*n,i=e*e;return[t*(.8707-.131979*e+i*(i*(.003971*e-.001529*i)-.013791)),n*(1.007226+e*(.015085+i*(.028874*e-.044475-.005916*i)))]}function tr(){return Mi($i).scale(175.295)}function nr(t,n){return[w(n)*G(t),G(n)]}function er(){return Mi(nr).scale(249.5).clipAngle(90.000001)}function ir(t,n){var e=w(n),i=1+w(t)*e;return[e*G(t)/i,G(n)/i]}function rr(){return Mi(ir).scale(250).clipAngle(142)}function sr(t,n){return[b(k((p+n)/2)),-t]}function ar(){var t=Ri(sr),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}Qi.invert=function(t,n){for(var e,i=n,r=i*i,s=r*r*r,a=0;a<12&&(s=(r=(i-=e=(i*(Ui+Wi*r+s*(Hi+Xi*r))-n)/(Ui+3*Wi*r+s*(7*Hi+9*Xi*r)))*i)*r*r,!(y(e)<c));++a);return[Vi*t*(Ui+3*Wi*r+s*(7*Hi+9*Xi*r))/w(i),I(G(i)/Vi)]},Yi.invert=Ni(v),$i.invert=function(t,n){var e,i=n,r=25;do{var s=i*i,a=s*s;i-=e=(i*(1.007226+s*(.015085+a*(.028874*s-.044475-.005916*a)))-n)/(1.007226+s*(.045255+a*(.259866*s-.311325-.005916*11*a)))}while(y(e)>l&&--r>0);return[t/(.8707+(s=i*i)*(s*(s*s*s*(.003971-.001529*s)-.013791)-.131979)),i]},nr.invert=Ni(I),ir.invert=Ni(function(t){return 2*v(t)}),sr.invert=function(t,n){return[-n,2*v(x(t))-p]}},85681(t,n,e){"use strict";function i(t){return t}function r(t){if(null==t)return i;var n,e,r=t.scale[0],s=t.scale[1],a=t.translate[0],o=t.translate[1];return function(t,i){i||(n=e=0);var h=2,u=t.length,l=new Array(u);for(l[0]=(n+=t[0])*r+a,l[1]=(e+=t[1])*s+o;h<u;)l[h]=t[h],++h;return l}}function s(t){var n,e=r(t.transform),i=1/0,s=i,a=-i,o=-i;function h(t){(t=e(t))[0]<i&&(i=t[0]),t[0]>a&&(a=t[0]),t[1]<s&&(s=t[1]),t[1]>o&&(o=t[1])}function u(t){switch(t.type){case"GeometryCollection":t.geometries.forEac
vendor: 6,400 bytes, line 1
1h(u);break;case"Point":h(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(h)}}for(n in t.arcs.forEach(function(t){for(var n,r=-1,h=t.length;++r<h;)(n=e(t[r],r))[0]<i&&(i=n[0]),n[0]>a&&(a=n[0]),n[1]<s&&(s=n[1]),n[1]>o&&(o=n[1])}),t.objects)u(t.objects[n]);return[i,s,a,o]}function a(t,n){return"string"==typeof n&&(n=t.objects[n]),"GeometryCollection"===n.type?{type:"FeatureCollection",features:n.geometries.map(function(n){return o(t,n)})}:o(t,n)}function o(t,n){var e=n.id,i=n.bbox,r=null==n.properties?{}:n.properties,s=h(t,n);return null==e&&null==i?{type:"Feature",properties:r,geometry:s}:null==i?{type:"Feature",id:e,properties:r,geometry:s}:{type:"Feature",id:e,bbox:i,properties:r,geometry:s}}function h(t,n){var e=r(t.transform),i=t.arcs;function s(t,n){n.length&&n.pop();for(var r=i[t<0?~t:t],s=0,a=r.length;s<a;++s)n.push(e(r[s],s));t<0&&function(t,n){for(var e,i=t.length,r=i-n;r<--i;)e=t[r],t[r++]=t[i],t[i]=e}(n,a)}function a(t){return e(t)}function o(t){for(var n=[],e=0,i=t.length;e<i;++e)s(t[e],n);return n.length<2&&n.push(n[0]),n}function h(t){for(var n=o(t);n.length<4;)n.push(n[0]);return n}function u(t){return t.map(h)}return function t(n){var e,i=n.type;switch(i){case"GeometryCollection":return{type:i,geometries:n.geometries.map(t)};case"Point":e=a(n.coordinates);break;case"MultiPoint":e=n.coordinates.map(a);break;case"LineString":e=o(n.arcs);break;case"MultiLineString":e=n.arcs.map(o);break;case"Polygon":e=u(n.arcs);break;case"MultiPolygon":e=n.arcs.map(u);break;default:return null}return{type:i,coordinates:e}}(n)}function u(t,n){var e={},i={},r={},s=[],a=-1;function o(t,n){for(var i in t){var r=t[i];delete n[r.start],delete r.start,delete r.end,r.forEach(function(t){e[t<0?~t:t]=1}),s.push(r)}}return n.forEach(function(e,i){var r,s=t.arcs[e<0?~e:e];s.length<3&&!s[1][0]&&!s[1][1]&&(r=n[++a],n[a]=e,n[i]=r)}),n.forEach(function(n){var e,s,a=function(n){var e,i=t.arcs[n<0?~n:n],r=i[0];return t.transform?(e=[0,0],i.forEach(function(t){e[0]+=t[0],e[1]+=t[1]})):e=i[i.length-1],n<0?[e,r]:[r,e]}(n),o=a[0],h=a[1];if(e=r[o])if(delete r[e.end],e.push(n),e.end=h,s=i[h]){delete i[s.start];var u=s===e?e:e.concat(s);i[u.start=e.start]=r[u.end=s.end]=u}else i[e.start]=r[e.end]=e;else if(e=i[h])if(delete i[e.start],e.unshift(n),e.start=o,s=r[o]){delete r[s.end];var l=s===e?e:s.concat(e);i[l.start=s.start]=r[l.end=e.end]=l}else i[e.start]=r[e.end]=e;else i[(e=[n]).start=o]=r[e.end=h]=e}),o(r,i),o(i,r),n.forEach(function(t){e[t<0?~t:t]||s.push([t])}),s}function l(t){return h(t,c.apply(this,arguments))}function c(t,n,e){var i,r,s;if(arguments.length>1)i=function(t,n,e){var i,r=[],s=[];function a(t){var n=t<0?~t:t;(s[n]||(s[n]=[])).push({i:t,g:i})}function o(t){t.forEach(a)}function h(t){t.forEach(o)}return function t(n){switch(i=n,n.type){case"GeometryCollection":n.geometries.forEach(t);break;case"LineString":o(n.arcs);break;case"MultiLineString":case"Polygon":h(n.arcs);break;case"MultiPolygon":!function(t){t.forEach(h)}(n.arcs)}}(n),s.forEach(null==e?function(t){r.push(t[0].i)}:function(t){e(t[0].g,t[t.length-1].g)&&r.push(t[0].i)}),r}(0,n,e);else for(r=0,i=new Array(s=t.arcs.length);r<s;++r)i[r]=r;return{type:"MultiLineString",arcs:u(t,i)}}function f(t){return h(t,p.apply(this,arguments))}function p(t,n){var e={},i=[],r=[];function s(t){t.forEach(function(n){n.forEach(function(n){(e[n=n<0?~n:n]||(e[n]=[])).push(t)})}),i.push(t)}function a(n){return function(t){for(var n,e=-1,i=t.length,r=t[i-1],s=0;++e<i;)n=r,r=t[e],s+=n[0]*r[1]-n[1]*r[0];return Math.abs(s)}(h(t,{type:"Polygon",arcs:[n]}).coordinates[0])}return n.forEach(function t(n){switch(n.type){case"GeometryCollection":n.geometries.forEach(t);break;case"Polygon":s(n.arcs);break;case"MultiPolygon":n.arcs.forEach(s)}}),i.forEach(function(t){if(!t._){var n=[],i=[t];for(t._=1,r.push(n);t=i.pop();)n.push(t),t.forEach(function(t){t.forEach(function(t){e[t<0?~t:t].forEach(function(t){t._||(t._=1,i.push(t))})})})}}),i.forEach(function(t){delete t._}),{type:"MultiPolygon",arcs:r.map(function(n){var i,r=[];if(n.forEach(function(t){t.forEach(function(t){t.forEach(function(t){e[t<0?~t:t].length<2&&r.push(t)})})}),(i=(r=u(t,r)).length)>1)for(var s,o,h=1,l=a(r[0]);h<i;++h)(s=a(r[h]))>l&&(o=r[0],r[0]=r[h],r[h]=o,l=s);return r}).filter(function(t){return t.length>0})}}function d(t,n){for(var e=0,i=t.length;e<i;){var r=e+i>>>1;t[r]<n?e=r+1:i=r}return e}function g(t){var n={},e=t.map(function(){return[]});function i(t,e){t.forEach(function(t){t<0&&(t=~t);var i=n[t];i?i.push(e):n[t]=[e]})}function r(t,n){t.forEach(function(t){i(t,n)})}var s={LineString:i,MultiLineString:r,Polygon:r,MultiPolygon:function(t,n){t.forEach(function(t){r(t,n)})}};for(var a in t.forEach(function t(n,e){"GeometryCollection"===n.type?n.geometries.forEach(function(n){t(n,e)}):n.type in s&&s[n.type](n.arcs,e)}),n)for(var o=n[a],h=o.length,u=0;u<h;++u)for(var l=u+1;l<h;++l){var c,f=o[u],p=o[l];(c=e[f])[a=d(c,p)]!==p&&c.splice(a,0,p),(c=e[p])[a=d(c,f)]!==f&&c.splice(a,0,f)}return e}function _(t){if(null==t)return i;var n,e,r=t.scale[0],s=t.scale[1],a=t.translate[0],o=t.translate[1];return function(t,i){i||(n=e=0);var h=2,u=t.length,l=new Array(u),c=Math.round((t[0]-a)/r),f=Math.round((t[1]-o)/s);for(l[0]=c-n,n=c,l[1]=f-e,e=f;h<u;)l[h]=t[h],++h;return l}}function m(t,n){if(t.transform)throw new Error("already quantized");if(n&&n.scale)h=t.bbox;else{if(!((e=Math.floor(n))>=2))throw new Error("n must be â¥2");var e,i=(h=t.bbox||s(t))[0],r=h[1],a=h[2],o=h[3];n={scale:[a-i?(a-i)/(e-1):1,o-r?(o-r)/(e-1):1],translate:[i,r]}}var h,u,l=_(n),c=t.objects,f={};function p(t){return l(t)}function d(t){var n;switch(t.type){case"GeometryCollection":n={type:"GeometryCollection",geometries:t.geometries.map(d)};break;case"Point":n={type:"Point",coordinates:p(t.coordinates)};break;case"MultiPoint":n={type:"MultiPoint",coordinates:t.coordinates.map(p)};break;default:return t}return null!=t.id&&(n.id=t.id),null!=t.bbox&&(n.bbox=t.bbox),null!=t.properties&&(n.properties=t.properties),n}for(u in c)f[u]=d(c[u]);return{type:"Topology",bbox:h,transform:n,objects:f,arcs:t.arcs.map(function(t){var n,e=0,i=1,r=t.length,s=new Array(r);for(s[0]=l(t[0],0);++e<r;)((n=l(t[e],e))[0]||n[1])&&(s[i++]=n);return 1===i&&(s[i++]=[0,0]),s.length=i,s})}}e.r(n),e.d(n,{bbox:()=>s,feature:()=>a,merge:()=>f,mergeArcs:()=>p,mesh:()=>l,meshArcs:()=>c,neighbors:()=>g,quantize:()=>m,transform:()=>r,untransform:()=>_})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.