(window.mapsEms_bundle_jsonpfunction=window.mapsEms_bundle_jsonpfunction||[]).push([[1],[,,,,,,,,,,function(t,e,r){const n=r(15),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(16),{safeRe:a,t:s}=r(14),u=r(20),{compareIdentifiers:c}=r(27);class SemVer{constructor(t,e){if(e=u(e),t instanceof SemVer){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=SemVer},function(t,e,r){const n=r(10);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},function(t,e,r){class Range{constructor(t,e){if(e=o(e),t instanceof Range)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new Range(t.raw,e);if(t instanceof i)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!v(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&y(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+t,r=n.get(e);if(r)return r;const o=this.options.loose,s=o?u[c.HYPHENRANGELOOSE]:u[c.HYPHENRANGE];t=t.replace(s,A(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(u[c.COMPARATORTRIM],l),a("comparator trim",t),t=t.replace(u[c.TILDETRIM],h),a("tilde trim",t),t=t.replace(u[c.CARETTRIM],f),a("caret trim",t);let y=t.split(" ").map((t=>d(t,this.options))).join(" ").split(/\s+/).map((t=>L(t,this.options)));o&&(y=y.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(u[c.COMPARATORLOOSE]))))),a("range list",y);const g=new Map,b=y.map((t=>new i(t,this.options)));for(const t of b){if(v(t))return[t];g.set(t.value,t)}g.size>1&&g.has("")&&g.delete("");const E=[...g.values()];return n.set(e,E),E}intersects(t,e){if(!(t instanceof Range))throw new TypeError("a Range is required");return this.set.some((r=>g(r,e)&&t.set.some((t=>g(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new s(t,this.options)}catch(t){return!1}for(let e=0;e"<0.0.0-0"===t.value,y=t=>""===t.value,g=(t,e)=>{let r=!0;const n=t.slice();let o=n.pop();for(;r&&n.length;)r=n.every((t=>o.intersects(t,e))),o=n.pop();return r},d=(t,e)=>(a("comp",t,e),t=x(t,e),a("caret",t),t=E(t,e),a("tildes",t),t=k(t,e),a("xrange",t),t=S(t,e),a("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,E=(t,e)=>t.trim().split(/\s+/).map((t=>w(t,e))).join(" "),w=(t,e)=>{const r=e.loose?u[c.TILDELOOSE]:u[c.TILDE];return t.replace(r,((e,r,n,o,i)=>{let s;return a("tilde",t,e,r,n,o,i),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(o)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(a("replaceTilde pr",i),s=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,a("tilde return",s),s}))},x=(t,e)=>t.trim().split(/\s+/).map((t=>_(t,e))).join(" "),_=(t,e)=>{a("caret",t,e);const r=e.loose?u[c.CARETLOOSE]:u[c.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,o,i,s)=>{let u;return a("caret",t,e,r,o,i,s),b(r)?u="":b(o)?u=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(i)?u="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),u="0"===r?"0"===o?`>=${r}.${o}.${i}-${s} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${s} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${s} <${+r+1}.0.0-0`):(a("no pr"),u="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),a("caret return",u),u}))},k=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>O(t,e))).join(" ")),O=(t,e)=>{t=t.trim();const r=e.loose?u[c.XRANGELOOSE]:u[c.XRANGE];return t.replace(r,((r,n,o,i,s,u)=>{a("xRange",t,r,n,o,i,s,u);const c=b(o),l=c||b(i),h=l||b(s),f=h;return"="===n&&f&&(n=""),u=e.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(l&&(i=0),s=0,">"===n?(n=">=",l?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),"<"===n&&(u="-0"),r=`${n+o}.${i}.${s}${u}`):l?r=`>=${o}.0.0${u} <${+o+1}.0.0-0`:h&&(r=`>=${o}.${i}.0${u} <${o}.${+i+1}.0-0`),a("xRange return",r),r}))},S=(t,e)=>(a("replaceStars",t,e),t.trim().replace(u[c.STAR],"")),L=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(u[e.includePrerelease?c.GTE0PRE:c.GTE0],"")),A=t=>(e,r,n,o,i,a,s,u,c,l,h,f,p)=>`${r=b(n)?"":b(o)?`>=${n}.0.0${t?"-0":""}`:b(i)?`>=${n}.${o}.0${t?"-0":""}`:a?`>=${r}`:`>=${r}${t?"-0":""}`} ${u=b(c)?"":b(l)?`<${+c+1}.0.0-0`:b(h)?`<${c}.${+l+1}.0-0`:f?`<=${c}.${l}.${h}-${f}`:t?`<${c}.${l}.${+h+1}-0`:`<=${u}`}`.trim(),I=(t,e,r)=>{for(let r=0;r0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},function(t,e,r){const n=r(10);t.exports=(t,e,r=!1)=>{if(t instanceof n)return t;try{return new n(t,e)}catch(t){if(!r)return null;throw t}}},function(t,e,r){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=r(16),a=r(15),s=(e=t.exports={}).re=[],u=e.safeRe=[],c=e.src=[],l=e.t={};let h=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[f,o]],m=(t,e,r)=>{const n=(t=>{for(const[e,r]of p)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),o=h++;a(t,o,e),l[t]=o,c[o]=e,s[o]=new RegExp(e,r?"g":void 0),u[o]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),m("FULL",`^${c[l.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),m("LOOSE",`^${c[l.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),m("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),m("COERCERTL",c[l.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},function(t,e,r){(function(e){const r="object"==typeof e&&Object({IS_KIBANA_DISTRIBUTABLE:"true"})&&Object({IS_KIBANA_DISTRIBUTABLE:"true"}).NODE_DEBUG&&/\bsemver\b/i.test(Object({IS_KIBANA_DISTRIBUTABLE:"true"}).NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=r}).call(this,r(33))},function(t,e){const r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},function(t,e,r){const n=r(11);t.exports=(t,e,r)=>n(t,e,r)>0},function(t,e,r){const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(t,e){if(e=o(e),t instanceof Comparator){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),u("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(t){const e=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(u("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;if("string"==typeof t)try{t=new c(t,this.options)}catch(t){return!1}return s(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof Comparator))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(t.value,e).test(this.value):""===t.operator?""===t.value||new l(this.value,e).test(t.semver):!((e=o(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(s(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(s(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=Comparator;const o=r(20),{safeRe:i,t:a}=r(14),s=r(31),u=r(15),c=r(10),l=r(12)},function(t,e,r){const n=r(12);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},function(t,e){const r=Object.freeze({loose:!0}),n=Object.freeze({});t.exports=t=>t?"object"!=typeof t?r:t:n},function(t,e,r){const n=r(10);t.exports=(t,e,r)=>{const o=new n(t,r),i=new n(e,r);return o.compare(i)||o.compareBuild(i)}},function(t,e,r){const n=r(11);t.exports=(t,e,r)=>n(t,e,r)<0},function(t,e,r){const n=r(11);t.exports=(t,e,r)=>n(t,e,r)>=0},function(t,e,r){const n=r(11);t.exports=(t,e,r)=>n(t,e,r)<=0},function(t,e,r){const n=r(10),o=r(18),{ANY:i}=o,a=r(12),s=r(19),u=r(17),c=r(22),l=r(24),h=r(23);t.exports=(t,e,r,f)=>{let p,m,v,y,g;switch(t=new n(t,f),e=new a(e,f),r){case">":p=u,m=l,v=c,y=">",g=">=";break;case"<":p=c,m=h,v=u,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(t,e,f))return!1;for(let r=0;r{t.semver===i&&(t=new o(">=0.0.0")),a=a||t,s=s||t,p(t.semver,a.semver,f)?a=t:v(t.semver,s.semver,f)&&(s=t)})),a.operator===y||a.operator===g)return!1;if((!s.operator||s.operator===y)&&m(t,s.semver))return!1;if(s.operator===g&&v(t,s.semver))return!1}return!0}},function(t,e,r){const n=r(10),o=r(13),{safeRe:i,t:a}=r(14);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=i[a.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),i[a.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;i[a.COERCERTL].lastIndex=-1}else r=t.match(i[a.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},function(t,e){const r=/^[0-9]+$/,n=(t,e)=>{const n=r.test(t),o=r.test(e);return n&&o&&(t=+t,e=+e),t===e?0:n&&!o?-1:o&&!n?1:tn(e,t)}},function(t,e,r){"use strict";var n=r(35),o=r(36);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return o.isString(t)&&(t=b(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),h=["%","/","?",";","#"].concat(l),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},d=r(37);function b(t,e,r){if(t&&o.isObject(t)&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),s=-1!==i&&i127?$+="x":$+=j[T];if(!$.match(p)){var C=R.slice(0,L),U=R.slice(L+1),M=j.match(m);M&&(C.push(M[1]),U.unshift(M[2])),U.length&&(b="/"+U.join(".")+b),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+F,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[x])for(L=0,P=l.length;L0)&&r.host.split("@"))&&(r.auth=I.shift(),r.host=r.hostname=I.shift())),r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=_.slice(-1)[0],S=(r.host||t.host||_.length>1)&&("."===O||".."===O)||""===O,L=0,A=_.length;A>=0;A--)"."===(O=_[A])?_.splice(A,1):".."===O?(_.splice(A,1),L++):L&&(_.splice(A,1),L--);if(!w&&!x)for(;L--;L)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),S&&"/"!==_.join("/").substr(-1)&&_.push("");var I,R=""===_[0]||_[0]&&"/"===_[0].charAt(0);return k&&(r.hostname=r.host=R?"":_.length?_.shift():"",(I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=I.shift(),r.host=r.hostname=I.shift())),(w=w||r.host&&_.length)&&!R&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,r){const n=r(11);t.exports=(t,e,r)=>0===n(t,e,r)},function(t,e,r){const n=r(11);t.exports=(t,e,r)=>0!==n(t,e,r)},function(t,e,r){const n=r(29),o=r(30),i=r(17),a=r(23),s=r(22),u=r(24);t.exports=(t,e,r,c)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,c);case"!=":return o(t,r,c);case">":return i(t,r,c);case">=":return a(t,r,c);case"<":return s(t,r,c);case"<=":return u(t,r,c);default:throw new TypeError(`Invalid operator: ${e}`)}}},function(t,e,r){"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=t(r,n.value,o),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=t(r,n.value,o),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(ethis.length&&(e=this.length);for(var o=0,i=this.head;null!==i&&othis.length&&(e=this.length);for(var o=this.length,i=this.tail;null!==i&&o>e;o--)i=i.prev;for(;null!==i&&o>t;o--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;null!==i&&n0&&c>u&&(c=u);for(var l=0;l=0?(h=v.substr(0,y),f=v.substr(y+1)):(h=v,f=""),p=decodeURIComponent(h),m=decodeURIComponent(f),n(a,p)?o(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,s){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?i(a(t),(function(a){var s=encodeURIComponent(n(a))+r;return o(t[a])?i(t[a],(function(t){return s+encodeURIComponent(n(t))})).join(e):s+encodeURIComponent(n(t[a]))})).join(e):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t,e){if(t.map)return t.map(e);for(var r=[],n=0;na&&(a=t[0]),t[1]s&&(s=t[1])}function c(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(c);break;case"Point":u(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(u)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,u=t.length;++ra&&(a=e[0]),e[1]s&&(s=e[1])})),t.objects)c(t.objects[e]);return[o,i,a,s]}function o(t,e){var r=e.id,n=e.bbox,o=null==e.properties?{}:e.properties,a=i(t,e);return null==r&&null==n?{type:"Feature",properties:o,geometry:a}:null==n?{type:"Feature",id:r,properties:o,geometry:a}:{type:"Feature",id:r,bbox:n,properties:o,geometry:a}}function i(t,e){var n=r(t.transform),o=t.arcs;function i(t,e){e.length&&e.pop();for(var r=o[t<0?~t:t],i=0,a=r.length;i1)n=function(t,e,r){var n,o=[],i=[];function a(t){var e=t<0?~t:t;(i[e]||(i[e]=[])).push({i:t,g:n})}function s(t){t.forEach(a)}function u(t){t.forEach(s)}function c(t){t.forEach(u)}function l(t){switch(n=t,t.type){case"GeometryCollection":t.geometries.forEach(l);break;case"LineString":s(t.arcs);break;case"MultiLineString":case"Polygon":u(t.arcs);break;case"MultiPolygon":c(t.arcs)}}return l(e),i.forEach(null==r?function(t){o.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&&o.push(t[0].i)}),o}(0,e,r);else for(o=0,n=new Array(i=t.arcs.length);o1)for(var i,s,c=1,l=u(o[0]);cl&&(s=o[0],o[0]=o[c],o[c]=s,l=i);return o})).filter((function(t){return t.length>0}))}}function c(t,e){for(var r=0,n=t.length;r>>1;t[o]=2))throw new Error("n must be ≥2");var r,o=(u=t.bbox||n(t))[0],i=u[1],a=u[2],s=u[3];e={scale:[a-o?(a-o)/(r-1):1,s-i?(s-i)/(r-1):1],translate:[o,i]}}var u,c,h=l(e),f=t.objects,p={};function m(t){return h(t)}function v(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(v)};break;case"Point":e={type:"Point",coordinates:m(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(m)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}for(c in f)p[c]=v(f[c]);return{type:"Topology",bbox:u,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,o=t.length,i=new Array(o);for(i[0]=h(t[0],0);++r{const r=n(t,e);return r?r.version:null}},function(t,e,r){const n=r(13);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},function(t,e,r){const n=r(10);t.exports=(t,e,r,o,i)=>{"string"==typeof r&&(i=o,o=r,r=void 0);try{return new n(t instanceof n?t.version:t,r).inc(e,o,i).version}catch(t){return null}}},function(t,e,r){const n=r(13);t.exports=(t,e)=>{const r=n(t,null,!0),o=n(e,null,!0),i=r.compare(o);if(0===i)return null;const a=i>0,s=a?r:o,u=a?o:r,c=!!s.prerelease.length;if(u.prerelease.length&&!c)return u.patch||u.minor?s.patch?"patch":s.minor?"minor":"major":"major";const l=c?"pre":"";return r.major!==o.major?l+"major":r.minor!==o.minor?l+"minor":r.patch!==o.patch?l+"patch":"prerelease"}},function(t,e,r){const n=r(10);t.exports=(t,e)=>new n(t,e).major},function(t,e,r){const n=r(10);t.exports=(t,e)=>new n(t,e).minor},function(t,e,r){const n=r(10);t.exports=(t,e)=>new n(t,e).patch},function(t,e,r){const n=r(13);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},function(t,e,r){const n=r(11);t.exports=(t,e,r)=>n(e,t,r)},function(t,e,r){const n=r(11);t.exports=(t,e)=>n(t,e,!0)},function(t,e,r){const n=r(21);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},function(t,e,r){const n=r(21);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},function(t,e,r){"use strict";const n=r(32),o=Symbol("max"),i=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),m=()=>1,v=(t,e,r)=>{const n=t[f].get(e);if(n){const e=n.value;if(y(t,e)){if(d(t,n),!t[s])return}else r&&(t[p]&&(n.value.now=Date.now()),t[h].unshiftNode(n));return e.value}},y=(t,e)=>{if(!e||!e.maxAge&&!t[u])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[u]&&r>t[u]},g=t=>{if(t[i]>t[o])for(let e=t[h].tail;t[i]>t[o]&&null!==e;){const r=e.prev;d(t,e),e=r}},d=(t,e)=>{if(e){const r=e.value;t[c]&&t[c](r.key,r.value),t[i]-=r.length,t[f].delete(r.key),t[h].removeNode(e)}};class Entry{constructor(t,e,r,n,o){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=o||0}}const b=(t,e,r,n)=>{let o=r.value;y(t,o)&&(d(t,r),t[s]||(o=void 0)),o&&e.call(n,o.value,o.key,t)};t.exports=class LRUCache{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[o]=t.max||1/0;const e=t.length||m;if(this[a]="function"!=typeof e?m:e,this[s]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[u]=t.maxAge||0,this[c]=t.dispose,this[l]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[o]=t||1/0,g(this)}get max(){return this[o]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[u]=t,g(this)}get maxAge(){return this[u]}set lengthCalculator(t){"function"!=typeof t&&(t=m),t!==this[a]&&(this[a]=t,this[i]=0,this[h].forEach((t=>{t.length=this[a](t.value,t.key),this[i]+=t.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const n=r.prev;b(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const n=r.next;b(this,t,r,e),r=n}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[c]&&this[h]&&this[h].length&&this[h].forEach((t=>this[c](t.key,t.value))),this[f]=new Map,this[h]=new n,this[i]=0}dump(){return this[h].map((t=>!y(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,r){if((r=r||this[u])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[o])return d(this,this[f].get(t)),!1;const a=this[f].get(t).value;return this[c]&&(this[l]||this[c](t,a.value)),a.now=n,a.maxAge=r,a.value=e,this[i]+=s-a.length,a.length=s,this.get(t),g(this),!0}const p=new Entry(t,e,s,n,r);return p.length>this[o]?(this[c]&&this[c](t,e),!1):(this[i]+=p.length,this[h].unshift(p),this[f].set(t,this[h].head),g(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!y(this,e)}get(t){return v(this,t,!0)}peek(t){return v(this,t,!1)}pop(){const t=this[h].tail;return t?(d(this,t),t.value):null}del(t){d(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{const t=o-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[f].forEach(((t,e)=>v(this,e,!1)))}}},function(t,e,r){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},function(t,e,r){const n=r(12);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},function(t,e,r){const n=r(10),o=r(12);t.exports=(t,e,r)=>{let i=null,a=null,s=null;try{s=new o(e,r)}catch(t){return null}return t.forEach((t=>{s.test(t)&&(i&&-1!==a.compare(t)||(i=t,a=new n(i,r)))})),i}},function(t,e,r){const n=r(10),o=r(12);t.exports=(t,e,r)=>{let i=null,a=null,s=null;try{s=new o(e,r)}catch(t){return null}return t.forEach((t=>{s.test(t)&&(i&&1!==a.compare(t)||(i=t,a=new n(i,r)))})),i}},function(t,e,r){const n=r(10),o=r(12),i=r(17);t.exports=(t,e)=>{t=new o(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":a&&!i(e,a)||(a=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!a||r&&!i(r,a)||(r=a)}return r&&t.test(r)?r:null}},function(t,e,r){const n=r(12);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},function(t,e,r){const n=r(25);t.exports=(t,e,r)=>n(t,e,">",r)},function(t,e,r){const n=r(25);t.exports=(t,e,r)=>n(t,e,"<",r)},function(t,e,r){const n=r(12);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e,r))},function(t,e,r){const n=r(19),o=r(11);t.exports=(t,e,r)=>{const i=[];let a=null,s=null;const u=t.sort(((t,e)=>o(t,e,r)));for(const t of u)n(t,e,r)?(s=t,a||(a=t)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const c=[];for(const[t,e]of i)t===e?c.push(t):e||t!==u[0]?e?t===u[0]?c.push(`<=${e}`):c.push(`${t} - ${e}`):c.push(`>=${t}`):c.push("*");const l=c.join(" || "),h="string"==typeof e.raw?e.raw:String(e);return l.length=0.0.0-0")],c=[new o(">=0.0.0")],l=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===i){if(1===e.length&&e[0].semver===i)return!0;t=r.includePrerelease?u:c}if(1===e.length&&e[0].semver===i){if(r.includePrerelease)return!0;e=c}const n=new Set;let o,l,p,m,v,y,g;for(const e of t)">"===e.operator||">="===e.operator?o=h(o,e,r):"<"===e.operator||"<="===e.operator?l=f(l,e,r):n.add(e.semver);if(n.size>1)return null;if(o&&l){if(p=s(o.semver,l.semver,r),p>0)return null;if(0===p&&(">="!==o.operator||"<="!==l.operator))return null}for(const t of n){if(o&&!a(t,String(o),r))return null;if(l&&!a(t,String(l),r))return null;for(const n of e)if(!a(t,String(n),r))return!1;return!0}let d=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,b=!(!o||r.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===l.operator&&0===d.prerelease[0]&&(d=!1);for(const t of e){if(g=g||">"===t.operator||">="===t.operator,y=y||"<"===t.operator||"<="===t.operator,o)if(b&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===b.major&&t.semver.minor===b.minor&&t.semver.patch===b.patch&&(b=!1),">"===t.operator||">="===t.operator){if(m=h(o,t,r),m===t&&m!==o)return!1}else if(">="===o.operator&&!a(o.semver,String(t),r))return!1;if(l)if(d&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===d.major&&t.semver.minor===d.minor&&t.semver.patch===d.patch&&(d=!1),"<"===t.operator||"<="===t.operator){if(v=f(l,t,r),v===t&&v!==l)return!1}else if("<="===l.operator&&!a(l.semver,String(t),r))return!1;if(!t.operator&&(l||o)&&0!==p)return!1}return!(o&&y&&!l&&0!==p||l&&g&&!o&&0!==p||b||d)},h=(t,e,r)=>{if(!t)return e;const n=s(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},f=(t,e,r)=>{if(!t)return e;const n=s(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let o=!1;t:for(const n of t.set){for(const t of e.set){const e=l(n,t,r);if(o=o||null!==e,e)continue t}if(o)return!1}return!0}},function(t,e,r){"use strict";const n=r(32),o=Symbol("max"),i=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),m=()=>1,v=(t,e,r)=>{const n=t[f].get(e);if(n){const e=n.value;if(y(t,e)){if(d(t,n),!t[s])return}else r&&(t[p]&&(n.value.now=Date.now()),t[h].unshiftNode(n));return e.value}},y=(t,e)=>{if(!e||!e.maxAge&&!t[u])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[u]&&r>t[u]},g=t=>{if(t[i]>t[o])for(let e=t[h].tail;t[i]>t[o]&&null!==e;){const r=e.prev;d(t,e),e=r}},d=(t,e)=>{if(e){const r=e.value;t[c]&&t[c](r.key,r.value),t[i]-=r.length,t[f].delete(r.key),t[h].removeNode(e)}};class Entry{constructor(t,e,r,n,o){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=o||0}}const b=(t,e,r,n)=>{let o=r.value;y(t,o)&&(d(t,r),t[s]||(o=void 0)),o&&e.call(n,o.value,o.key,t)};t.exports=class LRUCache{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[o]=t.max||1/0;const e=t.length||m;if(this[a]="function"!=typeof e?m:e,this[s]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[u]=t.maxAge||0,this[c]=t.dispose,this[l]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[o]=t||1/0,g(this)}get max(){return this[o]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[u]=t,g(this)}get maxAge(){return this[u]}set lengthCalculator(t){"function"!=typeof t&&(t=m),t!==this[a]&&(this[a]=t,this[i]=0,this[h].forEach((t=>{t.length=this[a](t.value,t.key),this[i]+=t.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const n=r.prev;b(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const n=r.next;b(this,t,r,e),r=n}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[c]&&this[h]&&this[h].length&&this[h].forEach((t=>this[c](t.key,t.value))),this[f]=new Map,this[h]=new n,this[i]=0}dump(){return this[h].map((t=>!y(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,r){if((r=r||this[u])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[o])return d(this,this[f].get(t)),!1;const a=this[f].get(t).value;return this[c]&&(this[l]||this[c](t,a.value)),a.now=n,a.maxAge=r,a.value=e,this[i]+=s-a.length,a.length=s,this.get(t),g(this),!0}const p=new Entry(t,e,s,n,r);return p.length>this[o]?(this[c]&&this[c](t,e),!1):(this[i]+=p.length,this[h].unshift(p),this[f].set(t,this[h].head),g(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!y(this,e)}get(t){return v(this,t,!0)}peek(t){return v(this,t,!1)}pop(){const t=this[h].tail;return t?(d(this,t),t.value):null}del(t){d(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{const t=o-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[f].forEach(((t,e)=>v(this,e,!1)))}}},function(t,e,r){"use strict";r.r(e),r.d(e,"createEMSClient",(function(){return pt}));var n=r(26),o=r.n(n),i=r(9),a=r(8),s=r.n(a),u=r(34),c=r.n(u);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(t,e){if(!t)return e;var r="/"===t[t.length-1],n="/"===e[0];return!0===r&&!0===n?t+e.slice(1):r!==n?t+e:t+"/"+e}function f(t,e){if("string"==typeof t){var r=e(t);return"rgba(".concat(r.rgba().join(","),")")}if("object"==l(t)&&"stops"in t&&Array.isArray(null==t?void 0:t.stops)){var n=t.stops.map((function(t){var r=f(t[1],e);return[t[0],r]}));return Object.assign({},t,{stops:n})}return t}function p(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"screen",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return f(t,(function(t){return"mix"!==r?c.a.blend(c()(t),e,r):c.a.mix(c()(t),e,n)}))}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function v(t,e){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function x(t,e){if(t){if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function L(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function A(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){L(i,n,o,a,s,"next",t)}function s(t){L(i,n,o,a,s,"throw",t)}a(void 0)}))}}function I(t,e){for(var r=0;r0&&void 0!==a[0]&&a[0],t.next=3,this.getSpriteSheetJsonPath(e);case 3:return r=t.sent,t.next=6,this.getSpriteSheetPngPath(e);case 6:if(n=t.sent,!r||!n){t.next=15;break}return o=this._emsClient.extendUrlWithParams(r),t.next=11,this._emsClient.getManifest(o);case 11:return i=t.sent,t.abrupt("return",{png:n,json:i});case 15:return t.abrupt("return");case 16:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:"getSpriteSheetJsonPath",value:(l=A(S().mark((function t(){var e,r,n,o=arguments;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]&&o[0],t.next=3,this._getSpriteSheetRootPath();case 3:if(!(r=t.sent)){t.next=9;break}return n=e?"@2x":"",t.abrupt("return",r+n+".json");case 9:return t.abrupt("return","");case 10:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"getSpriteSheetPngPath",value:(c=A(S().mark((function t(){var e,r,n,o=arguments;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]&&o[0],t.next=3,this._getSpriteSheetRootPath();case 3:if(!(r=t.sent)){t.next=9;break}return n=e?"@2x":"",t.abrupt("return",r+n+".png");case 9:return t.abrupt("return","");case 10:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"getDisplayName",value:function(){return this._emsClient.getValueInLanguage(this._config.name)}},{key:"getMinZoom",value:(u=A(S().mark((function t(){var e,r,n,o,i,a=arguments;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=a.length>0&&void 0!==a[0]?a[0]:"vector",t.t0=e,t.next="vector"===t.t0?4:"raster"===t.t0?12:20;break;case 4:return t.next=6,this._getVectorStyleJsonInlined();case 6:if(t.t1=t.sent,t.t1){t.next=9;break}t.t1={sources:{}};case 9:return r=t.t1,n=r.sources,t.abrupt("return",Math.min.apply(Math,E(Object.values(n).map((function(t){return t.minzoom})).filter((function(t){return Number.isFinite(t)})))));case 12:return t.next=14,this._getRasterStyleJson();case 14:if(t.t2=t.sent,t.t2){t.next=17;break}t.t2={};case 17:return o=t.t2,i=o.minzoom,t.abrupt("return",i);case 20:return t.abrupt("return");case 21:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"getMaxZoom",value:(a=A(S().mark((function t(){var e,r,n,o,i,a=arguments;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=a.length>0&&void 0!==a[0]?a[0]:"vector",t.t0=e,t.next="vector"===t.t0?4:"raster"===t.t0?12:20;break;case 4:return t.next=6,this._getVectorStyleJsonInlined();case 6:if(t.t1=t.sent,t.t1){t.next=9;break}t.t1={sources:{}};case 9:return r=t.t1,n=r.sources,t.abrupt("return",Math.max.apply(Math,E(Object.values(n).map((function(t){return t.maxzoom})).filter((function(t){return Number.isFinite(t)})))));case 12:return t.next=14,this._getRasterStyleJson();case 14:if(t.t2=t.sent,t.t2){t.next=17;break}t.t2={};case 17:return o=t.t2,i=o.maxzoom,t.abrupt("return",i);case 20:return t.abrupt("return");case 21:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"getId",value:function(){return this._config.id}},{key:"hasId",value:function(t){return this._config.id===t}},{key:"getApiUrl",value:function(){return this._emsClient.getTileApiUrl()}},{key:"_getStyleUrlForLocale",value:function(t){var e=this._getFormats(t,this._emsClient.getLocale());if(e.length||(e=this._getFormats(t,this._emsClient.getDefaultLocale())),!e.length)throw new Error("Cannot find ".concat(t," tile layer for locale ").concat(this._emsClient.getLocale()," or ").concat(this._emsClient.getDefaultLocale()));var r=e[0];if(r&&r.hasOwnProperty("url"))return r.url}},{key:"_getFormats",value:function(t,e){return this._config.formats.filter((function(r){return r.locale===e&&r.format===t}))}},{key:"_getSpriteSheetRootPath",value:(i=A(S().mark((function t(){var e;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getVectorStyleJsonRaw();case 2:if(null==(e=t.sent)||!e.sprite){t.next=7;break}return t.abrupt("return",this._proxyPath+this._getAbsoluteUrl(e.sprite));case 7:return t.abrupt("return","");case 8:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"_getUrlTemplateForGlyphs",value:(o=A(S().mark((function t(){var e;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getVectorStyleJsonRaw();case 2:if(null==(e=t.sent)||!e.glyphs){t.next=7;break}return t.abrupt("return",this._proxyPath+this._getAbsoluteUrl(e.glyphs));case 7:return t.abrupt("return","");case 8:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})}],n=[{key:"transformLanguageProperty",value:function(t,e){var r=this.SupportedLanguages.find((function(t){return t.key===e}));if("symbol"===t.type&&void 0!==t.layout&&void 0!==r){var n=r.omt,o=t.layout["text-field"];if(o&&"string"==typeof o)return k._getTextField(o,n)}}},{key:"transformColorProperties",value:function(t,e,r,n){if(-1!==["background","fill","line","symbol"].indexOf(t.type)&&t.paint){var o=t.paint;return"symbol"===t.type&&0===Object.keys(o).length&&(o["text-color"]="rgb(0,0,0)"),Object.keys(o).filter((function(t){return-1!==["background-color","circle-color","circle-stroke-color","fill-color","fill-extrusion-color","fill-outline-color","icon-color","icon-halo-color","line-color","text-color","text-halo-color"].indexOf(t)})).map((function(t){var i=o[t];return{property:t,color:i&&e?p(i,e,r,n):i}}))}return[]}},{key:"_getTextField",value:function(t,e){var r=t.match(/\{name([:_])(.{2})\}/);return r&&r[1]!=e?["coalesce",["get","name:".concat(e)],["get","name".concat(r[1]).concat(r[2])]]:t.includes("latin")&&t.includes("nonlatin")?["coalesce",["get","name:".concat(e)],["concat",["get","name:latin"],"\n",["get","name:nonlatin"]]]:t}}],r&&I(e.prototype,r),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),k}(d);$(N,"SupportedLanguages",[{key:"ar",omt:"ar"},{key:"az",omt:"az"},{key:"be",omt:"be"},{key:"bg",omt:"bg"},{key:"br",omt:"br"},{key:"bs",omt:"bs"},{key:"ca",omt:"ca"},{key:"cs",omt:"cs"},{key:"cy",omt:"cy"},{key:"da",omt:"da"},{key:"de",omt:"de"},{key:"el",omt:"el"},{key:"en",omt:"en"},{key:"eo",omt:"eo"},{key:"es",omt:"es"},{key:"et",omt:"et"},{key:"fi",omt:"fi"},{key:"fr-fr",omt:"fr"},{key:"fy",omt:"fy"},{key:"ga",omt:"ga"},{key:"gd",omt:"gd"},{key:"he",omt:"he"},{key:"hi-in",omt:"hi"},{key:"hr",omt:"hr"},{key:"hu",omt:"hu"},{key:"hy",omt:"hy"},{key:"is",omt:"is"},{key:"it",omt:"it"},{key:"ja_kana",omt:"ja_kana"},{key:"ja_rm",omt:"ja_rm"},{key:"ja-jp",omt:"ja"},{key:"ka",omt:"ka"},{key:"kk",omt:"kk"},{key:"kn",omt:"kn"},{key:"ko_rm",omt:"ko_rm"},{key:"ko",omt:"ko"},{key:"la",omt:"la"},{key:"lb",omt:"lb"},{key:"lt",omt:"lt"},{key:"lv",omt:"lv"},{key:"mk",omt:"mk"},{key:"mt",omt:"mt"},{key:"nl",omt:"nl"},{key:"no",omt:"no"},{key:"pl",omt:"pl"},{key:"pt-pt",omt:"pt"},{key:"rm",omt:"rm"},{key:"ro",omt:"ro"},{key:"ru-ru",omt:"ru"},{key:"sk",omt:"sk"},{key:"sl",omt:"sl"},{key:"sq",omt:"sq"},{key:"sr-Ltn",omt:"sr-Ltn"},{key:"sr",omt:"sr"},{key:"sv",omt:"sv"},{key:"th",omt:"th"},{key:"tr",omt:"tr"},{key:"uk",omt:"uk"},{key:"zh-cn",omt:"zh"}]),$(N,"colorOperationDefaults",[{style:"road_map",operation:"mix",percentage:.25},{style:"road_map_desaturated",operation:"screen",percentage:.25},{style:"dark_map",operation:"dodge",percentage:.25}]);var C,U=r(28),M=r.n(U),F=r(40);function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function G(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function V(t){for(var e=1;e=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function X(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function B(t,e){for(var r=0;r=0;return this._config.layer_id===t||e}},{key:"getEMSHotLink",value:function(){var t=this._emsClient.getLandingPageUrl(),e=M.a.parse(t,!0);return e.hash="file/".concat(this.getId()),e.query=V(V({},e.query),{},{locale:this._emsClient.getLocale()}),M.a.format(e)}},{key:"getDefaultFormatType",value:function(){return this._getDefaultFormat().type}},{key:"getFormatOfType",value:function(t){return this._getFormatOfType(t).type}},{key:"getDefaultFormatMeta",value:function(){var t=this._getDefaultFormat();return this._getFormatMeta(t)}},{key:"getFormatOfTypeMeta",value:function(t){var e=this._getFormatOfType(t);return this._getFormatMeta(e)}},{key:"getDefaultFormatUrl",value:function(){var t=this._getDefaultFormat();return this._getFormatUrl(t)}},{key:"getFormatOfTypeUrl",value:function(t){var e=this._getFormatOfType(t);return this._getFormatUrl(e)}},{key:"getCreatedAt",value:function(){return this._config.created_at}},{key:"getApiUrl",value:function(){return this._emsClient.getFileApiUrl()}},{key:"_getFormatUrl",value:function(t){var e=this._proxyPath+this._getAbsoluteUrl(t.url);return this._emsClient.extendUrlWithParams(e)}},{key:"_getFormatMeta",value:function(t){return"meta"in t?t.meta:void 0}},{key:"_getDefaultFormat",value:function(){return this._config.formats.find((function(t){return t.legacy_default}))||this._config.formats[0]}},{key:"_getFormatOfType",value:function(t){return this._config.formats.find((function(e){return e.type===t}))||this._getDefaultFormat()}}],r&&B(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(d),K=r(41),Q=r.n(K),tt=r(66),et=r.n(tt);function rt(t){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(t)}function nt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,o){var i=e&&e.prototype instanceof f?e:f,a=Object.create(i.prototype),s=new O(o||[]);return n(a,"_invoke",{value:w(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h={};function f(){}function p(){}function m(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(S([])));g&&g!==e&&r.call(g,i)&&(v=g);var d=m.prototype=f.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,s){var u=l(t[n],t,i);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==rt(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return o("throw",t,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function w(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function ot(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function it(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ot(i,n,o,a,s,"next",t)}function s(t){ot(i,n,o,a,s,"throw",t)}a(void 0)}))}}function at(t,e){for(var r=0;rfetch(t),proxyPath:"",emsVersion:e})}}]]);