1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[765],{393:(t,s,i)=>{var e=i(4581);i.o(e,"useParams")&&i.d(s,{useParams:function(){return e.useParams}}),i.o(e,"usePathname")&&i.d(s,{usePathname:function(){return e.usePathname}}),i.o(e,"useSearchParams")&&i.d(s,{useSearchParams:function(){return e.useSearchParams}})},454:(t,s,i)=>{i.d(s,{Q:()=>e});let e=(0,i(8016).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},859:(t,s,i)=>{i.d(s,{f:()=>e});function e(t,s){return s?1e3/s*t:0}},1007:(t,s,i)=>{i.d(s,{M:()=>a});var e=i(8016);function a(t){let s=(0,e.useRef)(null);return null===s.current&&(s.current=t()),s.current}},3367:(t,s,i)=>{i.d(s,{A:()=>h});var e=i(8874);let a={mercator:"+proj=merc +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",equirectangular:"+proj=eqc +lon_0={lng} +lat_ts=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m",robinson:"+proj=robin +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",equalEarth:"+proj=eqearth +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",mollweide:"+proj=moll +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",miller:"+proj=mill +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",sinusoidal:"+proj=sinu +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",orthographic:"+proj=ortho +lat_0={lat} +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m",gallPeters:"+proj=cea +lon_0={lng} +lat_ts=45 +x_0=0 +y_0=0 +datum=WGS84 +units=m",vanDerGrinten:"+proj=vandg +lon_0={lng} +x_0=0 +y_0=0 +datum=WGS84 +units=m"},r={name:"mercator"};var h=class{constructor({map:t,avoidOuterPins:s=!1}){this.points=t.points,this.pins=[],this.X_MIN=t.X_MIN,this.Y_MAX=t.Y_MAX,this.X_RANGE=t.X_RANGE,this.Y_RANGE=t.Y_RANGE,this.grid=t.grid,this.width=t.width,this.height=t.height,this.ystep=t.ystep,this.avoidOuterPins=s,this.proj4String=((t=r)=>{let s=a[t.name],i=t.center?.lat??0,e=t.center?.lng??0;return s.replace("{lat}",String(i)).replace("{lng}",String(e))})(t.projection??r),this.image={region:t.region,width:t.width,height:t.height}}addPin({lat:t,lng:s,data:i,svgOptions:e}){let a=this.getPin({lat:t,lng:s});if(!a)return;let r={...a,data:i,svgOptions:e};return this.pins.push(r),r}getPin({lat:t,lng:s}){let i=(0,e.A)(this.proj4String,[s,t]);if(!i.every(t=>Number.isFinite(t)))return;let[a,r]=i;if(this.avoidOuterPins)return;let h=this.width*(a-this.X_MIN)/this.X_RANGE,n=Math.round(this.height*(this.Y_MAX-r)/this.Y_RANGE/this.ystep);n%2==0&&"diagonal"===this.grid&&(h-=.5);let o=Math.round(h),l=Math.round(n)*this.ystep;n%2==0&&"diagonal"===this.grid&&(o+=.5);let u=(0,e.A)(this.proj4String,"WGS84",[o*this.X_RANGE/this.width+this.X_MIN,this.Y_MAX-l*this.Y_RANGE/this.height]);if(!u.every(t=>Number.isFinite(t)))return;let[c,d]=u;return{x:o,y:l,lat:d,lng:c}}getPoints(){return[...Object.values(this.points),...this.pins]}getSVG({shape:t="circle",color:s="current",backgroundColor:i="transparent",radius:e=.5}={}){let a=({x:i,y:a,svgOptions:r={}})=>{let h=r.radius||e;if("circle"===t)return`<circle cx="${i}" cy="${a}" r="${h}" fill="${r.color||s}" />`;if("hexagon"===t){let t=Math.sqrt(3)*h;return`<polyline points="${[[i+t,a-h],[i+t,a+h],[i,a+2*h],[i-t,a+h],[i-t,a-h],[i,a-2*h]].map(t=>t.join(",")).join(" ")}" fill="${r.color||s}" />`}return""};return`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg" style="background-color: ${i}"> 2 ${Object.values(this.points).map(a).join("\n")} 3 ${this.pins.map(a).join("\n")} 4 </svg>`}}},3883:(t,s,i)=>{i.d(s,{W:()=>e});let e={}},4321:(t,s,i)=>{i.d(s,{W:()=>r});var e=i(8016);let a={some:0,all:1};function r(t){let{root:s,margin:i,amount:r,once:h=!1,initial:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[o,l]=(0,e.useState)(n);return(0,e.useEffect)(()=>{if(!t.current||h&&o)return;let e={root:s&&s.current||void 0,margin:i,amount:r};return function(t,s,{root:i,margin:e,amount:r="some"}={}){let h=function(t,s,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document,i=(void 0)??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(t=>null!=t)}(t),n=new WeakMap,o=new IntersectionObserver(t=>{t.forEach(t=>{let i=n.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=s(t.target,t);
4"function"==typeof i?n.set(t.target,i):o.unobserve(t.target)}else"function"==typeof i&&(i(t),n.delete(t.target))})},{root:i,rootMargin:e,threshold:"number"==typeof r?r:a[r]});return h.forEach(t=>o.observe(t)),()=>o.disconnect()}(t.current,()=>(l(!0),h?void 0:()=>l(!1)),e)},[s,t,i,h,r]),o}},4551:(t,s,i)=>{i.d(s,{A:()=>f});let e=(3+8881784197001252e-31)*11102230246251565e-32;function a(t,s,i,e,a){let r,h,n,o,l=s[0],u=e[0],c=0,d=0;u>l==u>-l?(r=l,l=s[++c]):(r=u,u=e[++d]);let _=0;if(c<t&&d<i)for(u>l==u>-l?(h=l+r,n=r-(h-l),l=s[++c]):(h=u+r,n=r-(h-u),u=e[++d]),r=h,0!==n&&(a[_++]=n);c<t&&d<i;)u>l==u>-l?(o=(h=r+l)-r,n=r-(h-o)+(l-o),l=s[++c]):(o=(h=r+u)-r,n=r-(h-o)+(u-o),u=e[++d]),r=h,0!==n&&(a[_++]=n);for(;c<t;)o=(h=r+l)-r,n=r-(h-o)+(l-o),l=s[++c],r=h,0!==n&&(a[_++]=n);for(;d<i;)o=(h=r+u)-r,n=r-(h-o)+(u-o),u=e[++d],r=h,0!==n&&(a[_++]=n);return(0!==r||0===_)&&(a[_++]=r),_}function r(t){return new Float64Array(t)}let h=(3+17763568394002505e-31)*11102230246251565e-32,n=(2+13322676295501878e-31)*11102230246251565e-32,o=(9+7105427357601002e-30)*11102230246251565e-32*11102230246251565e-32,l=r(4),u=r(8),c=r(12),d=r(16),_=r(4);r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(8),r(8),r(8),r(4),r(8),r(8),r(16),r(12),r(192),r(192),r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(8),r(8),r(8),r(8),r(8),r(8),r(8),r(8),r(8),r(4),r(4),r(4),r(8),r(16),r(16),r(16),r(32),r(32),r(48),r(64),r(1152),r(1152),r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(4),r(24),r(24),r(24),r(24),r(24),r(24),r(24),r(24),r(24),r(24),r(1152),r(1152),r(1152),r(1152),r(1152),r(2304),r(2304),r(3456),r(5760),r(8),r(8),r(8),r(16),r(24),r(48),r(48),r(96),r(192),r(384),r(384),r(384),r(768),r(96),r(96),r(96),r(1152);var f=function(t,s,i={}){if(!t)throw Error("point is required");if(!s)throw Error("polygon is required");
4let r=function(t){if(!t)throw Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return[...t.geometry.coordinates];if("Point"===t.type)return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw Error("coord must be GeoJSON Point or an Array of numbers")}(t),f="Feature"===s.type?s.geometry:s,g=f.type,p=s.bbox,M=f.coordinates;if(p&&!1==(y=r,(v=p)[0]<=y[0]&&v[1]<=y[1]&&v[2]>=y[0]&&v[3]>=y[1]))return!1;"Polygon"===g&&(M=[M]);let m=!1;for(var y,v,w=0;w<M.length;++w){let t=function(t,s){var i,r,f,g,p,M,m,y,v,w=0,E=t[0],x=t[1],S=s.length;for(i=0;i<S;i++){r=0;var G=s[i],P=G.length-1;if((y=G[0])[0]!==G[P][0]&&y[1]!==G[P][1])throw Error("First and last coordinates in a ring must be the same");for(g=y[0]-E,p=y[1]-x;r<P;r++){if(M=(v=G[r+1])[0]-E,m=v[1]-x,0===p&&0===m){if(M<=0&&g>=0||g<=0&&M>=0)return 0}else if(m>=0&&p<=0||m<=0&&p>=0){if(0===(f=function(t,s,i,r,f,g){let p=(s-0)*(i-0),M=(t-0)*(r-0),m=p-M,y=Math.abs(p+M);return Math.abs(m)>=h*y?m:-function(t,s,i,r,h,f,g){let p,M,m,y,v,w,E,x,S,G,P,b,A,N,I,C,k,T,R=t-h,O=i-h,j=s-f,q=r-f;N=R*q,E=(w=0x8000001*R)-(w-R),x=R-E,S=(w=0x8000001*q)-(w-q),I=x*(G=q-S)-(N-E*S-x*S-E*G),C=j*O,E=(w=0x8000001*j)-(w-j),x=j-E,S=(w=0x8000001*O)-(w-O),P=I-(k=x*(G=O-S)-(C-E*S-x*S-E*G)),v=I-P,l[0]=I-(P+v)+(v-k),v=(b=N+P)-N,P=(A=N-(b-v)+(P-v))-C,v=A-P,l[1]=A-(P+v)+(v-C),v=(T=b+P)-b,l[2]=b-(T-v)+(P-v),l[3]=T;let L=function(t,s){let i=s[0];for(let t=1;t<4;t++)i+=s[t];return i}(0,l),F=n*g;if(L>=F||-L>=F||(v=t-R,p=t-(R+v)+(v-h),v=i-O,m=i-(O+v)+(v-h),v=s-j,M=s-(j+v)+(v-f),v=r-q,y=r-(q+v)+(v-f),0===p&&0===M&&0===m&&0===y)||(F=o*g+e*Math.abs(L),(L+=R*y+q*p-(j*m+O*M))>=F||-L>=F))return L;N=p*q,E=(w=0x8000001*p)-(w-p),x=p-E,S=(w=0x8000001*q)-(w-q),I=x*(G=q-S)-(N-E*S-x*S-E*G),C=M*O,E=(w=0x8000001*M)-(w-M),x=M-E,S=(w=0x8000001*O)-(w-O),P=I-(k=x*(G=O-S)-(C-E*S-x*S-E*G)),v=I-P,_[0]=I-(P+v)+(v-k),v=(b=N+P)-N,P=(A=N-(b-v)+(P-v))-C,v=A-P,_[1]=A-(P+v)+(v-C),v=(T=b+P)-b,_[2]=b-(T-v)+(P-v),_[3]=T;let D=a(4,l,4,_,u);N=R*y,E=(w=0x8000001*R)-(w-R),x=R-E,S=(w=0x8000001*y)-(w-y),I=x*(G=y-S)-(N-E*S-x*S-E*G),C=j*m,E=(w=0x8000001*j)-(w-j),x=j-E,S=(w=0x8000001*m)-(w-m),P=I-(k=x*(G=m-S)-(C-E*S-x*S-E*G)),v=I-P,_[0]=I-(P+v)+(v-k),v=(b=N+P)-N,P=(A=N-(b-v)+(P-v))-C,v=A-P,_[1]=A-(P+v)+(v-C),v=(T=b+P)-b,_[2]=b-(T-v)+(P-v),_[3]=T;let B=a(D,u,4,_,c);N=p*y,E=(w=0x8000001*p)-(w-p),x=p-E,S=(w=0x8000001*y)-(w-y),I=x*(G=y-S)-(N-E*S-x*S-E*G),C=M*m,E=(w=0x8000001*M)-(w-M),x=M-E,S=(w=0x8000001*m)-(w-m),P=I-(k=x*(G=m-S)-(C-E*S-x*S-E*G)),v=I-P,_[0]=I-(P+v)+(v-k),v=(b=N+P)-N,P=(A=N-(b-v)+(P-v))-C,v=A-P,_[1]=A-(P+v)+(v-C),v=(T=b+P)-b,_[2]=b-(T-v)+(P-v),_[3]=T;let U=a(B,c,4,_,d);return d[U-1]}(t,s,i,r,f,g,y)}(g,M,p,m,0,0)))return 0;(f>0&&m>0&&p<=0||f<0&&m<=0&&p>0)&&w++}y=v,p=m,g=M}}return w%2!=0}(r,M[w]);if(0===t)return!i.ignoreBoundary;t&&(m=!0)}return m}},4710:(t,s,i)=>{i.d(s,{WG:()=>o,Gt:()=>n,uv:()=>l});var e=i(6723),a=i(3883);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],h={value:null},{schedule:n,cancel:o,state:l}=function(t,s){let i=!1,e=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>i=!0,l=r.reduce((t,i)=>(t[i]=function(t,s){let i=new Set,e=new Set,a=!1,r=!1,n=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(s){n.has(s)&&(c.schedule(s),t()),l++,s(o)}let c={schedule:(t,s=!1,r=!1)=>{let h=r&&a?i:e;return s&&n.add(t),h.add(t),t},cancel:t=>{e.delete(t),n.delete(t)},process:t=>{if(o=t,a){r=!0;return}a=!0;let n=i;i=e,e=n,i.forEach(u),s&&h.value&&h.value.frameloop[s].push(l),l=0,i.clear(),a=!1,r&&(r=!1,c.process(t))}};return c}(o,s?i:void 0),t),{}),{setup:u,read:c,resolveKeyframes:d,preUpdate:_,update:f,preRender:g,render:p,postRender:M}=l,m=()=>{let r=a.W.useManualTiming,h=r?n.timestamp:performance.now();i=!1,r||(n.delta=e?1e3/60:Math.max(Math.min(h-n.timestamp,40),1)),n.timestamp=h,n.isProcessing=!0,u.process(n),c.process(n),d.process(n),_.process(n),f.process(n),g.process(n),p.process(n),M.process(n),n.isProcessing=!1,i&&s&&(e=!1,t(m))};return{schedule:r.reduce((s,a)=>{let r=l[a];return s[a]=(s,a=!1,h=!1)=>(!i&&(i=!0,e=!0,n.isProcessing||t(m)),r.schedule(s,a,h)),s},{}),cancel:t=>{for(let s=0;s<r.length;s++)l[r[s]].cancel(t)},state:n,steps:l}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:e.l,!0)},6049:(t,s,i)=>{i.d(s,{z:()=>tj});let e=(t,s)=>i=>s(t(i)),a=(...t)=>t.reduce(e),r=(t,s,i)=>i>s?s:i<t?t:i;var h=i(6864);let n={mainThread:0};i(7811);let o=()=>{},l=()=>{},u=t=>"string"==typeof t&&t.startsWith("var(--"),c=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,d={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},_={...d,transform:t=>r(0,1,t)};({...d,default:1});let f=t=>Math.round(1e5*t)/1e5,g=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,M=(t,s)=>i=>!!("string"==typeof i&&p.test(i)&&i.startsWith(t)||s&&null!=i&&Object.prototype.hasOwnProperty.call(i,s)),m=(t,s,i)=>e=>{if("string"!=typeof e)return e;let[a,r,h,n]=e.match(g);return{[t]:parseFloat(a),[s]:parseFloat(r),[i]:parseFloat(h),alpha:void 0!==n?parseFloat(n):1}},y={...d,transform:t=>Math.round(r(0,255,t))},v={test:M("rgb","red"),parse:m("red","green","blue"),transform:({red:t,green:s,blue:i,alpha:e=1})=>"rgba("+y.transform(t)+", "+y.transform(s)+", "+y.transform(i)+", "+f(_.transform(e))+")"},w={test:M("#"),parse:function(t){let s="",i="",e="",a="";return t.length>5?(s=t.substring(1,3),i=t.substring(3,5),e=t.substring(5,7),a=t.substring(7,9)):(s=t.substring(1,2),i=t.substring(2,3),e=t.substring(3,4),a=t.substring(4,5),s+=s,i+=i,e+=e,a+=a),{red:parseInt(s,16),green:parseInt(i,16),blue:parseInt(e,16),alph
4a:a?parseInt(a,16)/255:1}},transform:v.transform},E=(t=>({test:s=>"string"==typeof s&&s.endsWith(t)&&1===s.split(" ").length,parse:parseFloat,transform:s=>`${s}${t}`}))("%"),x={test:M("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:t,saturation:s,lightness:i,alpha:e=1})=>"hsla("+Math.round(t)+", "+E.transform(f(s))+", "+E.transform(f(i))+", "+f(_.transform(e))+")"},S={test:t=>v.test(t)||w.test(t)||x.test(t),parse:t=>v.test(t)?v.parse(t):x.test(t)?x.parse(t):w.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?v.transform(t):x.transform(t),getAnimatableNone:t=>{let s=S.parse(t);return s.alpha=0,S.transform(s)}},G="number",P="color",b=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function A(t){let s=t.toString(),i=[],e={color:[],number:[],var:[]},a=[],r=0,h=s.replace(b,t=>(S.test(t)?(e.color.push(r),a.push(P),i.push(S.parse(t))):t.startsWith("var(")?(e.var.push(r),a.push("var"),i.push(t)):(e.number.push(r),a.push(G),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:h,indexes:e,types:a}}let N={createTransformer:function(t){return function({split:t,types:s}){let i=t.length;return e=>{let a="";for(let r=0;r<i;r++)if(a+=t[r],void 0!==e[r]){let t=s[r];t===G?a+=f(e[r]):t===P?a+=S.transform(e[r]):a+=e[r]}return a}}(A(t))}};function I(t,s,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(s-t)*6*i:i<.5?s:i<2/3?t+(s-t)*(2/3-i)*6:t}function C(t,s){return i=>i>0?s:t}let k=(t,s,i)=>t+(s-t)*i,T=(t,s,i)=>{let e=t*t,a=i*(s*s-e)+e;return a<0?0:Math.sqrt(a)},R=[w,v,x];function O(t){let s=R.find(s=>s.test(t));if(o(!!s,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!s)return!1;let i=s.parse(t);return s===x&&(i=function({hue:t,saturation:s,lightness:i,alpha:e}){t/=360,i/=100;let a=0,r=0,h=0;if(s/=100){let e=i<.5?i*(1+s):i+s-i*s,n=2*i-e;a=I(n,e,t+1/3),r=I(n,e,t),h=I(n,e,t-1/3)}else a=r=h=i;return{red:Math.round(255*a),green:Math.round(255*r),blue:Math.round(255*h),alpha:e}}(i)),i}let j=(t,s)=>{let i=O(t),e=O(s);if(!i||!e)return C(t,s);let a={...i};return t=>(a.red=T(i.red,e.red,t),a.green=T(i.green,e.green,t),a.blue=T(i.blue,e.blue,t),a.alpha=k(i.alpha,e.alpha,t),v.transform(a))},q=new Set(["none","hidden"]);function L(t,s){return i=>k(t,s,i)}function F(t){if("number"==typeof t)return L;if("string"==typeof t)return u(t)&&c.test(t.split("/*")[0].trim())?C:S.test(t)?j:U;return Array.isArray(t)?D:"object"==typeof t?S.test(t)?j:B:C}function D(t,s){let i=[...t],e=i.length,a=t.map((t,i)=>F(t)(t,s[i]));return t=>{for(let s=0;s<e;s++)i[s]=a[s](t);return i}}function B(t,s){let i={...t,...s},e={};for(let a in i)void 0!==t[a]&&void 0!==s[a]&&(e[a]=F(t[a])(t[a],s[a]));return t=>{for(let s in e)i[s]=e[s](t);return i}}let U=(t,s)=>{let i=N.createTransformer(s),e=A(t),r=A(s);return e.indexes.var.length===r.indexes.var.length&&e.indexes.color.length===r.indexes.color.length&&e.indexes.number.length>=r.indexes.number.length?q.has(t)&&!r.values.length||q.has(s)&&!e.values.length?function(t,s){return q.has(t)?i=>i<=0?t:s:i=>i>=1?s:t}(t,s):a(D(function(t,s){let i=[],e={color:0,var:0,number:0};for(let a=0;a<s.values.length;a++){let r=s.types[a],h=t.indexes[r][e[r]],n=t.values[h]??0;i[a]=n,e[r]++}return i}(e,r),r.values),i):(o(!0,`Complex values '${t}' and '${s}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),C(t,s))};function z(t,s,i){return"number"==typeof t&&"number"==typeof s&&"number"==typeof i?k(t,s,i):F(t)(t,s)}var W=i(4710);let Q=t=>{let s=({timestamp:s})=>t(s);return{start:(t=!0)=>W.Gt.update(s,t),stop:()=>(0,W.WG)(s),now:()=>W.uv.isProcessing?W.uv.timestamp:h.k.now()}};function H(t){let s=0,i=t.next(s);for(;!i.done&&s<2e4;)s+=50,i=t.next(s);return s>=2e4?1/0:s}let V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function X(t,s){return t*Math.sqrt(1-s*s)}let K=["duration","bounce"],$=["stiffness","damping","mass"];function J(t,s){return s.some(s=>void 0!==t[s])}function Y(t=V.visualDuration,s=V.bounce){let i,e,a,h,n,l,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:s}:t,{restSpeed:c,restDelta:d}=u,_=u.keyframes[0],f=u.keyframes[u.keyframes.length-1],g={done:!1,value:_},{stiffness:p,damping:M,mass:m,duration:y,velocity:v,isResolvedFromDuration:w}=function(t){let s={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...t};
4if(!J(t,$)&&J(t,K))if(s.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),e=i*i,a=2*r(.05,1,1-(t.bounce||0))*Math.sqrt(e);s={...s,mass:V.mass,stiffness:e,damping:a}}else{let i=function({duration:t=V.duration,bounce:s=V.bounce,velocity:i=V.velocity,mass:e=V.mass}){let a,h;o(t<=1e3*V.maxDuration,"Spring duration must be 10 seconds or less","spring-duration-limit");let n=1-s;n=r(V.minDamping,V.maxDamping,n),t=r(V.minDuration,V.maxDuration,t/1e3),n<1?(a=s=>{let e=s*n,a=e*t;return .001-(e-i)/X(s,n)*Math.exp(-a)},h=s=>{let e=s*n*t,r=Math.pow(n,2)*Math.pow(s,2)*t,h=Math.exp(-e),o=X(Math.pow(s,2),n);return(e*i+i-r)*h*(-a(s)+.001>0?-1:1)/o}):(a=s=>-.001+Math.exp(-s*t)*((s-i)*t+1),h=s=>t*t*(i-s)*Math.exp(-s*t));let l=function(t,s,i){let e=i;for(let i=1;i<12;i++)e-=t(e)/s(e);return e}(a,h,5/t);if(t*=1e3,isNaN(l))return{stiffness:V.stiffness,damping:V.damping,duration:t};{let s=Math.pow(l,2)*e;return{stiffness:s,damping:2*n*Math.sqrt(e*s),duration:t}}}({...t,velocity:0});(s={...s,...i,mass:V.mass}).isResolvedFromDuration=!0}return s}({...u,velocity:-((u.velocity||0)/1e3)}),E=v||0,x=M/(2*Math.sqrt(p*m)),S=f-_,G=Math.sqrt(p/m)/1e3,P=5>Math.abs(S);if(c||(c=P?V.restSpeed.granular:V.restSpeed.default),d||(d=P?V.restDelta.granular:V.restDelta.default),x<1)a=X(G,x),h=(E+x*G*S)/a,i=t=>f-Math.exp(-x*G*t)*(h*Math.sin(a*t)+S*Math.cos(a*t)),n=x*G*h+S*a,l=x*G*S-h*a,e=t=>Math.exp(-x*G*t)*(n*Math.sin(a*t)+l*Math.cos(a*t));else if(1===x){i=t=>f-Math.exp(-G*t)*(S+(E+G*S)*t);let t=E+G*S;e=s=>Math.exp(-G*s)*(G*t*s-E)}else{let t=G*Math.sqrt(x*x-1);i=s=>{let i=Math.exp(-x*G*s),e=Math.min(t*s,300);return f-i*((E+x*G*S)*Math.sinh(e)+t*S*Math.cosh(e))/t};let s=(E+x*G*S)/t,a=x*G*s-S*t,r=x*G*S-s*t;e=s=>{let i=Math.exp(-x*G*s),e=Math.min(t*s,300);return i*(a*Math.sinh(e)+r*Math.cosh(e))}}let b={calculatedDuration:w&&y||null,velocity:t=>1e3*e(t),next:t=>{if(!w&&x<1){let s=Math.exp(-x*G*t),i=Math.sin(a*t),e=Math.cos(a*t),r=f-s*(h*i+S*e);return g.done=Math.abs(s*(n*i+l*e)*1e3)<=c&&Math.abs(f-r)<=d,g.value=g.done?f:r,g}let s=i(t);return w?g.done=t>=y:g.done=Math.abs(1e3*e(t))<=c&&Math.abs(f-s)<=d,g.value=g.done?f:s,g},toString:()=>{let t=Math.min(H(b),2e4),s=((t,s,i=10)=>{let e="",a=Math.max(Math.round(s/i),2);for(let s=0;s<a;s++)e+=Math.round(1e4*t(s/(a-1)))/1e4+", ";return`linear(${e.substring(0,e.length-2)})`})(s=>b.next(t*s).value,t,30);return t+"ms "+s},toTransition:()=>{}};return b}Y.applyToOptions=t=>{let s=function(t,s=100,i){let e=i({...t,keyframes:[0,s]}),a=Math.min(H(e),2e4);return{type:"keyframes",ease:t=>e.next(a*t).value/s,duration:a/1e3}}(t,100,Y);return t.ease=s.ease,t.duration=1e3*s.duration,t.type="keyframes",t};var Z=i(859);function tt(t,s,i){let e=Math.max(s-5,0);return(0,Z.f)(i-t(e),s-e)}function ts({keyframes:t,velocity:s=0,power:i=.8,timeConstant:e=325,bounceDamping:a=10,bounceStiffness:r=500,modifyTarget:h,min:n,max:o,restDelta:l=.5,restSpeed:u}){let c,d,_=t[0],f={done:!1,value:_},g=i*s,p=_+g,M=void 0===h?p:h(p);M!==p&&(g=M-_);let m=t=>-g*Math.exp(-t/e),y=t=>M+m(t),v=t=>{let s=m(t),i=y(t);f.done=Math.abs(s)<=l,f.value=f.done?M:i},w=t=>{let s;if(s=f.value,void 0!==n&&s<n||void 0!==o&&s>o){var i;c=t,d=Y({keyframes:[f.value,(i=f.value,void 0===n?o:void 0===o||Math.abs(n-i)<Math.abs(o-i)?n:o)],velocity:tt(y,t,f.value),damping:a,stiffness:r,restDelta:l,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let s=!1;return(d||void 0!==c||(s=!0,v(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(s||v(t),f)}}}var ti=i(6723);let te=(t,s,i)=>(((1-3*i+3*s)*t+(3*i-6*s))*t+3*s)*t;function ta(t,s,i,e){return t===s&&i===e?ti.l:a=>0===a||1===a?a:te(function(t,s,i,e,a){let r,h,n=0;do(r=te(h=s+(i-s)/2,e,a)-t)>0?i=h:s=h;while(Math.abs(r)>1e-7&&++n<12);return h}(a,0,1,t,i),s,e)}let tr=ta(.42,0,1,1),th=ta(0,0,.58,1),tn=ta(.42,0,.58,1),to=t=>s=>s<=.5?t(2*s)/2:(2-t(2*(1-s)))/2,tl=t=>s=>1-t(1-s),tu=ta(.33,1.53,.69,.99),tc=tl(tu),td=to(tc),t_=t=>1-Math.sin(Math.acos(t)),tf=tl(t_),tg=to(t_),tp={linear:ti.l,easeIn:tr,easeInOut:tn,easeOut:th,circIn:t_,circInOut:tg,circOut:tf,backIn:tc,backInOut:td,backOut:tu,anticipate:t=>t>=1?1:(t*=2)<1?.5*tc(t):.5*(2-Math.pow(2,-10*(t-1)))},tM=t=>{if((t=>Array.isArray(t)&&"number"==typeof t[0])(t)){l(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[s,i,e,a]=t;return ta(s,i,e,a)}return"string"==typeof t?(l(void 0!==tp[t],`Invalid easing type '${t}
4'`,"invalid-easing-type"),tp[t]):t};var tm=i(3883);let ty=(t,s,i)=>{let e=s-t;return 0===e?1:(i-t)/e};function tv(t,s,{clamp:i=!0,ease:e,mixer:h}={}){let n=t.length;if(l(n===s.length,"Both input and output ranges must be the same length","range-length"),1===n)return()=>s[0];if(2===n&&s[0]===s[1])return()=>s[1];let o=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),s=[...s].reverse());let u=function(t,s,i){let e=[],r=i||tm.W.mix||z,h=t.length-1;for(let i=0;i<h;i++){let h=r(t[i],t[i+1]);s&&(h=a(Array.isArray(s)?s[i]||ti.l:s,h)),e.push(h)}return e}(s,e,h),c=u.length,d=i=>{if(o&&i<t[0])return s[0];let e=0;if(c>1)for(;e<t.length-2&&!(i<t[e+1]);e++);let a=ty(t[e],t[e+1],i);return u[e](a)};return i?s=>d(r(t[0],t[n-1],s)):d}function tw({duration:t=300,keyframes:s,times:i,ease:e="easeInOut"}){var a;let r=Array.isArray(e)&&"number"!=typeof e[0]?e.map(tM):tM(e),h={done:!1,value:s[0]},n=tv((a=i&&i.length===s.length?i:function(t){let s=[0];return!function(t,s){let i=t[t.length-1];for(let e=1;e<=s;e++){let a=ty(0,s,e);t.push(k(i,1,a))}}(s,t.length-1),s}(s),a.map(s=>s*t)),s,{ease:Array.isArray(r)?r:s.map(()=>r||tn).splice(0,s.length-1)});return{calculatedDuration:t,next:s=>(h.value=n(s),h.done=s>=t,h)}}let tE=t=>null!==t,tx={decay:ts,inertia:ts,tween:tw,keyframes:tw,spring:Y};class tS{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}let tG=t=>t/100;class tP extends tS{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==h.k.now()&&this.tick(h.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},n.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;"string"==typeof t.type&&(t.type=tx[t.type]);let{type:s=tw,repeat:i=0,repeatDelay:e=0,repeatType:r,velocity:h=0}=t,{keyframes:n}=t,o=s||tw;o!==tw&&"number"!=typeof n[0]&&(this.mixKeyframes=a(tG,z(n[0],n[1])),n=[0,100]);let l=o({...t,keyframes:n});"mirror"===r&&(this.mirroredGenerator=o({...t,keyframes:[...n].reverse(),velocity:-h})),null===l.calculatedDuration&&(l.calculatedDuration=H(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+e,this.totalDuration=this.resolvedDuration*(i+1)-e,this.generator=l}updateTime(t){let s=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){let i,{generator:e,totalDuration:a,mixKeyframes:h,mirroredGenerator:n,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return e.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:_,repeatDelay:f,type:g,onUpdate:p,finalKeyframe:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);let m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?m<0:m>a;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=a);let v=this.currentTime,w=e;if(d){let t=Math.min(this.currentTime,a)/o,s=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&s--,(s=Math.min(s,d+1))%2&&("reverse"===_?(i=1-i,f&&(i-=f/o)):"mirror"===_&&(w=n)),v=r(0,1,i)*o}y?(this.delayState.value=c[0],i=this.delayState):i=w.next(v),h&&!y&&(i.value=h(i.value));let{done:E}=i;y||null===l||(E=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return x&&g!==ts&&(i.value=function(t,{repeat:s,repeatType:i="loop"},e,a=1){let r=t.filter(tE),h=a<0||s&&"loop"!==i&&s%2==1?0:r.length-1;return h&&void 0!==e?e:r[h]}(c,this.options,M,this.speed)),p&&p(i.value),x&&this.finish(),i}then(t,s){return this.finished.then(t,s)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t*=1e3,this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
4if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let s=this.generator.next(t).value;return tt(t=>this.generator.next(t).value,t,s)}get speed(){return this.playbackSpeed}set speed(t){let s=this.playbackSpeed!==t;s&&this.driver&&this.updateTime(h.k.now()),this.playbackSpeed=t,s&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=Q,startTime:s}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=s??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(h.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,n.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function tb(t){return"number"==typeof t?t:parseFloat(t)}var tA=i(8016),tN=i(454),tI=i(6993),tC=i(1007);let tk="undefined"!=typeof window?tA.useLayoutEffect:tA.useEffect;function tT(t,s){let i=(0,tI.d)(s()),e=()=>i.set(s());return e(),tk(()=>{let s=()=>W.Gt.preRender(e,!1,!0),i=t.map(t=>t.on("change",s));return()=>{i.forEach(t=>t()),(0,W.WG)(e)}}),i}var tR=i(8210);function tO(t,s){let i=(0,tC.M)(()=>[]);return tT(t,()=>{i.length=0;let e=t.length;for(let s=0;s<e;s++)i[s]=t[s].get();return s(i)})}function tj(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{isStatic:i}=(0,tA.useContext)(tN.Q),e=()=>t&&t.getVelocity?t.get():t;if(i)return function t(s,i,e,a){if("function"==typeof s){tR.bt.current=[],s();let t=tT(tR.bt.current,s);return tR.bt.current=void 0,t}if(void 0!==e&&!Array.isArray(e)&&"function"!=typeof i){var r=s,h=i,n=e,o=a;let l=(0,tC.M)(()=>Object.keys(n)),u=(0,tC.M)(()=>({}));for(let s of l)u[s]=t(r,h,n[s],o);return u}let l="function"==typeof i?i:function(...t){let s=!Array.isArray(t[0]),i=s?0:-1,e=t[0+i],a=t[1+i],r=tv(a,t[2+i],t[3+i]);return s?r(e):r}(i,e,a),u=Array.isArray(s)?tO(s,l):tO([s],t=>{let[s]=t;return l(s)}),c=Array.isArray(s)?void 0:s.accelerate;return c&&!c.isTransformed&&"function"!=typeof i&&Array.isArray(e)&&(null==a?void 0:a.clamp)!==!1&&(u.accelerate={...c,times:i,keyframes:e,isTransformed:!0,...(null==a?void 0:a.ease)?{ease:a.ease}:{}}),u}(e);let a=(0,tI.d)(e());return(0,tA.useInsertionEffect)(()=>(function(t,s,i={}){let e,a=t.get(),r=null,h=a,n="string"==typeof a?a.replace(/[\d.-]/g,""):void 0,o=()=>{r&&(r.stop(),r=null),t.animation=void 0},l=()=>{(()=>{let s=tb(t.get()),a=tb(h);if(s===a)return o();let n=r?r.getGeneratorVelocity():t.getVelocity();o(),r=new tP({keyframes:[s,a],velocity:n,type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:e})})(),t.animation=r??void 0,t.events.animationStart?.notify(),r?.then(()=>{t.animation=void 0,t.events.animationComplete?.notify()})};if(t.attach((t,s)=>{h=t,e=t=>{var i,e;return s((i=t,(e=n)?i+e:i))},W.Gt.postRender(l)},o),s&&s.getVelocity){let e=!0===i.skipInitialAnimation,a=s.on("change",s=>{var i,a,r,h;e?(e=!1,t.jump((i=s,(a=n)?i+a:i),!1)):t.set((r=s,(h=n)?r+h:r))}),r=t.on("destroy",a);return()=>{a(),r()}}return o})(a,t,s),[a,JSON.stringify(s)]),a}(t,{type:"spring",...s})}},6723:(t,s,i)=>{i.d(s,{l:()=>e});let e=t=>t},6864:(t,s,i)=>{let e;i.d(s,{k:()=>n});var a=i(3883),r=i(4710);function h(){e=void 0}let n={now:()=>(void 0===e&&n.set(r.uv.isProcessing||a.W.useManualTiming?r.uv.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(h)}}},6993:(t,s,i)=>{i.d(s,{d:()=>n});var e=i(8210),a=i(8016),r=i(454),h=i(1007);function n(t){let s=(0,h.M)(()=>(0,e.OQ)(t)),{isStatic:i}=(0,a.useContext)(r.Q);if(i){let[,i]=(0,a.useState)(t);(0,a.useEffect)(()=>
4s.on("change",i),[])}return s}},8210:(t,s,i)=>{i.d(s,{bt:()=>n,OQ:()=>l});class e{constructor(){this.subscriptions=[]}add(t){var s;return s=this.subscriptions,-1===s.indexOf(t)&&s.push(t),()=>(function(t,s){let i=t.indexOf(s);i>-1&&t.splice(i,1)})(this.subscriptions,t)}notify(t,s,i){let e=this.subscriptions.length;if(e)if(1===e)this.subscriptions[0](t,s,i);else for(let a=0;a<e;a++){let e=this.subscriptions[a];e&&e(t,s,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}var a=i(859),r=i(6864),h=i(4710);let n={current:void 0};class o{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let s=r.k.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=r.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new e);let i=this.events[t].add(s);return"change"===t?()=>{i(),h.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,i){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return n.current&&n.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let s=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,a.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,s){return new o(t,s)}},8874:(t,s,i)=>{i.d(s,{A:()=>sT});var e=Math.PI/2,a=Math.PI/4,r=2*Math.PI,h={};h.greenwich=0,h.lisbon=-9.131906111111,h.paris=2.337229166667,h.bogota=-74.080916666667,h.madrid=-3.687938888889,h.rome=12.452333333333,h.bern=7.439583333333,h.jakarta=106.807719444444,h.ferro=-17.666666666667,h.brussels=4.367975,h.stockholm=18.058277777778,h.athens=23.7163375,h.oslo=10.722916666667;let n={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 o=/[\s_\-\/\(\)]/g;function l(t,s){if(t[s])return t[s];for(var i,e=Object.keys(t),a=s.toLowerCase().replace(o,""),r=-1;++r<e.length;)if((i=e[r]).toLowerCase().replace(o,"")===a)return t[i]}function u(t){var s,i,e,a={},r=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,s){var i=s.split("=");return i.push(!0),t[i[0].toLowerCase()]=i[1],t},{}),o={proj:"projName",datum:"datumCode",rf:function(t){a.rf=parseFloat(t)},lat_0:function(t){a.lat0=.017453292519943295*t},lat_1:function(t){a.lat1=.017453292519943295*t},lat_2:function(t){a.lat2=.017453292519943295*t},lat_ts:function(t){a.lat_ts=.017453292519943295*t},lon_0:function(t){a.long0=.017453292519943295*t},lon_1:function(t){a.long1=.017453292519943295*t},lon_2:function(t){a.long2=.017453292519943295*t},alpha:function(t){a.alpha=.017453292519943295*parseFloat(t)},gamma:function(t){a.rectified_grid_angle=.017453292519943295*parseFloat(t)},lonc:function(t){a.longc=.017453292519943295*t},x_0:function(t){a.x0=parseFloat(t)},y_0:function(t){a.y0=parseFloat(t)},k_0:function(t){a.k0=parseFloat(t)},k:function(t){a.k0=parseFloat(t)},a:function(t){a.a=parseFloat(t)},b:function(t){a.b=parseFloat(t)},r:function(t){a.a=a.b=parseFloat(t)},r_a:function(){a.R_A=!0},zone:function(t){a.zone=parseInt(t,10)},south:function(){a.utmSouth=!0},towgs84:function(t){a.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){a.to_meter=parseFloat(t)},units:function(t){a.units=t;var s=l(n,t);s&&(a.to_meter=s.to_meter)},from_greenwich:function(t){a.from_greenwich=.017453292519943295*t},pm:function(t){a.from_greenwich=.017453292519943295*(l(h,t)||parseFloat(t))},nadgrids:function(t){"@null"===t?a.datumCode="none":a.nadgrids=t},axis:function(t){var s="ewnsud";3===t.length&&-1!==s.indexOf(t.substr(0,1))&&-1!==s.indexOf(t.substr(1,1))&&-1!==s.indexOf(t.substr(2,1))&&(a.axis=t)},approx:function(){a.approx=!0},over:function(){a.over=!0}};for(s in r)i=r[s],s in o?"function"==typeof(e=o[s])?e(i):a[e]=i:a[s]=i;return"string"==typeof a.datumCode&&"WGS84"!==a.datumCode&&(a.datumCode=a.datumCode.toLowerCase()),a.projStr=t,a}class c{static getId(t){let s=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return s&&s.length>=3?{authority:s[1],code:parseInt(s[2],10)}:null}static convertUnit(t,s="unit"){if(!t||t.length<3)return{type:s,name:"unknown",conversion_factor:null};let i=t[1],e=parseFloat(t[2])||null,a=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return{type:s,name:i,conversion_factor:e,id:a?{authority:a[1],code:parseInt(a[2],10)}:null}}static convertAxis(t){let s,i=t[1]||"Unknown",e=i.match(/^\((.)\)$/);if(e){let i=e[1].toUpperCase();if("E"===i)s="east";else if("N"===i)s="north";else if("U"===i)s="up";else if(t[2])s=t[2];else throw Error(`Unknown axis abbreviation: ${i}`)}else s=t[2]||"unknown";let a=t.find(t=>Array.isArray(t)&&"ORDER"===t[0]),r=a?parseInt(a[1],10):null,h=t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]));return{name:i,direction:s,unit:this.convertUnit(h),order:r}}static extractAxes(t){return t.filter(t=>Array.isArray(t)&&"AXIS"===t[0]).map(t=>this.convertAxis(t)).sort((t,s)=>(t.order||0)-(s.order||0))}static convert(t,s={}){switch(t[0]){case"PROJCRS":s.type="ProjectedCRS",s.name=t[1],s.base_crs=t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])?this.convert(t.find(t=>
4Array.isArray(t)&&"BASEGEOGCRS"===t[0])):null,s.conversion=t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])):null;let i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(s.coordinate_system={type:i[1],axis:this.extractAxes(t)});let e=t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]);if(e){let t=this.convertUnit(e);s.coordinate_system.unit=t}s.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":case"GEODCRS":s.type="GEODCRS"===t[0]?"GeodeticCRS":"GeographicCRS",s.name=t[1];let a=t.find(t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0]));if(a){let i=this.convert(a);"ENSEMBLE"===a[0]?s.datum_ensemble=i:s.datum=i;let e=t.find(t=>Array.isArray(t)&&"PRIMEM"===t[0]);e&&"Greenwich"!==e[1]&&(i.prime_meridian={name:e[1],longitude:parseFloat(e[2])})}s.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},s.id=this.getId(t);break;case"DATUM":s.type="GeodeticReferenceFrame",s.name=t[1],s.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":s.type="DatumEnsemble",s.name=t[1],s.members=t.filter(t=>Array.isArray(t)&&"MEMBER"===t[0]).map(t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)}));let r=t.find(t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]);r&&(s.accuracy=parseFloat(r[1]));let h=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0]);h&&(s.ellipsoid=this.convert(h)),s.id=this.getId(t);break;case"ELLIPSOID":s.type="Ellipsoid",s.name=t[1],s.semi_major_axis=parseFloat(t[2]),s.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]),s);break;case"CONVERSION":s.type="Conversion",s.name=t[1],s.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,s.parameters=t.filter(t=>Array.isArray(t)&&"PARAMETER"===t[0]).map(t=>this.convert(t));break;case"METHOD":s.type="Method",s.name=t[1],s.id=this.getId(t);break;case"PARAMETER":s.type="Parameter",s.name=t[1],s.value=parseFloat(t[2]),s.unit=this.convertUnit(t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]))),s.id=this.getId(t);break;case"BOUNDCRS":s.type="BoundCRS";let n=t.find(t=>Array.isArray(t)&&"SOURCECRS"===t[0]);if(n){let t=n.find(t=>Array.isArray(t));s.source_crs=t?this.convert(t):null}let o=t.find(t=>Array.isArray(t)&&"TARGETCRS"===t[0]);if(o){let t=o.find(t=>Array.isArray(t));s.target_crs=t?this.convert(t):null}let l=t.find(t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]);l?s.transformation=this.convert(l):s.transformation=null;break;case"ABRIDGEDTRANSFORMATION":if(s.type="Transformation",s.name=t[1],s.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,s.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===s.parameters.length){let t=s.parameters[6];"Scale difference"===t.name&&(t.value=Math.round((t.value-1)*1e12)/1e6)}s.id=this.getId(t);break;case"AXIS":s.coordinate_system||(s.coordinate_system={type:"unspecified",axis:[]}),s.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":let u=this.convertUnit(t,"LinearUnit");s.coordinate_system&&s.coordinate_system.axis&&s.coordinate_system.axis.forEach(t=>{t.unit||(t.unit=u)}),u.conversion_factor&&1!==u.conversion_factor&&s.semi_major_axis&&(s.semi_major_axis={value:s.semi_major_axis,unit:u});break;default:s.keyword=t[0]}return s}}let d=c;class _ extends d{static convert(t,s={}){return super.convert(t,s),s.coordinate_system&&"Cartesian"===s.coordinate_system.subtype&&delete s.coordinate_system,s.usage&&delete s.usage,s}}class f extends d{static convert(t,s={}){super.convert(t,s);let i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(s.coordinate_system={subtype:i[1],axis:this.extractAxes(t)});let e=t.find(t=>Array.isArray(t)&&"USAGE"===t[0]);if(e){let t=e.find(t=>Array.isArray(t)&&"SCOPE"===t[0]),i=e.find(t=>Array.isArray(t)&&"AREA"===t[0]),a=e.find(t=>Array.isArray(t)&&"BBOX"===t[0]);s.usage={},t&&(s.usage.scope=t[1]),i&&(s.usage.area=i[1]),a&&(s.usage.bbox=a.slice(1))}return s}}var g=/\s/,p=/[A-Za-z]/,M=/[A-Za-z84_]/,m=/[,\]]/,y=/[\d\.E\-\+]/;function v(t){if("string"!=typeof t)throw 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 w(t,s,i){Array.isArray(s)&&(i.unshift(s),s=null);var e=s?{}:t,a=i.reduce(function(t,s){return E(s,t),t},e);
4s&&(t[s]=a)}function E(t,s){if(!Array.isArray(t)){s[t]=!0;return}var i,e=t.shift();if("PARAMETER"===e&&(e=t.shift()),1===t.length){if(Array.isArray(t[0])){s[e]={},E(t[0],s[e]);return}s[e]=t[0];return}if(!t.length){s[e]=!0;return}if("TOWGS84"===e){s[e]=t;return}if("AXIS"===e){e in s||(s[e]=[]),s[e].push(t);return}switch(!Array.isArray(e)&&(s[e]={}),e){case"UNIT":case"PRIMEM":case"VERT_DATUM":s[e]={name:t[0].toLowerCase(),convert:t[1]},3===t.length&&E(t[2],s[e]);return;case"SPHEROID":case"ELLIPSOID":s[e]={name:t[0],a:t[1],rf:t[2]},4===t.length&&E(t[3],s[e]);return;case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":t[0]=["name",t[0]],w(s,e,t);return;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":t[0]=["name",t[0]],w(s,e,t),s[e].type=e;return;default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return E(t,s[e]);return w(s,e,t)}}function x(t){return .017453292519943295*t}function S(t){let s=(t.projName||"").toLowerCase().replace(/_/g," ");void 0===t.long0&&void 0!==t.longc&&(t.long0=t.longc),!t.lat_ts&&t.lat1&&("stereographic south pole"===s||"polar stereographic (variant b)"===s)?(t.lat0=x(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1):!t.lat_ts&&t.lat0&&("polar stereographic"===s||"polar stereographic (variant a)"===s)&&(t.lat_ts=t.lat0,t.lat0=x(t.lat0>0?90:-90),delete t.lat1)}function G(t){let s={units:null,to_meter:void 0};return"string"==typeof t?(s.units=t.toLowerCase(),"metre"===s.units&&(s.units="meter"),"meter"===s.units&&(s.to_meter=1)):t&&t.name&&(s.units=t.name.toLowerCase(),"metre"===s.units&&(s.units="meter"),s.to_meter=t.conversion_factor),s}function P(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function b(t,s){t.ellipsoid.radius?(s.a=t.ellipsoid.radius,s.rf=0):(s.a=P(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?s.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(s.rf=s.a/(s.a-P(t.ellipsoid.semi_minor_axis))))}function A(t,s={}){return t&&"object"==typeof t?("BoundCRS"===t.type?(A(t.source_crs,s),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?s.nadgrids=t.transformation.parameters[0].value:s.datum_params=t.transformation.parameters.map(t=>t.value))):(Object.keys(t).forEach(i=>{let e=t[i];if(null!==e)switch(i){case"name":if(s.srsCode)break;s.name=e,s.srsCode=e;break;case"type":"GeographicCRS"===e?s.projName="longlat":"GeodeticCRS"===e?t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype?s.projName="geocent":s.projName="longlat":"ProjectedCRS"===e&&t.conversion&&t.conversion.method&&(s.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":e.ellipsoid&&(s.ellps=e.ellipsoid.name,b(e,s)),e.prime_meridian&&(s.from_greenwich=e.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":s.ellps=e.name,b(e,s);break;case"prime_meridian":s.long0=(e.longitude||0)*Math.PI/180;break;case"coordinate_system":if(e.axis){let t={east:"e",north:"n",west:"w",south:"s",up:"u",down:"d",geocentricx:"e",geocentricy:"n",geocentricz:"u"},i=e.axis.map(s=>t[s.direction.toLowerCase()]);if(i.every(Boolean)&&(s.axis=i.join(""),2===s.axis.length&&(s.axis+="u")),e.unit){let{units:t,to_meter:i}=G(e.unit);s.units=t,s.to_meter=i}else if(e.axis[0]&&e.axis[0].unit){let{units:t,to_meter:i}=G(e.axis[0].unit);s.units=t,s.to_meter=i}}break;case"id":e.authority&&e.code&&(s.title=e.authority+":"+e.code);break;case"conversion":e.method&&e.method.name&&(s.projName=e.method.name),e.parameters&&e.parameters.forEach(t=>{let i=t.name.toLowerCase().replace(/\s+/g,"_"),e=t.value;t.unit&&t.unit.conversion_factor?s[i]=e*t.unit.conversion_factor:"degree"===t.unit?s[i]=e*Math.PI/180:s[i]=e});break;case"unit":e.name&&(s.units=e.name.toLowerCase(),"metre"===s.units&&(s.units="meter")),e.conversion_factor&&(s.to_meter=e.conversion_factor);break;case"base_crs":A(e,s),s.datumCode=e.id?e.id.authority+"_"+e.id.code:e.name}}),void 0!==s.latitude_of_false_origin&&(s.lat0=s.latitude_of_false_origin),void 0!==s.longitude_of_false_origin&&(s.long0=s.longitude_of_false_origin),void 0!==s.latitude_of_standard_parallel&&(s.lat0=s.latitude_of_standard_parallel,s.lat1=s.latitude_of_standard_parallel),void 0!==s.latitude_of_1st_standard_parallel&&(s.lat1=s.latitude_of_1st_standard_parallel),void 0!==s.latitude_of_2nd_standard_parallel&&(s.lat2=s.latitude_of_2nd_standard_parallel),void 0!==s.latitude_of_projection_centre&&(s.lat0=s.latitude_of_projection_centre),void 0!==s.longitude_of_projection_centre&&(s.longc=s.longitude_of_projection_centre),void 0!==s.easting_at_false_origin&&(s.x0=s.easting_at_false_origin),void 0!==s.northing_at_false_origin&&(s.y0=s.northing_at_false_origin),void 0!==s.latitude_of_natural_origin&&(s.lat0=s.latitude_of_natural_origin),void 0!==s.longitude_of_natural_origin&&(s.long0=s.longitude_of_natural_origin),void 0!==s.longitude_of_origin&&(s.long0=s.longitude_of_origin),void 0!==s.false_easting&&(s.x0=s.false_easting),s.easting_at_projection_centre&&(s.x0=s.easting_at_projection_centre),void 0!==s.false_northing&&(s.y0=s.false_northing),s.northing_at_projection_centre&&(s.y0=s.northing_at_projection_centre),void 0!==s.standard_parallel_1&&(s.lat1=s.standard_parallel_1),void 0!==s.standard_parallel_2&&(s.lat2=s.standard_parallel_2),void 0!==s.scale_factor_at_natural_origin&&(s.k0=s.scale_factor_at_natural_origin),void 0!==s.scale_factor_at_projection_centre&&(s.k0=s.scale_factor_at_projection_centre),void 0!==s.scale_factor_on_pseudo_standard_parallel&&(s.k0=s.scale_factor_on_pseudo_standard_parallel),void 0!==s.azimuth&&(s.alpha=s.azimuth),void 0!==s.azimuth_at_projection_centre&&(s.alpha=s.azimuth_at_projection_centre),s.angle_from_rectified_to_skew_grid&&(s.rectified_grid_angle=s.angle_from_rectified_to_skew_grid),S(s)),s):t}v.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;g.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}},v.prototype.afterquote=function(t){if('"'===t){this.word+='"',this.state=4;return}if(m.test(t)){this.word=this.word.trim(),this.afterItem(t);return}throw Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},v.prototype.afterItem=function(t){if(","===t){null!==this.word&&this.currentObject.push(this.word),this.word=null,this.state=1;return}if("]"===t){this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),this.currentObject||(this.state=-1);return}},v.prototype.number=function(t){if(y.test(t)){this.word+=t;return}if(m.test(t)){this.word=parseFloat(this.word),this.afterItem(t);return}throw Error("havn't handled \""+t+'" in number yet, index '+this.place)},v.prototype.quoted=function(t){if('"'===t){this.state=5;return}this.word+=t},v.prototype.keyword=function(t){if(M.test(t)){this.word+=t;return}if("["===t){var s=[];s.push(this.word),this.level++,null===this.root?this.root=s:this.currentObject.push(s),this.stack.push(this.currentObject),this.currentObject=s,this.state=1;return}if(m.test(t))return void this.afterItem(t);throw Error("havn't handled \""+t+'" in keyword yet, index '+this.place)},v.prototype.neutral=function(t){if(p.test(t)){this.word=t,this.state=2;return}if('"'===t){this.word="",this.state=4;return}if(y.test(t)){this.word=t,this.state=3;return}if(m.test(t))return void this.afterItem(t);throw Error("havn't handled \""+t+'" in neutral yet, index '+this.place)},v.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw Error('unable to parse string "'+this.text+'". State is '+this.state)};
4var N=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function I(t){if("object"==typeof t)return A(t);let s=function(t){let s=t.toUpperCase();return s.includes("PROJCRS")||s.includes("GEOGCRS")||s.includes("BOUNDCRS")||s.includes("VERTCRS")||s.includes("LENGTHUNIT")||s.includes("ANGLEUNIT")||s.includes("SCALEUNIT")?"WKT2":(s.includes("PROJCS")||s.includes("GEOGCS")||s.includes("LOCAL_CS")||s.includes("VERT_CS")||s.includes("UNIT"),"WKT1")}(t);var i=new v(t).output();if("WKT2"===s)return A(function(t){return("2019"==(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"))?f:_).convert(t)}(i));var e=i[0],a={};return E(i,a),!function t(s){for(var i=Object.keys(s),e=0,a=i.length;e<a;++e){var r=i[e];-1!==N.indexOf(r)&&function(t){if(t.AUTHORITY){var s=Object.keys(t.AUTHORITY)[0];s&&s in t.AUTHORITY&&(t.title=s+":"+t.AUTHORITY[s])}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 i="",e=0,a=t.AXIS.length;e<a;++e){var r=[t.AXIS[e][0].toLowerCase(),t.AXIS[e][1].toLowerCase()];-1!==r[0].indexOf("north")||("y"===r[0]||"lat"===r[0])&&"north"===r[1]?i+="n":-1!==r[0].indexOf("south")||("y"===r[0]||"lat"===r[0])&&"south"===r[1]?i+="s":-1!==r[0].indexOf("east")||("x"===r[0]||"lon"===r[0])&&"east"===r[1]?i+="e":(-1!==r[0].indexOf("west")||("x"===r[0]||"lon"===r[0])&&"west"===r[1])&&(i+="w")}2===i.length&&(i+="u"),3===i.length&&(t.axis=i)}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 h=t.GEOGCS;function n(s){return s*(t.to_meter||1)}"GEOGCS"===t.type&&(h=t),h&&(h.PRIMEM&&h.PRIMEM.convert&&(t.from_greenwich=x(h.PRIMEM.convert)),h.DATUM?t.datumCode=h.DATUM.name.toLowerCase():t.datumCode=h.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"),h.DATUM&&h.DATUM.SPHEROID&&(t.ellps=h.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=h.DATUM.SPHEROID.a,t.rf=parseFloat(h.DATUM.SPHEROID.rf)),h.DATUM&&h.DATUM.TOWGS84&&(t.datum_params=h.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=x(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",x],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",x],["x0","false_easting",n],["y0","fal
4se_northing",n],["long0","central_meridian",x],["lat0","latitude_of_origin",x],["lat0","standard_parallel_1",x],["lat1","standard_parallel_1",x],["lat2","standard_parallel_2",x],["azimuth","Azimuth"],["alpha","azimuth",x],["srsCode","name"]].forEach(function(s){var i,e;return i=s[0],e=s[1],void(!(i in t)&&e in t&&(t[i]=t[e],3===s.length&&(t[i]=s[2](t[i]))))}),S(t)}(s[r]),"object"==typeof s[r]&&t(s[r])}}(a),a[e]}function C(t){var s=this;if(2==arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?C[t]=u(arguments[1]):C[t]=I(arguments[1]):!i||"object"!=typeof i||"projName"in i?(C[t]=i,i||delete C[t]):C[t]=I(arguments[1])}else if(1==arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?C.apply(s,t):C(t)});if("string"==typeof t){if(t in C)return C[t]}else"EPSG"in t?C["EPSG:"+t.EPSG]=t:"ESRI"in t?C["ESRI:"+t.ESRI]=t:"IAU2000"in t?C["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 s=1;s<=60;++s)t("EPSG:"+(32600+s),"+proj=utm +zone="+s+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+s),"+proj=utm +zone="+s+" +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"]}(C);var k=["3857","900913","3785","102113"];let T=function(t){let s;if("string"==typeof t)if(t in C)s=C[t];else if((0===t.indexOf("+")||-1===t.indexOf("["))&&("object"!=typeof t||"srsCode"in t))"+"===t[0]&&(s=u(t));else{var i=function(t){var s=l(t,"extension");if(s)return l(s,"proj4")}(s=I(t));i&&(s=u(i))}else s="projName"in t?t:I(t);return s&&function(t){if(t.title)return 0===t.title.toLowerCase().indexOf("epsg:")&&k.indexOf(t.title.substr(5))>-1;var s=l(t,"authority");if(s){var i=l(s,"epsg");return i&&k.indexOf(i)>-1}}(s)?C["EPSG:3857"]:s};function R(t,s){var i,e;if(t=t||{},!s)return t;for(e in s)void 0!==(i=s[e])&&(t[e]=i);return t}function O(t,s,i){var e=t*s;return i/Math.sqrt(1-e*e)}function j(t){return t<0?-1:1}function q(t,s){return s||3.14159265359>=Math.abs(t)?t:t-j(t)*r}function L(t,s,i){var a=t*i;return Math.tan(.5*(e-s))/(a=Math.pow((1-a)/(1+a),.5*t))}function F(t,s){for(var i,a,r=.5*t,h=e-2*Math.atan(s),n=0;n<=15;n++)if(a=e-2*Math.atan(s*Math.pow((1-(i=t*Math.sin(h)))/(1+i),r))-h,h+=a,1e-10>=Math.abs(a))return h;return -9999}function D(t){return t}var B=["longlat","identity"],U=[{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=O(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 s,i,r=t.x,h=t.y;if(57.29577951308232*h>90&&57.29577951308232*h<-90&&57.29577951308232*r>180&&57.29577951308232*r<-180||1e-10>=Math.abs(Math.abs(h)-e))return null;if(this.sphere)s=this.x0+this.a*this.k0*q(r-this.long0,this.over),i=this.y0+this.a*this.k0*Math.log(Math.tan(a+.5*h));else{var n=Math.sin(h),o=L(this.e,h,n);s=this.x0+this.a*this.k0*q(r-this.long0,this.over),i=this.y0-this.a*this.k0*Math.log(o)}return t.x=s,t.y=i,t},inverse:function(t){var s,i=t.x-this.x0,a=t.y-this.y0;if(this.sphere)s=e-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var r=Math.exp(-a/(this.a*this.k0));if(-9999===(s=F(this.e,r)))return null}return t.x=q(this.long0+i/(this.a*this.k0),this.over),t.y=s,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:D,inverse:D,names:B}],z={},W=[];function Q(t,s){var i=W.length;
4return t.names?(W[i]=t,t.names.forEach(function(t){z[t.toLowerCase()]=i}),this):(console.log(s),!0)}function H(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}let V={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)"},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)"}},X=V.WGS84;var K={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 4
4",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
4$ in K){var J=K[$];J.datumName&&(K[J.datumName]=J)}let Y=function(t,s,i,e,a,r,h){var n={};return void 0===t||"none"===t?n.datum_type=5:n.datum_type=4,s&&(n.datum_params=s.map(parseFloat),(0!==n.datum_params[0]||0!==n.datum_params[1]||0!==n.datum_params[2])&&(n.datum_type=1),n.datum_params.length>
43&&(0!==n.datum_params[3]||0!==n.datum_params[4]||0!==n.datum_params[5]||0!==n.datum_params[6])&&(n.datum_type=2,n.datum_params[3]*=484813681109536e-20,n.datum_params[4]*=484813681109536e-20,n.datum_params[5]*=484813681109536e-20,n.datum_params[6]=n.datum_params[6]/1e6+1)),h&&(n.datum_type=3,n.grids=h),n.a=i,n.b=e,n.es=a,n.ep2=r,n};var Z={};async function tt(t,s){for(var i=[],e=await s.getImageCount(),a=e-1;a>=0;a--){var r=await s.getImage(a),h=await r.readRasters(),n=[r.getWidth(),r.getHeight()],o=r.getBoundingBox().map(ti),l=[r.fileDirectory.ModelPixelScale[0],r.fileDirectory.ModelPixelScale[1]].map(ti),u=o[0]+(n[0]-1)*l[0],c=o[3]-(n[1]-1)*l[1],d=h[0],_=h[1],f=[];for(let t=n[1]-1;t>=0;t--)for(let s=n[0]-1;s>=0;s--){var g=t*n[0]+s;f.push([-te(_[g]),te(d[g])])}i.push({del:l,lim:n,ll:[-u,c],cvs:f})}var p={header:{nSubgrids:e},subgrids:i};return Z[t]=p,p}function ts(t){if(0===t.length)return null;var s="@"===t[0];return(s&&(t=t.slice(1)),"null"===t)?{name:"null",mandatory:!s,grid:null,isNull:!0}:{name:t,mandatory:!s,grid:Z[t]||null,isNull:!1}}function ti(t){return t*Math.PI/180}function te(t){return t/3600*Math.PI/180}function ta(t,s,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(s,i)))}function tr(t,s){if(!(this instanceof tr))return new tr(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,s=s||function(t){if(t)throw t};var i,e,a,r,h,n,o,u,c=T(t);if("object"!=typeof c)return void s("Could not parse to valid json: "+t);var d=tr.projections.get(c.projName);if(!d)return void s("Could not get projection name from: "+t);if(c.datumCode&&"none"!==c.datumCode){var _=l(K,c.datumCode);_&&(c.datum_params=c.datum_params||(_.towgs84?_.towgs84.split(","):null),c.ellps=_.ellipse,c.datumName=_.datumName?_.datumName:c.datumCode)}c.k0=c.k0||1,c.axis=c.axis||"enu",c.ellps=c.ellps||"wgs84",c.lat1=c.lat1||c.lat0;var f=function(t,s,i,e,a){if(!t){var r=l(V,e);r||(r=X),t=r.a,s=r.b,i=r.rf}return i&&!s&&(s=(1-1/i)*t),(0===i||1e-10>Math.abs(t-s))&&(a=!0,s=t),{a:t,b:s,rf:i,sphere:a}}(c.a,c.b,c.rf,c.ellps,c.sphere),g=(i=f.a,e=f.b,f.rf,a=c.R_A,n=((r=i*i)-(h=e*e))/r,o=0,a?(i*=1-n*(.16666666666666666+n*(.04722222222222222+.022156084656084655*n)),r=i*i,n=0):o=Math.sqrt(n),{es:n,e:o,ep2:(r-h)/h}),p=void 0===(u=c.nadgrids)?null:u.split(",").map(ts),M=c.datum||Y(c.datumCode,c.datum_params,f.a,f.b,g.es,g.ep2,p);R(this,c),R(this,d),this.a=f.a,this.b=f.b,this.rf=f.rf,this.sphere=f.sphere,this.es=g.es,this.e=g.e,this.ep2=g.ep2,this.datum=M,"init"in this&&"function"==typeof this.init&&this.init(),s(null,this)}function th(t,s,i){var a,r,h,n=t.x,o=t.y,l=t.z?t.z:0;if(o<-e&&o>-1.001*e)o=-e;else if(o>e&&o<1.001*e)o=e;else if(o<-e)return{x:-1/0,y:-1/0,z:t.z};else if(o>e)return{x:1/0,y:1/0,z:t.z};return n>Math.PI&&(n-=2*Math.PI),r=Math.sin(o),h=Math.cos(o),{x:((a=i/Math.sqrt(1-r*r*s))+l)*h*Math.cos(n),y:(a+l)*h*Math.sin(n),z:(a*(1-s)+l)*r}}function tn(t,s,i,e){var a,r,h,n,o,l,u,c,d,_,f,g,p,M,m,y=1e-12*1e-12,v=t.x,w=t.y,E=t.z?t.z:0;if(a=Math.sqrt(v*v+w*w),r=Math.sqrt(v*v+w*w+E*E),a/i<1e-12){if(M=0,r/i<1e-12)return m=-e,{x:t.x,y:t.y,z:t.z}}else M=Math.atan2(w,v);h=E/r,o=1/Math.sqrt(1-s*(2-s)*(n=a/r)*n),c=n*(1-s)*o,d=h*o,p=0;do p++,u=i/Math.sqrt(1-s*d*d),m=a*c+E*d-u*(1-s*d*d),o=1/Math.sqrt(1-(l=s*u/(u+m))*(2-l)*n*n),_=n*(1-l)*o,g=(f=h*o)*c-_*d,c=_,d=f;while(g*g>y&&p<30);return{x:M,y:Math.atan(f/Math.abs(_)),z:m}}function to(t){return 1===t||2===t}function tl(t,s,i){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var e={x:-i.x,y:i.y},a={x:NaN,y:NaN},r=[];t:for(var h=0;h<t.grids.length;h++){var n=t.grids[h];if(r.push(n.name),n.isNull){a=e;break}if(null===n.grid){if(n.mandatory)return console.log("Unable to find mandatory grid '"+n.name+"'"),-1;continue}for(var o=n.grid.subgrids,l=0,u=o.length;l<u;l++){var c=o[l],d=(Math.abs(c.del[1])+Math.abs(c.del[0]))/1e4,_=c.ll[0]-d,f=c.ll[1]-d,g=c.ll[0]+(c.lim[0]-1)*c.del[0]+d,p=c.ll[1]+(c.lim[1]-1)*c.del[1]+d;if(!(f>e.y)&&!(_>e.x)&&!(p<e.y)&&!(g<e.x)&&!isNaN((a=function(t,s,i){var e={x:NaN,y:NaN};if(isNaN(t.x))return e;var a={x:t.x,y:t.y};a.x-=i.ll[0],a.y-=i.ll[1],a.x=q(a.x-Math.PI)+Math.PI;var r=tu(a,i);if(s){if(isNaN(r.x))return e;r.x=a.x-r.x,r.y=a.y-r.y;var h,n,o=9;do{if(isNaN((n=tu(r,i)).x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}h={x:a.x-(n.x+r.x),y:a.y-(n.y+r.y)},r.x+=h.x,r.y+=h.y}while(o--&&Math.abs(h.x)>1e-12&&Math.abs(h.y)>1e-12);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),e;e.x=q(r.x+i.ll[0]),e.y=r.y+i.ll[1]}else isNaN(r.x)||(e.x=t.x+r.x,e.y=t.y+r.y);return e}(e,s,c)).x))break t}}return isNaN(a.x)?(console.log("Failed to find a grid shift table for location '"+-(57.29577951308232*e.x)+" "+57.29577951308232*e.y+" tried: '"+r+"'"),-1):(i.x=-a.x,i.y=a.y,0)}function tu(t,s){var i,e={x:t.x/s.del[0],y:t.y/s.del[1]},a={x:Math.floor(e.x),y:Math.floor(e.y)},r={x:e.x-a.x,y:e.y-a.y},h={x:NaN,y:NaN};if(a.x<0||a.x>=s.lim[0]||a.y<0||a.y>=s.lim[1])return h;i=a.y*s.lim[0]+a.x;var n={x:s.cvs[i][0],y:s.cvs[i][1]};i++;var o={x:s.cvs[i][0],y:s.cvs[i][1]};i+=s.lim[0];var l={x:s.cvs[i][0],y:s.cvs[i][1]};i--;var u={x:s.cvs[i][0],y:s.cvs[i][1]},c=r.x*r.y,d=r.x*(1-r.y),_=(1-r.x)*(1-r.y),f=(1-r.x)*r.y;
4return h.x=_*n.x+d*o.x+f*u.x+c*l.x,h.y=_*n.y+d*o.y+f*u.y+c*l.y,h}function tc(t,s,i){var e,a,r,h=i.x,n=i.y,o=i.z||0,l={};for(r=0;r<3;r++)if(!s||2!==r||void 0!==i.z)switch(0===r?(e=h,a=-1!=="ew".indexOf(t.axis[r])?"x":"y"):1===r?(e=n,a=-1!=="ns".indexOf(t.axis[r])?"y":"x"):(e=o,a="z"),t.axis[r]){case"e":case"n":l[a]=e;break;case"w":case"s":l[a]=-e;break;case"u":void 0!==i[a]&&(l.z=e);break;case"d":void 0!==i[a]&&(l.z=-e);break;default:return null}return l}function td(t){var s={x:t[0],y:t[1]};return t.length>2&&(s.z=t[2]),t.length>3&&(s.m=t[3]),s}function t_(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw TypeError("coordinates must be finite numbers")}function tf(t,s,i,e){var a,r,h,n=void 0!==(i=Array.isArray(i)?td(i):{x:i.x,y:i.y,z:i.z,m:i.m}).z;if(t_((a=i).x),t_(a.y),t.datum&&s.datum&&((1===(r=t).datum.datum_type||2===r.datum.datum_type||3===r.datum.datum_type)&&"WGS84"!==s.datumCode||(1===s.datum.datum_type||2===s.datum.datum_type||3===s.datum.datum_type)&&"WGS84"!==r.datumCode)&&(i=tf(t,h=new tr("WGS84"),i,e),t=h),e&&"enu"!==t.axis&&(i=tc(t,!1,i)),"longlat"===t.projName)i={x:.017453292519943295*i.x,y:.017453292519943295*i.y,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),!(i=t.inverse(i)))return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=function(t,s,i){if(e=t,a=s,!(e.datum_type!==a.datum_type||e.a!==a.a||Math.abs(e.es-a.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===a.datum_params[0]&&e.datum_params[1]===a.datum_params[1]&&e.datum_params[2]===a.datum_params[2]:2!==e.datum_type||e.datum_params[0]===a.datum_params[0]&&e.datum_params[1]===a.datum_params[1]&&e.datum_params[2]===a.datum_params[2]&&e.datum_params[3]===a.datum_params[3]&&e.datum_params[4]===a.datum_params[4]&&e.datum_params[5]===a.datum_params[5]&&e.datum_params[6]===a.datum_params[6])||5===t.datum_type||5===s.datum_type)return i;var e,a,r=t.a,h=t.es;if(3===t.datum_type){if(0!==tl(t,!1,i))return;r=6378137,h=.0066943799901413165}var n=s.a,o=s.b,l=s.es;if(3===s.datum_type&&(n=6378137,o=6356752.314,l=.0066943799901413165),h===l&&r===n&&!to(t.datum_type)&&!to(s.datum_type)||(i=th(i,h,r),to(t.datum_type)&&(i=function(t,s,i){if(1===s)return{x:t.x+i[0],y:t.y+i[1],z:t.z+i[2]};if(2===s){var e=i[0],a=i[1],r=i[2],h=i[3],n=i[4],o=i[5],l=i[6];return{x:l*(t.x-o*t.y+n*t.z)+e,y:l*(o*t.x+t.y-h*t.z)+a,z:l*(-n*t.x+h*t.y+t.z)+r}}}(i,t.datum_type,t.datum_params)),to(s.datum_type)&&(i=function(t,s,i){if(1===s)return{x:t.x-i[0],y:t.y-i[1],z:t.z-i[2]};if(2===s){var e=i[0],a=i[1],r=i[2],h=i[3],n=i[4],o=i[5],l=i[6],u=(t.x-e)/l,c=(t.y-a)/l,d=(t.z-r)/l;return{x:u+o*c-n*d,y:-o*u+c+h*d,z:n*u-h*c+d}}}(i,s.datum_type,s.datum_params)),i=tn(i,l,n,o),3!==s.datum_type||0===tl(s,!0,i)))return i}(t.datum,s.datum,i))return(s.from_greenwich&&(i={x:i.x-s.from_greenwich,y:i.y,z:i.z||0}),"longlat"===s.projName?i={x:57.29577951308232*i.x,y:57.29577951308232*i.y,z:i.z||0}:(i=s.forward(i),s.to_meter&&(i={x:i.x/s.to_meter,y:i.y/s.to_meter,z:i.z||0})),e&&"enu"!==s.axis)?tc(s,!0,i):(i&&!n&&"geocent"!==s.projName&&delete i.z,i)}tr.projections={start:function(){U.forEach(Q)},add:Q,get:function(t){if(!t)return!1;var s=t.toLowerCase();if(void 0!==z[s]&&W[z[s]]||(s=H(s))in z&&W[z[s]])return W[z[s]]}},tr.projections.start();var tg=tr("WGS84");function tp(t,s,i,e){var a,r,h;if(Array.isArray(i))return(a=tf(t,s,i,e)||{x:NaN,y:NaN},i.length>2)?(void 0===t.name||"geocent"!==t.name)&&(void 0===s.name||"geocent"!==s.name)?[a.x,a.y].concat(i.slice(2)):"number"==typeof a.z?[a.x,a.y,a.z].concat(i.slice(3)):[a.x,a.y,i[2]].concat(i.slice(3)):[a.x,a.y];return r=tf(t,s,i,e),2===(h=Object.keys(i)).length||h.forEach(function(e){if(void 0!==t.name&&"geocent"===t.name||void 0!==s.name&&"geocent"===s.name){if("x"===e||"y"===e||"z"===e)return}else if("x"===e||"y"===e)return;r[e]=i[e]}),r}function tM(t){return t instanceof tr?t:"object"==typeof t&&"oProj"in t?t.oProj:tr(t)}var tm="AJSAJS",ty="AFAFAF";function tv(t,s){var i,e,a,r,h,n,o,l,u,c,d,_,f,g,p;return s=s||5,i=function(t){var s,i,e,a,r,h,n,o,l=t.lat,u=t.lon,c=tE(l),d=tE(u);o=Math.floor((u+180)/6)+1,180===u&&(o=60),l>=56&&l<64&&u>=3&&u<12&&(o=32),l>=72&&l<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)),n=tE((o-1)*6-180+3),e=6378137/Math.sqrt(1-.00669438*Math.sin(c)*Math.sin(c)),a=Math.tan(c)
4*Math.tan(c),r=.006739496752268451*Math.cos(c)*Math.cos(c);var _=.9996*e*((h=Math.cos(c)*(d-n))+(1-a+r)*h*h*h/6+(5-18*a+a*a+72*r-.39089081163157013)*h*h*h*h*h/120)+5e5,f=.9996*(6378137*(.9983242984503243*c-.002514607064228144*Math.sin(2*c)+2639046602129982e-21*Math.sin(4*c)-3418046101696858e-24*Math.sin(6*c))+e*Math.tan(c)*(h*h/2+(5-a+9*r+4*r*r)*h*h*h*h/24+(61-58*a+a*a+600*r-2.2240339282485886)*h*h*h*h*h*h/720));return l<0&&(f+=1e7),{northing:Math.round(f),easting:Math.round(_),zoneNumber:o,zoneLetter:(i="Z",84>=(s=l)&&s>=72?i="X":72>s&&s>=64?i="W":64>s&&s>=56?i="V":56>s&&s>=48?i="U":48>s&&s>=40?i="T":40>s&&s>=32?i="S":32>s&&s>=24?i="R":24>s&&s>=16?i="Q":16>s&&s>=8?i="P":8>s&&s>=0?i="N":0>s&&s>=-8?i="M":-8>s&&s>=-16?i="L":-16>s&&s>=-24?i="K":-24>s&&s>=-32?i="J":-32>s&&s>=-40?i="H":-40>s&&s>=-48?i="G":-48>s&&s>=-56?i="F":-56>s&&s>=-64?i="E":-64>s&&s>=-72?i="D":-72>s&&s>=-80&&(i="C"),i)}}({lat:t[1],lon:t[0]}),e=s,a="00000"+i.easting,r="00000"+i.northing,i.zoneNumber+i.zoneLetter+(h=i.easting,n=i.northing,o=i.zoneNumber,l=Math.floor(h/1e5),u=Math.floor(n/1e5)%20,c=tG(o)-1,d=tm.charCodeAt(c),_=ty.charCodeAt(c),f=d+l-1,g=_+u,p=!1,f>90&&(f=f-90+65-1,p=!0),(73===f||d<73&&f>73||(f>73||d<73)&&p)&&f++,(79===f||d<79&&f>79||(f>79||d<79)&&p)&&73==++f&&f++,f>90&&(f=f-90+65-1),g>86?(g=g-86+65-1,p=!0):p=!1,(73===g||_<73&&g>73||(g>73||_<73)&&p)&&g++,(79===g||_<79&&g>79||(g>79||_<79)&&p)&&73==++g&&g++,g>86&&(g=g-86+65-1),String.fromCharCode(f)+String.fromCharCode(g))+a.substr(a.length-5,e)+r.substr(r.length-5,e)}function tw(t){var s=tS(tP(t.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat]:[(s.left+s.right)/2,(s.top+s.bottom)/2]}function tE(t){return Math.PI/180*t}function tx(t){return t/Math.PI*180}function tS(t){var s,i,e,a,r,h,n,o,l=t.northing,u=t.easting,c=t.zoneLetter,d=t.zoneNumber;if(d<0||d>60)return null;var _=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),f=l;c<"N"&&(f-=1e7),s=6378137/Math.sqrt(1-.00669438*Math.sin(n=(h=f/.9996/6367449.145945056)+(3*_/2-27*_*_*_/32)*Math.sin(2*h)+(21*_*_/16-55*_*_*_*_/32)*Math.sin(4*h)+151*_*_*_/96*Math.sin(6*h))*Math.sin(n)),i=Math.tan(n)*Math.tan(n),e=.006739496752268451*Math.cos(n)*Math.cos(n),a=6335439.32722994/Math.pow(1-.00669438*Math.sin(n)*Math.sin(n),1.5),r=(u-5e5)/(.9996*s);var g=n-s*Math.tan(n)/a*(r*r/2-(5+3*i+10*e-4*e*e-.06065547077041606)*r*r*r*r/24+(61+90*i+298*e+45*i*i-1.6983531815716497-3*e*e)*r*r*r*r*r*r/720);g=tx(g);var p=(r-(1+2*i+e)*r*r*r/6+(5-2*e+28*i-3*e*e+.05391597401814761+24*i*i)*r*r*r*r*r/120)/Math.cos(n);if(p=(d-1)*6-180+3+tx(p),t.accuracy){var M=tS({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});o={top:M.lat,right:M.lon,bottom:g,left:p}}else o={lat:g,lon:p};return o}function tG(t){var s=t%6;return 0===s&&(s=6),s}function tP(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var s,i,e=t.length,a=null,r="",h=0;!/[A-Z]/.test(s=t.charAt(h));){if(h>=2)throw"MGRSPoint bad conversion from: "+t;r+=s,h++}var n=parseInt(r,10);if(0===h||h+3>e)throw"MGRSPoint bad conversion from: "+t;var o=t.charAt(h++);if(o<="A"||"B"===o||"Y"===o||o>="Z"||"I"===o||"O"===o)throw"MGRSPoint zone letter "+o+" not handled: "+t;a=t.substring(h,h+=2);for(var l=tG(n),u=function(t,s){for(var i=tm.charCodeAt(s-1),e=1e5,a=!1;i!==t.charCodeAt(0);){if(73==++i&&i++,79===i&&i++,i>90){if(a)throw"Bad character: "+t;i=65,a=!0}e+=1e5}return e}(a.charAt(0),l),c=function(t,s){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var i=ty.charCodeAt(s-1),e=0,a=!1;i!==t.charCodeAt(0);){if(73==++i&&i++,79===i&&i++,i>86){if(a)throw"Bad character: "+t;i=65,a=!0}e+=1e5}return e}(a.charAt(1),l);c<function(t){var s;switch(t){case"C":s=11e5;break;case"D":s=2e6;break;case"E":s=28e5;break;case"F":s=37e5;break;case"G":s=46e5;break;case"H":s=55e5;break;case"J":s=64e5;break;case"K":s=73e5;break;case"L":s=82e5;break;case"M":s=91e5;break;case"N":s=0;break;case"P":s=8e5;break;case"Q":s=17e5;break;case"R":s=26e5;break;case"S":s=35e5;break;case"T":s=44e5;break;case"U":s=53e5;break;case"V":s=62e5;break;case"W":s=7e6;break;case"X":s=79e5;break;default:s=-1}if(s>=0)return s;throw"Invalid zone letter: "+t}(o);)c+=2e6;var d=e-h;if(d%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 _=d/2,f=0,g=0;return _>0&&(i=1e5/Math.pow(10,_),f=parseFloat(t.substring(h,h+_))*i,g=parseFloat(t.substring(h+_))*i),{easting:f+u,northing:g+c,zoneLetter:o,zoneNumber:n,accuracy:i}}function tb(t,s,i){if(!(this instanceof tb))return new tb(t,s,i);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===s){var e=t.split(",");this.x=parseFloat(e[0]),this.y=parseFloat(e[1]),this.z=parseFloat(e[2])||0}else this.x=t,this.y=s,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}function tA(t){var s=[];s[0]=1-t*(.25+t*(.046875+t*(.01953125+.01068115234375*t))),s[1]=t*(.75-t*(.046875+t*(.01953125+.01068115234375*t)));var i=t*t;return s[2]=i*(.46875-t*(.013020833333333334+.007120768229166667*t)),i*=t,s[3]=i*(.3645833333333333-.005696614583333333*t),s[4]=i*t*.3076171875,s}function tN(t,s,i,e){return i*=s,s*=s,e[0]*t-i*(e[1]+s*(e[2]+s*(e[3]+s*e[4])))}function tI(t,s,i){for(var e=1/(1-s),a=t,r=20;r;--r){var h=Math.sin(a),n=1-s*h*h;if(n=(tN(a,h,Math.cos(a),i)-t)*(n*Math.sqrt(n))*e,a-=n,1e-10>Math.abs(n))break}return a}tb.fromMGRS=function(t){return new tb(tw(t))},tb.prototype.toMGRS=function(t){return tv([this.x,this.y],t)};let tC={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=tA(this.es),this.ml0=tN(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var s,i,e=t.x,a=t.y,r=q(e-this.long0,this.over),h=Math.sin(a),n=Math.cos(a);if(this.es){var o=n*r,l=Math.pow(o,2),u=this.ep2*Math.pow(n,2),c=Math.pow(u,2),d=Math.pow(Math.abs(n)>1e-10?Math.tan(a):0,2),_=Math.pow(d,2);o/=Math.sqrt(1-this.es*Math.pow(h,2));var f=tN(a,h,n,this.en);s=this.a*(this.k0*o*(1+l/6*(1-d+u+l/20*(5-18*d+_+14*u-58*d*u+l/42*(61+179*_-_*d-479*d)
4))))+this.x0,i=this.a*(this.k0*(f-this.ml0+h*r*o/2*(1+l/12*(5-d+9*u+4*c+l/30*(61+_-58*d+270*u-330*d*u+l/56*(1385+543*_-_*d-3111*d))))))+this.y0}else{var g=n*Math.sin(r);if(1e-10>Math.abs(Math.abs(g)-1))return 93;if(s=.5*this.a*this.k0*Math.log((1+g)/(1-g))+this.x0,(g=Math.abs(i=n*Math.cos(r)/Math.sqrt(1-Math.pow(g,2))))>=1)if(g-1>1e-10)return 93;else i=0;else i=Math.acos(i);a<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=s,t.y=i,t},inverse:function(t){var s,i,a,r,h=(t.x-this.x0)*(1/this.a),n=(t.y-this.y0)*(1/this.a);if(this.es)if(Math.abs(i=tI(s=this.ml0+n/this.k0,this.es,this.en))<e){var o=Math.sin(i),l=Math.cos(i),u=Math.abs(l)>1e-10?Math.tan(i):0,c=this.ep2*Math.pow(l,2),d=Math.pow(c,2),_=Math.pow(u,2),f=Math.pow(_,2),g=h*Math.sqrt(s=1-this.es*Math.pow(o,2))/this.k0,p=Math.pow(g,2);s*=u,a=i-s*p/(1-this.es)*.5*(1-p/12*(5+3*_-9*c*_+c-4*d-p/30*(61+90*_-252*c*_+45*f+46*c-p/56*(1385+3633*_+4095*f+1574*f*_)))),r=q(this.long0+g*(1-p/6*(1+2*_+c-p/20*(5+28*_+24*f+8*c*_+6*c-p/42*(61+662*_+1320*f+720*f*_))))/l,this.over)}else a=e*j(n),r=0;else{var M=Math.exp(h/this.k0),m=.5*(M-1/M),y=Math.cos(this.lat0+n/this.k0);a=Math.asin(s=Math.sqrt((1-Math.pow(y,2))/(1+Math.pow(m,2)))),n<0&&(a=-a),r=0===m&&0===y?0:q(Math.atan2(m,y)+this.long0,this.over)}return t.x=r,t.y=a,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function tk(t){var s=Math.exp(t);return(s-1/s)/2}function tT(t,s){var i=Math.max(t=Math.abs(t),s=Math.abs(s)),e=Math.min(t,s)/(i||1);return i*Math.sqrt(1+Math.pow(e,2))}function tR(t,s){for(var i,e=2*Math.cos(2*s),a=t.length-1,r=t[a],h=0;--a>=0;)i=-h+e*r+t[a],h=r,r=i;return s+i*Math.sin(2*s)}function tO(t,s,i){for(var e,a,r,h=Math.sin(s),n=Math.cos(s),o=tk(i),l=e=((e=Math.exp(i))+1/e)/2,u=2*n*l,c=-2*h*o,d=t.length-1,_=t[d],f=0,g=0,p=0;--d>=0;)a=g,r=f,_=-a+u*(g=_)-c*(f=p)+t[d],p=-r+c*g+u*f;return[(u=h*l)*_-(c=n*o)*p,u*p+c*_]}let tj={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(tC.init.apply(this),this.forward=tC.forward,this.inverse=tC.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)),s=t/(2-t),i=s;this.cgb[0]=s*(2+s*(-2/3+s*(-2+s*(116/45+s*(26/45+-2854/675*s))))),this.cbg[0]=s*(-2+s*(2/3+s*(4/3+s*(-82/45+s*(32/45+4642/4725*s))))),i*=s,this.cgb[1]=i*(7/3+s*(-1.6+s*(-227/45+s*(2704/315+2323/945*s)))),this.cbg[1]=i*(5/3+s*(-16/15+s*(-13/9+s*(904/315+-1522/945*s)))),i*=s,this.cgb[2]=i*(56/15+s*(-136/35+s*(-1262/105+73814/2835*s))),this.cbg[2]=i*(-26/15+s*(34/21+s*(1.6+-12686/2835*s))),i*=s,this.cgb[3]=i*(4279/630+s*(-332/35+-399572/14175*s)),this.cbg[3]=i*(1237/630+s*(-2.4+-24832/14175*s)),i*=s,this.cgb[4]=i*(4174/315+-144838/6237*s),this.cbg[4]=i*(-734/315+109598/31185*s),i*=s,this.cgb[5]=601676/22275*i,this.cbg[5]=444337/155925*i,i=Math.pow(s,2),this.Qn=this.k0/(1+s)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=s*(-.5+s*(2/3+s*(-37/96+s*(1/360+s*(81/512+-96199/604800*s))))),this.gtu[0]=s*(.5+s*(-2/3+s*(5/16+s*(41/180+s*(-127/288+7891/37800*s))))),this.utg[1]=i*(-1/48+s*(-1/15+s*(437/1440+s*(-46/105+1118711/3870720*s)))),this.gtu[1]=i*(13/48+s*(-.6+s*(557/1440+s*(281/630+-1983433/1935360*s)))),i*=s,this.utg[2]=i*(-17/480+s*(37/840+s*(209/4480+-5569/90720*s))),this.gtu[2]=i*(61/240+s*(-103/140+s*(15061/26880+167603/181440*s))),i*=s,this.utg[3]=i*(-4397/161280+s*(11/504+830251/7257600*s)),this.gtu[3]=i*(49561/161280+s*(-179/168+6601661/7257600*s)),i*=s,this.utg[4]=i*(-4583/161280+108847/3991680*s),this.gtu[4]=i*(34729/80640+-3418889/1995840*s),i*=s,this.utg[5]=-0x13b12f5/0x26115000*i,this.gtu[5]=.6650675310896665*i;var e=tR(this.cbg,this.lat0);this.Zb=-this.Qn*(e+function(t,s){for(var i,e=2*Math.cos(s),a=t.length-1,r=t[a],h=0;--a>=0;)i=-h+e*r+t[a],h=r,r=i;return Math.sin(s)*i}(this.gtu,2*e))},forward:function(t){var s,i,e,a,r,h,n,o=q(t.x-this.long0,this.over),l=t.y,u=Math.sin(l=tR(this.cbg,l)),c=Math.cos(l),d=Math.sin(o),_=Math.cos(o);l=Math.atan2(u,_*c),i=0==(r=(a=1+(e=(i=Math.abs(s=Math.tan(o=Math.atan2(d*c,tT(u,c*_)))))*(1+i/(tT(1,i)+1))))-1)?e:e*Math.log(a)/r,o=s<0?-i:i;var f=tO(this.gtu,2*l,2*o);return l+=f[0],2.623395162778>=Math.abs(o+=f[1])?(h=this.a*(this.Qn*o)+this.x0,n=this.a*(this.Qn*l+this.Zb)+this.y0):(h=1/0,n=1/0),t.x=h,t.y=n,t},inverse:function(t){var s,i,e=(t.x-this.x0)*(1/this.a),a=(t.y-this.y0)*(1/this.a);if(a=(a-this.Zb)/this.Qn,2.623395162778>=Math.abs(e/=this.Qn)){var r=tO(this.utg,2*a,2*e);a+=r[0],e+=r[1],e=Math.atan(tk(e));var h=Math.sin(a),n=Math.cos(a),o=Math.sin(e),l=Math.cos(e);a=Math.atan2(h*l,tT(o,l*n)),s=q((e=Math.atan2(o,l*n))+this.long0,this.over),i=tR(this.cgb,a)}else s=1/0,i=1/0;return t.x=s,t.y=i,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]},tq={init:function(){var t=function(t,s){if(void 0===t){if((t=Math.floor((q(s)+Math.PI)*30/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*.017453292519943295,this.x0=5e5,this.y0=1e7*!!this.utmSouth,this.k0=.9996,tj.init.apply(this),this.forward=tj.forward,this.inverse=tj.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function tL(t,s){return Math.pow((1-t)/(1+t),s)}let tF={init:function(){var t=Math.sin(this.lat0),s=Math.cos(this.lat0);s*=s,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*s*s/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+a)/(Math.pow(Math.tan(.5*this.lat0+a),this.C)*tL(this.e*t,this.ratexp))},forward:function(t){var s=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+a),this.C)*tL(this.e*Math.sin(i),this.ratexp))-e,t.x=this.C*s,t},inverse:function(t){for(var s=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+a)/this.K,1/this.C),h=20;h>0&&!(1e-14>Math.abs((i=2*Math.atan(r*tL(this.e*Math.sin(t.y),-.5*this.e))-e)-t.y));--h)t.y=i;return h?(t.x=s,t.y=i,t):null},names:["gauss"]},tD={init:function(){tF.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 s,i,e,a;return t.x=q(t.x-this.long0,this.over),tF.forward.apply(this,[t]),s=Math.sin(t.y),i=Math.cos(t.y),e=Math.cos(t.x),t.x=(a=this.k0*this.R2/(1+this.sinc0*s+this.cosc0*i*e))*i*Math.sin(t.x),t.y=a*(this.cosc0*s-this.sinc0*i*e),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var s,i,e,a,r;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,r=tT(t.x,t.y)){var h=2*Math.atan2(r,this.R2);s=Math.sin(h),a=Math.asin((i=Math.cos(h))*this.sinc0+t.y*s*this.cosc0/r),e=Math.atan2(t.x*s,r*this.cosc0*i-t.y*this.sinc0*s)}else a=this.phic0,e=0;return t.x=e,t.y=a,tF.inverse.apply(this,[t]),t.x=q(t.x+this.long0,this.over),t}
4,names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function tB(t,s,i){return Math.tan(.5*(e+t))*Math.pow((1-(s*=i))/(1+s),.5*i)}let tU={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)&&1e-10>=Math.abs(this.coslat0)&&(this.k0=.5*(1+j(this.lat0)*Math.sin(this.lat_ts))):(1e-10>=Math.abs(this.coslat0)&&(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)&&1e-10>=Math.abs(this.coslat0)&&Math.abs(Math.cos(this.lat_ts))>1e-10&&(this.k0=.5*this.cons*O(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/L(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=O(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(tB(this.lat0,this.sinlat0,this.e))-e,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var s,i,a,r,h,n,o=t.x,l=t.y,u=Math.sin(l),c=Math.cos(l),d=q(o-this.long0,this.over);if(1e-10>=Math.abs(Math.abs(o-this.long0)-Math.PI)&&1e-10>=Math.abs(l+this.lat0))return t.x=NaN,t.y=NaN,t;if(this.sphere)s=2*this.k0/(1+this.sinlat0*u+this.coslat0*c*Math.cos(d)),t.x=this.a*s*c*Math.sin(d)+this.x0,t.y=this.a*s*(this.coslat0*u-this.sinlat0*c*Math.cos(d))+this.y0;else{if(r=Math.cos(i=2*Math.atan(tB(l,u,this.e))-e),a=Math.sin(i),1e-10>=Math.abs(this.coslat0))return h=L(this.e,l*this.con,this.con*u),n=2*this.a*this.k0*h/this.cons,t.x=this.x0+n*Math.sin(o-this.long0),t.y=this.y0-this.con*n*Math.cos(o-this.long0),t;1e-10>Math.abs(this.sinlat0)?t.y=(s=2*this.a*this.k0/(1+r*Math.cos(d)))*a:t.y=(s=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*a+this.cosX0*r*Math.cos(d))))*(this.cosX0*a-this.sinX0*r*Math.cos(d))+this.y0,t.x=s*r*Math.sin(d)+this.x0}return t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s,i,a,r,h,n=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var o=2*Math.atan(n/(2*this.a*this.k0));return s=this.long0,i=this.lat0,n<=1e-10||(i=Math.asin(Math.cos(o)*this.sinlat0+t.y*Math.sin(o)*this.coslat0/n),s=1e-10>Math.abs(this.coslat0)?this.lat0>0?q(this.long0+Math.atan2(t.x,-1*t.y),this.over):q(this.long0+Math.atan2(t.x,t.y),this.over):q(this.long0+Math.atan2(t.x*Math.sin(o),n*this.coslat0*Math.cos(o)-t.y*this.sinlat0*Math.sin(o)),this.over)),t.x=s,t.y=i,t}if(1e-10>=Math.abs(this.coslat0)){if(n<=1e-10)return i=this.lat0,t.x=s=this.long0,t.y=i,t;t.x*=this.con,t.y*=this.con,a=n*this.cons/(2*this.a*this.k0),i=this.con*F(this.e,a),s=this.con*q(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else r=2*Math.atan(n*this.cosX0/(2*this.a*this.k0*this.ms1)),s=this.long0,n<=1e-10?h=this.X0:(h=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/n),s=q(this.long0+Math.atan2(t.x*Math.sin(r),n*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)),this.over)),i=-1*F(this.e,Math.tan(.5*(e+h)));return t.x=s,t.y=i,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:tB},tz={init:function(){var t=this.lat0;this.lambda0=this.long0;var s=Math.sin(t),i=this.a,e=1/this.rf,a=2*e-Math.pow(e,2),r=this.e=Math.sqrt(a);this.R=this.k0*i*Math.sqrt(1-a)/(1-a*Math.pow(s,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(s/this.alpha);var h=Math.log(Math.tan(Math.PI/4+this.b0/2)),n=Math.log(Math.tan(Math.PI/4+t/2)),o=Math.log((1+r*s)/(1-r*s));this.K=h-this.alpha*n+this.alpha*r/2*o},forward:function(t){var s=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),e=2*(Math.atan(Math.exp(-this.alpha*(s+i)+this.K))-Math.PI/4),a=this.alpha*(t.x-this.lambda0),r=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(e)+Math.cos(this.b0)*Math.cos(a))),h=Math.asin(Math.cos(this.b0)*Math.sin(e)-Math.sin(this.b0)*Math.cos(e)*Math.cos(a));return t.y=this.R/2*Math.log((1+Math.sin(h))/(1-Math.sin(h)))+this.y0,t.x=this.R*r+this.x0,t},inverse:function(t){for(var s=t.x-this.x0,i=t.y-this.y0,e=s/this.R,a=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),r=Math.asin(Math.cos(this.b0)*Math.sin(a)+Math.sin(this.b0)*Math.cos(a)*Math.cos(e)),h=Math.atan(Math.sin(e)/(Math.cos(this.b0)*Math.cos(e)-Math.sin(this.b0)*Math.tan(a))),n=this.lambda0+h/this.alpha,o=0,l=r,u=-1e3,c=0;Math.abs(l-u)>1e-7;){if(++c>20)return;o=1/this.alpha*(Math.log(Math.tan(Math.PI/4+r/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(o))-Math.PI/2}return t.x=n,t.y=l,t},names:["somerc"]},tW={init:function(){var t,s,i,h,n,o,l,u,c,d,_,f,g=0,p=0,M=0,m=0,y=0,v=0,w=0;this.no_off=(t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],s="object"==typeof this.projName?Object.keys(this.projName)[0]:this.projName,"no_uoff"in this||"no_off"in this||-1!==t.indexOf(s)||-1!==t.indexOf(H(s))),this.no_rot="no_rot"in this;var E=!1;"alpha"in this&&(E=!0);var x=!1;if("rectified_grid_angle"in this&&(x=!0),E&&(w=this.alpha),x&&(g=this.rectified_grid_angle),E||x)p=this.longc;else if(M=this.long1,y=this.lat1,m=this.long2,1e-7>=Math.abs(y-(v=this.lat2))||(i=Math.abs(y))<=1e-7||1e-7>=Math.abs(i-e)||1e-7>=Math.abs(Math.abs(this.lat0)-e)||1e-7>=Math.abs(Math.abs(v)-e))throw Error();var S=1-this.es;(h=Math.sqrt(S),Math.abs(this.lat0)>1e-10?(d=Math.sin(this.lat0),n=Math.cos(this.lat0),i=1-this.es*d*d,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*h/i,(l=(o=this.B*h/(n*Math.sqrt(i)))*o-1)<=0?l=0:(l=Math.sqrt(l),this.lat0<0&&(l=-l)),this.E=l+=o,this.E*=Math.pow(L(this.e,this.lat0,d),this.B)):(this.B=1/h,this.A=this.k0,this.E=o=l=1),E||x)?(E?(f=Math.asin(Math.sin(w)/o),x||(g=w)):w=Math.asin(o*Math.sin(f=g)),this.lam0=p-Math.asin(.5*(l-1/l)*Math.tan(f))/this.B):(u=Math.pow(L(this.e,y,Math.sin(y)),this.B),c=Math.pow(L(this.e,v,Math.sin(v)),this.B),l=this.E/u,_=((_=this.E*this.E)-c*u)/(_+c*u),(i=M-m)<-Math.PI?m-=r:i>Math.PI&&(m+=r),this.lam0=q(.5*(M+m)-Math.atan(_*Math.tan(.5*this.B*(M-m))/((c-u)/(c+u)))/this.B,this.over),g=w=Math.asin(o*Math.sin(f=Math.atan(2*Math.sin(this.B*q(M-this.lam0,this.over))/(l-1/l))))),this.singam=M
4ath.sin(f),this.cosgam=Math.cos(f),this.sinrot=Math.sin(g),this.cosrot=Math.cos(g),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(o*o-1)/Math.cos(w))),this.lat0<0&&(this.u_0=-this.u_0)),l=.5*f,this.v_pole_n=this.ArB*Math.log(Math.tan(a-l)),this.v_pole_s=this.ArB*Math.log(Math.tan(a+l))},forward:function(t){var s,i,a,r,h,n,o,l,u={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-e)>1e-10){if(n=1/(h=this.E/Math.pow(L(this.e,t.y,Math.sin(t.y)),this.B)),s=.5*(h-n),i=.5*(h+n),r=Math.sin(this.B*t.x),1e-10>Math.abs(Math.abs(a=(s*this.singam-r*this.cosgam)/i)-1))throw Error();l=.5*this.ArB*Math.log((1-a)/(1+a)),o=1e-7>Math.abs(n=Math.cos(this.B*t.x))?this.A*t.x:this.ArB*Math.atan2(s*this.cosgam+r*this.singam,n)}else l=t.y>0?this.v_pole_n:this.v_pole_s,o=this.ArB*t.y;return this.no_rot?(u.x=o,u.y=l):(o-=this.u_0,u.x=l*this.cosrot+o*this.sinrot,u.y=o*this.cosrot-l*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(t){var s,i,a,r,h,n,o={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(i=t.y,s=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,s=t.y*this.cosrot+t.x*this.sinrot+this.u_0),r=.5*((a=Math.exp(-this.BrA*i))-1/a),1e-10>Math.abs(Math.abs(n=((h=Math.sin(this.BrA*s))*this.cosgam+r*this.singam)/(.5*(a+1/a)))-1))o.x=0,o.y=n<0?-e:e;else{if(o.y=this.E/Math.sqrt((1+n)/(1-n)),o.y=F(this.e,Math.pow(o.y,1/this.B)),o.y===1/0)throw Error();o.x=-this.rB*Math.atan2(r*this.cosgam-h*this.singam,Math.cos(this.BrA*s))}return o.x+=this.lam0,o},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"]},tQ={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(1e-10>Math.abs(this.lat1+this.lat2))){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var s=Math.sin(this.lat1),i=Math.cos(this.lat1),a=O(this.e,s,i),r=L(this.e,this.lat1,s),h=Math.sin(this.lat2),n=Math.cos(this.lat2),o=O(this.e,h,n),l=L(this.e,this.lat2,h),u=1e-10>Math.abs(Math.abs(this.lat0)-e)?0:L(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(a/o)/Math.log(r/l):this.ns=s,isNaN(this.ns)&&(this.ns=s),this.f0=a/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var s,i,a=t.x,r=t.y;1e-10>=Math.abs(2*Math.abs(r)-Math.PI)&&(r=j(r)*(e-2e-10));var h=Math.abs(Math.abs(r)-e);if(h>1e-10)s=L(this.e,r,Math.sin(r)),i=this.a*this.f0*Math.pow(s,this.ns);else{if((h=r*this.ns)<=0)return null;i=0}var n=this.ns*q(a-this.long0,this.over);return t.x=this.k0*(i*Math.sin(n))+this.x0,t.y=this.k0*(this.rh-i*Math.cos(n))+this.y0,t},inverse:function(t){var s,i,a,r,h=(t.x-this.x0)/this.k0,n=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(s=Math.sqrt(h*h+n*n),i=1):(s=-Math.sqrt(h*h+n*n),i=-1);var o=0;if(0!==s&&(o=Math.atan2(i*h,i*n)),0!==s||this.ns>0){if(i=1/this.ns,a=Math.pow(s/(this.a*this.f0),i),-9999===(r=F(this.e,a)))return null}else r=-e;return t.x=q(o/this.ns+this.long0,this.over),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)"]},tH={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 s,i,e,a,r,h,n,o=t.x,l=t.y,u=q(o-this.long0,this.over);return s=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/s)-this.s45),e=-u*this.alfa,a=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(e)),r=Math.asin(Math.cos(i)*Math.sin(e)/Math.cos(a)),h=this.n*r,t.y=(n=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(a/2+this.s45),this.n))*Math.cos(h)/1,t.x=n*Math.sin(h)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var s,i,e,a,r,h,n,o=t.x;
4t.x=t.y,t.y=o,this.czech||(t.y*=-1,t.x*=-1),r=Math.sqrt(t.x*t.x+t.y*t.y),a=Math.atan2(t.y,t.x)/Math.sin(this.s0),e=2*(Math.atan(Math.pow(this.ro0/r,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),s=Math.asin(Math.cos(this.ad)*Math.sin(e)-Math.sin(this.ad)*Math.cos(e)*Math.cos(a)),i=Math.asin(Math.cos(e)*Math.sin(a)/Math.cos(s)),t.x=this.long0-i/this.alfa,h=s,n=0;var l=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(s/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.e/2))-this.s45),1e-10>Math.abs(h-t.y)&&(n=1),h=t.y,l+=1;while(0===n&&l<15);return l>=15?null:t},names:["Krovak","Krovak Modified","Krovak (North Orientated)","Krovak Modified (North Orientated)","krovak"]};function tV(t,s,i,e,a){return t*a-s*Math.sin(2*a)+i*Math.sin(4*a)-e*Math.sin(6*a)}function tX(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function tK(t){return .375*t*(1+.25*t*(1+.46875*t))}function t$(t){return .05859375*t*t*(1+.75*t)}function tJ(t){return t*t*t*(35/3072)}function tY(t,s,i){var e=s*i;return t/Math.sqrt(1-e*e)}function tZ(t){return Math.abs(t)<e?t:t-j(t)*Math.PI}function t0(t,s,i,e,a){r=t/s;for(var r,h,n=0;n<15;n++)if(h=(t-(s*r-i*Math.sin(2*r)+e*Math.sin(4*r)-a*Math.sin(6*r)))/(s-2*i*Math.cos(2*r)+4*e*Math.cos(4*r)-6*a*Math.cos(6*r)),r+=h,1e-10>=Math.abs(h))return r;return NaN}let t1={init:function(){this.sphere||(this.e0=tX(this.es),this.e1=tK(this.es),this.e2=t$(this.es),this.e3=tJ(this.es),this.ml0=this.a*tV(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var s,i,e=t.x,a=t.y;if(e=q(e-this.long0,this.over),this.sphere)s=this.a*Math.asin(Math.cos(a)*Math.sin(e)),i=this.a*(Math.atan2(Math.tan(a),Math.cos(e))-this.lat0);else{var r=Math.sin(a),h=Math.cos(a),n=tY(this.a,this.e,r),o=Math.tan(a)*Math.tan(a),l=e*Math.cos(a),u=l*l,c=this.es*h*h/(1-this.es),d=this.a*tV(this.e0,this.e1,this.e2,this.e3,a);s=n*l*(1-u*o*(1/6-(8-o+8*c)*u/120)),i=d-this.ml0+n*r/h*u*(.5+(5-o+6*c)*u/24)}return t.x=s+this.x0,t.y=i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s,i,a=t.x/this.a,r=t.y/this.a;if(this.sphere){var h=r+this.lat0;s=Math.asin(Math.sin(h)*Math.cos(a)),i=Math.atan2(Math.tan(a),Math.cos(h))}else{var n=t0(this.ml0/this.a+r,this.e0,this.e1,this.e2,this.e3);if(1e-10>=Math.abs(Math.abs(n)-e))return t.x=this.long0,t.y=e,r<0&&(t.y*=-1),t;var o=tY(this.a,this.e,Math.sin(n)),l=o*o*o/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(n),2),c=a*this.a/o,d=c*c;s=n-o*Math.tan(n)/l*c*c*(.5-(1+3*u)*c*c/24),i=c*(1-d*(u/3+(1+3*u)*u*d/15))/Math.cos(n)}return t.x=q(i+this.long0,this.over),t.y=tZ(s),t},names:["Cassini","Cassini_Soldner","cass"]};function t4(t,s){var i;return t>1e-7?(i=t*s,(1-t*t)*(s/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*s}let t2={init:function(){var t,s,i,a,r=Math.abs(this.lat0);if(1e-10>Math.abs(r-e)?this.mode=this.lat0<0?1:2:1e-10>Math.abs(r)?this.mode=3:this.mode=4,this.es>0){switch(this.qp=t4(this.e,1),this.mmf=.5/(1-this.es),this.apa=(t=this.es,(i=[])[0]=.3333333333333333*t,s=t*t,i[0]+=.17222222222222222*s,i[1]=.06388888888888888*s,s*=t,i[0]+=.10257936507936508*s,i[1]+=.0664021164021164*s,i[2]=.016415012942191543*s,i),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),a=Math.sin(this.lat0),this.sinb1=t4(this.e,a)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*a*a)*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 s,i,r,h,n,o,l,u,c,d,_=t.x,f=t.y;if(_=q(_-this.long0,this.over),this.sphere){if(n=Math.sin(f),d=Math.cos(f),r=Math.cos(_),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+d*r:1+this.sinph0*n+this.cosph0*d*r)<=1e-10)return null;s=(i=Math.sqrt(2/i))*d*Math.sin(_),i*=this.mode===this.EQUIT?n:this.cosph0*n-this.sinph0*d*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),1e-10>Math.abs(f+this.lat0))return null;i=a-.5*f,s=(i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)))*Math.sin(_),i*=r}}else{switch(l=0,u=0,c=0,r=Math.cos(_),h=Math.sin(_),n=Math.sin(f),o=t4(this.e,n),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(u=Math.sqrt(1-(l=o/this.qp)*l)),this.mode){case this.OBLIQ:c=1+this.sinb1*l+this.cosb1*u*r;break;case this.EQUIT:c=1+u*r;break;case this.N_POLE:c=e+f,o=this.qp-o;break;case this.S_POLE:c=f-e,o=this.qp+o}if(1e-10>Math.abs(c))return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),i=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*l-this.sinb1*u*r):(c=Math.sqrt(2/(1+u*r)))*l*this.ymf,s=this.xmf*c*u*h;break;case this.N_POLE:case this.S_POLE:o>=0?(s=(c=Math.sqrt(o))*h,i=r*(this.mode===this.S_POLE?c:-c)):s=i=0}}return t.x=this.a*s+this.x0,t.y=this.a*i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s,i,a,r=t.x/this.a,h=t.y/this.a;if(this.sphere){var n,o,l,u,c,d,_,f,g=0,p=0;if((o=.5*(f=Math.sqrt(r*r+h*h)))>1)return null;switch(o=2*Math.asin(o),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(p=Math.sin(o),g=Math.cos(o)),this.mode){case this.EQUIT:o=1e-10>=Math.abs(f)?0:Math.asin(h*p/f),r*=p,h=g*f;break;case this.OBLIQ:o=1e-10>=Math.abs(f)?this.lat0:Math.asin(g*this.sinph0+h*p*this.cosph0/f),r*=p*this.cosph0,h=(g-Math.sin(o)*this.sinph0)*f;break;case this.N_POLE:h=-h,o=e-o;break;case this.S_POLE:o-=e}n=0===h&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(r,h)}else{if(_=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(r/=this.dd,h*=this.dd,(d=Math.sqrt(r*r+h*h))<1e-10)return t.x=this.long0,t.y=this.lat0,t;l=Math.cos(u=2*Math.asin(.5*d/this.rq)),r*=u=Math.sin(u),this.mode===this.OBLIQ?(_=l*this.sinb1+h*u*this.cosb1/d,c=this.qp*_,h=d*this.cosb1*l-h*this.sinb1*u):(_=h*u/d,c=this.qp*_,h=d*l)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(h=-h),!(c=r*r+h*h))return t.x=this.long0,t.y=this.lat0,t;_=1-c/this.qp,this.mode===this.S_POLE&&(_=-_)}n=Math.atan2(r,h),s=Math.asin(_),i=this.apa,a=s+s,o=s+i[0]*Math.sin(a)+i[1]*Math.sin(a+a)+i[2]*Math.sin(a+a+a)}return t.x=q(this.long0+n,this.over),t.y=o,t}
4,names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function t3(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}let t8={init:function(){1e-10>Math.abs(this.lat1+this.lat2)||(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=O(this.e3,this.sin_po,this.cos_po),this.qs1=t4(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=O(this.e3,this.sin_po,this.cos_po),this.qs2=t4(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=t4(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>1e-10?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 s=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var e=t4(this.e3,this.sin_phi),a=this.a*Math.sqrt(this.c-this.ns0*e)/this.ns0,r=this.ns0*q(s-this.long0,this.over),h=a*Math.sin(r)+this.x0,n=this.rh-a*Math.cos(r)+this.y0;return t.x=h,t.y=n,t},inverse:function(t){var s,i,e,a,r;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(s=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(s=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1),a=0,0!==s&&(a=Math.atan2(e*t.x,e*t.y)),e=s*this.ns0/this.a,this.sphere?r=Math.asin((this.c-e*e)/(2*this.ns0)):(i=(this.c-e*e)/this.ns0,r=this.phi1z(this.e3,i)),t.x=q(a/this.ns0+this.long0,this.over),t.y=r,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,s){var i,e,a,r,h,n=t3(.5*s);if(t<1e-10)return n;for(var o=t*t,l=1;l<=25;l++)if(i=Math.sin(n),e=Math.cos(n),n+=h=.5*(r=1-(a=t*i)*a)*r/e*(s/(1-o)-i/r+.5/t*Math.log((1-a)/(1+a))),1e-7>=Math.abs(h))return n;return null}},t5={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 s,i,e,a,r,h,n,o=t.x,l=t.y;return e=q(o-this.long0,this.over),s=Math.sin(l),i=Math.cos(l),a=Math.cos(e),(r=this.sin_p14*s+this.cos_p14*i*a)>0||1e-10>=Math.abs(r)?(h=this.x0+this.a*i*Math.sin(e)/r,n=this.y0+this.a*(this.cos_p14*s-this.sin_p14*i*a)/r):(h=this.x0+this.infinity_dist*i*Math.sin(e),n=this.y0+this.infinity_dist*(this.cos_p14*s-this.sin_p14*i*a)),t.x=h,t.y=n,t},inverse:function(t){var s,i,e,a,r,h;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,(s=Math.sqrt(t.x*t.x+t.y*t.y))?(i=Math.sin(a=Math.atan2(s,this.rc)),h=t3((e=Math.cos(a))*this.sin_p14+t.y*i*this.cos_p14/s),r=Math.atan2(t.x*i,s*this.cos_p14*e-t.y*this.sin_p14*i),r=q(this.long0+r,this.over)):(h=this.phic0,r=0),t.x=r,t.y=h,t},names:["gnom"]},t6={init:function(){this.sphere||(this.k0=O(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var s,i,e=t.x,a=t.y,r=q(e-this.long0,this.over);if(this.sphere)s=this.x0+this.a*r*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var h=t4(this.e,Math.sin(a));s=this.x0+this.a*this.k0*r,i=this.y0+this.a*h*.5/this.k0}return t.x=s,t.y=i,t},inverse:function(t){var s,i;return t.x-=this.x0,t.y-=this.y0,this.sphere?(s=q(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=function(t,s){if(1e-6>Math.abs(Math.abs(s)-(1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t)))))if(s<0)return -1*e;else return e;for(var i,a,r,h,n=Math.asin(.5*s),o=0;o<30;o++)if(a=Math.sin(n),r=Math.cos(n),n+=i=Math.pow(1-(h=t*a)*h,2)/(2*r)*(s/(1-t*t)-a/(1-h*h)+.5/t*Math.log((1-h)/(1+h))),1e-10>=Math.abs(i))return n;return NaN}(this.e,2*t.y*this.k0/this.a),s=q(this.long0+t.x/(this.a*this.k0),this.over)),t.x=s,t.y=i,t},names:["cea"]},t9={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 s=t.x,i=t.y,e=q(s-this.long0,this.over),a=tZ(i-this.lat0);return t.x=this.x0+this.a*e*this.rc,t.y=this.y0+this.a*a,t},inverse:function(t){var s=t.x,i=t.y;return t.x=q(this.long0+(s-this.x0)/(this.a*this.rc),this.over),t.y=tZ(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]},t7={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=tX(this.es),this.e1=tK(this.es),this.e2=t$(this.es),this.e3=tJ(this.es),this.ml0=this.a*tV(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var s,i,e,a=t.x,r=t.y,h=q(a-this.long0,this.over);if(e=h*Math.sin(r),this.sphere)1e-10>=Math.abs(r)?(s=this.a*h,i=-1*this.a*this.lat0):(s=this.a*Math.sin(e)/Math.tan(r),i=this.a*(tZ(r-this.lat0)+(1-Math.cos(e))/Math.tan(r)));else if(1e-10>=Math.abs(r))s=this.a*h,i=-1*this.ml0;else{var n=tY(this.a,this.e,Math.sin(r))/Math.tan(r);s=n*Math.sin(e),i=this.a*tV(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+n*(1-Math.cos(e))}return t.x=s+this.x0,t.y=i+this.y0,t},inverse:function(t){var s,i,e,a,r,h,n,o,l,u,c,d,_,f,g;if(e=t.x-this.x0,a=t.y-this.y0,this.sphere)if(1e-10>=Math.abs(a+this.a*this.lat0))s=q(e/this.a+this.long0,this.over),i=0;else{for(r=20,h=this.lat0+a/this.a,n=e*e/this.a/this.a+h*h,o=h;r;--r)if(u=Math.tan(o),l=-1*(h*(o*u+1)-o-.5*(o*o+n)*u)/((o-h)/u-1),o+=l,1e-10>=Math.abs(l)){i=o;break}s=q(this.long0+Math.asin(e*Math.tan(o)/this.a)/Math.sin(i),this.over)}else if(1e-10>=Math.abs(a+this.ml0))i=0,s=q(this.long0+e/this.a,this.over);else{for(r=20,h=(this.ml0+a)/this.a,n=e*e/this.a/this.a+h*h,o=h;r;--r)if(c=Math.sqrt(1-(g=this.e*Math.sin(o))*g)*Math.tan(o),d=this.a*tV(this.e0,this.e1,this.e2,this.e3,o),_=this.e0-2*this.e1*Math.cos(2*o)+4*this.e2*Math.cos(4*o)-6*this.e3*Math.cos(6*o),l=(h*(c*(f=d/this.a)+1)-f-.5*c*(f*f+n))/(this.es*Math.sin(2*o)*(f*f+n-2*h*f)/(4*c)+(h-f)*(c*_-2/Math.sin(2*o))-_),o-=l,1e-10>=Math.abs(l)){i=o;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),s=q(this.long0+Math.asin(e*c/this.a)/Math.sin(i),this.over)}return t.x=s,t.y=i,t},names:["Polyconic","American_Polyconic","poly"]},st={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 s,i,e,a=t.x,r=t.y-this.lat0,h=a-this.long0,n=r/484813681109536e-20*1e-5,o=1,l=0;for(s=1;s<=10;s++)o*=n,l+=this.A[s]*o;var u=l,c=1,d=0,_=0,f=0;for(s=1;s<=6;s++)i=c*u-d*h,e=d*u+c*h,c=i,d=e,_=_+this.B_re[s]*c-this.B_im[s]*d,f=f+this.B_im[s]*c+this.B_re[s]*d;return t.x=f*this.a+this.x0,t.y=_*this.a+this.y0,t},inverse:function(t){var s=t.x,i=t.y,e=s-this.x0,a=(i-this.y0)/this.a,r=e/this.a,h=1,n=0,o=0,l=0;for(c=1;c<=6;c++)d=h*a-n*r,_=n*a+h*r,h=d,n=_,o=o+this.C_re[c]*h-this.C_im[c]*n,l=l+this.C_im[c]*h+this.C_re[c]*n;for(var u=0;u<this.iterations;u++){var c,d,_,f,g,p=o,M=l,m=a,y=r;for(c=2;c<=6;c++)f=p*o-M*l,g=M*o+p*l,p=f,M=g,m+=(c-1)*(this.B_re[c]*p-this.B_im[c]*M),y+=(c-1)*(this.B_im[c]*p+this.B_re[c]*M);p=1,M=0;var v=this.B_re[1],w=this.B_im[1];for(c=2;c<=6;c++)f=p*o-M*l,g=M*o+p*l,p=f,M=g,v+=c*(this.B_re[c]*p-this.B_im[c]*M),w+=c*(this.B_im[c]*p+this.B_re[c]*M);var E=v*v+w*w;o=(m*v+y*w)/E,l=(y*v-m*w)/E}var x=o,S=l,G=1,P=0;for(c=1;c<=9;c++)G*=x,P+=this.D[c]*G;var b=this.lat0+484813681109536e-20*P*1e5;return t.x=this.long0+S,t.y=b,t},names:["New_Zealand_Map_Grid","nzmg"]},ss={init:function(){},forward:function(t){var s=t.x,i=t.y,e=q(s-this.long0,this.over),a=this.x0+this.a*e,r=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=a,t.y=r,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var s=q(this.long0+t.x/this.a,this.over),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=s,t.y=i,t},names:["Miller_Cylindrical","mill"]},si={init:function(){this.long0=this.long0||0,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=tA(this.es)},forward:function(t){var s,i,e=t.x,a=t.y;if(e=q(e-this.long0,this.over),this.sphere){if(this.m)for(var r=this.n*Math.sin(a),h=20;h;--h){var n=(this.m*a+Math.sin(a)-r)/(this.m+Math.cos(a));if(a-=n,1e-10>Math.abs(n))break}
4else a=1!==this.n?Math.asin(this.n*Math.sin(a)):a;s=this.a*this.C_x*e*(this.m+Math.cos(a)),i=this.a*this.C_y*a}else{var o=Math.sin(a),l=Math.cos(a);i=this.a*tN(a,o,l,this.en),s=this.a*e*l/Math.sqrt(1-this.es*o*o)}return t.x=s,t.y=i,t},inverse:function(t){var s,i,a;return t.x-=this.x0,i=t.x/this.a,t.y-=this.y0,s=t.y/this.a,this.sphere?(s/=this.C_y,i/=this.C_x*(this.m+Math.cos(s)),this.m?s=t3((this.m*s+Math.sin(s))/this.n):1!==this.n&&(s=t3(Math.sin(s)/this.n)),i=q(i+this.long0,this.over),s=tZ(s)):(a=Math.abs(s=tI(t.y/this.a,this.es,this.en)))<e?(a=Math.sin(s),i=q(this.long0+t.x*Math.sqrt(1-this.es*a*a)/(this.a*Math.cos(s)),this.over)):a-1e-10<e&&(i=this.long0),t.x=i,t.y=s,t},names:["Sinusoidal","sinu"]},se={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 s=t.x,i=t.y,e=q(s-this.long0,this.over),a=i,r=Math.PI*Math.sin(i);;){var h=-(a+Math.sin(a)-r)/(1+Math.cos(a));if(a+=h,1e-10>Math.abs(h))break}a/=2,Math.PI/2-Math.abs(i)<1e-10&&(e=0);var n=.900316316158*this.a*e*Math.cos(a)+this.x0,o=1.4142135623731*this.a*Math.sin(a)+this.y0;return t.x=n,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0,Math.abs(s=t.y/(1.4142135623731*this.a))>.999999999999&&(s=.999999999999);var s,i=Math.asin(s),e=q(this.long0+t.x/(.900316316158*this.a*Math.cos(i)),this.over);e<-Math.PI&&(e=-Math.PI),e>Math.PI&&(e=Math.PI),Math.abs(s=(2*i+Math.sin(2*i))/Math.PI)>1&&(s=1);var a=Math.asin(s);return t.x=e,t.y=a,t},names:["Mollweide","moll"]},sa={init:function(){1e-10>Math.abs(this.lat1+this.lat2)||(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=tX(this.es),this.e1=tK(this.es),this.e2=t$(this.es),this.e3=tJ(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=O(this.e,this.sin_phi,this.cos_phi),this.ml1=tV(this.e0,this.e1,this.e2,this.e3,this.lat1),1e-10>Math.abs(this.lat1-this.lat2)?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=O(this.e,this.sin_phi,this.cos_phi),this.ml2=tV(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=tV(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var s,i=t.x,e=t.y;if(this.sphere)s=this.a*(this.g-e);else{var a=tV(this.e0,this.e1,this.e2,this.e3,e);s=this.a*(this.g-a)}var r=this.ns*q(i-this.long0,this.over),h=this.x0+s*Math.sin(r),n=this.y0+this.rh-s*Math.cos(r);return t.x=h,t.y=n,t},inverse:function(t){t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),s=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),s=-1);var s,i,e,a,r=0;return(0!==i&&(r=Math.atan2(s*t.x,s*t.y)),this.sphere)?(a=q(this.long0+r/this.ns,this.over),e=tZ(this.g-i/this.a),t.x=a):(e=t0(this.g-i/this.a,this.e0,this.e1,this.e2,this.e3),t.x=a=q(this.long0+r/this.ns,this.over)),t.y=e,t},names:["Equidistant_Conic","eqdc"]},sr={init:function(){this.R=this.a},forward:function(t){var s,i,a=t.x,r=t.y,h=q(a-this.long0,this.over);1e-10>=Math.abs(r)&&(s=this.x0+this.R*h,i=this.y0);var n=t3(2*Math.abs(r/Math.PI));(1e-10>=Math.abs(h)||1e-10>=Math.abs(Math.abs(r)-e))&&(s=this.x0,i=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*n):this.y0+-(Math.PI*this.R*Math.tan(.5*n)));var o=.5*Math.abs(Math.PI/h-h/Math.PI),l=o*o,u=Math.sin(n),c=Math.cos(n),d=c/(u+c-1),_=d*(2/u-1),f=_*_,g=Math.PI*this.R*(o*(d-f)+Math.sqrt(l*(d-f)*(d-f)-(f+l)*(d*d-f)))/(f+l);h<0&&(g=-g),s=this.x0+g;var p=l+d;return g=Math.PI*this.R*(_*p-o*Math.sqrt((f+l)*(l+1)-p*p))/(f+l),i=r>=0?this.y0+g:this.y0-g,t.x=s,t.y=i,t},inverse:function(t){var s,i,e,a,r,h,n,o,l,u,c,d;return t.x-=this.x0,t.y-=this.y0,u=Math.PI*this.R,a=(i=t.x/u)*i+(e=t.y/u)*e,h=(r=-Math.abs(e)*(1+a))-2*e*e+i*i,n=-2*r+1+2*e*e+a*a,d=e*e/n+(2*h*h*h/n/n/n-9*r*h/n/n)/27,l=2*Math.sqrt(-(o=(r-h*h/3/n)/n)/3),Math.abs(u=3*d/o/l)>1&&(u=u>=0?1:-1),c=Math.acos(u)/3,s=t.y>=0?(-l*Math.cos(c+Math.PI/3)-h/3/n)*Math.PI:-(-l*Math.cos(c+Math.PI/3)-h/3/n)*Math.PI,t.x=1e-10>Math.abs(i)?this.long0:q(this.long0+Math.PI*(a-1+Math.sqrt(1+2*(i*i-e*e)+a*a))/2/i,this.over),t.y=s,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]},sh={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 s,i,a,r,h,n,o,l,u,c,d=t.x,_=t.y,f=Math.sin(t.y),g=Math.cos(t.y),p=q(d-this.long0,this.over);if(this.sphere)if(1e-10>=Math.abs(this.sin_p12-1))return t.x=this.x0+this.a*(e-_)*Math.sin(p),t.y=this.y0-this.a*(e-_)*Math.cos(p),t;else if(1e-10>=Math.abs(this.sin_p12+1))return t.x=this.x0+this.a*(e+_)*Math.sin(p),t.y=this.y0+this.a*(e+_)*Math.cos(p),t;else return l=(o=Math.acos(this.sin_p12*f+this.cos_p12*g*Math.cos(p)))?o/Math.sin(o):1,t.x=this.x0+this.a*l*g*Math.sin(p),t.y=this.y0+this.a*l*(this.cos_p12*f-this.sin_p12*g*Math.cos(p)),t;return(s=tX(this.es),i=tK(this.es),a=t$(this.es),r=tJ(this.es),1e-10>=Math.abs(this.sin_p12-1))?(h=this.a*tV(s,i,a,r,e),n=this.a*tV(s,i,a,r,_),t.x=this.x0+(h-n)*Math.sin(p),t.y=this.y0-(h-n)*Math.cos(p),t):1e-10>=Math.abs(this.sin_p12+1)?(h=this.a*tV(s,i,a,r,e),n=this.a*tV(s,i,a,r,_),t.x=this.x0+(h+n)*Math.sin(p),t.y=this.y0+(h+n)*Math.cos(p),t):(1e-10>Math.abs(d)&&1e-10>Math.abs(_-this.lat0)?t.x=t.y=0:(c=(u=function(t,s,i,e,a,r){let h,n,o,l,u,c,d,_,f,g,p,M,m=e-s,y=Math.atan((1-r)*Math.tan(t)),v=Math.atan((1-r)*Math.tan(i)),w=Math.sin(y),E=Math.cos(y),x=Math.sin(v),S=Math.cos(v),G=m,P,b=100;do{if(0===(o=Math.sqrt(S*(h=Math.sin(G))*(S*h)+(E*x-w*S*(n=Math.cos(G)))*(E*x-w*S*n))))return{azi1:0,s12:0};u=Math.atan2(o,l=w*x+E*S*n),_=0!=(d=1-(c=E*S*h/o)*c)?l-2*w*x/d:0,f=r/16*d*(4+r*(4-3*d)),P=G,G=m+(1-f)*r*c*(u+f*o*(_+f*l*(-1+2*_*_)))}while(Math.abs(G-P)>1e-12&&--b>0);return 0===b?{azi1:NaN,s12:NaN}:(p=1+(g=d*(a*a-a*(1-r)*(a*(1-r)))/(a*(1-r)*(a*(1-r))))/16384*(4096+g*(-768+g*(320-175*g))),{azi1:Math.atan2(S*h,E*x-w*S*n),s12:a*(1-r)*p*(u-(M=g/1024*(256+g*(-128+g*(74-47*g))))*o*(_+M/4*(l*(-1+2*_*_)-M/6*_*(-3+4*o*o)*(-3+4*_*_))))})}(this.lat0,this.long0,_,d,this.a,this.f)).azi1,t.x=u.s12*Math.sin(c),t.y=u.s12*Math.cos(c)),t)},inverse:function(t){var s,i,a,r,h,n,o,l,u,c,d,_,f,g;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((s=Math.sqrt(t.x*t.x+t.y*t.y))>2*e*this.a)return;return a=Math.sin(i=s/this.a),r=Math.cos(i),h=this.long0,1e-10>=Math.abs(s)?n=this.lat0:(n=t3(r*this.sin_p12+t.y*a*this.cos_p12/s),h=1e-10>=Math.abs(Math.abs(this.lat0)-e)?this.lat0>=0?q(this.long0+Math.atan2(t.x,-t.y),this.over):q(this.long0-Math.atan2(-t.x,t.y),this.over):q(this.long0+Math.atan2(t.x*a,s*this.cos_p12*r-t.y*this.sin_p12*a),this.over)),t.x=h,t.y=n,t}return(o=tX(this.es),l=tK(this.es),u=t$(this.es),c=tJ(this.es),1e-10>=Math.abs(this.sin_p12-1))?(n=t0(((d=this.a*tV(o,l,u,c,e))-(s=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,o,l,u,c),h=q(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=
4h,t.y=n):1e-10>=Math.abs(this.sin_p12+1)?(d=this.a*tV(o,l,u,c,e),n=t0(((s=Math.sqrt(t.x*t.x+t.y*t.y))-d)/this.a,o,l,u,c),h=q(this.long0+Math.atan2(t.x,t.y),this.over),t.x=h,t.y=n):(_=Math.atan2(t.x,t.y),f=Math.sqrt(t.x*t.x+t.y*t.y),t.x=(g=function(t,s,i,e,a,r){let h,n,o,l,u=Math.atan((1-r)*Math.tan(t)),c=Math.sin(u),d=Math.cos(u),_=Math.sin(i),f=Math.cos(i),g=Math.atan2(c,d*f),p=d*_,M=1-p*p,m=M*(a*a-a*(1-r)*(a*(1-r)))/(a*(1-r)*(a*(1-r))),y=1+m/16384*(4096+m*(-768+m*(320-175*m))),v=m/1024*(256+m*(-128+m*(74-47*m))),w=e/(a*(1-r)*y),E,x=100;do h=Math.cos(2*g+w),l=v*(n=Math.sin(w))*(h+v/4*((o=Math.cos(w))*(-1+2*h*h)-v/6*h*(-3+4*n*n)*(-3+4*h*h))),E=w,w=e/(a*(1-r)*y)+l;while(Math.abs(w-E)>1e-12&&--x>0);if(0===x)return{lat2:NaN,lon2:NaN};let S=c*n-d*o*f,G=Math.atan2(c*o+d*n*f,(1-r)*Math.sqrt(p*p+S*S)),P=r/16*M*(4+r*(4-3*M));return{lat2:G,lon2:s+(Math.atan2(n*_,d*o-c*n*f)-(1-P)*r*p*(w+P*n*(h+P*o*(-1+2*h*h))))}}(this.lat0,this.long0,_,f,this.a,this.f)).lon2,t.y=g.lat2),t},names:["Azimuthal_Equidistant","aeqd"]},sn={init:function(){this.sin_p14=Math.sin(this.lat0||0),this.cos_p14=Math.cos(this.lat0||0)},forward:function(t){var s,i,e,a,r,h,n,o=t.x,l=t.y;return e=q(o-(this.long0||0),this.over),s=Math.sin(l),i=Math.cos(l),a=Math.cos(e),((r=this.sin_p14*s+this.cos_p14*i*a)>0||1e-10>=Math.abs(r))&&(h=this.a*i*Math.sin(e),n=(this.y0||0)+this.a*(this.cos_p14*s-this.sin_p14*i*a)),t.x=h,t.y=n,t},inverse:function(t){var s,i,a,r,h,n,o,l;return(t.x-=this.x0||0,t.y-=this.y0||0,a=Math.sin(i=t3((s=Math.sqrt(t.x*t.x+t.y*t.y))/this.a)),r=Math.cos(i),o=this.long0||0,l=this.lat0||0,h=o,1e-10>=Math.abs(s))?n=l:(n=t3(r*this.sin_p14+t.y*a*this.cos_p14/s),1e-10>=Math.abs(Math.abs(l)-e))?h=l>=0?q(o+Math.atan2(t.x,-t.y),this.over):q(o-Math.atan2(-t.x,t.y),this.over):h=q(o+Math.atan2(t.x*a,s*this.cos_p14*r-t.y*this.sin_p14*a),this.over),t.x=h,t.y=n,t},names:["ortho"]};var so={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},sl={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function su(t,s,i,r){var h;return t<1e-10?(r.value=sl.AREA_0,h=0):Math.abs(h=Math.atan2(s,i))<=a?r.value=sl.AREA_0:h>a&&h<=e+a?(r.value=sl.AREA_1,h-=e):h>e+a||h<=-(e+a)?(r.value=sl.AREA_2,h=h>=0?h-3.14159265359:h+3.14159265359):(r.value=sl.AREA_3,h+=e),h}function sc(t,s){var i=t+s;return i<-3.14159265359?i+=r:i>3.14159265359&&(i-=r),i}let sd={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>=e-a/2?this.face=so.TOP:this.lat0<=-(e-a/2)?this.face=so.BOTTOM:Math.abs(this.long0)<=a?this.face=so.FRONT:Math.abs(this.long0)<=e+a?this.face=this.long0>0?so.RIGHT:so.LEFT:this.face=so.BACK,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 s,i,r,h,n,o,l,u,c,d,_,f={x:0,y:0},g={value:0};return(t.x-=this.long0,s=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,i=t.x,this.face===so.TOP)?(h=e-s,i>=a&&i<=e+a?(g.value=sl.AREA_0,r=i-e):i>e+a||i<=-(e+a)?(g.value=sl.AREA_1,r=i>0?i-3.14159265359:i+3.14159265359):i>-(e+a)&&i<=-a?(g.value=sl.AREA_2,r=i+e):(g.value=sl.AREA_3,r=i)):this.face===so.BOTTOM?(h=e+s,i>=a&&i<=e+a?(g.value=sl.AREA_0,r=-i+e):i<a&&i>=-a?(g.value=sl.AREA_1,r=-i):i<-a&&i>=-(e+a)?(g.value=sl.AREA_2,r=-i-e):(g.value=sl.AREA_3,r=i>0?-i+3.14159265359:-i-3.14159265359)):(this.face===so.RIGHT?i=sc(i,+e):this.face===so.BACK?i=sc(i,3.14159265359):this.face===so.LEFT&&(i=sc(i,-e)),c=Math.sin(s),d=Math.cos(s),_=Math.sin(i),l=d*Math.cos(i),u=d*_,this.face===so.FRONT?r=su(h=Math.acos(l),c,u,g):this.face===so.RIGHT?r=su(h=Math.acos(u),c,-l,g):this.face===so.BACK?r=su(h=Math.acos(-l),c,-u,g):this.face===so.LEFT?r=su(h=Math.acos(-u),c,l,g):(h=r=0,g.value=sl.AREA_0)),n=Math.sqrt((1-Math.cos(h))/(Math.cos(o=Math.atan(3.8197186342052367*(r+Math.acos(Math.sin(r)*Math.cos(a))-e)))*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(r))))),g.value===sl.AREA_1?o+=e:g.value===sl.AREA_2?o+=3.14159265359:g.value===sl.AREA_3&&(o+=4.7123889803850005),f.x=n*Math.cos(o),f.y=n*Math.sin(o),f.x=f.x*this.a+this.x0,f.y=f.y*this.a+this.y0,t.x=f.x,t.y=f.y,t},inverse:function(t){var s,i,a,r,h,n,o,l,u,c,d,_,f,g={lam:0,phi:0},p={value:0};return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,i=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),s=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?p.value=sl.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(p.value=sl.AREA_1,s-=e):t.x<0&&-t.x>=Math.abs(t.y)?(p.value=sl.AREA_2,s=s<0?s+3.14159265359:s-3.14159265359):(p.value=sl.AREA_3,s+=e),h=Math.atan(Math.sin(o=3.14159265359/12*Math.tan(s))/(Math.cos(o)-1/Math.sqrt(2))),(n=1-(a=Math.cos(s))*a*(r=Math.tan(i))*r*(1-Math.cos(Math.atan(1/Math.cos(h)))))<-1?n=-1:n>1&&(n=1),this.face===so.TOP?(g.phi=e-Math.acos(n),p.value===sl.AREA_0?g.lam=h+e:p.value===sl.AREA_1?g.lam=h<0?h+3.14159265359:h-3.14159265359:p.value===sl.AREA_2?g.lam=h-e:g.lam=h):this.face===so.BOTTOM?(g.phi=Math.acos(n)-e,p.value===sl.AREA_0?g.lam=-h+e:p.value===sl.AREA_1?g.lam=-h:p.value===sl.AREA_2?g.lam=-h-e:g.lam=h<0?-h-3.14159265359:-h+3.14159265359):(c=(o=(l=n)*l)>=1?0:Math.sqrt(1-o)*Math.sin(h),o+=c*c,u=o>=1?0:Math.sqrt(1-o),p.value===sl.AREA_1?(o=u,u=-c,c=o):p.value===sl.AREA_2?(u=-u,c=-c):p.value===sl.AREA_3&&(o=u,u=c,c=-o),this.face===so.RIGHT?(o=l,l=-u,u=o):this.face===so.BACK?(l=-l,u=-u):this.face===so.LEFT&&(o=l,l=u,u=-o),g.phi=Math.acos(-c)-e,g.lam=Math.atan2(u,l),this.face===so.RIGHT?g.lam=sc(g.lam,-e):this.face===so.BACK?g.lam=sc(g.lam,-3.14159265359):this.face===so.LEFT&&(g.lam=sc(g.lam,+e))),0!==this.es&&(d=+(g.phi<0),_=Math.tan(g.phi),f=this.b/Math.sqrt(_*_+this.one_minus_f_squared),g.phi=Math.atan(Math.sqrt(this.a*this.a-f*f)/(this.one_minus_f*f)),d&&(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 s_=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.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,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00
4798324,-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]],sf=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],sg=function(t,s){return t[0]+s*(t[1]+s*(t[2]+s*t[3]))};let sp={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 s=q(t.x-this.long0,this.over),i=Math.abs(t.y),e=Math.floor(11.459155902616464*i);e<0?e=0:e>=18&&(e=17),i=57.29577951308232*(i-.08726646259971647*e);var a={x:sg(s_[e],i)*s,y:sg(sf[e],i)};return t.y<0&&(a.y=-a.y),a.x=a.x*this.a*.8487+this.x0,a.y=a.y*this.a*1.3523+this.y0,a},inverse:function(t){var s={x:(t.x-this.x0)/(.8487*this.a),y:Math.abs(t.y-this.y0)/(1.3523*this.a)};if(s.y>=1)s.x/=s_[18][0],s.y=t.y<0?-e:e;else{var i=Math.floor(18*s.y);for(i<0?i=0:i>=18&&(i=17);;)if(sf[i][0]>s.y)--i;else if(sf[i+1][0]<=s.y)++i;else break;var a=sf[i],r=5*(s.y-a[0])/(sf[i+1][0]-a[0]);r=function(t,s,i,e){for(var a=s;e;--e){var r=t(a);if(a-=r,1e-10>Math.abs(r))break}return a}(function(t){return(sg(a,t)-s.y)/(a[1]+t*(2*a[2]+3*t*a[3]))},r,0,100),s.x/=sg(s_[i],r),s.y=(5*i+r)*.017453292519943295,t.y<0&&(s.y=-s.y)}return s.x=q(s.x+this.long0,this.over),s},names:["Robinson","robin"]},sM={init:function(){this.name="geocent"},forward:function(t){return th(t,this.es,this.a)},inverse:function(t){return tn(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var sm={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},sy={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}};
4let sv={init:function(){if(Object.keys(sy).forEach((function(t){if(void 0===this[t])this[t]=sy[t].def;else if(sy[t].num&&isNaN(this[t]))throw Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);else sy[t].num&&(this[t]=parseFloat(this[t]));sy[t].degrees&&(this[t]=.017453292519943295*this[t])}).bind(this)),1e-10>Math.abs(Math.abs(this.lat0)-e)?this.mode=this.lat0<0?sm.S_POLE:sm.N_POLE:1e-10>Math.abs(this.lat0)?this.mode=sm.EQUIT:(this.mode=sm.OBLIQ,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 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,s=this.azi;this.cg=Math.cos(s),this.sg=Math.sin(s),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var s,i,e,a,r=Math.sin(t.y),h=Math.cos(t.y),n=Math.cos(t.x);switch(this.mode){case sm.OBLIQ:i=this.sinph0*r+this.cosph0*h*n;break;case sm.EQUIT:i=h*n;break;case sm.S_POLE:i=-r;break;case sm.N_POLE:i=r}switch(s=(i=this.pn1/(this.p-i))*h*Math.sin(t.x),this.mode){case sm.OBLIQ:i*=this.cosph0*r-this.sinph0*h*n;break;case sm.EQUIT:i*=r;break;case sm.N_POLE:i*=-(h*n);break;case sm.S_POLE:i*=h*n}return a=1/((e=i*this.cg+s*this.sg)*this.sw*this.h1+this.cw),s=(s*this.cg-i*this.sg)*this.cw*a,i=e*a,t.x=s*this.a,t.y=i*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var s,i,e,a,r,h={x:t.x,y:t.y};e=1/(this.pn1-t.y*this.sw),s=this.pn1*t.x*e,i=this.pn1*t.y*this.cw*e,t.x=s*this.cg+i*this.sg,t.y=i*this.cg-s*this.sg;var n=tT(t.x,t.y);if(1e-10>Math.abs(n))h.x=0,h.y=t.y;else{switch(r=1-n*n*this.pfact,a=Math.sqrt(1-(r=(this.p-Math.sqrt(r))/(this.pn1/n+n/this.pn1))*r),this.mode){case sm.OBLIQ:h.y=Math.asin(a*this.sinph0+t.y*r*this.cosph0/n),t.y=(a-this.sinph0*Math.sin(h.y))*n,t.x*=r*this.cosph0;break;case sm.EQUIT:h.y=Math.asin(t.y*r/n),t.y=a*n,t.x*=r;break;case sm.N_POLE:h.y=Math.asin(a),t.y=-t.y;break;case sm.S_POLE:h.y=-Math.asin(a)}h.x=Math.atan2(t.x,t.y)}return t.x=h.x+this.long0,t.y=h.y,t},names:["Tilted_Perspective","tpers"]},sw={init:function(){if(this.flip_axis=+("x"===this.sweep),this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw 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;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=1/t,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 s,i,e,a,r=t.x,h=t.y;if(r-=this.long0,"ellipse"===this.shape){h=Math.atan(this.radius_p2*Math.tan(h));var n=this.radius_p/tT(this.radius_p*Math.cos(h),Math.sin(h));if(i=n*Math.cos(r)*Math.cos(h),e=n*Math.sin(r)*Math.cos(h),a=n*Math.sin(h),(this.radius_g-i)*i-e*e-a*a*this.radius_p_inv2<0)return t.x=NaN,t.y=NaN,t;s=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(e/tT(a,s)),t.y=this.radius_g_1*Math.atan(a/s)):(t.x=this.radius_g_1*Math.atan(e/s),t.y=this.radius_g_1*Math.atan(a/tT(e,s)))}else"sphere"===this.shape&&(i=Math.cos(r)*(s=Math.cos(h)),e=Math.sin(r)*s,a=Math.sin(h),s=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(e/tT(a,s)),t.y=this.radius_g_1*Math.atan(a/s)):(t.x=this.radius_g_1*Math.atan(e/s),t.y=this.radius_g_1*Math.atan(a/tT(e,s))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var s,i,e,a,r=-1,h=0,n=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),h=Math.tan(t.x/this.radius_g_1)*tT(1,n)):(h=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*tT(1,h));var o=n/this.radius_p;if(s=h*h+o*o+r*r,(e=(i=2*this.radius_g*r)*i-4*s*this.C)<0)return t.x=NaN,t.y=NaN,t;a=(-i-Math.sqrt(e))/(2*s),r=this.radius_g+a*r,h*=a,n*=a,t.x=Math.atan2(h,r),t.y=Math.atan(n*Math.cos(t.x)/r),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(n=Math.tan(t.y/this.radius_g_1),h=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+n*n)):(h=Math.tan(t.x/this.radius_g_1),n=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+h*h)),s=h*h+n*n+r*r,(e=(i=2*this.radius_g*r)*i-4*s*this.C)<0)return t.x=NaN,t.y=NaN,t;a=(-i-Math.sqrt(e))/(2*s),r=this.radius_g+a*r,h*=a,n*=a,t.x=Math.atan2(h,r),t.y=Math.atan(n*Math.cos(t.x)/r)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var sE=Math.sqrt(3)/2;let sx={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 s=q(t.x-this.long0,this.over),i=Math.asin(sE*Math.sin(t.y)),e=i*i,a=e*e*e;return t.x=s*Math.cos(i)/(sE*(1.340264+-.24331799999999998*e+a*(.0062510000000000005+.034164*e))),t.y=i*(1.340264+-.081106*e+a*(893e-6+.003796
4*e)),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 s,i,e,a,r,h=t.y;for(r=0;r<12&&(i=(s=h*h)*s*s,e=h*(1.340264+-.081106*s+i*(893e-6+.003796*s))-t.y,h-=a=e/(1.340264+-.24331799999999998*s+i*(.0062510000000000005+.034164*s)),!(1e-9>Math.abs(a)));++r);return i=(s=h*h)*s*s,t.x=sE*t.x*(1.340264+-.24331799999999998*s+i*(.0062510000000000005+.034164*s))/Math.cos(h),t.y=Math.asin(Math.sin(h)/sE),t.x=q(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]};function sS(t){var s,i,e,a=q(t.x-(this.long0||0),this.over),r=t.y;return s=this.am1+this.m1-tN(r,i=Math.sin(r),e=Math.cos(r),this.en),i=e*a/(s*Math.sqrt(1-this.es*i*i)),t.x=s*Math.sin(i),t.y=this.am1-s*Math.cos(i),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function sG(t){var s,i,a,r;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,i=tT(t.x,t.y=this.am1-t.y),(s=Math.abs(r=tI(this.am1+this.m1-i,this.es,this.en)))<e)s=Math.sin(r),a=i*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*s*s)/Math.cos(r);else if(1e-10>=Math.abs(s-e))a=0;else throw Error();return t.x=q(a+(this.long0||0),this.over),t.y=tZ(r),t}function sP(t){var s,i,e=q(t.x-(this.long0||0),this.over),a=t.y;return Math.abs(i=this.cphi1+this.phi1-a)>1e-10?(t.x=i*Math.sin(s=e*Math.cos(a)/i),t.y=this.cphi1-i*Math.cos(s)):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 sb(t){t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var s,i,a=tT(t.x,t.y=this.cphi1-t.y);if(Math.abs(i=this.cphi1+this.phi1-a)>e)throw Error();return s=1e-10>=Math.abs(Math.abs(i)-e)?0:a*Math.atan2(t.x,t.y)/Math.cos(i),t.x=q(s+(this.long0||0),this.over),t.y=tZ(i),t}let sA={init:function(){var t;if(this.phi1=this.lat1,1e-10>Math.abs(this.phi1))throw Error();this.es?(this.en=tA(this.es),this.m1=tN(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=sG,this.forward=sS):(Math.abs(this.phi1)+1e-10>=e?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=sb,this.forward=sP)},names:["bonne","Bonne (Werner lat_1=90)"]},sN={OBLIQUE:{forward:function(t,s){let{x:i,y:e}=s,a=Math.cos(i+=t.long0),r=Math.sin(e),h=Math.cos(e);s.x=q(Math.atan2(h*Math.sin(i),t.sphip*h*a+t.cphip*r)+t.lamp),s.y=Math.asin(t.sphip*r-t.cphip*h*a);let n=t.obliqueProjection.forward(s);return t.isIdentity&&(n.x*=57.29577951308232,n.y*=57.29577951308232),n},inverse:function(t,s){t.isIdentity&&(s.x*=.017453292519943295,s.y*=.017453292519943295);let{x:i,y:e}=t.obliqueProjection.inverse(s);if(i<Number.MAX_VALUE){let a=Math.cos(i-=t.lamp),r=Math.sin(e),h=Math.cos(e);s.x=Math.atan2(h*Math.sin(i),t.sphip*h*a-t.cphip*r),s.y=Math.asin(t.sphip*r+t.cphip*h*a)}return s.x=q(s.x+t.long0),s}},TRANSVERSE:{forward:function(t,s){let{x:i,y:e}=s;i+=t.long0;let a=Math.cos(e),r=Math.cos(i);s.x=q(Math.atan2(a*Math.sin(i),Math.sin(e))+t.lamp),s.y=Math.asin(-1*a*r);let h=t.obliqueProjection.forward(s);return t.isIdentity&&(h.x*=57.29577951308232,h.y*=57.29577951308232),h},inverse:function(t,s){t.isIdentity&&(s.x*=.017453292519943295,s.y*=.017453292519943295);let{x:i,y:e}=t.obliqueProjection.inverse(s);if(i<Number.MAX_VALUE){let a=Math.cos(e);s.x=Math.atan2(a*Math.sin(i-=t.lamp),-1*Math.sin(e)),s.y=Math.asin(a*Math.cos(i))}return s.x=q(s.x+t.long0),s}}},sI={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"}},sC={init:function(){let t;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=B.includes(this.o_proj),!this.o_proj)throw Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw Error("Invalid value for o_proj: "+this.o_proj);let s=tr(this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim());if(!s)throw Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);s.long0=0,this.obliqueProjection=s;let i=Object.keys(sI),a=t=>{if(void 0===this[t])return;let s=.017453292519943295*parseFloat(this[t]);if(isNaN(s))throw Error("Invalid value for "+t+": "+this[t]);return s};for(let s=0;s<i.length;s++){let e=sI[i[s]],r=Object.entries(e);if(r.some(([t])=>void 0!==this[t])){t=e;for(let t=0;t<r.length;t++){let[s,i]=r[t],e=a(s);if(void 0===e)throw Error("Missing parameter: "+s+".");this[i]=e}break}}if(!t)throw Error("No valid parameters provided for ob_tran projection.");let{lamp:r,phip:h}=function(t,s){let i,a;if(s===sI.ROTATE){let s=t.oLongC,r=t.oLatC,h=t.oAlpha;if(1e-10>=Math.abs(Math.abs(r)-e))throw Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90\xb0");a=s+Math.atan2(-1*Math.cos(h),-1*Math.sin(h)*Math.sin(r)),i=Math.asin(Math.cos(r)*Math.sin(h))}else if(s===sI.NEW_POLE)a=t.oLongP,i=t.oLatP;
4else{let s=t.oLong1,r=t.oLat1,h=t.oLong2,n=t.oLat2,o=Math.abs(r);if(Math.abs(r)>e-1e-10)throw Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90\xb0");if(Math.abs(n)>e-1e-10)throw Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90\xb0");if(1e-10>Math.abs(r-n))throw Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(o<1e-10)throw Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");i=Math.atan(-1*Math.cos((a=Math.atan2(Math.cos(r)*Math.sin(n)*Math.cos(s)-Math.sin(r)*Math.cos(n)*Math.cos(h),Math.sin(r)*Math.cos(n)*Math.sin(h)-Math.cos(r)*Math.sin(n)*Math.sin(s)))-s)/Math.tan(r))}return{lamp:a,phip:i}}(this,t);this.lamp=r,Math.abs(h)>1e-10?(this.cphip=Math.cos(h),this.sphip=Math.sin(h),this.projectionType=sN.OBLIQUE):this.projectionType=sN.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"]},sk=Object.assign(function(t,s,i){var e,a,r,h=!1;return(void 0===s?(a=tM(t),e=tg,h=!0):(void 0!==s.x||Array.isArray(s))&&(i=s,a=tM(t),e=tg,h=!0),e||(e=tM(t)),a||(a=tM(s)),i)?tp(e,a,i):(r={forward:function(t,s){return tp(e,a,t,s)},inverse:function(t,s){return tp(a,e,t,s)}},h&&(r.oProj=a),r)},{defaultDatum:"WGS84",Proj:tr,WGS84:new tr("WGS84"),Point:tb,toPoint:td,defs:C,nadgrid:function(t,s,i){var e,a,r,h,n,o,l,u,c,d,_,f,g;return s instanceof ArrayBuffer?(e=t,a=s,h=!0,void 0!==(r=i)&&!1===r.includeErrorFields&&(h=!1),d=11!==(o=(n=c=new DataView(a)).getInt32(8,!1))&&(11!==(o=n.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0),_=(l=c,u=d,{nFields:l.getInt32(8,u),nSubgridFields:l.getInt32(24,u),nSubgrids:l.getInt32(40,u),shiftType:ta(l,56,64).trim(),fromSemiMajorAxis:l.getFloat64(120,u),fromSemiMinorAxis:l.getFloat64(136,u),toSemiMajorAxis:l.getFloat64(152,u),toSemiMinorAxis:l.getFloat64(168,u)}),f=function(t,s,i,e){for(var a=176,r=[],h=0;h<s.nSubgrids;h++){var n,o,l,u=(n=t,o=a,l=i,{name:ta(n,o+8,o+16).trim(),parent:ta(n,o+24,o+24+8).trim(),lowerLatitude:n.getFloat64(o+72,l),upperLatitude:n.getFloat64(o+88,l),lowerLongitude:n.getFloat64(o+104,l),upperLongitude:n.getFloat64(o+120,l),latitudeInterval:n.getFloat64(o+136,l),longitudeInterval:n.getFloat64(o+152,l),gridNodeCount:n.getInt32(o+168,l)}),c=function(t,s,i,e,a){var r=s+176,h=16;!1===a&&(h=8);for(var n=[],o=0;o<i.gridNodeCount;o++){var l={latitudeShift:t.getFloat32(r+o*h,e),longitudeShift:t.getFloat32(r+o*h+4,e)};!1!==a&&(l.latitudeAccuracy=t.getFloat32(r+o*h+8,e),l.longitudeAccuracy=t.getFloat32(r+o*h+12,e)),n.push(l)}return n}(t,a,u,i,e),d=Math.round(1+(u.upperLongitude-u.lowerLongitude)/u.longitudeInterval),_=Math.round(1+(u.upperLatitude-u.lowerLatitude)/u.latitudeInterval);r.push({ll:[te(u.lowerLongitude),te(u.lowerLatitude)],del:[te(u.longitudeInterval),te(u.latitudeInterval)],lim:[d,_],count:u.gridNodeCount,cvs:c.map(function(t){return[te(t.longitudeShift),te(t.latitudeShift)]})});var f=16;!1===e&&(f=8),a+=176+u.gridNodeCount*f}return r}(c,_,d,h),g={header:_,subgrids:f},Z[e]=g,g):{ready:tt(t,s)}},transform:tf,mgrs:{forward:tv,inverse:function(t){var s=tS(tP(t.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat,s.lon,s.lat]:[s.left,s.bottom,s.right,s.top]},toPoint:tw},version:"__VERSION__"});!function(t){t.Proj.projections.add(tC),t.Proj.projections.add(tj),t.Proj.projections.add(tq),t.Proj.projections.add(tD),t.Proj.projections.add(tU),t.Proj.projections.add(tz),t.Proj.projections.add(tW),t.Proj.projections.add(tQ),t.Proj.projections.add(tH),t.Proj.projections.add(t1),t.Proj.projections.add(t2),t.Proj.projections.add(t8),t.Proj.projections.add(t5),t.Proj.projections.add(t6),t.Proj.projections.add(t9),t.Proj.projections.add(t7),t.Proj.projections.add(st),t.Proj.projections.add(ss),t.Proj.projections.add(si),t.Proj.projections.add(se),t.Proj.projections.add(sa),t.Proj.projections.add(sr),t.Proj.projections.add(sh),t.Proj.projections.add(sn),t.Proj.projections.add(sd),t.Proj.projections.add(sp),t.Proj.projections.add(sM),t.Proj.projections.add(sv),t.Proj.projections.add(sw),t.Proj.projections.add(sx),t.Proj.projections.add(sA),t.Proj.projections.add(sC)}(sk);let sT=sk}}]);
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.